From 38fc34fdbfd2f459a2a4a4fde769a20d876b5c9c Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sun, 19 May 2019 07:07:23 -0400 Subject: [PATCH] PHPCS --- includes/settings/fields-cpt.php | 8 +-- includes/settings/fields-main.php | 78 +++++++++++++++--------------- includes/settings/fields-style.php | 48 +++++++++--------- 3 files changed, 67 insertions(+), 67 deletions(-) diff --git a/includes/settings/fields-cpt.php b/includes/settings/fields-cpt.php index b5f8ba1..38d5397 100644 --- a/includes/settings/fields-cpt.php +++ b/includes/settings/fields-cpt.php @@ -36,10 +36,10 @@ $custom_pages = array( $post_types = array_merge( $custom_pages, $this->get_post_types() ); foreach ( $post_types as $post_type => $label ) { $fields[] = array( - 'id' => esc_attr( $post_type ), - 'title' => esc_attr( $label ), - 'section' => 'cpt', - 'type' => 'image', + 'id' => $post_type, + 'title' => esc_attr( $label ), + 'section' => 'cpt', + 'type' => 'image', ); } diff --git a/includes/settings/fields-main.php b/includes/settings/fields-main.php index c8021f4..5836315 100644 --- a/includes/settings/fields-main.php +++ b/includes/settings/fields-main.php @@ -4,10 +4,10 @@ $large = displayfeaturedimagegenesis_get()->minimum_backstretch_width(); return array( array( - 'id' => 'default', - 'title' => __( 'Default Featured Image', 'display-featured-image-genesis' ), - 'section' => 'default', - 'type' => 'image', + 'id' => 'default', + 'title' => __( 'Default Featured Image', 'display-featured-image-genesis' ), + 'section' => 'default', + 'type' => 'image', ), array( 'id' => 'always_default', @@ -22,59 +22,59 @@ return array( 'type' => 'checkbox', ), array( - 'id' => 'image_size', - 'title' => __( 'Preferred Image Size', 'display-featured-image-genesis' ), - 'section' => 'main', - 'choices' => apply_filters( + 'id' => 'image_size', + 'title' => __( 'Preferred Image Size', 'display-featured-image-genesis' ), + 'section' => 'main', + 'choices' => apply_filters( 'displayfeaturedimagegenesis_image_size_choices', array( 'displayfeaturedimage_backstretch' => __( 'Banner (default)', 'display-featured-image-genesis' ), 'large' => __( 'Large', 'display-featured-image-genesis' ), ) ), - 'type' => 'select', + 'type' => 'select', ), array( - 'id' => 'exclude_front', - 'title' => __( 'Skip Front Page', 'display-featured-image-genesis' ), - 'section' => 'main', - 'label' => __( 'Do not show the Featured Image on the Front Page of the site.', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'exclude_front', + 'title' => __( 'Skip Front Page', 'display-featured-image-genesis' ), + 'section' => 'main', + 'label' => __( 'Do not show the Featured Image on the Front Page of the site.', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( - 'id' => 'keep_titles', - 'title' => __( 'Do Not Move Titles', 'display-featured-image-genesis' ), - 'section' => 'main', - 'label' => __( 'Do not move the titles to overlay the banner featured image.', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'keep_titles', + 'title' => __( 'Do Not Move Titles', 'display-featured-image-genesis' ), + 'section' => 'main', + 'label' => __( 'Do not move the titles to overlay the banner featured image.', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( - 'id' => 'move_excerpts', - 'title' => __( 'Move Excerpts/Archive Descriptions', 'display-featured-image-genesis' ), - 'section' => 'main', - 'label' => __( 'Move excerpts (if used) on single pages and move archive/taxonomy descriptions to overlay the Featured Image.', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'move_excerpts', + 'title' => __( 'Move Excerpts/Archive Descriptions', 'display-featured-image-genesis' ), + 'section' => 'main', + 'label' => __( 'Move excerpts (if used) on single pages and move archive/taxonomy descriptions to overlay the Featured Image.', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( - 'id' => 'is_paged', - 'title' => __( 'Show Featured Image on Subsequent Blog Pages', 'display-featured-image-genesis' ), - 'section' => 'archives', - 'label' => __( 'Show featured image on pages 2+ of blogs and archives.', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'is_paged', + 'title' => __( 'Show Featured Image on Subsequent Blog Pages', 'display-featured-image-genesis' ), + 'section' => 'archives', + 'label' => __( 'Show featured image on pages 2+ of blogs and archives.', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( - 'id' => 'feed_image', - 'title' => __( 'Add Featured Image to Feed?', 'display-featured-image-genesis' ), - 'section' => 'archives', - 'label' => __( 'Optionally, add the featured image to your RSS feed.', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'feed_image', + 'title' => __( 'Add Featured Image to Feed?', 'display-featured-image-genesis' ), + 'section' => 'archives', + 'label' => __( 'Optionally, add the featured image to your RSS feed.', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( - 'id' => 'thumbnails', - 'title' => __( 'Archive Thumbnails', 'display-featured-image-genesis' ), - 'section' => 'archives', - 'label' => __( 'Use term/post type fallback images for content archives?', 'display-featured-image-genesis' ), - 'type' => 'checkbox', + 'id' => 'thumbnails', + 'title' => __( 'Archive Thumbnails', 'display-featured-image-genesis' ), + 'section' => 'archives', + 'label' => __( 'Use term/post type fallback images for content archives?', 'display-featured-image-genesis' ), + 'type' => 'checkbox', ), array( 'id' => 'shortcodes', diff --git a/includes/settings/fields-style.php b/includes/settings/fields-style.php index 4497693..fc1c6ae 100644 --- a/includes/settings/fields-style.php +++ b/includes/settings/fields-style.php @@ -2,11 +2,11 @@ return array( array( - 'id' => 'scriptless', - 'title' => __( 'Disable JavaScript', 'display-featured-image-genesis' ), - 'type' => 'checkbox', - 'section' => 'style', - 'label' => __( 'Use a banner image which relies only on CSS.', 'display-featured-image-genesis' ), + 'id' => 'scriptless', + 'title' => __( 'Disable JavaScript', 'display-featured-image-genesis' ), + 'type' => 'checkbox', + 'section' => 'style', + 'label' => __( 'Use a banner image which relies only on CSS.', 'display-featured-image-genesis' ), ), array( 'id' => 'less_header', @@ -29,28 +29,28 @@ return array( 'type' => 'number', ), array( - 'id' => 'centeredX', - 'title' => __( 'Center Horizontally', 'display-featured-image-genesis' ), - 'section' => 'style', - 'choices' => $this->pick_center(), - 'legend' => __( 'Center the banner image on the horizontal axis?', 'display-featured-image-genesis' ), - 'type' => 'radio', + 'id' => 'centeredX', + 'title' => __( 'Center Horizontally', 'display-featured-image-genesis' ), + 'section' => 'style', + 'choices' => $this->pick_center(), + 'legend' => __( 'Center the banner image on the horizontal axis?', 'display-featured-image-genesis' ), + 'type' => 'radio', ), array( - 'id' => 'centeredY', - 'title' => __( 'Center Vertically', 'display-featured-image-genesis' ), - 'section' => 'style', - 'choices' => $this->pick_center(), - 'legend' => __( 'Center the banner image on the vertical axis?', 'display-featured-image-genesis' ), - 'type' => 'radio', + 'id' => 'centeredY', + 'title' => __( 'Center Vertically', 'display-featured-image-genesis' ), + 'section' => 'style', + 'choices' => $this->pick_center(), + 'legend' => __( 'Center the banner image on the vertical axis?', 'display-featured-image-genesis' ), + 'type' => 'radio', ), array( - 'id' => 'fade', - 'title' => __( 'Fade', 'display-featured-image-genesis' ), - 'section' => 'style', - 'label' => __( 'milliseconds', 'display-featured-image-genesis' ), - 'min' => 0, - 'max' => 20000, - 'type' => 'number', + 'id' => 'fade', + 'title' => __( 'Fade', 'display-featured-image-genesis' ), + 'section' => 'style', + 'label' => __( 'milliseconds', 'display-featured-image-genesis' ), + 'min' => 0, + 'max' => 20000, + 'type' => 'number', ), );