@@ -40,7 +40,7 @@ |
||
| 40 | 40 | // Widgets can be called multiple times for the number of user-created widget instances for one class instance |
| 41 | 41 | // so make sure it is processed only once per page. |
| 42 | 42 | if ( $this->hasBeenCalled( 'resource_' . $oForm->aArguments[ 'caller_id' ] ) ) { |
| 43 | - return; |
|
| 43 | + return; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $this->_setHooks(); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | // Widgets can be called multiple times for the number of user-created widget instances for one class instance |
| 41 | 41 | // so make sure it is processed only once per page. |
| 42 | - if ( $this->hasBeenCalled( 'resource_' . $oForm->aArguments[ 'caller_id' ] ) ) { |
|
| 42 | + if ( $this->hasBeenCalled( 'resource_'.$oForm->aArguments[ 'caller_id' ] ) ) { |
|
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | * @since 3.7.0 |
| 113 | 113 | */ |
| 114 | 114 | public function _replyToEnqueueScripts() { |
| 115 | - if ( ! $this->oForm->isInThePage() ) { |
|
| 115 | + if ( !$this->oForm->isInThePage() ) { |
|
| 116 | 116 | return; |
| 117 | 117 | } |
| 118 | - foreach( $this->oForm->getResources( 'src_scripts' ) as $_asEnqueue ) { |
|
| 118 | + foreach ( $this->oForm->getResources( 'src_scripts' ) as $_asEnqueue ) { |
|
| 119 | 119 | $this->_enqueueScript( $_asEnqueue ); |
| 120 | 120 | } |
| 121 | 121 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | private function _getFormattedEnqueueScript( $asEnqueue ) { |
| 164 | 164 | static $_iCallCount = 1; |
| 165 | 165 | $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array( |
| 166 | - 'handle_id' => 'script_' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount, |
|
| 166 | + 'handle_id' => 'script_'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount, |
|
| 167 | 167 | 'src' => null, |
| 168 | 168 | 'dependencies' => null, |
| 169 | 169 | 'version' => null, |
@@ -186,10 +186,10 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | public function _replyToEnqueueStyles() { |
| 188 | 188 | |
| 189 | - if ( ! $this->oForm->isInThePage() ) { |
|
| 189 | + if ( !$this->oForm->isInThePage() ) { |
|
| 190 | 190 | return; |
| 191 | 191 | } |
| 192 | - foreach( $this->oForm->getResources( 'src_styles' ) as $_asEnqueueItem ) { |
|
| 192 | + foreach ( $this->oForm->getResources( 'src_styles' ) as $_asEnqueueItem ) { |
|
| 193 | 193 | $this->_enqueueStyle( $_asEnqueueItem ); |
| 194 | 194 | } |
| 195 | 195 | |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | private function _getFormattedEnqueueStyle( $asEnqueue ) { |
| 211 | 211 | static $_iCallCount = 1; |
| 212 | 212 | $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array( |
| 213 | - 'handle_id' => 'style_' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount, |
|
| 213 | + 'handle_id' => 'style_'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount, |
|
| 214 | 214 | 'src' => null, |
| 215 | 215 | 'dependencies' => null, |
| 216 | 216 | 'version' => null, |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | public function _replyToAddStyle() { |
| 236 | 236 | |
| 237 | - if ( ! $this->oForm->isInThePage() ) { |
|
| 237 | + if ( !$this->oForm->isInThePage() ) { |
|
| 238 | 238 | return; |
| 239 | 239 | } |
| 240 | 240 | $_sCSSRules = $this->_getFormattedInlineStyles( |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | */ |
| 282 | 282 | public function _replyToAddScript() { |
| 283 | 283 | |
| 284 | - if ( ! $this->oForm->isInThePage() ) { |
|
| 284 | + if ( !$this->oForm->isInThePage() ) { |
|
| 285 | 285 | return; |
| 286 | 286 | } |
| 287 | 287 | |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | ); |
| 231 | 231 | |
| 232 | 232 | $_sID = $this->sanitizeSlug( strtolower( $this->oForm->aArguments[ 'caller_id' ] ) ); |
| 233 | - if ( $_sCSSRules ) { |
|
| 233 | + if ( $_sCSSRules ) { |
|
| 234 | 234 | echo "<style type='text/css' id='inline-style-{$_sID}' class='admin-page-framework-form-style'>" |
| 235 | 235 | . $_sCSSRules |
| 236 | 236 | . "</style>"; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $this->aField[ '_field_path_array' ], |
| 39 | 39 | $this->aField[ 'error_message' ] |
| 40 | 40 | ); |
| 41 | - $_aOutputs[] = $_oFieldError->get(); |
|
| 41 | + $_aOutputs[ ] = $_oFieldError->get(); |
|
| 42 | 42 | |
| 43 | 43 | // 2. Construct fields array for sub-fields. |
| 44 | 44 | $_oFieldsFormatter = new AdminPageFramework_Form_Model___Format_Fields( |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $_aFields = $_oFieldsFormatter->get(); |
| 49 | 49 | |
| 50 | 50 | // 3. Get the field and its sub-fields output. |
| 51 | - $_aOutputs[] = $this->_getFieldsOutput( |
|
| 51 | + $_aOutputs[ ] = $this->_getFieldsOutput( |
|
| 52 | 52 | $_aFields, |
| 53 | 53 | $this->aCallbacks |
| 54 | 54 | ); |
@@ -79,11 +79,11 @@ discard block |
||
| 79 | 79 | * @since 3.1.0 |
| 80 | 80 | * @since 3.2.0 Added the $aCallbacks parameter. |
| 81 | 81 | */ |
| 82 | - private function _getFieldsOutput( array $aFields, array $aCallbacks=array() ) { |
|
| 82 | + private function _getFieldsOutput( array $aFields, array $aCallbacks = array() ) { |
|
| 83 | 83 | |
| 84 | 84 | $_aOutput = array(); |
| 85 | - foreach( $aFields as $_isIndex => $_aField ) { |
|
| 86 | - $_aOutput[] = $this->_getEachFieldOutput( |
|
| 85 | + foreach ( $aFields as $_isIndex => $_aField ) { |
|
| 86 | + $_aOutput[ ] = $this->_getEachFieldOutput( |
|
| 87 | 87 | $_aField, |
| 88 | 88 | $_isIndex, |
| 89 | 89 | $aCallbacks, |
@@ -100,11 +100,11 @@ discard block |
||
| 100 | 100 | * @since 3.5.3 |
| 101 | 101 | * @return string the HTML output of the given field. |
| 102 | 102 | */ |
| 103 | - private function _getEachFieldOutput( array $aField, $isIndex, array $aCallbacks, $bIsLastElement=false ) { |
|
| 103 | + private function _getEachFieldOutput( array $aField, $isIndex, array $aCallbacks, $bIsLastElement = false ) { |
|
| 104 | 104 | |
| 105 | 105 | // Field type definition - allows mixed field types in sub-fields |
| 106 | - $_aFieldTypeDefinition = $this->_getFieldTypeDefinition( $aField['type'] ); |
|
| 107 | - if ( ! is_callable( $_aFieldTypeDefinition['hfRenderField'] ) ) { |
|
| 106 | + $_aFieldTypeDefinition = $this->_getFieldTypeDefinition( $aField[ 'type' ] ); |
|
| 107 | + if ( !is_callable( $_aFieldTypeDefinition[ 'hfRenderField' ] ) ) { |
|
| 108 | 108 | return ''; |
| 109 | 109 | } |
| 110 | 110 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | // Callback the registered function to output the field |
| 121 | 121 | $_oFieldAttribute = new AdminPageFramework_Form_View___Attribute_Field( $aField ); |
| 122 | 122 | return $aField[ 'before_field' ] |
| 123 | - . "<div " . $_oFieldAttribute->get() . ">" |
|
| 123 | + . "<div ".$_oFieldAttribute->get().">" |
|
| 124 | 124 | . call_user_func_array( |
| 125 | 125 | $_aFieldTypeDefinition[ 'hfRenderField' ], |
| 126 | 126 | array( $aField ) |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'input', |
| 147 | 147 | array( |
| 148 | 148 | 'type' => 'hidden', |
| 149 | - 'name' => '__unset_' . $aField[ '_fields_type' ] . '[' . $aField[ '_input_name_flat' ] . ']', |
|
| 149 | + 'name' => '__unset_'.$aField[ '_fields_type' ].'['.$aField[ '_input_name_flat' ].']', |
|
| 150 | 150 | 'value' => $aField[ '_input_name_flat' ], |
| 151 | 151 | 'class' => 'unset-element-names element-address', |
| 152 | 152 | ) |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | return $this->getElement( |
| 166 | 166 | $this->aFieldTypeDefinitions, |
| 167 | 167 | $sFieldTypeSlug, |
| 168 | - $this->aFieldTypeDefinitions['default'] |
|
| 168 | + $this->aFieldTypeDefinitions[ 'default' ] |
|
| 169 | 169 | ); |
| 170 | 170 | } |
| 171 | 171 | |
@@ -176,19 +176,19 @@ discard block |
||
| 176 | 176 | * @return string the HTML output of delimiter |
| 177 | 177 | */ |
| 178 | 178 | private function _getDelimiter( array $aField, $bIsLastElement ) { |
| 179 | - return $aField['delimiter'] |
|
| 180 | - ? "<div " . $this->getAttributes( |
|
| 179 | + return $aField[ 'delimiter' ] |
|
| 180 | + ? "<div ".$this->getAttributes( |
|
| 181 | 181 | array( |
| 182 | 182 | 'class' => 'delimiter', |
| 183 | - 'id' => "delimiter-{$aField['input_id']}", |
|
| 183 | + 'id' => "delimiter-{$aField[ 'input_id' ]}", |
|
| 184 | 184 | 'style' => $this->getAOrB( |
| 185 | 185 | $bIsLastElement, |
| 186 | 186 | "display:none;", |
| 187 | 187 | "" |
| 188 | 188 | ), |
| 189 | 189 | ) |
| 190 | - ) . ">" |
|
| 191 | - . $aField['delimiter'] |
|
| 190 | + ).">" |
|
| 191 | + . $aField[ 'delimiter' ] |
|
| 192 | 192 | . "</div>" |
| 193 | 193 | : ''; |
| 194 | 194 | } |
@@ -201,9 +201,9 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | private function _getFinalOutput( array $aFieldset, array $aFieldsOutput, $iFieldsCount ) { |
| 203 | 203 | |
| 204 | - $_oFieldsetAttributes = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset ); |
|
| 204 | + $_oFieldsetAttributes = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset ); |
|
| 205 | 205 | return $aFieldset[ 'before_fieldset' ] |
| 206 | - . "<fieldset " . $_oFieldsetAttributes->get() . ">" |
|
| 206 | + . "<fieldset ".$_oFieldsetAttributes->get().">" |
|
| 207 | 207 | . $this->_getFieldsetContent( $aFieldset, $aFieldsOutput, $iFieldsCount ) |
| 208 | 208 | . $this->_getExtras( $aFieldset, $iFieldsCount ) |
| 209 | 209 | . "</fieldset>" |
@@ -220,12 +220,12 @@ discard block |
||
| 220 | 220 | return $aFieldset[ 'content' ]; |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | - $_oFieldsAttributes = new AdminPageFramework_Form_View___Attribute_Fields( |
|
| 223 | + $_oFieldsAttributes = new AdminPageFramework_Form_View___Attribute_Fields( |
|
| 224 | 224 | $aFieldset, |
| 225 | - array(), // attribute array |
|
| 225 | + array(), // attribute array |
|
| 226 | 226 | $iFieldsCount |
| 227 | 227 | ); |
| 228 | - return "<div " . $_oFieldsAttributes->get() . ">" |
|
| 228 | + return "<div ".$_oFieldsAttributes->get().">" |
|
| 229 | 229 | . $aFieldset[ 'before_fields' ] |
| 230 | 230 | . implode( PHP_EOL, $aFieldsOutput ) |
| 231 | 231 | . $aFieldset[ 'after_fields' ] |
@@ -247,13 +247,13 @@ discard block |
||
| 247 | 247 | $aField[ 'description' ], |
| 248 | 248 | 'admin-page-framework-fields-description' // class selector |
| 249 | 249 | ); |
| 250 | - $_aOutput[] = $_oFieldDescription->get(); |
|
| 250 | + $_aOutput[ ] = $_oFieldDescription->get(); |
|
| 251 | 251 | |
| 252 | 252 | // Dimensional keys of repeatable and sortable fields |
| 253 | - $_aOutput[] = $this->_getDynamicElementFlagFieldInputTag( $aField ); |
|
| 253 | + $_aOutput[ ] = $this->_getDynamicElementFlagFieldInputTag( $aField ); |
|
| 254 | 254 | |
| 255 | 255 | // Repeatable and sortable scripts |
| 256 | - $_aOutput[] = $this->_getFieldScripts( $aField, $iFieldsCount ); |
|
| 256 | + $_aOutput[ ] = $this->_getFieldScripts( $aField, $iFieldsCount ); |
|
| 257 | 257 | |
| 258 | 258 | return implode( PHP_EOL, array_filter( $_aOutput ) ); |
| 259 | 259 | |
@@ -283,8 +283,8 @@ discard block |
||
| 283 | 283 | 'input', |
| 284 | 284 | array( |
| 285 | 285 | 'type' => 'hidden', |
| 286 | - 'name' => '__repeatable_elements_' . $aFieldset[ '_structure_type' ] |
|
| 287 | - . '[' . $aFieldset[ '_field_address' ] . ']', |
|
| 286 | + 'name' => '__repeatable_elements_'.$aFieldset[ '_structure_type' ] |
|
| 287 | + . '['.$aFieldset[ '_field_address' ].']', |
|
| 288 | 288 | 'class' => 'element-address', |
| 289 | 289 | 'value' => $aFieldset[ '_field_address' ], |
| 290 | 290 | 'data-field_address_model' => $aFieldset[ '_field_address_model' ], |
@@ -300,8 +300,8 @@ discard block |
||
| 300 | 300 | 'input', |
| 301 | 301 | array( |
| 302 | 302 | 'type' => 'hidden', |
| 303 | - 'name' => '__sortable_elements_' . $aFieldset[ '_structure_type' ] |
|
| 304 | - . '[' . $aFieldset[ '_field_address' ] . ']', |
|
| 303 | + 'name' => '__sortable_elements_'.$aFieldset[ '_structure_type' ] |
|
| 304 | + . '['.$aFieldset[ '_field_address' ].']', |
|
| 305 | 305 | 'class' => 'element-address', |
| 306 | 306 | 'value' => $aFieldset[ '_field_address' ], |
| 307 | 307 | 'data-field_address_model' => $aFieldset[ '_field_address_model' ], |
@@ -320,14 +320,14 @@ discard block |
||
| 320 | 320 | $_aOutput = array(); |
| 321 | 321 | |
| 322 | 322 | // Add the repeater script |
| 323 | - $_aOutput[] = $aField['repeatable'] |
|
| 324 | - ? $this->_getRepeaterFieldEnablerScript( 'fields-' . $aField['tag_id'], $iFieldsCount, $aField['repeatable'] ) |
|
| 323 | + $_aOutput[ ] = $aField[ 'repeatable' ] |
|
| 324 | + ? $this->_getRepeaterFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ], $iFieldsCount, $aField[ 'repeatable' ] ) |
|
| 325 | 325 | : ''; |
| 326 | 326 | |
| 327 | 327 | // Add the sortable script - if the number of fields is only one, no need to sort the field. |
| 328 | 328 | // Repeatable fields can make the number increase so here it checkes the repeatability. |
| 329 | - $_aOutput[] = $aField['sortable'] && ( $iFieldsCount > 1 || $aField['repeatable'] ) |
|
| 330 | - ? $this->_getSortableFieldEnablerScript( 'fields-' . $aField['tag_id'] ) |
|
| 329 | + $_aOutput[ ] = $aField[ 'sortable' ] && ( $iFieldsCount > 1 || $aField[ 'repeatable' ] ) |
|
| 330 | + ? $this->_getSortableFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ] ) |
|
| 331 | 331 | : ''; |
| 332 | 332 | |
| 333 | 333 | return implode( PHP_EOL, $_aOutput ); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | */ |
| 140 | 140 | private function _getUnsetFlagFieldInputTag( array $aField ) { |
| 141 | 141 | |
| 142 | - if ( false !== $aField[ 'save' ] ) { |
|
| 142 | + if ( false !== $aField[ 'save' ] ) { |
|
| 143 | 143 | return ''; |
| 144 | 144 | } |
| 145 | 145 | return $this->getHTMLTag( |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | protected function _getAttributes() { |
| 29 | 29 | |
| 30 | - $_aSectionAttributes = $this->uniteArrays( |
|
| 31 | - $this->dropElementsByType( $this->aArguments[ 'attributes' ] ), // remove elements of an array. |
|
| 30 | + $_aSectionAttributes = $this->uniteArrays( |
|
| 31 | + $this->dropElementsByType( $this->aArguments[ 'attributes' ] ), // remove elements of an array. |
|
| 32 | 32 | array( |
| 33 | 33 | 'id' => $this->aArguments[ '_tag_id' ], // section-{section id}__{index} |
| 34 | 34 | 'class' => $this->getClassAttribute( |
@@ -49,19 +49,19 @@ discard block |
||
| 49 | 49 | ) |
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | - $_aSectionAttributes[ 'class' ] = $this->getClassAttribute( |
|
| 52 | + $_aSectionAttributes[ 'class' ] = $this->getClassAttribute( |
|
| 53 | 53 | $_aSectionAttributes[ 'class' ], |
| 54 | 54 | $this->dropElementsByType( $this->aArguments[ 'class' ] ) |
| 55 | - ); // 3.3.1+ |
|
| 55 | + ); // 3.3.1+ |
|
| 56 | 56 | |
| 57 | - $_aSectionAttributes[ 'style' ] = $this->getStyleAttribute( |
|
| 57 | + $_aSectionAttributes[ 'style' ] = $this->getStyleAttribute( |
|
| 58 | 58 | $_aSectionAttributes[ 'style' ], |
| 59 | 59 | $this->getAOrB( |
| 60 | 60 | $this->aArguments[ 'hidden' ], |
| 61 | 61 | 'display:none', |
| 62 | 62 | null |
| 63 | 63 | ) |
| 64 | - ); // 3.3.1+ |
|
| 64 | + ); // 3.3.1+ |
|
| 65 | 65 | |
| 66 | 66 | return $_aSectionAttributes; |
| 67 | 67 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | * |
| 25 | 25 | * @since 3.6.0 |
| 26 | 26 | */ |
| 27 | - public $sContext = 'fieldset'; |
|
| 27 | + public $sContext = 'fieldset'; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Returns an attribute array. |
@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function _getAttributes() { |
| 34 | 34 | return array( |
| 35 | - 'id' => $this->sContext . '-' . $this->aArguments[ 'tag_id' ], |
|
| 36 | - 'class' => 'admin-page-framework-' . $this->sContext, |
|
| 35 | + 'id' => $this->sContext.'-'.$this->aArguments[ 'tag_id' ], |
|
| 36 | + 'class' => 'admin-page-framework-'.$this->sContext, |
|
| 37 | 37 | 'data-field_id' => $this->aArguments[ 'tag_id' ], // <-- not sure what this was for... |
| 38 | 38 | ); |
| 39 | 39 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->aAttributes + $this->_getAttributes() |
| 33 | 33 | ); |
| 34 | 34 | |
| 35 | - $_aAttributes[ 'class' ] = $this->getClassAttribute( |
|
| 35 | + $_aAttributes[ 'class' ] = $this->getClassAttribute( |
|
| 36 | 36 | $this->getElement( $_aAttributes, 'class', array() ), |
| 37 | 37 | $this->getElement( $this->aArguments, array( 'class', $this->sContext ), array() ) |
| 38 | 38 | ); |
@@ -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 | ); |
@@ -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 | 'class' => $this->getAOrB( |
| 31 | 31 | $this->aArguments[ '_is_collapsible' ], |
@@ -61,15 +61,15 @@ discard block |
||
| 61 | 61 | 'class' => $this->getClassAttribute( |
| 62 | 62 | 'admin-page-framework-sections', |
| 63 | 63 | $this->getAOrB( |
| 64 | - ! $this->sSectionTabSlug || '_default' === $this->sSectionTabSlug, |
|
| 64 | + !$this->sSectionTabSlug || '_default' === $this->sSectionTabSlug, |
|
| 65 | 65 | null, |
| 66 | 66 | 'admin-page-framework-section-tabs-contents' |
| 67 | 67 | ), |
| 68 | 68 | $this->getAOrB( |
| 69 | 69 | empty( $this->aCollapsible ), |
| 70 | 70 | null, |
| 71 | - 'admin-page-framework-collapsible-sections-content' . ' ' |
|
| 72 | - . 'admin-page-framework-collapsible-content' . ' ' |
|
| 71 | + 'admin-page-framework-collapsible-sections-content'.' ' |
|
| 72 | + . 'admin-page-framework-collapsible-content'.' ' |
|
| 73 | 73 | . 'accordion-section-content' |
| 74 | 74 | |
| 75 | 75 | ), |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | // 3.6.0+ - dimensional section address without the option key, used by the 'save' argument and when sorting dynamic elements. |
| 86 | 86 | 'data-section_address' => $this->aSectionset[ 'section_id' ], |
| 87 | - 'data-section_address_model' => $this->aSectionset[ 'section_id' ] . '|' . '___i___', |
|
| 87 | + 'data-section_address_model' => $this->aSectionset[ 'section_id' ].'|'.'___i___', |
|
| 88 | 88 | |
| 89 | 89 | ) |
| 90 | 90 | + $this->_getDynamicElementArguments( $this->aSectionset ); |
@@ -123,12 +123,12 @@ discard block |
||
| 123 | 123 | return array( |
| 124 | 124 | // 3.6.0+ Stores the total number of dynamic elements, used to generate the input id and name of repeated sections which contain an incremented index number. |
| 125 | 125 | 'data-largest_index' => max( |
| 126 | - ( int ) $this->iSubSectionCount - 1, // zero-base index |
|
| 126 | + ( int ) $this->iSubSectionCount - 1, // zero-base index |
|
| 127 | 127 | 0 |
| 128 | 128 | ), // convert negative numbers to zero. |
| 129 | 129 | |
| 130 | - 'data-section_id_model' => $aSectionset[ 'section_id' ] . '__' . '___i___', |
|
| 131 | - 'data-flat_section_name_model' => $aSectionset[ 'section_id' ] . '|___i___', |
|
| 130 | + 'data-section_id_model' => $aSectionset[ 'section_id' ].'__'.'___i___', |
|
| 131 | + 'data-flat_section_name_model' => $aSectionset[ 'section_id' ].'|___i___', |
|
| 132 | 132 | // @todo apply a callback |
| 133 | 133 | // 'data-section_name_model' => $aSectionset[ 'section_id' ] . '[___i___]', |
| 134 | 134 | 'data-section_name_model' => $_oSectionNameGenerator->getModel(), |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @since 3.6.0 |
| 26 | 26 | */ |
| 27 | - public $sContext = 'fieldrow'; |
|
| 27 | + public $sContext = 'fieldrow'; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return array The formatted attributes array. |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $_aAttributes = parent::_getFormattedAttributes(); |
| 35 | 35 | |
| 36 | 36 | // Set the visibility CSS property for the outermost container element. |
| 37 | - if ( $this->aArguments[ 'hidden' ] ) { |
|
| 37 | + if ( $this->aArguments[ 'hidden' ] ) { |
|
| 38 | 38 | $_aAttributes[ 'style' ] = $this->getStyleAttribute( |
| 39 | 39 | $this->getElement( $_aAttributes, 'style', array() ), |
| 40 | 40 | 'display:none' |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $this->aAttributes, |
| 39 | 39 | $this->iFieldsCount, |
| 40 | 40 | ); |
| 41 | - $this->aArguments = $_aParameters[ 0 ]; |
|
| 41 | + $this->aArguments = $_aParameters[ 0 ]; |
|
| 42 | 42 | $this->aAttributes = $_aParameters[ 1 ]; |
| 43 | 43 | $this->iFieldsCount = $_aParameters[ 2 ]; |
| 44 | 44 | |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function _getAttributes() { |
| 53 | 53 | return array( |
| 54 | - 'id' => $this->sContext . '-' . $this->aArguments[ 'tag_id' ], |
|
| 55 | - 'class' => 'admin-page-framework-' . $this->sContext |
|
| 54 | + 'id' => $this->sContext.'-'.$this->aArguments[ 'tag_id' ], |
|
| 55 | + 'class' => 'admin-page-framework-'.$this->sContext |
|
| 56 | 56 | . $this->getAOrB( $this->aArguments[ 'repeatable' ], ' repeatable dynamic-fields', '' ) // 3.6.0+ Added the 'dynamic-fields' class selector. |
| 57 | 57 | . $this->getAOrB( $this->aArguments[ 'sortable' ], ' sortable dynamic-fields', '' ), |
| 58 | 58 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | // 3.6.0+ Stores the total number of dynamic fields, used to generate the input id and name of repeated fields which contain an incremented index number. |
| 63 | 63 | 'data-largest_index' => max( |
| 64 | - ( int ) $this->iFieldsCount - 1, // zero-base index |
|
| 64 | + ( int ) $this->iFieldsCount - 1, // zero-base index |
|
| 65 | 65 | 0 |
| 66 | 66 | ), // convert negative numbers to zero. |
| 67 | 67 | |