Changeset 4101 for extensions/PiwigoPress/PiwigoPress.php
- Timestamp:
- Oct 23, 2009, 11:01:10 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoPress/PiwigoPress.php
r4099 r4101 4 4 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=316 5 5 Description: PiwigoPress is a WordPress 2.8 widget, it links a public picture in your Piwigo gallery (<a href="http://piwigo.org/">Piwigo</a>). In other words, it's a WordPress Sidebar Widget with some available public pictures in your Piwigo gallery as a prereq. 6 Version: 1.0 16 Version: 1.02 7 7 Author: vpiwigo ( for VDigital, rvelices, Laurent Duretz, ddtddt, rio (and all The Piwigo Team)) 8 8 Author URI: http://www.vdigital.org/sharing/ … … 25 25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 26 */ 27 if (!defined('PWGP_NAME')) define('PWGP_NAME','Public Piwigo WordPress '); 28 if (!defined('PWGP_PFX')) define('PWGP_PFX','Public_Piwigo_WordPress_'); 27 if (!defined('PWGP_NAME')) define('PWGP_NAME','PiwigoPress'); 29 28 30 29 load_plugin_textdomain('pwg', 'wp-content/plugins/PiwigoPress', 'PiwigoPress' ); … … 33 32 { 34 33 function PiwigoPress(){ 35 $widget_ops = array('classname' => PWGP_ PFX . 'Widget',34 $widget_ops = array('classname' => PWGP_NAME, 36 35 'description' => __( "Adds a thumbnail and its link (to the picture) inside your blog sidebar.",'pwg') ); 37 36 $control_ops = array('width' => 300, 'height' => 300); 38 $this->WP_Widget(PWGP_ PFX . 'Widget', PWGP_NAME . 'Widget', $widget_ops, $control_ops);37 $this->WP_Widget(PWGP_NAME, PWGP_NAME, $widget_ops, $control_ops); 39 38 } 40 39 // Code generator … … 72 71 // Register 73 72 function PiwigoPress_Init() { 74 register_widget( PWGP_PFX . 'Widget');73 register_widget('PiwigoPress'); 75 74 } 76 add_action('widgets_init', PWGP_ PFX. '_Init');75 add_action('widgets_init', PWGP_NAME . '_Init'); 77 76 ?>
Note: See TracChangeset
for help on using the changeset viewer.