Changeset 1609785
- Timestamp:
- 03/07/2017 01:28:06 PM (9 years ago)
- Location:
- themeloom-widgets/trunk
- Files:
-
- 7 edited
-
css/widget.css (modified) (1 diff)
-
facebook-widget.php (modified) (1 diff)
-
flickr-widget.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
show-widgets.php (modified) (3 diffs)
-
themeloom-widgets.php (modified) (6 diffs)
-
twitter-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
themeloom-widgets/trunk/css/widget.css
r824646 r1609785 212 212 float:none; 213 213 width:auto; 214 margin-right:0; 214 215 } 215 216 -
themeloom-widgets/trunk/facebook-widget.php
r1323127 r1609785 361 361 } 362 362 } 363 364 365 366 367 ?> -
themeloom-widgets/trunk/flickr-widget.php
r726213 r1609785 7 7 8 8 /* This is the constructor for the Widget, here we setup some variables that define the widget's name and description and add any actions or filters that the widget will use. */ 9 10 function ThemeLoomFlickrWidget() { 11 12 /* Here we define widget options to add a description to the widget in the WordPress Widget Administration page */ 13 $widget_ops = array('description' => __('This widget displays a flickr badge.', 'livingos') ); 14 15 /* Here we pass some arguments to the WP_Widget constructor so that we can override some Widget properties. 16 The first parameter allows us to override the id_base of the widget. 17 The second parameter allows us to pass in the internationalized title of the widget. 18 The third parameter lets us pass in some additional options (such as an internationalized description of the widget). */ 19 20 parent::WP_Widget( 'ThemeLoomFlickrWidget', __('Flickr Widget','livingos'), $widget_ops); 21 22 /* This function checks if this widget is currently added to any sidebars. If your widget requires external JavaScript or CSS, you should only include it if the widget is actually active. Otherwise, you'll be slowing down page loads by including these external files, when they aren't even being used! */ 23 24 if (is_active_widget(false, false, $this->id_base) ) 25 { 26 //add_action( 'template_redirect', array($this, 'WidgetCss') ); 27 } 28 29 } 9 public function __construct() { 10 parent::__construct( 11 'ThemeLoomFlickrWidget', // Base ID 12 __('Flickr Widget','livingos'), // Name 13 array( 'description' => __( 'This widget displays a flickr badge.', 'livingos' ), ) // Args 14 ); 15 } 30 16 31 17 /* This function renders the form that lets the user setup your widget's settings. You can let your users customize the title of your widget, toggle features on or off, etc... It is very easy to add some settings fields, and since WP_Widgets can be used multiple times each instance of your widget can have different settings. This function takes in one parameter, which is an array of the previously saved settings. If the user has just dragged a new instance of the widget to one of their sidebars, this will be an empty array. */ … … 159 145 160 146 } 161 ?> -
themeloom-widgets/trunk/readme.txt
r1323127 r1609785 3 3 Donate link: http://livingos.com/ 4 4 Tags: widgets, posts, pages, query, responsive, twitter, flickr, facebook 5 Requires at least: 3.56 Tested up to: 4. 4.15 Requires at least: 4.2 6 Tested up to: 4.7.3 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 76 76 == Changelog == 77 77 78 = 1.8.3 = 79 * updated deprecated functions 78 80 * fixed margin on mobile columns 79 81 -
themeloom-widgets/trunk/show-widgets.php
r773963 r1609785 10 10 class los_showposts_widget extends WP_Widget { 11 11 12 function los_showposts_widget() { 13 $widget_ops = array('classname' => 'LOSPostsWidget', 'description' => __('Show teasers/list of posts with thumbs, filtered by category.','livingos') ); 14 $this->WP_Widget('los_show_posts', __('Show Posts', 'livingos'), $widget_ops); 15 } 12 public function __construct() { 13 parent::__construct( 14 'los_showposts_widget', // Base ID 15 __('Show Posts', 'livingos'), // Name 16 array( 'description' => __('Show teasers/list of posts with thumbs, filtered by category.','livingos'), ) // Args 17 ); 18 } 19 16 20 17 21 function form($instance) { … … 472 476 473 477 static $text_domain = "livingos"; //allows class to be used in plugin or theme 474 475 function los_showpages_widget() { 476 $widget_ops = array('classname' => 'LOSPagesWidget', 'description' => __('Show teasers/list of pages with thumbs.','livingos') ); 477 $this->WP_Widget('los_show_pages', __('Show Pages','livingos'), $widget_ops); 478 } 478 479 public function __construct() { 480 parent::__construct( 481 'los_show_pages', // Base ID 482 __('Show Pages', 'livingos'), // Name 483 array( 'description' => __('Show teasers/list of pages with thumbs.','livingos'), ) // Args 484 ); 485 } 479 486 480 487 function form($instance) { … … 616 623 class los_media_widget extends WP_Widget { 617 624 618 619 function los_media_widget() { 620 $widget_ops = array('classname' => 'LOSMediaWidget', 'description' => __('Show latest posts in category with audio attachments.','livingos') ); 621 $this->WP_Widget('los_media_widget', __('Show Media Posts','livingos'), $widget_ops); 622 } 625 public function __construct() { 626 parent::__construct( 627 'los_media_widget', // Base ID 628 __('Show Media Posts','livingos'), // Name 629 array( 'description' => __('Show latest posts in category with audio attachments.','livingos'), ) // Args 630 ); 631 } 623 632 624 633 function form($instance) { -
themeloom-widgets/trunk/themeloom-widgets.php
r1323127 r1609785 3 3 Plugin Name: ThemeLoom Widgets 4 4 Description: A set of really useful widgets for showing posts, pages, tweets and your flickr images. Designed for use with responsive themes. 5 Version: 1.8. 25 Version: 1.8.3 6 6 License: GPLv2 7 7 Author: Tim Hyde … … 37 37 public function __construct() 38 38 { 39 40 39 40 41 41 // localization 42 42 add_action('plugins_loaded', array($this, 'SetLanguage'),1); … … 64 64 $this->errors = new WP_Error(); 65 65 } 66 66 67 67 /* 68 68 * Activation routine 69 69 */ 70 function Activate() 70 function Activate() 71 71 { 72 72 73 73 } 74 74 75 75 /* 76 76 * Deactivation routine … … 80 80 // Nothing to see here for now! 81 81 } 82 83 82 83 84 84 /* 85 85 * Update routine … … 87 87 function Update() 88 88 { 89 90 89 90 91 91 } 92 93 92 93 94 94 /* 95 95 * Load language text domain … … 180 180 } 181 181 } 182 ?> -
themeloom-widgets/trunk/twitter-widget.php
r760694 r1609785 85 85 //define twitter widget 86 86 class los_twitter_widget extends WP_Widget { 87 88 function los_twitter_widget() { 89 $widget_ops = array('classname' => 'LOSTwitterWidget', 'description' => __('Show latest twitter tweets.','livingos') ); 90 $this->WP_Widget('los_twitter_widget', __('Twitter Widget','livingos'), $widget_ops); 91 92 } 87 88 public function __construct() { 89 parent::__construct( 90 'los_twitter_widget', // Base ID 91 __('Twitter Widget','livingos'), // Name 92 array( 'description' => __('Show latest twitter tweets.','livingos'), ) // Args 93 ); 94 } 93 95 94 96 function form($instance) {
Note: See TracChangeset
for help on using the changeset viewer.