Plugin Directory

Changeset 2064136


Ignore:
Timestamp:
04/06/2019 07:26:09 AM (7 years ago)
Author:
evilex
Message:

ver 0.9.2

Location:
wp-admin-bar-control/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-admin-bar-control/trunk/includes/admin.php

    r2058849 r2064136  
    4747      ,'custom' => array()
    4848      ,'custom_pos' => 0
    49       //,'mcss' => ''
    50         //,'css' => ''
     49      ,'hide' => 0
     50        ,'css' => ''
    5151    );
    5252    //update_option("yabp", $yabp);
     
    7272        ,'custom' => !empty($_POST['custom']) ? $_POST['custom'] : ''
    7373        ,'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; }
    7676      );
    7777      update_option("yabp", $yabp);
     
    9191      $input['hidePlugins'] = wp_filter_nohtml_kses( $input['hidePlugins'] );
    9292      $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'] );
    9396        return $input;
    9497    }
     
    150153          <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>
    151154          <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>
    152161        <?php echo $afterRow ?>
    153162
     
    331340        <?php echo $afterRow ?>
    332341
    333         <?php /*echo $beforeRow ?>
     342        <?php echo $beforeRow ?>
    334343          <?php _e('Custom Css', 'yabp')?></label>
    335344        <?php echo $betweenRow ?>
    336345           <textarea id="css" name="css" rows="5" cols="30"><?php echo stripslashes($yabp['css']); ?></textarea>
    337         <?php echo $afterRow*/ ?>
     346        <?php echo $afterRow ?>
    338347
    339348        <?php if(!$isOldWP)
     
    386395      require_once ABSPATH . 'wp-admin/includes/plugin.php';
    387396
    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>';
    389401
    390402    $all_plugins = get_plugins(); //error_log( print_r( $all_plugins, true ) );
  • wp-admin-bar-control/trunk/readme.txt

    r2058859 r2064136  
    77Tags: admin, admin bar, hidden, plugin, plugins, switch
    88Requires at least: 3.3
    9 Tested up to: 5.9
    10 Stable tag: 0.9.1
     9Tested up to: 5.1.1
     10Stable tag: 0.9.2
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444== Changelog ==
    4545
     46= 0.9.2 =
     47* Added "Auto hide"
     48* Added "Custom CSS"
     49
    4650= 0.9.1 =
    4751* Fix one bug
     
    6165* Bar Icons color
    6266* Dynamically change colors
    63 * Add support Wordpress 5
     67* Added support Wordpress 5
    6468
    6569= 0.5 =
  • wp-admin-bar-control/trunk/wp-admin-bar-control.php

    r2058828 r2064136  
    33  Plugin Name: WP Admin Bar Control
    44  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.1
     5    Version: 0.9.2
    66  Author: Alex Egorov
    77    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.