@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Stores the section definition. |
45 | 45 | */ |
46 | - public $aSection = array(); |
|
46 | + public $aSection = array(); |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Indicates the sub section index. |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | |
92 | 92 | $_aSection[ '_is_collapsible' ] = $_aSection[ 'collapsible' ] && 'section' === $_aSection[ 'collapsible' ][ 'container' ]; |
93 | 93 | |
94 | - $_aSection[ '_tag_id' ] = 'section-' . $_aSection[ 'section_id' ] . '__' . $this->iIndex; |
|
95 | - $_aSection[ '_tag_id_model' ] = 'section-' . $_aSection[ 'section_id' ] . '__' . '___i___'; |
|
94 | + $_aSection[ '_tag_id' ] = 'section-'.$_aSection[ 'section_id' ].'__'.$this->iIndex; |
|
95 | + $_aSection[ '_tag_id_model' ] = 'section-'.$_aSection[ 'section_id' ].'__'.'___i___'; |
|
96 | 96 | |
97 | 97 | return $_aSection; |
98 | 98 |
@@ -236,7 +236,7 @@ |
||
236 | 236 | */ |
237 | 237 | private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) { |
238 | 238 | |
239 | - if ( ! $aSectionset[ 'title' ] ){ |
|
239 | + if ( ! $aSectionset[ 'title' ] ) { |
|
240 | 240 | return false; |
241 | 241 | } |
242 | 242 | if ( $aSectionset[ 'collapsible' ] ) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | private function _getCaption( array $aSectionset, $iSectionIndex, $aFieldsets, $aFieldErrors, $aFieldTypeDefinitions, $aCallbacks, $oMsg ) { |
82 | 82 | |
83 | - if ( ! $aSectionset[ 'description' ] && ! $aSectionset[ 'title' ] ) { |
|
83 | + if ( !$aSectionset[ 'description' ] && !$aSectionset[ 'title' ] ) { |
|
84 | 84 | return "<caption class='admin-page-framework-section-caption' style='display:none;'></caption>"; |
85 | 85 | } |
86 | 86 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | 'collapsible' => $_abCollapsible, |
104 | 104 | 'container_type' => 'section', // section or sections |
105 | 105 | |
106 | - 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
106 | + 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
107 | 107 | ), |
108 | 108 | $aFieldsets, |
109 | 109 | $this->aSavedData, |
@@ -113,15 +113,15 @@ discard block |
||
113 | 113 | $aCallbacks // field output element callables. |
114 | 114 | ); |
115 | 115 | |
116 | - $_bShowTitle = empty( $_abCollapsible ) && ! $aSectionset[ 'section_tab_slug' ]; |
|
116 | + $_bShowTitle = empty( $_abCollapsible ) && !$aSectionset[ 'section_tab_slug' ]; |
|
117 | 117 | return |
118 | - "<caption " . $this->getAttributes( |
|
118 | + "<caption ".$this->getAttributes( |
|
119 | 119 | array( |
120 | 120 | 'class' => 'admin-page-framework-section-caption', |
121 | 121 | // data-section_tab is referred by the repeater script to hide/show the title and the description |
122 | 122 | 'data-section_tab' => $aSectionset[ 'section_tab_slug' ], |
123 | 123 | ) |
124 | - ) . ">" |
|
124 | + ).">" |
|
125 | 125 | . $_oCollapsibleSectionTitle->get() |
126 | 126 | . $this->getAOrB( |
127 | 127 | $_bShowTitle, |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | 'tag' => 'h3', |
176 | 176 | 'section_index' => $iSectionIndex, |
177 | 177 | |
178 | - 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
178 | + 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
179 | 179 | ), |
180 | 180 | $aFieldsets, |
181 | 181 | $this->aSavedData, |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $this->oMsg, |
185 | 185 | $this->aCallbacks // field output element callables. |
186 | 186 | ); |
187 | - return "<div " . $this->getAttributes( |
|
187 | + return "<div ".$this->getAttributes( |
|
188 | 188 | array( |
189 | 189 | 'class' => 'admin-page-framework-section-title', |
190 | 190 | 'style' => $this->getAOrB( |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | 'display: none;' |
194 | 194 | ), |
195 | 195 | ) |
196 | - ). ">" |
|
196 | + ).">" |
|
197 | 197 | . $_oSectionTitle->get() |
198 | 198 | . "</div>"; |
199 | 199 | } |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | if ( $aSectionset[ 'collapsible' ] ) { |
210 | 210 | return ''; |
211 | 211 | } |
212 | - if ( ! is_callable( $hfSectionCallback ) ) { |
|
212 | + if ( !is_callable( $hfSectionCallback ) ) { |
|
213 | 213 | return ''; |
214 | 214 | } |
215 | 215 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) { |
243 | 243 | |
244 | - if ( ! $aSectionset[ 'title' ] ){ |
|
244 | + if ( !$aSectionset[ 'title' ] ) { |
|
245 | 245 | return false; |
246 | 246 | } |
247 | 247 | if ( $aSectionset[ 'collapsible' ] ) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | private function _getFieldError( $aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage ) { |
66 | 66 | |
67 | 67 | // If this field has a section and the error element is set |
68 | - $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
68 | + $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
69 | 69 | if ( $this->_hasFieldError( $aErrors, $_aErrorPath ) ) { |
70 | 70 | return "<span class='field-error'>* " |
71 | 71 | . $sHeadingMessage |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | class AdminPageFramework_Form_View___Attribute_SectionTableBody extends AdminPageFramework_Form_View___Attribute_Base { |
19 | 19 | |
20 | - public $sContext = 'section_table_content'; |
|
20 | + public $sContext = 'section_table_content'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Returns an attribute array. |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | return array( |
36 | 36 | 'class' => $this->getAOrB( |
37 | 37 | $this->aArguments[ '_is_collapsible' ], |
38 | - 'admin-page-framework-collapsible-section-content' . ' ' |
|
39 | - . 'admin-page-framework-collapsible-content' . ' ' |
|
40 | - . 'accordion-section-content' . ' ' |
|
41 | - . 'admin-page-framework-collapsible-content-type-' . $_sCollapsibleType, |
|
38 | + 'admin-page-framework-collapsible-section-content'.' ' |
|
39 | + . 'admin-page-framework-collapsible-content'.' ' |
|
40 | + . 'accordion-section-content'.' ' |
|
41 | + . 'admin-page-framework-collapsible-content-type-'.$_sCollapsibleType, |
|
42 | 42 | null |
43 | 43 | ), |
44 | 44 | ); |
@@ -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; |
@@ -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 |
@@ -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 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @return string The generated field name model. |
32 | 32 | */ |
33 | 33 | public function getModel() { |
34 | - return $this->get() . '|' . $this->sIndexMark; |
|
34 | + return $this->get().'|'.$this->sIndexMark; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -25,26 +25,26 @@ |
||
25 | 25 | return $this->_getFiltered( $this->_getSectionName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
29 | - return $this->get() . '[' . $this->sIndexMark . ']'; |
|
28 | + public function getModel() { |
|
29 | + return $this->get().'['.$this->sIndexMark.']'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @return string |
34 | 34 | */ |
35 | - protected function _getSectionName( $isIndex=null ) { |
|
35 | + protected function _getSectionName( $isIndex = null ) { |
|
36 | 36 | |
37 | 37 | $this->aArguments = $this->aArguments + array( |
38 | 38 | 'section_id' => null, |
39 | 39 | '_index' => null, |
40 | 40 | ); |
41 | - if( isset( $isIndex ) ) { |
|
41 | + if ( isset( $isIndex ) ) { |
|
42 | 42 | $this->aArguments[ '_index' ] = $isIndex; |
43 | 43 | } |
44 | 44 | |
45 | 45 | $_aNameParts = $this->aArguments[ '_section_path_array' ]; |
46 | 46 | if ( isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] ) ) { |
47 | - $_aNameParts[] = $this->aArguments[ '_index' ]; |
|
47 | + $_aNameParts[ ] = $this->aArguments[ '_index' ]; |
|
48 | 48 | } |
49 | 49 | $_sResult = $this->_getInputNameConstructed( $_aNameParts ); |
50 | 50 | return $_sResult; |
@@ -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 |