@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @since 3.6.0 |
26 | 26 | */ |
27 | - public $sContext = ''; |
|
27 | + public $sContext = ''; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | class AdminPageFramework_Form_View___Attribute_SectionTable extends AdminPageFramework_Form_View___Attribute_Base { |
19 | 19 | |
20 | - public $sContext = 'section_table'; |
|
20 | + public $sContext = 'section_table'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Returns an attribute array. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | protected function _getAttributes() { |
29 | 29 | return array( |
30 | - 'id' => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex |
|
30 | + 'id' => 'section_table-'.$this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex |
|
31 | 31 | 'class' => $this->getClassAttribute( |
32 | 32 | 'form-table', |
33 | 33 | 'admin-page-framework-section-table' // referred by the collapsible section script |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @since 3.6.0 |
26 | 26 | * @return array |
27 | 27 | */ |
28 | - protected function _getAttributes() { |
|
28 | + protected function _getAttributes() { |
|
29 | 29 | return array( |
30 | 30 | 'id' => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex |
31 | 31 | 'class' => $this->getClassAttribute( |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | protected function _get() { |
25 | 25 | |
26 | - $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
26 | + $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
27 | 27 | return <<<CSSRULES |
28 | 28 | .admin-page-framework-form-warning { |
29 | 29 | font-weight: bold; |
@@ -23,11 +23,11 @@ |
||
23 | 23 | */ |
24 | 24 | protected function _get() { |
25 | 25 | |
26 | - $_sSpinnerPath = $this->getWPAdminDirPath() . '/images/wpspin_light-2x.gif'; |
|
27 | - if ( ! file_exists( $_sSpinnerPath ) ) { |
|
26 | + $_sSpinnerPath = $this->getWPAdminDirPath().'/images/wpspin_light-2x.gif'; |
|
27 | + if ( !file_exists( $_sSpinnerPath ) ) { |
|
28 | 28 | return ''; |
29 | 29 | } |
30 | - $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
30 | + $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
31 | 31 | return <<<CSSRULES |
32 | 32 | .admin-page-framework-form-loading { |
33 | 33 | position: absolute; |
@@ -24,13 +24,13 @@ |
||
24 | 24 | protected function _get() { |
25 | 25 | return $this->_getFormSectionRules(); |
26 | 26 | } |
27 | - /** |
|
28 | - * Returns the CSS rules for form fields. |
|
29 | - * |
|
30 | - * @since 3.4.0 |
|
31 | - * @since 3.7.0 Moved from `AdminPageFramework_CSS`. |
|
32 | - * @internal |
|
33 | - */ |
|
27 | + /** |
|
28 | + * Returns the CSS rules for form fields. |
|
29 | + * |
|
30 | + * @since 3.4.0 |
|
31 | + * @since 3.7.0 Moved from `AdminPageFramework_CSS`. |
|
32 | + * @internal |
|
33 | + */ |
|
34 | 34 | private function _getFormSectionRules() { |
35 | 35 | |
36 | 36 | return <<<CSSRULES |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @since DEVVER |
30 | 30 | */ |
31 | 31 | public function add( $sCSSRules ) { |
32 | - $this->aAdded[] = $sCSSRules; |
|
32 | + $this->aAdded[ ] = $sCSSRules; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function get() { |
40 | 40 | |
41 | - $_sCSSRules = $this->_get() . PHP_EOL; |
|
41 | + $_sCSSRules = $this->_get().PHP_EOL; |
|
42 | 42 | $_sCSSRules .= $this->_getVersionSpecific(); |
43 | 43 | $_sCSSRules .= implode( PHP_EOL, $this->aAdded ); |
44 | 44 | return $this->isDebugMode() |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * @since DEVVER |
22 | 22 | * @return string |
23 | 23 | */ |
24 | - protected function _get() { |
|
24 | + protected function _get() { |
|
25 | 25 | return $this->_getRules(); |
26 | 26 | } |
27 | 27 | /** |
@@ -50,8 +50,8 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | $_aOutput = array(); |
53 | - foreach( $this->aDescriptions as $_sDescription ) { |
|
54 | - $_aOutput[] = "<p class='" . esc_attr( $this->sClassAttribute ) . "'>" |
|
53 | + foreach ( $this->aDescriptions as $_sDescription ) { |
|
54 | + $_aOutput[ ] = "<p class='".esc_attr( $this->sClassAttribute )."'>" |
|
55 | 55 | . "<span class='description'>" |
56 | 56 | . $_sDescription |
57 | 57 | . "</span>" |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @internal |
17 | 17 | * @extends AdminPageFramework_FrameworkUtility |
18 | 18 | */ |
19 | -class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility { |
|
19 | +class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility { |
|
20 | 20 | |
21 | 21 | public $aDescriptions = array(); |
22 | 22 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $_aParams = func_get_args() + array( null ); |
44 | 44 | $_oMsg = $_aParams[ 0 ]; |
45 | - $_sToggleAllButtonHTML = '"' . self::_getToggleAllButtonHTML( $_oMsg ) . '"'; |
|
45 | + $_sToggleAllButtonHTML = '"'.self::_getToggleAllButtonHTML( $_oMsg ).'"'; |
|
46 | 46 | |
47 | 47 | return <<<JAVASCRIPTS |
48 | 48 | ( function( $ ) { |
@@ -192,18 +192,18 @@ discard block |
||
192 | 192 | $_sLabelToggleAll = $oMsg->get( 'toggle_all' ); |
193 | 193 | $_sLabelToggleAllSections = $oMsg->get( 'toggle_all_collapsible_sections' ); |
194 | 194 | $_sDashIconSort = self::getAOrB( |
195 | - version_compare( $GLOBALS['wp_version'], '3.8', '<' ), // evaluate |
|
195 | + version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ), // evaluate |
|
196 | 196 | '', // true |
197 | 197 | 'dashicons dashicons-sort' // false |
198 | 198 | ); |
199 | - $_sText = self::getAOrB( |
|
199 | + $_sText = self::getAOrB( |
|
200 | 200 | $_sDashIconSort, // evaluate |
201 | 201 | '', // true |
202 | 202 | $_sLabelToggleAll // false |
203 | 203 | ); |
204 | 204 | return "<div class='admin-page-framework-collapsible-toggle-all-button-container'>" |
205 | - . "<span class='admin-page-framework-collapsible-toggle-all-button button " . $_sDashIconSort . "'" |
|
206 | - . " title='" . esc_attr( $_sLabelToggleAllSections ) |
|
205 | + . "<span class='admin-page-framework-collapsible-toggle-all-button button ".$_sDashIconSort."'" |
|
206 | + . " title='".esc_attr( $_sLabelToggleAllSections ) |
|
207 | 207 | . "'>" |
208 | 208 | . $_sText |
209 | 209 | . "</span>" |