Add helper modal for bookmarks

This commit is contained in:
Tetrakern 2024-08-27 12:41:13 +02:00
parent 7f89194363
commit 4c05cc26ff
2 changed files with 7 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -10,6 +10,7 @@
// Setup
$issues = fictioneer_look_for_issues();
$images = get_template_directory_uri() . '/img/documentation/';
?>
@ -653,7 +654,12 @@ $issues = fictioneer_look_for_issues();
fictioneer_settings_label_checkbox(
'fictioneer_enable_bookmarks',
__( 'Enable Bookmarks', 'fictioneer' ),
__( 'Bookmark paragraphs in chapters. No account needed.', 'fictioneer' )
__( 'Bookmark paragraphs in chapters. No account needed.', 'fictioneer' ),
sprintf(
__( '%1$s<p>You can bookmark chapters by clicking or tapping on a paragraph, which opens the paragraph tools. The bookmark will link back to that specific paragraph, not just the page, and will display your progress. Bookmarks are stored in the browser and do not require an account, but if you one, they are synced across browsers and devices.</p><p>While the mobile menu has a section for bookmarks, you will need to set up a page with the Bookmarks template on desktop or add the <code>fictioneer_bookmarks</code> shortcode somewhere. Please refer to the <a href="%2$s" target="_blank">documentation</a> on GitHub for more information.</p>', 'fictioneer' ),
'<div class="helper-modal-image"><img src="' . $images . 'fictioneer_enable_bookmarks.jpg"></div>',
'https://github.com/Tetrakern/fictioneer/blob/main/DOCUMENTATION.md'
)
);
?>
</div>