Ignore:
Timestamp:
Oct 23, 2009, 9:37:45 PM (14 years ago)
Author:
vdigital
Message:

On going rename

Location:
extensions/PiwigoPress
Files:
2 copied

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoPress/Public_WP_Piwigo_Widget.php

    r4082 r4099  
    11<?php
    22/*
    3 Plugin Name: Public Piwigo WordPress Widget
     3Plugin Name: PiwigoPress
    44Plugin URI: http://piwigo.org/ext/extension_view.php?eid=316
    5 Description: Public Piwigo WordPress Widget (PW^2) 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.
     5Description: 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.
    66Version: 1.01
    7 Author: VDigital, rvelices, Laurent Duretz, ddtddt (The Piwigo Team)
     7Author: vpiwigo ( for VDigital, rvelices, Laurent Duretz, ddtddt, rio (and all The Piwigo Team))
    88Author URI: http://www.vdigital.org/sharing/
    99*/
     
    2525    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2626*/
    27 if (!defined('PPW_NAME')) define('PPW_NAME','Public Piwigo WordPress ');
    28 if (!defined('PPW_PFX')) define('PPW_PFX','Public_Piwigo_WordPress_');
     27if (!defined('PWGP_NAME')) define('PWGP_NAME','Public Piwigo WordPress ');
     28if (!defined('PWGP_PFX')) define('PWGP_PFX','Public_Piwigo_WordPress_');
    2929
    30 load_plugin_textdomain('pwg', 'wp-content/plugins/Public_Piwigo_WordPress_Widget', 'Public_Piwigo_WordPress_Widget' );
     30load_plugin_textdomain('pwg', 'wp-content/plugins/PiwigoPress', 'PiwigoPress' );
    3131
    32 class Public_Piwigo_WordPress_Widget extends WP_Widget
     32class PiwigoPress extends WP_Widget
    3333{
    34         function Public_Piwigo_WordPress_Widget(){
    35                 $widget_ops = array('classname' => PPW_PFX . 'Widget',
     34        function PiwigoPress(){
     35                $widget_ops = array('classname' => PWGP_PFX . 'Widget',
    3636                        'description' => __( "Adds a thumbnail and its link (to the picture) inside your blog sidebar.",'pwg') );
    3737                $control_ops = array('width' => 300, 'height' => 300);
    38                 $this->WP_Widget(PPW_PFX . 'Widget', PPW_NAME . 'Widget', $widget_ops, $control_ops);
     38                $this->WP_Widget(PWGP_PFX . 'Widget', PWGP_NAME . 'Widget', $widget_ops, $control_ops);
    3939        }
    4040        // Code generator
    4141        function widget($args, $gallery){
    42                 include 'Public_WP_Piwigo_code.php';
     42                include 'PiwigoPress_code.php';
    4343        }
    4444        function update($new_gallery, $old_gallery){
     
    6666        function form($gallery){
    6767                // Options
    68                 include 'Public_WP_Piwigo_options.php';
     68                include 'PiwigoPress_options.php';
    6969        }
    7070}
    7171
    7272// Register
    73 function Public_Piwigo_WordPress_Widget_Init() {
    74                         register_widget(PPW_PFX . 'Widget');
     73function PiwigoPress_Init() {
     74                        register_widget(PWGP_PFX . 'Widget');
    7575}
    76 add_action('widgets_init', PPW_PFX . 'Widget_Init');
     76add_action('widgets_init', PWGP_PFX . '_Init');
    7777?>
Note: See TracChangeset for help on using the changeset viewer.