| Server IP : 212.183.175.188 / Your IP : 216.73.217.18 Web Server : Apache System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 User : cvevolpi ( 10022) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinelPROD/visualComposer/ |
Upload File : |
<?php
// ------------------------------------------------------------------------------
// TESTIMONIAL 1
// ------------------------------------------------------------------------------
function vc_theme_vc_testimonial_1($atts, $content = null) {
$defaults = array (
'title' => '',
'position' => '',
'image' => '',
'el_class' => '',
);
$atts = sc_default_params ( $defaults, $atts );
$text = '';
$text .= '<div class="testimonial-1 '.$atts['el_class'].'">';
if (! empty ( $atts ['image'] )) {
$image = ffGalleryCollection::getImage ( $atts ['image'] );
if( !empty( $image ) ){
$text .= '<img class="testimonial_photo" src="' . $image->image->resize(69,69,true) . '" alt="">';
}
}
$text .= '<div class="testimonial_content">';
$text .= sc_wrap_with_p_tag ( do_shortcode ( $content ) );
$text .= '</div>';
if (! empty ( $atts ['title'] )) {
$text .= '<h3 class="testimonial_name">' . $atts ['title'] . '</h3>';
}
$text .= '</div>';
return wpb_js_remove_wpautop ( $text );
}
add_shortcode ( 'vc_testimonial_1', 'vc_theme_vc_testimonial_1' );
vc_map ( array (
"name" => __ ( "Testimonial 1", "js_composer" ),
"base" => "vc_testimonial_1",
"icon" => "icon-wpb-layer-shape-text",
"wrapper_class" => "clearfix",
"category" => __ ( 'Content', 'js_composer' ),
"params" => array (
array (
"type" => "attach_image",
"heading" => __ ( "Image", "js_composer" ),
"param_name" => "image",
"description" => __ ( "Member Image", "js_composer" )
),
array (
"type" => "textfield",
"heading" => __ ( "Name", "js_composer" ),
"param_name" => "title",
"description" => __ ( "Name", "js_composer" )
),
array (
"type" => "textarea",
"holder" => "div",
"heading" => __ ( "Text", "js_composer" ),
"param_name" => "content",
"value" => __ ( "Soluptatem accusantium dolorem laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore. veritatis et quasi architecto beatae.", "js_composer" )
),
// $add_css_animation,
array (
"type" => "textfield",
"heading" => __ ( "Extra class name", "js_composer" ),
"param_name" => "el_class",
"description" => __ ( "If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer" )
)
)
) );
// ------------------------------------------------------------------------------
// TESTIMONIAL 2
// ------------------------------------------------------------------------------
function vc_theme_vc_testimonial_2($atts, $content = null) {
$defaults = array (
'title' => '',
'position' => '',
'image' => '',
'el_class' => '',
);
$atts = sc_default_params ( $defaults, $atts );
$text = '';
$text .= '<div class="testimonial-2 '.$atts['el_class'].'">';
$text .= '<div class="testimonial_content">';
$text .= '<div class="testimonial_content_inner">';
$text .= sc_wrap_with_p_tag ( do_shortcode ( $content ) );
$text .= '</div>';
$text .= '</div>';
$text .= '<div class="testimonial_author clearfix">';
if (! empty ( $atts ['image'] )) {
$image = ffGalleryCollection::getImage ( $atts ['image'] );
if( !empty( $image ) ){
$text .= '<img class="testimonial_photo" src="' . $image->image->resize(40,40,true) . '" alt="" />';
}
}
if (! empty ( $atts ['title'] )) {
$text .= '<h3 class="testimonial_name">' . $atts ['title'] . '</h3>';
}
if (! empty ( $atts ['position'] )) {
$text .= '<div class="testimonial_position">' . $atts ['position'] . '</div>';
}
$text .= '</div>';
$text .= '</div>';
return wpb_js_remove_wpautop ( $text );
}
add_shortcode ( 'vc_testimonial_2', 'vc_theme_vc_testimonial_2' );
vc_map ( array (
"name" => __ ( "Testimonial 2", "js_composer" ),
"base" => "vc_testimonial_2",
"icon" => "icon-wpb-layer-shape-text",
"wrapper_class" => "clearfix",
"category" => __ ( 'Content', 'js_composer' ),
"params" => array (
array (
"type" => "attach_image",
"heading" => __ ( "Image", "js_composer" ),
"param_name" => "image",
"description" => __ ( "Member Image", "js_composer" )
),
array (
"type" => "textfield",
"heading" => __ ( "Name", "js_composer" ),
"param_name" => "title",
"description" => __ ( "Name", "js_composer" )
),
array (
"type" => "textfield",
"heading" => __ ( "Position", "js_composer" ),
"param_name" => "position",
"description" => __ ( "Position", "js_composer" )
),
array (
"type" => "textarea",
"holder" => "div",
"heading" => __ ( "Text", "js_composer" ),
"param_name" => "content",
"value" => __ ( "Soluptatem accusantium dolorem laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore. veritatis et quasi architecto beatae.", "js_composer" )
),
// $add_css_animation,
array (
"type" => "textfield",
"heading" => __ ( "Extra class name", "js_composer" ),
"param_name" => "el_class",
"description" => __ ( "If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer" )
)
)
) );
// ------------------------------------------------------------------------------
// TESTIMONIAL 3
// ------------------------------------------------------------------------------
function vc_theme_vc_testimonial_3($atts, $content = null) {
$defaults = array (
'title' => '',
'position' => '',
'image' => '',
'el_class' => '',
);
$atts = sc_default_params ( $defaults, $atts );
$text = '';
$text .= '<div class="testimonial-3 '.$atts['el_class'].'">';
$text .= '<div class="testimonial_content">';
$text .= '<div class="testimonial_content_inner">';
$text .= sc_wrap_with_p_tag ( do_shortcode ( $content ) );
$text .= '</div>';
$text .= '</div>';
$text .= '<div class="testimonial_author clearfix">';
if (! empty ( $atts ['title'] )) {
$text .= '<h3 class="testimonial_name">' . $atts ['title'] . '</h3>';
}
if (! empty ( $atts ['position'] )) {
$text .= '<div class="testimonial_position">' . $atts ['position'] . '</div>';
}
$text .= '</div>';
$text .= '</div>';
return wpb_js_remove_wpautop ( $text );
}
add_shortcode ( 'vc_testimonial_3', 'vc_theme_vc_testimonial_3' );
vc_map ( array (
"name" => __ ( "Testimonial 3", "js_composer" ),
"base" => "vc_testimonial_3",
"icon" => "icon-wpb-layer-shape-text",
"wrapper_class" => "clearfix",
"category" => __ ( 'Content', 'js_composer' ),
"params" => array (
array (
"type" => "textfield",
"heading" => __ ( "Name", "js_composer" ),
"param_name" => "title",
"description" => __ ( "Name", "js_composer" )
),
array (
"type" => "textfield",
"heading" => __ ( "Position", "js_composer" ),
"param_name" => "position",
"description" => __ ( "Position", "js_composer" )
),
array (
"type" => "textarea",
"holder" => "div",
"heading" => __ ( "Text", "js_composer" ),
"param_name" => "content",
"value" => __ ( "Soluptatem accusantium dolorem laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore. veritatis et quasi architecto beatae.", "js_composer" )
),
array (
"type" => "textfield",
"heading" => __ ( "Extra class name", "js_composer" ),
"param_name" => "el_class",
"description" => __ ( "If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer" )
)
)
) );