From 0511b4f27fc825215bf2ca32d1426e800a880018 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sat, 10 Jan 2015 10:45:16 -0500 Subject: [PATCH] tag as 2.0.0 --- README.md | 7 +++++-- .../class-displayfeaturedimagegenesis-admin.php | 12 ++++++------ .../class-displayfeaturedimagegenesis-common.php | 4 ++-- .../class-displayfeaturedimagegenesis-output.php | 2 +- ...lass-displayfeaturedimagegenesis-settings.php | 10 +++++----- ...ss-displayfeaturedimagegenesis-taxonomies.php | 6 +++--- includes/class-displayfeaturedimagegenesis.php | 4 ++-- ...ayfeaturedimagegenesis-cpt-archive-widget.php | 16 ++++++++-------- ...splayfeaturedimagegenesis-taxonomy-widget.php | 12 ++++++------ languages/display-featured-image-genesis.pot | 2 +- readme.txt | 13 ++++++++----- 11 files changed, 47 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index b7c4b04..edaf3eb 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ _Note: although this plugin requires the [Genesis Framework by StudioPress](http __Display Featured Image for Genesis__ now allows you to select a default, or fallback, Featured Image, which will be used if a post/page does not have a Featured Image set, or if the post/page's Featured Image is too small (smaller than your medium image setting), and on archive pages. You may set the Default Featured Image under Appearance > Display Featured Image Settings. -As of version x.y.z, you can now set a Featured Image for each taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used. +As of version 2.0.0, you can now set a Featured Image for each term within a taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used. + +If your site uses Custom Post Types, you can set a Featured Image for each Post Type on the main Display Featured Image for Genesis settings page. If your single post within this type does not have a featured image, the Post Type Featured Image will be used as a fallback. #### Add Your Featured Image to Your RSS Feed @@ -176,9 +178,10 @@ function rgc_move_image( $hook ) { ## Changelog -### x.y.z +### 2.0.0 * added featured images to taxonomies! * added featured images to admin archive pages! +* added new widgets for featured taxonomy terms and custom post type archives * added new setting to not move post titles to overlay Featured Image ### 1.5.0 - 2014-12-13 diff --git a/includes/class-displayfeaturedimagegenesis-admin.php b/includes/class-displayfeaturedimagegenesis-admin.php index c43052f..1a0a933 100644 --- a/includes/class-displayfeaturedimagegenesis-admin.php +++ b/includes/class-displayfeaturedimagegenesis-admin.php @@ -8,7 +8,7 @@ * @license GPL-2.0+ * @link http://robincornett.com * @copyright 2014 Robin Cornett Creative, LLC - * @since x.y.z + * @since 2.0.0 */ class Display_Featured_Image_Genesis_Admin { @@ -21,7 +21,7 @@ class Display_Featured_Image_Genesis_Admin { /** * set up new column for all public taxonomies * - * @since x.y.z + * @since 2.0.0 */ public function set_up_taxonomy_columns() { $args = array( @@ -38,7 +38,7 @@ class Display_Featured_Image_Genesis_Admin { /** * set up new column for all public post types * - * @since x.y.z + * @since 2.0.0 */ public function set_up_post_type_columns() { $args = array( @@ -61,7 +61,7 @@ class Display_Featured_Image_Genesis_Admin { * add featured image column * @param column $columns set up new column to show featured image for taxonomies/posts/etc. * - * @since x.y.z + * @since 2.0.0 */ public function add_column( $columns ) { @@ -81,7 +81,7 @@ class Display_Featured_Image_Genesis_Admin { * @param term id $term_id term_id for taxonomy * @return featured image display featured image, if it exists, for each term in a public taxonomy * - * @since x.y.z + * @since 2.0.0 */ public function manage_taxonomy_column( $value, $column, $term_id ) { @@ -103,7 +103,7 @@ class Display_Featured_Image_Genesis_Admin { * @param post id $post_id id of each post * @return featured image display featured image, if it exists, for each post * - * @since x.y.z + * @since 2.0.0 */ public function custom_post_columns( $column, $post_id ) { diff --git a/includes/class-displayfeaturedimagegenesis-common.php b/includes/class-displayfeaturedimagegenesis-common.php index b9bad00..7ab0663 100644 --- a/includes/class-displayfeaturedimagegenesis-common.php +++ b/includes/class-displayfeaturedimagegenesis-common.php @@ -13,7 +13,7 @@ class Display_Featured_Image_Genesis_Common { * @var string * @since 1.4.3 */ - public static $version = 'x.y.z'; + public static $version = '2.0.0'; protected static $post_types; @@ -58,7 +58,7 @@ class Display_Featured_Image_Genesis_Common { /** * create a filter to use the fallback image * @var filter - * @since x.y.z (deprecated old use_fallback_image function from 1.2.2) + * @since 2.0.0 (deprecated old use_fallback_image function from 1.2.2) */ $use_fallback = apply_filters( 'display_featured_image_genesis_use_default', self::$post_types ); diff --git a/includes/class-displayfeaturedimagegenesis-output.php b/includes/class-displayfeaturedimagegenesis-output.php index 5b11a0e..0cfd2b2 100644 --- a/includes/class-displayfeaturedimagegenesis-output.php +++ b/includes/class-displayfeaturedimagegenesis-output.php @@ -143,7 +143,7 @@ class Display_Featured_Image_Genesis_Output { /** * create a filter to not move excerpts if move excerpts is enabled * @var filter - * @since x.y.z (deprecated old function from 1.3.3) + * @since 2.0.0 (deprecated old function from 1.3.3) */ $omit_excerpt = apply_filters( 'display_featured_image_genesis_omit_excerpt', $post_types ); diff --git a/includes/class-displayfeaturedimagegenesis-settings.php b/includes/class-displayfeaturedimagegenesis-settings.php index 26fe4d1..d4166d2 100644 --- a/includes/class-displayfeaturedimagegenesis-settings.php +++ b/includes/class-displayfeaturedimagegenesis-settings.php @@ -238,7 +238,7 @@ class Display_Featured_Image_Genesis_Settings { * option to not move titles * @return 0 1 checkbox * - * @since x.y.z + * @since 2.0.0 */ public function keep_titles() { echo ''; @@ -272,7 +272,7 @@ class Display_Featured_Image_Genesis_Settings { * * @return image * - * @since x.y.z + * @since 2.0.0 */ public function set_cpt_image() { @@ -311,7 +311,7 @@ class Display_Featured_Image_Genesis_Settings { * @param term id $term_id the id of the term * @return updated option updated option for term featured image * - * @since x.y.z + * @since 2.0.0 */ public function save_taxonomy_custom_meta( $term_id ) { @@ -430,7 +430,7 @@ class Display_Featured_Image_Genesis_Settings { * Returns empty value for image if not correct file type/size * @param string $new_value New value * @return string New or previous value, depending on allowed image size. - * @since x.y.z + * @since 2.0.0 */ protected function validate_post_type_image( $new_value ) { @@ -477,7 +477,7 @@ class Display_Featured_Image_Genesis_Settings { * Returns false value for image if not correct file type/size * @param string $new_value New value * @return string New value or false, depending on allowed image size. - * @since x.y.z + * @since 2.0.0 */ protected function validate_taxonomy_image( $new_value ) { diff --git a/includes/class-displayfeaturedimagegenesis-taxonomies.php b/includes/class-displayfeaturedimagegenesis-taxonomies.php index 6e9ada5..0db505f 100644 --- a/includes/class-displayfeaturedimagegenesis-taxonomies.php +++ b/includes/class-displayfeaturedimagegenesis-taxonomies.php @@ -5,7 +5,7 @@ * * @package DisplayFeaturedImageGenesis * - * @since x.y.z + * @since 2.0.0 */ class Display_Featured_Image_Genesis_Taxonomies { @@ -29,7 +29,7 @@ class Display_Featured_Image_Genesis_Taxonomies { * * @return preview/uploader upload/preview featured image for term * - * @since x.y.z + * @since 2.0.0 */ public function edit_taxonomy_meta_fields( $term ) { @@ -61,7 +61,7 @@ class Display_Featured_Image_Genesis_Taxonomies { * Help tab for media screen * @return help tab with verbose information for plugin * - * @since x.y.z + * @since 2.0.0 */ public function help() { $screen = get_current_screen(); diff --git a/includes/class-displayfeaturedimagegenesis.php b/includes/class-displayfeaturedimagegenesis.php index 2b4acaa..796e26e 100644 --- a/includes/class-displayfeaturedimagegenesis.php +++ b/includes/class-displayfeaturedimagegenesis.php @@ -121,7 +121,7 @@ class Display_Featured_Image_Genesis { ) ); } - //* new setting for titles added in x.y.z + //* new setting for titles added in 2.0.0 if ( empty( $displaysetting['keep_titles'] ) ) { $this->update_settings( array( 'keep_titles' => 0 @@ -144,7 +144,7 @@ class Display_Featured_Image_Genesis { /** * set up all actions for adding featured images to taxonomies - * @since x.y.z + * @since 2.0.0 */ public function set_taxonomy_meta() { $args = array( diff --git a/includes/widgets/displayfeaturedimagegenesis-cpt-archive-widget.php b/includes/widgets/displayfeaturedimagegenesis-cpt-archive-widget.php index e2abb3e..5a9bf66 100644 --- a/includes/widgets/displayfeaturedimagegenesis-cpt-archive-widget.php +++ b/includes/widgets/displayfeaturedimagegenesis-cpt-archive-widget.php @@ -2,18 +2,18 @@ /** * Dependent class to build a featured taxonomy widget * - * @package DisplayFeaturedImageGenesis + * @package DisplayFeaturedImageGenesis * @author Robin Cornett - * @license GPL-2.0+ * @link http://robincornett.com * @copyright 2014 Robin Cornett Creative, LLC - * @since x.y.z + * @license GPL-2.0+ + * @since 2.0.0 */ /** * Genesis Featured Taxonomy widget class. * - * @since x.y.z + * @since 2.0.0 * */ class Display_Featured_Image_Genesis_CPT_Widget extends WP_Widget { @@ -28,7 +28,7 @@ class Display_Featured_Image_Genesis_CPT_Widget extends WP_Widget { /** * Constructor. Set the default widget options and create widget. * - * @since x.y.z + * @since 2.0.0 */ function __construct() { @@ -60,7 +60,7 @@ class Display_Featured_Image_Genesis_CPT_Widget extends WP_Widget { /** * Echo the widget content. * - * @since x.y.z + * @since 2.0.0 * * * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget. @@ -168,7 +168,7 @@ class Display_Featured_Image_Genesis_CPT_Widget extends WP_Widget { * The newly calculated value of $instance should be returned. * If "false" is returned, the instance won't be saved/updated. * - * @since x.y.z + * @since 2.0.0 * * @param array $new_instance New settings for this instance as input by the user via form() * @param array $old_instance Old settings for this instance @@ -185,7 +185,7 @@ class Display_Featured_Image_Genesis_CPT_Widget extends WP_Widget { /** * Echo the settings update form. * - * @since x.y.z + * @since 2.0.0 * * @param array $instance Current settings */ diff --git a/includes/widgets/displayfeaturedimagegenesis-taxonomy-widget.php b/includes/widgets/displayfeaturedimagegenesis-taxonomy-widget.php index b746493..e173139 100644 --- a/includes/widgets/displayfeaturedimagegenesis-taxonomy-widget.php +++ b/includes/widgets/displayfeaturedimagegenesis-taxonomy-widget.php @@ -7,13 +7,13 @@ * @license GPL-2.0+ * @link http://robincornett.com * @copyright 2014 Robin Cornett Creative, LLC - * @since x.y.z + * @since 2.0.0 */ /** * Genesis Featured Taxonomy widget class. * - * @since x.y.z + * @since 2.0.0 * */ class Display_Featured_Image_Genesis_Taxonomy_Widget extends WP_Widget { @@ -28,7 +28,7 @@ class Display_Featured_Image_Genesis_Taxonomy_Widget extends WP_Widget { /** * Constructor. Set the default widget options and create widget. * - * @since x.y.z + * @since 2.0.0 */ function __construct() { @@ -63,7 +63,7 @@ class Display_Featured_Image_Genesis_Taxonomy_Widget extends WP_Widget { /** * Echo the widget content. * - * @since x.y.z + * @since 2.0.0 * * * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget. @@ -146,7 +146,7 @@ class Display_Featured_Image_Genesis_Taxonomy_Widget extends WP_Widget { * The newly calculated value of $instance should be returned. * If "false" is returned, the instance won't be saved/updated. * - * @since x.y.z + * @since 2.0.0 * * @param array $new_instance New settings for this instance as input by the user via form() * @param array $old_instance Old settings for this instance @@ -162,7 +162,7 @@ class Display_Featured_Image_Genesis_Taxonomy_Widget extends WP_Widget { /** * Echo the settings update form. * - * @since x.y.z + * @since 2.0.0 * * @param array $instance Current settings */ diff --git a/languages/display-featured-image-genesis.pot b/languages/display-featured-image-genesis.pot index 9a682e0..f407ef7 100644 --- a/languages/display-featured-image-genesis.pot +++ b/languages/display-featured-image-genesis.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Display Featured Image for Genesis x.y.z\n" +"Project-Id-Version: Display Featured Image for Genesis 2.0.0\n" "POT-Creation-Date: 2015-01-10 10:30-0500\n" "PO-Revision-Date: \n" "Last-Translator: Robin Cornett \n" diff --git a/readme.txt b/readme.txt index 7beb79d..94f4f23 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: https://robincornett.com/donate/ Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails, featured image rss, rss Requires at least: 3.8 Tested up to: 4.1 -Stable tag: 1.5.0 +Stable tag: 2.0.0 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt @@ -28,7 +28,9 @@ _Note: although this plugin requires the [Genesis Framework by StudioPress](http __Display Featured Image for Genesis__ now allows you to select a default, or fallback, Featured Image, which will be used if a post/page does not have a Featured Image set, or if the post/page's Featured Image is too small (smaller than your medium image setting), and on archive and taxonomy pages. You may set the Default Featured Image under Appearance > Display Featured Image Settings. -As of version x.y.z, you can now set a Featured Image for each taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used. +As of version 2.0.0, you can now set a Featured Image for each term within a taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used. + +If your site uses Custom Post Types, you can set a Featured Image for each Post Type on the main Display Featured Image for Genesis settings page. If your single post within this type does not have a featured image, the Post Type Featured Image will be used as a fallback. = Add Your Featured Image to Your RSS Feed = @@ -136,14 +138,15 @@ There is a filter for this, too. By default, the large (as opposed to backstretc 2. Set a Default Featured Image on the Appearance > Display Featured Image Settings page. == Upgrade Notice == -= x.y.z = -New feature! Add featured images to taxonomies! += 2.0.0 = +New feature! Add featured images to taxonomies and custom post type archives! == Changelog == -= x.y.z = += 2.0.0 = * added featured images to taxonomies! * added featured images to admin archive pages! +* added new widgets for featured taxonomy terms and custom post type archives * added new setting to not move post titles to overlay Featured Image = 1.5.0 =