@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return array |
49 | 49 | */ |
50 | - public function get( $iItems=0 ) { |
|
50 | + public function get( $iItems = 0 ) { |
|
51 | 51 | |
52 | 52 | $_aOutput = array(); |
53 | 53 | $_aURLs = $this->_aURLs; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $_aOutput; |
57 | 57 | } |
58 | 58 | |
59 | - $_oFeed = fetch_feed( $_aURLs ); |
|
59 | + $_oFeed = fetch_feed( $_aURLs ); |
|
60 | 60 | foreach ( $_oFeed->get_items() as $_oItem ) { |
61 | 61 | $_aOutput[ $_oItem->get_title() ] = array( |
62 | 62 | 'content' => $_oItem->get_content(), |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'title' => $_oItem->get_title(), |
65 | 65 | 'date' => $_oItem->get_date( 'j F Y, g:i a' ), |
66 | 66 | 'author' => $_oItem->get_author(), |
67 | - 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
67 | + 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | $_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
32 | 32 | if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) { |
33 | - include( $_sMaingPluginFileName ); |
|
33 | + include( $_sMaingPluginFileName ); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | if ( class_exists( 'AdminPageFrameworkLoader_Registry' ) ) : |
@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | * @since 3.5.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( !defined( 'ABSPATH' ) ) { |
|
13 | 13 | return; |
14 | 14 | } |
15 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
15 | +if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
16 | 16 | return; |
17 | 17 | } |
18 | 18 | |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | * We are going to load the main file to get the registry class. And in the main file, |
22 | 22 | * if this constant is set, it will return after declaring the registry class. |
23 | 23 | **/ |
24 | -if ( ! defined( 'DOING_UNINSTALL' ) ) { |
|
25 | - define( 'DOING_UNINSTALL', true ); |
|
24 | +if ( !defined( 'DOING_UNINSTALL' ) ) { |
|
25 | + define( 'DOING_UNINSTALL', true ); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Set the main plugin file name here. |
30 | 30 | */ |
31 | -$_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
|
32 | -if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) { |
|
31 | +$_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
|
32 | +if ( file_exists( dirname( __FILE__ ).'/'.$_sMaingPluginFileName ) ) { |
|
33 | 33 | include( $_sMaingPluginFileName ); |
34 | 34 | } |
35 | 35 | |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | // Delete transients |
42 | 42 | $_aPrefixes = array( |
43 | 43 | AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX, // the plugin transients |
44 | - 'apf_', // the admin page framework transients |
|
44 | + 'apf_', // the admin page framework transients |
|
45 | 45 | ); |
46 | 46 | $_oWPDB = ${ 'GLOBALS' }[ 'wpdb' ]; |
47 | - foreach( $_aPrefixes as $_sPrefix ) { |
|
48 | - if ( ! $_sPrefix ) { |
|
47 | + foreach ( $_aPrefixes as $_sPrefix ) { |
|
48 | + if ( !$_sPrefix ) { |
|
49 | 49 | continue; |
50 | 50 | } |
51 | 51 | $_oWPDB->query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" ); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ); |
46 | 46 | $_oWPDB = ${ 'GLOBALS' }[ 'wpdb' ]; |
47 | 47 | foreach( $_aPrefixes as $_sPrefix ) { |
48 | - if ( ! $_sPrefix ) { |
|
48 | + if ( ! $_sPrefix ) { |
|
49 | 49 | continue; |
50 | 50 | } |
51 | 51 | $_oWPDB->query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" ); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @since DEVVER |
28 | 28 | * @return void |
29 | 29 | */ |
30 | - public function construct() { |
|
30 | + public function construct() { |
|
31 | 31 | $this->_addDefaultResources(); |
32 | 32 | } |
33 | 33 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ), |
35 | 35 | 2 => __( 'Header already sent.', 'admin-page-framework-loader' ), |
36 | 36 | ); |
37 | - if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
37 | + if ( !class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
38 | 38 | return; |
39 | 39 | } |
40 | 40 | new AdminPageFramework_AdminNotice( |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ), |
35 | 35 | 2 => __( 'Header already sent.', 'admin-page-framework-loader' ), |
36 | 36 | ); |
37 | - if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
37 | + if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) { |
|
38 | 38 | return; |
39 | 39 | } |
40 | 40 | new AdminPageFramework_AdminNotice( |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | $_aItems = $this->getContentsByHeader( $this->getReadmeContents(), 3 ); |
25 | 25 | $_iLastIndex = count( $_aItems ) - 1; |
26 | - foreach( $_aItems as $_iIndex => $_aContent ) { |
|
26 | + foreach ( $_aItems as $_iIndex => $_aContent ) { |
|
27 | 27 | |
28 | 28 | $_oParser = new AdminPageFramework_WPReadmeParser; |
29 | 29 | $_oParser->setText( $_aContent[ 1 ] ); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $oAdminPage->addSettingSections( |
32 | 32 | $this->sPageSlug, // the target page slug |
33 | 33 | array( |
34 | - 'section_id' => 'examples_' . $_iIndex, |
|
34 | + 'section_id' => 'examples_'.$_iIndex, |
|
35 | 35 | 'title' => $_aContent[ 0 ], |
36 | 36 | 'collapsible' => array( |
37 | 37 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - private function getReadMeContents() { |
|
55 | + private function getReadMeContents() { |
|
56 | 56 | return $this->_getReadmeContents( |
57 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/examples.txt', |
|
57 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/examples.txt', |
|
58 | 58 | '', |
59 | 59 | array( 'Examples' ) |
60 | 60 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | 58 | AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
59 | 59 | '', // TOC title |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function replyToLoadTab( $oAdminPage ) { |
23 | 23 | |
24 | - $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
25 | - foreach( $_aSections as $_iIndex => $_aContent ) { |
|
24 | + $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
25 | + foreach ( $_aSections as $_iIndex => $_aContent ) { |
|
26 | 26 | |
27 | 27 | $_sTitle = $_aContent[ 0 ]; |
28 | 28 | $_sContent = $this->_getFAQSubSections( $_aContent[ 1 ] ); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $oAdminPage->addSettingSections( |
33 | 33 | $this->sPageSlug, // the target page slug |
34 | 34 | array( |
35 | - 'section_id' => 'faq_sections_' . $_iIndex, |
|
35 | + 'section_id' => 'faq_sections_'.$_iIndex, |
|
36 | 36 | 'tab_slug' => $this->sTabSlug, |
37 | 37 | 'section_tab_slug' => 'apf_faq', |
38 | 38 | 'title' => $_sTitle, |
@@ -54,17 +54,17 @@ discard block |
||
54 | 54 | |
55 | 55 | $_aNestedSections = array(); |
56 | 56 | $_iLastIndex = count( $aItems ) - 1; |
57 | - foreach( $aItems as $_iIndex => $_aContent ) { |
|
57 | + foreach ( $aItems as $_iIndex => $_aContent ) { |
|
58 | 58 | |
59 | - $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
59 | + $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
60 | 60 | |
61 | 61 | // If no sections, return the contents of the first item. |
62 | - if ( ! $_aContent[ 0 ] ) { |
|
62 | + if ( !$_aContent[ 0 ] ) { |
|
63 | 63 | return $_oParser->get(); |
64 | 64 | } |
65 | 65 | |
66 | - $_aNestedSections[] = array( |
|
67 | - 'section_id' => 'faq_item_' . $_iIndex, |
|
66 | + $_aNestedSections[ ] = array( |
|
67 | + 'section_id' => 'faq_item_'.$_iIndex, |
|
68 | 68 | 'title' => $_aContent[ 0 ], |
69 | 69 | 'collapsible' => array( |
70 | 70 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | return $_aNestedSections; |
81 | 81 | |
82 | 82 | } |
83 | - private function getFAQContents() { |
|
83 | + private function getFAQContents() { |
|
84 | 84 | |
85 | - $_aReplacements = array( |
|
85 | + $_aReplacements = array( |
|
86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
87 | 87 | '%WP_ADMIN_URL%' => admin_url(), |
88 | 88 | ); |
89 | 89 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( |
90 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', |
|
90 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', |
|
91 | 91 | $_aReplacements |
92 | 92 | ); |
93 | 93 | return $_oWPReadmeParser->getRawSection( 'Frequently asked questions' ); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | return $_aNestedSections; |
81 | 81 | |
82 | 82 | } |
83 | - private function getFAQContents() { |
|
83 | + private function getFAQContents() { |
|
84 | 84 | |
85 | 85 | $_aReplacements = array( |
86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | |
26 | 26 | $_aItems = $this->getContentsByHeader( $this->getReadmeContents(), 4 ); |
27 | 27 | $_iLastIndex = count( $_aItems ) - 1; |
28 | - foreach( $_aItems as $_iIndex => $_aContent ) { |
|
28 | + foreach ( $_aItems as $_iIndex => $_aContent ) { |
|
29 | 29 | |
30 | 30 | $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
31 | 31 | $_sContent = $_oParser->get(); |
32 | 32 | $oAdminPage->addSettingSections( |
33 | 33 | $this->sPageSlug, // the target page slug |
34 | 34 | array( |
35 | - 'section_id' => 'tips_' . $_iIndex, |
|
35 | + 'section_id' => 'tips_'.$_iIndex, |
|
36 | 36 | 'title' => $_aContent[ 0 ], |
37 | 37 | 'collapsible' => array( |
38 | 38 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
|
58 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', // source path |
|
59 | 59 | '', // TOC title |
60 | 60 | array( 'Other Notes' ) // sections |
61 | 61 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | 58 | AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
59 | 59 | '', // TOC title |
@@ -9,12 +9,12 @@ |
||
9 | 9 | * @since 3.5.0 |
10 | 10 | */ |
11 | 11 | |
12 | - /** |
|
13 | - * |
|
14 | - * |
|
15 | - * @action do admin_page_framework_loader_action_before_loading_demo |
|
16 | - * @action do admin_page_framework_loader_action_after_loading_demo |
|
17 | - */ |
|
12 | + /** |
|
13 | + * |
|
14 | + * |
|
15 | + * @action do admin_page_framework_loader_action_before_loading_demo |
|
16 | + * @action do admin_page_framework_loader_action_after_loading_demo |
|
17 | + */ |
|
18 | 18 | class AdminPageFrameworkLoader_Demo { |
19 | 19 | |
20 | 20 | public function __construct() { |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | public function __construct() { |
21 | 21 | |
22 | - if ( ! $this->_shouldLoadDemo() ) { |
|
22 | + if ( !$this->_shouldLoadDemo() ) { |
|
23 | 23 | return; |
24 | 24 | } |
25 | 25 | |
26 | 26 | do_action( 'admin_page_framework_loader_action_before_loading_demo' ); |
27 | 27 | |
28 | 28 | // Include example components. |
29 | - include( AdminPageFrameworkLoader_Registry::$sDirPath . '/example/admin-page-framework-demo-bootstrap.php' ); |
|
29 | + include( AdminPageFrameworkLoader_Registry::$sDirPath.'/example/admin-page-framework-demo-bootstrap.php' ); |
|
30 | 30 | |
31 | 31 | do_action( 'admin_page_framework_loader_action_after_loading_demo' ); |
32 | 32 | |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | |
44 | 44 | // Check if the demo is enabled. |
45 | 45 | $_oOption = AdminPageFrameworkLoader_Option::getInstance(); |
46 | - if ( ! $_oOption->get( 'enable_admin_pages' ) ) { |
|
46 | + if ( !$_oOption->get( 'enable_admin_pages' ) ) { |
|
47 | 47 | return false; |
48 | 48 | } |
49 | - if ( ! $_oOption->get( 'enable_demo' ) ) { |
|
49 | + if ( !$_oOption->get( 'enable_demo' ) ) { |
|
50 | 50 | $this->_setPointerToolTips(); |
51 | 51 | return false; |
52 | 52 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | 'options' => array( |
75 | 75 | 'content' => sprintf( '<h3> %1$s </h3> <p> %2$s </p>', |
76 | 76 | AdminPageFrameworkLoader_Registry::NAME, |
77 | - __( 'Check out the functionality of Admin Page Framework by enabling the demo.','admin-page-framework-loader' ) |
|
77 | + __( 'Check out the functionality of Admin Page Framework by enabling the demo.', 'admin-page-framework-loader' ) |
|
78 | 78 | ), |
79 | 79 | 'position' => array( 'edge' => 'left', 'align' => 'middle' ) |
80 | 80 | ) |
@@ -232,6 +232,8 @@ discard block |
||
232 | 232 | * @remark The meta box class may be instantiated multiple times so prevent echoing the same styles multiple times. |
233 | 233 | * @parameter string $sIDPrefix The id selector embedded in the script tag. |
234 | 234 | * @parameter string $sClassName The class name that identify the call group. This is important for the meta-box class because it can be instantiated multiple times in one particular page. |
235 | + * @param string $sIDPrefix |
|
236 | + * @param string $sClassName |
|
235 | 237 | */ |
236 | 238 | protected function _printCommonStyles( $sIDPrefix, $sClassName ) { |
237 | 239 | |
@@ -315,6 +317,8 @@ discard block |
||
315 | 317 | * @remark The meta box class may be instantiated multiple times so prevent echoing the same styles multiple times. |
316 | 318 | * @parametr string $sIDPrefix The id selector embedded in the script tag. |
317 | 319 | * @parametr string $sClassName The class name that identify the call group. This is important for the meta-box class because it can be instantiated multiple times in one particular page. |
320 | + * @param string $sIDPrefix |
|
321 | + * @param string $sClassName |
|
318 | 322 | */ |
319 | 323 | protected function _printCommonScripts( $sIDPrefix, $sClassName ) { |
320 | 324 |
@@ -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 ] ); |
@@ -37,19 +37,19 @@ discard block |
||
37 | 37 | |
38 | 38 | /* The system internal keys. */ |
39 | 39 | 'sSRC' => null, |
40 | - 'aPostTypes' => array(), // for meta box class |
|
40 | + 'aPostTypes' => array(), // for meta box class |
|
41 | 41 | 'sPageSlug' => null, |
42 | 42 | 'sTabSlug' => null, |
43 | - 'sType' => null, // script or style |
|
43 | + 'sType' => null, // script or style |
|
44 | 44 | |
45 | 45 | /* The below keys are for users. */ |
46 | 46 | 'handle_id' => null, |
47 | 47 | 'dependencies' => array(), |
48 | - 'version' => false, // although the type should be string, the wp_enqueue_...() functions want false as the default value. |
|
49 | - 'translation' => array(), // only for scripts |
|
50 | - 'in_footer' => false, // only for scripts |
|
51 | - 'media' => 'all', // only for styles |
|
52 | - 'attributes' => array(), // 3.3.0+ - the attribute array |
|
48 | + 'version' => false, // although the type should be string, the wp_enqueue_...() functions want false as the default value. |
|
49 | + 'translation' => array(), // only for scripts |
|
50 | + 'in_footer' => false, // only for scripts |
|
51 | + 'media' => 'all', // only for styles |
|
52 | + 'attributes' => array(), // 3.3.0+ - the attribute array |
|
53 | 53 | |
54 | 54 | ); |
55 | 55 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @remark This value should be overridden in an extended class. |
61 | 61 | * @internal |
62 | 62 | */ |
63 | - protected $_sClassSelector_Style = 'admin-page-framework-style'; |
|
63 | + protected $_sClassSelector_Style = 'admin-page-framework-style'; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Stores the class selector used to the class-specific script. |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @remark This value should be overridden in an extended class. |
70 | 70 | * @internal |
71 | 71 | */ |
72 | - protected $_sClassSelector_Script = 'admin-page-framework-script'; |
|
72 | + protected $_sClassSelector_Script = 'admin-page-framework-script'; |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Stores hand IDs by resource url to look up handle id and add custom arguments. |
@@ -143,8 +143,8 @@ discard block |
||
143 | 143 | * @internal |
144 | 144 | */ |
145 | 145 | |
146 | - public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {} |
|
147 | - public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {} |
|
146 | + public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {} |
|
147 | + public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {} |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * A helper function for the _replyToEnqueueScripts() and the `_replyToEnqueueStyle()` methods. |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | $_sAttributes = $this->getAttributes( $_aAttributes ); |
208 | - $_sModifiedURL = $sSanitizedURL . "' " . rtrim( $_sAttributes, "'\"" ); // '" |
|
208 | + $_sModifiedURL = $sSanitizedURL."' ".rtrim( $_sAttributes, "'\"" ); // '" |
|
209 | 209 | |
210 | 210 | return $_sModifiedURL; |
211 | 211 | |
@@ -253,10 +253,10 @@ discard block |
||
253 | 253 | */ |
254 | 254 | private function _getStyleTag( $oCaller, $sIDPrefix ) { |
255 | 255 | |
256 | - $_sStyle = $this->addAndApplyFilters( |
|
256 | + $_sStyle = $this->addAndApplyFilters( |
|
257 | 257 | $oCaller, |
258 | 258 | array( |
259 | - "style_common_admin_page_framework", // 3.2.1+ |
|
259 | + "style_common_admin_page_framework", // 3.2.1+ |
|
260 | 260 | "style_common_{$this->oProp->sClassName}", |
261 | 261 | ), |
262 | 262 | AdminPageFramework_CSS::getDefaultCSS() |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | // : $this->getCSSMinified( $_sStyle ); |
270 | 270 | |
271 | 271 | if ( $_sStyle ) { |
272 | - echo "<style type='text/css' id='" . esc_attr( $sIDPrefix ) . "'>" |
|
272 | + echo "<style type='text/css' id='".esc_attr( $sIDPrefix )."'>" |
|
273 | 273 | . $_sStyle |
274 | 274 | . "</style>"; |
275 | 275 | } |
@@ -283,10 +283,10 @@ discard block |
||
283 | 283 | */ |
284 | 284 | private function _getIEStyleTag( $oCaller, $sIDPrefix ) { |
285 | 285 | |
286 | - $_sStyleIE = $this->addAndApplyFilters( |
|
286 | + $_sStyleIE = $this->addAndApplyFilters( |
|
287 | 287 | $oCaller, |
288 | 288 | array( |
289 | - "style_ie_common_admin_page_framework", // 3.2.1+ |
|
289 | + "style_ie_common_admin_page_framework", // 3.2.1+ |
|
290 | 290 | "style_ie_common_{$this->oProp->sClassName}", |
291 | 291 | ), |
292 | 292 | AdminPageFramework_CSS::getDefaultCSSIE() |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | // ? trim( $_sStyleIE ) |
298 | 298 | // : $this->getCSSMinified( $_sStyleIE ); |
299 | 299 | return $_sStyleIE |
300 | - ? "<!--[if IE]><style type='text/css' id='" . esc_attr( $sIDPrefix . "-ie" ) . "'>" |
|
300 | + ? "<!--[if IE]><style type='text/css' id='".esc_attr( $sIDPrefix."-ie" )."'>" |
|
301 | 301 | . $_sStyleIE |
302 | 302 | . "</style><![endif]-->" |
303 | 303 | : ''; |
@@ -330,14 +330,14 @@ discard block |
||
330 | 330 | $_sScript = $this->addAndApplyFilters( |
331 | 331 | $this->oProp->oCaller, |
332 | 332 | array( |
333 | - "script_common_admin_page_framework", // 3.2.1+ |
|
333 | + "script_common_admin_page_framework", // 3.2.1+ |
|
334 | 334 | "script_common_{$this->oProp->sClassName}", |
335 | 335 | ), |
336 | 336 | AdminPageFramework_Property_Base::$_sDefaultScript |
337 | 337 | ); |
338 | 338 | $_sScript = trim( $_sScript ); |
339 | 339 | if ( $_sScript ) { |
340 | - echo "<script type='text/javascript' id='" . esc_attr( $sIDPrefix ) . "'>" |
|
340 | + echo "<script type='text/javascript' id='".esc_attr( $sIDPrefix )."'>" |
|
341 | 341 | . '/* <![CDATA[ */' |
342 | 342 | . $_sScript |
343 | 343 | . '/* ]]> */' |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | */ |
357 | 357 | protected function _printClassSpecificStyles( $sIDPrefix ) { |
358 | 358 | |
359 | - $_oCaller = $this->oProp->oCaller; |
|
359 | + $_oCaller = $this->oProp->oCaller; |
|
360 | 360 | echo $this->_getClassSpecificStyleTag( $_oCaller, $sIDPrefix ); |
361 | 361 | echo $this->_getClassSpecificIEStyleTag( $_oCaller, $sIDPrefix ); |
362 | 362 | |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | // : $this->getCSSMinified( $_sStyle ); |
388 | 388 | if ( $_sStyle ) { |
389 | 389 | $_iCallCount++; |
390 | - return "<style type='text/css' id='" . esc_attr( "{$sIDPrefix}-{$this->oProp->sClassName}_{$_iCallCount}" ) . "'>" |
|
390 | + return "<style type='text/css' id='".esc_attr( "{$sIDPrefix}-{$this->oProp->sClassName}_{$_iCallCount}" )."'>" |
|
391 | 391 | . $_sStyle |
392 | 392 | . "</style>"; |
393 | 393 | } |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | // : $this->getCSSMinified( $_sStyleIE ); |
416 | 416 | if ( $_sStyleIE ) { |
417 | 417 | $_iCallCountIE++; |
418 | - return "<!--[if IE]><style type='text/css' id='" . esc_attr( "{$sIDPrefix}-ie-{$this->oProp->sClassName}_{$_iCallCountIE}" ) . "'>" |
|
418 | + return "<!--[if IE]><style type='text/css' id='".esc_attr( "{$sIDPrefix}-ie-{$this->oProp->sClassName}_{$_iCallCountIE}" )."'>" |
|
419 | 419 | . $_sStyleIE |
420 | 420 | . "</style><![endif]-->"; |
421 | 421 | } |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | $_sScript = trim( $_sScript ); |
444 | 444 | if ( $_sScript ) { |
445 | 445 | $_iCallCount++; |
446 | - echo "<script type='text/javascript' id='" . esc_attr( "{$sIDPrefix}-{$this->oProp->sClassName}_{$_iCallCount}" ) . "'>" |
|
446 | + echo "<script type='text/javascript' id='".esc_attr( "{$sIDPrefix}-{$this->oProp->sClassName}_{$_iCallCount}" )."'>" |
|
447 | 447 | . '/* <![CDATA[ */' |
448 | 448 | . $_sScript |
449 | 449 | . '/* ]]> */' |
@@ -468,12 +468,12 @@ discard block |
||
468 | 468 | public function _replyToAddStyle() { |
469 | 469 | |
470 | 470 | $_oCaller = $this->oProp->oCaller; |
471 | - if ( ! $_oCaller->_isInThePage() ) { |
|
471 | + if ( !$_oCaller->_isInThePage() ) { |
|
472 | 472 | return; |
473 | 473 | } |
474 | 474 | |
475 | 475 | $this->_printCommonStyles( 'admin-page-framework-style-common', get_class() ); |
476 | - $this->_printClassSpecificStyles( $this->_sClassSelector_Style . '-' . $this->oProp->sStructureType ); |
|
476 | + $this->_printClassSpecificStyles( $this->_sClassSelector_Style.'-'.$this->oProp->sStructureType ); |
|
477 | 477 | |
478 | 478 | } |
479 | 479 | /** |
@@ -488,12 +488,12 @@ discard block |
||
488 | 488 | public function _replyToAddScript() { |
489 | 489 | |
490 | 490 | $_oCaller = $this->oProp->oCaller; |
491 | - if ( ! $_oCaller->_isInThePage() ) { |
|
491 | + if ( !$_oCaller->_isInThePage() ) { |
|
492 | 492 | return; |
493 | 493 | } |
494 | 494 | |
495 | 495 | $this->_printCommonScripts( 'admin-page-framework-script-common', get_class() ); |
496 | - $this->_printClassSpecificScripts( $this->_sClassSelector_Script . '-' . $this->oProp->sStructureType ); |
|
496 | + $this->_printClassSpecificScripts( $this->_sClassSelector_Script.'-'.$this->oProp->sStructureType ); |
|
497 | 497 | |
498 | 498 | } |
499 | 499 | |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | * @internal |
546 | 546 | */ |
547 | 547 | public function _replyToEnqueueStyles() { |
548 | - foreach( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) { |
|
548 | + foreach ( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) { |
|
549 | 549 | $this->_enqueueSRCByCondition( $_aEnqueuingStyle ); |
550 | 550 | unset( $this->oProp->aEnqueuingStyles[ $_sKey ] ); |
551 | 551 | } |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | * @internal |
563 | 563 | */ |
564 | 564 | public function _replyToEnqueueScripts() { |
565 | - foreach( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) { |
|
565 | + foreach ( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) { |
|
566 | 566 | $this->_enqueueSRCByCondition( $_aEnqueuingScript ); |
567 | 567 | unset( $this->oProp->aEnqueuingScripts[ $_sKey ] ); |
568 | 568 | } |