@@ -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>" |
@@ -129,7 +129,7 @@ |
||
129 | 129 | */ |
130 | 130 | static public function getEnabler() { |
131 | 131 | |
132 | - if ( self::$_bLoadedTabEnablerScript ) { |
|
132 | + if ( self::$_bLoadedTabEnablerScript ) { |
|
133 | 133 | return ''; |
134 | 134 | } |
135 | 135 | self::$_bLoadedTabEnablerScript = true; |
@@ -105,7 +105,7 @@ |
||
105 | 105 | new self( $oMsg ); |
106 | 106 | |
107 | 107 | // $aSettings = $this->getAsArray( $aSettings ); |
108 | - $_sScript = <<<JAVASCRIPTS |
|
108 | + $_sScript = <<<JAVASCRIPTS |
|
109 | 109 | jQuery( document ).ready( function() { |
110 | 110 | jQuery( '#{$sContainerTagID}' ).enableAdminPageFrameworkSortableSections( '{$sContainerTagID}' ); |
111 | 111 | }); |
@@ -94,10 +94,10 @@ |
||
94 | 94 | */ |
95 | 95 | static public function getEnabler( $sContainerTagID, $aSettings, $oMsg ) { |
96 | 96 | |
97 | - if ( empty( $aSettings ) ) { |
|
97 | + if ( empty( $aSettings ) ) { |
|
98 | 98 | return ''; |
99 | 99 | } |
100 | - if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { |
|
100 | + if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { |
|
101 | 101 | return ''; |
102 | 102 | } |
103 | 103 | self::$_aSetContainerIDsForSortableSections[ $sContainerTagID ] = $sContainerTagID; |
@@ -442,7 +442,7 @@ |
||
442 | 442 | . "<a class='repeatable-section-remove-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sRemove}' {$_sVisibility} data-id='{$sContainerTagID}'>-</a>" |
443 | 443 | . "<a class='repeatable-section-add-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sAdd}' data-id='{$sContainerTagID}'>+</a>" |
444 | 444 | . "</div>"; |
445 | - $_sButtonsHTML = '"' . $_sButtons . '"'; |
|
445 | + $_sButtonsHTML = '"'.$_sButtons.'"'; |
|
446 | 446 | $_aJSArray = json_encode( $aSettings ); |
447 | 447 | $_sScript = <<<JAVASCRIPTS |
448 | 448 | jQuery( document ).ready( function() { |
@@ -415,10 +415,10 @@ |
||
415 | 415 | */ |
416 | 416 | static public function getEnabler( $sContainerTagID, $iSectionCount, $aSettings, $oMsg ) { |
417 | 417 | |
418 | - if ( empty( $aSettings ) ) { |
|
418 | + if ( empty( $aSettings ) ) { |
|
419 | 419 | return ''; |
420 | 420 | } |
421 | - if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) { |
|
421 | + if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) { |
|
422 | 422 | return ''; |
423 | 423 | } |
424 | 424 | self::$_aSetContainerIDsForRepeatableSections[ $sContainerTagID ] = $sContainerTagID; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $_oMsg = $_aParams[ 0 ]; |
58 | 58 | |
59 | 59 | // means the WordPress version is 3.4.x or below |
60 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
60 | + if ( !function_exists( 'wp_enqueue_media' ) ) { |
|
61 | 61 | return ""; |
62 | 62 | } |
63 | 63 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $_oMsg = $_aParams[ 0 ]; |
58 | 58 | |
59 | 59 | // means the WordPress version is 3.4.x or below |
60 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
60 | + if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
61 | 61 | return ""; |
62 | 62 | } |
63 | 63 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * @return string The generated string value. |
50 | 50 | */ |
51 | 51 | public function get() { |
52 | - return $this->_getFiltered( $this->_getBaseFieldTagID() . '__' . $this->isIndex ); |
|
52 | + return $this->_getFiltered( $this->_getBaseFieldTagID().'__'.$this->isIndex ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return $this->_getFiltered( $this->_getSectionName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
28 | + public function getModel() { |
|
29 | 29 | return $this->get() . '[' . $this->sIndexMark . ']'; |
30 | 30 | } |
31 | 31 |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | return $_sResult; |
27 | 27 | } |
28 | 28 | |
29 | - public function getModel() { |
|
30 | - return $this->get() . '[' . $this->sIndexMark . ']'; |
|
29 | + public function getModel() { |
|
30 | + return $this->get().'['.$this->sIndexMark.']'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | */ |
36 | 36 | protected function _getFieldName() { |
37 | 37 | |
38 | - $_aFieldPath = $this->aArguments[ '_field_path_array' ]; |
|
39 | - if ( ! $this->_isSectionSet() ) { |
|
38 | + $_aFieldPath = $this->aArguments[ '_field_path_array' ]; |
|
39 | + if ( !$this->_isSectionSet() ) { |
|
40 | 40 | return $this->_getInputNameConstructed( $_aFieldPath ); |
41 | 41 | } |
42 | 42 | |
43 | 43 | $_aSectionPath = $this->aArguments[ '_section_path_array' ]; |
44 | 44 | if ( $this->_isSectionSet() && isset( $this->aArguments[ '_section_index' ] ) ) { |
45 | - $_aSectionPath[] = $this->aArguments[ '_section_index' ]; |
|
45 | + $_aSectionPath[ ] = $this->aArguments[ '_section_index' ]; |
|
46 | 46 | } |
47 | 47 | $_sFieldName = $this->_getInputNameConstructed( |
48 | 48 | array_merge( $_aSectionPath, $_aFieldPath ) |