Merge branch 'develop'

This commit is contained in:
Robin Cornett
2014-11-11 13:39:41 -05:00
5 changed files with 57 additions and 49 deletions
+3
View File
@@ -140,6 +140,9 @@ _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, a
## Changelog
### 1.4.1
* bugfix: correctly added post type support for excerpts to pages
### 1.4.0
* all settings updated for bloat and moved to a new submenu page under Appearance
* efficiency in descriptions, output, and variables
+1 -1
View File
@@ -12,7 +12,7 @@
* 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.0
* Version: 1.4.1
* Author: Robin Cornett
* Author URI: http://robincornett.com
* License: GPL-2.0+
+13 -10
View File
@@ -57,20 +57,23 @@ class Display_Featured_Image_Genesis {
* @since 1.1.0
*/
public function error_message() {
if ( version_compare( PHP_VERSION, '5.3', '>=' ) ) {
echo '<div class="error"><p>' . sprintf(
__( 'Sorry, Display Featured Image for Genesis works only with the Genesis Framework. It has been deactivated.', 'display-featured-image-genesis' ) ) . '</p></div>';
}
else {
echo '<div class="error"><p>' . sprintf(
__( 'Sorry, Display Featured Image for Genesis works only with the Genesis Framework. It has been deactivated. But since we&#39;re talking anyway, did you know that your server is running PHP version %1$s, which is outdated? You should ask your host to update that for you.', 'display-featured-image-genesis' ),
$error = sprintf(
__( 'Sorry, Display Featured Image for Genesis works only with the Genesis Framework. It has been deactivated.', 'display-featured-image-genesis' ) );
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
$error = $error . sprintf(
__( ' But since we\'re talking anyway, did you know that your server is running PHP version %1$s, which is outdated? You should ask your host to update that for you.', 'display-featured-image-genesis' ),
PHP_VERSION
) . '</p></div>';
);
}
echo '<div class="error"><p>' . $error . '</p></div>';
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
}
@@ -82,8 +85,8 @@ class Display_Featured_Image_Genesis {
function add_plugin_supports() {
add_image_size( 'displayfeaturedimage_backstretch', 2000, 2000, false );
$move_excerpts = get_option( 'displayfeaturedimage_excerpts' );
if ( $move_excerpts ) {
$displaysetting = get_option( 'displayfeaturedimagegenesis' );
if ( $displaysetting['move_excerpts'] ) {
add_post_type_support( 'page', 'excerpt' );
}
}
+34 -35
View File
@@ -4,9 +4,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Display Featured Image for Genesis 1.4.0\n"
"Project-Id-Version: Display Featured Image for Genesis 1.4.1\n"
"POT-Creation-Date: 2014-09-17 21:11-0500\n"
"PO-Revision-Date: 2014-11-05 14:16-0500\n"
"PO-Revision-Date: 2014-11-11 13:30-0500\n"
"Last-Translator: Robin Cornett <hello@robincornett.com>\n"
"Language-Team: Robin Cornett <hello@robincornett.com>\n"
"Language: en_US\n"
@@ -33,80 +33,80 @@ msgstr ""
msgid "Display Featured Image Settings"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:77
#: ../includes/class-displayfeaturedimagegenesis-settings.php:81
msgid "Optional Sitewide Settings"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:84
#: ../includes/class-displayfeaturedimagegenesis-settings.php:303
#: ../includes/class-displayfeaturedimagegenesis-settings.php:329
#: ../includes/class-displayfeaturedimagegenesis-settings.php:88
#: ../includes/class-displayfeaturedimagegenesis-settings.php:307
#: ../includes/class-displayfeaturedimagegenesis-settings.php:333
msgid "Height"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:92
#: ../includes/class-displayfeaturedimagegenesis-settings.php:335
#: ../includes/class-displayfeaturedimagegenesis-settings.php:96
#: ../includes/class-displayfeaturedimagegenesis-settings.php:339
msgid "Default Featured Image"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:100
#: ../includes/class-displayfeaturedimagegenesis-settings.php:104
msgid "Skip Front Page"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:108
#: ../includes/class-displayfeaturedimagegenesis-settings.php:323
#: ../includes/class-displayfeaturedimagegenesis-settings.php:112
#: ../includes/class-displayfeaturedimagegenesis-settings.php:327
msgid "Move Excerpts/Archive Descriptions"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:125
#: ../includes/class-displayfeaturedimagegenesis-settings.php:129
msgid ""
"The Display Featured Image for Genesis plugin has just a few optional "
"settings. Check the Help tab for more information. "
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:136
#: ../includes/class-displayfeaturedimagegenesis-settings.php:140
msgid "Pixels to remove "
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:138
#: ../includes/class-displayfeaturedimagegenesis-settings.php:142
msgid ""
"Changing this number will reduce the backstretch image height by this number "
"of pixels. Default is zero."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:160
#: ../includes/class-displayfeaturedimagegenesis-settings.php:164
msgid "Select Default Image"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:162
#: ../includes/class-displayfeaturedimagegenesis-settings.php:166
#, php-format
msgid ""
"If you would like to use a default image for the featured image, upload it "
"here. Must be at least %1$s pixels wide."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:174
#: ../includes/class-displayfeaturedimagegenesis-settings.php:178
msgid "Do not show the Featured Image on the Front Page of the site."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:184
#: ../includes/class-displayfeaturedimagegenesis-settings.php:188
msgid ""
"Move excerpts (if used) on single pages and move archive/taxonomy "
"descriptions to overlay the Featured Image."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:226
#: ../includes/class-displayfeaturedimagegenesis-settings.php:230
msgid ""
"Sorry, that is an invalid file type. The Default Featured Image has been "
"reset to the last valid setting."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:238
#: ../includes/class-displayfeaturedimagegenesis-settings.php:242
msgid ""
"Sorry, your image is too small. The Default Featured Image has been reset to "
"the last valid setting."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:304
#: ../includes/class-displayfeaturedimagegenesis-settings.php:308
msgid ""
"Depending on how your header/nav are set up, or if you just do not want your "
"backstretch image to extend to the bottom of the user screen, you may want "
@@ -114,29 +114,29 @@ msgid ""
"image, making it shorter."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:307
#: ../includes/class-displayfeaturedimagegenesis-settings.php:311
msgid "Set a Default Featured Image"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:308
#: ../includes/class-displayfeaturedimagegenesis-settings.php:312
msgid ""
"You may set a large image to be used sitewide if a featured image is not "
"available. This image will show on posts, pages, and archives."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:310
#: ../includes/class-displayfeaturedimagegenesis-settings.php:314
#, php-format
msgid ""
"Supported file types are: jpg, jpeg, png, and gif. The image must be at "
"least %1$s pixels wide."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:315
#: ../includes/class-displayfeaturedimagegenesis-settings.php:341
#: ../includes/class-displayfeaturedimagegenesis-settings.php:319
#: ../includes/class-displayfeaturedimagegenesis-settings.php:345
msgid "Show on Front Page"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:316
#: ../includes/class-displayfeaturedimagegenesis-settings.php:320
msgid ""
"If you set a Default Featured Image, it will show on every post/page of your "
"site. This may not be desirable on child themes with a front page "
@@ -146,7 +146,7 @@ msgid ""
"image for that page individually."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:318
#: ../includes/class-displayfeaturedimagegenesis-settings.php:322
#, php-format
msgid ""
"If you want to prevent entire groups of posts from not using the Featured "
@@ -154,7 +154,7 @@ msgid ""
"your theme functions.php file."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:324
#: ../includes/class-displayfeaturedimagegenesis-settings.php:328
msgid ""
"By default, archive descriptions (set on the Genesis Archive Settings pages) "
"show below the Default Featured Image, while the archive title displays on "
@@ -162,11 +162,11 @@ msgid ""
"optional excerpts will display in a box overlaying the Featured Image."
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:347
#: ../includes/class-displayfeaturedimagegenesis-settings.php:351
msgid "Move Excerpts"
msgstr ""
#: ../includes/class-displayfeaturedimagegenesis-settings.php:366
#: ../includes/class-displayfeaturedimagegenesis-settings.php:370
msgid "Choose Image"
msgstr ""
@@ -179,8 +179,7 @@ msgstr ""
#: ../includes/class-displayfeaturedimagegenesis.php:66
#, php-format
msgid ""
"Sorry, Display Featured Image for Genesis works only with the Genesis "
"Framework. It has been deactivated. But since we&#39;re talking anyway, did "
"you know that your server is running PHP version %1$s, which is outdated? "
"You should ask your host to update that for you."
" But since we're talking anyway, did you know that your server is running "
"PHP version %1$s, which is outdated? You should ask your host to update that "
"for you."
msgstr ""
+6 -3
View File
@@ -5,7 +5,7 @@ Donate link: https://robincornett.com/donate/
Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails
Requires at least: 3.8
Tested up to: 4.0
Stable tag: 1.4.0
Stable tag: 1.4.1
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -106,11 +106,14 @@ _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.0 =
New feature: set a default image to be used sitewide!
= 1.4.1 =
bugfix: correctly added post type support for excerpts to pages
== Changelog ==
= 1.4.1 =
* bugfix: correctly added post type support for excerpts to pages
= 1.4.0 =
* all settings updated for bloat and moved to a new submenu page under Appearance
* efficiency in descriptions, output, and variables