403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.127
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/ia/wp-content/plugins/wordpress-popular-posts/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/ia/wp-content/plugins/wordpress-popular-posts/src//Settings.php
<?php
/**
 * Set / get plugin default options.
 *
 * @link       http://cabrerahector.com
 * @since      4.0.0
 *
 * @package    WordPressPopularPosts
 */

/**
 * Set / get plugin default options.
 *
 * @package    WordPressPopularPosts
 * @author     Hector Cabrera <me@cabrerahector.com>
 */

namespace WordPressPopularPosts;

class Settings {

    /**
     * Plugin uploads directory.
     *
     * @since   3.0.4
     * @var     array
     */
    private static $defaults = [
        'widget_options' => [
            'title' => '',
            'limit' => 10,
            'offset' => 0,
            'range' => 'daily',
            'time_unit' => 'hour',
            'time_quantity' => 24,
            'freshness' => false,
            'order_by' => 'views',
            'post_type' => 'post',
            'pid' => '', /* Deprecated */
            'exclude' => '',
            'author' => '',
            'cat' => '',
            'taxonomy' => 'category',
            'term_id' => '',
            'shorten_title' => [
                'active' => false,
                'length' => 25,
                'words' => false
            ],
            'post-excerpt' => [
                'active' => false,
                'length' => 55,
                'keep_format' => false,
                'words' => false
            ],
            'thumbnail' => [
                'active' => false,
                'build' => 'manual',
                'width' => 75,
                'height' => 75,
                'crop' => true
            ],
            'rating' => false,
            'stats_tag' => [
                'comment_count' => false,
                'views' => true,
                'author' => false,
                'date' => [
                    'active' => false,
                    'format' => 'F j, Y'
                ],
                'category' => false,
                'taxonomy' => [
                    'active' => false,
                    'name' => 'category'
                ]
            ],
            'markup' => [
                'custom_html' => false,
                'title-start' => '<h2>',
                'title-end' => '</h2>',
                'wpp-start' => '<ul class="wpp-list">',
                'wpp-end' => '</ul>',
                'post-html' => '<li class="{current_class}">{thumb} {title} <span class="wpp-meta post-stats">{stats}</span></li>'
            ],
            'theme' => [
                'name' => '',
                'applied' => false
            ]
        ],
        'admin_options' => [
            'stats' => [
                'range' => 'last7days',
                'time_unit' => 'hour',
                'time_quantity' => 24,
                'order_by' => 'views',
                'limit' => 10,
                'post_type' => 'post',
                'freshness' => false,
                'y_scale' => false
            ],
            'tools' => [
                'ajax' => true,
                'css' => true,
                'link' => [
                    'target' => '_self'
                ],
                'thumbnail' => [
                    'source' => 'featured',
                    'format' => 'original',
                    'field' => '',
                    'resize' => false,
                    'default' => '',
                    'lazyload' => true
                ],
                'log' => [
                    'level' => 1,
                    'limit' => 1,
                    'expires_after' => 180
                ],
                'cache' => [
                    'active' => true,
                    'interval' => [
                        'time' => 'minute',
                        'value' => 1
                    ]
                ],
                'sampling' => [
                    'active' => false,
                    'rate' => 100
                ],
                'views_column' => [
                    'active' => false,
                    'post_types' => 'post'
                ]
            ]
        ]
    ];

    /**
     * Returns plugin options.
     *
     * @since    4.0.0
     * @access   public
     * @param    string   $option_set
     * @return   array
     */
    public static function get(string $option_set = '')
    {
        $options = self::$defaults;

        if ( 'widget_options' == $option_set ) {
            return $options['widget_options'];
        }

        $admin_options = get_option('wpp_settings_config');

        if ( ! $admin_options ) {
            $admin_options = $options['admin_options'];
            add_option('wpp_settings_config', $admin_options);
        }
        else {
            $options['admin_options'] = Helper::merge_array_r(
                $options['admin_options'],
                (array) $admin_options
            );
        }

        if ( 'admin_options' == $option_set ) {
            return $options['admin_options'];
        }

        return $options;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit