Changeset 1215617
- Timestamp:
- 08/08/2015 10:20:55 AM (11 years ago)
- Location:
- bbp-valoration
- Files:
-
- 8 edited
- 1 copied
-
tags/0.1.1 (copied) (copied from bbp-valoration/trunk)
-
tags/0.1.1/bbp-valoration.php (modified) (3 diffs)
-
tags/0.1.1/js/my_voter_script.js (modified) (1 diff)
-
tags/0.1.1/readme.txt (modified) (3 diffs)
-
tags/0.1.1/widget.php (modified) (3 diffs)
-
trunk/bbp-valoration.php (modified) (3 diffs)
-
trunk/js/my_voter_script.js (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbp-valoration/tags/0.1.1/bbp-valoration.php
r1195490 r1215617 26 26 */ 27 27 28 add_action('plugins_loaded', 'bbpv_text'); 29 30 function bbpv_text() { 31 load_plugin_textdomain('bbpv', false, basename(dirname(__FILE__)) . '/langs'); 32 } 33 28 34 // Make sure we don't expose any info if called directly 29 35 … … 32 38 33 39 if(!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>"; 35 41 exit; 36 42 } … … 38 44 39 45 if ( !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'); 41 47 exit; 42 48 } -
bbp-valoration/tags/0.1.1/js/my_voter_script.js
r1195490 r1215617 22 22 else { 23 23 jQuery(".bbpv_mess #errortext").show() 24 console.log("respuesta: "+response.msg)25 24 } 26 25 } -
bbp-valoration/tags/0.1.1/readme.txt
r1195490 r1215617 1 1 === bbp-valoration === 2 2 Contributors: k2klettern 3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums 3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums, likes 4 4 Requires at least: 4.0 5 Tested up to: 4. 16 Stable tag: 0.1. 05 Tested up to: 4.3 6 Stable tag: 0.1.1 7 7 License: GPLv2 or later 8 8 … … 23 23 * Uses Ajax. 24 24 25 PD: This plugin works only with a BBpress forum .25 PD: This plugin works only with a BBpress forum installation. 26 26 27 27 == Installation == … … 37 37 38 38 * 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 3 3 class bbpv_widget extends WP_Widget { 4 4 5 function bbpv_widget(){5 function __construct(){ 6 6 // Constructor del Widget 7 7 $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); 9 9 } 10 10 … … 70 70 <div class="widget-content"> 71 71 <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> 73 73 <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"]); ?>"> 74 74 <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> 76 76 <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> 81 81 </select> 82 82 </p> 83 83 <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> 85 85 <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> 87 87 <?php for ($i=1; $i<=10; $i++ ) { ?> 88 88 <option value="<?php echo $i; ?>" <?php if (isset($instance["bbpv_number"]) && esc_attr($instance["bbpv_number"])==$i) echo "selected=\"selected\""; ?>><?php echo $i; ?></option> … … 91 91 </p> 92 92 <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> 94 94 <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\""; ?>> 95 95 </div> -
bbp-valoration/trunk/bbp-valoration.php
r1195490 r1215617 26 26 */ 27 27 28 add_action('plugins_loaded', 'bbpv_text'); 29 30 function bbpv_text() { 31 load_plugin_textdomain('bbpv', false, basename(dirname(__FILE__)) . '/langs'); 32 } 33 28 34 // Make sure we don't expose any info if called directly 29 35 … … 32 38 33 39 if(!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>"; 35 41 exit; 36 42 } … … 38 44 39 45 if ( !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'); 41 47 exit; 42 48 } -
bbp-valoration/trunk/js/my_voter_script.js
r1195490 r1215617 22 22 else { 23 23 jQuery(".bbpv_mess #errortext").show() 24 console.log("respuesta: "+response.msg)25 24 } 26 25 } -
bbp-valoration/trunk/readme.txt
r1195490 r1215617 1 1 === bbp-valoration === 2 2 Contributors: k2klettern 3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums 3 Tags: bbpress, topics, thumbsup, visits, widget, count, replies, forums, likes 4 4 Requires at least: 4.0 5 Tested up to: 4. 16 Stable tag: 0.1. 05 Tested up to: 4.3 6 Stable tag: 0.1.1 7 7 License: GPLv2 or later 8 8 … … 23 23 * Uses Ajax. 24 24 25 PD: This plugin works only with a BBpress forum .25 PD: This plugin works only with a BBpress forum installation. 26 26 27 27 == Installation == … … 37 37 38 38 * 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 3 3 class bbpv_widget extends WP_Widget { 4 4 5 function bbpv_widget(){5 function __construct(){ 6 6 // Constructor del Widget 7 7 $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); 9 9 } 10 10 … … 70 70 <div class="widget-content"> 71 71 <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> 73 73 <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"]); ?>"> 74 74 <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> 76 76 <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> 81 81 </select> 82 82 </p> 83 83 <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> 85 85 <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> 87 87 <?php for ($i=1; $i<=10; $i++ ) { ?> 88 88 <option value="<?php echo $i; ?>" <?php if (isset($instance["bbpv_number"]) && esc_attr($instance["bbpv_number"])==$i) echo "selected=\"selected\""; ?>><?php echo $i; ?></option> … … 91 91 </p> 92 92 <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> 94 94 <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\""; ?>> 95 95 </div>
Note: See TracChangeset
for help on using the changeset viewer.