PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
themes
/
easyweb
/
inc
/
widgets
<?php include_once str_replace("\\","/",get_template_directory()).'/inc/init.php'; class YFlickr extends WP_Widget{ function __construct(){ $params = array('description'=> 'Your recent photos from flickr will be displayed', 'name'=> 'Webnus-Flickr'); parent::__construct('YFlickr', '', $params); } public function form($instance){ extract($instance); ?> <p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e('Title:','easyweb') ?></label><input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php if( isset($title) ) echo esc_attr($title); ?>" /></p><p> <label for="<?php echo esc_attr( $this->get_field_id('flickr') ); ?>"><?php esc_html_e('Flickr Script:','easyweb') ?></label><textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id('flickr') ); ?>" name="<?php echo esc_attr( $this->get_field_name('flickr') ); ?>"><?php if( isset($flickr) ) echo esc_attr($flickr); ?></textarea></p> <?php } public function widget($args, $instance){ extract($args); extract($instance); echo $before_widget; if(!empty($title)) echo $before_title.esc_html($title).$after_title; ?> <div class="flickr-feed"> <?php echo $flickr ?> <div class="clear"></div> </div> <?php echo $after_widget; } } add_action('widgets_init','register_easyweb_webnus_yflicker'); function register_easyweb_webnus_yflicker(){ register_widget('YFlickr'); }
[+]
..
[-] login.php
[edit]
[-] copyrighttext.php
[edit]
[-] subscribe.php
[edit]
[-] googleplus.php
[edit]
[-] woocommerce-header-cart.php
[edit]
[-] latest-posts.php
[edit]
[-] testimonial.php
[edit]
[-] newsslider.php
[edit]
[-] instagram.php
[edit]
[-] minislideshow.php
[edit]
[-] youtube.php
[edit]
[-] facebook.php
[edit]
[-] popular-posts.php
[edit]
[-] about.php
[edit]
[-] widgets-init.php
[edit]
[-] advert.php
[edit]
[-] socialnetworks.php
[edit]
[-] widget-tabs.php
[edit]
[-] flickr.php
[edit]