Commit faa70465 by Pham Huy

update homepage template

parent 6aaf27d2
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1042;
overflow: hidden;
position: fixed;
background: #0b0b0b;
opacity: 0.8; }
.mfp-wrap {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1043;
position: fixed;
outline: none !important;
-webkit-backface-visibility: hidden; }
.mfp-container {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 0 8px;
box-sizing: border-box; }
.mfp-container:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle; }
.mfp-align-top .mfp-container:before {
display: none; }
.mfp-content {
position: relative;
display: inline-block;
vertical-align: middle;
margin: 0 auto;
text-align: left;
z-index: 1045; }
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
width: 100%;
cursor: auto; }
.mfp-ajax-cur {
cursor: progress; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
.mfp-zoom {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in; }
.mfp-auto-cursor .mfp-content {
cursor: auto; }
.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }
.mfp-loading.mfp-figure {
display: none; }
.mfp-hide {
display: none !important; }
.mfp-preloader {
color: #CCC;
position: absolute;
top: 50%;
width: auto;
text-align: center;
margin-top: -0.8em;
left: 8px;
right: 8px;
z-index: 1044; }
.mfp-preloader a {
color: #CCC; }
.mfp-preloader a:hover {
color: #FFF; }
.mfp-s-ready .mfp-preloader {
display: none; }
.mfp-s-error .mfp-content {
display: none; }
button.mfp-close,
button.mfp-arrow {
overflow: visible;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
display: block;
outline: none;
padding: 0;
z-index: 1046;
box-shadow: none;
touch-action: manipulation; }
button::-moz-focus-inner {
padding: 0;
border: 0; }
.mfp-close {
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
text-decoration: none;
text-align: center;
opacity: 0.65;
padding: 0 0 18px 10px;
color: #FFF !important;
font-style: normal;
font-size: 28px;
font-family: Arial, Baskerville, monospace;
text-align:right;
top: -40px; }
.mfp-close:hover,
.mfp-close:focus {
opacity: 1;
background-color: transparent !important;
}
.mfp-close:active {
top: -40px; }
.mfp-close-btn-in .mfp-close {
}
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
color: #FFF;
right: -6px;
text-align: right;
padding-right: 6px;
width: 100%;
background-color:transparent !important }
.mfp-counter {
position: absolute;
top: 0;
right: 0;
color: #CCC;
font-size: 12px;
line-height: 18px;
white-space: nowrap; }
.mfp-arrow {
position: absolute;
opacity: 0.65;
margin: 0;
top: 50%;
margin-top: -55px;
padding: 0;
width: 90px;
height: 110px;
-webkit-tap-highlight-color: transparent; }
.mfp-arrow:active {
margin-top: -54px; }
.mfp-arrow:hover,
.mfp-arrow:focus {
opacity: 1; }
.mfp-arrow:before,
.mfp-arrow:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 0;
top: 0;
margin-top: 35px;
margin-left: 35px;
border: medium inset transparent; }
.mfp-arrow:after {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before {
border-top-width: 21px;
border-bottom-width: 21px;
opacity: 0.7; }
.mfp-arrow-left {
left: 0; }
.mfp-arrow-left:after {
border-right: 17px solid #FFF;
margin-left: 31px; }
.mfp-arrow-left:before {
margin-left: 25px;
border-right: 27px solid #3F3F3F; }
.mfp-arrow-right {
right: 0; }
.mfp-arrow-right:after {
border-left: 17px solid #FFF;
margin-left: 39px; }
.mfp-arrow-right:before {
border-left: 27px solid #3F3F3F; }
.mfp-iframe-holder {
padding-top: 40px;
padding-bottom: 40px; }
.mfp-iframe-holder .mfp-content {
line-height: 0;
width: 100%;
max-width: 800px;
}
.mfp-iframe-holder .mfp-close {
top: -40px; }
.mfp-iframe-scaler {
width: 100%;
height: 0;
overflow: hidden;
padding-top: 56.25%; }
.mfp-iframe-scaler iframe {
position: absolute;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #000; }
/* Main image in popup */
img.mfp-img {
width: auto;
max-width: 100%;
height: auto;
display: block;
line-height: 0;
box-sizing: border-box;
padding: 40px 0 40px;
margin: 0 auto; }
/* The shadow behind the image */
.mfp-figure {
line-height: 0; }
.mfp-figure:after {
content: '';
position: absolute;
left: 0;
top: 40px;
bottom: 40px;
display: block;
right: 0;
width: auto;
height: auto;
z-index: -1;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #444; }
.mfp-figure small {
color: #BDBDBD;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
.mfp-bottom-bar {
margin-top: -36px;
position: absolute;
top: 100%;
left: 0;
width: 100%;
cursor: auto; }
.mfp-title {
text-align: left;
line-height: 18px;
color: #F3F3F3;
word-wrap: break-word;
padding-right: 36px; }
.mfp-image-holder .mfp-content {
max-width: 100%; }
.mfp-gallery .mfp-image-holder .mfp-figure {
cursor: pointer; }
.white-popup-block {
background: #fff;
margin: 40px auto;
line-height: 0;
width: 100%;
max-width: 700px;
position: relative;
text-align: left;
padding:15px;
}
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
/**
* Remove all paddings around the image on small screen
*/
.mfp-img-mobile .mfp-image-holder {
padding-left: 0;
padding-right: 0; }
.mfp-img-mobile img.mfp-img {
padding: 0; }
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .mfp-bottom-bar {
background: rgba(0, 0, 0, 0.6);
bottom: 0;
margin: 0;
top: auto;
padding: 3px 5px;
position: fixed;
box-sizing: border-box; }
.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }
.mfp-img-mobile .mfp-counter {
right: 5px;
top: 3px; }
.mfp-img-mobile .mfp-close {
top: 0;
right: 0;
width: 35px;
height: 35px;
line-height: 35px;
background: rgba(0, 0, 0, 0.6);
position: fixed;
text-align: center;
padding: 0; } }
@media all and (max-width: 900px) {
.mfp-arrow {
-webkit-transform: scale(0.75);
transform: scale(0.75); }
.mfp-arrow-left {
-webkit-transform-origin: 0;
transform-origin: 0; }
.mfp-arrow-right {
-webkit-transform-origin: 100%;
transform-origin: 100%; }
.mfp-container {
padding-left: 6px;
padding-right: 6px; } }
/* Slider */.slick-loading .slick-list{ background: #fff url(ajax-loader.gif) center center no-repeat;}.slick-slider{ position: relative; display: block; box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -ms-touch-action: pan-y; touch-action: pan-y; -webkit-tap-highlight-color: transparent;}.slick-list{ position: relative; display: block; overflow: hidden; margin: 0; padding: 0;}.slick-list:focus{ outline: none;}.slick-list.dragging{ cursor: pointer; cursor: hand;}.slick-slider .slick-track,.slick-slider .slick-list{ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);}.slick-track{ position: relative; top: 0; left: 0; display: block;}.slick-track:before,.slick-track:after{ display: table; content: '';}.slick-track:after{ clear: both;}.slick-loading .slick-track{ visibility: hidden;}.slick-slide{ display: none; float: left; height: 100%; min-height: 1px;}[dir='rtl'] .slick-slide{ float: right;}.slick-slide img{ display: inline-block !important;}.slick-slide.slick-loading img{ display: none;}.slick-slide.dragging img{ pointer-events: none;}.slick-initialized .slick-slide{ display: block;}.slick-loading .slick-slide{ visibility: hidden;}.slick-vertical .slick-slide{ display: block; height: auto; border: 1px solid transparent;}.slick-arrow.slick-hidden { display: none;}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
rtsw_grid();
rtsw_slider();
function rtsw_grid() {
var sg_main = "[testimonials_grid ";
var grid_cat = jQuery('#grid_cat').val();
var rtsw_grids = jQuery('#rtsw_grids').val();
var rtsw_limit = jQuery('#rtsw_limit').val();
var rtsw_grid_design = jQuery('#rtsw_grid_design').val();
var rtsw_grid_orderby = jQuery('#rtsw_grid_orderby').val();
var rtsw_grid_order = jQuery('#rtsw_grid_order').val();
var client_name = jQuery('#client_name').val();
var rtsw_grid_star = jQuery('#rtsw_grid_star').val();
var rtsw_grid_img = jQuery('#rtsw_grid_img').val();
var rtsw_grid_job = jQuery('#rtsw_grid_job').val();
var rtsw_grid_company = jQuery('#rtsw_grid_company').val();
var rtsw_grid_img_style = jQuery('#rtsw_grid_img_style').val();
var rtsw_img_size = jQuery('#rtsw_img_size').val();
var rtsw_grid_quote = jQuery('#rtsw_grid_quote').val();
var rtsw_grid_video = jQuery('#rtsw_grid_video').val();
var rtsw_grid_social = jQuery('#rtsw_grid_social').val();
if (rtsw_grid_design == 'default-template') {} else { sg_main = sg_main + ' design_template="' + rtsw_grid_design + '"';}
if (rtsw_limit == '-1') {} else { sg_main = sg_main + ' limit="' + rtsw_limit + '"';}
if (rtsw_grids == 'default-value') {} else { sg_main = sg_main + ' grid="' + rtsw_grids + '"';}
if (rtsw_grid_order == 'default-value') {} else { sg_main = sg_main + ' order="' + rtsw_grid_order + '"' ;}
if (rtsw_grid_orderby == 'default-value') {} else { sg_main = sg_main + ' orderby="' + rtsw_grid_orderby + '"' ;}
if (grid_cat == 'nocat') {} else { sg_main = sg_main + ' category="' + grid_cat + '"';}
if (client_name == 'default-value') {} else { sg_main = sg_main + ' show_client="' + client_name + '"' ;}
if (rtsw_grid_star == 'default-value') {} else { sg_main = sg_main + ' show_star="' + rtsw_grid_star + '"' ;}
if (rtsw_grid_img == 'default-value') {} else { sg_main = sg_main + ' show_img="' + rtsw_grid_img + '"' ;}
if (rtsw_grid_job == 'default-value') {} else { sg_main = sg_main + ' show_job="' + rtsw_grid_job + '"' ;}
if (rtsw_grid_company == 'default-value') {} else { sg_main = sg_main + ' show_company="' + rtsw_grid_company + '"' ;}
if (rtsw_grid_img_style == 'default-value') {} else { sg_main = sg_main + ' image_style="' + rtsw_grid_img_style + '"' ;}
if (rtsw_img_size == '150px') {} else { sg_main = sg_main + ' size="' + rtsw_img_size + '"';}
if (rtsw_grid_quote == 'default-value') {} else { sg_main = sg_main + ' show_quotes="' + rtsw_grid_quote + '"' ;}
if (rtsw_grid_video == 'default-value') {} else { sg_main = sg_main + ' video="' + rtsw_grid_video + '"' ;}
if (rtsw_grid_social == 'default-value') {} else { sg_main = sg_main + ' social="' + rtsw_grid_social + '"' ;}
sg_main = sg_main + ']';
jQuery("#rtsw-grid-shortcode").text(sg_main);
jQuery("#rtsw-grid_shortcode_php").text("'"+sg_main+"'");
}
function rtsw_slider() {
var sg_main = "[testimonials_slider ";
var grid_cat = jQuery('#grid_cat').val();
var rtsw_slider_cell = jQuery('#rtsw_slider_cell').val();
var rtsw_slider_limit = jQuery('#rtsw_slider_limit').val();
var rtsw_slider_design = jQuery('#rtsw_slider_design').val();
var rtsw_slider_orderby = jQuery('#rtsw_slider_orderby').val();
var rtsw_slider_order = jQuery('#rtsw_slider_order').val();
var client_name = jQuery('#client_name').val();
var rtsw_slider_star = jQuery('#rtsw_slider_star').val();
var rtsw_slider_img = jQuery('#rtsw_slider_img').val();
var rtsw_slider_job = jQuery('#rtsw_slider_job').val();
var rtsw_slider_company = jQuery('#rtsw_slider_company').val();
var rtsw_slider_img_style = jQuery('#rtsw_slider_img_style').val();
var rtsw_img_size = jQuery('#rtsw_img_size').val();
var rtsw_slider_quote = jQuery('#rtsw_slider_quote').val();
var rtsw_slider_dots = jQuery('#rtsw_slider_dots').val();
var rtsw_slider_arrows = jQuery('#rtsw_slider_arrows').val();
var rtsw_slider_autoplay = jQuery('#rtsw_slider_autoplay').val();
var rtsw_slider_autohight = jQuery('#rtsw_slider_autohight').val();
var rtsw_slider_speed = jQuery('#rtsw_slider_speed').val();
var lswr_slider_scroll = jQuery('#lswr_slider_scroll').val();
var rtsw_slider_interval = jQuery('#rtsw_slider_interval').val();
var rtsw_slider_video = jQuery('#rtsw_slider_video').val();
var rtsw_slider_social = jQuery('#rtsw_slider_social').val();
if (rtsw_slider_design == 'default-template') {} else { sg_main = sg_main + ' design_template="' + rtsw_slider_design + '"';}
if (rtsw_slider_limit == '-1') {} else { sg_main = sg_main + ' limit="' + rtsw_slider_limit + '"';}
if (rtsw_slider_cell == 'default-template') {} else { sg_main = sg_main + ' grid="' + rtsw_slider_cell + '"';}
if (rtsw_slider_order == 'default-value') {} else { sg_main = sg_main + ' order="' + rtsw_slider_order + '"' ;}
if (rtsw_slider_orderby == 'default-value') {} else { sg_main = sg_main + ' orderby="' + rtsw_slider_orderby + '"' ;}
if (grid_cat == 'nocat') {} else { sg_main = sg_main + ' category="' + grid_cat + '"';}
if (client_name == 'default-value') {} else { sg_main = sg_main + ' show_client="' + client_name + '"' ;}
if (rtsw_slider_star == 'default-value') {} else { sg_main = sg_main + ' show_star="' + rtsw_slider_star + '"' ;}
if (rtsw_slider_img == 'default-value') {} else { sg_main = sg_main + ' show_img="' + rtsw_slider_img + '"' ;}
if (rtsw_slider_job == 'default-value') {} else { sg_main = sg_main + ' show_job="' + rtsw_slider_job + '"' ;}
if (rtsw_slider_company == 'default-value') {} else { sg_main = sg_main + ' show_company="' + rtsw_slider_company + '"' ;}
if (rtsw_slider_img_style == 'default-value') {} else { sg_main = sg_main + ' image_style="' + rtsw_slider_img_style + '"' ;}
if (rtsw_img_size == '150px') {} else { sg_main = sg_main + ' size="' + rtsw_img_size + '"';}
if (rtsw_slider_quote == 'default-value') {} else { sg_main = sg_main + ' show_quotes="' + rtsw_slider_quote + '"' ;}
if (rtsw_slider_video == 'default-value') {} else { sg_main = sg_main + ' video="' + rtsw_slider_video + '"' ;}
if (rtsw_slider_social == 'default-value') {} else { sg_main = sg_main + ' social="' + rtsw_slider_social + '"' ;}
if (lswr_slider_scroll == '1') {} else { sg_main = sg_main + ' slides_scroll="' + lswr_slider_scroll + '"' ;}
if (rtsw_slider_dots == 'default-value') {} else { sg_main = sg_main + ' dots="' + rtsw_slider_dots + '"' ;}
if (rtsw_slider_arrows == 'default-value') {} else { sg_main = sg_main + ' arrows="' + rtsw_slider_arrows + '"' ;}
if (rtsw_slider_speed == '300') {} else { sg_main = sg_main + ' speed="' + rtsw_slider_speed + '"' ;}
if (rtsw_slider_autoplay == 'default-value') {} else { sg_main = sg_main + ' autoplay="' + rtsw_slider_autoplay + '"' ;}
if (rtsw_slider_interval == '3000') {} else { sg_main = sg_main + ' autoplay_interval="' + rtsw_slider_interval + '"' ;}
if (rtsw_slider_autohight == 'default-value') {} else { sg_main = sg_main + ' adaptive_height="' + rtsw_slider_autohight + '"' ;}
sg_main = sg_main + ']';
jQuery("#rtsw_slider_shortcode").text(sg_main);
jQuery("#rtsw_slider_shortcode_php").text("'"+sg_main+"'");
}
\ No newline at end of file
jQuery(document).ready(function($) {
$( '.rtsw-video' ).each(function( index ) {
var popup_id = $(this).attr('id');
var popup_conf = $.parseJSON( $(this).closest('.testimonial-slider-wrp').find('.video-popup-conf').text());
if( typeof(popup_id) != 'undefined' ) {
jQuery('#'+popup_id+ ' .popup-youtube').magnificPopup({
type: 'iframe',
mainClass: 'mfp-fade wp-html5vp-mfp-zoom-in wp-html5vp-popup-main-wrp',
removalDelay: 160,
preloader: false,
fixedContentPos: popup_conf.video_yurl == 'true' ? true : 0,
});
}
});
});
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Function to create custom post type
*
* @package testimonial slider and widget
* @since 1.0.0
*/
add_action( 'init','rstw_post_type_testimonials');
function rstw_post_type_testimonials () {
$labels = array(
'name' => _x( 'Easy Testimonials', 'post type general name', 'wp-responsive-testimonials-slider' ),
'singular_name' => _x( 'Testimonial', 'post type singular name', 'wp-responsive-testimonials-slider' ),
'add_new' => _x( 'Add New', 'testimonial', 'wp-responsive-testimonials-slider' ),
'add_new_item' => sprintf( __( 'Add New %s', 'wp-responsive-testimonials-slider' ), __( 'Testimonial', 'wp-responsive-testimonials-slider' ) ),
'edit_item' => sprintf( __( 'Edit %s', 'wp-responsive-testimonials-slider' ), __( 'Testimonial', 'wp-responsive-testimonials-slider' ) ),
'new_item' => sprintf( __( 'New %s', 'wp-responsive-testimonials-slider' ), __( 'Testimonial', 'wp-responsive-testimonials-slider' ) ),
'all_items' => sprintf( __( 'All %s', 'wp-responsive-testimonials-slider' ), __( 'Testimonials', 'wp-responsive-testimonials-slider' ) ),
'view_item' => sprintf( __( 'View %s', 'wp-responsive-testimonials-slider' ), __( 'Testimonial', 'wp-responsive-testimonials-slider' ) ),
'search_items' => sprintf( __( 'Search %a', 'wp-responsive-testimonials-slider' ), __( 'Testimonials', 'wp-responsive-testimonials-slider' ) ),
'not_found' => sprintf( __( 'No %s Found', 'wp-responsive-testimonials-slider' ), __( 'Testimonials', 'wp-responsive-testimonials-slider' ) ),
'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'wp-responsive-testimonials-slider' ), __( 'Testimonials', 'wp-responsive-testimonials-slider' ) ),
'parent_item_colon' => '',
'menu_name' => __( 'Easy Testimonials', 'wp-responsive-testimonials-slider' )
);
$single_slug = apply_filters( 'testimonials_single_slug', _x( 'testimonial', 'single post url slug', 'wp-responsive-testimonials-slider' ) );
$archive_slug = apply_filters( 'testimonials_archive_slug', _x( 'wp_testimonial', 'post archive url slug', 'wp-responsive-testimonials-slider' ) );
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => $single_slug, 'with_front' => false ),
'capability_type' => 'post',
'has_archive' => $archive_slug,
'hierarchical' => false,
'supports' => array( 'title', 'author' ,'editor', 'thumbnail', 'page-attributes', 'publicize', 'wpcom-markdown' ),
'menu_position' => 5,
'menu_icon' => 'dashicons-format-quote'
);
register_post_type( 'easy-testimonial', apply_filters( 'my_testimonials_post_type_args', $args ) );
}
add_action( 'init', 'rstw_testimonial_taxonomies');
function rstw_testimonial_taxonomies() {
$labels = array(
'name' => _x( 'Category', 'wp-responsive-testimonials-slider' ),
'singular_name' => _x( 'Category', 'wp-responsive-testimonials-slider' ),
'search_items' => __( 'Search Category', 'wp-responsive-testimonials-slider' ),
'all_items' => __( 'All Category', 'wp-responsive-testimonials-slider' ),
'parent_item' => __( 'Parent Category', 'wp-responsive-testimonials-slider' ),
'parent_item_colon' => __( 'Parent Category', 'wp-responsive-testimonials-slider' ),
'edit_item' => __( 'Edit Category', 'wp-responsive-testimonials-slider' ),
'update_item' => __( 'Update Category', 'wp-responsive-testimonials-slider' ),
'add_new_item' => __( 'Add New Category', 'wp-responsive-testimonials-slider' ),
'new_item_name' => __( 'New Category Name', 'wp-responsive-testimonials-slider' ),
'menu_name' => __( 'Category', 'wp-responsive-testimonials-slider' ),
);
$args = array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'testimonial-category' ),
);
register_taxonomy( 'testimonial-category', array( 'easy-testimonial' ), $args );
}
function rstw_testimonail_flush() {
register_post_type_testimonials();
flush_rewrite_rules();
}
register_activation_hook( __FILE__, 'rstw_testimonail_flush' );
\ No newline at end of file
<?php
/**
* Script Class
*
* Handles the script and style functionality of plugin
*
* @package WP Responsive Testimonials Slider And Widget
* @since 1.0
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
class Rtsw_Script {
function __construct() {
add_action( 'wp_enqueue_scripts', array($this, 'rtsw_front_style') );
add_action( 'wp_enqueue_scripts', array($this, 'rtsw_front_script') );
add_action( 'admin_enqueue_scripts', array($this, 'rtsw_backend_script') );
}
/**
* Function to add style
*
* @package WP Responsive Testimonials Slider And Widget
* @since 1.0
*/
function rtsw_front_style() {
// Registring font awesome style
if( !wp_style_is( 'wpoh-fontawesome-css', 'registered' ) ) {
wp_register_style( 'wpoh-fontawesome-css', RTSW_URL.'assets/css/font-awesome.min.css', array(), RTSW_VERSION);
wp_enqueue_style( 'wpoh-fontawesome-css');
}
// Registring and enqueing slick css
if( !wp_style_is( 'wpoh-slick-css', 'registered' ) ) {
wp_register_style( 'wpoh-slick-css', RTSW_URL.'assets/css/slick.css', array(), RTSW_VERSION );
wp_enqueue_style( 'wpoh-slick-css'); }
// Registring and enqueing magnific css
if( !wp_style_is( 'wpoh-magnific-css', 'registered' ) ) {
wp_register_style( 'wpoh-magnific-css', RTSW_URL.'assets/css/magnific-popup.css', array(), RTSW_VERSION );
wp_enqueue_style( 'wpoh-magnific-css');
}
// Registring and enqueing public css
wp_register_style( 'my-public-css', RTSW_URL.'assets/css/testimonials-style.css', null, RTSW_VERSION );
wp_enqueue_style( 'my-public-css' );
wp_register_style( 'my-video-js-css', RTSW_URL.'assets/css/video-js.css', null, RTSW_VERSION );
wp_enqueue_style( 'my-video-js-css' );
}
/**
* Function to add script at front side
*
* @package WP Responsive Testimonials Slider And Widget
* @since 1.0.0
*/
function rtsw_front_script() {
// Registring slick slider script
if( !wp_script_is( 'wpoh-slick-js', 'registered' ) ) {
wp_register_script( 'wpoh-slick-js', RTSW_URL.'assets/js/slick.min.js', array('jquery'), RTSW_VERSION, true );
}
wp_register_script( 'rtsw-script-video', RTSW_URL.'assets/js/video.js', array('jquery'), RTSW_VERSION, true );
wp_enqueue_script('rtsw-script-video');
if( !wp_script_is( 'wpoh-magnific-js', 'registered' ) ) {
wp_register_script( 'wpoh-magnific-js', RTSW_URL.'assets/js/magnific-popup.min.js', array('jquery'), RTSW_VERSION, true );
wp_enqueue_script('wpoh-magnific-js');
}
wp_register_script( 'rtsw-script', RTSW_URL.'assets/js/rtsw-public.js', array('jquery'), RTSW_VERSION, true );
wp_enqueue_script('rtsw-script');
}
function rtsw_backend_script(){
wp_register_script( 'rtsw-shortcode', RTSW_URL.'assets/js/rtsw-admin.js', array('jquery'), RTSW_VERSION, true );
wp_enqueue_script('rtsw-shortcode');
wp_register_style( 'testimonials-admin-css', RTSW_URL.'assets/css/testimonials-admin.css', null, RTSW_VERSION );
wp_enqueue_style( 'testimonials-admin-css' );
}
}
$rtsw_script = new Rtsw_Script();
\ No newline at end of file
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Function to handle the `vpg_slider` shortcode
*
* @package testimonial slider and widget
* @since 1.0.0
*/
function rtsw_scan_testimonial( $atts, $content = null ){
ob_start();
$defaults = apply_filters( 'testimonial_default_args', array(
'design_template' => '',
'limit' => -1,
'grid' => 1,
'order' => 'DESC',
'orderby' => 'post_date',
'category' => 0,
'show_client' => true,
'show_star' => true,
'show_img' => true,
'show_job' => true,
'show_company' => true,
'image_style' => 'square',
'size' => 150,
'show_quotes' => 'true',
'video' => 'true',
'social' => 'true',
) );
$args = shortcode_atts( $defaults, $atts );
$testimonialsdesign = rtsw_templates();
$image_style=$args['image_style'];
$video_url=$args['video'];
$video_yurl = ($video_url == 'true') ? 'true' : 'false';
$popup_conf = compact('video_url');
$design = $args['design_template'];
$design = array_key_exists( trim($design) , $testimonialsdesign ) ? $design : 'template-1';
// Shortcode file
$testimonials_design_file_path = RTSW_DIR . '/view/' . $design . '.php';
$design_file = (file_exists($testimonials_design_file_path)) ? $testimonials_design_file_path : '';
if ( isset( $args['limit'] ) ) $args['limit'] = intval( $args['limit'] );
if ( isset( $args['size'] ) && ( 0 < intval( $args['size'] ) ) ) $args['size'] = intval( $args['size'] );
if ( isset( $args['category'] ) && is_numeric( $args['category'] ) ) $args['category'] = intval( $args['category'] );
foreach ( array( 'show_client','show_job','show_company', 'show_img', 'show_quotes', 'show_star', 'video_url' ) as $k => $v ) {
if ( isset( $args[$v] ) && ( 'true' == $args[$v] ) ) {
$args[$v] = true;
} else {
$args[$v] = false;
}
}
$query = scan_all_testimonials($args);
$fix = rtsw_fix();
wp_enqueue_script('wpoh-magnific-js');
?>
<div class="testimonial-slider-wrp">
<div class="rtsw-testimonials-list rtsw-video rtsw-cleararea <?php echo $design; ?> " id="rtsw-vp-<?php echo $fix; ?>">
<?php
if(!empty($query)){
$count = 0;
$class = '';
foreach ( $query as $post ) {
$count++;
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
$css_class = 'rtsw-quote';
if ( ( is_numeric( $args['grid'] ) && ( $args['grid'] > 0 ) && ( 0 == ( $count - 1 ) % $args['grid'] ) ) || 1 == $count ) { $css_class .= ' rtsw-first'; }
if ( ( is_numeric( $args['grid'] ) && ( $args['grid'] > 0 ) && ( 0 == $count % $args['grid'] ) ) || count( $query ) == $count ) { $css_class .= ' rtsw-last'; }
// Add a CSS class if no image is available.
if ( isset( $post->image ) && ( '' == $post->image ) ) {
$css_class .= ' no-image';
}
if ( is_numeric( $args['grid'] ) ) {
if($args['grid'] == 1){
$grid = 12;
}else if($args['grid'] == 2){
$grid = 6;
}
else if($args['grid'] == 3){
$grid = 4;
}
else if($args['grid'] == 4){
$grid = 3;
}
else{
$grid = $args['grid'];
}
$class = 'wp-medium-'.$grid.' wpcolumns';
}
// Include shortcode html file
if( $design_file ) {
include( $design_file );
} ?>
<?php }
} ?>
<div class="video-popup-conf"><?php echo htmlspecialchars(json_encode($popup_conf)); ?></div><!-- end of-popup-conf --> </div>
</div>
<?php
return ob_get_clean();
}
add_shortcode('testimonials_grid','rtsw_scan_testimonial');
\ No newline at end of file
<?php
if ( ! defined( 'ABSPATH' )) exit;
/**
* Function to handle the `vpg_slider` shortcode
*
* @package testimonial slider and widget
* @since 1.0.0
*/ ?>
<?php
function rtsw_testimonial_slider( $atts, $content = null ){
ob_start();
$defaults = apply_filters( 'jd_testimonials_default_args', array(
'design_template' => '',
'limit' => -1,
'grid' => 1,
'order' => 'DESC',
'orderby' => 'post_date',
'category' => 0,
'show_client' => true,
'show_star' => true,
'show_img' => true,
'show_job' => true,
'show_company' => true,
'image_style' => 'square',
'size' => 100,
'show_quotes' => 'true',
'video' => 'true',
'social' => 'true',
'slides_scroll' => 1,
'dots' => "true",
'arrows' => "true",
'speed' => 300,
'autoplay' => "true",
'autoplay_interval' => 3000,
'adaptive_height' => 'true',
) );
$fix_value = rtsw_fix();
$fix = rtsw_fix();
$args = shortcode_atts( $defaults, $atts );
$testimonialsdesign = rtsw_templates();
$image_style=$args['image_style'];
$video_url=$args['video'];
$video_yurl = ($video_url == 'true') ? 'true' : 'false';
$popup_conf = compact('video_yurl');
$design = $args['design_template'];
$design = array_key_exists( trim($design) , $testimonialsdesign ) ? $design : 'template-1';
// Shortcode file
$testimonials_design_file_url = RTSW_DIR . '/view/' . $design . '.php';
$design_template = (file_exists($testimonials_design_file_url)) ? $testimonials_design_file_url : '';
wp_enqueue_script('wpoh-slick-js');
wp_enqueue_script('wpoh-magnific-js');
if ( isset( $args['limit'] ) ) $args['limit'] = intval( $args['limit'] );
if ( isset( $args['size'] ) && ( 0 < intval( $args['size'] ) ) ) $args['size'] = intval( $args['size'] );
if ( isset( $args['grid'] ) ) $args['grid'] = intval( $args['grid'] );
if ( isset( $args['slides_scroll'] ) ) $args['slides_scroll'] = intval( $args['slides_scroll'] );
if ( isset( $args['category'] ) && is_numeric( $args['category'] ) ) $args['category'] = intval( $args['category'] );
if ( isset( $args['dots'] ) ) $args['dots'] = $args['dots'] ;
if ( isset( $args['adaptive_height'] ) ) $args['adaptive_height'] = $args['adaptive_height'] ;
if ( isset( $args['arrows'] ) ) $args['arrows'] = $args['arrows'] ;
if ( isset( $args['autoplay'] ) ) $args['autoplay'] = $args['autoplay'] ;
if ( isset( $args['autoplay_interval'] ) ) $args['autoplay_interval'] = $args['autoplay_interval'] ;
if ( isset( $args['speed'] ) ) $args['speed'] = $args['speed'] ;
foreach ( array( 'show_client', 'show_job','show_company', 'show_img', 'show_quotes', 'show_star' ) as $k => $v ) {
if ( isset( $args[$v] ) && ( 'true' == $args[$v] ) ) {
$args[$v] = true;
} else {
$args[$v] = false;
}
}
$query = scan_all_testimonials($args);
$class = '';
?> <div class="testimonial-slider-wrp">
<div class=" rtsw-video rtsw-testimonial-<?php echo $fix_value; ?> rtsw-testimonial rtsw-cleararea <?php echo $design; ?>" id="rtsw-vp-<?php echo $fix; ?>">
<?php
if(!empty($query)){
$count = 0;
foreach ( $query as $post ) {
$count++;
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
$css_class = 'rtsw-quote';
// Add a CSS class if no image is available.
if ( isset( $post->image ) && ( '' == $post->image ) ) {
$css_class .= ' no-image';
}
// Include shortcode html file
if( $design_template ) {
include( $design_template );
}
}
} ?>
</div>
<div class="video-popup-conf"><?php echo htmlspecialchars(json_encode($popup_conf)); ?></div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.rtsw-testimonial-<?php echo $fix_value; ?>').slick({
dots: <?php echo $args['dots']?>,
infinite: true,
arrows: <?php echo $args['arrows']?>,
speed: <?php echo $args['speed']?>,
autoplay: <?php echo $args['autoplay']?>,
autoplaySpeed: <?php echo $args['autoplay_interval']?>,
slidesToShow: <?php echo $args['grid']?>,
slidesToScroll: <?php echo $args['slides_scroll']?>,
adaptiveHeight: <?php echo $args['adaptive_height']?>,
prevArrow: "<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",
nextArrow: "<div class='slick-next'><i class='fa fa-angle-right'></i></div>",
responsive: [
{
breakpoint: 769,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
infinite: true,
dots: true
}
},
{
breakpoint: 641,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
},
{
breakpoint: 481,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
});
</script>
<?php
return ob_get_clean();
}
add_shortcode( 'testimonials_slider', 'rtsw_testimonial_slider' );
\ No newline at end of file
=== WP Responsive Testimonials Slider And Widget ===
Contributors: pareshpachani007
Tags: testimonial, Testimonial, video testimonial, client video testimonial, client video slider, youtube video testimonials, responsive video testimonial, rotators Testimonial with video, rotators video Testimonials, widget, sidebar video, footer testimonial, testimonials video showcase, video gallery, Best testimonial slider, Responsive testimonial slider, rating Testimonial, client testimonial slider, easy testimonial slider, testimonials with widget, wordpress testimonial with widget, testimonial rotator, youtube slider testimonial, Testimonial slider, testimonial with shortcode, client testimonial, client, customer, shortcodes, pro testimonial, premium testimonial plugin.
Requires at least: 4.0
Tested up to:5.2.2
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Easily add and create Testimonials slider and Grid view with video, Star Rating and Social Link, you can create Testimonial to your WordPress Blog or Website using a shortcode as well as sidebar widget. with 7+ design style template.
== Description ==
Simply add Testimonials to your WordPress Blog website, or any WordPress CMS Website. It works same as WordPress Post, you can include your tribute creators, employment, pictures, pictures measure, youtube, website URL, member designation and social URL. Where you can display testimonial in list view, in grid view and slider testimonial with responsive and widget.
Testimonials are an extraordinary method to reinforce your image and unwavering quality with new clients.
**[Free Live Demo](https://wponlinehelp.com/wp-plugin/wp-responsive-testimonials-slider-and-widget/)**
**[How to Installation](https://wponlinehelp.com/wp-plugin/wp-responsive-testimonials-slider-and-widget/)**
= This testimonial plugin works two shortcode =
* <code>[testimonials_slider]</code>
* <code>[testimonials_grid]</code>
= FEATURES OF THIS PLUGIN =
* No Need Coding Skills.
* You can easily show/hide and customize every field.
* Set your Testimonial within 2 minutes.
* Fully Responsive and Mobile friendly.
* Shortcode Generator.
* Create with multiple category.
* Beautiful, minimalist & light-weight.
* Add unlimited testimonials.
* Unique settings for each testimonial showcase.
* Touch, swipe or tap on iOS, Android or any other touch devices with on/off option.
= Common Shortcode Paramaters for Grid And Slider =
* **Design Template:**
design_template="template-1" (i.e. Set the design template for testimonials. Option: template-1, template-2, upto 8).
* **Testimonial Limit:**
limit="-1" ( i.e. Set number of testimonial on your website, default value is "-1" it mean all. Option: any number).
* **Grid:**
grid="5" (i.e. Set testimonials in Grid view. 5 is a number of grid. Option: any number).
* **Order:**
order="ASC" (i.e. Set order of your testimonials in ascending and descending order. Option: "ASC" OR "DESC").
* **Orderby:**
orderby="title" (i.e. Set testimonials orderby. Option: "title" OR "post_date" OR "none" OR "name" OR "rand" OR "ID").
* **Display by category:**
category="category_ID" (i.e. Set testimonials by category ID. Option: Any category ID).
* **Show client name:**
show_client="false" (i.e. To display client name. Option: "true" OR "false").
* **Show star rating:**
show_star="true" (i.e. To display star rate. Option: "true" OR "false").
* **Show image:**
show_img="false" (i.e. To display avatar image. Option: "true" OR "false").
* **Show job title:**
show_job="false"(i.e. To display job title. Option: "true" OR "false").
* **Show company name:**
show_company="false" (i.e. To display company name .Option: "true" OR "false").
* **Image style:**
image_style="square"(i.e. Set image shape. Option: square, and circle).
* **Image size:**
size="150" ( i.e. Set size of image in px. Option: 150, 200, 300).
* **Show double and single quotes:**
show_quotes="false" ( i.e. To display quotes .Option: "true" OR "false").
* **Show video:**
video="false" (i.e. To display video. Option: "true" OR "false").
* **Show social:**
social="false" (i.e. To display social. Option: "true" OR "false").
= Slider Shortcode Paramaters =
* **Number of slide can move at a time:**
slides_scroll="2" (i.e. Set move and rotate slider slide at a time).
* **Pagination Dots:**
dots="false" (i.e. To display slider slide pagination bullets. Option: "true" OR "false").
* **Left Right Arrows:**
arrows="false" (i.e. To display slider previous and next arrows. Option: "true" OR "false").
* **Autoplay:**
autoplay="false"(i.e. To move slide automatically in slider. Option: "true" OR "false").
* **Autoplay interval:**
autoplay_interval="1000" (i.e. To set interval time between two slide in Millisecond).
* **Slide speed:**
speed="3000" (i.e. To set slider slide moving speed in Millisecond).
* **Auto set height:**
adaptive_height="false"(i.e. To auto adjust slider slide hight. Option: "true" OR "false").
= How to install & Setup Plugin : =
[youtube https://www.youtube.com/watch?v=6d_uJWFAFro&t]
== Installation ==
1. Upload the 'wp responsive testimonials slider and widget' folder to the '/wp-content/plugins/' directory.
2. Activate the "WP Responsive Testimonials Slider and Widget" list plugin through the 'Plugins' menu in WordPress.
3. Add a new page and add this short code.
4. This plugin works with Grid view.
5. This plugin works with Slider view.
== Screenshots ==
1. How to Add Testimonial.
2. All Testimonials List.
3. How to generate shortcode and how to use widget.
4. Testimonial according to the category.
5. Preview testimonial in Slider.
6. Preview logo portfolio Grid.
== Changelog ==
= 1.5 =
* change css code.
* change input field as per WordPress guideline.
* change java script code.
* add new social field.
= 1.4 =
* make shortcode ganrater easy.
* change input field as per WordPress guideline.
= 1.3 =
* upload screenshots.
* some file text change.
= 1.2 =
* some css add.
* script change.
= 1.1 =
* create video testimonial.
* create social field.
= 1.0 =
* initial release.
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="<?php echo $css_class.' '.$class;?> rtsw-grid-section">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl = $post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>" class="<?php if($image_style == 'circle') {echo 'rtsw-circle';} ?> rtsw-avtar-image">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>" class="<?php if($image_style == 'circle') {echo 'rtsw-circle';} ?> rtsw-avtar-image defoult">
<?php }?>
</div>
<?php }?>
<div class="rtsw-testimonial-content">
<i class="fa fa-quote-left"></i>
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-author">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php } ?>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar ) {echo '<i class="fa fa-star" aria-hidden="true"></i>'; }
else { echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<div class="rtsw-testimonial-job">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="<?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img src="<?php echo $feat_image; ?>" class="<?php if($image_style == 'circle') {echo 'rtsw-circle';} ?> rtsw-avtar-image"title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>" class="<?php if($image_style == 'circle') {echo 'rtsw-circle';} ?> rtsw-avtar-image">
<?php }?>
</div>
<?php }?>
<div class="rtsw-testimonial-title">
<h4><?php echo $post->post_title?></h4>
</div>
<div class="rtsw-testimonial-content">
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-author">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar ) {echo '<i class="fa fa-star" aria-hidden="true"></i>';}
else { echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<div class="rtsw-testimonial-job">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="rtsw-testimonial-box <?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<div class="rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon" ></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
<div class="rtsw-testimonial-author">
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-client">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-cdec">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar )
{ echo '<i class="fa fa-star" aria-hidden="true"></i>';}
else
{ echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p> <?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="rtsw-testimonial-box <?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<div class="rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
<div class="rtsw-testimonial-author">
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-client">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-cdec">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar )
{ echo '<i class="fa fa-star" aria-hidden="true"></i>';}
else { echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
} ?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="<?php echo $css_class.' '.$class;?>">
<div class="testimonial_row">
<div class=" wp-medium-3 wpcolumn">
<div class="testimonial-left rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
</div>
<div class=" wp-medium-9 wpcolumn">
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-author">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php } ?>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar )
{ echo '<i class="fa fa-star" aria-hidden="true"></i>'; }
else
{ echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<div class="rtsw-testimonial-job">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="rtsw-testimonial-box <?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<div class="rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
<div class="rtsw-testimonial-author">
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-client">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-cdec">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar )
{
echo '<i class="fa fa-star" aria-hidden="true"></i>';
}
else
{ echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="rtsw-testimonial-box <?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
<div class="testimonial_row">
<div class="wp-medium-4 wpcolumns">
<div class="rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
</div>
<div class="wp-medium-8 wpcolumns">
<div class="rtsw-testimonial-author">
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-client">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-cdec">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{
if($i<$totalstar )
{ echo '<i class="fa fa-star" aria-hidden="true"></i>'; }
else
{ echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit; ?>
<div id="rtsw-quote-<?php echo $post->ID;?>" class="rtsw-testimonial-box <?php echo $css_class.' '.$class;?>">
<div class="rtsw-testimonial-inner">
<div class="rtsw-testimonial-content">
<h4><?php echo $post->post_title?></h4>
<div class="testimonials-text">
<p>
<?php if($args['show_quotes'] == true) { ?> <em> <?php } ?>
<?php echo $post->post_content;?>
<?php if($args['show_quotes'] == true) { ?> </em> <?php } ?>
</p>
</div>
</div>
<div class="testimonial_row">
<div class="wp-medium-4 wpcolumns">
<div class="rtsw-testimonial_avatar">
<?php if ( ( $feat_image!= '') && true == $args['show_img'] || true == $args['video_url'] ) { ?>
<div class="rtsw-avtar-image">
<?php $video_yurl=$post->ytvideo; if( $video_yurl!="" && $video_url == "true" ){ ?>
<a href="<?php echo $post->ytvideo; ?>" class="popup-youtube">
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<span class="video_icon"></span>
</a>
<?php } else { ?>
<img class="rtsw-avtar-image <?php if($image_style == 'circle') {echo 'rtsw-circle';} ?>" src="<?php echo $feat_image; ?>" title="<?php echo $post->post_title?>">
<?php }?>
</div>
<?php }?>
</div>
</div>
<div class="wp-medium-8 wpcolumns">
<div class="rtsw-testimonial-author">
<?php if(true == $args['show_client'] && '' != $post->testimonial_client || true == $args['show_job'] && '' != $post->testimonial_job){?>
<div class="rtsw-testimonial-client">
<?php $author = (true == $args['show_client'] && '' != $post->testimonial_client) ? '<strong>'.$post->testimonial_client.'</strong>' : "";
echo $author;
?>
</div>
<?php }?>
<div class="rtsw-testimonial-cdec">
<?php
$testimonial_job = (true == $args['show_job'] && '' != $post->testimonial_job) ? $post->testimonial_job : "";
$testimonial_job .= (true == $args['show_company'] && '' != $post->testimonial_company && true == $args['show_job'] && '' != $post->testimonial_job) ? " / ": "";
if( $args['show_company'] == true && $post->testimonial_company != '' ){
$testimonial_job .= (!empty($post->testimonial_url)) ? '<a href="'.$post->testimonial_url.'" target="_blank">'.$post->testimonial_company.'</a>' : $post->testimonial_company;
}
echo $testimonial_job;
?>
</div>
</div>
<div class="rtsw-testimonial-rate">
<?php if(true == $args['show_star'] && '' != $post->testimonial_star) { ?>
<?php $totalstar = $post->testimonial_star;
for ($i=0; $i<5; $i++)
{ if($i<$totalstar )
{ echo '<i class="fa fa-star" aria-hidden="true"></i>'; }
else
{ echo '<i class="fa fa-star-o" aria-hidden="true"></i>'; }
}
?>
<?php } ?>
</div>
<?php $social = $args['social']; if($social == "true") { ?>
<div class="rtsw-social">
<ul>
<?php $fb = $post->testimonial_fb; $ld = $post->testimonial_ld; $tw = $post->testimonial_tw; $ig = $post->testimonial_instgram;
if($fb!= "") { ?>
<li><a href="<?php echo $post->testimonial_fb; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<?php } if($ld!="") { ?>
<li><a href="<?php echo $post->testimonial_ld; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></i></a></li>
<?php } if($tw!="") { ?>
<li><a href="<?php echo $post->testimonial_tw; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<?php } if($ig!="") { ?>
<li><a href="<?php echo $post->testimonial_instgram; ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
/**
* Plugin Name: WP Responsive Testimonials Slider And Widget
* Plugin URI:https://wponlinehelp.com/plugins/
* Text Domain: wp-responsive-testimonials-slider
* Domain Path: /languages/
* Description: A helpful module for WordPress Developer to add Client Testimonial to WordPress website. with two Layout Grid And Slider. with Many Design Template.
* Author: pareshpachani007
* Author URI: https://wponlinehelp.com
* Version: 1.5
* @package WordPress
*/
define( 'RTSW_VERSION', '1.5' );
define( 'RTSW_DIR', dirname( __FILE__ ) );
define( 'RTSW_URL', plugin_dir_url( __FILE__ ) );
define( 'RTSW_POST_TYPE', 'easy-testimonial' );
define( 'RTSW_CAT', 'testimonial-category' );
add_action('plugins_loaded', 'rtsw_textdomain');
function rtsw_textdomain() {
load_plugin_textdomain( 'wp-responsive-testimonials-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
}
/* Function For Manage Category Shortcode Columns
*
* @package WP Responsive Testimonials Slider And Widget
* @since 1.0
*/
add_filter("manage_testimonial-category_custom_column", 'testimonial_teams_columns', 10, 3);
add_filter("manage_edit-testimonial-category_columns", 'testimonial_teams_manage_columns');
function testimonial_teams_manage_columns($theme_columns) {
$new_columns = array(
'cb' => '<input type="checkbox" />',
'name' => __('Name'),
'testimonial_shortcode' => __( 'Testimonial Category Shortcode', 'wp-responsive-testimonials-slider' ),
'slug' => __('Slug'),
'posts' => __('Posts')
);
return $new_columns;
}
function testimonial_teams_columns($out, $column_name, $theme_id) {
$theme = get_term($theme_id, 'testimonial-category');
switch ($column_name) {
case 'title':
echo get_the_title();
break;
case 'testimonial_shortcode':
echo '[testimonials_grid category="' . $theme_id. '"]<br />';
echo '[testimonials_slider category="' . $theme_id. '"]';
break;
default:
break;
}
return $out;
}
//Script file
require_once( RTSW_DIR . '/includes/rtsw-script.php' );
// Function file file
require_once( RTSW_DIR . '/includes/testimonials-functions.php' );
// Post Type file
require_once( RTSW_DIR . '/includes/rtsw-post-types.php' );
// Widget file file
require_once( RTSW_DIR . '/includes/widget/wp-widget-testimonials.php' );
// Templates files file file
require_once( RTSW_DIR . '/includes/shortcodes/grid-testimonials-shortcode.php' );
require_once( RTSW_DIR . '/includes/shortcodes/slider-testimonials-shortcode.php' );
// How it work file, Load admin files
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
require_once( RTSW_DIR . '/includes/admin/rtsw-help.php' );
}
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by Fontastic.me</metadata>
<defs>
<font id="slick" horiz-adv-x="512">
<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
<missing-glyph horiz-adv-x="512" />
<glyph unicode="&#8594;" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#8592;" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#8226;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
<glyph unicode="&#97;" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
</font></defs></svg>
...@@ -62,21 +62,17 @@ header#masthead{ ...@@ -62,21 +62,17 @@ header#masthead{
transform: scale(1.1); transform: scale(1.1);
} }
#lienket{ #lienket{
height: 100px; height: 50px;
background: #F2F9FF; margin-top: 15px;
line-height: 100px;
text-align: center;
margin-top: 38px;
} }
#lienket .btn{ #lienket .btn{
border-radius: 28px; cursor: pointer;
padding: 10px 28px;
} }
#lienket .btn:hover{ #lienket .btn:hover{
opacity: 0.55; opacity: 0.55;
} }
#lienket .btn-1{ #lienket .btn-1{
background: #E27A17; background: #ED2027;
} }
#lienket .btn a{ #lienket .btn a{
color: white; color: white;
...@@ -86,7 +82,7 @@ header#masthead{ ...@@ -86,7 +82,7 @@ header#masthead{
font-size: 13px; font-size: 13px;
} }
#lienket .btn-2{ #lienket .btn-2{
background: #0093DD; background: #56BC86;
margin-left: 28px; margin-left: 28px;
} }
#tinhnangnoibat { #tinhnangnoibat {
...@@ -213,11 +209,17 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af ...@@ -213,11 +209,17 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af
height: 112%; height: 112%;
} }
#tintucnoibat .title a { #tintucnoibat .title a {
font-family: Proxima Nova;
font-size: 20px;
color: #56BC86;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
#tintucnoibat .title a:hover {
text-decoration: none;
}
#banggiaphanmem .col.col-center .content_child .b4, #banggiaphanmem .col.col-center .content_child .b4,
#banggiaphanmem .col.col-center .content_child .b3{ #banggiaphanmem .col.col-center .content_child .b3{
color: white; color: white;
...@@ -281,17 +283,20 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af ...@@ -281,17 +283,20 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af
padding-top: 15px; padding-top: 15px;
} }
#tintucnoibat h2{ #tintucnoibat h2{
color: #0093DD; color: #000000;
text-align: center;
text-transform: uppercase; text-transform: uppercase;
font-size: 30px; font-size: 30px;
padding-top: 20px; padding-top: 20px;
padding-bottom: 25px; padding-bottom: 20px;
font-family: Proxima Nova ExtraBold;
} }
#tintucnoibat .item-child{ #tintucnoibat .item-child{
border: 1px solid #56BC86;
background: white; background: white;
border-radius: 10px; border-radius: 10px;
margin-bottom: 35px; margin-bottom: 35px;
min-height: 28em;
position: relative;
} }
#tintucnoibat .title{ #tintucnoibat .title{
color: #0093DD; color: #0093DD;
...@@ -303,22 +308,27 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af ...@@ -303,22 +308,27 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af
padding: 8px 15px; padding: 8px 15px;
} }
#tintucnoibat .lienket a{ #tintucnoibat .lienket a{
border-radius: 20px; font-family: Proxima Nova;
border-radius: 25px;
display: inline-block; display: inline-block;
border: 1px solid #007bff; border: 1px solid #56BC86;
padding: 5px 25px; color: #56BC86;
padding: 10px 30px;
text-transform: uppercase; text-transform: uppercase;
font-size: 13px; font-size: 15px;
text-decoration: none; text-decoration: none;
} }
#tintucnoibat .lienket{ #tintucnoibat .lienket{
text-align: center; text-align: center;
padding-top: 20px; padding-top: 15px;
padding-bottom: 28px; padding-bottom: 20px;
position: absolute;
bottom: 10px;
width: 100%;
} }
#tintucnoibat .lienket a:hover{ #tintucnoibat .lienket a:hover{
color: white; color: white;
background: #007bff; background: #56BC86;
} }
#tintucnoibat .item-child img{ #tintucnoibat .item-child img{
cursor: pointer; cursor: pointer;
...@@ -330,7 +340,11 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af ...@@ -330,7 +340,11 @@ body:not(.custom-background-image):before, body:not(.custom-background-image):af
transform: scale(1.2); transform: scale(1.2);
} }
#tintucnoibat .item-child .img{ #tintucnoibat .item-child .img{
overflow: hidden; position: relative;
overflow: hidden;
width: 21.9em;
left: -1px;
top: -1px;
} }
#dungthumienphi .bentrai .dangkyngay a:hover{ #dungthumienphi .bentrai .dangkyngay a:hover{
opacity: 0.55; opacity: 0.55;
......
@charset 'UTF-8';
/* Slider */
.slick-loading .slick-list
{
background: #fff url('./ajax-loader.gif') center center no-repeat;
}
/* Icons */
@font-face
{
font-family: 'slick';
font-weight: normal;
font-style: normal;
src: url('./fonts/slick.eot');
src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');
}
/* Arrows */
.slick-prev,
.slick-next
{
font-size: 0;
line-height: 0;
position: absolute;
top: 50%;
display: block;
width: 20px;
height: 20px;
padding: 0;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
transform: translate(0, -50%);
cursor: pointer;
color: transparent;
border: none;
outline: none;
background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus
{
color: transparent;
outline: none;
background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before
{
opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before
{
opacity: .25;
}
.slick-prev:before,
.slick-next:before
{
font-family: 'slick';
font-size: 20px;
line-height: 1;
opacity: .75;
color: white;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-prev
{
left: -25px;
}
[dir='rtl'] .slick-prev
{
right: -25px;
left: auto;
}
.slick-prev:before
{
content: '←';
}
[dir='rtl'] .slick-prev:before
{
content: '→';
}
.slick-next
{
right: -25px;
}
[dir='rtl'] .slick-next
{
right: auto;
left: -25px;
}
.slick-next:before
{
content: '→';
}
[dir='rtl'] .slick-next:before
{
content: '←';
}
/* Dots */
.slick-dotted.slick-slider
{
margin-bottom: 30px;
}
.slick-dots
{
position: absolute;
bottom: -25px;
display: block;
width: 100%;
padding: 0;
margin: 0;
list-style: none;
text-align: center;
}
.slick-dots li
{
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button
{
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus
{
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before
{
opacity: 1;
}
.slick-dots li button:before
{
font-family: 'slick';
font-size: 6px;
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 20px;
height: 20px;
content: '•';
text-align: center;
opacity: .25;
color: black;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before
{
opacity: .75;
color: black;
}
/* Slider */
.slick-slider
{
position: relative;
display: block;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-khtml-user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
}
.slick-list
{
position: relative;
display: block;
overflow: hidden;
margin: 0;
padding: 0;
}
.slick-list:focus
{
outline: none;
}
.slick-list.dragging
{
cursor: pointer;
cursor: hand;
}
.slick-slider .slick-track,
.slick-slider .slick-list
{
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.slick-track
{
position: relative;
top: 0;
left: 0;
display: block;
margin-left: auto;
margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
display: table;
content: '';
}
.slick-track:after
{
clear: both;
}
.slick-loading .slick-track
{
visibility: hidden;
}
.slick-slide
{
display: none;
float: left;
height: 100%;
min-height: 1px;
}
[dir='rtl'] .slick-slide
{
float: right;
}
.slick-slide img
{
display: block;
}
.slick-slide.slick-loading img
{
display: none;
}
.slick-slide.dragging img
{
pointer-events: none;
}
.slick-initialized .slick-slide
{
display: block;
}
.slick-loading .slick-slide
{
visibility: hidden;
}
.slick-vertical .slick-slide
{
display: block;
height: auto;
border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
display: none;
}
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* @since Twenty Sixteen 1.0 * @since Twenty Sixteen 1.0
*/ */
$logo_footer = wp_get_attachment_image_src(55, '235x43'); $logo_footer = wp_get_attachment_image_src(6, '256x45');
$footer_bct = wp_get_attachment_image_src(49, '242x92'); $footer_bct = wp_get_attachment_image_src(49, '242x92');
$img_homepage = wp_get_attachment_image_src(56, '59x59'); $img_homepage = wp_get_attachment_image_src(56, '59x59');
...@@ -21,17 +21,22 @@ $img_homepage = wp_get_attachment_image_src(56, '59x59'); ...@@ -21,17 +21,22 @@ $img_homepage = wp_get_attachment_image_src(56, '59x59');
<div class="row footer-above"> <div class="row footer-above">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center">
<img src="<?php echo $logo_footer[0] ?>" class="img-fluid footer-logo"> <img src="<?php echo $logo_footer[0] ?>" class="img-fluid footer-logo">
<p class="footer-desc">TRUNG TÂM HỖ TRỢ HÓA ĐƠN ĐIỆN TỬ</p> <p class="footer-desc">TRUNG TÂM HỖ TRỢ A HÓA ĐƠN</p>
<div id="lienket">
<div class="btn btn-1"><a href="#">Đăng ký sử dụng</a></div>
<div class="btn btn-2"><a href="#">Đăng ký đại lý</a></div>
</div>
</div> </div>
</div> </div>
<div class="row footer-below"> <div class="row footer-below">
<div class="col-lg-5 col-md-5 col-sm-12 col-xs-12"> <div class="col-lg-5 col-md-5 col-sm-12 col-xs-12">
<p class="company-name">TẬP ĐOÀN KHÔNG GIAN SỐ TOÀN CẦU</p> <p class="company-name">Đơn vị chủ quản: Công ty Trách Nhiệm Hữu Hạn Linken</p>
<p class="company-info"><i class="fas fa-map-marker"></i>&nbsp;62 Nguyễn Huy Tưởng, Thanh Xuân, Hà Nội</p> <p class="company-info"><i class="fas fa-map-marker"></i>&nbsp;Trụ sở chính Hà Nội: Tầng 4, Số 137 Hoa Bằng, Cầu Giấy, HN</p>
<p class="company-info"><i class="fas fa-ticket-alt"></i>&nbsp;MST: 0106361479</p> <p class="company-info"><i class="fas fa-map-marker"></i>&nbsp;Chi Nhánh Hồ Chí Minh (NCC): 18A đường Cộng Hòa, Phường 12, Q.Tân Bình, TP HCM</p>
<p class="company-info"><i class="fas fa-globe"></i>&nbsp;Website: https://hoadonviet.vn</p> <p class="company-info"><i class="fas fa-ticket-alt"></i>&nbsp;Mã số thuế: 0106020687</p>
<p class="company-info"><i class="fas fa-phone"></i>&nbsp;Hotline: (+84)-2462944447</p> <p class="company-info"><i class="fas fa-phone"></i>&nbsp;Hotline: 096.426.3333</p>
<p class="company-info"><i class="fas fa-envelope"></i>&nbsp;Email: contact@hoadonviet.vn</p> <p class="company-info"><i class="fas fa-envelope"></i>&nbsp;Email: ngolinhbk@gmail.com</p>
</div> </div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12"> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<p class="footer-link">LIÊN KẾT</p> <p class="footer-link">LIÊN KẾT</p>
......
...@@ -592,27 +592,33 @@ function hdv_style() { ...@@ -592,27 +592,33 @@ function hdv_style() {
* Hàm get_stylesheet_uri() sẽ trả về giá trị dẫn đến file style.css của theme * Hàm get_stylesheet_uri() sẽ trả về giá trị dẫn đến file style.css của theme
* Nếu sử dụng child theme, thì file style.css này vẫn load ra từ theme mẹ * Nếu sử dụng child theme, thì file style.css này vẫn load ra từ theme mẹ
*/ */
wp_register_style( 'main-bootstrap', get_template_directory_uri() . '/css/bootstrap.css', 'all' ); wp_register_style('main-bootstrap', get_template_directory_uri() . '/css/bootstrap.css', 'all');
wp_register_style( 'fontawesome', get_template_directory_uri() . '/css/all.css', 'all' ); wp_register_style('fontawesome', get_template_directory_uri() . '/css/all.css', 'all');
wp_register_style( 'main-style', get_template_directory_uri() . '/css/hdv.css', 'all' ); wp_register_style('slicknav', get_template_directory_uri() . '/css/slicknav.css', 'all');
wp_register_style( 'slicknav', get_template_directory_uri() . '/css/slicknav.css', 'all' ); wp_register_style('slickcss', get_template_directory_uri() . '/css/slick.css', 'all');
wp_register_style( 'fontawesome', get_template_directory_uri() . '/css/all.css', 'all' ); wp_register_style('slick-themecss', get_template_directory_uri() . '/css/slick-theme.css', 'all');
wp_register_style( 'responsesive', get_template_directory_uri() . '/css/responsive.css', 'all' ); wp_register_style('fontawesome', get_template_directory_uri() . '/css/all.css', 'all');
wp_register_style('responsesive', get_template_directory_uri() . '/css/responsive.css', 'all');
wp_register_style('main-style', get_template_directory_uri() . '/css/hdv.css', 'all');
wp_register_script('main-jquery', get_template_directory_uri() . '/js/jquery-3.3.1.min.js', array('jquery'),'3.3', true); wp_register_script('main-jquery', get_template_directory_uri() . '/js/jquery-3.3.1.min.js', array('jquery'),'3.3', true);
wp_register_script('main-style', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'),'3.3', true); wp_register_script('main-style', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'),'4.3.1', true);
wp_register_script('slicknav-js', get_template_directory_uri() . '/js/jquery.slicknav.min.js', array('jquery'),'3.3', true); wp_register_script('slicknav-js', get_template_directory_uri() . '/js/jquery.slicknav.min.js', array('jquery'),'1.0.10', true);
wp_register_script('hdv-js', get_template_directory_uri() . '/js/hdv.js', array('jquery'),'3.3', true); wp_register_script('slick-carousel', get_template_directory_uri() . '/js/slick.min.js', array('jquery'),'1.8.1', true);
wp_register_script('hdv-js', get_template_directory_uri() . '/js/hdv.js', array('jquery'),'1.0', true);
wp_enqueue_style( 'main-bootstrap' );
wp_enqueue_style( 'main-style' ); wp_enqueue_style('main-bootstrap');
wp_enqueue_style( 'slicknav' ); wp_enqueue_style('slicknav');
wp_enqueue_style( 'fontawesome' ); wp_enqueue_style('slickcss');
wp_enqueue_style('slick-themecss');
wp_enqueue_script( 'main-jquery' ); wp_enqueue_style('fontawesome');
wp_enqueue_script( 'main-style' ); wp_enqueue_style('main-style');
wp_enqueue_script( 'slicknav-js' );
wp_enqueue_script( 'hdv-js' ); wp_enqueue_script('main-jquery');
wp_enqueue_script('main-style');
wp_enqueue_script('slicknav-js');
wp_enqueue_script('slick-carousel');
wp_enqueue_script('hdv-js');
} }
add_action( 'wp_enqueue_scripts', 'hdv_style' ); add_action( 'wp_enqueue_scripts', 'hdv_style' );
...@@ -632,7 +638,6 @@ function hdv_style_update() ...@@ -632,7 +638,6 @@ function hdv_style_update()
* Hàm get_stylesheet_uri() sẽ trả về giá trị dẫn đến file style.css của theme * Hàm get_stylesheet_uri() sẽ trả về giá trị dẫn đến file style.css của theme
* Nếu sử dụng child theme, thì file style.css này vẫn load ra từ theme mẹ * Nếu sử dụng child theme, thì file style.css này vẫn load ra từ theme mẹ
*/ */
wp_register_style('hdv-doanpv', get_template_directory_uri() . '/css/hdv-doanpv.css', 'all');
wp_register_style('hdv-hungdv', get_template_directory_uri() . '/css/hdv-hungdv.css', 'all'); wp_register_style('hdv-hungdv', get_template_directory_uri() . '/css/hdv-hungdv.css', 'all');
wp_register_style('hdv-huypq', get_template_directory_uri() . '/css/hdv-huypq.css', 'all'); wp_register_style('hdv-huypq', get_template_directory_uri() . '/css/hdv-huypq.css', 'all');
wp_register_style('hdv-thangpm', get_template_directory_uri() . '/css/hdv-thangpm.css', 'all'); wp_register_style('hdv-thangpm', get_template_directory_uri() . '/css/hdv-thangpm.css', 'all');
......
...@@ -38,4 +38,12 @@ $(document).ready(function(){ ...@@ -38,4 +38,12 @@ $(document).ready(function(){
$(this).find('.fa-angle-down').css('display','none'); $(this).find('.fa-angle-down').css('display','none');
} }
}); });
$('#price_slider').slick({
dots: true,
infinite: true,
slidesToShow: 3,
slidesToScroll: 3,
autoplaySpeed: 2000,
});
}) })
\ No newline at end of file
...@@ -1535,9 +1535,10 @@ blockquote:after, ...@@ -1535,9 +1535,10 @@ blockquote:after,
.site { .site {
background-image: url('images/subtraction.png'); background-image: url('images/subtraction.png');
background-position: top; background-position: right top;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: 77%;
background-origin: padding-box;
} }
.site-inner { .site-inner {
......
<div class="container">
<div class="row">
<div class="col col-xs-12 col-md-6">
<div class="bentrai">
<h2>Dùng thử <span>Miễn phí</span></h2>
<div class="phanmem">Phần mềm HOADONVIET</div>
<div class="phone"><span>Hotline: </span>(+84)-2462944447</div>
<div class="dangkyngay"><a href="#">Đăng ký ngay</a></div>
</div>
</div>
<div class="col col-xs-12 col-md-6">
<div class="img"><img src="<?php echo get_site_url() ?>/wp-content/uploads/2019/04/Group88.png" /></div>
</div>
</div>
</div>
\ No newline at end of file
<div id="salient-features">
<div class="container">
<div class="row">
<div class="col col-xs-12 col-md-12">
<div class="title-feature">
<h4>Tính năng nổi bật của A HÓA ĐƠN</h4>
</div>
<div class="feature-1">
<h4>HỆ THỐNG NỀN TẢNG</h4>
<ul>
<li>Hệ thống phần mềm hoạt động online trên internet, sử dụng phiên bản website tiện lợi, thân thiện cho người dùng.</li>
<li>Giao diện trực quan thân thiện, dễ dàng sử dụng. Hệ thống gửi mail thông báo hóa đơn và dễ dàng tra cứu hóa đơn.</li>
<li>Hệ thống hỗ trợ lưu trữ online và offline. Đảm bảo hoạt động thông suốt 24/24.</li>
<li>Có sẵn kho mẫu hóa đơn đa dạng do đó khách hàng có thể chủ động lựa chọn mẫu hóa đơn hoặc sử dụng dịch vụ thiết kế mẫu hóa đơn theo yêu cầu riêng của doanh nghiệp.</li>
<li>Hệ thống sử dụng tường lửa, hệ thống cân bằng tải, backup dữ liệu thường xuyền, đảm bảo tuyệt đối dữ liệu khách hàng.</li>
</ul>
</div>
<div class="feature-2">
<h4>TIỆN ÍCH KHÁC BIỆT</h4>
<ul>
<li>Hệ thống hỗ trợ cơ sở dữ liệu phân tán hoặc tập trung, có thể đặt ở nhiều nơi, đảm bảo dữ liệu của khác hàng được lưu riêng biệt, bảo mật.</li>
<li>Hệ thống hỗ trợ tìm kiếm dữ liệu lớn 1 cách nhanh chóng, khách hàng không phải mất thời gian chờ đợi.</li>
<li>Mô hình đại lý tiện lợi hỗ trợ khách hàng mọi lúc, mọi nơi.</li>
<li>Cung cấp mô hình dịch vụ SaaS linh động và dễ dàng triển khai, chỉ cần 1 phút là khách hàng có thể đăng ký thành công dịch vụ.</li>
<li>Đội ngũ nhân viên hỗ trợ nhiệt tình 24/24 trong quá trình khách hàng sử dụng dịch vụ.</li>
</ul>
</div>
<div class="feature-3">
<h4>KHẢ NĂNG MỞ RỘNG - KẾT NỐI</h4>
<ul>
<li>Hệ thống được thiết lập sẵn sàng cắm thêm nhiều server đáp ứng nhu cầu dữ liệu của khách hàng.</li>
<li>Kết nối nhanh chóng với các hệ thống khác của khách hàng qua giao diện API dễ sử dụng.</li>
<li>Đội ngũ kỹ thuật sẵn sàng kết nối tới hệ thống đã có của khách hàng theo API hoặc cơ sở dữ liệu của khách hàng.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment