@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Admin Page Framework |
|
| 4 | - * |
|
| 5 | - * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | - * Copyright (c) 2013-2015 Michael Uno; Licensed MIT |
|
| 7 | - * |
|
| 8 | - */ |
|
| 3 | + * Admin Page Framework |
|
| 4 | + * |
|
| 5 | + * http://en.michaeluno.jp/admin-page-framework/ |
|
| 6 | + * Copyright (c) 2013-2015 Michael Uno; Licensed MIT |
|
| 7 | + * |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Provides JavaScript utility scripts. |
@@ -404,12 +404,12 @@ discard block |
||
| 404 | 404 | |
| 405 | 405 | |
| 406 | 406 | /** |
| 407 | - * Stores the set container IDs to prevent multiple calls. |
|
| 408 | - * |
|
| 409 | - * Collapsible and tabbed sections can call this method multiple times with the same container ID. |
|
| 410 | - * |
|
| 411 | - * @since 3.4.0 |
|
| 412 | - */ |
|
| 407 | + * Stores the set container IDs to prevent multiple calls. |
|
| 408 | + * |
|
| 409 | + * Collapsible and tabbed sections can call this method multiple times with the same container ID. |
|
| 410 | + * |
|
| 411 | + * @since 3.4.0 |
|
| 412 | + */ |
|
| 413 | 413 | static private $_aSetContainerIDsForRepeatableSections = array(); |
| 414 | 414 | /** |
| 415 | 415 | * Returns the enabler script of repeatable sections. |
@@ -16,15 +16,15 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | class AdminPageFrameworkLoader_Registry_Base { |
| 18 | 18 | |
| 19 | - const VERSION = '3.7.0b24'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!! |
|
| 20 | - const NAME = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing. |
|
| 19 | + const VERSION = '3.7.0b24'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!! |
|
| 20 | + const NAME = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing. |
|
| 21 | 21 | const SHORTNAME = 'Admin Page Framework'; // used for a menu title etc. |
| 22 | - const DESCRIPTION = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.'; |
|
| 23 | - const URI = 'http://en.michaeluno.jp/'; |
|
| 24 | - const AUTHOR = 'miunosoft (Michael Uno)'; |
|
| 25 | - const AUTHOR_URI = 'http://en.michaeluno.jp/'; |
|
| 26 | - const COPYRIGHT = 'Copyright (c) 2015, Michael Uno'; |
|
| 27 | - const LICENSE = 'GPL v2 or later'; |
|
| 22 | + const DESCRIPTION = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.'; |
|
| 23 | + const URI = 'http://en.michaeluno.jp/'; |
|
| 24 | + const AUTHOR = 'miunosoft (Michael Uno)'; |
|
| 25 | + const AUTHOR_URI = 'http://en.michaeluno.jp/'; |
|
| 26 | + const COPYRIGHT = 'Copyright (c) 2015, Michael Uno'; |
|
| 27 | + const LICENSE = 'GPL v2 or later'; |
|
| 28 | 28 | const CONTRIBUTORS = ''; |
| 29 | 29 | |
| 30 | 30 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @remark This is also accessed from `uninstall.php` so do not remove. |
| 56 | 56 | * @remark Do not exceed 8 characters as a transient name allows 45 characters or less ( 40 for site transients ) so that md5 (32 characters) can be added. |
| 57 | 57 | */ |
| 58 | - const TRANSIENT_PREFIX = 'APFL_'; |
|
| 58 | + const TRANSIENT_PREFIX = 'APFL_'; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * The hook slug used for the prefix of action and filter hook names. |
@@ -70,12 +70,12 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * These will be accessed from the bootstrap script. |
| 72 | 72 | */ |
| 73 | - const TEXT_DOMAIN = 'admin-page-framework-loader'; |
|
| 74 | - const TEXT_DOMAIN_PATH = '/language'; |
|
| 73 | + const TEXT_DOMAIN = 'admin-page-framework-loader'; |
|
| 74 | + const TEXT_DOMAIN_PATH = '/language'; |
|
| 75 | 75 | |
| 76 | - // These properties will be defined in the setUp() method. |
|
| 77 | - static public $sFilePath = ''; |
|
| 78 | - static public $sDirPath = ''; |
|
| 76 | + // These properties will be defined in the setUp() method. |
|
| 77 | + static public $sFilePath = ''; |
|
| 78 | + static public $sDirPath = ''; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Requirements. |
@@ -136,30 +136,30 @@ discard block |
||
| 136 | 136 | static public $aTaxonomies = array( |
| 137 | 137 | ); |
| 138 | 138 | |
| 139 | - /** |
|
| 140 | - * Sets up static properties. |
|
| 139 | + /** |
|
| 140 | + * Sets up static properties. |
|
| 141 | 141 | * @return void |
| 142 | - */ |
|
| 143 | - static public function setUp( $sPluginFilePath=null ) { |
|
| 142 | + */ |
|
| 143 | + static public function setUp( $sPluginFilePath=null ) { |
|
| 144 | 144 | |
| 145 | - self::$sFilePath = $sPluginFilePath ? $sPluginFilePath : __FILE__; |
|
| 146 | - self::$sDirPath = dirname( self::$sFilePath ); |
|
| 145 | + self::$sFilePath = $sPluginFilePath ? $sPluginFilePath : __FILE__; |
|
| 146 | + self::$sDirPath = dirname( self::$sFilePath ); |
|
| 147 | 147 | |
| 148 | - } |
|
| 148 | + } |
|
| 149 | 149 | |
| 150 | - /** |
|
| 151 | - * Returns the URL with the given relative path to the plugin path. |
|
| 152 | - * |
|
| 153 | - * <h3>Example</h3> |
|
| 150 | + /** |
|
| 151 | + * Returns the URL with the given relative path to the plugin path. |
|
| 152 | + * |
|
| 153 | + * <h3>Example</h3> |
|
| 154 | 154 | * <code> |
| 155 | 155 | * AdminPageFrameworkLoader_Registry::getPluginURL( 'asset/css/meta_box.css' ); |
| 156 | 156 | * </code> |
| 157 | 157 | * @since 3.5.0 |
| 158 | 158 | * @return string |
| 159 | - */ |
|
| 160 | - public static function getPluginURL( $sRelativePath='' ) { |
|
| 161 | - return plugins_url( $sRelativePath, self::$sFilePath ); |
|
| 162 | - } |
|
| 159 | + */ |
|
| 160 | + public static function getPluginURL( $sRelativePath='' ) { |
|
| 161 | + return plugins_url( $sRelativePath, self::$sFilePath ); |
|
| 162 | + } |
|
| 163 | 163 | |
| 164 | 164 | /** |
| 165 | 165 | * Returns the information of this class. |