Changeset 847293
- Timestamp:
- 01/28/2014 10:32:51 PM (10 years ago)
- Location:
- kudos/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kudos/trunk/js/kudos.js
r702197 r847293 23 23 this.element.children('.kudo-object').mouseenter(this.start); 24 24 this.element.children('.kudo-object').mouseleave(this.end); 25 26 25 if (kudosdata.unkudo) 27 26 this.element.children('.kudo-object').click(this.unkudo); … … 29 28 this.element.children('.kudo-object').css('cursor','default'); 30 29 31 jQuery( document).on('touchstart', this.element.children('.kudo-object'), this.start);32 return jQuery( document).on('touchend', this.element.children('.kudo-object'), this.end);30 jQuery(, this.start); 31 return jQuery(, this.end); 33 32 }; 34 33 … … 195 194 // $(this).removeClass("kudo-complete").addClass("kudo-animate"); 196 195 }, "json" 197 ) .fail(function() { alert("failed"); }); // for development196 ).fail(function() { alert("failed"); }); // for development 198 197 } 199 198 }); … … 229 228 // $(this).removeClass("kudo-animate").addClass("kudo-complete"); 230 229 }, "json" 231 ) .fail(function() { alert("failed here"); });230 ).fail(function() { alert("failed here"); }); 232 231 } 233 232 } -
kudos/trunk/kudos.php
r702197 r847293 5 5 Description: Svbtle.com style kudos for your blog. 6 6 Author: Alexander Höreth 7 Version: 1.1 7 Version: 1.1 8 8 Author URI: http://yrnxt.com 9 9 License: GPL2 … … 28 28 29 29 if (!defined('KUDO_VER')) 30 define('KUDO_VER', '1.1 ');30 define('KUDO_VER', '1.1'); 31 31 32 32 // symlink proof -
kudos/trunk/php/filter.php
r702197 r847293 81 81 * @since 1.0 82 82 * 83 * @uses $this ::content83 * @uses $thiscontent 84 84 * @param string $excerpt excerpt before filtering 85 85 * @return string excerpt + Kudos 86 86 */ 87 87 public function excerpt($excerpt){ 88 return $this ::content($excerpt);88 return $thiscontent($excerpt); 89 89 } 90 90 -
kudos/trunk/php/functions.php
r702203 r847293 67 67 * @return string Kudo html code 68 68 */ 69 function get_kudos( $post_id = null, $attr ){69 function get_kudos( $post_id = null, $attr ){ 70 70 extract( $attr ); 71 71 // $class, $style, $counter, $text, $hover -
kudos/trunk/php/help.php
r702197 r847293 77 77 */ 78 78 public function tabs() { 79 $screen = get_current_screen(); 80 if( ($screen->id != $this->settings->hook) || (get_bloginfo('version') < 3.3) ) 79 if (get_bloginfo('version') < 3.3) 81 80 return; 82 81 82 83 83 84 // PHP FUNCTIONS HELP TAB 84 $screen->add_help_tab( array( 85 'id' => 'kudos_functions', 86 'title' => 'Kudos: '.__('PHP-Functions','kudos'), 87 'content' => $this->functions 88 )); 85 if ($screen->id==$this->settings->hook){ 86 $screen->add_help_tab( array( 87 'id' => 'kudos_functions', 88 'title' => 'Kudos: '.__('PHP-Functions','kudos'), 89 'content' => $this->functions 90 )); 91 } 89 92 90 93 // SHORTCODE HELP TAB 91 $screen->add_help_tab( array( 92 'id' => 'kudos_shortcode', 93 'title' => 'Kudos: Shortcode', 94 'content' => $this->shortcode 95 )); 94 if (($screen->id=='post')||($screen->id==$this->settings->hook)){ 95 $screen->add_help_tab( array( 96 'id' => 'kudos_shortcode', 97 'title' => 'Kudos: Shortcode', 98 'content' => $this->shortcode 99 )); 100 } 96 101 } 97 102 -
kudos/trunk/php/upgrade.php
r702197 r847293 40 40 41 41 } 42 43 ?> -
kudos/trunk/readme.txt
r702197 r847293 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 Requires at least: 3.1 12 Tested up to: 3. 613 Stable tag: 1.1 12 Tested up to: 3. 13 Stable tag: 1.1 14 14 15 15 Brings Kudos, an unobtrusive alternative to Facebook's like, to your WordPress blog. … … 21 21 simply hovers the Kudo-Button: A small animation starts for as long as the visitor does leave his cursor on the Kudo. When the animation is finished and the Kudo-Button is filled the count goes up by one. By clicking the then filled button the visitor can take his Kudo off the post again. 22 22 23 See the plugin in action on [yrnxt.com](http://yrnxt.com/ wordpress/kudos/).23 See the plugin in action on [yrnxt.com](http://yrnxt.com/wordpress/kudos/). 24 24 25 25 [Dustin Curtis](http://dcurt.is/codename-svbtle), creator of svbtle.com and inventor of Kudos, describes Kudos like this: … … 57 57 == Changelog == 58 58 59 60 61 59 62 = 1.1: 2013-04-23 = 60 63 * Added option to disable unkudo'ing
Note: See TracChangeset
for help on using the changeset viewer.