Plugin Directory

Changeset 1186225


Ignore:
Timestamp:
06/23/2015 02:32:58 PM (11 years ago)
Author:
mahodder
Message:
  • Add more checks to decide which widgets to activate
Location:
themedy-widgets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themedy-widgets/trunk/readme.txt

    r1121365 r1186225  
    22Contributors: themedy, mahodder, matthodder
    33Tags: shortcodes, themedy, genesis, thesis, ad widget, flickr widget, vimeo widget, video widget
    4 Requires at least: 4.0
    5 Tested up to: 4.1.1
    6 Stable tag: 1.0
     4Requires at least: 4.1
     5Tested up to: 4.2.2
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2626== Changelog ==
    2727
     28= 1.0.1 =
     29* Add more checks to decide which widgets to activate
     30
    2831= 1.0 =
    2932* First release.
  • themedy-widgets/trunk/themedy-widgets.php

    r1121365 r1186225  
    44Plugin URI: http://themedy.com
    55Description: A selection of widgets to extend your Themedy site even further.
    6 Version: 1.0
     6Version: 1.0.1
    77Author: Themedy
    88Author URI: http://themedy.com
     
    1919function themedy_widget_setup() {
    2020    if ( !class_exists( 'themedy_video_widget' )) {
    21         include('includes/widgets/widget-ad120x60.php');
    22         include('includes/widgets/widget-ad120x240.php');
    23         include('includes/widgets/widget-ad125.php');
    24         include('includes/widgets/widget-ad300x250.php');
    25         include('includes/widgets/widget-ad300x600.php');
    26         include('includes/widgets/widget-flickr.php');
    2721        include('includes/widgets/widget-video.php');
    2822    }
     23   
     24    if ( !class_exists( 'themedy_ad120x60_widget' )) {
     25        include('includes/widgets/widget-ad120x60.php');
     26    }
     27
     28    if ( !class_exists( 'themedy_ad120x240_widget' )) {
     29        include('includes/widgets/widget-ad120x240.php');
     30    }
     31
     32    if ( !class_exists( 'themedy_ad_widget' )) {
     33        include('includes/widgets/widget-ad125.php');
     34    }
     35
     36    if ( !class_exists( 'themedy_ad300_widget' )) {
     37        include('includes/widgets/widget-ad300x250.php');
     38    }
     39
     40    if ( !class_exists( 'themedy_ad300x600_widget' )) {
     41        include('includes/widgets/widget-ad300x600.php');
     42
     43    }
     44    if ( !class_exists( 'themedy_flickr_widget' )) {
     45        include('includes/widgets/widget-flickr.php');
     46    }
    2947}
Note: See TracChangeset for help on using the changeset viewer.