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.222.91.173
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/library/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/themes/meto/includes/library/hook.php
<?php

/**
 * Hookup all the tags here.
 *
 * @package METO
 * @author  Shahbaz Ahmed <shahbazahmed9@hotmail.com>
 * @version 1.0
 */

/**
 * Load the default config
 */
function meto_load_default_hooks()
{
    $config = meto_WSH()->config('default');

    if (is_array($config)) {
        foreach ($config as $key => $more) {
            foreach ($more as $k => $value) {
                $func = is_array($value) ? $value[0] : $value;

                $priority = isset($value[1]) ? $value[1] : 99;
                $params   = isset($value[2]) ? $value[2] : 2;

                add_action($key, $func, $priority, $params);
            }
        }
    }
}

function meto_preloader()
{
    $options     = meto_WSH()->option();

    if (! $options->get('theme_preloader')) {
        return;
    } ?>
    <div class="pageloader" style="z-index: 999999;">
          <div class="loader">
            <?php include get_template_directory() . '/templates/loader.php' ?>
          </div>
    </div><!-- Pageloader -->
    <?php
}
/**
 * [meto_main_header_area description]
 *
 * @return [type] [description]
 */


function meto_main_header_area()
{
    $options     = meto_WSH()->option();

    $header_type = '';
    $header_e = 0;
    $header_d = '';

    if (is_page()) {
        $header_type = get_post_meta(get_the_ID(), 'header_source_type', true);
        $header_e    = get_post_meta(get_the_ID(), 'header_new_elementor_template', true);
        $header_d    = get_post_meta(get_the_ID(), 'header_style_settings');
    }

    if (! $header_type || $header_type == 'd') {
        $header_type = $options->get('header_source_type');
        $header_e = $options->get('header_elementor_template');
        $header_d = $options->get('header_style_settings');
    }

    // echo $header_type;
    // echo $header_e;exit;
    if ($header_type == 'e' and class_exists('\Elementor\Plugin') and $header_e) {
        echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display($header_e);

        return false;
    } elseif ($header_type == 'd' and class_exists('\Elementor\Plugin') and $header_d) {
        $header_meta = get_post_meta(get_the_ID(), 'header_style_settings');
        $header_option = $options->get('header_style_settings');
        $header = ($header_meta) ? $header_meta['0'] : $header_option;
    } else {
        $header_meta = get_post_meta(get_the_ID(), 'header_style_settings');
        $header_option = $options->get('header_style_settings');
        $header = ($header_meta) ? $header_meta['0'] : $header_option;
    }

    if ($header == 'header_v1') {
        meto_template_load('templates/header/default-header.php');
    } elseif ($header == 'header_v2') {
        meto_template_load('templates/header/header_v2.php');
    } elseif ($header == 'header_v3') {
        meto_template_load('templates/header/header_v3.php');
    } elseif ($header == 'header_v4') {
        meto_template_load('templates/header/header_v4.php');
    } elseif ($header == 'header_v5') {
        meto_template_load('templates/header/header_v5.php');
    } else {
        meto_template_load('templates/header/header_v2.php');
    }
}

/**
 * [meto_main_footer_area description]
 *
 * @return [type] [description]
 */

function meto_main_footer_area()
{
    $options     = meto_WSH()->option();

    $footer_type = '';
    $footer_e = 0;
    $footer_d = '';

    if (is_page()) {
        $footer_type = get_post_meta(get_the_ID(), 'footer_source_type', true);
        $footer_e    = get_post_meta(get_the_ID(), 'footer_new_elementor_template', true);
        $footer_d    = get_post_meta(get_the_ID(), 'footer_style_settings');
    }

    if (! $footer_type || $footer_type == 'd') {
        $footer_type = $options->get('footer_source_type');
        $footer_e = $options->get('footer_elementor_template');
        $footer_d = $options->get('footer_style_settings');
    }

    // echo $footer_type;
    // echo $footer_e;exit;
    if ($footer_type == 'e' and class_exists('\Elementor\Plugin') and $footer_e) {
        echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display($footer_e);

        return false;
    } elseif ($footer_type == 'd' and class_exists('\Elementor\Plugin') and $footer_d) {
        $footer_meta = get_post_meta(get_the_ID(), 'footer_style_settings');
        $footer_option = $options->get('footer_style_settings');
        $footer = ($footer_meta) ? $footer_meta['0'] : $footer_option;
    } else {
        $footer_meta = get_post_meta(get_the_ID(), 'footer_style_settings');
        $footer_option = $options->get('footer_style_settings');
        $footer = ($footer_meta) ? $footer_meta['0'] : $footer_option;
    }

    if ($footer == 'footer_v1') {
        meto_template_load('templates/footer/footer_set.php');
    } elseif ($footer == 'footer_v2') {
        meto_template_load('templates/footer/footer_v2.php');
    } elseif ($footer == 'footer_v3') {
        meto_template_load('templates/footer/footer_v3.php');
    } elseif ($footer == 'footer_v4') {
        meto_template_load('templates/footer/footer_v4.php');
    } elseif ($footer == 'footer_v5') {
        meto_template_load('templates/footer/footer_v5.php');
    } else {
        meto_template_load('templates/footer/footer_set.php');
    }
}

/**
 * [meto_sidebar description]
 *
 * @return [type] [description]
 */

function meto_sidebar($data)
{
    meto_template_load('templates/sidebar.php', compact('data'));
}

/**
 * [meto_banner description]
 *
 * @return [type] [description]
 */

function meto_banner($data)
{
    meto_template_load('templates/banner/banner.php', compact('data'));
}

Youez - 2016 - github.com/yon3zu
LinuXploit