From 8a715934ec1532704833a4df8b107bb4761dea0a Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sat, 13 Dec 2014 10:03:55 -0500 Subject: [PATCH] updated version to 1.5.0 --- README.md | 22 ++++++++------- display-featured-image-genesis.php | 4 +-- ...ass-displayfeaturedimagegenesis-common.php | 2 +- .../class-displayfeaturedimagegenesis-rss.php | 4 +-- ...s-displayfeaturedimagegenesis-settings.php | 2 +- .../class-displayfeaturedimagegenesis.php | 6 ++--- readme.txt | 27 +++++++++++++++---- 7 files changed, 43 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 870061b..c15ffc4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ _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. +#### New: Add Your Featured Image to Your RSS Feed + +Now you can add the Featured Image from each post to your RSS feed. This is an optional setting and applied intelligently: + +* if your feed is set to output the full text, the Featured Image will be added to the beginning of your post content as a full width image. +* if your feed is set to output only the summary of your content, the Featured image will be added to the beginning of your summary as a thumbnail, aligned to the left. + +You can check/change your feed settings on your site's Settings > Reading page. + +_If you are already inserting your Featured Image into your feed through another function or plugin, you'll want to remove that before activating this feature; otherwise you will have two copies of the image added to your feed!_ + #### Simple Styling __Display Featured Image for Genesis__ has some styling built in but I have intentionally tried to keep it minimal. All styling is for the backstretch image options, as the large options seem pretty straightforward. Stying for titles are largely inherited from your theme--for example, the title will use the same size and font for your page titles, whether you are using a Featured Image or not. Some styles you can incorporate into your own theme: @@ -30,15 +41,6 @@ __Display Featured Image for Genesis__ has some styling built in but I have inte * `.excerpt` (for single posts/pages) and `.archive-description` (for archives) are styled as a unit. These are the containers for the post/page/archive/taxonomy title and description if the Move Excerpts option _is_ selected. * `.featured` is appended to the large image output directly above the post/page content. -#### New: Add Your Featured Image to Your RSS Feed - -Now you can add the Featured Image from each post to your RSS feed. This is an optional setting and applied intelligently: - -* if your feed is set to output the full text, the Featured Image will be added to the beginning of your post content as a full width image. -* if your feed is set to output only the summary of your content, the Featured image will be added to the beginning of your summary as a thumbnail, aligned to the left. - -You can check/change your feed settings on your site's Settings > Reading page. - ## Requirements * WordPress 3.8, tested up to 4.1 * the Genesis Framework @@ -149,7 +151,7 @@ _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, a ## Changelog -### x.y.z (in process) +### 1.5.0 - 2014-12-13 * added new setting to include Featured Image in RSS feeds * added fallback image output if js is disabled * fixed output if user is using Photon (the Jetpack module) diff --git a/display-featured-image-genesis.php b/display-featured-image-genesis.php index 45805b7..18dc647 100644 --- a/display-featured-image-genesis.php +++ b/display-featured-image-genesis.php @@ -11,8 +11,8 @@ * @wordpress-plugin * Plugin Name: Display Featured Image for Genesis * Plugin URI: http://github.com/robincornett/display-featured-image-genesis/ - * Description: This plugin requires the Genesis Framework. It varies the display of the post or page featured image, depending on size. - * Version: 1.4.3 + * Description: This plugin requires the Genesis Framework. It intelligently varies the display of the post or page featured image, depending on size. + * Version: 1.5.0 * Author: Robin Cornett * Author URI: http://robincornett.com * License: GPL-2.0+ diff --git a/includes/class-displayfeaturedimagegenesis-common.php b/includes/class-displayfeaturedimagegenesis-common.php index c9efe76..0561d40 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 = '1.4.3'; + public static $version = '1.5.0'; /** * set and retreive variables for the featured image. diff --git a/includes/class-displayfeaturedimagegenesis-rss.php b/includes/class-displayfeaturedimagegenesis-rss.php index 9a2408d..7d502ec 100644 --- a/includes/class-displayfeaturedimagegenesis-rss.php +++ b/includes/class-displayfeaturedimagegenesis-rss.php @@ -13,7 +13,7 @@ class Display_Featured_Image_Genesis_RSS { * Decide whether or not to add the featured image to the feed or the feed excerpt * * @return filter the_excerpt_rss (if summaries) or the_content_feed (full text) - * @since x.y.z + * @since 1.5.0 */ public function maybe_do_feed() { @@ -42,7 +42,7 @@ class Display_Featured_Image_Genesis_RSS { * includes allowances for Send Images to RSS plugin, which processes before this * * @param return $content - * @since x.y.z + * @since 1.5.0 */ public function add_image_to_feed( $content ) { diff --git a/includes/class-displayfeaturedimagegenesis-settings.php b/includes/class-displayfeaturedimagegenesis-settings.php index 198add7..2b05857 100644 --- a/includes/class-displayfeaturedimagegenesis-settings.php +++ b/includes/class-displayfeaturedimagegenesis-settings.php @@ -202,7 +202,7 @@ class Display_Featured_Image_Genesis_Settings { * option to add images to feed * @return 0 1 checkbox * - * @since x.y.z + * @since 1.5.0 */ public function add_image_to_feed() { echo ''; diff --git a/includes/class-displayfeaturedimagegenesis.php b/includes/class-displayfeaturedimagegenesis.php index 052691d..f671c67 100644 --- a/includes/class-displayfeaturedimagegenesis.php +++ b/includes/class-displayfeaturedimagegenesis.php @@ -98,7 +98,7 @@ class Display_Featured_Image_Genesis { /** * check existing settings array to see if a setting is in the array * @return updated setting updates to default (0) - * @since x.y.z + * @since 1.5.0 */ public function check_settings() { @@ -111,7 +111,7 @@ class Display_Featured_Image_Genesis { if ( empty( $displaysetting['feed_image'] ) ) { $this->update_settings( array( - 'feed_image' => 0 + 'feed_image' => 0 ) ); } @@ -120,7 +120,7 @@ class Display_Featured_Image_Genesis { /** * Takes an array of new settings, merges them with the old settings, and pushes them into the database. * - * @since x.y.z + * @since 1.5.0 * * @param string|array $new New settings. Can be a string, or an array. * @param string $setting Optional. Settings field name. Default is displayfeaturedimagegenesis. diff --git a/readme.txt b/readme.txt index 97d1a4d..9a5b396 100644 --- a/readme.txt +++ b/readme.txt @@ -2,10 +2,10 @@ Contributors: littler.chicken Donate link: https://robincornett.com/donate/ -Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails +Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails, featured image rss, rss Requires at least: 3.8 -Tested up to: 4.0 -Stable tag: 1.4.3 +Tested up to: 4.1 +Stable tag: 1.5.0 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt @@ -28,6 +28,17 @@ _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. += New: Add Your Featured Image to Your RSS Feed = + +Now you can add the Featured Image from each post to your RSS feed. This is an optional setting and applied intelligently: + +* if your feed is set to output the full text, the Featured Image will be added to the beginning of your post content as a full width image. +* if your feed is set to output only the summary of your content, the Featured image will be added to the beginning of your summary as a thumbnail, aligned to the left. + +You can check/change your feed settings on your site's Settings > Reading page. + +_If you are already inserting your Featured Image into your feed through another function or plugin, you'll want to remove that before activating this feature; otherwise you will have two copies of the image added to your feed!_ + = Simple Styling = __Display Featured Image for Genesis__ has some styling built in but I have intentionally tried to keep it minimal. All styling is for the backstretch image options, as the large options seem pretty straightforward. Stying for titles are largely inherited from your theme--for example, the title will use the same size and font for your page titles, whether you are using a Featured Image or not. Some styles you can incorporate into your own theme: @@ -106,11 +117,17 @@ _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, a 2. Set a Default Featured Image on the Appearance > Display Featured Image Settings page. == Upgrade Notice == -= 1.4.3 = -better decision making process, scripts moved to footer, photon support += 1.5.0 = +New feature! Add featured image to your RSS feed. == Changelog == += 1.5.0 = +* added new setting to include Featured Image in RSS feeds +* added fallback image output if js is disabled +* fixed output if user is using Photon (the Jetpack module) +* fixed output for large image (not backstretch) + = 1.4.3 = * better decision making process for firing up scripts/styles * moved scripts to footer