WordPress.org

Plugin Directory

Changeset 1507100


Ignore:
Timestamp:
10/03/16 06:04:51 (13 months ago)
Author:
aaronrutley
Message:

v2.3.0

Location:
minimal-admin/trunk
Files:
9 added
3 edited

Legend:

Unmodified
Added
Removed
  • minimal-admin/trunk/assets/css/minimal-admin.css

    r1221355 r1507100  
    1 #adminmenu{margin-top:0}#wpadminbar{background:#16181B}#wp-admin-bar-comments,#wp-admin-bar-new-content,#wp-admin-bar-wpseo-menu,#wp-admin-bar-all-in-one-seo-pack-pro,#wp-admin-bar-wp-rocket,#wp-admin-bar-updates,#wpadminbar li#wp-admin-bar-wp-logo.hover>.ab-sub-wrapper,li#wp-admin-bar-site-name.menupop .ab-sub-wrapper,#collapse-menu,.wp-menu-separator,.column-wpseo-score,.column-wpseo-title,.column-wpseo-metadesc,.column-wpseo-focuskw,.column-wpseo-score,.column-seotitle,.column-seodesc,.column-seokeywords,.menu-icon-dashboard,#wpfooter,.wp-list-table.widefat tfoot,.search-box,span.inline,.wp-list-table.widefat th.check-column,.wp-list-table.widefat td.check-column,.wp-list-table.widefat .locked-info{display:none}.wp-list-table.widefat th#title{display:inline-block;visibility:visible;width:100%}.wp-list-table.widefat td.page-title{visibility:visible;padding:0;height:30px;overflow:hidden;display:inline-block;width:100%}.wp-list-table.widefat td.page-title strong{margin-top:0;padding-left:10px;line-height:30px;display:inline-block}.wp-list-table.widefat.posts .colspanchange,.wp-list-table.widefat.pages .colspanchange{visibility:visible;padding:0 0 0 10px;height:30px;line-height:30px;overflow:hidden;display:inline-block;width:100% !important}.wp-list-table.widefat.posts .row-actions,.wp-list-table.widefat.pages .row-actions{padding:0;margin:0;display:inline-block;float:right;visibility:hidden;line-height:30px;padding-right:10px}.wp-list-table.widefat.posts tr:hover .row-actions,.wp-list-table.widefat.pages tr:hover .row-actions{visibility:visible}.tablenav,.tablenav .actions{display:none}.tablenav.bottom{display:block}.wp-list-table.widefat.plugins .row-actions-visible,.wp-list-table.widefat.plugins .row-actions.visible{display:inline;float:right;visibility:visible;line-height:30px;padding:0}th.asc a:focus span.sorting-indicator,th.asc:hover span.sorting-indicator,th.desc a:focus span.sorting-indicator,th.desc:hover span.sorting-indicator,th.sorted .sorting-indicator{display:none}.wp-list-table .toggle-row{display:none}.wp-list-table.widefat.plugins th#name{display:block;visibility:visible}.wp-list-table.widefat.plugins .column-description{display:none}.wp-list-table.widefat.plugins td.plugin-title{visibility:visible;padding:0;height:30px;overflow:hidden;width:100% !important}.wp-list-table.widefat.plugins td.plugin-title strong{margin-top:0;padding-left:10px;line-height:30px;display:inline;float:left}.plugins .active.update td,.plugins .active.update th,tr.active.update+tr.plugin-update-tr .plugin-update{background-color:#F0F5F7}tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message,tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message{background-color:#E9EEF0}.plugin-update-tr .update-message{margin:0}.plugin-install-php .tablenav{display:block}tr.inactive td.plugin-title.column-primary{background-color:#FFF}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid #e1e1e1}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:none;-webkit-box-shadow:none;box-shadow:none}#adminmenu .awaiting-mod,#adminmenu .update-plugins{background-color:#0073aa}#acf-col-left .tablenav.bottom,.column-fields,.column-acf-fg-count,#fields{display:none}#acf-cols #title,#acf-cols .title{display:block;width:auto}th#acf-fg-status{display:none}#acf-field-group-wrap .wp-list-table.widefat td.page-title{display:table-cell}#acf-field-group-wrap .wp-list-table td.column-acf-fg-status{width:10%;display:table-cell}th.sortable a,th.sorted a{padding-top:9px}.wp-list-table .ui-sortable-placeholder{height:30px !important;background:#e5e5e5}.wp-list-table.widefat.pages tr.iedit{width:100% !important;height:32px !important;display:block}.wp-list-table.widefat.pages td.page-title strong span.expand_link a{margin-top:6px;line-height:16px}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:none}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:none}#wpadminbar ul#wp-admin-bar-root-default>li{margin:0}.acf-columns-2{margin-right:0 !important}.acf-column-2{display:none} 
     1#adminmenu{margin-top:0}#wpadminbar{background:#16181B}#wp-admin-bar-comments,#wp-admin-bar-new-content,#wp-admin-bar-wpseo-menu,#wp-admin-bar-all-in-one-seo-pack-pro,#wp-admin-bar-wp-rocket,#wp-admin-bar-updates,#wp-admin-bar-about,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,li#wp-admin-bar-site-name.menupop .ab-sub-wrapper,#collapse-menu,.wp-menu-separator,#wp-admin-bar-view,.column-wpseo-score,.column-wpseo-title,.column-wpseo-metadesc,.column-wpseo-focuskw,.column-wpseo-score,.column-seotitle,.column-seodesc,.column-seokeywords,.menu-icon-dashboard,#wpfooter,.wp-list-table.widefat tfoot,.search-box,span.inline,.wp-list-table .column-categories,.wp-list-table .column-rel,.wp-list-table .column-visible,.wp-list-table .column-rating,.wp-list-table .column-url,.wp-list-table.widefat th.check-column,.wp-list-table.widefat td.check-column,.wp-list-table.widefat .locked-info{display:none}#wpadminbar #wp-admin-bar-wp-logo-default{padding:0}.plugins .plugin-update-tr .plugin-update{box-shadow:none !important}.wp-core-ui .button,.wp-core-ui .button-secondary,.postbox,input[type=text],input[type=search],input[type=radio],input[type=tel],input[type=time],input[type=url],input[type=week],input[type=password],input[type=checkbox],input[type=color],input[type=date],input[type=datetime],input[type=datetime-local],input[type=email],input[type=month],input[type=number],select,textarea{box-shadow:none !important}.postbox,.notice,div.error,div.updated,#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.imgedit-group,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{box-shadow:none !important}.wp-core-ui .button,.wp-core-ui .button-primary,.wp-core-ui .button-secondary,.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{border-radius:0}.js .meta-box-sortables .postbox .toggle-indicator:before,.js .sidebar-name .sidebar-name-arrow:before{content:"";background:url("../images/icon--up.svg");background-size:10px;width:20px;height:20px;background-repeat:no-repeat;background-position:center center}.js .postbox .handlediv:focus .toggle-indicator:before{box-shadow:none !important}.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before,.js .widgets-holder-wrap.closed .sidebar-name-arrow:before{content:"";background:url("../images/icon--down.svg");background-size:10px;background-repeat:no-repeat;background-position:center}.postbox.closed .hndle{border-bottom:1px !important}.wp-list-table.widefat th#title{display:inline-block;visibility:visible;width:100%}.wp-list-table.widefat td.page-title,.wp-list-table.widefat td.name{visibility:visible;padding:0;height:30px;overflow:hidden;display:inline-block;width:100%}.wp-list-table.widefat td.page-title strong,.wp-list-table.widefat td.name strong{margin-top:0;padding-left:10px;line-height:30px;display:inline-block}.wp-list-table.widefat.posts .colspanchange,.wp-list-table.widefat.pages .colspanchange,.wp-list-table.widefat.bookmarks .colspanchange{visibility:visible;padding:0 0 0 10px;height:30px;line-height:30px;overflow:hidden;display:inline-block;width:100% !important}.wp-list-table.widefat.posts .row-actions,.wp-list-table.widefat.pages .row-actions,.wp-list-table.widefat.bookmarks .row-actions{padding:0;margin:0;display:inline-block;float:right;visibility:hidden;line-height:30px;padding-right:10px}.wp-list-table.widefat.posts tr:hover .row-actions,.wp-list-table.widefat.pages tr:hover .row-actions,.wp-list-table.widefat.bookmarks tr:hover .row-actions{visibility:visible}.tablenav,.tablenav .actions{display:none}.tablenav.bottom{display:block}.wp-list-table.widefat.plugins .row-actions-visible,.wp-list-table.widefat.plugins .row-actions.visible{display:inline;float:right;visibility:visible;line-height:30px;padding:0}th.asc a:focus span.sorting-indicator,th.asc:hover span.sorting-indicator,th.desc a:focus span.sorting-indicator,th.desc:hover span.sorting-indicator,th.sorted .sorting-indicator{display:none}.wp-list-table .toggle-row{display:none}.wp-list-table.widefat.bookmarks .column-name{position:relative}.wp-list-table.widefat.bookmarks .row-actions{position:absolute;top:0;right:0}.wp-list-table.widefat.plugins th#name{display:block;visibility:visible}.wp-list-table.widefat.plugins .column-description{display:none}.wp-list-table.widefat.plugins td.plugin-title{visibility:visible;padding:0;height:30px;overflow:hidden;width:100% !important}.wp-list-table.widefat.plugins td.plugin-title strong{margin-top:0;padding-left:10px;line-height:30px;display:inline;float:left}.plugins .active.update td,.plugins .active.update th,tr.active.update+tr.plugin-update-tr .plugin-update{background-color:#F0F5F7}tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message,tr.active+tr.plugin-update-tr:not(.updated) .plugin-update .update-message{background-color:#E9EEF0}.plugin-update-tr .update-message{margin:0}.plugin-install-php .tablenav{display:block}tr.inactive td.plugin-title.column-primary{background-color:#FFF}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid #e1e1e1}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:none;-webkit-box-shadow:none;box-shadow:none}#adminmenu .awaiting-mod,#adminmenu .update-plugins{background-color:#0073aa}[data-pseudo-content]::before,code[class*="language-"],pre[class*="language-"]{font-family:'operator mono'}#wpseo_meta{overflow:scroll}#misc-publishing-actions .yoast-seo-score{display:none}body.taxonomy-category .column-wpseo_score,body.taxonomy-category .column-wpseo_score_readability{display:none}.acf-columns-2{margin-right:0 !important}.acf-column-2{display:none}.column-acf-fg-count{display:none}th#acf-fg-status{display:none !important}#acf-field-group-wrap .wp-list-table .column-acf-fg-status{position:absolute;right:23px;display:inline-block;float:right;width:50px !important;padding-top:5px;padding-bottom:2px;padding-right:0}.acf-columns-2 .wp-list-table.widefat.pages .row-actions{padding-right:60px !important}.wp-list-table .ui-sortable-placeholder{height:30px !important;background:#e5e5e5}.wp-list-table.widefat.pages tr.iedit{width:100% !important;height:32px !important;display:block}.wp-list-table.widefat.pages td.page-title strong span.expand_link a{margin-top:6px;line-height:16px}.expand_link a{border:1px solid transparent !important;background-image:url(../images/icon--down.svg) !important;background-size:10px 10px !important;background-repeat:no-repeat !important;background-position:center center !important}.expand_link a:hover{background-image:url(../images/icon--down.svg) !important;border:1px solid #e5e5e5 !important}.expand_link a.minus{background-image:url(../images/icon--up.svg) !important}.expand_link a.minus:hover{background-image:url(../images/icon--up.svg) !important}.wp-admin #wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:none}#wpadminbar #wp-admin-bar-my-sites>.ab-item:before,#wpadminbar #wp-admin-bar-site-name>.ab-item:before{content:none}#wpadminbar ul#wp-admin-bar-root-default>li{margin:0}#major-publishing-actions #wpseo-score{display:none}.column-wpseo-score-readability{display:none} 
  • minimal-admin/trunk/minimal-admin.php

    r1221354 r1507100  
    44Plugin URI: http://www.minimaladmin.com/ 
    55Description: Very simple plugin to hide non essential wp-admin functionality. 
    6 Version: 2.2.0 
     6Version: 2.3.0 
    77Author: Aaron Rutley 
    88Author URI: http://www.aaronrutley.com/ 
     
    1111*/ 
    1212 
    13 /*  Copyright 2015 Aaron Rutley 
     13/*  Copyright 2016 Aaron Rutley 
    1414 
    1515    This program is free software; you can redistribute it and/or modify 
     
    3838        add_action('admin_head', array(&$this, 'optional_admin_styles')); 
    3939        add_action('admin_head', array(&$this, 'adminbar_target_blank')); 
    40  
     40        add_action('admin_init', array(&$this, 'check_local_dev')); 
     41        add_action('wp_before_admin_bar_render', array(&$this, 'ma_display_local_dev_links')); 
    4142 
    4243        add_filter('manage_pages_columns', array(&$this, 'custom_columns')); 
     
    6768        wp_register_style('minimal-admin-styles',WP_PLUGIN_URL.'/minimal-admin/assets/css/minimal-admin.css'); 
    6869        wp_enqueue_style('minimal-admin-styles'); 
     70    } 
     71 
     72 
     73    // function to check if we're on the local dev site 
     74    function check_local_dev(){ 
     75 
     76        // if local URL is defined 
     77        if (defined('LOCAL_URL')) { 
     78 
     79            // define current site url 
     80            $current_site_url = get_site_url(); 
     81 
     82            // if current site url and local url match 
     83            if ($current_site_url == LOCAL_URL){ 
     84 
     85                // call the local dev css function on the admin_head action 
     86                add_action('admin_head', array(&$this, 'local_dev_css')); 
     87 
     88            } 
     89 
     90        } 
     91 
     92    } 
     93 
     94    // Local dev CSS to style admin bar 
     95    function local_dev_css() { ?> 
     96        <style> 
     97        #wpadminbar {background:#005781 !important;}#adminmenu{margin-top:0 !important;} 
     98        #wpadminbar .ab-top-menu>li.hover>.ab-item, #wpadminbar .ab-top-menu>li:hover>.ab-item, #wpadminbar .ab-top-menu>li>.ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus { background:#0073AA !important; color: #FFF !important;} .ab-sub-wrapper { background:#0073AA !important; } 
     99        .local-dev__button a img { max-width:20px; max-height:20px; padding:6px 0 !important; display: inline-block;  } 
     100        #wp-admin-bar-wp-logo-default { padding:10px 0 !important;} 
     101        </style> 
     102    <?php 
     103    } 
     104 
     105 
     106    function ma_display_local_dev_links() { 
     107 
     108        // check if we've set some links 
     109        if (function_exists('minimal_admin_project_links')) { 
     110 
     111            // wp admin bar global 
     112            global $wp_admin_bar; 
     113 
     114            // get the links array from a function 
     115            $minimal_admin_links = minimal_admin_project_links(); 
     116 
     117            // for each link 
     118            foreach ($minimal_admin_links as $link) { 
     119                // add an item to the menu bar 
     120                $wp_admin_bar->add_menu( array( 
     121                    'parent' => 'wp-logo', // set the parent to the WP logo 
     122                    'id'    => $link[0], // set the id to the name of the link 
     123                    'title' => $link[0], // the the title to the name of the link 
     124                    'href'  => $link[1], // set the href to the url for the link 
     125                    'meta' => array( 'html' => '', 'class' => '', 'onclick' => '', 'target' => '_blank', 'title' => $link[0] ) 
     126                )); 
     127            } 
     128        } 
    69129    } 
    70130 
  • minimal-admin/trunk/readme.txt

    r1221354 r1507100  
    33Tags: admin,minimal,dashboard,cms 
    44Requires at least: 3.4.2 
    5 Tested up to: 4.3.0 
    6 Stable tag: 2.2.0 
     5Tested up to: 4.6.0 
     6Stable tag: 2.3.0 
    77License: GPL2+ 
    88 
     
    1818* Hides non essential menu items & separators 
    1919* Hides the WordPress admin bar (only front end) 
    20 * Site link in the admin bar now opens in new window 
     20* Site link in the admin bar opens in new window 
     21* Local Development - admin bar colour change 
     22* Local Development - project quicklinks 
    2123 
    2224= Options to: = 
     
    2527 
    2628= Works well with the following plugins: = 
    27 * WordPress SEO: Hides SEO columns from the edit page / edit posts screens 
     29* Yoast SEO: Hides SEO columns from the edit page / edit posts screens 
    2830* Gravity Forms: Grants editor (client) access to manage Gravity Forms 
    2931* Advanced Custom Fields Pro : Minimal field group listings 
     
    3436== Installation == 
    3537 
    36 Upload Minimal Admin to /wp-content/plugins/ 
    37 Activate the Plugin via the plugins menu 
     381. Upload `Minimal Admin` to `/wp-content/plugins/` 
     392. Activate the Plugin via the plugins menu 
     40 
     41 
     42== FAQs == 
     43 
     44= How do I enable the quicklinks dropdown ? = 
     45 
     46So your project links appear in the quicklinks dropdown under the W icon in the admin bar you need to: 
     47 
     48First, define your local URL in wp-config.php or functions.php as this only works on local. 
     49 
     50``` 
     51define('LOCAL_URL', 'http://minimaladmin.dev'); 
     52``` 
     53 
     54Secondly, add a function similar to the following to your theme's functions.php 
     55 
     56``` 
     57function minimal_admin_project_links() { 
     58    $minimal_admin_project_links = array( 
     59        array("Local","http://localurl.com"), 
     60        array("Staging","http://stagingurl.com"), 
     61        array("Trello","http://trellourl.com"), 
     62        array("Git Repo","http://gitrepourl.com") 
     63    ); 
     64    return $minimal_admin_project_links; 
     65} 
     66``` 
    3867 
    3968== Screenshots == 
     
    4271 
    4372== Changelog == 
     73 
     74= 2.3.0 = 
     75* Local Development - Project quicklinks feature added 
     76* Local Development - Admin bar colour change 
     77* Minor CSS tweaks for Yoast SEO 3.4 
     78* Minor CSS tweaks for ACF Pro 
     79* Minor CSS tweaks for WP 4.6 
     80* SVG icons for Admin Collapse Sub Pages 
    4481 
    4582= 2.2.0 = 
     
    67104= 1.0.1 = 
    68105* Original Commit 
    69  
Note: See TracChangeset for help on using the changeset viewer.