@@ -19,22 +19,22 @@ |
||
19 | 19 | abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View { |
20 | 20 | |
21 | 21 | /** |
22 | - * The method for necessary set-ups. |
|
23 | - * |
|
24 | - * <h4>Example</h4> |
|
25 | - * <code> |
|
26 | - * public function setUp() { |
|
27 | - * $this->setArguments( |
|
28 | - * array( |
|
29 | - * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
30 | - * ) |
|
31 | - * ); |
|
32 | - * } |
|
33 | - * </code> |
|
34 | - * |
|
35 | - * @abstract |
|
36 | - * @since 3.2.0 |
|
37 | - */ |
|
22 | + * The method for necessary set-ups. |
|
23 | + * |
|
24 | + * <h4>Example</h4> |
|
25 | + * <code> |
|
26 | + * public function setUp() { |
|
27 | + * $this->setArguments( |
|
28 | + * array( |
|
29 | + * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
30 | + * ) |
|
31 | + * ); |
|
32 | + * } |
|
33 | + * </code> |
|
34 | + * |
|
35 | + * @abstract |
|
36 | + * @since 3.2.0 |
|
37 | + */ |
|
38 | 38 | public function setUp() {} |
39 | 39 | |
40 | 40 | /** |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @since 3.2.0 |
128 | 128 | * @internal Temporarily marked internal |
129 | 129 | */ |
130 | - public function enqueueStyles( $aSRCs, $aCustomArgs=array() ) { |
|
130 | + public function enqueueStyles( $aSRCs, $aCustomArgs = array() ) { |
|
131 | 131 | if ( method_exists( $this->oResource, '_enqueueStyles' ) ) { |
132 | 132 | return $this->oResource->_enqueueStyles( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
133 | 133 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @since 3.2.0 |
141 | 141 | * @internal Temporarily marked internal |
142 | 142 | */ |
143 | - public function enqueueStyle( $sSRC, $aCustomArgs=array() ) { |
|
143 | + public function enqueueStyle( $sSRC, $aCustomArgs = array() ) { |
|
144 | 144 | if ( method_exists( $this->oResource, '_enqueueStyle' ) ) { |
145 | 145 | return $this->oResource->_enqueueStyle( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
146 | 146 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @since 3.2.0 |
154 | 154 | * @internal Temporarily marked internal |
155 | 155 | */ |
156 | - public function enqueueScripts( $aSRCs, $aCustomArgs=array() ) { |
|
156 | + public function enqueueScripts( $aSRCs, $aCustomArgs = array() ) { |
|
157 | 157 | if ( method_exists( $this->oResource, '_enqueueScripts' ) ) { |
158 | 158 | return $this->oResource->_enqueueScripts( $aSRCs, array( $this->oProp->sPostType ), $aCustomArgs ); |
159 | 159 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * @since 3.2.0 |
167 | 167 | * @internal Temporarily marked internal |
168 | 168 | */ |
169 | - public function enqueueScript( $sSRC, $aCustomArgs=array() ) { |
|
169 | + public function enqueueScript( $sSRC, $aCustomArgs = array() ) { |
|
170 | 170 | if ( method_exists( $this->oResource, '_enqueueScript' ) ) { |
171 | 171 | return $this->oResource->_enqueueScript( $sSRC, array( $this->oProp->sPostType ), $aCustomArgs ); |
172 | 172 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @see https://codex.wordpress.org/Function_Reference/wp_register_sidebar_widget |
188 | 188 | * @return void |
189 | 189 | */ |
190 | - protected function setArguments( array $aArguments=array() ) { |
|
190 | + protected function setArguments( array $aArguments = array() ) { |
|
191 | 191 | $this->oProp->aWidgetArguments = $aArguments; |
192 | 192 | } |
193 | 193 |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | |
37 | 37 | if ( $this->oProp->bIsAdmin ) { |
38 | 38 | add_filter( |
39 | - 'validation_' . $this->oProp->sClassName, |
|
39 | + 'validation_'.$this->oProp->sClassName, |
|
40 | 40 | array( $this, '_replyToSortInputs' ), |
41 | - 1, // set a high priority |
|
41 | + 1, // set a high priority |
|
42 | 42 | 3 // number of parameters |
43 | 43 | ); |
44 | 44 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function _replyToRegisterWidget() { |
110 | 110 | |
111 | - if ( ! is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
111 | + if ( !is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
112 | 112 | return; |
113 | 113 | } |
114 | 114 |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * Stores method names of the `WP_Widget` class, referred when the class is assumed as a WP_Widget subclass. |
116 | 116 | * @since 3.8.17 |
117 | 117 | */ |
118 | - public $aWPWidgetMethods = array(); |
|
118 | + public $aWPWidgetMethods = array(); |
|
119 | 119 | /** |
120 | 120 | * Stores property names of the `WP_Widget` class, , referred when the class is assumed as a WP_Widget subclass. |
121 | 121 | * @since 3.8.17 |
@@ -126,13 +126,13 @@ discard block |
||
126 | 126 | * Sets up properties. |
127 | 127 | * @since 3.7.0 |
128 | 128 | */ |
129 | - public function __construct( $oCaller, $sCallerPath, $sClassName, $sCapability='manage_options', $sTextDomain='admin-page-framework', $sStructureType ) { |
|
129 | + public function __construct( $oCaller, $sCallerPath, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType ) { |
|
130 | 130 | |
131 | 131 | // 3.7.0+ |
132 | - $this->_sFormRegistrationHook = 'load_' . $sClassName; |
|
132 | + $this->_sFormRegistrationHook = 'load_'.$sClassName; |
|
133 | 133 | |
134 | 134 | // 3.7.9+ - setting a custom action hook for admin notices prevents the form object from being instantiated unnecessarily. |
135 | - $this->sSettingNoticeActionHook = 'load_' . $sClassName; |
|
135 | + $this->sSettingNoticeActionHook = 'load_'.$sClassName; |
|
136 | 136 | |
137 | 137 | parent::__construct( |
138 | 138 | $oCaller, |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param integer $iDepth The header number to parse. |
38 | 38 | * @param string $sTitle The heading title which appears at the beginning of the output. |
39 | 39 | */ |
40 | - public function __construct( $sHTML, $iDepth=4, $sTitle='' ) { |
|
40 | + public function __construct( $sHTML, $iDepth = 4, $sTitle = '' ) { |
|
41 | 41 | |
42 | 42 | $this->sTitle = $sTitle; |
43 | 43 | $this->sHTML = $sHTML; |
@@ -75,26 +75,26 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function getTOC() { |
77 | 77 | |
78 | - $iDepth = $this->iDepth; |
|
78 | + $iDepth = $this->iDepth; |
|
79 | 79 | |
80 | 80 | // get the headings down to the specified depth |
81 | 81 | $this->sHTML = preg_replace_callback( |
82 | - '/<h[2-' . $iDepth . ']*[^>]*>.*?<\/h[2-' . $iDepth . ']>/i', |
|
82 | + '/<h[2-'.$iDepth.']*[^>]*>.*?<\/h[2-'.$iDepth.']>/i', |
|
83 | 83 | array( $this, '_replyToInsertNamedElement' ), |
84 | 84 | $this->sHTML |
85 | 85 | ); |
86 | 86 | |
87 | 87 | $_aOutput = array(); |
88 | - foreach( $this->_aMatches as $_iIndex => $_sMatch ) { |
|
88 | + foreach ( $this->_aMatches as $_iIndex => $_sMatch ) { |
|
89 | 89 | $_sMatch = strip_tags( $_sMatch, '<h1><h2><h3><h4><h5><h6><h7><h8>' ); |
90 | - $_sMatch = preg_replace( '/<h([1-' . $iDepth . '])>/', '<li class="toc$1"><a href="#toc_' . $_iIndex . '">', $_sMatch ); |
|
91 | - $_sMatch = preg_replace( '/<\/h[1-' . $iDepth . ']>/', '</a></li>', $_sMatch ); |
|
92 | - $_aOutput[] = $_sMatch; |
|
90 | + $_sMatch = preg_replace( '/<h([1-'.$iDepth.'])>/', '<li class="toc$1"><a href="#toc_'.$_iIndex.'">', $_sMatch ); |
|
91 | + $_sMatch = preg_replace( '/<\/h[1-'.$iDepth.']>/', '</a></li>', $_sMatch ); |
|
92 | + $_aOutput[ ] = $_sMatch; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | // plug the results into appropriate HTML tags |
96 | 96 | $this->sTitle = $this->sTitle |
97 | - ? '<p class="toc-title">' . $this->sTitle . '</p>' |
|
97 | + ? '<p class="toc-title">'.$this->sTitle.'</p>' |
|
98 | 98 | : ''; |
99 | 99 | return '<div class="toc">' |
100 | 100 | . $this->sTitle |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | public function _replyToInsertNamedElement( $aMatches ) { |
112 | 112 | static $_icount = -1; |
113 | 113 | $_icount++; |
114 | - $this->_aMatches[] = $aMatches[ 0 ]; |
|
115 | - return "<span class='toc_header_link' id='toc_{$_icount}'></span>" . PHP_EOL |
|
114 | + $this->_aMatches[ ] = $aMatches[ 0 ]; |
|
115 | + return "<span class='toc_header_link' id='toc_{$_icount}'></span>".PHP_EOL |
|
116 | 116 | . $aMatches[ 0 ]; |
117 | 117 | } |
118 | 118 | /**#@-*/ |
@@ -260,7 +260,7 @@ |
||
260 | 260 | in_array( |
261 | 261 | substr( $_sIterationItem, strrpos( $_sIterationItem, '/' ) + 1 ), |
262 | 262 | array( '.', '..' ) |
263 | - ) |
|
263 | + ) |
|
264 | 264 | ) { |
265 | 265 | return; |
266 | 266 | } |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @since 3.6.0 |
57 | 57 | */ |
58 | - public $aOptions = array( |
|
59 | - 'include_directory' => false, // (boolean) whether the contents should be put inside a root directory. |
|
58 | + public $aOptions = array( |
|
59 | + 'include_directory' => false, // (boolean) whether the contents should be put inside a root directory. |
|
60 | 60 | 'additional_source_directories' => array(), |
61 | 61 | // 'ignoring_file_extensions' => array(), // not implemented yet. |
62 | 62 | ); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param array|boolean $abOptions |
71 | 71 | * @param callable $aCallbacks |
72 | 72 | */ |
73 | - public function __construct( $sSource, $sDestination, $abOptions=false, array $aCallbacks=array() ) { |
|
73 | + public function __construct( $sSource, $sDestination, $abOptions = false, array $aCallbacks = array() ) { |
|
74 | 74 | |
75 | 75 | $this->sSource = $sSource; |
76 | 76 | $this->sDestination = $sDestination; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | public function compress() { |
104 | 104 | |
105 | 105 | // Check whether it is possible to perform the task. |
106 | - if ( ! $this->isFeasible( $this->sSource ) ) { |
|
106 | + if ( !$this->isFeasible( $this->sSource ) ) { |
|
107 | 107 | return false; |
108 | 108 | } |
109 | 109 | |
@@ -113,19 +113,19 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | $_oZip = new ZipArchive(); |
116 | - if ( ! $_oZip->open( $this->sDestination, ZIPARCHIVE::CREATE ) ) { |
|
116 | + if ( !$_oZip->open( $this->sDestination, ZIPARCHIVE::CREATE ) ) { |
|
117 | 117 | return false; |
118 | 118 | } |
119 | 119 | |
120 | 120 | $this->sSource = $this->_getSanitizedSourcePath( $this->sSource ); |
121 | 121 | // $this->sSource = str_replace( '\\', '/', realpath( $this->sSource ) ); |
122 | 122 | |
123 | - $_aMethods = array( |
|
123 | + $_aMethods = array( |
|
124 | 124 | 'unknown' => '_replyToReturnFalse', |
125 | 125 | 'directory' => '_replyToCompressDirectory', |
126 | 126 | 'file' => '_replyToCompressFile', |
127 | 127 | ); |
128 | - $_sMethodName = $_aMethods[ $this->_getSourceType( $this->sSource ) ]; |
|
128 | + $_sMethodName = $_aMethods[ $this->_getSourceType( $this->sSource ) ]; |
|
129 | 129 | return call_user_func_array( |
130 | 130 | array( $this, $_sMethodName ), |
131 | 131 | array( |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @return boolean True on success, false otherwise. |
154 | 154 | * @internal |
155 | 155 | */ |
156 | - public function _replyToCompressDirectory( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks=array(), $bIncludeDir=false, array $aAdditionalSourceDirs=array() ) { |
|
156 | + public function _replyToCompressDirectory( ZipArchive $oZip, $sSourceDirPath, array $aCallbacks = array(), $bIncludeDir = false, array $aAdditionalSourceDirs = array() ) { |
|
157 | 157 | |
158 | 158 | $_sArchiveRootDirName = ''; |
159 | 159 | |
@@ -184,11 +184,11 @@ discard block |
||
184 | 184 | * @return void |
185 | 185 | * @internal |
186 | 186 | */ |
187 | - private function _addArchiveItems( $oZip, $aSourceDirPaths, $aCallbacks, $sRootDirName='' ) { |
|
187 | + private function _addArchiveItems( $oZip, $aSourceDirPaths, $aCallbacks, $sRootDirName = '' ) { |
|
188 | 188 | |
189 | - $sRootDirName = $sRootDirName ? rtrim( $sRootDirName, '/' ) . '/' : ''; |
|
189 | + $sRootDirName = $sRootDirName ? rtrim( $sRootDirName, '/' ).'/' : ''; |
|
190 | 190 | |
191 | - foreach( $aSourceDirPaths as $_isIndexOrRelativeDirPath => $_sSourceDirPath ) { |
|
191 | + foreach ( $aSourceDirPaths as $_isIndexOrRelativeDirPath => $_sSourceDirPath ) { |
|
192 | 192 | |
193 | 193 | $_sSourceDirPath = $this->_getSanitizedSourcePath( $_sSourceDirPath ); |
194 | 194 | $_sInsideDirPrefix = is_integer( $_isIndexOrRelativeDirPath ) |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | : $_isIndexOrRelativeDirPath; |
197 | 197 | |
198 | 198 | // Add a directory inside the compressing directory. |
199 | - if( $_sInsideDirPrefix ) { |
|
199 | + if ( $_sInsideDirPrefix ) { |
|
200 | 200 | $this->_addRelativeDir( |
201 | 201 | $oZip, |
202 | 202 | $_sInsideDirPrefix, |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $_sSourceDirPath, |
215 | 215 | $_sIterationItem, |
216 | 216 | $aCallbacks, |
217 | - $sRootDirName . $_sInsideDirPrefix |
|
217 | + $sRootDirName.$_sInsideDirPrefix |
|
218 | 218 | ); |
219 | 219 | } |
220 | 220 | } |
@@ -229,8 +229,8 @@ discard block |
||
229 | 229 | $sRelativeDirPath = str_replace( '\\', '/', $sRelativeDirPath ); |
230 | 230 | $_aPathPartsParse = array_filter( explode( '/', $sRelativeDirPath ) ); |
231 | 231 | $_aDirPath = array(); |
232 | - foreach( $_aPathPartsParse as $_sDirName ) { |
|
233 | - $_aDirPath[] = $_sDirName; |
|
232 | + foreach ( $_aPathPartsParse as $_sDirName ) { |
|
233 | + $_aDirPath[ ] = $_sDirName; |
|
234 | 234 | $this->_addEmptyDir( |
235 | 235 | $oZip, |
236 | 236 | implode( '/', $_aDirPath ), |
@@ -250,10 +250,10 @@ discard block |
||
250 | 250 | * @return void |
251 | 251 | * @internal |
252 | 252 | */ |
253 | - private function _addArchiveItem( ZipArchive $oZip, $sSource, $_sIterationItem, array $aCallbacks, $sInsidePathPrefix='' ) { |
|
253 | + private function _addArchiveItem( ZipArchive $oZip, $sSource, $_sIterationItem, array $aCallbacks, $sInsidePathPrefix = '' ) { |
|
254 | 254 | |
255 | 255 | $_sIterationItem = str_replace( '\\', '/', $_sIterationItem ); |
256 | - $sInsidePathPrefix = rtrim( $sInsidePathPrefix, '/' ) . '/'; // add a trailing slash |
|
256 | + $sInsidePathPrefix = rtrim( $sInsidePathPrefix, '/' ).'/'; // add a trailing slash |
|
257 | 257 | |
258 | 258 | // Ignore "." and ".." folders |
259 | 259 | if ( |
@@ -271,18 +271,18 @@ discard block |
||
271 | 271 | if ( true === is_dir( $_sIterationItem ) ) { |
272 | 272 | $this->_addEmptyDir( |
273 | 273 | $oZip, |
274 | - $sInsidePathPrefix . str_replace( |
|
275 | - $sSource . '/', |
|
274 | + $sInsidePathPrefix.str_replace( |
|
275 | + $sSource.'/', |
|
276 | 276 | '', |
277 | - $_sIterationItem . '/' |
|
277 | + $_sIterationItem.'/' |
|
278 | 278 | ), |
279 | 279 | $aCallbacks[ 'directory_name' ] |
280 | 280 | ); |
281 | 281 | } else if ( true === is_file( $_sIterationItem ) ) { |
282 | 282 | $this->_addFromString( |
283 | 283 | $oZip, |
284 | - $sInsidePathPrefix . str_replace( |
|
285 | - $sSource . '/', |
|
284 | + $sInsidePathPrefix.str_replace( |
|
285 | + $sSource.'/', |
|
286 | 286 | '', |
287 | 287 | $_sIterationItem |
288 | 288 | ), |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * @return boolean True on success, false otherwise. |
313 | 313 | * @internal |
314 | 314 | */ |
315 | - public function _replyToCompressFile( ZipArchive $oZip, $sSourceFilePath, $aCallbacks=null ) { |
|
315 | + public function _replyToCompressFile( ZipArchive $oZip, $sSourceFilePath, $aCallbacks = null ) { |
|
316 | 316 | $this->_addFromString( |
317 | 317 | $oZip, |
318 | 318 | basename( $sSourceFilePath ), |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | * @internal |
346 | 346 | */ |
347 | 347 | private function isFeasible( $sSource ) { |
348 | - if ( ! extension_loaded( 'zip' ) ) { |
|
348 | + if ( !extension_loaded( 'zip' ) ) { |
|
349 | 349 | return false; |
350 | 350 | } |
351 | 351 | return file_exists( $sSource ); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | */ |
372 | 372 | private function _addEmptyDir( ZipArchive $oZip, $sInsidePath, $oCallable ) { |
373 | 373 | $sInsidePath = $this->_getFilteredArchivePath( $sInsidePath, $oCallable ); |
374 | - if ( ! strlen( $sInsidePath ) ) { |
|
374 | + if ( !strlen( $sInsidePath ) ) { |
|
375 | 375 | return; |
376 | 376 | } |
377 | 377 | $oZip->addEmptyDir( ltrim( $sInsidePath, '/' ) ); |
@@ -384,10 +384,10 @@ discard block |
||
384 | 384 | * @return void |
385 | 385 | * @internal |
386 | 386 | */ |
387 | - private function _addFromString( ZipArchive $oZip, $sInsidePath, $sSourceContents='', array $aCallbacks=array() ) { |
|
387 | + private function _addFromString( ZipArchive $oZip, $sInsidePath, $sSourceContents = '', array $aCallbacks = array() ) { |
|
388 | 388 | |
389 | 389 | $sInsidePath = $this->_getFilteredArchivePath( $sInsidePath, $aCallbacks[ 'file_name' ] ); |
390 | - if ( ! strlen( $sInsidePath ) ) { |
|
390 | + if ( !strlen( $sInsidePath ) ) { |
|
391 | 391 | return; |
392 | 392 | } |
393 | 393 | $oZip->addFromString( |
@@ -196,7 +196,6 @@ |
||
196 | 196 | * For common hooks throughout the other factory components, see [Base Factory](./package-AdminPageFramework.Common.Factory.html). |
197 | 197 | * |
198 | 198 | * <h3>Factory Specific Hooks</h3> |
199 | - |
|
200 | 199 | * <h4> Action Hooks</h4> |
201 | 200 | * <ul> |
202 | 201 | * <li>**load_{page slug}** – [2.1.0+] triggered when the framework's page is loaded before the header gets sent. This will not be triggered in the admin pages that are not registered by the framework. The first parameter: class object [3.1.2+].</li> |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function replyToDoAction() { |
41 | 41 | AdminPageFramework_WPUtility::setTransient( |
42 | - AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver', |
|
42 | + AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX.'devver', |
|
43 | 43 | $this->___getVersion(), // data - if an error occurs, an empty string will be given |
44 | 44 | 604800 // for one week |
45 | 45 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $_oUtil = new AdminPageFramework_WPUtility; |
55 | 55 | $_aHeaders = $_oUtil->getScriptData( |
56 | 56 | $this->___getPageBody(), |
57 | - '', /// context |
|
57 | + '', /// context |
|
58 | 58 | array( 'version' => 'Version' ) |
59 | 59 | ); |
60 | 60 | return $_oUtil->getElement( |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | ? $aTabDefinition[ 'tab_slug' ] |
50 | 50 | : ''; |
51 | 51 | |
52 | - if ( ! $this->sTabSlug ) { |
|
52 | + if ( !$this->sTabSlug ) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | if ( $aTabDefinition[ 'tab_slug' ] ) { |
74 | 74 | add_action( |
75 | - "load_{$sPageSlug}_{$aTabDefinition['tab_slug']}", |
|
75 | + "load_{$sPageSlug}_{$aTabDefinition[ 'tab_slug' ]}", |
|
76 | 76 | array( $this, 'replyToLoadTab' ) |
77 | 77 | ); |
78 | 78 | add_action( |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | |
26 | 26 | // Tabs |
27 | 27 | new AdminPageFrameworkLoader_AdminPage_Help_Information( |
28 | - $oFactory, // factory object |
|
29 | - $this->sPageSlug, // page slug |
|
28 | + $oFactory, // factory object |
|
29 | + $this->sPageSlug, // page slug |
|
30 | 30 | array( // tab definition |
31 | 31 | 'tab_slug' => 'information', |
32 | 32 | 'title' => __( 'Support', 'admin-page-framework-loader' ), |
@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | 'title' => __( 'Getting Started', 'admin-page-framework-loader' ), |
41 | 41 | 'url' => add_query_arg( |
42 | 42 | array( |
43 | - 'page' => AdminPageFrameworkLoader_Registry::$aAdminPages['about'], |
|
43 | + 'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ], |
|
44 | 44 | // 'tab' => 'guide', |
45 | 45 | ), |
46 | 46 | admin_url( 'index.php' ) // Dashboard |
47 | - ) . '#section-getting_started__' |
|
47 | + ).'#section-getting_started__' |
|
48 | 48 | ) |
49 | 49 | ); |
50 | 50 | new AdminPageFrameworkLoader_AdminPage_Help_FAQ( |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'title' => __( 'About', 'admin-page-framework-loader' ), |
88 | 88 | 'url' => add_query_arg( |
89 | 89 | array( |
90 | - 'page' => AdminPageFrameworkLoader_Registry::$aAdminPages['about'] |
|
90 | + 'page' => AdminPageFrameworkLoader_Registry::$aAdminPages[ 'about' ] |
|
91 | 91 | ), |
92 | 92 | admin_url( 'index.php' ) // Dashboard |
93 | 93 | ) |
@@ -105,17 +105,17 @@ discard block |
||
105 | 105 | |
106 | 106 | // Page meta boxes |
107 | 107 | new AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks( |
108 | - null, // meta box id - passing null will make it auto generate |
|
108 | + null, // meta box id - passing null will make it auto generate |
|
109 | 109 | __( 'Resources', 'admin-page-framework-loader' ), // title |
110 | 110 | array( // page slugs |
111 | 111 | AdminPageFrameworkLoader_Registry::$aAdminPages[ 'help' ], |
112 | 112 | ), |
113 | - 'side', // context |
|
113 | + 'side', // context |
|
114 | 114 | 'default' // priority |
115 | 115 | ); |
116 | 116 | |
117 | 117 | $oFactory->enqueueStyle( |
118 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/help.css', |
|
118 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/css/help.css', |
|
119 | 119 | $this->sPageSlug |
120 | 120 | ); |
121 | 121 |