Sindbad~EG File Manager

Current Path : /home/dtconseimw/www.2025.hack/wp-content/plugins.old/nature/admin/
Upload File :
Current File : /home/dtconseimw/www.2025.hack/wp-content/plugins.old/nature/admin/config.php

<?php

    if ( ! class_exists( 'nature_Plugin_Config' ) ) {
        class nature_Plugin_Config {

            public $args = array();
            public $sections = array();
            public $theme;
            public $ReduxFramework;

            public function __construct() {

                if ( ! class_exists( 'ReduxFramework' ) ) {
                    return;
                }
				add_action( 'plugins_loaded', array( $this, 'initSettings' ), 10 );
            }

            public function initSettings() {
                $this->theme = wp_get_theme();
                $this->setArguments();
                $this->setSections();
                if ( ! isset( $this->args['opt_name'] ) ) { // No errors please
                    return;
                }
                $this->ReduxFramework = new ReduxFramework( $this->sections, $this->args );
            }
			
            /**
             * Filter hook for filtering the default value of any given field. Very useful in development mode.
             * */
            function change_defaults( $defaults ) {
                $defaults['str_replace'] = 'Testing filter hook!';

                return $defaults;
            }

            // Remove the demo link and the notice of integrated demo from the redux-framework plugin
            function remove_demo() {

                // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
                if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
                    remove_filter( 'plugin_row_meta', array(
                        ReduxFrameworkPlugin::instance(),
                        'plugin_metalinks'
                    ), null, 2 );

                    // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
                    remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );
                }
            }

            public function setSections() {

                /**
                 * Used within different fields. Simply examples. Search for ACTUAL DECLARATION for field examples
                 * */
                // Background Patterns Reader
                $sample_patterns_path = ReduxFramework::$_dir . '../sample/patterns/';
                $sample_patterns_url  = ReduxFramework::$_url . '../sample/patterns/';
                $sample_patterns      = array();

                if ( is_dir( $sample_patterns_path ) ) :

                    if ( $sample_patterns_dir = opendir( $sample_patterns_path ) ) :
                        $sample_patterns = array();

                        while ( ( $sample_patterns_file = readdir( $sample_patterns_dir ) ) !== false ) {

                            if ( stristr( $sample_patterns_file, '.png' ) !== false || stristr( $sample_patterns_file, '.jpg' ) !== false ) {
                                $name              = explode( '.', $sample_patterns_file );
                                $name              = str_replace( '.' . end( $name ), '', $sample_patterns_file );
                                $sample_patterns[] = array(
                                    'alt' => $name,
                                    'img' => $sample_patterns_url . $sample_patterns_file
                                );
                            }
                        }
                    endif;
                endif;

                ob_start();

                $ct          = wp_get_theme();
                $this->theme = $ct;
                $item_name   = $this->theme->get( 'Name' );
                $tags        = $this->theme->Tags;
                $screenshot  = $this->theme->get_screenshot();
                $class       = $screenshot ? 'has-screenshot' : '';

                $customize_title = sprintf( __( 'Customize &#8220;%s&#8221;', 'nature' ), $this->theme->display( 'Name' ) );

                ?>
                <div id="current-theme" class="<?php echo esc_attr( $class ); ?>">
                    <?php if ( $screenshot ) : ?>
                        <?php if ( current_user_can( 'edit_theme_options' ) ) : ?>
                            <a href="<?php echo wp_customize_url(); ?>" class="load-customize hide-if-no-customize"
                               title="<?php echo esc_attr( $customize_title ); ?>">
                                <img src="<?php echo esc_url( $screenshot ); ?>"
                                     alt="<?php esc_attr_e( 'Current theme preview', 'nature' ); ?>"/>
                            </a>
                        <?php endif; ?>
                        <img class="hide-if-customize" src="<?php echo esc_url( $screenshot ); ?>"
                             alt="<?php esc_attr_e( 'Current theme preview', 'nature' ); ?>"/>
                    <?php endif; ?>

                    <h4><?php echo $this->theme->display( 'Name' ); ?></h4>

                    <div>
                        <ul class="theme-info">
                            <li><?php printf( __( 'By %s', 'nature' ), $this->theme->display( 'Author' ) ); ?></li>
                            <li><?php printf( __( 'Version %s', 'nature' ), $this->theme->display( 'Version' ) ); ?></li>
                            <li><?php echo '<strong>' . __( 'Tags', 'nature' ) . ':</strong> '; ?><?php printf( $this->theme->display( 'Tags' ) ); ?></li>
                        </ul>
                        <p class="theme-description"><?php echo $this->theme->display( 'Description' ); ?></p>
                        <?php
                            if ( $this->theme->parent() ) {
                                printf( ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.', 'nature' ) . '</p>', __( 'http://codex.wordpress.org/Child_Themes', 'nature' ), $this->theme->parent()->display( 'Name' ) );
                            }
                        ?>

                    </div>
                </div>

                <?php
                $item_info = ob_get_contents();

                ob_end_clean();

                $sampleHTML = '';
                if ( file_exists( dirname( __FILE__ ) . '/info-html.html' ) ) {
                    Redux_Functions::initWpFilesystem();

                    global $wp_filesystem;

                    $sampleHTML = $wp_filesystem->get_contents( dirname( __FILE__ ) . '/info-html.html' );
                }

                // ACTUAL DECLARATION OF SECTIONS
				
		
				
                require_once('sections/main.php');
				require_once('sections/background.php');
				require_once('sections/content.php');
				require_once('sections/contact.php');
				require_once('sections/subscribe.php');
				require_once('sections/service.php');
				require_once('sections/team.php');
				require_once('sections/blog.php');
				require_once('sections/countdown.php');
				require_once('sections/seo.php');
				require_once('sections/export.php');
            }

            public function setArguments() {

                $this->args = array(
                    // TYPICAL -> Change these values as you need/desire
                    'opt_name'             => 'artabaz_nature',
                    'display_name'         => '<img src="'.plugins_url( 'src/images/logo.png' , __FILE__ ).'">',
                    'display_version'      => ' Version: 1.0',
                    'menu_type'            => 'menu',
                    'allow_sub_menu'       => true,
                    'menu_title'           => 'NATURE',
                    'page_title'           => 'NATURE Plugin Options',
                    'footer_credit'        => 'Thank you for creating with <a href="https://themeforest.net/user/medhati/portfolio?ref=medhati">NATURE</a> ver1.0',
                    'async_typography'     => true,
                    'admin_bar'            => true,
                    'admin_bar_icon'     => 'dashicons-portfolio',
                    'admin_bar_priority' => 50,
					
					'global_variable'      => '',
                    // Set a different name for your global variable other than the opt_name
					
                    'dev_mode'             => false, //disable.
                    'update_notice'        => false,
                    'customizer'           => true,
                    'page_priority'        => null,
                    'page_permissions'     => 'manage_options',
                    'menu_icon'            => plugins_url().'/nature/template/media/options/icon.png',
                    'last_tab'             => '', 
                    'page_icon'            => 'icon-themes',
                    'page_slug'            => 'nature_options',
                    'save_defaults'        => true,
                    'default_show'         => false,
                    'default_mark'         => '',
                    'show_import_export'   => true,

                    // CAREFUL -> These options are for advanced use only
                    'transient_time'       => 60 * MINUTE_IN_SECONDS,
                    'output'               => true,
                    'database'             => '',
                    'system_info'          => false,

                    // HINTS
                    'hints'                => array(
                        'icon'          => 'icon-question-sign',
                        'icon_position' => 'right',
                        'icon_color'    => 'lightgray',
                        'icon_size'     => 'normal',
                        'tip_style'     => array(
                            'color'   => 'light',
                            'shadow'  => true,
                            'rounded' => false,
                            'style'   => '',
                        ),
                        'tip_position'  => array(
                            'my' => 'top left',
                            'at' => 'bottom right',
                        ),
                        'tip_effect'    => array(
                            'show' => array(
                                'effect'   => 'slide',
                                'duration' => '500',
                                'event'    => 'mouseover',
                            ),
                            'hide' => array(
                                'effect'   => 'slide',
                                'duration' => '500',
                                'event'    => 'click mouseleave',
                            ),
                        ),
                    )
                );


                // SOCIAL ICONS
                $this->args['share_icons'][] = array(
                    'url'   => 'https://www.facebook.com/PooyaaCom',
                    'title' => __( 'Like us on Facebook' , 'nature' ),
                    'icon'  => 'el el-facebook'
                );
                $this->args['share_icons'][] = array(
                    'url'   => 'https://twitter.com/PooyaaCom',
                    'title' => __( 'Follow us on Twitter' , 'nature' ),
                    'icon'  => 'el el-twitter'
                );
				$this->args['share_icons'][] = array(
                    'url'   => 'http://themeforest.net/user/medhati?ref=medhati',
                    'title' => __( 'Follow us on Themeforest' , 'nature' ),
                    'icon'  => 'el el-heart-empty'
                );
                $this->args['share_icons'][] = array(
                    'url'   => 'http://support.pooyaa.com/',
                    'title' => __( 'Support Section' , 'nature' ),
                    'icon'  => 'el el-question-sign'
                );
				$this->args['share_icons'][] = array(
                    'url'   => 'mailto:m3dhati@gmail.com',
                    'title' => __( 'Support Email' , 'nature' ),
                    'icon'  => 'el el-envelope'
                );

                // Panel Intro text -> before the form
                $this->args['intro_text'] =  __( '<a href="http://support.pooyaa.com/" target="_blank" class="button">Support Section</a> <a href="mailto:m3dhati@gmail.com" target="_blank" class="button">Support Email</a> <a href="http://themeforest.net/user/medhati/follow" target="_blank" class="button">Stay up to date</a> ', 'nature' );
				
                // Add content after the form.
                $this->args['footer_text'] = __( '<p>All right reserved for Nature Plugin 2016</p>', 'nature' );
            }

        }

        global $reduxConfig;
        $reduxConfig = new nature_Plugin_Config();
    } else {
        echo "nature Plugin has been called for twice!!!";
    }

include_once('src/font-awesome/font-awesome-icons.php');
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists