Plugin Directory

Changeset 1807271


Ignore:
Timestamp:
01/22/2018 05:02:35 PM (8 years ago)
Author:
andrezrv
Message:

Preparing for 1.0.6 release

Location:
nice-likes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nice-likes/trunk/nice-likes.php

    r1774883 r1807271  
    77 * @license   GPL-2.0+
    88 * @link      https://nicethemes.com/product/nice-likes
    9  * @copyright 2016-2017 NiceThemes
     9 * @copyright 2016-2018 NiceThemes
    1010 *
    1111 * @wordpress-plugin
     
    1313 * Plugin URI:        https://nicethemes.com/product/nice-likes
    1414 * Description:       Add "liking" functionality to your posts, pages and custom post types on your WordPress site.
    15  * Version:           1.0.5
     15 * Version:           1.0.6
    1616 * Author:            NiceThemes
    1717 * Author URI:        http://nicethemes.com
  • nice-likes/trunk/public/templating.php

    r1470927 r1807271  
    7575endif;
    7676
    77 if ( ! function_exists( 'nice_likes_custom' ) ) :
    78 add_action( 'nice_likes_custom', 'nice_likes_custom' );
     77if ( ! function_exists( 'nice_likes_custom_location' ) ) :
     78add_action( 'nice_likes_custom', 'nice_likes_custom_location' );
    7979/**
    8080 * Show likes in a custom location.
  • nice-likes/trunk/readme.txt

    r1774883 r1807271  
    55Tested up to: 4.9
    66Requires PHP: 5.3
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181The simplest way to include likes in your own templates is using our `nice_likes()` function. This is a very basic usage example:
    8282
    83 ```
     83`
    8484<?php
    8585if ( function_exists( 'nice_likes' ) ) :
     
    8787endif;
    8888?>
    89 ```
     89`
    9090
    9191However, 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.
     
    101101
    102102== Changelog ==
     103
     104= 1.0.6 =
     105* Fix PHP fatal error when using custom location.
    103106
    104107= 1.0.5 =
Note: See TracChangeset for help on using the changeset viewer.