5.16.0 #33
@ -874,9 +874,6 @@ define( 'FICTIONEER_OPTIONS', array(
|
||||
/**
|
||||
* Return label of setting if defined
|
||||
*
|
||||
* Note: These labels can differ from the ones used on the
|
||||
* settings page, which can also include instructions.
|
||||
*
|
||||
* @since 5.15.3
|
||||
*
|
||||
* @param string $option The name of the option.
|
||||
@ -993,14 +990,14 @@ function fictioneer_get_option_label( $option ) {
|
||||
'fictioneer_hide_password_form_with_patreon' => __( 'Hide password form on Patreon-gated posts', 'fictioneer' ),
|
||||
'fictioneer_enable_maintenance_mode' => __( 'Enable maintenance mode', 'fictioneer' ),
|
||||
'fictioneer_dark_mode_as_default' => __( 'Enable dark mode as default', 'fictioneer' ),
|
||||
'fictioneer_user_profile_page' => __( 'Account page assignment', 'fictioneer' ),
|
||||
'fictioneer_bookmarks_page' => __( 'Bookmarks page assignment', 'fictioneer' ),
|
||||
'fictioneer_stories_page' => __( 'Stories page assignment', 'fictioneer' ),
|
||||
'fictioneer_chapters_page' => __( 'Chapters page assignment', 'fictioneer' ),
|
||||
'fictioneer_recommendations_page' => __( 'Recommendations page assignment', 'fictioneer' ),
|
||||
'fictioneer_collections_page' => __( 'Collections page assignment', 'fictioneer' ),
|
||||
'fictioneer_bookshelf_page' => __( 'Bookshelf page assignment', 'fictioneer' ),
|
||||
'fictioneer_404_page' => __( '404 page assignment', 'fictioneer' ),
|
||||
'fictioneer_user_profile_page' => __( 'Account page', 'fictioneer' ),
|
||||
'fictioneer_bookmarks_page' => __( 'Bookmarks page', 'fictioneer' ),
|
||||
'fictioneer_stories_page' => __( 'Stories page', 'fictioneer' ),
|
||||
'fictioneer_chapters_page' => __( 'Chapters page', 'fictioneer' ),
|
||||
'fictioneer_recommendations_page' => __( 'Recommendations page', 'fictioneer' ),
|
||||
'fictioneer_collections_page' => __( 'Collections page', 'fictioneer' ),
|
||||
'fictioneer_bookshelf_page' => __( 'Bookshelf page', 'fictioneer' ),
|
||||
'fictioneer_404_page' => __( '404 page', 'fictioneer' ),
|
||||
'fictioneer_comment_report_threshold' => __( 'Automatic moderation report threshold', 'fictioneer' ),
|
||||
'fictioneer_comment_link_limit_threshold' => __( 'Comment link limit', 'fictioneer' ),
|
||||
'fictioneer_words_per_minute' => __( 'Words per minute', 'fictioneer' ),
|
||||
|
@ -457,15 +457,12 @@ function fictioneer_settings_capability_checkbox( $cap, $name, $set ) {
|
||||
*
|
||||
* @since 5.7.2
|
||||
*
|
||||
* @param string $option The name of the setting option.
|
||||
* @param string|null $description Optional. The description below the label.
|
||||
* @param string|null $label Optional. Override label of the setting.
|
||||
* @param string $option The name of the setting option.
|
||||
* @param string $label Label of the setting.
|
||||
* @param string $description Optional. The description below the label.
|
||||
*/
|
||||
|
||||
function fictioneer_settings_label_checkbox( $option, $description = null, $label = null ) {
|
||||
// Setup
|
||||
$label = $label ?? fictioneer_get_option_label( $option );
|
||||
|
||||
function fictioneer_settings_label_checkbox( $option, $label, $description = null ) {
|
||||
// Start HTML ---> ?>
|
||||
<label class="fictioneer-label-checkbox" for="<?php echo $option; ?>">
|
||||
<input name="<?php echo $option; ?>" type="checkbox" id="<?php echo $option; ?>" <?php echo checked( 1, get_option( $option ), false ); ?> value="1" autocomplete="off">
|
||||
|
@ -241,8 +241,8 @@ function fictioneer_log_page_assignment_update( $option, $old_value, $value ) {
|
||||
// Build message
|
||||
$message = sprintf(
|
||||
_x(
|
||||
'%1$s changed from "%2$s" to "%3$s"',
|
||||
'Pattern for page assignment updates in logs.',
|
||||
'%1$s page assignment changed from #%2$s to #%3$s',
|
||||
'Pattern for page assignment updates in logs: "{Option} page assignment changed from {Old ID} to {New ID}.".',
|
||||
'fictioneer'
|
||||
),
|
||||
$option,
|
||||
|
@ -224,7 +224,8 @@ $patreon_tiers = is_array( $patreon_tiers ) ? $patreon_tiers : [];
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_password_form_with_patreon'
|
||||
'fictioneer_hide_password_form_with_patreon',
|
||||
__( 'Hide password form on Patreon-gated posts', 'fictioneer' ),
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
@ -48,6 +48,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_maintenance_mode',
|
||||
__( 'Enable maintenance mode', 'fictioneer' ),
|
||||
__( 'Locks down the site with a maintenance notice.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -57,6 +58,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_dark_mode_as_default',
|
||||
__( 'Enable dark mode as default', 'fictioneer' ),
|
||||
__( 'Overridden by personal site settings.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -66,6 +68,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_authors',
|
||||
__( 'Display authors on cards and posts', 'fictioneer' ),
|
||||
__( 'When you have multiple publishing authors.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -75,6 +78,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_full_post_content',
|
||||
__( 'Display full posts instead of excerpts', 'fictioneer' ),
|
||||
__( 'You can still use the [More] block for shortened previews.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -84,6 +88,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_site_age_confirmation',
|
||||
__( 'Enable age confirmation modal for site', 'fictioneer' ),
|
||||
__( 'Require age confirmation for the whole site.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -93,6 +98,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_contact_forms',
|
||||
__( 'Disable theme contact forms', 'fictioneer' ),
|
||||
__( 'Emergency stop with an error notice.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -173,6 +179,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_post_age_confirmation',
|
||||
__( 'Enable age confirmation modal for posts', 'fictioneer' ),
|
||||
__( 'Require age confirmation for <b>adult-rated</b> content.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -182,6 +189,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_protected_excerpt',
|
||||
__( 'Show excerpt on password-protected posts', 'fictioneer' ),
|
||||
__( 'This may be beneficial for search engines.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -191,6 +199,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_chapter_icons',
|
||||
__( 'Hide chapter icons', 'fictioneer' ),
|
||||
__( 'Hides the icons on story pages and in the mobile menu.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -200,6 +209,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_chapter_groups',
|
||||
__( 'Enable chapter groups', 'fictioneer' ),
|
||||
__( 'Display chapters in groups on story pages (if set).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -209,6 +219,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_collapse_groups_by_default',
|
||||
__( 'Collapse chapter groups by default', 'fictioneer' ),
|
||||
__( 'Chapter groups (if used) are collapsed on page load.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -218,6 +229,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_chapter_collapsing',
|
||||
__( 'Disable collapsing of chapters', 'fictioneer' ),
|
||||
__( 'Do not collapse long chapter lists.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -227,6 +239,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_chapter_appending',
|
||||
__( 'Append new chapters to story', 'fictioneer' ),
|
||||
__( 'Only once when the chapter is first saved.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -236,6 +249,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_limit_chapter_stories_by_author',
|
||||
__( 'Restrict chapter stories by author', 'fictioneer' ),
|
||||
__( 'Also disables cross-posting as guest author.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -253,6 +267,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_story_changelog',
|
||||
__( 'Show story changelog button', 'fictioneer' ),
|
||||
__( 'Opens modal with timestamped chapter changes.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -262,6 +277,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_large_card_chapter_list',
|
||||
__( 'Hide latest chapter list on large story cards', 'fictioneer' ),
|
||||
__( 'Less informative but also less cluttered.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -271,6 +287,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_count_characters_as_words',
|
||||
__( 'Count characters instead of words', 'fictioneer' ),
|
||||
__( 'For logographic writing systems. Use the word count multiplier to better approximate the number.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -310,7 +327,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_taxonomies_on_story_cards'
|
||||
'fictioneer_hide_taxonomies_on_story_cards',
|
||||
__( 'Hide taxonomies on story cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -318,7 +336,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_taxonomies_on_chapter_cards'
|
||||
'fictioneer_hide_taxonomies_on_chapter_cards',
|
||||
__( 'Hide taxonomies on chapter cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -326,7 +345,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_taxonomies_on_recommendation_cards'
|
||||
'fictioneer_hide_taxonomies_on_recommendation_cards',
|
||||
__( 'Hide taxonomies on recommendation cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -334,7 +354,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_taxonomies_on_collection_cards'
|
||||
'fictioneer_hide_taxonomies_on_collection_cards',
|
||||
__( 'Hide taxonomies on collection cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -346,7 +367,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_tags_on_story_cards'
|
||||
'fictioneer_show_tags_on_story_cards',
|
||||
__( 'Show tags on story cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -354,7 +376,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_tags_on_chapter_cards'
|
||||
'fictioneer_show_tags_on_chapter_cards',
|
||||
__( 'Show tags on chapter cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -362,7 +385,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_tags_on_recommendation_cards'
|
||||
'fictioneer_show_tags_on_recommendation_cards',
|
||||
__( 'Show tags on recommendation cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -370,7 +394,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_show_tags_on_collection_cards'
|
||||
'fictioneer_show_tags_on_collection_cards',
|
||||
__( 'Show tags on collection cards', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -382,7 +407,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_taxonomies_on_pages'
|
||||
'fictioneer_hide_taxonomies_on_pages',
|
||||
__( 'Hide taxonomies on pages', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -390,7 +416,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_tags_on_pages'
|
||||
'fictioneer_hide_tags_on_pages',
|
||||
__( 'Hide tags on pages', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -398,7 +425,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_hide_content_warnings_on_pages'
|
||||
'fictioneer_hide_content_warnings_on_pages',
|
||||
__( 'Hide content warnings on pages', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -505,6 +533,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_storygraph_api',
|
||||
__( 'Enable Storygraph API', 'fictioneer' ),
|
||||
__( 'Reach a larger audience by allowing external services to index and search your stories (meta data only).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -514,6 +543,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_oauth',
|
||||
__( 'Enable OAuth 2.0 authentication', 'fictioneer' ),
|
||||
sprintf(
|
||||
__( 'Register/Login with social media accounts. This requires you to <a href="%s" target="_blank">set up an application</a> for each service provider.', 'fictioneer' ),
|
||||
'https://github.com/Tetrakern/fictioneer/blob/main/DOCUMENTATION.md#users--oauth'
|
||||
@ -526,6 +556,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_patreon_locks',
|
||||
__( 'Enable Patreon content gate', 'fictioneer' ),
|
||||
__( 'Requires OAuth 2.0 application for Patreon. Allows eligible logged-in members to ignore post passwords.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -535,6 +566,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_lightbox',
|
||||
__( 'Enable lightbox', 'fictioneer' ),
|
||||
__( 'Enlarge images in floating container on click.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -544,6 +576,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_bookmarks',
|
||||
__( 'Enable Bookmarks', 'fictioneer' ),
|
||||
__( 'Bookmark paragraphs in chapters. No account needed.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -553,6 +586,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_follows',
|
||||
__( 'Enable Follows (requires account)', 'fictioneer' ),
|
||||
__( 'Follow stories and get on-site alerts for updates.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -562,6 +596,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_checkmarks',
|
||||
__( 'Enable Checkmarks (requires account)', 'fictioneer' ),
|
||||
__( 'Mark chapters and stories as "read".', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -571,6 +606,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_reminders',
|
||||
__( 'Enable Reminders (requires account)', 'fictioneer' ),
|
||||
__( 'Remember stories to be "read later".', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -580,6 +616,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_suggestions',
|
||||
__( 'Enable Suggestions', 'fictioneer' ),
|
||||
__( 'Suggest color-coded text changes in the comments.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -589,6 +626,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_theme_rss',
|
||||
__( 'Enable theme RSS feeds and buttons', 'fictioneer' ),
|
||||
__( 'Replace the default WordPress RSS feeds with theme feeds built for publishing your stories and chapters.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -598,6 +636,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_seo',
|
||||
__( 'Enable SEO features', 'fictioneer' ),
|
||||
__( 'Open Graph images, chat embeds, meta tags, and schema graphs for rich snippets. Incompatible with SEO plugins.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -607,6 +646,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_sitemap',
|
||||
__( 'Enable theme sitemap generation', 'fictioneer' ),
|
||||
__( 'Customized sitemap for search engines to crawl. Respects unlisted flags and custom post types. Can be slow.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -616,6 +656,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_tts',
|
||||
__( 'Enable Text-To-Speech (experimental)', 'fictioneer' ),
|
||||
__( 'Sometimes wonky browser-based text-to-speech engine. Extend and availability depends on the browser and OS.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -625,6 +666,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_epubs',
|
||||
__( 'Enable ePUB converter (experimental)', 'fictioneer' ),
|
||||
__( 'Automatically generated ePUBs. Can take a while and may fail due to non-conform content or excessive size. You can alternatively upload manually created ebooks as well.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -657,6 +699,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_commenting',
|
||||
__( 'Disable commenting across the site', 'fictioneer' ),
|
||||
__( 'Still shows the current comments.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -666,6 +709,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_require_js_to_comment',
|
||||
__( 'Require JavaScript to comment', 'fictioneer' ),
|
||||
__( 'Simple but effective spam protection.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -690,6 +734,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_ajax_comment_submit',
|
||||
__( 'Enable AJAX comment submission', 'fictioneer' ),
|
||||
__( 'Does not reload the page on submit.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -699,6 +744,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_ajax_comment_moderation',
|
||||
__( 'Enable AJAX comment moderation', 'fictioneer' ),
|
||||
__( 'Moderation actions directly in the comment section.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -708,6 +754,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_fast_ajax_comments',
|
||||
__( 'Enable fast AJAX for comments', 'fictioneer' ),
|
||||
sprintf(
|
||||
__( 'Accelerate AJAX comment requests by skipping plugins and theme initialization. Actions and filters will be ignored unless applied by core or a <a href="%s" target="_blank">must-use plugin</a>.', 'fictioneer' ),
|
||||
'https://wordpress.org/documentation/article/must-use-plugins/'
|
||||
@ -720,6 +767,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_comment_toolbar',
|
||||
__( 'Enable comment toolbar', 'fictioneer' ),
|
||||
__( 'Quick buttons to wrap text selection in BBCodes.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -729,6 +777,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_custom_badges',
|
||||
__( 'Enable custom badges', 'fictioneer' ),
|
||||
__( 'Assign custom badges (but users can disable them).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -738,6 +787,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_patreon_badges',
|
||||
__( 'Enable Patreon badges', 'fictioneer' ),
|
||||
sprintf(
|
||||
__( 'Show supporter badge for the <a href="%s">linked Patreon client</a>. This only works for the owner of the linked client. You cannot add campaigns for individual authors.', 'fictioneer' ),
|
||||
'?page=fictioneer_connections'
|
||||
@ -760,6 +810,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_comment_notifications',
|
||||
__( 'Enable comment reply notifications', 'fictioneer' ),
|
||||
__( 'Notify commenters about replies via email (if provided).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -769,6 +820,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_sticky_comments',
|
||||
__( 'Enable sticky comments', 'fictioneer' ),
|
||||
__( 'Always on top of the first page.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -778,6 +830,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_private_commenting',
|
||||
__( 'Enable private commenting', 'fictioneer' ),
|
||||
__( 'Private comments are invisible to the public.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -787,6 +840,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_comment_reporting',
|
||||
__( 'Enable comment reporting', 'fictioneer' ),
|
||||
__( 'Logged-in users can report comments via flag button.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -839,6 +893,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_heartbeat',
|
||||
__( 'Disable Heartbeat API', 'fictioneer' ),
|
||||
__( 'No more continuous requests for near real-time updates and autosaves, which can strain the server.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -848,6 +903,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_remove_head_clutter',
|
||||
__( 'Remove clutter from HTML head', 'fictioneer' ),
|
||||
__( 'Less meta tags, scripts, and styles in the <head>.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -857,6 +913,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_remove_wp_svg_filters',
|
||||
__( 'Remove global WordPress SVG filters', 'fictioneer' ),
|
||||
__( 'If not used, these are just clutter in the <body>. This will prevent duotone filters from working.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -866,6 +923,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_reduce_admin_bar',
|
||||
__( 'Reduce admin bar items', 'fictioneer' ),
|
||||
__( 'Less menu items, links, and icons in the admin bar.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -875,6 +933,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_all_widgets',
|
||||
__( 'Disable all widgets', 'fictioneer' ),
|
||||
__( 'The theme does not use widgets by default and removing them slightly boosts performance.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -884,6 +943,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_bundle_stylesheets',
|
||||
__( 'Bundle CSS files into one', 'fictioneer' ),
|
||||
__( 'Faster if HTTP/2 (+) is not available to load multiple smaller files in parallel, but increases the initial payload.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -893,6 +953,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_bundle_scripts',
|
||||
__( 'Bundle JavaScript files into one', 'fictioneer' ),
|
||||
__( 'Deferred script file that should be ignored by aggregation plugins to avoid errors (fictioneer/js/complete.min.js and fictioneer/cache/dynamic-scripts.js).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -902,6 +963,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_extended_story_list_meta_queries',
|
||||
__( 'Disable extended story list meta queries', 'fictioneer' ),
|
||||
__( 'Faster, but adds one row per story to your database, which can slow down your site if you have thousands.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -911,6 +973,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_extended_chapter_list_meta_queries',
|
||||
__( 'Disable extended chapter list meta queries', 'fictioneer' ),
|
||||
__( 'Faster, but adds one row per chapter to your database, which can slow down your site if you have thousands.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -929,6 +992,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_do_not_save_comment_ip',
|
||||
__( 'Do not save comment IP addresses', 'fictioneer' ),
|
||||
__( 'IP addresses are personal data.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -938,6 +1002,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_restrict_rest_api',
|
||||
__( 'Restrict Default REST API', 'fictioneer' ),
|
||||
__( 'Disables API for guests and low-permission users.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -947,6 +1012,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_rate_limits',
|
||||
__( 'Enable rate limiting for AJAX requests', 'fictioneer' ),
|
||||
sprintf(
|
||||
__( 'Simple session-based rate limiting, allowing %s requests per minute for selected actions (per action).', 'fictioneer' ),
|
||||
FICTIONEER_REQUESTS_PER_MINUTE
|
||||
@ -959,6 +1025,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_application_passwords',
|
||||
__( 'Disable application passwords', 'fictioneer' ),
|
||||
__( 'If you do not need them, you should disable them.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -968,6 +1035,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_logout_redirects_home',
|
||||
__( 'Logout redirects Home', 'fictioneer' ),
|
||||
__( 'Prevents users from ending up on the login page.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -977,6 +1045,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_consent_wrappers',
|
||||
__( 'Add consent wrappers to embedded content', 'fictioneer' ),
|
||||
__( 'External content not loaded until deliberately clicked.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -986,6 +1055,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_see_some_evil',
|
||||
__( 'Monitor posts for suspicious content', 'fictioneer' ),
|
||||
__( 'Sends an admin email if suspicious strings are found, which could be an attempted attack or <strong>false positive.</strong>', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -995,6 +1065,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_cookie_banner',
|
||||
__( 'Enable cookie banner and consent function', 'fictioneer' ),
|
||||
__( 'Shows a generic cookie consent banner and activates the <code>fictioneer_get_consent()</code> theme function that returns either false, "necessary", or "full".', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1043,6 +1114,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_properties',
|
||||
__( 'Disable Fictioneer CSS properties', 'fictioneer' ),
|
||||
__( 'Only do this if you define everything yourself.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1052,6 +1124,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_font_awesome',
|
||||
__( 'Disable Font Awesome integration', 'fictioneer' ),
|
||||
__( 'Only do this if you integrate it yourself.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1061,6 +1134,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_jquery_migrate',
|
||||
__( 'Enable jQuery migrate script', 'fictioneer' ),
|
||||
__( 'Some older plugins might require this.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1070,6 +1144,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_purge_all_caches',
|
||||
__( 'Purge all caches on content updates', 'fictioneer' ),
|
||||
__( 'Inefficient but makes sure everything is up-to-date.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1079,6 +1154,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_cache_compatibility',
|
||||
__( 'Enable cache compatibility mode', 'fictioneer' ),
|
||||
__( 'Make the theme aware of unknown caching plugins.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1088,6 +1164,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_public_cache_compatibility',
|
||||
__( 'Enable public cache compatibility mode', 'fictioneer' ),
|
||||
__( 'For serving public caches to logged-in users. Exceptions for administrators and moderators are recommended.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1097,6 +1174,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_private_cache_compatibility',
|
||||
__( 'Enable private cache compatibility mode', 'fictioneer' ),
|
||||
__( 'For serving private caches to logged-in users. Also useful if you do not serve caches to logged-in users at all.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1106,6 +1184,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_all_blocks',
|
||||
__( 'Enable all Gutenberg blocks', 'fictioneer' ),
|
||||
__( 'No guarantee these blocks work with the theme.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1115,6 +1194,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_advanced_meta_fields',
|
||||
__( 'Enable advanced meta fields', 'fictioneer' ),
|
||||
__( 'Additional options you most likely do not need.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1124,6 +1204,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_theme_logout',
|
||||
__( 'Disable theme logout without nonce', 'fictioneer' ),
|
||||
__( 'Return to the default WordPress logout with nonce.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1133,6 +1214,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_ajax_comment_form',
|
||||
__( 'Enable AJAX comment form', 'fictioneer' ),
|
||||
__( 'Load the comment form via AJAX to circumvent caching.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1142,6 +1224,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_ajax_comments',
|
||||
__( 'Enable AJAX comment section', 'fictioneer' ),
|
||||
__( 'Load the comment section and form via AJAX. More server work but circumvents caching.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1151,6 +1234,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_enable_ajax_authentication',
|
||||
__( 'Enable AJAX user authentication', 'fictioneer' ),
|
||||
__( 'Check for user login state after the page has been loaded to get around anonymizing caching strategies.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1160,6 +1244,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_theme_search',
|
||||
__( 'Disable advanced search', 'fictioneer' ),
|
||||
__( 'Return to the default search query and form.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1169,6 +1254,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_comment_bbcodes',
|
||||
__( 'Disable comment BBCodes', 'fictioneer' ),
|
||||
__( 'This will disable the comment toolbar as well.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1178,6 +1264,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_comment_callback',
|
||||
__( 'Disable theme comment style (callback)', 'fictioneer' ),
|
||||
__( 'Return to the default WordPress markup.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1187,6 +1274,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_comment_query',
|
||||
__( 'Disable theme comment query', 'fictioneer' ),
|
||||
__( 'Return to the default WordPress query.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1196,6 +1284,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_comment_form',
|
||||
__( 'Disable theme comment form', 'fictioneer' ),
|
||||
__( 'Return to the default WordPress form.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1205,6 +1294,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_comment_pagination',
|
||||
__( 'Disable theme comment pagination', 'fictioneer' ),
|
||||
__( 'Return to the default WordPress pagination (no-AJAX).', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
@ -1222,7 +1312,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_facebook_share'
|
||||
'fictioneer_disable_facebook_share',
|
||||
__( 'Disable Facebook share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1230,7 +1321,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_twitter_share'
|
||||
'fictioneer_disable_twitter_share',
|
||||
__( 'Disable Twitter share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1238,7 +1330,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_tumblr_share'
|
||||
'fictioneer_disable_tumblr_share',
|
||||
__( 'Disable Tumblr share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1246,7 +1339,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_reddit_share'
|
||||
'fictioneer_disable_reddit_share',
|
||||
__( 'Disable Reddit share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1254,7 +1348,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_mastodon_share'
|
||||
'fictioneer_disable_mastodon_share',
|
||||
__( 'Disable Mastodon share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1262,7 +1357,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_telegram_share'
|
||||
'fictioneer_disable_telegram_share',
|
||||
__( 'Disable Telegram share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1270,7 +1366,8 @@
|
||||
<div class="fictioneer-card__row">
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_disable_whatsapp_share'
|
||||
'fictioneer_disable_whatsapp_share',
|
||||
__( 'Disable Whatsapp share button', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
@ -1290,6 +1387,7 @@
|
||||
<?php
|
||||
fictioneer_settings_label_checkbox(
|
||||
'fictioneer_delete_theme_options_on_deactivation',
|
||||
__( 'Delete all settings and theme mods on deactivation', 'fictioneer' ),
|
||||
__( 'This will also remove all theme-related comment and user meta data, such as bookmarks or follows. Stories, chapters, collections, and recommendations remain, but you will need to register their custom post types to access them.', 'fictioneer' )
|
||||
);
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user