@@ -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 | |
| 30 | 30 | $_sCollapsibleType = $this->getElement( |
| 31 | 31 | $this->aArguments, |
@@ -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' |
@@ -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,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 | |
@@ -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>" |