PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Snippets/pages/disable.php +36 -31 3.54.3 View file →
@@ -18,13 +18,13 @@
18 18 'disable_widget_blocks' => [
19 19 'Disable Widget Blocks',
20 20 'Use the classic interface instead of Blocks to manage Widgets.',
21 21 ],
22 - 'remove_wp_version' => [
22 + 'remove_wp_version' => [
23 23 'Remove WordPress Version Number',
24 24 'Hide the WordPress version number from your site\'s frontend and feeds.',
25 25 ],
26 - 'disable_XML_RPC' => [
26 + 'disable_XML_RPC' => [
27 27 'Disable XML-RPC',
28 28 'On sites running WordPress 3.5+, disable XML-RPC completely.',
29 29 ],
30 30
@@ -129,36 +129,41 @@
129 129 ],
130 130
131 131 ];
132 132
133 -self::create_options($disabled_snippets);
133 +self::create_options( $disabled_snippets );
134 134
135 135 ?>
136 +<div class="wowp-snippet__list">
137 + <div class="wowp-snippet__item">
138 + <div class="wowp-snippet__item-header">
139 + <label for="disable_admin_bar">Disable The WP Admin Bar</label>
140 + <p class="wowp-snippet__item-description">Disable the WordPress Admin Bar for all users in the frontend.</p>
141 + </div>
142 + <div class="wowp-field has-checkbox">
143 + <label class="switch">
144 + <?php self::field( 'checkbox', 'disable_admin_bar' ); ?>
145 + <span class="slider"></span>
146 + </label>
147 + </div>
148 + <div class="wowp-snippet__item-expand is-hidden">
149 + <p class="wowp-snippet__expand-title">Show the sidebar for users:</p>
150 + <div class="wowp-fields__group">
151 + <?php foreach ( FieldHelper::user_roles() as $key => $value ) :
152 + if ( $key === 'all' ) {
153 + continue;
154 + }
155 + ?>
156 + <div class="wowp-field has-checkbox">
157 + <span class="label"><?php echo esc_html( $value ); ?></span>
158 + <label class="switch">
159 + <?php self::field( 'checkbox', 'disable_admin_bar_user_' . $key ); ?>
160 + <span class="slider"></span>
161 + </label>
162 + </div>
163 + <?php endforeach; ?>
164 + </div>
165 + </div>
166 + </div>
167 +</div>
136 168
137 -<dl class="wowp-snippet__list">
138 - <dt><label><?php
139 - self::field( 'checkbox', 'disable_admin_bar' ); ?>Disable The WP Admin Bar</label></dt>
140 - <dd>Disable the WordPress Admin Bar for all users in the frontend.
141 - <details class="wpcoder-expand">
142 - <summary class="wpcoder-expand__title">Expand</summary>
143 - <div class="wpcoder-expand__content">
144 - <p><b>Show the sidebar for users:</b></p>
145 - <fieldset class="_bg-white">
146 - <?php foreach ( FieldHelper::user_roles() as $key => $value ) :
147 - if ( $key === 'all' ) {
148 - continue;
149 - }
150 - ?>
151 - <div class="wowp-field has-checkbox">
152 - <label>
153 - <span class="label"><?php echo esc_html( $value ); ?></span>
154 - <?php self::field( 'checkbox', 'disable_admin_bar_user_' . $key ); ?>
155 - <span><?php esc_html_e( 'Enable', 'wpcoder' ); ?></span>
156 - </label>
157 - </div>
158 - <?php endforeach; ?>
159 - </fieldset>
160 -
161 - </div>
162 - </details>
163 - </dd>
164 -</dl>
169 +<?php