-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings-page.php
37 lines (31 loc) · 957 Bytes
/
settings-page.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
32
33
34
35
36
37
<?php
function aawp_settings_page()
{
if (!current_user_can('manage_options')) {
return;
}
?>
<div class="wrap">
<h1>Artivain Analytics</h1>
<img src="https://assets.artivain.com/logo/main/logo.png" alt="" style="max-height: 100px;">
<h2>View stats</h2>
<a href="https://analytics.artivain.com" target="_blank" class="button button-primary">
View stats on Analytics dashboard <span class="dashicons dashicons-external" style="line-height: 1.2;"></span>
</a>
<?php
settings_errors('aawp_messages');
?>
<form action="options.php" method="post">
<?php
// output security fields for the registered setting "wporg"
settings_fields('aawp_options');
// output setting sections and their fields
// (sections are registered for "wporg", each field is registered to a specific section)
do_settings_sections('aawp_settings');
// output save settings button
submit_button('Save');
?>
</form>
</div>
<?php
}