| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render the WPCasa settings page. |
| 4 |
* |
| 5 |
* @package WPCasa |
| 6 |
* @updated 1.5.4 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
// Display the confirmation returned by the WordPress Settings API. |
| 14 |
if ( isset( $_GET['settings-updated'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 15 |
echo '<div class="fade notice notice-success"><p>' . esc_html__( 'Settings saved.', 'wpcasa' ) . '</p></div>'; |
| 16 |
} |
| 17 |
?> |
| 18 |
|
| 19 |
<div class="wrap wpsight-settings-wrap"> |
| 20 |
<?php require WPSIGHT_PLUGIN_DIR . '/includes/admin/views/sidebar.php'; ?> |
| 21 |
|
| 22 |
<div class="wpsight-admin-main"> |
| 23 |
<div class="wpsight-admin-ui-panel wpsight-admin-main-wrap-btn-toggle"> |
| 24 |
<button |
| 25 |
type="button" |
| 26 |
class="wpsight-settings-sidebar-toggle" |
| 27 |
aria-controls="wpsight-admin-sidebar" |
| 28 |
aria-expanded="false" |
| 29 |
aria-label="<?php echo esc_attr__( 'Open settings navigation', 'wpcasa' ); ?>" |
| 30 |
data-wpsight-open-label="<?php echo esc_attr__( 'Open settings navigation', 'wpcasa' ); ?>" |
| 31 |
data-wpsight-close-label="<?php echo esc_attr__( 'Close settings navigation', 'wpcasa' ); ?>" |
| 32 |
> |
| 33 |
<span class="wpsight-settings-sidebar-toggle-line" aria-hidden="true"></span> |
| 34 |
<span class="wpsight-settings-sidebar-toggle-line" aria-hidden="true"></span> |
| 35 |
<span class="wpsight-settings-sidebar-toggle-line" aria-hidden="true"></span> |
| 36 |
</button> |
| 37 |
</div> |
| 38 |
|
| 39 |
<?php require WPSIGHT_PLUGIN_DIR . '/includes/admin/views/panels.php'; ?> |
| 40 |
<?php require WPSIGHT_PLUGIN_DIR . '/includes/admin/views/settings-form.php'; ?> |
| 41 |
<?php require WPSIGHT_PLUGIN_DIR . '/includes/admin/views/page-tools.php'; ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|