WordPress.org

Plugin Directory

Changeset 556495


Ignore:
Timestamp:
06/12/12 05:49:31 (22 months ago)
Author:
coffee2code
Message:
  • Update to v1.0.2
  • Use string instead of variable to specify translation textdomain
  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+
Location:
duplicate-widget
Files:
2 edited
6 copied

Legend:

Unmodified
Added
Removed
  • duplicate-widget/tags/1.0.2/duplicate-widget.php

    r482448 r556495  
    33 * @package Duplicate_Widget 
    44 * @author Scott Reilly 
    5  * @version 1.0.1 
     5 * @version 1.0.2 
    66 */ 
    77/* 
    88Plugin Name: Duplicate Widget 
    9 Version: 1.0.1 
     9Version: 1.0.2 
    1010Plugin URI: http://coffee2code.com/wp-plugins/duplicate-widget/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
    1313Text Domain: duplicate-widget 
    1414Domain Path: /lang/ 
     15License: GPLv2 or later 
     16License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1517Description: A widget that can act as a duplicate of another widget (for synchronized use in another sidebar) 
    1618 
    17 Compatible with WordPress 3.1+, 3.2+, 3.3+ 
     19Compatible with WordPress 3.1 through 3.4+. 
    1820 
    1921=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2729        * Immediately delete duplicates of a widget that gets deleted or deactivated 
    2830    * When clicking the dropdown, can check some JS flag that gets set when a widget gets activated/deactivated which causes the dropdown to be regenerated via AJAX (or simply always refresh it via AJAX) 
    29  
     31    * Track down possible bug where source widget claims to have dupes, but it doesn't really anymore 
     32    * Way to locate/highlight duplicates of a widget 
    3033*/ 
    3134 
    3235/* 
    33 Copyright (c) 2010-2012 by Scott Reilly (aka coffee2code) 
    34  
    35 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    36 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    37 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the 
    38 Software is furnished to do so, subject to the following conditions: 
    39  
    40 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
    41  
    42 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    43 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    44 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    45 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     36    Copyright (c) 2010-2012 by Scott Reilly (aka coffee2code) 
     37 
     38    This program is free software; you can redistribute it and/or 
     39    modify it under the terms of the GNU General Public License 
     40    as published by the Free Software Foundation; either version 2 
     41    of the License, or (at your option) any later version. 
     42 
     43    This program is distributed in the hope that it will be useful, 
     44    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     45    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     46    GNU General Public License for more details. 
     47 
     48    You should have received a copy of the GNU General Public License 
     49    along with this program; if not, write to the Free Software 
     50    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    4651*/ 
    4752 
     
    5358    private static $current        = null; 
    5459    private static $widget_id      = 'duplicate_widget'; 
    55     private static $textdomain     = 'duplicate-widget'; 
    5660    private static $input_name     = 'widget_to_duplicate'; 
    5761 
     
    6670     */ 
    6771    public static function version() { 
    68         return '1.0.1'; 
     72        return '1.0.2'; 
    6973    } 
    7074 
     
    98102     */ 
    99103    public static function load_textdomain() { 
    100         load_plugin_textdomain( self::$textdomain, false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
     104        load_plugin_textdomain( 'duplicate-widget', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
    101105    } 
    102106 
     
    118122        wp_enqueue_script( self::$widget_id, plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), '0.1', true ); 
    119123        $strings = array( 
    120             'widget_is_duplicated' => __( 'This widget is duplicated elsewhere.', self::$textdomain ), 
    121             'notation'             => __( '[D]', self::$textdomain ) 
     124            'widget_is_duplicated' => __( 'This widget is duplicated elsewhere.', 'duplicate-widget' ), 
     125            'notation'             => __( '[D]', 'duplicate-widget' ) 
    122126        ); 
    123127        wp_localize_script( self::$widget_id, self::$widget_id, $strings ); 
     
    219223 
    220224        $html = "<select name='$input_name' id='$input_id'>\n"; 
    221         $html .= '<option value="">&#8212; ' . __( 'Choose widget to duplicate', self::$textdomain ) . ' &#8212;</option>'; 
     225        $html .= '<option value="">&#8212; ' . __( 'Choose widget to duplicate', 'duplicate-widget' ) . ' &#8212;</option>'; 
    222226        foreach ( $widgets as $widget ) { 
    223227            $label = $wp_registered_widgets[$widget]['name']; 
     
    386390            '<strong>NOTE:</strong> This widget has <strong>%s</strong> duplicates.', 
    387391            $n, 
    388             self::$textdomain ), $n 
     392            'duplicate-widget' ), $n 
    389393        ); 
    390394        echo ' '; 
     
    393397            'If you deactivate or delete this widget, those duplicates will be deleted.', 
    394398            $n, 
    395             self::$textdomain 
     399            'duplicate-widget' 
    396400        ); 
    397401        // Output hidden markup that JS will use to insert into the titlebar of duplicated widgets 
     
    412416     */ 
    413417    public function __construct() { 
    414         self::$title = __( 'Duplicate', self::$textdomain ); 
     418        self::$title = __( 'Duplicate', 'duplicate-widget' ); 
    415419        $widget_ops = array( 
    416420            'classname'   => 'widget_' . self::$widget_id, 
    417             'description' => __( 'Exact duplicate of any other widget.', self::$textdomain ) . ' ' . 
    418                              __( '(If the source widget gets deactivated or deleted, its duplicate(s) disappear.)', self::$textdomain ) 
     421            'description' => __( 'Exact duplicate of any other widget.', 'duplicate-widget' ) . ' ' . 
     422                             __( '(If the source widget gets deactivated or deleted, its duplicate(s) disappear.)', 'duplicate-widget' ) 
    419423        ); 
    420424        $control_ops = array( 'width' => '300' ); 
     
    489493 
    490494endif; 
    491  
    492 ?> 
  • duplicate-widget/tags/1.0.2/readme.txt

    r482448 r556495  
    33Donate link: http://coffee2code.com/donate 
    44Tags: widget, widgets, sidebar, duplicate, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 3.1 
    6 Tested up to: 3.3 
    7 Stable tag: 1.0.1 
    8 Version: 1.0.1 
     8Tested up to: 3.4 
     9Stable tag: 1.0.2 
     10Version: 1.0.2 
    911 
    1012A widget that can act as a duplicate of another widget (for synchronized use in another sidebar) 
     
    137139== Changelog == 
    138140 
     141= 1.0.2 = 
     142* Use string instead of variable to specify translation textdomain 
     143* Re-license as GPLv2 or later (from X11) 
     144* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     145* Remove ending PHP close tag 
     146* Note compatibility through WP 3.4+ 
     147 
    139148= 1.0.1 = 
    140149* Minor bugfixes 
     
    147156== Upgrade Notice == 
    148157 
     158= 1.0.2 = 
     159Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
     160 
    149161= 1.0.1 = 
    150162Bugfix update: Minor bugfixes. 
  • duplicate-widget/trunk/duplicate-widget.php

    r482448 r556495  
    33 * @package Duplicate_Widget 
    44 * @author Scott Reilly 
    5  * @version 1.0.1 
     5 * @version 1.0.2 
    66 */ 
    77/* 
    88Plugin Name: Duplicate Widget 
    9 Version: 1.0.1 
     9Version: 1.0.2 
    1010Plugin URI: http://coffee2code.com/wp-plugins/duplicate-widget/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
    1313Text Domain: duplicate-widget 
    1414Domain Path: /lang/ 
     15License: GPLv2 or later 
     16License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1517Description: A widget that can act as a duplicate of another widget (for synchronized use in another sidebar) 
    1618 
    17 Compatible with WordPress 3.1+, 3.2+, 3.3+ 
     19Compatible with WordPress 3.1 through 3.4+. 
    1820 
    1921=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2729        * Immediately delete duplicates of a widget that gets deleted or deactivated 
    2830    * When clicking the dropdown, can check some JS flag that gets set when a widget gets activated/deactivated which causes the dropdown to be regenerated via AJAX (or simply always refresh it via AJAX) 
    29  
     31    * Track down possible bug where source widget claims to have dupes, but it doesn't really anymore 
     32    * Way to locate/highlight duplicates of a widget 
    3033*/ 
    3134 
    3235/* 
    33 Copyright (c) 2010-2012 by Scott Reilly (aka coffee2code) 
    34  
    35 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    36 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    37 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the 
    38 Software is furnished to do so, subject to the following conditions: 
    39  
    40 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
    41  
    42 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    43 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    44 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    45 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     36    Copyright (c) 2010-2012 by Scott Reilly (aka coffee2code) 
     37 
     38    This program is free software; you can redistribute it and/or 
     39    modify it under the terms of the GNU General Public License 
     40    as published by the Free Software Foundation; either version 2 
     41    of the License, or (at your option) any later version. 
     42 
     43    This program is distributed in the hope that it will be useful, 
     44    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     45    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     46    GNU General Public License for more details. 
     47 
     48    You should have received a copy of the GNU General Public License 
     49    along with this program; if not, write to the Free Software 
     50    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    4651*/ 
    4752 
     
    5358    private static $current        = null; 
    5459    private static $widget_id      = 'duplicate_widget'; 
    55     private static $textdomain     = 'duplicate-widget'; 
    5660    private static $input_name     = 'widget_to_duplicate'; 
    5761 
     
    6670     */ 
    6771    public static function version() { 
    68         return '1.0.1'; 
     72        return '1.0.2'; 
    6973    } 
    7074 
     
    98102     */ 
    99103    public static function load_textdomain() { 
    100         load_plugin_textdomain( self::$textdomain, false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
     104        load_plugin_textdomain( 'duplicate-widget', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
    101105    } 
    102106 
     
    118122        wp_enqueue_script( self::$widget_id, plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery' ), '0.1', true ); 
    119123        $strings = array( 
    120             'widget_is_duplicated' => __( 'This widget is duplicated elsewhere.', self::$textdomain ), 
    121             'notation'             => __( '[D]', self::$textdomain ) 
     124            'widget_is_duplicated' => __( 'This widget is duplicated elsewhere.', 'duplicate-widget' ), 
     125            'notation'             => __( '[D]', 'duplicate-widget' ) 
    122126        ); 
    123127        wp_localize_script( self::$widget_id, self::$widget_id, $strings ); 
     
    219223 
    220224        $html = "<select name='$input_name' id='$input_id'>\n"; 
    221         $html .= '<option value="">&#8212; ' . __( 'Choose widget to duplicate', self::$textdomain ) . ' &#8212;</option>'; 
     225        $html .= '<option value="">&#8212; ' . __( 'Choose widget to duplicate', 'duplicate-widget' ) . ' &#8212;</option>'; 
    222226        foreach ( $widgets as $widget ) { 
    223227            $label = $wp_registered_widgets[$widget]['name']; 
     
    386390            '<strong>NOTE:</strong> This widget has <strong>%s</strong> duplicates.', 
    387391            $n, 
    388             self::$textdomain ), $n 
     392            'duplicate-widget' ), $n 
    389393        ); 
    390394        echo ' '; 
     
    393397            'If you deactivate or delete this widget, those duplicates will be deleted.', 
    394398            $n, 
    395             self::$textdomain 
     399            'duplicate-widget' 
    396400        ); 
    397401        // Output hidden markup that JS will use to insert into the titlebar of duplicated widgets 
     
    412416     */ 
    413417    public function __construct() { 
    414         self::$title = __( 'Duplicate', self::$textdomain ); 
     418        self::$title = __( 'Duplicate', 'duplicate-widget' ); 
    415419        $widget_ops = array( 
    416420            'classname'   => 'widget_' . self::$widget_id, 
    417             'description' => __( 'Exact duplicate of any other widget.', self::$textdomain ) . ' ' . 
    418                              __( '(If the source widget gets deactivated or deleted, its duplicate(s) disappear.)', self::$textdomain ) 
     421            'description' => __( 'Exact duplicate of any other widget.', 'duplicate-widget' ) . ' ' . 
     422                             __( '(If the source widget gets deactivated or deleted, its duplicate(s) disappear.)', 'duplicate-widget' ) 
    419423        ); 
    420424        $control_ops = array( 'width' => '300' ); 
     
    489493 
    490494endif; 
    491  
    492 ?> 
  • duplicate-widget/trunk/readme.txt

    r482448 r556495  
    33Donate link: http://coffee2code.com/donate 
    44Tags: widget, widgets, sidebar, duplicate, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 3.1 
    6 Tested up to: 3.3 
    7 Stable tag: 1.0.1 
    8 Version: 1.0.1 
     8Tested up to: 3.4 
     9Stable tag: 1.0.2 
     10Version: 1.0.2 
    911 
    1012A widget that can act as a duplicate of another widget (for synchronized use in another sidebar) 
     
    137139== Changelog == 
    138140 
     141= 1.0.2 = 
     142* Use string instead of variable to specify translation textdomain 
     143* Re-license as GPLv2 or later (from X11) 
     144* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     145* Remove ending PHP close tag 
     146* Note compatibility through WP 3.4+ 
     147 
    139148= 1.0.1 = 
    140149* Minor bugfixes 
     
    147156== Upgrade Notice == 
    148157 
     158= 1.0.2 = 
     159Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
     160 
    149161= 1.0.1 = 
    150162Bugfix update: Minor bugfixes. 
Note: See TracChangeset for help on using the changeset viewer.