Changeset 668330
- Timestamp:
- 02/15/2013 07:54:29 AM (13 years ago)
- Location:
- likes-posts-comments/trunk
- Files:
-
- 2 edited
-
likes-posts-comments.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
likes-posts-comments/trunk/likes-posts-comments.php
r667264 r668330 5 5 Author: Aurélien Chappard 6 6 Author URI: http://www.deefuse.fr/ 7 Version: 1. 0.07 Version: 1.1 8 8 Network: false 9 9 License: GPL … … 42 42 public function getLinkLikePost() 43 43 { 44 $labelLikePost = get_option('like_post_label ');45 $labelUnLikePost = get_option('unlike_post_label ');44 $labelLikePost = get_option('like_post_label_'.get_current_blog_id()); 45 $labelUnLikePost = get_option('unlike_post_label_'.get_current_blog_id()); 46 46 47 47 global $wpdb; … … 64 64 public function getLinkLikeComment() 65 65 { 66 $labelLikeComment = get_option('like_comment_label ');67 $labelUnLikeComment = get_option('unlike_comment_label ');66 $labelLikeComment = get_option('like_comment_label_'.get_current_blog_id()); 67 $labelUnLikeComment = get_option('unlike_comment_label_'.get_current_blog_id()); 68 68 69 69 global $wpdb; … … 306 306 $html = '<script type="text/javascript">'; 307 307 $html .= 'var ajaxurl = "' . admin_url( 'admin-ajax.php' ) . '";'; 308 $html .= 'var likePostLabel = "' . htmlentities( get_option('like_post_label ') ) . '";';309 $html .= 'var unLikePostLabel = "' . htmlentities( get_option('unlike_post_label ') ) . '";';310 $html .= 'var likeCommentLabel = "' . htmlentities( get_option('like_comment_label ') ) . '";';311 $html .= 'var unLikeCommentLabel = "' . htmlentities( get_option('unlike_comment_label ')) . '";';308 $html .= 'var likePostLabel = "' . htmlentities( get_option('like_post_label_'.get_current_blog_id()) ) . '";'; 309 $html .= 'var unLikePostLabel = "' . htmlentities( get_option('unlike_post_label_'.get_current_blog_id()) ) . '";'; 310 $html .= 'var likeCommentLabel = "' . htmlentities( get_option('like_comment_label_'.get_current_blog_id()) ) . '";'; 311 $html .= 'var unLikeCommentLabel = "' . htmlentities( get_option('unlike_comment_label_'.get_current_blog_id())) . '";'; 312 312 $html .= '</script>'; 313 313 -
likes-posts-comments/trunk/readme.txt
r667264 r668330 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 15 This plugin provides 4 new template tags to display some informations/actions about posts and comments. This template tags have to be called within the loop : 16 <?php wp_postlike(); ?>: Return a link to like or unlike a post17 <?php wp_commentlike(); ?>: Return a link to like or unlike a comment18 <?php wp_nb_postlike(); ?>: Return a text to display the number of like for the current post19 <?php wp_nb_commentlike(); ?>: Return a text to display the number of like for the current comment16 wp_postlike(); : Return a link to like or unlike a post 17 wp_commentlike(); : Return a link to like or unlike a comment 18 wp_nb_postlike(); : Return a text to display the number of like for the current post 19 wp_nb_commentlike(); : Return a text to display the number of like for the current comment 20 20 21 21 == Installation == … … 35 35 == Changelog == 36 36 37 37 1.1 : Correction minor bugs for multisite options 38 38 39 39 == Upgrade notice ==
Note: See TracChangeset
for help on using the changeset viewer.