PluginProbe ʕ •ᴥ•ʔ
Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager / 3.0.7.1
Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager v3.0.7.1
trunk 2.1.2.0 3.0.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3 3.31 3.32 3.35 3.36 3.37 3.38
custom-sidebars / views / widgets.php
custom-sidebars / views Last commit date
col-sidebars.php 9 years ago import.php 9 years ago metabox.php 9 years ago quick-edit.php 9 years ago widgets-delete.php 10 years ago widgets-editor.php 10 years ago widgets-export.php 10 years ago widgets-location.php 9 years ago widgets.php 10 years ago
widgets.php
171 lines
1 <?php
2 /**
3 * Updates the default widgets page of the admin area.
4 * There are some HTML to be added for having all the functionality, so we
5 * include it at the begining of the page, and it's placed later via js.
6 */
7 ?>
8
9 <div id="cs-widgets-extra">
10
11 <?php /*
12 ============================================================================
13 ===== WIDGET head
14 ============================================================================
15 */ ?>
16 <div id="cs-title-options">
17 <h2><?php _e( 'Sidebars', 'custom-sidebars' ); ?></h2>
18 <div id="cs-options" class="csb cs-options">
19 <button type="button" class="button button-primary cs-action btn-create-sidebar">
20 <i class="dashicons dashicons-plus-alt"></i>
21 <?php _e( 'Create a new sidebar', 'custom-sidebars' ); ?>
22 </button>
23 <?php
24 /**
25 * Show additional functions in the widget header.
26 */
27 do_action( 'cs_widget_header' );
28 ?>
29 </div>
30 </div>
31
32
33 <?php /*
34 ============================================================================
35 ===== LANGUAGE
36 ============================================================================
37 */ ?>
38 <script>
39 csSidebarsData = {
40 'title_edit': "<?php _e( 'Edit [Sidebar]', 'custom-sidebars' ); ?>",
41 'title_new': "<?php _e( 'New Custom Sidebar', 'custom-sidebars' ); ?>",
42 'btn_edit': "<?php _e( 'Save Changes', 'custom-sidebars' ); ?>",
43 'btn_new': "<?php _e( 'Create Sidebar', 'custom-sidebars' ); ?>",
44 'title_delete': "<?php _e( 'Delete Sidebar', 'custom-sidebars' ); ?>",
45 'title_location': "<?php _e( 'Define where you want this sidebar to appear.', 'custom-sidebars' ); ?>",
46 'title_export': "<?php _e( 'Import / Export Sidebars', 'custom-sidebars' ); ?>",
47 'custom_sidebars': "<?php _e( 'Custom Sidebars', 'custom-sidebars' ); ?>",
48 'theme_sidebars': "<?php _e( 'Theme Sidebars', 'custom-sidebars' ); ?>",
49 'ajax_error': "<?php _e( 'Couldn\'t load data from WordPress...', 'custom-sidebars' ); ?>",
50 'lbl_replaceable': "<?php _e( 'This sidebar can be replaced on certain pages', 'custom-sidebars' ); ?>",
51 'replace_tip': "<?php _e( 'Activate this option to replace the sidebar with one of your custom sidebars.', 'custom-sidebars' ); ?>",
52 'filter': "<?php _e( 'Filter...', 'custom-sidebars' ); ?>",
53 'replaceable': <?php echo json_encode( (object) CustomSidebars::get_options( 'modifiable' ) ); ?>
54 };
55 </script>
56
57
58 <?php /*
59 ============================================================================
60 ===== TOOLBAR for custom sidebars
61 ============================================================================
62 */ ?>
63 <div class="cs-custom-sidebar cs-toolbar">
64 <a
65 class="cs-tool delete-sidebar"
66 data-action="delete"
67 href="#"
68 title="<?php _e( 'Delete this sidebar.', 'custom-sidebars' ); ?>"
69 >
70 <i class="dashicons dashicons-trash"></i>
71 </a>
72 <span class="cs-separator">|</span>
73 <a
74 class="cs-tool"
75 data-action="edit"
76 href="#"
77 title="<?php _e( 'Edit this sidebar.', 'custom-sidebars' ); ?>"
78 >
79 <?php _e( 'Edit', 'custom-sidebars' ); ?>
80 </a>
81 <span class="cs-separator">|</span>
82 <a
83 class="cs-tool"
84 data-action="location"
85 href="#"
86 title="<?php _e( 'Where do you want to show the sidebar?', 'custom-sidebars' ); ?>"
87 >
88 <?php _e( 'Sidebar Location', 'custom-sidebars' ); ?>
89 </a>
90 <span class="cs-separator">|</span>
91 </div>
92
93
94 <?php /*
95 ============================================================================
96 ===== TOOLBAR for theme sidebars
97 ============================================================================
98 */ ?>
99 <div class="cs-theme-sidebar cs-toolbar">
100 <label
101 for="cs-replaceable"
102 class="cs-tool btn-replaceable"
103 data-action="replaceable"
104 data-on="<?php _e( 'This sidebar can be replaced on certain pages', 'custom-sidebars' ); ?>"
105 data-off="<?php _e( 'This sidebar will always be same on all pages', 'custom-sidebars' ); ?>"
106 >
107 <span class="icon"></span>
108 <input
109 type="checkbox"
110 id=""
111 class="has-label chk-replaceable"
112 />
113 <span class="is-label">
114 <?php _e( 'Allow this sidebar to be replaced', 'custom-sidebars' ); ?>
115 </span>
116 </label>
117 <span class="cs-separator">|</span>
118 <span class="">
119 <a
120 class="cs-tool"
121 data-action="location"
122 href="#"
123 title="<?php _e( 'Where do you want to show the sidebar?', 'custom-sidebars' ); ?>"
124 >
125 <?php _e( 'Sidebar Location', 'custom-sidebars' ); ?>
126 </a>
127 <span class="cs-separator">|</span>
128 </span>
129 </div>
130
131
132 <?php /*
133 ============================================================================
134 ===== DELETE SIDEBAR confirmation
135 ============================================================================
136 */ ?>
137 <div class="cs-delete">
138 <?php include CSB_VIEWS_DIR . 'widgets-delete.php'; ?>
139 </div>
140
141
142 <?php /*
143 ============================================================================
144 ===== ADD/EDIT SIDEBAR
145 ============================================================================
146 */ ?>
147 <div class="cs-editor">
148 <?php include CSB_VIEWS_DIR . 'widgets-editor.php'; ?>
149 </div>
150
151
152 <?php /*
153 ============================================================================
154 ===== EXPORT
155 ============================================================================
156 */ ?>
157 <div class="cs-export">
158 <?php include CSB_VIEWS_DIR . 'widgets-export.php'; ?>
159 </div>
160
161 <?php /*
162 ============================================================================
163 ===== LOCATION popup.
164 ============================================================================
165 */ ?>
166 <div class="cs-location">
167 <?php include CSB_VIEWS_DIR . 'widgets-location.php'; ?>
168 </div>
169
170 </div>
171