Plugin Directory

Changeset 1257973


Ignore:
Timestamp:
10/02/2015 06:46:35 AM (11 years ago)
Author:
nelio
Message:

Uploading version 2.1.0 with a new filter

Location:
nelio-featured-posts
Files:
3 edited
14 copied

Legend:

Unmodified
Added
Removed
  • nelio-featured-posts/tags/2.1.0/includes/settings.php

    r998443 r1257973  
    2525    public static function get_list_of_feat_posts() {
    2626        $settings = NelioFPSettings::get_settings();
    27         if ( isset( $settings['list_of_feat_posts'] ) )
    28             return $settings['list_of_feat_posts'];
    29         return array();
     27        $featured_posts = array();
     28        if ( isset( $settings['list_of_feat_posts'] ) ) {
     29            $featured_posts = $settings['list_of_feat_posts'];
     30        }
     31
     32        if ( ! is_admin() ) {
     33            /**
     34             * Filters the list of featured posts.
     35             *
     36             * @since    2.1.0
     37             *
     38             * @param    array    $featured_posts    The list of featured posts.
     39             */
     40            $featured_posts = apply_filters( 'neliofp_get_featured_posts', $featured_posts );
     41        }
     42
     43        return $featured_posts;
    3044    }
    3145
  • nelio-featured-posts/tags/2.1.0/main.php

    r1027198 r1257973  
    2020 * Plugin Name: Nelio Featured Posts
    2121 * Description: Select the featured posts you want to show at any time and include them in your theme using a widget.
    22  * Version: 2.0.0
     22 * Version: 2.1.0
    2323 * Author: Nelio Software
    2424 * Plugin URI: http://neliosoftware.com
     
    2929// PLUGIN INFORMATION
    3030// ==========================================================================
    31     define( 'NELIOFP_PLUGIN_VERSION', '2.0.0' );
     31    define( 'NELIOFP_PLUGIN_VERSION', '2.1.0' );
    3232    define( 'NELIOFP_PLUGIN_NAME', 'Nelio Featured Posts' );
    3333    define( 'NELIOFP_PLUGIN_DIR_NAME', basename( dirname( __FILE__ ) ) );
  • nelio-featured-posts/tags/2.1.0/readme.txt

    r1142139 r1257973  
    44Requires at least: 3.3
    55Tested up to: 4.2
    6 Stable tag: 2.0.0
     6Stable tag: 2.1.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777== Changelog ==
    7878
     79= 2.1.0 =
     80* New filter for selecting which posts are shown in the widget. The filter
     81`neliofp_get_featured_posts` lets you select which posts will be shown on
     82the front-end.
     83
     84
    7985= 2.0.0 =
    8086* Use custom templates (on a per-widget basis) for rendering featured posts.
     
    107113== Upgrade Notice ==
    108114
    109 = 2.0.0 =
    110 Use custom templates (on a per-widget basis) for rendering featured posts.
     115= 2.1.0 =
     116New filter for selecting which posts are shown in the widget.
    111117
  • nelio-featured-posts/trunk/includes/settings.php

    r998443 r1257973  
    2525    public static function get_list_of_feat_posts() {
    2626        $settings = NelioFPSettings::get_settings();
    27         if ( isset( $settings['list_of_feat_posts'] ) )
    28             return $settings['list_of_feat_posts'];
    29         return array();
     27        $featured_posts = array();
     28        if ( isset( $settings['list_of_feat_posts'] ) ) {
     29            $featured_posts = $settings['list_of_feat_posts'];
     30        }
     31
     32        if ( ! is_admin() ) {
     33            /**
     34             * Filters the list of featured posts.
     35             *
     36             * @since    2.1.0
     37             *
     38             * @param    array    $featured_posts    The list of featured posts.
     39             */
     40            $featured_posts = apply_filters( 'neliofp_get_featured_posts', $featured_posts );
     41        }
     42
     43        return $featured_posts;
    3044    }
    3145
  • nelio-featured-posts/trunk/main.php

    r1027198 r1257973  
    2020 * Plugin Name: Nelio Featured Posts
    2121 * Description: Select the featured posts you want to show at any time and include them in your theme using a widget.
    22  * Version: 2.0.0
     22 * Version: 2.1.0
    2323 * Author: Nelio Software
    2424 * Plugin URI: http://neliosoftware.com
     
    2929// PLUGIN INFORMATION
    3030// ==========================================================================
    31     define( 'NELIOFP_PLUGIN_VERSION', '2.0.0' );
     31    define( 'NELIOFP_PLUGIN_VERSION', '2.1.0' );
    3232    define( 'NELIOFP_PLUGIN_NAME', 'Nelio Featured Posts' );
    3333    define( 'NELIOFP_PLUGIN_DIR_NAME', basename( dirname( __FILE__ ) ) );
  • nelio-featured-posts/trunk/readme.txt

    r1142139 r1257973  
    44Requires at least: 3.3
    55Tested up to: 4.2
    6 Stable tag: 2.0.0
     6Stable tag: 2.1.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777== Changelog ==
    7878
     79= 2.1.0 =
     80* New filter for selecting which posts are shown in the widget. The filter
     81`neliofp_get_featured_posts` lets you select which posts will be shown on
     82the front-end.
     83
     84
    7985= 2.0.0 =
    8086* Use custom templates (on a per-widget basis) for rendering featured posts.
     
    107113== Upgrade Notice ==
    108114
    109 = 2.0.0 =
    110 Use custom templates (on a per-widget basis) for rendering featured posts.
     115= 2.1.0 =
     116New filter for selecting which posts are shown in the widget.
    111117
Note: See TracChangeset for help on using the changeset viewer.