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 : 3.137.170.76
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/common.php
<?php

namespace METO\Includes\Classes;

/**
 * Common functions
 */
class Common
{
    public static $instance;

    public function __construct()
    {
    }

    public static function instance()
    {
        if (is_null(self::$instance)) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    /**
     * [data description]
     *
     * @param  string $emplate [description]
     *
     * @return [type]          [description]
     */
    public function data($template = 'blog')
    {
        $this->template = $template;


        return $this;
    }

    /**
     * [get description]
     *
     * @return [type] [description]
     */
    public function get()
    {
        $data = (array) $this->blog();

        switch ($this->template) {

            case 'blog':
            case 'author':
            case 'search':
            case 'tag':
            case '404':
            case 'category':
            case 'archive':
                return $this->blog($this->template);
                break;
            case 'single':
                return $this->single($this->template);
                break;
            case 'single-meto_service':
                return $this->single($this->template);
                break;
            case 'single-meto_project':
                return $this->single($this->template);
                break;
			case 'single-meto_team':
                return $this->single($this->template);
                break;
            case 'shop':
                return $this->single($this->template);
                break;
            default:
                #code...
                break;
        }
    }

    /**
     * Blog pages banner, sidebar and layout data.
     *
     * @param  string $template The tempalte need to return the data for.
     *
     * @return [type]           [description]
     */
    public function blog($template = 'blog')
    {
        global $wp_query;
        $options = meto_WSH()->option();

        if (($wp_query->is_posts_page && 'blog' == $template) || $template == 'page') {
            $page_id = ($wp_query->is_posts_page) ? $wp_query->queried_object->ID : get_the_ID();

            $return = [
                'layout'            => meto_meta('sidebar_sidebar_layout', $page_id, 'right'),
                'sidebar_type'      => meto_meta('sidebar_source_type', $page_id, 'd'),
                'sidebar_elementor' => meto_meta('sidebar_elementor_template', $page_id),
                'sidebar'           => meto_meta('sidebar_page_sidebar', $page_id, 'default-sidebar'),
                'banner_type'       => meto_meta('banner_source_type', $page_id),
                'banner_elementor'  => meto_meta('banner_elementor_template', $page_id),
                'banner'            => meto_set(meto_meta('banner_page_background', $page_id), 'url'),
                'title'             => meto_meta('banner_banner_title', $page_id),
                'enable_banner'     => meto_meta('banner_page_banner', $page_id),
            ];
        } else {
            $enable_banner = $template . '_page_banner';
            $title         = $template . '_banner_title';
            $banner        = $template . '_page_background';
            $layout        = $template . '_sidebar_layout';
            $sidebar       = $template . '_page_sidebar';
            $bg            = $options->get($banner);

            $return = [
                'enable_banner' => $options->get($enable_banner),
                'title'         => $options->get($title) ? $options->get($title) : meto_the_title($template),
                'banner'        => meto_set($bg, 'url'),
                'sidebar'       => $options->get($sidebar, 'default-sidebar'),
                'layout'        => $options->get($layout, 'right'),
            ];
        }
        $return['tpl-type']      = $options->get($template . '_source_type');
        $return['tpl-elementor'] = $options->get($template . '_elementor_template');
        $return['author']        = $options->get($template . '_post_author');
        $return['date']          = $options->get($template . '_post_date');
        $return['comments']      = $options->get($template . '_post_comments');


        return new DotNotation($return);
    }


    /**
     * Post detail and custom post types datail meta.
     *
     * @param  string $template The template for which data is need to be returned.
     *
     * @return [type]           [description]
     */


    public function single($template = 'single')
    {
        global $wp_query;
        $options = meto_WSH()->option();

        $page_id = ($wp_query->is_posts_page) ? $wp_query->queried_object->ID : get_the_ID();
        $title = meto_meta('banner_banner_title', $page_id);

        $return = [
            'tpl-type'          => $options->get($template . '_source_type', 'd'),
            'tpl-elementor'     => $options->get($template . '_elementor_template'),
            'layout'            => meto_meta('sidebar_sidebar_layout', $page_id, 'right'),
            'sidebar_type'      => meto_meta('sidebar_source_type', $page_id, 'd'),
            'sidebar_elementor' => meto_meta('sidebar_elementor_template', $page_id),
            'sidebar'           => meto_meta('sidebar_page_sidebar', $page_id, 'default-sidebar'),
            'banner_type'       => meto_meta('banner_source_type', $page_id),
            'banner_elementor'  => meto_meta('banner_elementor_template', $page_id),
            'banner'            => meto_set(meto_meta('banner_page_background', $page_id), 'url'),
            'title'             => ($title),
            'enable_banner'     => meto_meta('banner_page_banner', $page_id),
            'date'              => $options->get('single_post_date', 1),
            'author'            => $options->get('single_post_author', 1),
            'comments'          => $options->get('single_post_comments', 1),
            'tag'               => $options->get('single_post_tag'),
            'share'             => $options->get('single_post_share'),
            'share_list'        => $options->get('single_social_share'),
            'author_box'        => $options->get('single_post_author_box'),
        ];


        return new DotNotation($return);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit