-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstory-boosts-settings.php
26 lines (24 loc) · 1 KB
/
story-boosts-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Story Boosts settings page.
*
* @package Civil_Publisher
*/
?>
<div class="wrap">
<h1><?php esc_html_e( 'Story Boosts', 'civil' ); ?></h1>
<p>Story Boosts allows readers to support your newsroom with small, incremental amounts of money. It is a widget that appears at the end of your posts. Posts that use Story Boosts will also appear on the <a href="https://registry.civil.co/storyfeed" target="_blank">Civil story feed 🡥</a>.</p>
<p>Please contact <a href="mailto:[email protected]">[email protected]</a> with any questions or issues.</p>
<?php if ( current_user_can( 'manage_options' ) ) { ?>
<form action="options.php" method="post">
<?php
settings_fields( 'civil_story_boosts' );
do_settings_sections( 'story-boosts' );
submit_button( __( 'Save', 'civil' ) );
?>
</form>
<?php } else { ?>
<h2><?php esc_html_e( 'Settings', 'civil' ); ?></h2>
<p><i><?php esc_html_e( 'You must be an admin in order to edit these settings.', 'civil' ); ?></i></p>
<?php } ?>
</div>