@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @return void |
186 | 186 | */ |
187 | 187 | static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) { |
188 | - if ( ! is_admin() ) { |
|
188 | + if ( ! is_admin() ) { |
|
189 | 189 | return; |
190 | 190 | } |
191 | 191 | self::$_aAdminNotices[] = array( |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * @return void |
201 | 201 | */ |
202 | 202 | static public function _replyToSetAdminNotice() { |
203 | - foreach( self::$_aAdminNotices as $_aAdminNotice ) { |
|
203 | + foreach( self::$_aAdminNotices as $_aAdminNotice ) { |
|
204 | 204 | echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>" |
205 | 205 | ."<p>" |
206 | 206 | . sprintf( |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | if ( defined( 'DOING_UNINSTALL' ) ) { return; } |
222 | 222 | |
223 | 223 | // Include the library file |
224 | -if ( ! class_exists( 'AdminPageFramework' ) ) { |
|
224 | +if ( ! class_exists( 'AdminPageFramework' ) ) { |
|
225 | 225 | // The development version is available in the repository cloned via GitHub. |
226 | 226 | $_sDevelopmentVersionPath = dirname( __FILE__ ) . '/development/admin-page-framework.php'; |
227 | 227 | $_bDebugMode = defined( 'WP_DEBUG' ) && WP_DEBUG; |
@@ -250,7 +250,8 @@ discard block |
||
250 | 250 | |
251 | 251 | // Include the framework loader plugin components. |
252 | 252 | include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/boot/AdminPageFrameworkLoader_Bootstrap.php' ); |
253 | -if ( class_exists( 'AdminPageFrameworkLoader_Bootstrap' ) ) { // for backward compatibility |
|
253 | +if ( class_exists( 'AdminPageFrameworkLoader_Bootstrap' ) ) { |
|
254 | +// for backward compatibility |
|
254 | 255 | new AdminPageFrameworkLoader_Bootstrap( |
255 | 256 | AdminPageFrameworkLoader_Registry::$sFilePath, |
256 | 257 | AdminPageFrameworkLoader_Registry::HOOK_SLUG // hook prefix |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | public function addSettingSections( /* $aSection1, $aSection2=null, $_and_more=null */ ) { |
171 | 171 | |
172 | - foreach( func_get_args() as $_asSectionset ) { |
|
172 | + foreach( func_get_args() as $_asSectionset ) { |
|
173 | 173 | $this->addSettingSection( $_asSectionset ); |
174 | 174 | } |
175 | 175 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | public function addSettingSection( $aSectionset ) { |
240 | 240 | |
241 | - if ( ! is_array( $aSectionset ) ) { |
|
241 | + if ( ! is_array( $aSectionset ) ) { |
|
242 | 242 | return; |
243 | 243 | } |
244 | 244 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | * @return void |
272 | 272 | */ |
273 | 273 | public function addSettingFields( /* $aField1, $aField2=null, $_and_more=null */ ) { |
274 | - foreach( func_get_args() as $_aFieldset ) { |
|
274 | + foreach( func_get_args() as $_aFieldset ) { |
|
275 | 275 | $this->addSettingField( $_aFieldset ); |
276 | 276 | } |
277 | 277 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | if ( $this->oProp->bIsAdmin && ! $this->oProp->bIsAdminAjax ) { |
137 | 137 | if ( did_action( 'current_screen' ) ) { |
138 | 138 | $this->_replyToLoadComponents(); |
139 | - } else { |
|
139 | + } else { |
|
140 | 140 | add_action( 'current_screen', array( $this, '_replyToLoadComponents' ) ); |
141 | 141 | } |
142 | 142 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $this->oLink = $this->oLink; |
161 | 161 | } |
162 | 162 | |
163 | - if ( ! $this->_isInThePage() ) { |
|
163 | + if ( ! $this->_isInThePage() ) { |
|
164 | 164 | return; |
165 | 165 | } |
166 | 166 | |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | } |
451 | 451 | |
452 | 452 | // Set and return the sub class object instance. |
453 | - if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) { |
|
453 | + if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) { |
|
454 | 454 | return call_user_func( |
455 | 455 | array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" ) |
456 | 456 | ); |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * |
534 | 534 | * @internal |
535 | 535 | */ |
536 | - public function __call( $sMethodName, $aArgs=null ) { |
|
536 | + public function __call( $sMethodName, $aArgs=null ) { |
|
537 | 537 | |
538 | 538 | $_mFirstArg = $this->oUtil->getElement( $aArgs, 0 ); |
539 | 539 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * @since 3.6.0 |
75 | 75 | * @return string |
76 | 76 | */ |
77 | - public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) { |
|
77 | + public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) { |
|
78 | 78 | $_aParams = func_get_args() + array( null, null, ); |
79 | 79 | return $_aParams[ 0 ]; |
80 | 80 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) { |
64 | 64 | |
65 | - if ( empty( $aContents ) ) { |
|
65 | + if ( empty( $aContents ) ) { |
|
66 | 66 | return; |
67 | 67 | } |
68 | 68 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * @return boolean |
51 | 51 | */ |
52 | 52 | private function _isLoadable( $oProp ) { |
53 | - if ( ! $oProp->bIsAdmin ) { |
|
53 | + if ( ! $oProp->bIsAdmin ) { |
|
54 | 54 | return false; |
55 | 55 | } |
56 | 56 | if ( $oProp->bIsAdminAjax ) { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | */ |
236 | 236 | protected function _printCommonStyles( $sIDPrefix, $sClassName ) { |
237 | 237 | |
238 | - if ( self::$_bCommonStyleLoaded ) { |
|
238 | + if ( self::$_bCommonStyleLoaded ) { |
|
239 | 239 | return; |
240 | 240 | } |
241 | 241 | self::$_bCommonStyleLoaded = true; |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | public function _replyToAddScript() { |
475 | 475 | |
476 | 476 | $_oCaller = $this->oProp->_getCallerObject(); |
477 | - if ( ! $_oCaller->_isInThePage() ) { |
|
477 | + if ( ! $_oCaller->_isInThePage() ) { |
|
478 | 478 | return; |
479 | 479 | } |
480 | 480 | |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | * @since 3.2.0 Changed it unset the enqueued item so that the method can be called multiple times. |
531 | 531 | * @internal |
532 | 532 | */ |
533 | - public function _replyToEnqueueStyles() { |
|
533 | + public function _replyToEnqueueStyles() { |
|
534 | 534 | foreach( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) { |
535 | 535 | $this->_enqueueSRCByCondition( $_aEnqueuingStyle ); |
536 | 536 | unset( $this->oProp->aEnqueuingStyles[ $_sKey ] ); |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | * @since 3.2.0 Changed it unset the enqueued item so that the method can be called multiple times. |
548 | 548 | * @internal |
549 | 549 | */ |
550 | - public function _replyToEnqueueScripts() { |
|
550 | + public function _replyToEnqueueScripts() { |
|
551 | 551 | foreach( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) { |
552 | 552 | $this->_enqueueSRCByCondition( $_aEnqueuingScript ); |
553 | 553 | unset( $this->oProp->aEnqueuingScripts[ $_sKey ] ); |
@@ -61,12 +61,12 @@ |
||
61 | 61 | */ |
62 | 62 | private function _shouldProceed() { |
63 | 63 | |
64 | - if ( ! $this->oFactory->_isInThePage() ) { |
|
64 | + if ( ! $this->oFactory->_isInThePage() ) { |
|
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | 68 | // Ensure this method is called only once per a page load. |
69 | - if ( self::$_bSettingNoticeLoaded ) { |
|
69 | + if ( self::$_bSettingNoticeLoaded ) { |
|
70 | 70 | return false; |
71 | 71 | } |
72 | 72 | self::$_bSettingNoticeLoaded = true; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @subpackage Tab |
17 | 17 | * @internal |
18 | 18 | */ |
19 | -class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility { |
|
19 | +class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility { |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * The HTML tag used for the tag. |