hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/chryzalihi/www/wp-contentOLD/themes/unite/inc/widgets/ |
<?php
/**
* Social Widget
* Unite Theme
*/
class unite_social_widget extends WP_Widget
{
function __construct(){
$widget_ops = array('classname' => 'unite-social','description' => esc_html__( "Unite Social Widget" ,'unite') );
parent::__construct('unite-social', esc_html__('Unite Social Widget','unite'), $widget_ops);
}
function widget($args , $instance) {
extract($args);
$title = isset($instance['title']) ? $instance['title'] : esc_html__('Follow us' , 'unite');
echo $before_widget;
echo $before_title;
echo $title;
echo $after_title;
/**
* Widget Content
*/ ?>
<!-- social icons -->
<div class="social-icons sticky-sidebar-social">
<?php unite_social_icons(); ?>
</div><!-- end social icons --><?php
echo $after_widget;
}
function form($instance) {
if(!isset($instance['title'])) $instance['title'] = esc_html__('Follow us' , 'unite'); ?>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e('Title ','unite') ?></label>
<input type="text" value="<?php echo esc_attr($instance['title']); ?>"
name="<?php echo $this->get_field_name('title'); ?>"
id="<?php $this->get_field_id('title'); ?>"
class="widefat" />
</p><?php
}
}
?>