Changeset 926306
- Timestamp:
- 06/04/2014 09:36:10 AM (12 years ago)
- Location:
- custom-dashboard-welcome-panel-widget-sidebar/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
custom-dashboard-welcome-panel-widget-sidebar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-dashboard-welcome-panel-widget-sidebar/trunk/README.txt
r926187 r926306 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.9.1 7 Stable tag: 0. 27 Stable tag: 0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget. Inspired by and good for use with Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, and Enhanced Text Widget For completly "widgetizing" thewordpress admin.11 This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget. Inspired by Dashboard Widget Sidebar, Dashboard Notes, and Magic Widgets. Completly "widgetize" your wordpress admin. 12 12 13 13 == Description == 14 14 15 This plugin aims to merge development of frontend/backend wordpress themes and further the goal of really making wordpress a CMS and not just a blogging tool. Coming from Drupal, Wordpress is extremly frustrating when trying to build a back end theme. The wordpress backend needs to become more user friendly for theme developers who aren't coding experts. This small plugins goal is to contribute to that. When used with such plugins like Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, and Enhanced Text Widget admins are given complete control to build there admin interface in a very similar way that front end themes are build (BY USING WIDGETS). While there's really not that much too this plugin (as I'm not an expert coder myself), my hopes are that it will inspire better developers to take a more widget friendly approach to building admin interfaces. Building admin widgets gives us the opportunity to let designers take a stab at changing the administratoin interface. With such a large community the admin changes could have a lot more potential if we give designers and average users the ability to truely customize their entire site. 15 This plugin aims to merge development of frontend/backend wordpress themes and further the goal of really making wordpress a CMS and not just a blogging tool. Coming from Drupal, Wordpress is extremly frustrating when trying to build a back end theme. The wordpress backend needs to become more user friendly for theme developers who aren't coding experts. This small plugins goal is to contribute to that. When used with such plugins like Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, admins are given complete control to build there admin interface in a very similar way that front end themes are build (BY USING WIDGETS). 16 17 While there's really not that much too this plugin (as I'm not an expert coder myself), my hopes are that it will inspire better developers to take a more widget friendly approach to building admin interfaces. Building admin widgets gives us the opportunity to let designers take a stab at changing the administratoin interface. With such a large community the admin changes could have a lot more potential if we give designers and average users the ability to truely customize their entire site. 18 19 This plugin also adds a shortcode 'user' which lets you show and hide text in the welcome panel and thoughout your installation to different roles and capabilities. For example, you can add a text widget to the dashboard welcome panel widget like this: 20 21 [user capability="delete_posts"] This is only shown to users that have delete posts capability [/user] 22 [user capability="editor"] This is only shown to users that have editor capability [/user] 16 23 17 24 == Installation == … … 19 26 This section describes how to install the plugin and get it working. 20 27 21 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory 22 2. Activate the plugin through the 'Plugins' menu in WordPress 28 29 From your WordPress dashboard 30 31 1. Visit 'Plugins > Add New' 32 2. Search for 'Custom Dashboard Welcome Panel Widget Sidebar' 33 3. Install Custom Dashboard Welcome Panel Widget Sidebar 34 4. Activate Custom Dashboard Welcome Panel Widget Sidebar from your Plugins page. 35 5. Go to "Appearance --> Widgets" page @ 'http://www.example.com/wp-admin/widgets.php' 36 6. Add text widget or other widgets to new the Admin Dashboard Sidebar 37 7. All Done. Your New dashboard welcome panel will now show. 38 23 39 24 40 == Frequently Asked Questions == 41 42 = What widgets should I use in the new Admin Sidebar? = 43 44 Any widgets "should" work. However, if the registers scripts or styles for the frontend only then those will not show up in the admin interface. I reccomend using the text widget or better yet, do yourself a favor and install one or all of the following text widgets: 45 46 * https://wordpress.org/plugins/enhanced-text-widget (allows PHP, html, css, javascript, shortcodes, etc...) 47 * http://wordpress.org/plugins/wp-editor-widget/ (adds a rich text editor to the widgets) 48 * http://wordpress.org/plugins/spots/ (similar to wp-editor-widget excepts lets you manage from a custom post type which means it will import/export) 49 50 = Any other plugins/widgets that would work good in the welcome panel sidebar? = 51 52 * Shortcodes Ultimate - lets you add things like tabs (which is the main screenshot). 53 * Jonradio Shortcodes Anywhere or Everywhere - lets you add shortcodes virtually anywhere, although you can already add to text widget shortcodes with this plugin. 54 55 56 = This plugin is cool, but I want more. Are there any similar plugins to this? = 57 58 Yes! 59 60 * [Dashboard Notes](http://wordpress.org/plugins/dashboard-notes/ "Dashboard Notes") 61 * [Magic Widgets](http://wordpress.org/plugins/magic-widgets/ "Magic Widgets") 62 * [Dashboard Widget Sidebar](http://wordpress.org/plugins/dashboard-widget-sidebar/ "Dashboard Widget Sidebar") 63 64 = What's the point of this? = 65 66 Simple. To make the wordpress backend work more like the frontend. While this plugin merely consists of a few simple functions, I'm hoping it helps people to see the potential of editing the backend using widgets. As I discovered from Tochos Magic Widgets, changing the wordpress admin is as simple as adding widgets to different hook locations within the backend. 67 25 68 26 69 27 70 == Screenshots == 28 71 72 1. "Appearance --> Widgets" page @ 'http://www.example.com/wp-admin/widgets.php' 73 29 74 30 75 == Changelog == -
custom-dashboard-welcome-panel-widget-sidebar/trunk/custom-dashboard-welcome-panel-widget-sidebar.php
r926263 r926306 4 4 Plugin URI: http://wordpress.org/plugins/custom-dashboard-welcome-panel-widget-sidebar 5 5 Description: This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget. 6 Version: 0. 56 Version: 0.6 7 7 Author: Bryan Willis 8 8 Author Email: businesscandid@gmail.com … … 41 41 remove_action( 'welcome_panel', 'wp_welcome_panel' ); 42 42 }; 43 44 // Use shortcodes in text widgets. 45 add_filter('widget_text', 'do_shortcode'); 46 47 // User shortcodes in text widgets. 48 add_shortcode('user', 'brwacefghide'); 49 function brwacefghide($atts, $content = null) { 50 $defaults = array( 51 'role' => '', 52 'capability' => '' 53 ); 54 extract(shortcode_atts($defaults, $atts)); 55 $roles = explode(',', $role); 56 if (is_user_logged_in()) { 57 if (!empty($roles)) { 58 foreach($roles as $role) { 59 if (current_user_can($role)) 60 return $content; 61 } 62 }elseif (!empty($capability)) { 63 foreach($capability as $capability) { 64 if (current_user_can($capability)) 65 return $content; 66 } 67 } 68 } 69 } 70
Note: See TracChangeset
for help on using the changeset viewer.