Changeset 2064136
- Timestamp:
- 04/06/2019 07:26:09 AM (7 years ago)
- Location:
- wp-admin-bar-control/trunk
- Files:
-
- 3 edited
-
includes/admin.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
-
wp-admin-bar-control.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-admin-bar-control/trunk/includes/admin.php
r2058849 r2064136 47 47 ,'custom' => array() 48 48 ,'custom_pos' => 0 49 //,'mcss' => ''50 //,'css' => ''49 ,'hide' => 0 50 ,'css' => '' 51 51 ); 52 52 //update_option("yabp", $yabp); … … 72 72 ,'custom' => !empty($_POST['custom']) ? $_POST['custom'] : '' 73 73 ,'custom_pos' => !empty($_POST['custom_pos']) ? $_POST['custom_pos'] : 0 74 //,'mcss' => $_POST['mcss']75 //,'css' => !empty($_POST['css']) ? $_POST['css'] : '' //textarea .ab-item { display: none; }74 ,'hide' => !empty($_POST['hide']) ? $_POST['hide'] : 0 75 ,'css' => !empty($_POST['css']) ? $_POST['css'] : '' //textarea .ab-item { display: none; } 76 76 ); 77 77 update_option("yabp", $yabp); … … 91 91 $input['hidePlugins'] = wp_filter_nohtml_kses( $input['hidePlugins'] ); 92 92 $input['custom'] = wp_filter_post_kses( $input['custom'] ); 93 $input['custom_pos'] = wp_filter_post_kses( $input['custom_pos'] ); 94 $input['hide'] = wp_filter_post_kses( $input['hide'] ); 95 $input['css'] = wp_filter_post_kses( $input['css'] ); 93 96 return $input; 94 97 } … … 150 153 <label><input type="checkbox" name="remove[newlink]" id="remove_newLink" value="hide" <?php if(!empty($yabp['remove']['newlink'])) checked( $yabp['remove']['newlink'], 'hide' ); ?>> <?php _e('New Link', 'yabp') ?></label><br> 151 154 <label><input type="checkbox" name="remove[myaccount]" id="remove_myaccount" value="hide" <?php if(!empty($yabp['remove']['myaccount'])) checked( $yabp['remove']['myaccount'], 'hide' ); ?>> <?php _e('My Account', 'yabp') ?></label><br> 155 <?php echo $afterRow ?> 156 157 <?php echo $beforeRow ?> 158 <label><?php _e('Auto hide', 'yabp')?>:</label> 159 <?php echo $betweenRow ?> 160 <label><input type="checkbox" name="hide" id="hide" value="1" <?php if(!empty($yabp['hide'])) checked( $yabp['hide'], 1 ); ?>> <?php _e('Auto hide', 'yabp') ?></label><br> 152 161 <?php echo $afterRow ?> 153 162 … … 331 340 <?php echo $afterRow ?> 332 341 333 <?php /*echo $beforeRow ?>342 <?php echo $beforeRow ?> 334 343 <?php _e('Custom Css', 'yabp')?></label> 335 344 <?php echo $betweenRow ?> 336 345 <textarea id="css" name="css" rows="5" cols="30"><?php echo stripslashes($yabp['css']); ?></textarea> 337 <?php echo $afterRow */?>346 <?php echo $afterRow ?> 338 347 339 348 <?php if(!$isOldWP) … … 386 395 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 387 396 388 echo '<style type="text/css">.fa,.far,.fas{font-weight:900!important;font-family:"Font Awesome 5 Free"!important;}.CustomLinks th,.CustomLinks td{padding:0!important}.del{cursor:pointer}#wp-admin-bar-plugins.group .ab-submenu,#wp-admin-bar-active .ab-submenu,#wp-admin-bar-deactive .ab-submenu{overflow:auto;max-height:90vh}#wpadminbar .load{animation:rotation 1s infinite linear;display:inline-block}@keyframes rotation{100%{transform:rotatey(360deg)}</style>'; 397 $hide = $yabp['hide'] == 1 ? '#wpadminbar{top:-30px;border-bottom:3px solid #0085BA}#wpadminbar:hover{top:0}html.wp-toolbar{padding-top:0!important}' : null; 398 $css = !empty($yabp['css']) ? $yabp['css'] : null; 399 400 echo '<style type="text/css">'.$hide.$css.'.fa,.far,.fas{font-weight:900!important;font-family:"Font Awesome 5 Free"!important;}.CustomLinks th,.CustomLinks td{padding:0!important}.del{cursor:pointer}#wp-admin-bar-plugins.group .ab-submenu,#wp-admin-bar-active .ab-submenu,#wp-admin-bar-deactive .ab-submenu{overflow:auto;max-height:90vh}#wpadminbar .load{animation:rotation 1s infinite linear;display:inline-block}@keyframes rotation{100%{transform:rotatey(360deg)}</style>'; 389 401 390 402 $all_plugins = get_plugins(); //error_log( print_r( $all_plugins, true ) ); -
wp-admin-bar-control/trunk/readme.txt
r2058859 r2064136 7 7 Tags: admin, admin bar, hidden, plugin, plugins, switch 8 8 Requires at least: 3.3 9 Tested up to: 5. 910 Stable tag: 0.9. 19 Tested up to: 5.1.1 10 Stable tag: 0.9.2 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 0.9.2 = 47 * Added "Auto hide" 48 * Added "Custom CSS" 49 46 50 = 0.9.1 = 47 51 * Fix one bug … … 61 65 * Bar Icons color 62 66 * Dynamically change colors 63 * Add support Wordpress 567 * Added support Wordpress 5 64 68 65 69 = 0.5 = -
wp-admin-bar-control/trunk/wp-admin-bar-control.php
r2058828 r2064136 3 3 Plugin Name: WP Admin Bar Control 4 4 Description: Style Admin Bar. Add Plugins list to your Admin Bar. Activate and Deactivate plugins without page reload and moving to plugins page. 5 Version: 0.9. 15 Version: 0.9.2 6 6 Author: Alex Egorov 7 7 Author URI: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLHFMF373Z9GG&source=url
Note: See TracChangeset
for help on using the changeset viewer.