Add taxonomy settings for collections
This was deferring to the story settings before.
This commit is contained in:
parent
54eefa4caf
commit
4c64ed8f1a
@ -34,7 +34,7 @@ $query_args = array (
|
|||||||
'order' => $order,
|
'order' => $order,
|
||||||
'paged' => $page,
|
'paged' => $page,
|
||||||
'posts_per_page' => get_option( 'posts_per_page' ) ?? 8,
|
'posts_per_page' => get_option( 'posts_per_page' ) ?? 8,
|
||||||
'update_post_term_cache' => ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' )
|
'update_post_term_cache' => ! get_option( 'fictioneer_hide_taxonomies_on_collection_cards' )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Append date query (if any)
|
// Append date query (if any)
|
||||||
|
@ -54,6 +54,13 @@ define( 'FICTIONEER_OPTIONS', array(
|
|||||||
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
||||||
'label' => __( 'Hide taxonomies on recommendation cards', 'fictioneer' ),
|
'label' => __( 'Hide taxonomies on recommendation cards', 'fictioneer' ),
|
||||||
'default' => false
|
'default' => false
|
||||||
|
),
|
||||||
|
'fictioneer_hide_taxonomies_on_collection_cards' => array(
|
||||||
|
'name' => 'fictioneer_hide_taxonomies_on_collection_cards',
|
||||||
|
'group' => 'fictioneer-settings-general-group',
|
||||||
|
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
||||||
|
'label' => __( 'Hide taxonomies on collection cards', 'fictioneer' ),
|
||||||
|
'default' => false
|
||||||
),
|
),
|
||||||
'fictioneer_show_tags_on_story_cards' => array(
|
'fictioneer_show_tags_on_story_cards' => array(
|
||||||
'name' => 'fictioneer_show_tags_on_story_cards',
|
'name' => 'fictioneer_show_tags_on_story_cards',
|
||||||
@ -75,6 +82,13 @@ define( 'FICTIONEER_OPTIONS', array(
|
|||||||
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
||||||
'label' => __( 'Show tags on recommendation cards', 'fictioneer' ),
|
'label' => __( 'Show tags on recommendation cards', 'fictioneer' ),
|
||||||
'default' => false
|
'default' => false
|
||||||
|
),
|
||||||
|
'fictioneer_show_tags_on_collection_cards' => array(
|
||||||
|
'name' => 'fictioneer_show_tags_on_collection_cards',
|
||||||
|
'group' => 'fictioneer-settings-general-group',
|
||||||
|
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
|
||||||
|
'label' => __( 'Show tags on collection cards', 'fictioneer' ),
|
||||||
|
'default' => false
|
||||||
),
|
),
|
||||||
'fictioneer_hide_taxonomies_on_pages' => array(
|
'fictioneer_hide_taxonomies_on_pages' => array(
|
||||||
'name' => 'fictioneer_hide_taxonomies_on_pages',
|
'name' => 'fictioneer_hide_taxonomies_on_pages',
|
||||||
|
@ -216,6 +216,11 @@
|
|||||||
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_hide_taxonomies_on_recommendation_cards']['label']; ?></span>
|
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_hide_taxonomies_on_recommendation_cards']['label']; ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label for="fictioneer_hide_taxonomies_on_collection_cards" class="label-wrapped-checkbox row">
|
||||||
|
<input name="fictioneer_hide_taxonomies_on_collection_cards" type="checkbox" id="fictioneer_hide_taxonomies_on_collection_cards" <?php echo checked( 1, get_option( 'fictioneer_hide_taxonomies_on_collection_cards' ), false ); ?> value="1">
|
||||||
|
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_hide_taxonomies_on_collection_cards']['label']; ?></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
<p class="description row"><?php _e( 'Tags are normally not shown on cards since they tend to be numerous, making the cards unsightly. But this is up to you.', 'fictioneer' ) ?></p>
|
<p class="description row"><?php _e( 'Tags are normally not shown on cards since they tend to be numerous, making the cards unsightly. But this is up to you.', 'fictioneer' ) ?></p>
|
||||||
|
|
||||||
<label for="fictioneer_show_tags_on_story_cards" class="label-wrapped-checkbox row">
|
<label for="fictioneer_show_tags_on_story_cards" class="label-wrapped-checkbox row">
|
||||||
@ -233,6 +238,11 @@
|
|||||||
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_show_tags_on_recommendation_cards']['label']; ?></span>
|
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_show_tags_on_recommendation_cards']['label']; ?></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label for="fictioneer_show_tags_on_collection_cards" class="label-wrapped-checkbox row">
|
||||||
|
<input name="fictioneer_show_tags_on_collection_cards" type="checkbox" id="fictioneer_show_tags_on_collection_cards" <?php echo checked( 1, get_option( 'fictioneer_show_tags_on_collection_cards' ), false ); ?> value="1">
|
||||||
|
<span><?php echo FICTIONEER_OPTIONS['booleans']['fictioneer_show_tags_on_collection_cards']['label']; ?></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
<p class="description row"><?php _e( 'Taxonomies on pages are displayed above the title, tags and content warnings get their own rows below the description.', 'fictioneer' ) ?></p>
|
<p class="description row"><?php _e( 'Taxonomies on pages are displayed above the title, tags and content warnings get their own rows below the description.', 'fictioneer' ) ?></p>
|
||||||
|
|
||||||
<label for="fictioneer_hide_taxonomies_on_pages" class="label-wrapped-checkbox row">
|
<label for="fictioneer_hide_taxonomies_on_pages" class="label-wrapped-checkbox row">
|
||||||
@ -654,7 +664,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="textarea row">
|
<div class="textarea row">
|
||||||
<textarea name="fictioneer_comments_notice" id="fictioneer_comments_notice" rows="4" style="height: 280px;"><?php echo get_option( 'fictioneer_comments_notice' ); ?></textarea>
|
<textarea name="fictioneer_comments_notice" id="fictioneer_comments_notice" rows="4" style="height: 240px;"><?php echo get_option( 'fictioneer_comments_notice' ); ?></textarea>
|
||||||
<p class="sub-label"><?php _e( 'Notice above comments. Leave empty to hide. HTML allowed.', 'fictioneer' ) ?></p>
|
<p class="sub-label"><?php _e( 'Notice above comments. Leave empty to hide. HTML allowed.', 'fictioneer' ) ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user