This commit is contained in:
Robin Cornett
2019-05-19 07:07:23 -04:00
parent 6b0bebe40b
commit 38fc34fdbf
3 changed files with 67 additions and 67 deletions
+4 -4
View File
@@ -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',
);
}
+39 -39
View File
@@ -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',
+24 -24
View File
@@ -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',
),
);