Changeset 1807271
- Timestamp:
- 01/22/2018 05:02:35 PM (8 years ago)
- Location:
- nice-likes/trunk
- Files:
-
- 3 edited
-
nice-likes.php (modified) (2 diffs)
-
public/templating.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nice-likes/trunk/nice-likes.php
r1774883 r1807271 7 7 * @license GPL-2.0+ 8 8 * @link https://nicethemes.com/product/nice-likes 9 * @copyright 2016-201 7NiceThemes9 * @copyright 2016-2018 NiceThemes 10 10 * 11 11 * @wordpress-plugin … … 13 13 * Plugin URI: https://nicethemes.com/product/nice-likes 14 14 * Description: Add "liking" functionality to your posts, pages and custom post types on your WordPress site. 15 * Version: 1.0. 515 * Version: 1.0.6 16 16 * Author: NiceThemes 17 17 * Author URI: http://nicethemes.com -
nice-likes/trunk/public/templating.php
r1470927 r1807271 75 75 endif; 76 76 77 if ( ! function_exists( 'nice_likes_custom ' ) ) :78 add_action( 'nice_likes_custom', 'nice_likes_custom ' );77 if ( ! function_exists( 'nice_likes_custom_location' ) ) : 78 add_action( 'nice_likes_custom', 'nice_likes_custom_location' ); 79 79 /** 80 80 * Show likes in a custom location. -
nice-likes/trunk/readme.txt
r1774883 r1807271 5 5 Tested up to: 4.9 6 6 Requires PHP: 5.3 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 The simplest way to include likes in your own templates is using our `nice_likes()` function. This is a very basic usage example: 82 82 83 ` ``83 ` 84 84 <?php 85 85 if ( function_exists( 'nice_likes' ) ) : … … 87 87 endif; 88 88 ?> 89 ` ``89 ` 90 90 91 91 However, we recommend you to use the `nice_likes_custom` action, which allows to select via Likes Settings where likes will be displayed. In the settings page, you'll be presented with three options for the location of your likes: before your post content, after your post content, or in a custom location. If you chose the later, you're gonna need to add `<?php do_action( 'nice_likes_custom' ); ?>` to the the part of your template where you want your likes to display, while still having the possibility to move them to the top or bottom of your content in case you need to. … … 101 101 102 102 == Changelog == 103 104 = 1.0.6 = 105 * Fix PHP fatal error when using custom location. 103 106 104 107 = 1.0.5 =
Note: See TracChangeset
for help on using the changeset viewer.