-
Notifications
You must be signed in to change notification settings - Fork 4
/
credibililty-indicators.php
31 lines (27 loc) · 1.19 KB
/
credibililty-indicators.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
27
28
29
30
31
<?php
/**
* Credibility Indicators admin page.
*
* @package Civil_Publisher
*/
?>
<div class="wrap">
<h1><?php esc_html_e( 'Credibility Indicators', 'civil' ); ?></h1>
<p>Credibility Indicators provide readers with greater transparency into the reporting process. On each post you will find a Credibility Indicators section that lets you select which of these, if any, are applicable to the post. Ones you select are also included as metadata when you publish onto the Civil network. You may change the default text below.</p>
<p><a href="https://civil.co/credibility-indicators/" target="_blank">Read more about Civil's Credibility Indicators</a></p>
<?php if ( current_user_can( 'manage_options' ) ) { ?>
<form action="options.php" method="post">
<?php
// Output security fields.
settings_fields( 'civil_credibility_indicators' );
// Output form fields.
do_settings_sections( 'credibility-indicators' );
// Output save button.
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>