✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/blackpussy06/public_html/wp-content/themes/popularis-ecommerce//functions.php
<?php
/**
 * The current version of the theme.
 */
define('POPULARIS_ECOMMERCE_VERSION', '1.0.0');

add_action('after_setup_theme', 'popularis_ecommerce_setup');

if (!function_exists('popularis_ecommerce_setup')) :

    /**
     * Global functions
     */
    function popularis_ecommerce_setup() {

        // Theme lang.
        load_theme_textdomain('popularis-ecommerce', get_template_directory() . '/languages');

        // Register Menus.
        register_nav_menus(
            array(
                'main_menu' => esc_html__('Main Menu', 'popularis-ecommerce'),
            )
        );

        // Add Custom Background Support.
        $args = array(
            'default-color' => 'ffffff',
        );
        
        add_theme_support('custom-background', $args);

        add_theme_support('custom-logo', array(
            'height' => 60,
            'width' => 170,
            'flex-height' => true,
            'flex-width' => true,
            'header-text' => array('site-title', 'site-description'),
        ));
        
        add_theme_support('post-thumbnails');
        set_post_thumbnail_size(300, 300, true);
        add_image_size('popularis-ecommerce-img', 1140, 600, true);
        
        // Set the default content width.
        $GLOBALS['content_width'] = 1140;

        // WooCommerce support.
        add_theme_support('woocommerce');
        add_theme_support('wc-product-gallery-zoom');
        add_theme_support('wc-product-gallery-lightbox');
        add_theme_support('wc-product-gallery-slider');
        add_theme_support('html5', array('search-form'));
        /*
         * This theme styles the visual editor to resemble the theme style,
         * specifically font, colors, icons, and column width.
         */
        add_editor_style(array('css/bootstrap.css', popularis_ecommerce_fonts_url(), 'css/editor-style.css'));
        
        add_theme_support('automatic-feed-links');

        // Add Title Tag Support.
        add_theme_support('title-tag');
        
        // Recommend plugins.
        add_theme_support('recommend-plugins', array(
            'popularis-extra' => array(
                'name' => 'Popularis Extra',
                'active_filename' => 'popularis-extra/popularis-extra.php',
                /* translators: %s plugin name string */
                'description' => sprintf(esc_html__('To take full advantage of all the features this theme has to offer, please install and activate the %s plugin.', 'popularis-ecommerce'), '<strong>Popularis Extra</strong>'),
            ),
            'elementor' => array(
                'name' => 'Elementor Page Builder',
                'active_filename' => 'elementor/elementor.php',
                /* translators: %s plugin name string */
                'description' => esc_html__('The most advanced frontend drag & drop page builder.', 'popularis-ecommerce'),
            ),
            'woocommerce' => array(
                'name' => 'WooCommerce',
                'active_filename' => 'woocommerce/woocommerce.php',
                /* translators: %s plugin name string */
                'description' => sprintf(esc_attr__('To enable shop features, please install and activate the %s plugin.', 'popularis-ecommerce'), '<strong>WooCommerce</strong>'),
            ),
        ));
    }

endif;

function popularis_ecommerce_body_classes( $classes ) {
    // Add class if the site title and tagline is hidden.
    if ( display_header_text() == true) {
	$classes[] = 'title-tagline-hidden';
    }
    
    return $classes;
    
}
add_filter( 'body_class', 'popularis_ecommerce_body_classes' );


/**
 * Register custom fonts.
 */
function popularis_ecommerce_fonts_url() {
    $fonts_url = '';

    /**
     * Translators: If there are characters in your language that are not
     * supported by Open Sans Condensed, translate this to 'off'. Do not translate
     * into your own language.
     */
    $font = _x('on', 'Open Sans Condensed font: on or off', 'popularis-ecommerce');

    if ('off' !== $font) {
        $font_families = array();

        $font_families[] = 'Open Sans Condensed:300,500,700';

        $query_args = array(
            'family' => urlencode(implode('|', $font_families)),
            'subset' => urlencode('cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese'),
        );

        $fonts_url = add_query_arg($query_args, 'https://fonts.googleapis.com/css');
    }

    return esc_url_raw($fonts_url);
}

/**
 * Add preconnect for Google Fonts.
 */
function popularis_ecommerce_resource_hints($urls, $relation_type) {
    if (wp_style_is('popularis-fonts', 'queue') && 'preconnect' === $relation_type) {
        $urls[] = array(
            'href' => 'https://fonts.gstatic.com',
            'crossorigin',
        );
    }

    return $urls;
}

add_filter('wp_resource_hints', 'popularis_ecommerce_resource_hints', 10, 2);

/**
 * Enqueue Styles 
 */
function popularis_ecommerce_theme_stylesheets() {
    wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', array(), '3.3.7');
    wp_enqueue_style('hc-offcanvas-nav', get_template_directory_uri() . '/assets/css/hc-offcanvas-nav.min.css', array(), POPULARIS_ECOMMERCE_VERSION);
    // Theme stylesheet.
    wp_enqueue_style('popularis-stylesheet', get_stylesheet_uri(), array('bootstrap'), POPULARIS_ECOMMERCE_VERSION);
    // Load Font Awesome css.
    wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '4.7.0');
    // Add custom fonts, used in the main stylesheet.
    wp_enqueue_style('popularis-fonts', popularis_ecommerce_fonts_url(), array(), null);
    if (class_exists('WooCommerce')) {
        wp_enqueue_style('popularis-woocommerce', get_template_directory_uri() . '/assets/css/woocommerce.css', array('bootstrap'), POPULARIS_ECOMMERCE_VERSION);
    }
}

add_action('wp_enqueue_scripts', 'popularis_ecommerce_theme_stylesheets');

/**
 * Register Bootstrap JS with jquery
 */
function popularis_ecommerce_theme_js() {
    wp_enqueue_script('hc-offcanvas-nav', get_template_directory_uri() . '/assets/js/hc-offcanvas-nav.min.js', array('jquery'), POPULARIS_ECOMMERCE_VERSION, true);
    wp_enqueue_script('popularis-theme-js', get_template_directory_uri() . '/assets/js/customscript.js', array('jquery'), POPULARIS_ECOMMERCE_VERSION, true);
}

add_action('wp_enqueue_scripts', 'popularis_ecommerce_theme_js');

/**
 * Set Content Width
 */
function popularis_ecommerce_content_width() {

    $content_width = $GLOBALS['content_width'];

    if (is_active_sidebar('sidebar-1')) {
        $content_width = 750;
    } else {
        $content_width = 1040;
    }

    /**
     * Filter content width of the theme.
     */
    $GLOBALS['content_width'] = apply_filters('popularis_ecommerce_content_width', $content_width);
}

add_action('template_redirect', 'popularis_ecommerce_content_width', 0);

/**
 * Register Custom Navigation Walker include custom menu widget to use walkerclass
 */
require_once( trailingslashit(get_template_directory()) . 'inc/wp_bootstrap_navwalker.php' );

/**
 * Register Theme Extra Functions
 */
require_once( trailingslashit(get_template_directory()) . 'inc/extra.php' );

/**
 *  Theme Page
 */
function popularis_ecommerce_theme_actions() {
	require_once( trailingslashit(get_template_directory()) . 'inc/admin/dashboard.php' );
	require_once( trailingslashit(get_template_directory()) . 'inc/admin/customizer.php' );
}

add_action('init', 'popularis_ecommerce_theme_actions');

/**
 * Register WooCommerce functions
 */
if (class_exists('WooCommerce')) {
    require_once( trailingslashit(get_template_directory()) . 'inc/woocommerce.php' );
}

add_action('widgets_init', 'popularis_ecommerce_widgets_init');

/**
 * Register the Sidebar(s)
 */
function popularis_ecommerce_widgets_init() {
    register_sidebar(
        array(
            'name' => esc_html__('Sidebar', 'popularis-ecommerce'),
            'id' => 'sidebar-1',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<div class="widget-title"><h3>',
            'after_title' => '</h3></div>',
        )
    );
    register_sidebar(
        array(
            'name' => esc_html__('Top Bar Section', 'popularis-ecommerce'),
            'id' => 'popularis-ecommerce-top-bar-area',
            'before_widget' => '<div id="%1$s" class="widget %2$s col-sm-4">',
            'after_widget' => '</div>',
            'before_title' => '<div class="widget-title"><h3>',
            'after_title' => '</h3></div>',
        )
    );
	register_sidebar(
        array(
            'name' => esc_html__('Header Section', 'popularis-ecommerce'),
            'id' => 'popularis-ecommerce-header',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<div class="widget-title"><h3>',
            'after_title' => '</h3></div>',
        )
    );
    register_sidebar(
        array(
            'name' => esc_html__('Footer Section', 'popularis-ecommerce'),
            'id' => 'popularis-ecommerce-footer-area',
            'before_widget' => '<div id="%1$s" class="widget %2$s col-md-3">',
            'after_widget' => '</div>',
            'before_title' => '<div class="widget-title"><h3>',
            'after_title' => '</h3></div>',
        )
    );
}

if ( ! function_exists( 'wp_body_open' ) ) :
    /**
     * Fire the wp_body_open action.
     *
     * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
     *
     */
    function wp_body_open() {
        /**
         * Triggered after the opening <body> tag.
         *
         */
        do_action( 'wp_body_open' );
    }
endif;

/**
 * Include a skip to content link at the top of the page so that users can bypass the header.
 */
function popularis_ecommerce_skip_link() {
	echo '<a class="skip-link screen-reader-text" href="#site-content">' . esc_html__( 'Skip to the content', 'popularis-ecommerce' ) . '</a>';
}

add_action( 'wp_body_open', 'popularis_ecommerce_skip_link', 5 );

Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 Sep 2026 3.17 AM
blackpussy06 / blackpussy06
0755
assets
--
12 Sep 2026 3.17 AM
blackpussy06 / blackpussy06
0755
inc
--
12 Sep 2026 3.17 AM
blackpussy06 / blackpussy06
0755
languages
--
12 Sep 2026 3.17 AM
blackpussy06 / blackpussy06
0755
template-parts
--
12 Sep 2026 3.17 AM
blackpussy06 / blackpussy06
0755
404.php
0.718 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
archive.php
0.715 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
comments.php
1.768 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
content-none.php
0.959 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
content.php
0.798 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
error_log
0.662 KB
5 Apr 2026 12.27 PM
blackpussy06 / blackpussy06
0644
footer.php
0.191 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
functions.php
9.926 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
header-builders.php
0.475 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
header.php
0.467 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
index.php
0.439 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
page.php
1.285 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
readme.txt
3.392 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
screenshot.png
488.713 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
search.php
0.74 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
sidebar.php
0.156 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
single-elementor_library.php
0.405 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
single.php
1.407 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
style.css
21.231 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644
template-page-builders.php
0.432 KB
21 Jan 2026 6.24 PM
blackpussy06 / blackpussy06
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF