403Webshell
Server IP : 89.39.208.18  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System :
User :  ( )
PHP Version : 7.4.33
Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home3/mahyarcake/public_html/wp-content/themes/ecolive/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home3/mahyarcake/public_html/wp-content/themes/ecolive/inc/class-customize.php
<?php
if (!defined('ABSPATH')) {
    exit;
}
if (!class_exists('Ecolive_Customize')) {

    class Ecolive_Customize {


        public function __construct() {
            add_action('customize_register', array($this, 'customize_register'));
        }

        /**
         * @param $wp_customize WP_Customize_Manager
         */
        public function customize_register($wp_customize) {

            /**
             * Theme options.
             */
            require_once get_theme_file_path('inc/customize-control/editor.php');
            $this->init_ecolive_blog($wp_customize);

            $this->init_ecolive_social($wp_customize);

            if (ecolive_is_woocommerce_activated()) {
                $this->init_woocommerce($wp_customize);
            }

            do_action('ecolive_customize_register', $wp_customize);
        }


        /**
         * @param $wp_customize WP_Customize_Manager
         *
         * @return void
         */
        public function init_ecolive_blog($wp_customize) {

            $wp_customize->add_section('ecolive_blog_archive', array(
                'title' => esc_html__('Blog', 'ecolive'),
            ));

            // =========================================
            // Select Style
            // =========================================

            $wp_customize->add_setting('ecolive_options_blog_style', array(
                'type'              => 'option',
                'default'           => 'standard',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_blog_style', array(
                'section' => 'ecolive_blog_archive',
                'label'   => esc_html__('Blog style', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'standard' => esc_html__('Blog Standard', 'ecolive'),
                    'style-1'  => esc_html__('Style 1', 'ecolive'),
                    'style-2'  => esc_html__('Style 2', 'ecolive'),
                    'style-3'  => esc_html__('Style 3', 'ecolive'),
                    'style-4'  => esc_html__('Style 4', 'ecolive'),
                ),
            ));

            $wp_customize->add_setting('ecolive_options_blog_columns', array(
                'type'              => 'option',
                'default'           => 1,
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_blog_columns', array(
                'section' => 'ecolive_blog_archive',
                'label'   => esc_html__('Colunms', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    1 => esc_html__('1', 'ecolive'),
                    2 => esc_html__('2', 'ecolive'),
                    3 => esc_html__('3', 'ecolive'),
                    4 => esc_html__('4', 'ecolive'),
                ),
            ));
        }

        /**
         * @param $wp_customize WP_Customize_Manager
         *
         * @return void
         */
        public function init_ecolive_social($wp_customize) {

            $wp_customize->add_section('ecolive_social', array(
                'title' => esc_html__('Socials', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Show Social Share', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share_facebook', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_facebook', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Facebook', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share_twitter', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_twitter', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Twitter', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share_linkedin', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_linkedin', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Linkedin', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share_google-plus', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_google-plus', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Google+', 'ecolive'),
            ));

            $wp_customize->add_setting('ecolive_options_social_share_pinterest', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_pinterest', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Pinterest', 'ecolive'),
            ));
            $wp_customize->add_setting('ecolive_options_social_share_email', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_social_share_email', array(
                'type'    => 'checkbox',
                'section' => 'ecolive_social',
                'label'   => esc_html__('Share on Email', 'ecolive'),
            ));
        }

        /**
         * @param $wp_customize WP_Customize_Manager
         *
         * @return void
         */
        public function init_woocommerce($wp_customize) {

            $wp_customize->add_panel('woocommerce', array(
                'title' => esc_html__('Woocommerce', 'ecolive'),
            ));

            $wp_customize->add_section('ecolive_woocommerce_archive', array(
                'title'      => esc_html__('Archive', 'ecolive'),
                'capability' => 'edit_theme_options',
                'panel'      => 'woocommerce',
                'priority'   => 1,
            ));

            $wp_customize->add_setting('ecolive_options_woocommerce_archive_layout', array(
                'type'              => 'option',
                'default'           => 'default',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_woocommerce_archive_layout', array(
                'section' => 'ecolive_woocommerce_archive',
                'label'   => esc_html__('Layout Style', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'default'   => esc_html__('Sidebar', 'ecolive'),
                    'canvas'    => esc_html__('Canvas Filter', 'ecolive'),
                    'dropdown'  => esc_html__('Dropdown Filter', 'ecolive'),
                    'fullwidth' => esc_html__('Full Width', 'ecolive'),
                ),
            ));

            $wp_customize->add_setting('ecolive_options_woocommerce_archive_sidebar', array(
                'type'              => 'option',
                'default'           => 'left',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_woocommerce_archive_sidebar', array(
                'section' => 'ecolive_woocommerce_archive',
                'label'   => esc_html__('Sidebar Position', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'left'  => esc_html__('Left', 'ecolive'),
                    'right' => esc_html__('Right', 'ecolive'),

                ),
            ));

            // =========================================
            // Single Product
            // =========================================

            $wp_customize->add_section('ecolive_woocommerce_single', array(
                'title'      => esc_html__('Single Product', 'ecolive'),
                'capability' => 'edit_theme_options',
                'panel'      => 'woocommerce',
            ));

            $wp_customize->add_setting('ecolive_options_single_product_gallery_layout', array(
                'type'              => 'option',
                'default'           => 'horizontal',
                'transport'         => 'refresh',
                'sanitize_callback' => 'sanitize_text_field',
            ));
            $wp_customize->add_control('ecolive_options_single_product_gallery_layout', array(
                'section' => 'ecolive_woocommerce_single',
                'label'   => esc_html__('Style', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'horizontal' => esc_html__('Horizontal', 'ecolive'),
                    'vertical'   => esc_html__('Vertical', 'ecolive'),
                    'gallery'    => esc_html__('Gallery', 'ecolive'),
                    'sticky'     => esc_html__('Sticky', 'ecolive'),
                ),
            ));

            $wp_customize->add_setting('ecolive_options_single_product_content_meta', array(
                'type'              => 'option',
                'capability'        => 'edit_theme_options',
                'sanitize_callback' => 'ecolive_sanitize_editor',
            ));

            $wp_customize->add_control(new Ecolive_Customize_Control_Editor($wp_customize, 'ecolive_options_single_product_content_meta', array(
                'section' => 'ecolive_woocommerce_single',
                'label'   => esc_html__('Single extra description', 'ecolive'),
            )));

            $wp_customize->add_setting('ecolive_options_single_product_archive_sidebar', array(
                'type'              => 'option',
                'default'           => 'left',
                'sanitize_callback' => 'sanitize_text_field',
            ));
            $wp_customize->add_control('ecolive_options_single_product_archive_sidebar', array(
                'section' => 'ecolive_woocommerce_single',
                'label'   => esc_html__('Sidebar Position', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'left'  => esc_html__('Left', 'ecolive'),
                    'right' => esc_html__('Right', 'ecolive'),

                ),
            ));


            // =========================================
            // Product
            // =========================================

            $wp_customize->add_section('ecolive_woocommerce_product', array(
                'title'      => esc_html__('Product Block', 'ecolive'),
                'capability' => 'edit_theme_options',
                'panel'      => 'woocommerce',
            ));

            $wp_customize->add_setting('ecolive_options_wocommerce_block_style', array(
                'type'              => 'option',
                'default'           => '1',
                'transport'         => 'refresh',
                'sanitize_callback' => 'sanitize_text_field',
            ));
            $wp_customize->add_control('ecolive_options_wocommerce_block_style', array(
                'section' => 'ecolive_woocommerce_product',
                'label'   => esc_html__('Style', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    '1' => esc_html__('Style 1', 'ecolive')
                ),
            ));

            $wp_customize->add_setting('ecolive_options_woocommerce_product_hover', array(
                'type'              => 'option',
                'default'           => 'none',
                'transport'         => 'refresh',
                'sanitize_callback' => 'sanitize_text_field',
            ));
            $wp_customize->add_control('ecolive_options_woocommerce_product_hover', array(
                'section' => 'ecolive_woocommerce_product',
                'label'   => esc_html__('Animation Image Hover', 'ecolive'),
                'type'    => 'select',
                'choices' => array(
                    'none'          => esc_html__('None', 'ecolive'),
                    'bottom-to-top' => esc_html__('Bottom to Top', 'ecolive'),
                    'top-to-bottom' => esc_html__('Top to Bottom', 'ecolive'),
                    'right-to-left' => esc_html__('Right to Left', 'ecolive'),
                    'left-to-right' => esc_html__('Left to Right', 'ecolive'),
                    'swap'          => esc_html__('Swap', 'ecolive'),
                    'fade'          => esc_html__('Fade', 'ecolive'),
                    'zoom-in'       => esc_html__('Zoom In', 'ecolive'),
                    'zoom-out'      => esc_html__('Zoom Out', 'ecolive'),
                ),
            ));

            $wp_customize->add_setting('ecolive_options_wocommerce_row_laptop', array(
                'type'              => 'option',
                'default'           => 3,
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_wocommerce_row_laptop', array(
                'section' => 'woocommerce_product_catalog',
                'label'   => esc_html__('Products per row Laptop', 'ecolive'),
                'type'    => 'number',
            ));

            $wp_customize->add_setting('ecolive_options_wocommerce_row_tablet', array(
                'type'              => 'option',
                'default'           => 2,
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_wocommerce_row_tablet', array(
                'section' => 'woocommerce_product_catalog',
                'label'   => esc_html__('Products per row tablet', 'ecolive'),
                'type'    => 'number',
            ));

            $wp_customize->add_setting('ecolive_options_wocommerce_row_mobile', array(
                'type'              => 'option',
                'default'           => 1,
                'transport'         => 'postMessage',
                'sanitize_callback' => 'sanitize_text_field',
            ));

            $wp_customize->add_control('ecolive_options_wocommerce_row_mobile', array(
                'section' => 'woocommerce_product_catalog',
                'label'   => esc_html__('Products per row mobile', 'ecolive'),
                'type'    => 'number',
            ));
        }
    }
}
return new Ecolive_Customize();

Youez - 2016 - github.com/yon3zu
LinuXploit