403Webshell
Server IP : 141.193.213.10  /  Your IP : 216.73.216.101
Web Server : nginx
System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64
User : fpm200079 ( 200079)
PHP Version : 8.2.36
Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nas/content/live/bartislaw/wp-content/themes/spk/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /nas/content/live/bartislaw/wp-content/themes/spk/lib//visual-composer.php
<?php
/**
 * Visual Composer functions
 *
 * @package Spk Builder
 * @author Team Spk
 * @link https://www.speakeasymarketinginc.com/
 * 
 */
/* ---------------------------------------------------------------------------
 * Shortcodes | Image compatibility
 * --------------------------------------------------------------------------- */
if (!function_exists('lb_vc_image')) {

    function lb_vc_image($image = false, $isBase = false) {
        if ($image && is_numeric($image)) {
            $image = wp_get_attachment_image_src($image, 'full');
            $imgAlt = get_post_meta($image, '_wp_attachment_image_alt', true);
            $image = $image[0];
        }
//        if ($isBase && $image && !is_admin()) {
//            $img_encoded = file_get_contents($image);
//            $image = 'data:image/png;base64,' . base64_encode($img_encoded);
//        }
        return $image;
    }
}

/* ---------------------------------------------------------------------------
 * Shortcodes | Map
 * --------------------------------------------------------------------------- */
add_action('vc_before_init', 'lb_vc_integrateWithVC');
if (!function_exists('lb_vc_integrateWithVC')) {

    function lb_vc_integrateWithVC() {

        // Banner Section -------------------------------------------
        vc_map(
                array(
                    'base' => 'banner_section',
                    'name' => __('Banner Section', 'lb-opts'),
                    'category' => __('Spk Builder', 'lb-opts'),
                    'icon' => 'lb-vc-icon-pricing_item',
                    'params' => array(
                        array(
                            'param_name' => 'banner_text_hd',
                            'type' => 'textfield',
                            'heading' => __('insert banner text', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'banner_text_hd2',
                            'type' => 'textfield',
                            'heading' => __('insert banner text', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'banner_text_hd3',
                            'type' => 'textfield',
                            'heading' => __('insert banner text', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'link_title',
                            'type' => 'textfield',
                            'heading' => __('Button | Title', 'lb-opts'),
                            'description' => __('Link will appear only if this field will be filled.', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'link',
                            'type' => 'textfield',
                            'heading' => __('Button | Link', 'lb-opts'),
                            'description' => __('Link will appear only if this field will be filled.', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'attorney',
                            'type' => 'attach_image',
                            'heading' => __('Banner Attorney', 'lb-opts'),
                            'admin_label' => false,
                        ),
       array(
                            'param_name' => 'text_image',
                            'type' => 'attach_image',
                            'heading' => __('Banner Text Image', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'attorney_link',
                            'type' => 'textfield',
                            'heading' => __('Attorney Link', 'lb-opts'),
                            'description' => __('Link will appear only if this field will be filled.', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'color',
                            'type' => 'colorpicker',
                            'heading' => __('Pricing Color', 'lb-opts'),
                            'admin_label' => false,
                        ),
                    )
        ));
        vc_map(array(
            'base' => 'lb_icon_box',
            'name' => __('Icon Box', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-pricing_item',
            'params' => array(
                array(
                    'param_name' => 'title',
                    'type' => 'textfield',
                    'heading' => __('Title', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'sub_title',
                    'type' => 'textarea',
                    'heading' => __('Sub Title', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'button',
                    'type' => 'textfield',
                    'heading' => __('Button| Text', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'link',
                    'type' => 'textfield',
                    'heading' => __('Button| Link', 'lb-opts'),
                    'admin_label' => true,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_practice_area',
            'name' => __('Practice Area', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-counter',
            'params' => array(
                array(
                    'param_name' => 'practice_hd',
                    'type' => 'textfield',
                    'heading' => __('Practice Area Heading', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
            )
        ));
                vc_map(array(
            'base' => 'lb_practice_area2',
            'name' => __('Practice Area 2', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-counter',
            'params' => array(
                array(
                    'param_name' => 'practice_hd',
                    'type' => 'textfield',
                    'heading' => __('Practice Area Heading', 'lb-opts'),
                    'admin_label' => false,
                ),
                    array(
                    'param_name' => 'practice_sub_hd',
                    'type' => 'textarea',
                    'heading' => __('Practice Area Sub Heading', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_practice_area_icon',
            'name' => __('Practice Area Icon', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-practice_posts',
            'params' => array(
                array(
                    'param_name' => 'practice_hd',
                    'type' => 'textfield',
                    'heading' => __('Practice Area Heading', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_testimonials',
            'name' => __('Testimonial Carousel', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-testimonials',
            'params' => array(
                array(
                    'param_name' => 'testimonial_hd',
                    'type' => 'textfield',
                    'heading' => __('Testimonial Heading', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'button_link',
                    'type' => 'textfield',
                    'heading' => __('Testimonial Button', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
                array(
                    'param_name' => 'speed',
                    'type' => 'textfield',
                    'heading' => __('Speed', 'lb-opts'),
                    'description' => __('Carousel Speed', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 500,
                ),
                array(
                    'param_name' => 'count',
                    'type' => 'textfield',
                    'heading' => __('Count', 'lb-opts'),
                    'description' => __('Number of testimonials to show', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 3,
                ),
                array(
                    'param_name' => 'category_multi',
                    'type' => 'textfield',
                    'heading' => __('Categories', 'lb-opts'),
                    'description' => __('Slugs should be separated with <strong>coma</strong> (,)', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'style',
                    'type' => 'dropdown',
                    'heading' => __('Style', 'lb-opts'),
                    'admin_label' => false,
                    'value' => array_flip(array(
                        'one' => 'One',
                        'two' => 'Two',
                        'three' => 'Three',
                    )),
                ),
                array(
                    'param_name' => 'text_color',
                    'type' => 'colorpicker',
                    'heading' => __('Color', 'lb-opts'),
                    'admin_label' => false,
                )
            )
        ));
        vc_map(array(
            'base' => 'lb_testimonials_inn',
            'name' => __('Testimonial Inner Page', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-testimonials',
            'params' => array(
                array(
                    'param_name' => 'testimonial_hd',
                    'type' => 'textfield',
                    'heading' => __('Heading', 'lb-opts'),
                    'description' => __('Carousel Speed', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 500,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
                array(
                    'param_name' => 'speed',
                    'type' => 'textfield',
                    'heading' => __('Speed', 'lb-opts'),
                    'description' => __('Carousel Speed', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 500,
                ),
                array(
                    'param_name' => 'count',
                    'type' => 'textfield',
                    'heading' => __('Count', 'lb-opts'),
                    'description' => __('Number of testimonials to show', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 3,
                ),
                array(
                    'param_name' => 'category_multi',
                    'type' => 'textfield',
                    'heading' => __('Categories', 'lb-opts'),
                    'description' => __('Slugs should be separated with <strong>coma</strong> (,)', 'lb-opts'),
                    'admin_label' => true,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_accolades',
            'name' => __('Accolades', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-accolades_posts',
            'params' => array(
                array(
                    'param_name' => 'achd',
                    'type' => 'textfield',
                    'heading' => __('Heading', 'lb-opts'),
                    'admin_label' => true,
                ),
                array(
                    'param_name' => 'visible_items',
                    'type' => 'textfield',
                    'heading' => __('Items', 'lb-opts'),
                    'description' => __('Number of itmes per slide', 'lb-opts'),
                    'admin_label' => true,
                    'value' => 1,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_youtube',
            'name' => __('Youtube', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-youtube_posts',
            'params' => array(
                array(
                    'param_name' => 'youtube_hd',
                    'type' => 'textfield',
                    'heading' => __('Youtube heading', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'youtube_id',
                    'type' => 'textfield',
                    'heading' => __('You Tube Id', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                                array(
                    'param_name' => 'content_heading',
                    'type' => 'textfield',
                    'heading' => __('content heading', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'content_area',
                    'type' => 'textarea',
                    'heading' => __('content area', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'content_btn',
                    'type' => 'textfield',
                    'heading' => __('content area button link', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_vimeo',
            'name' => __('Vimeo Code', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-youtube_posts',
            'params' => array(
                array(
                    'param_name' => 'vimeo_hd',
                    'type' => 'textfield',
                    'heading' => __('Vimeo heading', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'vimeo_id_code',
                    'type' => 'textfield',
                    'heading' => __('Vimeo Id', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_newsletter',
            'name' => __('Newsletter', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
                array(
                    'param_name' => 'heading',
                    'type' => 'textfield',
                    'heading' => __('Newsletter Heading', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'text',
                    'type' => 'textfield',
                    'heading' => __('Newsletter Text', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_map',
            'name' => __('Map/Iframe', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
                array(
                    'param_name' => 'map_iframe',
                    'type' => 'textfield',
                    'heading' => __('Map Iframe', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'static_map_link',
                    'type' => 'textfield',
                    'heading' => __('Insert Google Static Map Link', 'lb-opts'),
                    'description' => __('Enter Embeded Code', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'image',
                    'type' => 'attach_image',
                    'heading' => __('Map Image', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_faqs',
            'name' => __('FAQS', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
            )
        ));
        vc_map(array(
            'base' => 'lb_videos',
            'name' => __('Videos', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
            )
        ));
        vc_map(
                array(
                    'base' => 'lb_address',
                    'name' => __('Home Office Location', 'lb-opts'),
                    'category' => __('Spk Builder', 'lb-opts'),
                    'icon' => 'lb-vc-icon-pricing_item',
                    'params' => array(
                        array(
                            'param_name' => 'style',
                            'type' => 'dropdown',
                            'heading' => __('Style', 'lb-opts'),
                            'admin_label' => false,
                            'value' => array_flip(array(
                                '1' => 'One Office Location',
                                '2' => 'Two Office Locations',
                                '3' => 'Three Office Locations',
                            )),
                        ),
                        array(
                            'param_name' => 'heading',
                            'type' => 'textfield',
                            'heading' => __('Main heading', 'lb-opts'),
                            'description' => __('Insert Text For Heading.', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'address1',
                            'type' => 'textarea',
                            'heading' => __('Office Location 1', 'lb-opts'),
                            'admin_label' => false,
                            'dependency' => array(
                                'element' => 'style',
                                'value' => '1'
                            ),
                        ),
                        array(
                            'param_name' => 'phone1',
                            'type' => 'textfield',
                            'heading' => __('Insert Phone 1', 'lb-opts'),
                            'admin_label' => false,
                            'dependency' => array(
                                'element' => 'style',
                                'value' => '1'
                            ),
                        ),
                        array(
                            'param_name' => 'fax1',
                            'type' => 'textfield',
                            'heading' => __('Insert Fax 1', 'lb-opts'),
                            'admin_label' => false,
                            'dependency' => array(
                                'element' => 'style',
                                'value' => '1'
                            ),
                        ),
                    )
        ));
        vc_map(
                array(
                    'base' => 'lb_contactpage',
                    'name' => __('lb_contactpage', 'lb-opts'),
                    'category' => __('Spk Builder', 'lb-opts'),
                    'icon' => 'lb-vc-icon-pricing_item',
                    'params' => array(
                        array(
                            'param_name' => 'style',
                            'type' => 'dropdown',
                            'heading' => __('Style', 'lb-opts'),
                            'admin_label' => false,
                            'value' => array_flip(array(
                                '1' => 'One Office Location',
                                '2' => 'Two Office Location',
                            )),
                        ),
                        array(
                            'param_name' => 'office_hd',
                            'type' => 'textfield',
                            'heading' => __('Office Heading', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'office_hd2',
                            'type' => 'textfield',
                            'heading' => __('Office Heading 2', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'address1',
                            'type' => 'textarea',
                            'heading' => __('Office Location 1', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'address2',
                            'type' => 'textarea',
                            'heading' => __('Office Location 2', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'phone1',
                            'type' => 'textfield',
                            'heading' => __('Insert phone1', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'phone2',
                            'type' => 'textfield',
                            'heading' => __('Insert Phone 2', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'fax1',
                            'type' => 'textfield',
                            'heading' => __('Insert Fax 1', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'phone_text',
                            'type' => 'textarea',
                            'heading' => __('Insert Hour Text', 'lb-opts'),
                            'admin_label' => true,
                        ),
                        array(
                            'param_name' => 'cont_img',
                            'type' => 'attach_image',
                            'heading' => __('Insert Office Image', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'map_iframe',
                            'type' => 'textfield',
                            'heading' => __('Map Iframe', 'lb-opts'),
                            'description' => __('Enter Embeded Code', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'map_image',
                            'type' => 'attach_image',
                            'heading' => __('Insert Map Image', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'map_iframe2',
                            'type' => 'textfield',
                            'heading' => __('Map Iframe 2', 'lb-opts'),
                            'description' => __('Enter Embeded Code', 'lb-opts'),
                            'admin_label' => false,
                        ),
                        array(
                            'param_name' => 'map_image2',
                            'type' => 'attach_image',
                            'heading' => __('Insert Map Image', 'lb-opts'),
                            'admin_label' => false,
                        ),
                    )
        ));
        vc_map(array(
            'base' => 'number',
            'name' => __('Number Shortcode', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
            )
        ));


        vc_map(array(
            'base' => 'lb_home_Cform',
            'name' => __('Home CForm', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
                array(
                    'param_name' => 'contact_hd',
                    'type' => 'textfield',
                    'heading' => __('Heading', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'cform_text',
                    'type' => 'textfield',
                    'heading' => __('Cform Text', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => false,
                ),
                array(
                    'param_name' => 'text_color',
                    'type' => 'colorpicker',
                    'heading' => __('Pricing Color', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
        vc_map(array(
            'base' => 'lb_home_content_right',
            'name' => __('Home Content Right', 'lb-opts'),
            'category' => __('Spk Builder', 'lb-opts'),
            'icon' => 'lb-vc-icon-map_posts',
            'params' => array(
                array(
                    'param_name' => 'heading',
                    'type' => 'textfield',
                    'heading' => __('Enter Heading', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => TRUE,
                ),
                array(
                    'param_name' => 'content_area',
                    'type' => 'textarea',
                    'heading' => __('Text 1', 'lb-opts'),
                    'description' => __('Enter Text', 'lb-opts'),
                    'admin_label' => false,
                ),
            )
        ));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit