WordPress.org

Plugin Directory

Changeset 434905


Ignore:
Timestamp:
09/07/11 21:34:56 (3 years ago)
Author:
GaryJ
Message:

Improved strings for translations, add support for three themes, improved readme.

Location:
genesis-admin-bar-plus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • genesis-admin-bar-plus/trunk/genesis-admin-bar-plus.php

    r428941 r434905  
    44 * 
    55 * @package GenesisAdminBarPlus 
    6  * @author Gary Jones 
     6 * @author  Gary Jones 
    77 * 
    88 * Plugin Name: Genesis Admin Bar Plus 
    9  * Version: 1.2.4 
    10  * Plugin URI: http://code.garyjones.co.uk/plugins/genesis-admin-bar-plus/ 
     9 * Version:     1.2.4 
     10 * Plugin URI:  http://code.garyjones.co.uk/plugins/genesis-admin-bar-plus/ 
    1111 * Description: The plugin adds resources links related the <a href="http://genesis-theme-framework.com/">Genesis Theme</a> to the admin bar. It is a complete rewrite, effectively forked from <a href="http://profiles.wordpress.org/users/DeFries/">DeFries</a>' <a href="http://wordpress.org/extend/plugins/genesis-admin-bar-addition/">Genesis Admin Bar Addition</a>. See the readme for how to add specific support boards and other items to the menu. 
    12  * Author: Gary Jones 
    13  * Author URI: http://garyjones.co.uk/ 
    14  * License: GPLv3 
     12 * Author:      Gary Jones 
     13 * Author URI:  http://garyjones.co.uk/ 
     14 * License:     GPLv3 
    1515 */ 
    1616 
     
    7878     * 
    7979     * @since 1.0 
    80      * @link http://core.trac.wordpress.org/attachment/ticket/16149/query-standard-format-posts.php 
    81      * @link http://twitter.com/#!/markjaquith/status/66862769030438912 
    82      * 
    83      * @var Genesis_Admin_Bar_Plus 
     80     * @link  http://core.trac.wordpress.org/attachment/ticket/16149/query-standard-format-posts.php 
     81     * @link  http://twitter.com/#!/markjaquith/status/66862769030438912 
     82     * 
     83     * @var   Genesis_Admin_Bar_Plus 
    8484     */ 
    8585    static $instance; 
     
    265265            $menu->add_item( 'settings', array( 
    266266                'parent'   => $this->genesis, 
    267                 'title'    => __( 'Settings', 'genesis' ), 
     267                'title'    => __( 'Settings', $this->domain ), 
    268268                'href'     => is_admin() ? menu_page_url( 'genesis', false ) : admin_url( add_query_arg( 'page', 'genesis', 'admin.php' ) ), 
    269269                'position' => 40, 
     
    274274            $menu->add_item( 'theme-settings', array( 
    275275                'parent'   => $this->settings, 
    276                 'title'    => __( 'Theme Settings', 'genesis' ), 
     276                'title'    => __( 'Theme Settings', $this->domain ), 
    277277                'href'     => is_admin() ? menu_page_url( 'genesis', false ) : admin_url( add_query_arg( 'page', 'genesis', 'admin.php' ) ), 
    278278                'position' => 10, 
     
    281281            $menu->add_item( 'seo-settings', array( 
    282282                'parent'   => $this->settings, 
    283                 'title'    => __( 'SEO Settings', 'genesis' ), 
     283                'title'    => __( 'SEO Settings', $this->domain ), 
    284284                'href'     => is_admin() ? menu_page_url( 'seo-settings', false ) : admin_url( add_query_arg( 'page', 'seo-settings', 'admin.php' ) ), 
    285285                'position' => 20, 
     
    291291                $menu->add_item( 'design-settings', array( 
    292292                    'parent'   => $this->settings, 
    293                     'title'    => __( 'Design Settings', PROSE_DOMAIN ), 
     293                    'title'    => __( 'Design Settings', $this->domain ), 
    294294                    'href'     => is_admin() ? menu_page_url( 'design-settings', false ) : admin_url( add_query_arg( 'page', 'design-settings', 'admin.php' ) ), 
    295295                    'position' => 30, 
     
    377377            } 
    378378 
     379            // No Genesis Tabs, as it has no settings page. 
     380 
    379381            do_action( 'gabp_menu_items', $menu, $this->prefix, $this->genesis, $this->support, $this->dev, $this->studiopress, $this->settings, $this->faqs ); 
    380382        } 
     
    386388     * Recursive function. Private. 
    387389     * 
    388      * @since 1.1 
    389      * 
    390      * @param string $id Menu item ID 
    391      * @param array $menu_items Menu item arguments 
     390     * @since  1.1 
     391     * 
     392     * @param  string $id Menu item ID 
     393     * @param  array $menu_items Menu item arguments 
    392394     * @return array 
    393395     */ 
     
    434436     * 
    435437     * @since 1.0 
    436      * @todo Try and find some way of sorting children after parent ID first 
     438     * @todo  Try and find some way of sorting children after parent ID first 
    437439     */ 
    438440    function _sort( $a, $b ) { 
     
    455457     * 
    456458     * @since 1.0 
    457      * @uses Genesis_Admin_Bar_Plus::sort() Helper function for uasort() 
    458      * @uses Genesis_Admin_Bar_Plus_Menu::get_items() Return default menu items 
    459      * @uses validate_child_item_position() Pre-sort menu items 
     459     * @uses  Genesis_Admin_Bar_Plus::sort() Helper function for uasort() 
     460     * @uses  Genesis_Admin_Bar_Plus_Menu::get_items() Return default menu items 
     461     * @uses  validate_child_item_position() Pre-sort menu items 
    460462     * 
    461463     * @global WP_Admin_Bar $wp_admin_bar 
     
    506508     *   add_theme_support( 'gabp-support-pretty-young-thing' ); 
    507509     * 
    508      * @since 1.0 
     510     * @since  1.0 
    509511     * 
    510512     * @return array Array of support boards. 
     
    533535            'fabric'             => array( __( 'Family Tree Child Theme', $this->domain ), 173 ), 
    534536            'family-tree'        => array( __( 'Family Tree Child Theme', $this->domain ), 100 ), 
     537            'fashionista'        => array( __( 'Fashionista Child Theme', $this->domain ), 185 ), 
    535538            'focus'              => array( __( 'Focus Child Theme', $this->domain ), 167 ), 
    536539            'freelance'          => array( __( 'Freelance Child Theme', $this->domain ), 121 ), 
     
    547550            'minimum'            => array( __( 'Minimum Child Theme', $this->domain ), 172 ), 
    548551            'mocha'              => array( __( 'Mocha Child Theme', $this->domain ), 80 ), 
     552            'modern-blogger'     => array( __( 'Modern Blogger Child Theme', $this->domain ), 187 ), 
    549553            'news'               => array( __( 'News Child Theme', $this->domain ), 118 ), 
    550554            'nitrous'            => array( __( 'Nitrous Child Theme', $this->domain ), 183 ), 
     
    555559            'prose'              => array( __( 'Prose Child Theme', $this->domain ), 147 ), 
    556560            'serenity'           => array( __( 'Serenity Child Theme', $this->domain ), 84 ), 
     561            'scribble'           => array( __( 'Scribble Child Theme', $this->domain ), 186 ), 
    557562            'sleek'              => array( __( 'Sleek Child Theme', $this->domain ), 132 ), 
    558563            'social-eyes'        => array( __( 'Social Eyes Child Theme', $this->domain ), 165 ), 
     
    573578     * returns false. 
    574579     * 
    575      * @since 1.0 
    576      * 
    577      * @param string $name Lowercase, hyphen-spaced theme name, e.g. family-tree. 
     580     * @since  1.0 
     581     * 
     582     * @param  string $name Lowercase, hyphen-spaced theme name, e.g. family-tree. 
    578583     * @return integer|boolean Support board ID, or false if board not found. 
    579584     */ 
     
    664669     * Can be activated by uncommenting the line near the top of this file. 
    665670     * 
    666      * @since 1.1 
     671     * @since  1.1 
    667672     * 
    668673     * @return boolean 
     
    709714     * Retrieve single menu item. 
    710715     * 
    711      * @since 1.1 
    712      * 
    713      * @param string $id Menu item identifier 
     716     * @since  1.1 
     717     * 
     718     * @param  string $id Menu item identifier 
    714719     * @return array Menu item arguments 
    715720     */ 
     
    753758     * Return the array of menu items. Public. 
    754759     * 
    755      * @since 1.0 
     760     * @since  1.0 
    756761     * 
    757762     * @return array All menu items 
  • genesis-admin-bar-plus/trunk/readme.txt

    r428941 r434905  
    77Stable tag: 1.2.4 
    88 
    9 A conceptual fork of the Genesis Admin Bar Addition plugin, re-written from scratch, adding new features. 
     9Adds resource links related to the Genesis Framework to the admin bar. 
    1010 
    1111== Description == 
    1212 
    13 The plugin adds resources links related the <a href="http://genesis-theme-framework.com/">Genesis Theme</a> to the admin bar. 
    14  
    15 * Plugin completely re-written as a class to remove function pollution from the global scope. 
     13This plugin adds resources links related to the <a href="http://genesis-theme-framework.com/">Genesis Framework</a> to the admin bar. 
     14 
     15These resources include direct links to StudioPress support forums for each theme, quick access to Genesis Theme and SEO settings pages, quick access to Genesis-related plugin settings pages (for those that are active), and links to useful tutorial pages for how to get the most out of Genesis. 
     16 
     17The plugin is built with theme and plugin developers in mind, as they can add support for their product with only a few lines of code, giving their users instant access to the right support board, a link to *their* website etc. 
     18 
    1619* Adds support for menu item positioning, so custom entries can be added anywhere, and not just as the final items. 
    17 * Adds *opens in a new window* non-image indicator for modern browsers. 
    1820* Easy addition of Support board links via single lines in theme `functions.php`. 
     21 
     22This plugin is conceptual fork of the Genesis Admin Bar Addition plugin, re-written from scratch, adding new features. 
    1923 
    2024== Installation == 
     
    3236= How do I add a link to a certain support board? = 
    3337 
    34 The plugin currently recognises all of the child theme support boards, Genesis, the translations board, the general plugins board and the GenesisConnect board. 
     38The plugin currently recognises all of the child theme support boards, <a href="http://genesis-theme-framework.com/">Genesis</a>, the translations board, the general plugins board and the GenesisConnect board. 
    3539See the *Add Support Boards* section for an example of how to add these to the Support menu. 
    3640 
     
    3842 
    3943= What Settings links are supported? = 
    40  
    41 * Design Settings (for Prose Theme) 
    42 * GenesisConnect 
    43 * Genesis Simple Breadcrumbs 
    44 * Genesis Slider 
    45 * Simple Edits 
    46 * Simple Hooks 
    47 * Simple Sidebars 
    48 * Simple URLs 
     44The following theme and plugins, when active, have a link to their settings page added to the Settings submenu: 
     45 
     46* Design Settings (for [Prose Theme](http://gmj.to/prose)) 
     47* [GenesisConnect](http://gmj.to/genesisconnect) 
     48* [Genesis Simple Breadcrumbs](http://wordpress.org/extend/plugins/genesis-simple-breadcrumbs/) 
     49* [Genesis Slider](http://www.studiopress.com/plugins/genesis-slider) 
     50* [Genesis Simple Edits](http://www.studiopress.com/plugins/simple-edits) 
     51* [Genesis Simple Hooks](http://www.studiopress.com/plugins/simple-hooks) 
     52* [Genesis Simple Sidebars](http://www.studiopress.com/plugins/simple-sidebars) 
     53* [Simple URLs](http://www.studiopress.com/plugins/simple-urls) 
    4954 
    5055A plugin author can add support for their own settings page link. See the *Add Custom Items* section. 
     56 
     57Genesis Simple Menus and Genesis Tabs can't be supported as they have no individual settings pages. 
    5158 
    5259== Screenshots == 
     
    5966 
    6067== Changelog == 
     68 
     69= 1.2.5 = 
     70* Changed a few strings to use the plugin text domain to avoid conflicts. 
     71* Added support for Fashionista, Modern Blogger (both Marketplace) and Scribble themes. 
     72* Improved readme descriptions. 
    6173 
    6274= 1.2.4 = 
     
    113125 
    114126== Upgrade Notice == 
     127 
     128= 1.2.5 = 
     129Minor changes - Improved strings for translations, add support for three themes, improved readme. 
    115130 
    116131= 1.2.4 = 
Note: See TracChangeset for help on using the changeset viewer.