芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/www/wp-content/themes/betheme/functions/widgets/class-mfn-widget-flickr.php
'widget_mfn_flickr', 'description' => esc_html__('Use this widget on pages to display photos from Flickr photostream.', 'mfn-opts') ); parent::__construct('widget_mfn_flickr', esc_html__('Muffin Flickr', 'mfn-opts'), $widget_ops); $this->alt_option_name = 'widget_mfn_flickr'; } /** * Outputs the HTML for this widget. */ public function widget($args, $instance) { if (! isset($args['widget_id'])) { $args['widget_id'] = null; } extract($args, EXTR_SKIP); echo wp_kses_post($before_widget); $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base); if ($title) { echo wp_kses($before_title, array('h3'=>array(),'h4'=>array())); echo wp_kses($title, mfn_allowed_html()); echo wp_kses($after_title, array('h3'=>array(),'h4'=>array())); } echo '
'; echo''; echo '
'; echo wp_kses_post($after_widget); } /** * Deals with the settings when they are saved by the admin. */ public function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['userID'] = strip_tags($new_instance['userID']); $instance['count'] = (int) $new_instance['count']; $instance['order'] = strip_tags($new_instance['order']); return $instance; } /** * Displays the form for this widget on the Widgets page of the WP Admin area. */ public function form($instance) { $title = isset($instance['title']) ? esc_attr($instance['title']) : ''; $userID = isset($instance['userID']) ? esc_attr($instance['userID']) : '71865026@N00'; $count = isset($instance['count']) ? absint($instance['count']) : 6; $order = isset($instance['order']) ? esc_attr($instance['order']) : 'latest'; ?>
this tool to find your Flickr user ID', 'mfn-opts'); ?>
[1-10]
/>
/>