mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 06:23:22 +09:00
tag as 2.0.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 '<input type="hidden" name="displayfeaturedimagegenesis[keep_titles]" value="0" />';
|
||||
@@ -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 ) {
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* Dependent class to build a featured taxonomy widget
|
||||
*
|
||||
* @package DisplayFeaturedImageGenesis
|
||||
* @package DisplayFeaturedImageGenesis
|
||||
* @author Robin Cornett <hello@robincornett.com>
|
||||
* @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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 <hello@robincornett.com>\n"
|
||||
|
||||
+8
-5
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user