@@ -42,8 +42,6 @@ discard block |
||
42 | 42 | * Sets up properties. |
43 | 43 | * @since 3.6.0 |
44 | 44 | * @since 3.7.0 Changed the parameter structure. |
45 | - * @param array|string $asArguments The content output or the tooltip argument array. |
|
46 | - * @param string $sTitleElementID Not used at the moment. |
|
47 | 45 | */ |
48 | 46 | public function __construct( /* $aArguments, $sTitleElementID */ ) { |
49 | 47 | |
@@ -170,6 +168,7 @@ discard block |
||
170 | 168 | |
171 | 169 | /** |
172 | 170 | * Generates HTML attributes of the specified element. |
171 | + * @param string $sElementKey |
|
173 | 172 | * @return string |
174 | 173 | * @since 3.8.5 |
175 | 174 | */ |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * Stores the default argument values. |
22 | 22 | */ |
23 | - public $aArguments = array( |
|
23 | + public $aArguments = array( |
|
24 | 24 | 'attributes' => array( |
25 | 25 | 'container' => array(), |
26 | 26 | 'title' => array(), |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | 'description' => array(), |
29 | 29 | 'icon' => array(), |
30 | 30 | ), |
31 | - 'icon' => null, // the icon output to override |
|
32 | - 'dash-icon' => 'dashicons-editor-help', // the dash-icon class selector for the icon |
|
33 | - 'icon_alt_text' => '[?]', // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below. |
|
31 | + 'icon' => null, // the icon output to override |
|
32 | + 'dash-icon' => 'dashicons-editor-help', // the dash-icon class selector for the icon |
|
33 | + 'icon_alt_text' => '[?]', // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below. |
|
34 | 34 | 'title' => null, |
35 | - 'content' => null, // will be assigned in the constructor |
|
35 | + 'content' => null, // will be assigned in the constructor |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | public $sTitleElementID; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if ( is_string( $asContent ) ) { |
90 | 90 | return true; |
91 | 91 | } |
92 | - if ( is_array( $asContent ) && ! $this->isAssociative( $asContent ) ) { |
|
92 | + if ( is_array( $asContent ) && !$this->isAssociative( $asContent ) ) { |
|
93 | 93 | return true; |
94 | 94 | } |
95 | 95 | return false; |
@@ -103,12 +103,12 @@ discard block |
||
103 | 103 | * @return string The output. |
104 | 104 | */ |
105 | 105 | public function get() { |
106 | - if ( ! $this->aArguments[ 'content' ] ) { |
|
106 | + if ( !$this->aArguments[ 'content' ] ) { |
|
107 | 107 | return ''; |
108 | 108 | } |
109 | - return "<a " . $this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ) . ">" |
|
109 | + return "<a ".$this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ).">" |
|
110 | 110 | . $this->_getTipLinkIcon() |
111 | - . "<span " . $this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ) . ">" |
|
111 | + . "<span ".$this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ).">" |
|
112 | 112 | . $this->_getTipTitle() |
113 | 113 | . $this->_getDescriptions() |
114 | 114 | . "</span>" |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | return $this->aArguments[ 'icon' ]; |
127 | 127 | } |
128 | 128 | if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) { |
129 | - return "<span " . $this->_getElementAttributes( |
|
129 | + return "<span ".$this->_getElementAttributes( |
|
130 | 130 | 'icon', |
131 | 131 | array( |
132 | 132 | 'dashicons', |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | private function _getTipTitle() { |
146 | 146 | if ( isset( $this->aArguments[ 'title' ] ) ) { |
147 | - return "<span " . $this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ) . ">" |
|
147 | + return "<span ".$this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ).">" |
|
148 | 148 | . $this->aArguments[ 'title' ] |
149 | 149 | . "</span>"; |
150 | 150 | } |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | */ |
157 | 157 | private function _getDescriptions() { |
158 | 158 | if ( isset( $this->aArguments[ 'content' ] ) ) { |
159 | - return "<span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">" |
|
159 | + return "<span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">" |
|
160 | 160 | . implode( |
161 | - "</span><span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">", |
|
161 | + "</span><span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">", |
|
162 | 162 | $this->getAsArray( $this->aArguments[ 'content' ] ) |
163 | 163 | ) |
164 | 164 | . "</span>" |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $_aContainerAttributes = $this->getElementAsArray( |
178 | 178 | $this->aArguments, |
179 | 179 | array( 'attributes', $sElementKey ) |
180 | - ) + array( 'class' => '' ) ; |
|
180 | + ) + array( 'class' => '' ); |
|
181 | 181 | $_aContainerAttributes[ 'class' ] = $this->getClassAttribute( |
182 | 182 | $_aContainerAttributes[ 'class' ], |
183 | 183 | $asClassSelectors |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_FrameworkUtility { |
21 | 21 | |
22 | - public $sStructureType = ''; |
|
22 | + public $sStructureType = ''; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @since 3.8.5 |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function get() { |
59 | 59 | |
60 | - if ( ! $this->_shouldProceed() ) { |
|
60 | + if ( !$this->_shouldProceed() ) { |
|
61 | 61 | return ''; |
62 | 62 | } |
63 | 63 | |
64 | 64 | return "<div class='admin-page-framework-info'>" |
65 | - . $this->oMsg->get( 'debug_info' ) . ': ' |
|
65 | + . $this->oMsg->get( 'debug_info' ).': ' |
|
66 | 66 | . $this->getFrameworkNameVersion() |
67 | 67 | . "</div>"; |
68 | 68 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | private function _shouldProceed() { |
75 | 75 | |
76 | - if ( ! $this->callBack( $this->aCallbacks[ 'show_debug_info' ], true ) ) { |
|
76 | + if ( !$this->callBack( $this->aCallbacks[ 'show_debug_info' ], true ) ) { |
|
77 | 77 | return false; |
78 | 78 | } |
79 | 79 | // For the generic admin pages, do no show debug information for each section. |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @extends AdminPageFramework_FrameworkUtility |
17 | 17 | * @internal |
18 | 18 | */ |
19 | -class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_FrameworkUtility { |
|
19 | +class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_FrameworkUtility { |
|
20 | 20 | |
21 | 21 | public $sStructureType = ''; |
22 | 22 |
@@ -74,6 +74,8 @@ discard block |
||
74 | 74 | * <li>a base64-encoded SVG using a data URI, which will be colored to match the color scheme. This should begin with 'data:image/svg+xml;base64,'.</li> |
75 | 75 | * </ul> |
76 | 76 | * @param string (optional) the position number that is passed to the <var>$position</var> parameter of the <a href="http://codex.wordpress.org/Function_Reference/add_menu_page">add_menu_page()</a> function. |
77 | + * @param string $sIcon16x16 |
|
78 | + * @param integer $iMenuPosition |
|
77 | 79 | * @return void |
78 | 80 | */ |
79 | 81 | public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16=null, $iMenuPosition=null ) { |
@@ -96,6 +98,7 @@ discard block |
||
96 | 98 | * |
97 | 99 | * @since 2.0.0 |
98 | 100 | * @internal |
101 | + * @param string $sMenuLabel |
|
99 | 102 | * @return void|string Returns the associated slug string, if true. |
100 | 103 | */ |
101 | 104 | private function _isBuiltInMenuItem( $sMenuLabel ) { |
@@ -160,9 +163,6 @@ discard block |
||
160 | 163 | * @since 3.0.0 Changed the scope to public. |
161 | 164 | * @remark The sub menu page slug should be unique because add_submenu_page() can add one callback per page slug. |
162 | 165 | * @remark Accepts variadic parameters; the number of accepted parameters are not limited to three. |
163 | - * @param array $aSubMenuItem1 a first sub-menu array. A sub-menu array can be a link or a page. For the specifications of the array structures and its arguments, refer to the parameter section of the `addSubMenuItem()` method. |
|
164 | - * @param array $aSubMenuItem2 (optional) a second sub-menu array. |
|
165 | - * @param array $_and_more (optional) a third and add items as many as necessary with next parameters. |
|
166 | 166 | * @access public |
167 | 167 | * @return void |
168 | 168 | */ |
@@ -250,20 +250,20 @@ |
||
250 | 250 | } |
251 | 251 | |
252 | 252 | /** |
253 | - * Adds the given link into the menu on the left sidebar of the administration panel. |
|
254 | - * |
|
255 | - * @since 2.0.0 |
|
256 | - * @since 3.0.0 Changed the scope to public from protected. |
|
257 | - * @since 3.5.0 Changed the scope to public as it was still protected. |
|
258 | - * @param string the menu title. |
|
259 | - * @param string the URL linked to the menu. |
|
260 | - * @param string (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>. |
|
261 | - * @param string (optional) the order number. The larger it is, the lower the position it gets. |
|
262 | - * @param string (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page. |
|
263 | - * @access public |
|
264 | - * @return void |
|
265 | - * @internal |
|
266 | - */ |
|
253 | + * Adds the given link into the menu on the left sidebar of the administration panel. |
|
254 | + * |
|
255 | + * @since 2.0.0 |
|
256 | + * @since 3.0.0 Changed the scope to public from protected. |
|
257 | + * @since 3.5.0 Changed the scope to public as it was still protected. |
|
258 | + * @param string the menu title. |
|
259 | + * @param string the URL linked to the menu. |
|
260 | + * @param string (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>. |
|
261 | + * @param string (optional) the order number. The larger it is, the lower the position it gets. |
|
262 | + * @param string (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page. |
|
263 | + * @access public |
|
264 | + * @return void |
|
265 | + * @internal |
|
266 | + */ |
|
267 | 267 | public function addSubMenuLink( array $aSubMenuLink ) { |
268 | 268 | |
269 | 269 | // If required keys are not set, return. |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param string (optional) the position number that is passed to the <var>$position</var> parameter of the <a href="http://codex.wordpress.org/Function_Reference/add_menu_page">add_menu_page()</a> function. |
77 | 77 | * @return void |
78 | 78 | */ |
79 | - public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16=null, $iMenuPosition=null ) { |
|
79 | + public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16 = null, $iMenuPosition = null ) { |
|
80 | 80 | |
81 | 81 | $sRootMenuLabel = trim( $sRootMenuLabel ); |
82 | 82 | $_sSlug = $this->_isBuiltInMenuItem( $sRootMenuLabel ); // if true, this method returns the slug |
@@ -267,16 +267,16 @@ discard block |
||
267 | 267 | public function addSubMenuLink( array $aSubMenuLink ) { |
268 | 268 | |
269 | 269 | // If required keys are not set, return. |
270 | - if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { |
|
270 | + if ( !isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { |
|
271 | 271 | return; |
272 | 272 | } |
273 | 273 | |
274 | 274 | // If the set URL is not valid, return. |
275 | - if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { |
|
275 | + if ( !filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { |
|
276 | 276 | return; |
277 | 277 | } |
278 | 278 | |
279 | - $_oFormatter = new AdminPageFramework_Format_SubMenuLink( |
|
279 | + $_oFormatter = new AdminPageFramework_Format_SubMenuLink( |
|
280 | 280 | $aSubMenuLink, |
281 | 281 | $this, |
282 | 282 | count( $this->oProp->aPages ) + 1 |
@@ -334,11 +334,11 @@ discard block |
||
334 | 334 | */ |
335 | 335 | public function addSubMenuPage( array $aSubMenuPage ) { |
336 | 336 | |
337 | - if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) { |
|
337 | + if ( !isset( $aSubMenuPage[ 'page_slug' ] ) ) { |
|
338 | 338 | return; |
339 | 339 | } |
340 | 340 | |
341 | - $_oFormatter = new AdminPageFramework_Format_SubMenuPage( |
|
341 | + $_oFormatter = new AdminPageFramework_Format_SubMenuPage( |
|
342 | 342 | $aSubMenuPage, |
343 | 343 | $this, |
344 | 344 | count( $this->oProp->aPages ) + 1 |
@@ -267,12 +267,12 @@ discard block |
||
267 | 267 | public function addSubMenuLink( array $aSubMenuLink ) { |
268 | 268 | |
269 | 269 | // If required keys are not set, return. |
270 | - if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { |
|
270 | + if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { |
|
271 | 271 | return; |
272 | 272 | } |
273 | 273 | |
274 | 274 | // If the set URL is not valid, return. |
275 | - if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { |
|
275 | + if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { |
|
276 | 276 | return; |
277 | 277 | } |
278 | 278 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | */ |
335 | 335 | public function addSubMenuPage( array $aSubMenuPage ) { |
336 | 336 | |
337 | - if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) { |
|
337 | + if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) { |
|
338 | 338 | return; |
339 | 339 | } |
340 | 340 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @package AdminPageFramework |
11 | 11 | */ |
12 | 12 | |
13 | -if ( ! class_exists( 'AdminPageFramework_Registry', false ) ) : |
|
13 | +if ( !class_exists( 'AdminPageFramework_Registry', false ) ) : |
|
14 | 14 | /** |
15 | 15 | * Facilitates WordPress plugin and theme development. |
16 | 16 | * |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | final class AdminPageFramework_Registry extends AdminPageFramework_Registry_Base { |
62 | 62 | |
63 | 63 | const TEXT_DOMAIN = 'admin-page-framework'; |
64 | - const TEXT_DOMAIN_PATH = '/language'; // not used at the moment |
|
64 | + const TEXT_DOMAIN_PATH = '/language'; // not used at the moment |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Indicates whether the framework is loaded from the minified version or not. |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | * Sets up static properties. |
104 | 104 | * @return void |
105 | 105 | */ |
106 | - static public function setUp( $sFilePath=__FILE__ ) { |
|
106 | + static public function setUp( $sFilePath = __FILE__ ) { |
|
107 | 107 | |
108 | 108 | self::$sFilePath = $sFilePath; |
109 | 109 | self::$sDirPath = dirname( self::$sFilePath ); |
110 | - self::$sIncludeClassListPath = self::$sDirPath . '/admin-page-framework-include-class-list.php'; |
|
110 | + self::$sIncludeClassListPath = self::$sDirPath.'/admin-page-framework-include-class-list.php'; |
|
111 | 111 | self::$aClassFiles = self::_getClassFilePathList( self::$sIncludeClassListPath ); |
112 | 112 | self::$sAutoLoaderPath = isset( self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ] ) |
113 | 113 | ? self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ] |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @return array |
123 | 123 | */ |
124 | 124 | static private function _getClassFilePathList( $sInclusionClassListPath ) { |
125 | - $aClassFiles = array(); // this will be updated if the inclusion below is successful. |
|
125 | + $aClassFiles = array(); // this will be updated if the inclusion below is successful. |
|
126 | 126 | include( $sInclusionClassListPath ); |
127 | 127 | return $aClassFiles; |
128 | 128 | } |
@@ -135,11 +135,11 @@ discard block |
||
135 | 135 | */ |
136 | 136 | static public function getVersion() { |
137 | 137 | |
138 | - if ( ! isset( self::$sAutoLoaderPath ) ) { |
|
139 | - trigger_error( self::NAME . ': ' . ' : ' . sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING ); |
|
138 | + if ( !isset( self::$sAutoLoaderPath ) ) { |
|
139 | + trigger_error( self::NAME.': '.' : '.sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING ); |
|
140 | 140 | return self::VERSION; |
141 | 141 | } |
142 | - $_aMinifiedVesionSuffix = array( |
|
142 | + $_aMinifiedVesionSuffix = array( |
|
143 | 143 | 0 => '', |
144 | 144 | 1 => '.min', |
145 | 145 | ); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | endif; |
170 | 170 | |
171 | -if ( ! class_exists( 'AdminPageFramework_Bootstrap', false ) ) : |
|
171 | +if ( !class_exists( 'AdminPageFramework_Bootstrap', false ) ) : |
|
172 | 172 | /** |
173 | 173 | * Loads the Admin Page Framework library. |
174 | 174 | * |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | */ |
190 | 190 | public function __construct( $sLibraryPath ) { |
191 | 191 | |
192 | - if ( ! $this->_isLoadable() ) { |
|
192 | + if ( !$this->_isLoadable() ) { |
|
193 | 193 | return; |
194 | 194 | } |
195 | 195 |
@@ -218,8 +218,8 @@ |
||
218 | 218 | * @remark $_aDefaultKeys holds shared default key-values defined in the base class. |
219 | 219 | */ |
220 | 220 | protected $aDefaultKeys = array( |
221 | - 'label_min_width' => '', // disabled as the embedded elements are all inline. |
|
222 | - 'show_debug_info' => false, // 3.8.8+ @todo Examine why this value does not override the default value of field definition arguments and if possible and appropriate, override it. |
|
221 | + 'label_min_width' => '', // disabled as the embedded elements are all inline. |
|
222 | + 'show_debug_info' => false, // 3.8.8+ @todo Examine why this value does not override the default value of field definition arguments and if possible and appropriate, override it. |
|
223 | 223 | ); |
224 | 224 | |
225 | 225 |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | $_aClassFiles = array( |
3 | - "GitHubCustomFieldType"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/library/github-custom-field-type/GitHubCustomFieldType.php", |
|
4 | - "AdminPageFrameworkLoader_Bootstrap"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/AdminPageFrameworkLoader_Bootstrap.php", |
|
5 | - "AdminPageFrameworkLoader_AdminPage"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", |
|
6 | - "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", |
|
7 | - "AdminPageFrameworkLoader_AdminPageMetaBox_Notification"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", |
|
8 | - "AdminPageFrameworkLoader_AdminPage_Addon"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", |
|
9 | - "AdminPageFrameworkLoader_AdminPage_Addon_Top"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", |
|
10 | - "AdminPageFrameworkLoader_AdminPage_Help"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", |
|
11 | - "AdminPageFrameworkLoader_AdminPage_Help_About"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", |
|
12 | - "AdminPageFrameworkLoader_AdminPage_Help_Debug"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", |
|
13 | - "AdminPageFrameworkLoader_AdminPage_Help_Example"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", |
|
14 | - "AdminPageFrameworkLoader_AdminPage_Help_FAQ"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", |
|
15 | - "AdminPageFrameworkLoader_AdminPage_Help_Guide"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", |
|
16 | - "AdminPageFrameworkLoader_AdminPage_Help_Information"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", |
|
17 | - "AdminPageFrameworkLoader_AdminPage_Help_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", |
|
18 | - "AdminPageFrameworkLoader_AdminPage_Help_Report_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", |
|
19 | - "AdminPageFrameworkLoader_AdminPage_Help_Tip"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", |
|
20 | - "AdminPageFrameworkLoader_AdminPage_Tool"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", |
|
21 | - "AdminPageFrameworkLoader_AdminPage_Tool_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php", |
|
22 | - "AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php", |
|
23 | - "AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php", |
|
24 | - "AdminPageFrameworkLoader_AdminPage_Tool_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php", |
|
25 | - "AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier.php", |
|
26 | - "AdminPageFrameworkLoader_AdminPageWelcome"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", |
|
27 | - "AdminPageFrameworkLoader_AdminPageWelcome_Welcome"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", |
|
28 | - "AdminPageFrameworkLoader_Demo"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", |
|
29 | - "AdminPageFrameworkLoader_NetworkAdmin"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", |
|
30 | - "AdminPageFrameworkLoader_AdminPage_Page_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", |
|
31 | - "AdminPageFrameworkLoader_AdminPage_RootBase"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", |
|
32 | - "AdminPageFrameworkLoader_AdminPage_Section_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", |
|
33 | - "AdminPageFrameworkLoader_AdminPage_Tab_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", |
|
34 | - "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", |
|
35 | - "AdminPageFrameworkLoader_Event"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event.php", |
|
36 | - "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", |
|
37 | - "AdminPageFrameworkLoader_Option"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/option/AdminPageFrameworkLoader_Option.php", |
|
38 | - "AdminPageFrameworkLoader_FeedList"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_FeedList.php", |
|
39 | - "AdminPageFrameworkLoader_Utility"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_Utility.php", |
|
3 | + "GitHubCustomFieldType"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/library/github-custom-field-type/GitHubCustomFieldType.php", |
|
4 | + "AdminPageFrameworkLoader_Bootstrap"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/AdminPageFrameworkLoader_Bootstrap.php", |
|
5 | + "AdminPageFrameworkLoader_AdminPage"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", |
|
6 | + "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", |
|
7 | + "AdminPageFrameworkLoader_AdminPageMetaBox_Notification"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", |
|
8 | + "AdminPageFrameworkLoader_AdminPage_Addon"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", |
|
9 | + "AdminPageFrameworkLoader_AdminPage_Addon_Top"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", |
|
10 | + "AdminPageFrameworkLoader_AdminPage_Help"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", |
|
11 | + "AdminPageFrameworkLoader_AdminPage_Help_About"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", |
|
12 | + "AdminPageFrameworkLoader_AdminPage_Help_Debug"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", |
|
13 | + "AdminPageFrameworkLoader_AdminPage_Help_Example"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", |
|
14 | + "AdminPageFrameworkLoader_AdminPage_Help_FAQ"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", |
|
15 | + "AdminPageFrameworkLoader_AdminPage_Help_Guide"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", |
|
16 | + "AdminPageFrameworkLoader_AdminPage_Help_Information"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", |
|
17 | + "AdminPageFrameworkLoader_AdminPage_Help_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", |
|
18 | + "AdminPageFrameworkLoader_AdminPage_Help_Report_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", |
|
19 | + "AdminPageFrameworkLoader_AdminPage_Help_Tip"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", |
|
20 | + "AdminPageFrameworkLoader_AdminPage_Tool"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", |
|
21 | + "AdminPageFrameworkLoader_AdminPage_Tool_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php", |
|
22 | + "AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php", |
|
23 | + "AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php", |
|
24 | + "AdminPageFrameworkLoader_AdminPage_Tool_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php", |
|
25 | + "AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier.php", |
|
26 | + "AdminPageFrameworkLoader_AdminPageWelcome"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", |
|
27 | + "AdminPageFrameworkLoader_AdminPageWelcome_Welcome"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", |
|
28 | + "AdminPageFrameworkLoader_Demo"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", |
|
29 | + "AdminPageFrameworkLoader_NetworkAdmin"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", |
|
30 | + "AdminPageFrameworkLoader_AdminPage_Page_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", |
|
31 | + "AdminPageFrameworkLoader_AdminPage_RootBase"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", |
|
32 | + "AdminPageFrameworkLoader_AdminPage_Section_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", |
|
33 | + "AdminPageFrameworkLoader_AdminPage_Tab_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", |
|
34 | + "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", |
|
35 | + "AdminPageFrameworkLoader_Event"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event.php", |
|
36 | + "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", |
|
37 | + "AdminPageFrameworkLoader_Option"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/option/AdminPageFrameworkLoader_Option.php", |
|
38 | + "AdminPageFrameworkLoader_FeedList"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_FeedList.php", |
|
39 | + "AdminPageFrameworkLoader_Utility"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_Utility.php", |
|
40 | 40 | ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | public function get() { |
57 | 57 | |
58 | 58 | // Get the set value(s) |
59 | - $_mSavedValue = $this->_getStoredInputFieldValue( |
|
59 | + $_mSavedValue = $this->_getStoredInputFieldValue( |
|
60 | 60 | $this->aField, |
61 | 61 | $this->aOptions |
62 | 62 | ); |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | * @return void |
117 | 117 | */ |
118 | 118 | private function _divideMainAndSubFields( $aField, array &$aFirstField, array &$aSubFields ) { |
119 | - foreach( $aField as $_nsIndex => $_mFieldElement ) { |
|
119 | + foreach ( $aField as $_nsIndex => $_mFieldElement ) { |
|
120 | 120 | if ( is_numeric( $_nsIndex ) ) { |
121 | - $aSubFields[] = $_mFieldElement; |
|
121 | + $aSubFields[ ] = $_mFieldElement; |
|
122 | 122 | } else { |
123 | 123 | $aFirstField[ $_nsIndex ] = $_mFieldElement; |
124 | 124 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | // We are collecting elements from the second sub-field. |
145 | 145 | unset( $_aSavedValues[ 0 ] ); |
146 | 146 | |
147 | - foreach( $_aSavedValues as $_iIndex => $vValue ) { |
|
147 | + foreach ( $_aSavedValues as $_iIndex => $vValue ) { |
|
148 | 148 | $aSubFields[ $_iIndex - 1 ] = isset( $aSubFields[ $_iIndex - 1 ] ) && is_array( $aSubFields[ $_iIndex - 1 ] ) |
149 | 149 | ? $aSubFields[ $_iIndex - 1 ] |
150 | 150 | : array(); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | private function _fillSubFields( array &$aSubFields, array $aFirstField ) { |
161 | 161 | |
162 | - foreach( $aSubFields as &$_aSubField ) { |
|
162 | + foreach ( $aSubFields as &$_aSubField ) { |
|
163 | 163 | |
164 | 164 | // Evacuate the label element which should not be merged. |
165 | 165 | $_aLabel = $this->getElement( |
@@ -190,15 +190,15 @@ discard block |
||
190 | 190 | |
191 | 191 | // Determine whether the elements are saved in an array. |
192 | 192 | // $_bHasSubFields = count( $aFields ) > 1 || $aField[ 'repeatable' ] || $aField[ 'sortable' ]; |
193 | - if ( ! $this->hasSubFields( $aFields, $aField ) ) { |
|
193 | + if ( !$this->hasSubFields( $aFields, $aField ) ) { |
|
194 | 194 | $aFields[ 0 ][ '_saved_value' ] = $mSavedValue; |
195 | 195 | $aFields[ 0 ][ '_is_multiple_fields' ] = false; |
196 | 196 | return; |
197 | 197 | } |
198 | 198 | |
199 | - foreach( $aFields as $_iIndex => &$_aThisField ) { |
|
199 | + foreach ( $aFields as $_iIndex => &$_aThisField ) { |
|
200 | 200 | $_aThisField[ '_saved_value' ] = $this->getElement( $mSavedValue, $_iIndex, null ); |
201 | - $_aThisField[ '_subfield_index' ] = $_iIndex; // 3.8.0+ |
|
201 | + $_aThisField[ '_subfield_index' ] = $_iIndex; // 3.8.0+ |
|
202 | 202 | $_aThisField[ '_is_multiple_fields' ] = true; |
203 | 203 | } |
204 | 204 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * @since 3.6.0 Moved from `AdminPageFramework_FieldDefinition`. |
213 | 213 | */ |
214 | 214 | private function _setFieldsValue( &$aFields ) { |
215 | - foreach( $aFields as &$_aField ) { |
|
215 | + foreach ( $aFields as &$_aField ) { |
|
216 | 216 | $_aField[ '_is_value_set_by_user' ] = isset( $_aField[ 'value' ] ); |
217 | 217 | $_aField[ 'value' ] = $this->_getSetFieldValue( $_aField ); |
218 | 218 | } |
@@ -257,10 +257,10 @@ discard block |
||
257 | 257 | */ |
258 | 258 | private function _getStoredInputFieldValue( $aField, $aOptions ) { |
259 | 259 | |
260 | - $_aFieldPath = $aField[ '_field_path_array' ]; |
|
260 | + $_aFieldPath = $aField[ '_field_path_array' ]; |
|
261 | 261 | |
262 | 262 | // If a section is not set, check the first dimension element. |
263 | - if ( ! isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) { |
|
263 | + if ( !isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) { |
|
264 | 264 | return $this->getElement( |
265 | 265 | $aOptions, |
266 | 266 | $_aFieldPath, // $aField[ 'field_id' ], // @todo this may have to be a field path instead of field id. |
@@ -254,7 +254,7 @@ |
||
254 | 254 | * @since 3.7.0 Changed the `_field_type` element to `_structure_type`. |
255 | 255 | * @return null|string|array |
256 | 256 | */ |
257 | - private function _getStoredInputFieldValue( $aField, $aOptions ) { |
|
257 | + private function _getStoredInputFieldValue( $aField, $aOptions ) { |
|
258 | 258 | |
259 | 259 | $_aFieldPath = $aField[ '_field_path_array' ]; |
260 | 260 |
@@ -520,7 +520,7 @@ |
||
520 | 520 | return self::getAttributes( |
521 | 521 | array( |
522 | 522 | 'class' => 'repeatable-section-remove-button button-secondary ' |
523 | - . 'repeatable-section-button button button-large', |
|
523 | + . 'repeatable-section-button button button-large', |
|
524 | 524 | 'title' => $oMsg->get( 'remove_section' ), |
525 | 525 | 'style' => $iSectionCount <= 1 |
526 | 526 | ? 'display:none' |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | if ( empty( $asArguments ) ) { |
447 | 447 | return ''; |
448 | 448 | } |
449 | - if ( self::hasBeenCalled( 'repeatable_section_' . $sContainerTagID ) ) { |
|
449 | + if ( self::hasBeenCalled( 'repeatable_section_'.$sContainerTagID ) ) { |
|
450 | 450 | return ''; |
451 | 451 | } |
452 | 452 | |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | $_oFormatter = new AdminPageFramework_Form_Model___Format_RepeatableSection( $asArguments, $oMsg ); |
455 | 455 | $_aArguments = $_oFormatter->get(); |
456 | 456 | $_sButtons = self::___getRepeatableSectionButtons( $_aArguments, $oMsg, $sContainerTagID, $iSectionCount ); |
457 | - $_sButtonsHTML = '"' . $_sButtons . '"'; |
|
457 | + $_sButtonsHTML = '"'.$_sButtons.'"'; |
|
458 | 458 | $_aJSArray = json_encode( $_aArguments ); |
459 | 459 | $_sScript = <<<JAVASCRIPTS |
460 | 460 | jQuery( document ).ready( function() { |
@@ -500,17 +500,17 @@ discard block |
||
500 | 500 | $_sIconAdd = "<span class='dashicons dashicons-plus-alt2'></span>"; |
501 | 501 | } |
502 | 502 | return "<div class='admin-page-framework-repeatable-section-buttons-outer-container'>" |
503 | - . "<div " . self::___getContainerAttributes( $_aArguments, $oMsg ) . ' >' |
|
504 | - . "<a " . self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ) . ">" |
|
503 | + . "<div ".self::___getContainerAttributes( $_aArguments, $oMsg ).' >' |
|
504 | + . "<a ".self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ).">" |
|
505 | 505 | . $_sIconRemove |
506 | 506 | . "</a>" |
507 | - . "<a " . self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ) . ">" |
|
507 | + . "<a ".self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ).">" |
|
508 | 508 | . $_sIconAdd |
509 | 509 | . "</a>" |
510 | 510 | . "</div>" |
511 | 511 | . "</div>" |
512 | 512 | . AdminPageFramework_Form_Utility::getModalForDisabledRepeatableElement( |
513 | - 'repeatable_section_disabled_' . $sContainerTagID, |
|
513 | + 'repeatable_section_disabled_'.$sContainerTagID, |
|
514 | 514 | $_aArguments[ 'disabled' ] |
515 | 515 | ); |
516 | 516 | } |
@@ -526,12 +526,12 @@ discard block |
||
526 | 526 | empty( $aArguments[ 'disabled' ] ) ? '' : 'disabled' |
527 | 527 | ), |
528 | 528 | ); |
529 | - unset( $aArguments[ 'disabled' ][ 'message' ] ); // this element can contain HTML tags. |
|
529 | + unset( $aArguments[ 'disabled' ][ 'message' ] ); // this element can contain HTML tags. |
|
530 | 530 | // Needs to remove it if it is empty as its data attribute will be checked in the JavaScript script. |
531 | 531 | if ( empty( $aArguments[ 'disabled' ] ) ) { |
532 | 532 | unset( $aArguments[ 'disabled' ] ); |
533 | 533 | } |
534 | - return self::getAttributes( $_aAttriubtes ) . ' ' . self::getDataAttributes( $aArguments ); |
|
534 | + return self::getAttributes( $_aAttriubtes ).' '.self::getDataAttributes( $aArguments ); |
|
535 | 535 | } |
536 | 536 | /** |
537 | 537 | * @return string |
@@ -562,10 +562,10 @@ discard block |
||
562 | 562 | . 'repeatable-section-button button button-large', |
563 | 563 | 'title' => $oMsg->get( 'add_section' ), |
564 | 564 | 'data-id' => $sContainerTagID, |
565 | - 'href' => ! empty( $aArguments[ 'disabled' ] ) |
|
566 | - ? '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ] |
|
567 | - . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ] |
|
568 | - . '&inlineId=' . 'repeatable_section_disabled_' . $sContainerTagID |
|
565 | + 'href' => !empty( $aArguments[ 'disabled' ] ) |
|
566 | + ? '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ] |
|
567 | + . '&height='.$aArguments[ 'disabled' ][ 'box_height' ] |
|
568 | + . '&inlineId='.'repeatable_section_disabled_'.$sContainerTagID |
|
569 | 569 | : null, |
570 | 570 | ) |
571 | 571 | ); |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | * @since 3.8.13 |
37 | 37 | */ |
38 | 38 | static protected $_aStructure_Disabled = array( |
39 | - 'message' => 'The ability of repeating sections is disabled.', // will be reassigned |
|
40 | - 'caption' => 'Warning', // will be reassigned |
|
39 | + 'message' => 'The ability of repeating sections is disabled.', // will be reassigned |
|
40 | + 'caption' => 'Warning', // will be reassigned |
|
41 | 41 | 'box_width' => 300, |
42 | 42 | 'box_height' => 72, |
43 | 43 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function __construct( /* array $asArguments, $oMsg */ ) { |
56 | 56 | |
57 | - $_aParameters = func_get_args() + array( |
|
57 | + $_aParameters = func_get_args() + array( |
|
58 | 58 | $this->_aArguments, |
59 | 59 | null |
60 | 60 | ); |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | public function get() { |
74 | 74 | |
75 | 75 | $_aArguments = $this->_aArguments + self::$_aStructure; |
76 | - unset( $_aArguments[ 0 ] ); // remove the 0 index element converted from `'repeatable => 'true',`. |
|
77 | - if ( ! empty( $_aArguments[ 'disabled' ] ) ) { |
|
76 | + unset( $_aArguments[ 0 ] ); // remove the 0 index element converted from `'repeatable => 'true',`. |
|
77 | + if ( !empty( $_aArguments[ 'disabled' ] ) ) { |
|
78 | 78 | $_aArguments[ 'disabled' ] = $_aArguments[ 'disabled' ] + array( |
79 | 79 | 'message' => $this->_getDefaultMessage(), |
80 | 80 | 'caption' => $this->_oMsg->get( 'warning_caption' ), |