settings.php
1.8 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Output the Settings screen.
*
* @since 1.0.0
*
* @package Media_Library_Organizer
* @author WP Media Library
*/
?>
<div class="wrap">
<h1 class="wp-heading-inline dashicons-before dashicons-admin-media">
<?php echo esc_html( $this->base->plugin->displayName ); ?>
<span>
<?php echo esc_html( $screen['label'] ); ?>
</span>
</h1>
<?php
// Output notices.
echo $this->base->get_class( 'notices' )->output_notices(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
<div class="wrap-inner">
<?php
// Add a Documentation Tab, if a Documentation link exists.
if ( isset( $screen['documentation'] ) && ! empty( $screen['documentation'] ) ) {
?>
<!-- Tabs -->
<h2 class="nav-tab-wrapper wpzinc-horizontal-tabbed-ui">
<a href="<?php echo esc_attr( $screen['documentation'] ); ?>" class="nav-tab last documentation" target="_blank">
<?php esc_html_e( 'Documentation', 'media-library-organizer' ); ?>
<span class="dashicons dashicons-admin-page"></span>
</a>
</h2>
<?php
}
?>
<form name="post" method="post" action="<?php echo esc_attr( $_SERVER['REQUEST_URI'] ); ?>" id="<?php echo esc_attr( $this->base->plugin->name ); ?>">
<div id="poststuff">
<div id="post-body" class="metabox-holder columns-1">
<!-- Content -->
<div id="post-body-content">
<div id="normal-sortables" class="meta-box-sortables ui-sortable publishing-defaults">
<?php
// Load sub view.
require_once $screen['view'];
wp_nonce_field( $this->base->plugin->name . '_' . $screen['name'], $this->base->plugin->name . '_nonce' );
?>
</div>
<!-- /normal-sortables -->
</div>
<!-- /post-body-content -->
</div>
</div>
<!-- /poststuff -->
</form>
</div><!-- ./wrap-inner -->
</div>