Plugin Directory

Changeset 1215617


Ignore:
Timestamp:
08/08/2015 10:20:55 AM (11 years ago)
Author:
k2klettern
Message:

tagging version 0.1.1

Location:
bbp-valoration
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bbp-valoration/tags/0.1.1/bbp-valoration.php

    r1195490 r1215617  
    2626*/
    2727
     28add_action('plugins_loaded', 'bbpv_text');
     29
     30function bbpv_text() {
     31    load_plugin_textdomain('bbpv', false, basename(dirname(__FILE__)) . '/langs');
     32}
     33
    2834// Make sure we don't expose any info if called directly
    2935
     
    3238
    3339if(!is_plugin_active('bbpress/bbpress.php')) {
    34         echo "<div class=\"error\"> <p>This Plugin needs BBpress to work, pls. install it first and activate.</p></div>";
     40        echo "<div class=\"error\"> <p>".__('This Plugin needs BBpress to work, pls. install it first and activate.','bbpv')."</p></div>";
    3541        exit;
    3642}
     
    3844
    3945if ( !function_exists( 'add_action' ) ) {
    40     _e('Hi there!  I\'m just a plugin, not much I can do when called directly.');
     46    _e('Hi there!  I\'m just a plugin, not much I can do when called directly.','bbpv');
    4147    exit;
    4248}
  • bbp-valoration/tags/0.1.1/js/my_voter_script.js

    r1195490 r1215617  
    2222                        else {
    2323                           jQuery(".bbpv_mess #errortext").show()
    24                            console.log("respuesta: "+response.msg)
    2524                        }
    2625                    }
  • bbp-valoration/tags/0.1.1/readme.txt

    r1195490 r1215617  
    11=== bbp-valoration ===
    22Contributors: k2klettern
    3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums
     3Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums, likes
    44Requires at least: 4.0
    5 Tested up to: 4.1
    6 Stable tag: 0.1.0
     5Tested up to: 4.3
     6Stable tag: 0.1.1
    77License: GPLv2 or later
    88
     
    2323* Uses Ajax.
    2424
    25 PD: This plugin works only with a BBpress forum.
     25PD: This plugin works only with a BBpress forum installation.
    2626
    2727== Installation ==
     
    3737
    3838* First Release
     39
     40= 0.1.1 =
     41*Added support in Widget for PHP5 due release of WP 4.3
     42*Added Languages Serbian and Spanish; Serbian language added thanks to Mr. Ogi Djuraskovic from http://firstsiteguide.com/
  • bbp-valoration/tags/0.1.1/widget.php

    r1195490 r1215617  
    33class bbpv_widget extends WP_Widget {
    44 
    5     function bbpv_widget(){
     5    function __construct(){
    66        // Constructor del Widget
    77        $widget_ops = array('classname' => 'bbpv_widget', 'description' => "Show Topics per votes, visit or replies." );
    8         $this->WP_Widget('bbpv_widget', "BBpress Valoration Widget", $widget_ops);
     8        parent::__construct('bbpv_widget', "BBpress Valoration Widget", $widget_ops);
    99    }
    1010 
     
    7070         <div class="widget-content">
    7171         <p>
    72             <label for="<?php echo $this->get_field_id('bbpv_title'); ?>"><?php _e('Add a title for Widget (Can be empty)'); ?></label>
     72            <label for="<?php echo $this->get_field_id('bbpv_title'); ?>"><?php _e('Add a title for Widget (Can be empty)','bbpv'); ?></label>
    7373            <input type="text" name="<?php echo $this->get_field_name('bbpv_title'); ?>" id="<?php echo $this->get_field_id('bbpv_title'); ?>" value="<?php if (isset($instance["bbpv_title"]) && esc_attr($instance["bbpv_title"])) echo esc_attr($instance["bbpv_title"]); ?>">
    7474         <p>
    75             <label for="<?php echo $this->get_field_id('bbpv_option'); ?>"><?php _e('Select which option to show'); ?></label>
     75            <label for="<?php echo $this->get_field_id('bbpv_option'); ?>"><?php _e('Select which option to show','bbpv'); ?></label>
    7676            <select name="<?php echo $this->get_field_name('bbpv_option'); ?>" id="<?php echo $this->get_field_id('bbpv_option'); ?>">
    77                 <option><?php _e('Select an Option'); ?></option>
    78                 <option value="1" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='1') echo "selected=\"selected\""; ?>><?php _e('per Votes');?></option>
    79                 <option value="2" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='2') echo "selected=\"selected\""; ?>><?php _e('per Visits');?></option>
    80                 <option value="3" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='3') echo "selected=\"selected\""; ?>><?php _e('per Replies');?></option>
     77                <option><?php _e('Select an Option','bbpv'); ?></option>
     78                <option value="1" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='1') echo "selected=\"selected\""; ?>><?php _e('per Votes','bbpv');?></option>
     79                <option value="2" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='2') echo "selected=\"selected\""; ?>><?php _e('per Visits','bbpv');?></option>
     80                <option value="3" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='3') echo "selected=\"selected\""; ?>><?php _e('per Replies','bbpv');?></option>
    8181            </select>
    8282         </p>
    8383         <p>
    84             <label for="<?php echo $this->get_field_id('bbpv_number'); ?>"><?php _e('Select which option to show'); ?></label>
     84            <label for="<?php echo $this->get_field_id('bbpv_number'); ?>"><?php _e('Select which option to show','bbpv'); ?></label>
    8585            <select name="<?php echo $this->get_field_name('bbpv_number'); ?>" id="<?php echo $this->get_field_id('bbpv_number'); ?>">
    86                 <option><?php _e('Select an Option'); ?></option>
     86                <option><?php _e('Select an Option','bbpv'); ?></option>
    8787                <?php for ($i=1; $i<=10; $i++ ) { ?>
    8888                <option value="<?php echo $i; ?>" <?php if (isset($instance["bbpv_number"]) && esc_attr($instance["bbpv_number"])==$i) echo "selected=\"selected\""; ?>><?php echo $i; ?></option>
     
    9191         </p>
    9292         <p>
    93             <label for="<?php echo $this->get_field_id('bbpv_showvalues'); ?>"><?php _e('Check to show the values'); ?></label>
     93            <label for="<?php echo $this->get_field_id('bbpv_showvalues'); ?>"><?php _e('Check to show the values','bbpv'); ?></label>
    9494            <input type="checkbox" name="<?php echo $this->get_field_name('bbpv_showvalues'); ?>" id="<?php echo $this->get_field_id('bbpv_showvalues'); ?>" value="1" <?php if (isset($instance["bbpv_showvalues"]) && esc_attr($instance["bbpv_showvalues"])=='1') echo "checked=\"checked\""; ?>>
    9595        </div>
  • bbp-valoration/trunk/bbp-valoration.php

    r1195490 r1215617  
    2626*/
    2727
     28add_action('plugins_loaded', 'bbpv_text');
     29
     30function bbpv_text() {
     31    load_plugin_textdomain('bbpv', false, basename(dirname(__FILE__)) . '/langs');
     32}
     33
    2834// Make sure we don't expose any info if called directly
    2935
     
    3238
    3339if(!is_plugin_active('bbpress/bbpress.php')) {
    34         echo "<div class=\"error\"> <p>This Plugin needs BBpress to work, pls. install it first and activate.</p></div>";
     40        echo "<div class=\"error\"> <p>".__('This Plugin needs BBpress to work, pls. install it first and activate.','bbpv')."</p></div>";
    3541        exit;
    3642}
     
    3844
    3945if ( !function_exists( 'add_action' ) ) {
    40     _e('Hi there!  I\'m just a plugin, not much I can do when called directly.');
     46    _e('Hi there!  I\'m just a plugin, not much I can do when called directly.','bbpv');
    4147    exit;
    4248}
  • bbp-valoration/trunk/js/my_voter_script.js

    r1195490 r1215617  
    2222                        else {
    2323                           jQuery(".bbpv_mess #errortext").show()
    24                            console.log("respuesta: "+response.msg)
    2524                        }
    2625                    }
  • bbp-valoration/trunk/readme.txt

    r1195490 r1215617  
    11=== bbp-valoration ===
    22Contributors: k2klettern
    3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums
     3Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums, likes
    44Requires at least: 4.0
    5 Tested up to: 4.1
    6 Stable tag: 0.1.0
     5Tested up to: 4.3
     6Stable tag: 0.1.1
    77License: GPLv2 or later
    88
     
    2323* Uses Ajax.
    2424
    25 PD: This plugin works only with a BBpress forum.
     25PD: This plugin works only with a BBpress forum installation.
    2626
    2727== Installation ==
     
    3737
    3838* First Release
     39
     40= 0.1.1 =
     41*Added support in Widget for PHP5 due release of WP 4.3
     42*Added Languages Serbian and Spanish; Serbian language added thanks to Mr. Ogi Djuraskovic from http://firstsiteguide.com/
  • bbp-valoration/trunk/widget.php

    r1195490 r1215617  
    33class bbpv_widget extends WP_Widget {
    44 
    5     function bbpv_widget(){
     5    function __construct(){
    66        // Constructor del Widget
    77        $widget_ops = array('classname' => 'bbpv_widget', 'description' => "Show Topics per votes, visit or replies." );
    8         $this->WP_Widget('bbpv_widget', "BBpress Valoration Widget", $widget_ops);
     8        parent::__construct('bbpv_widget', "BBpress Valoration Widget", $widget_ops);
    99    }
    1010 
     
    7070         <div class="widget-content">
    7171         <p>
    72             <label for="<?php echo $this->get_field_id('bbpv_title'); ?>"><?php _e('Add a title for Widget (Can be empty)'); ?></label>
     72            <label for="<?php echo $this->get_field_id('bbpv_title'); ?>"><?php _e('Add a title for Widget (Can be empty)','bbpv'); ?></label>
    7373            <input type="text" name="<?php echo $this->get_field_name('bbpv_title'); ?>" id="<?php echo $this->get_field_id('bbpv_title'); ?>" value="<?php if (isset($instance["bbpv_title"]) && esc_attr($instance["bbpv_title"])) echo esc_attr($instance["bbpv_title"]); ?>">
    7474         <p>
    75             <label for="<?php echo $this->get_field_id('bbpv_option'); ?>"><?php _e('Select which option to show'); ?></label>
     75            <label for="<?php echo $this->get_field_id('bbpv_option'); ?>"><?php _e('Select which option to show','bbpv'); ?></label>
    7676            <select name="<?php echo $this->get_field_name('bbpv_option'); ?>" id="<?php echo $this->get_field_id('bbpv_option'); ?>">
    77                 <option><?php _e('Select an Option'); ?></option>
    78                 <option value="1" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='1') echo "selected=\"selected\""; ?>><?php _e('per Votes');?></option>
    79                 <option value="2" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='2') echo "selected=\"selected\""; ?>><?php _e('per Visits');?></option>
    80                 <option value="3" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='3') echo "selected=\"selected\""; ?>><?php _e('per Replies');?></option>
     77                <option><?php _e('Select an Option','bbpv'); ?></option>
     78                <option value="1" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='1') echo "selected=\"selected\""; ?>><?php _e('per Votes','bbpv');?></option>
     79                <option value="2" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='2') echo "selected=\"selected\""; ?>><?php _e('per Visits','bbpv');?></option>
     80                <option value="3" <?php if (isset($instance["bbpv_option"]) && esc_attr($instance["bbpv_option"])=='3') echo "selected=\"selected\""; ?>><?php _e('per Replies','bbpv');?></option>
    8181            </select>
    8282         </p>
    8383         <p>
    84             <label for="<?php echo $this->get_field_id('bbpv_number'); ?>"><?php _e('Select which option to show'); ?></label>
     84            <label for="<?php echo $this->get_field_id('bbpv_number'); ?>"><?php _e('Select which option to show','bbpv'); ?></label>
    8585            <select name="<?php echo $this->get_field_name('bbpv_number'); ?>" id="<?php echo $this->get_field_id('bbpv_number'); ?>">
    86                 <option><?php _e('Select an Option'); ?></option>
     86                <option><?php _e('Select an Option','bbpv'); ?></option>
    8787                <?php for ($i=1; $i<=10; $i++ ) { ?>
    8888                <option value="<?php echo $i; ?>" <?php if (isset($instance["bbpv_number"]) && esc_attr($instance["bbpv_number"])==$i) echo "selected=\"selected\""; ?>><?php echo $i; ?></option>
     
    9191         </p>
    9292         <p>
    93             <label for="<?php echo $this->get_field_id('bbpv_showvalues'); ?>"><?php _e('Check to show the values'); ?></label>
     93            <label for="<?php echo $this->get_field_id('bbpv_showvalues'); ?>"><?php _e('Check to show the values','bbpv'); ?></label>
    9494            <input type="checkbox" name="<?php echo $this->get_field_name('bbpv_showvalues'); ?>" id="<?php echo $this->get_field_id('bbpv_showvalues'); ?>" value="1" <?php if (isset($instance["bbpv_showvalues"]) && esc_attr($instance["bbpv_showvalues"])=='1') echo "checked=\"checked\""; ?>>
    9595        </div>
Note: See TracChangeset for help on using the changeset viewer.