Version 5.21.0 #39

Merged
Tetrakern merged 43 commits from next_version into main 2024-07-06 21:12:42 +08:00
4 changed files with 84 additions and 8 deletions
Showing only changes of commit 6d10920e25 - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -610,7 +610,7 @@ function fictioneer_settings_setup_card( $option, $title, $content ) {
<div class="fictioneer-card__wrapper">
<div class="fictioneer-card__content">
<div class="fictioneer-card__row">
<p><strong><?php echo $title; ?></strong></p>
<p class="fictioneer-card__row-heading"><?php echo $title; ?></p>
<p><?php echo $content; ?></p>
</div>
<div class="fictioneer-card__row">

View File

@ -21,7 +21,7 @@
<div><?php
printf(
'<p>Welcome and thank you for using Fictioneer!</p><p>Please make sure to read the <a href="%1$s" target="_blank" rel="noopener">installation guide</a> thoroughly. If any issues arise, refer to the <a href="%2$s" target="_blank" rel="noopener">documentation</a> and <a href="%3$s" target="_blank" rel="noopener">FAQ</a> first. If you are new to WordPress, consider looking up some guides, as this theme is not the most beginner-friendly. For further questions or commissions, feel free to join the <a href="%4$s" target="_blank" rel="noopener">Discord</a>.</p><p>The following steps will help you select some base options for an easier start, but you can skip this screen if you want. You can find all these options and much more in the <a href="%5$s" target="_blank" rel="noopener">Fictioneer settings</a> and the <a href="%6$s" target="_blank" rel="noopener">Customizer</a>.</p>',
'<p>Welcome and thank you for using Fictioneer!</p><p>Please make sure to read the <a href="%1$s" target="_blank" rel="noopener">installation guide</a> thoroughly. If any issues arise, refer to the <a href="%2$s" target="_blank" rel="noopener">documentation</a> and <a href="%3$s" target="_blank" rel="noopener">FAQ</a> first. If you are new to WordPress, consider looking up some guides, as this theme is not the most beginner-friendly. For further questions or commissions, feel free to join the <a href="%4$s" target="_blank" rel="noopener">Discord</a>.</p><p>The following steps will help you select some base options for an easier start, but you can skip this screen if you want. You can find all these options and much more in the <a href="%5$s" target="_blank" rel="noopener">theme settings</a> and the <a href="%6$s" target="_blank" rel="noopener">Customizer</a>.</p>',
'https://github.com/Tetrakern/fictioneer/blob/main/INSTALLATION.md',
'https://github.com/Tetrakern/fictioneer/blob/main/DOCUMENTATION.md',
'https://github.com/Tetrakern/fictioneer/blob/main/FAQ.md',
@ -68,7 +68,61 @@
fictioneer_settings_setup_card(
'fictioneer_count_characters_as_words',
__( 'Count characters instead of words?', 'fictioneer' ),
__( 'Counting words does not work well for logographic writing systems, so you may prefer to count characters instead. You can further refine this count by applying a multiplier in the theme settings.', 'fictioneer' )
__( 'Counting words does not work well for logographic writing systems, so you may want to count characters instead. You can further refine this count by applying a multiplier in the theme settings.', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable theme lightbox for images?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable bookmarks for chapter paragraphs?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable logged-in users to follow stories?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable logged-in users to set reminders for stories?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable logged-in users to track read chapters/stories with checkmarks?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( 'Enable suggestions in comments for chapters?', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( '', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( '', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
'',
__( '', 'fictioneer' ),
__( '', 'fictioneer' )
);
fictioneer_settings_setup_card(
@ -99,7 +153,7 @@
<div class="fictioneer-card__wrapper">
<div class="fictioneer-card__content">
<div class="fictioneer-card__row">
<p><span class="dashicons dashicons-lightbulb"></span> <strong><?php _e( 'Use a child theme for customization.', 'fictioneer' ); ?></strong></p>
<p class="fictioneer-card__row-heading"><span class="dashicons dashicons-lightbulb"></span> <?php _e( 'Use a child theme for customization.', 'fictioneer' ); ?></p>
<p><?php
printf(
__( 'Child themes allow you to overwrite any part of the parent theme without actually modifying it. Otherwise, any changes you make would be removed once you update the theme. While creating a child theme is not difficult, it does require a bit of technical skill. You can start with the prepared <a href="%s" target="_blank" rel="noopener">base child theme</a>.', 'fictioneer' ),
@ -115,7 +169,7 @@
<div class="fictioneer-card__wrapper">
<div class="fictioneer-card__content">
<div class="fictioneer-card__row">
<p><span class="dashicons dashicons-lightbulb"></span> <strong><?php _e( 'Use constants for additional customization.', 'fictioneer' ); ?></strong></p>
<p class="fictioneer-card__row-heading"><span class="dashicons dashicons-lightbulb"></span> <?php _e( 'Use constants for additional customization.', 'fictioneer' ); ?></p>
<p><?php
printf(
__( 'Fictioneer offers even more options beyond what is accessible in the settings! However, tampering with some of these options can break the theme or cause unexpected behavior. This is why they are only defined as PHP constants. You can change them in a child theme as described in the <a href="%s" target="_blank" rel="noopener">installation guide</a>.', 'fictioneer' ),
@ -127,6 +181,22 @@
</div>
</div>
<div class="fictioneer-card">
<div class="fictioneer-card__wrapper">
<div class="fictioneer-card__content">
<div class="fictioneer-card__row">
<p class="fictioneer-card__row-heading"><span class="dashicons dashicons-lightbulb"></span> <?php _e( 'Set up a static page with shortcodes as the home page.', 'fictioneer' ); ?></p>
<p><?php
printf(
__( 'By default, newly installed WordPress sites display the blog index as the "home" page. You can change this by going to Settings > Reading and selecting a static home and blog page instead, which you need to create first. If you want to replicate the demo site layout, the process is explained in the <a href="%s" target="_blank" rel="noopener">installation guide</a>.', 'fictioneer' ),
'https://github.com/Tetrakern/fictioneer/blob/main/INSTALLATION.md#demo-layout'
);
?></p>
</div>
</div>
</div>
</div>
</form>
</div>

View File

@ -410,6 +410,7 @@ body[class*="fictioneer_page_"] {
.dashicons {
font-size: 1.25em;
vertical-align: text-bottom;
height: 1em;
width: auto;
}
@ -476,6 +477,11 @@ body[class*="fictioneer_page_"] {
margin-bottom: 12px;
}
&-heading {
font-weight: 700;
font-size: 15px;
}
&--inline-input {
&:not(:first-child) {
margin-top: 16px;
@ -732,14 +738,14 @@ body[class*="fictioneer_page_"] {
.checkbox-toggle {
display: inline-flex;
border-radius: 3px;
width: 54px;
width: 46px;
input {
appearance: none;
display: block;
background: var(--input-background-color) !important;
padding: 2px !important;
height: 29px;
height: 25px;
width: 100%;
&::before {