From bb642bdd27c2e3b6a418b88552ab6bd0dbeb8196 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sun, 2 Nov 2014 19:51:39 -0500 Subject: [PATCH] moved settings page --- README.md | 6 +++--- includes/class-displayfeaturedimagegenesis-settings.php | 7 +++---- readme.txt | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 933b5e8..7497822 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ Then go to your Plugins screen and click __Activate__. ![Screenshot of a page using the Backstretch Featured Image](https://github.com/robincornett/display-featured-image-genesis/blob/develop/assets/screenshot-1.jpg) _Screenshot of a page using the Backstretch Featured Image._ -![Set a Default Featured Image on the Display Featured Image for Genesis Settings page.](https://github.com/robincornett/display-featured-image-genesis/blob/develop/assets/screenshot-2.jpg) -_Set a Default Featured Image on the Display Featured Image for Genesis Settings page._ +![Set a Default Featured Image on the Appearance > Display Featured Image for Genesis settings page.](https://github.com/robincornett/display-featured-image-genesis/blob/develop/assets/screenshot-2.jpg) +_Set a Default Featured Image on the Appearance > Display Featured Image for Genesis settings page._ ## Frequently Asked Questions @@ -90,7 +90,7 @@ function rgc_force_default_image( $post_types ) { ### The backstretch image is a little too tall. -If you do not want the height of the backstretch image to be quite the height of the user's window, you can reduce it by just a hair. Go to Genesis > Display Featured Image Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter your image will be. Feel free to experiment, as no images are harmed by changing this number. +If you do not want the height of the backstretch image to be quite the height of the user's window, you can reduce it by just a hair. Go to Appearance > Display Featured Image Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter your image will be. Feel free to experiment, as no images are harmed by changing this number. Additionally/alternatively, you could set a max-height for the backstretch image area via css: diff --git a/includes/class-displayfeaturedimagegenesis-settings.php b/includes/class-displayfeaturedimagegenesis-settings.php index 7fcc907..45cb6ee 100644 --- a/includes/class-displayfeaturedimagegenesis-settings.php +++ b/includes/class-displayfeaturedimagegenesis-settings.php @@ -11,8 +11,7 @@ class Display_Featured_Image_Genesis_Settings { public function do_submenu_page() { - add_submenu_page( - 'genesis', + add_theme_page( __( 'Display Featured Image for Genesis: Settings', 'display-featured-image-genesis' ), __( 'Display Featured Image Settings', 'display-featured-image-genesis' ), 'manage_options', @@ -21,7 +20,7 @@ class Display_Featured_Image_Genesis_Settings { ); add_action( 'admin_init', array( $this, 'register_settings' ) ); - add_action( 'load-genesis_page_displayfeaturedimagegenesis', array( $this, 'help' ) ); + add_action( 'load-appearance_page_displayfeaturedimagegenesis', array( $this, 'help' ) ); } @@ -281,7 +280,7 @@ class Display_Featured_Image_Genesis_Settings { public function enqueue_scripts() { wp_register_script( 'displayfeaturedimage-upload', plugins_url( '/includes/js/settings-upload.js', dirname( __FILE__ ) ), array( 'jquery', 'media-upload', 'thickbox' ), '1.0.0' ); - if ( 'genesis_page_displayfeaturedimagegenesis' === get_current_screen()->id ) { + if ( 'appearance_page_displayfeaturedimagegenesis' === get_current_screen()->id ) { wp_enqueue_media(); wp_enqueue_script( 'displayfeaturedimage-upload' ); } diff --git a/readme.txt b/readme.txt index c0c6dc9..a7c2d80 100644 --- a/readme.txt +++ b/readme.txt @@ -63,7 +63,7 @@ Yes! You'll want to add a filter to your theme (functions.php file). Here's an e = The backstretch image is a little too tall. = -If you do not want the height of the backstretch image to be quite the height of the user's window, you can reduce it by just a hair. Go to Genesis > Display Featured Image for Genesis Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter your image will be. Feel free to experiment, as no images are harmed by changing this number. +If you do not want the height of the backstretch image to be quite the height of the user's window, you can reduce it by just a hair. Go to Appearance > Display Featured Image for Genesis Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter your image will be. Feel free to experiment, as no images are harmed by changing this number. Additionally/alternatively, you could set a max-height for the backstretch image area via css: @@ -89,7 +89,7 @@ _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, a == Screenshots == 1. Screenshot of a page using the Backstretch Featured Image -2. Set a Default Featured Image on the Genesis > Display Featured Image Settings page. +2. Set a Default Featured Image on the Appearance > Display Featured Image Settings page. == Upgrade Notice == = 1.3.0 =