芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/clients/astro-shopping/wp-content/themes/boal/inc/widgets/about.php
array( 'title' => 'facebook', 'name' => 'facebook_username', 'link' => '*', 'icon'=>'fa-facebook', ), 'ion-social-googleplus' => array( 'title' => 'googleplus', 'name' => 'googleplus_username', 'link' => '*', 'icon'=>'fa-google-plus', ), 'ion-social-twitter' => array( 'title' => 'twitter', 'name' => 'twitter_username', 'link' => '*', 'icon'=>'fa-twitter', ), 'ion-social-instagram' => array( 'title' => 'instagram', 'name' => 'instagram_username', 'link' => '*', 'icon'=>'fa-instagram', ), 'ion-social-pinterest' => array( 'title' => 'pinterest', 'name' => 'pinterest_username', 'link' => '*', 'icon'=>'fa-pinterest', ), 'ion-social-skype' => array( 'title' => 'skype', 'name' => 'skype_username', 'link' => '*', 'icon'=>'fa-skype', ), 'ion-social-vimeo' => array( 'title' => 'vimeo', 'name' => 'vimeo_username', 'link' => '*', 'icon'=>'fa-vimeo-square', ), 'ion-social-youtube' => array( 'title' => 'youtube', 'name' => 'youtube_username', 'link' => '*', 'icon'=>'fa-youtube', ), 'ion-social-dribbble' => array( 'title' => 'dribbble', 'name' => 'dribbble_username', 'link' => '*', 'icon'=>'fa-dribbble', ), 'ion-social-linkedin' => array( 'title' => 'linkedin', 'name' => 'linkedin_username', 'link' => '*', 'icon'=>'fa-linkedin', ), 'ion-social-rss' => array( 'title' => 'rss', 'name' => 'rss_username', 'link' => '*', 'icon'=>'fa-rss', ) ); /*function construct*/ public function __construct() { /* Widget control settings. */ $control_ops = array('width' => 250, 'height' => 350, 'id_base' => 'about'); $widget_ops = array('classname' => 'about', 'description' => esc_html__('Easy add About.', 'boal')); /* Create the widget. */ parent::__construct('about', esc_html__('+NA: About', 'boal'), $widget_ops, $control_ops); } /** * font-end widgets */ public function widget($args, $instance) { extract($args); $image = $instance['image']; $title = apply_filters('widget_title', $instance['title']); echo ent2ncr($args['before_widget']); if($title) { echo ent2ncr($args['before_title']) . esc_html($title) . ent2ncr($args['after_title']); } ?>
socials as $key => $social) { if (!empty($instance[$social['name']])) { echo '
'; } }?>
'About', 'image' => '', 'description' =>'', )); ?>
get_field_id('title')); ?>>
</textarea>
socials as $key => $social) { ?>
: