@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @since 3.8.8 |
23 | 23 | * @return void |
24 | 24 | */ |
25 | - static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='' ) { |
|
25 | + static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = '' ) { |
|
26 | 26 | $sProgramName = $sProgramName ? $sProgramName : self::getFrameworkName(); |
27 | 27 | parent::showDeprecationNotice( $sDeprecated, $sAlternative, $sProgramName ); |
28 | 28 | } |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
44 | - foreach( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) { |
|
45 | - if ( ! isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) { |
|
44 | + foreach ( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) { |
|
45 | + if ( !isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) { |
|
46 | 46 | continue; |
47 | 47 | } |
48 | 48 | ksort( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param boolean $bTrimDevVer Whether the `.dev` suffix should be removed or not. |
68 | 68 | * @return string |
69 | 69 | */ |
70 | - static public function getFrameworkVersion( $bTrimDevVer=false ) { |
|
70 | + static public function getFrameworkVersion( $bTrimDevVer = false ) { |
|
71 | 71 | $_sVersion = AdminPageFramework_Registry::getVersion(); |
72 | 72 | return $bTrimDevVer |
73 | 73 | ? self::getSuffixRemoved( $_sVersion, '.dev' ) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @return string |
96 | 96 | */ |
97 | 97 | static public function getFrameworkNameVersion() { |
98 | - return self::getFrameworkName() . ' ' . self::getFrameworkVersion(); |
|
98 | + return self::getFrameworkName().' '.self::getFrameworkVersion(); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public $sNotice = ''; |
46 | 46 | public $aAttributes = array(); |
47 | 47 | public $aCallbacks = array( |
48 | - 'should_show' => null, // determines whether the admin notice should be displayed. |
|
48 | + 'should_show' => null, // determines whether the admin notice should be displayed. |
|
49 | 49 | ); |
50 | 50 | /**#@-*/ |
51 | 51 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * </ul> |
62 | 62 | * @since 3.5.0 |
63 | 63 | */ |
64 | - public function __construct( $sNotice, array $aAttributes=array( 'class' => 'error' ), array $aCallbacks=array() ) { |
|
64 | + public function __construct( $sNotice, array $aAttributes = array( 'class' => 'error' ), array $aCallbacks = array() ) { |
|
65 | 65 | |
66 | 66 | $this->aAttributes = $aAttributes + array( |
67 | 67 | 'class' => 'error', // 'updated' etc. |
@@ -69,17 +69,17 @@ discard block |
||
69 | 69 | $this->aAttributes[ 'class' ] = $this->getClassAttribute( |
70 | 70 | $this->aAttributes[ 'class' ], |
71 | 71 | 'admin-page-framework-settings-notice-message', |
72 | - 'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`. |
|
72 | + 'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`. |
|
73 | 73 | 'notice', |
74 | 74 | 'is-dismissible' // 3.5.12+ |
75 | 75 | ); |
76 | - $this->aCallbacks = $aCallbacks + $this->aCallbacks; |
|
76 | + $this->aCallbacks = $aCallbacks + $this->aCallbacks; |
|
77 | 77 | |
78 | 78 | // Load resources. |
79 | 79 | new AdminPageFramework_AdminNotice___Script; |
80 | 80 | |
81 | 81 | // An empty value may be set in oreder only to laode the fade-in script. |
82 | - if ( ! $sNotice ) { |
|
82 | + if ( !$sNotice ) { |
|
83 | 83 | return; |
84 | 84 | } |
85 | 85 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function _replyToDisplayAdminNotice() { |
109 | 109 | |
110 | - if ( ! $this->_shouldProceed() ) { |
|
110 | + if ( !$this->_shouldProceed() ) { |
|
111 | 111 | return; |
112 | 112 | } |
113 | 113 | |
@@ -118,14 +118,14 @@ discard block |
||
118 | 118 | 'display: none' |
119 | 119 | ); |
120 | 120 | |
121 | - echo "<div " . $this->getAttributes( $_aAttributes ) . ">" |
|
121 | + echo "<div ".$this->getAttributes( $_aAttributes ).">" |
|
122 | 122 | . "<p>" |
123 | 123 | . self::$_aNotices[ $this->sNotice ] |
124 | 124 | . "</p>" |
125 | 125 | . "</div>" |
126 | 126 | // Insert the same message except it is not hidden. |
127 | 127 | . "<noscript>" |
128 | - . "<div " . $this->getAttributes( $this->aAttributes ) . ">" |
|
128 | + . "<div ".$this->getAttributes( $this->aAttributes ).">" |
|
129 | 129 | . "<p>" |
130 | 130 | . self::$_aNotices[ $this->sNotice ] |
131 | 131 | . "</p>" |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | private function _shouldProceed() { |
145 | 145 | |
146 | - if ( ! is_callable( $this->aCallbacks[ 'should_show' ] ) ) { |
|
146 | + if ( !is_callable( $this->aCallbacks[ 'should_show' ] ) ) { |
|
147 | 147 | return true; |
148 | 148 | } |
149 | 149 | return call_user_func_array( |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | private $_iLevel; |
39 | 39 | |
40 | - public function __construct( $iLevel=null ) { |
|
40 | + public function __construct( $iLevel = null ) { |
|
41 | 41 | $this->_iLevel = null !== $iLevel |
42 | 42 | ? $iLeevl |
43 | 43 | : error_reporting(); |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | private function _getIncluded() { |
57 | 57 | |
58 | 58 | $_aIncluded = array(); |
59 | - foreach( $this->_aLevels as $_iLevel => $iLevelText ) { |
|
59 | + foreach ( $this->_aLevels as $_iLevel => $iLevelText ) { |
|
60 | 60 | |
61 | 61 | // This is where we check if a level was used or not |
62 | 62 | if ( $this->_iLevel & $_iLevel ) { |
63 | - $_aIncluded[] = $_iLevel; |
|
63 | + $_aIncluded[ ] = $_iLevel; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | } |
@@ -74,16 +74,16 @@ discard block |
||
74 | 74 | $_aValues = array(); |
75 | 75 | |
76 | 76 | if ( count( $aIncluded ) > $_iAll / 2 ) { |
77 | - $_aValues[] = 'E_ALL'; |
|
78 | - foreach( $this->_aLevels as $_iLevel => $iLevelText ) { |
|
79 | - if ( ! in_array( $_iLevel, $aIncluded ) ) { |
|
80 | - $_aValues[] = $iLevelText; |
|
77 | + $_aValues[ ] = 'E_ALL'; |
|
78 | + foreach ( $this->_aLevels as $_iLevel => $iLevelText ) { |
|
79 | + if ( !in_array( $_iLevel, $aIncluded ) ) { |
|
80 | + $_aValues[ ] = $iLevelText; |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | return implode( ' & ~', $_aValues ); |
84 | 84 | } |
85 | - foreach( $aIncluded as $_iLevel ) { |
|
86 | - $_aValues[] = $this->_aLevels[ $_iLevel ]; |
|
85 | + foreach ( $aIncluded as $_iLevel ) { |
|
86 | + $_aValues[ ] = $this->_aLevels[ $_iLevel ]; |
|
87 | 87 | } |
88 | 88 | return implode( ' | ', $_aValues ); |
89 | 89 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | '' // default value |
40 | 40 | ); |
41 | 41 | |
42 | - if ( ! $this->canUserView( $this->sCapability ) ) { |
|
42 | + if ( !$this->canUserView( $this->sCapability ) ) { |
|
43 | 43 | return ''; |
44 | 44 | } |
45 | 45 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Defines the field type slugs used for this field type. |
38 | 38 | */ |
39 | - public $aFieldTypeSlugs = array( 'file', ); |
|
39 | + public $aFieldTypeSlugs = array( 'file',); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Defines the default key-values of this field type. |
@@ -96,15 +96,15 @@ discard block |
||
96 | 96 | array( |
97 | 97 | 'type' => 'hidden', |
98 | 98 | 'value' => '', |
99 | - 'name' => $aField[ 'attributes' ][ 'name' ] . '[_dummy_value]', |
|
99 | + 'name' => $aField[ 'attributes' ][ 'name' ].'[_dummy_value]', |
|
100 | 100 | ) |
101 | 101 | ) |
102 | 102 | . $this->getHTMLTag( |
103 | 103 | 'input', |
104 | 104 | array( |
105 | 105 | 'type' => 'hidden', |
106 | - 'name' => '__unset_' . $aField[ '_structure_type' ] . '[' . $aField[ '_input_name_flat' ] . '|_dummy_value' . ']', |
|
107 | - 'value' => $aField[ '_input_name_flat' ] . '|_dummy_value', |
|
106 | + 'name' => '__unset_'.$aField[ '_structure_type' ].'['.$aField[ '_input_name_flat' ].'|_dummy_value'.']', |
|
107 | + 'value' => $aField[ '_input_name_flat' ].'|_dummy_value', |
|
108 | 108 | 'class' => 'unset-element-names element-address', |
109 | 109 | ) |
110 | 110 | ); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * Defines the field type slugs used for this field type. |
82 | 82 | */ |
83 | - public $aFieldTypeSlugs = array( 'posttype', ); |
|
83 | + public $aFieldTypeSlugs = array( 'posttype',); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Defines the default key-values of this field type. |
@@ -88,20 +88,20 @@ discard block |
||
88 | 88 | * @remark $_aDefaultKeys holds shared default key-values defined in the base class. |
89 | 89 | */ |
90 | 90 | protected $aDefaultKeys = array( |
91 | - 'slugs_to_remove' => null, // the default array will be assigned in the rendering method. |
|
91 | + 'slugs_to_remove' => null, // the default array will be assigned in the rendering method. |
|
92 | 92 | /** |
93 | 93 | * Accepts query arguments. For the argument specification, see the arg parameter of get_post_types() function. |
94 | 94 | * See: http://codex.wordpress.org/Function_Reference/get_post_types#Parameters |
95 | 95 | */ |
96 | - 'query' => array(), // 3.2.1+ |
|
97 | - 'operator' => 'and', // 3.2.1+ either 'and' or 'or' |
|
96 | + 'query' => array(), // 3.2.1+ |
|
97 | + 'operator' => 'and', // 3.2.1+ either 'and' or 'or' |
|
98 | 98 | 'attributes' => array( |
99 | 99 | 'size' => 30, |
100 | 100 | 'maxlength' => 400, |
101 | 101 | ), |
102 | - 'select_all_button' => true, // 3.3.0+ to change the label, set the label here |
|
103 | - 'select_none_button' => true, // 3.3.0+ to change the label, set the label here |
|
104 | - 'save_unchecked' => true, // (optional, boolean) 3.8.8+ Whether to store the values of unchecked items. |
|
102 | + 'select_all_button' => true, // 3.3.0+ to change the label, set the label here |
|
103 | + 'select_none_button' => true, // 3.3.0+ to change the label, set the label here |
|
104 | + 'save_unchecked' => true, // (optional, boolean) 3.8.8+ Whether to store the values of unchecked items. |
|
105 | 105 | ); |
106 | 106 | protected $aDefaultRemovingPostTypeSlugs = array( |
107 | 107 | 'revision', |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | protected function getStyles() { |
120 | 120 | $_sParentStyles = parent::getStyles(); |
121 | - return $_sParentStyles . <<<CSSRULES |
|
121 | + return $_sParentStyles.<<<CSSRULES |
|
122 | 122 | /* Posttype Field Type */ |
123 | 123 | .admin-page-framework-field input[type='checkbox'] { |
124 | 124 | margin-right: 0.5em; |
@@ -145,11 +145,11 @@ discard block |
||
145 | 145 | */ |
146 | 146 | protected function getField( $aField ) { |
147 | 147 | |
148 | - $this->_sCheckboxClassSelector = ''; // disable the checkbox class selector. |
|
148 | + $this->_sCheckboxClassSelector = ''; // disable the checkbox class selector. |
|
149 | 149 | $aField[ 'label' ] = $this->_getPostTypeArrayForChecklist( |
150 | 150 | isset( $aField[ 'slugs_to_remove' ] ) |
151 | 151 | ? $this->getAsArray( $aField[ 'slugs_to_remove' ] ) |
152 | - : $this->aDefaultRemovingPostTypeSlugs, // slugs to remove |
|
152 | + : $this->aDefaultRemovingPostTypeSlugs, // slugs to remove |
|
153 | 153 | $aField[ 'query' ], |
154 | 154 | $aField[ 'operator' ] |
155 | 155 | ); |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | * @return array The array holding the elements of installed post types' labels and their slugs except the specified expluding post types. |
171 | 171 | * @internal |
172 | 172 | */ |
173 | - private function _getPostTypeArrayForChecklist( $aSlugsToRemove, $asQueryArgs=array(), $sOperator='and' ) { |
|
173 | + private function _getPostTypeArrayForChecklist( $aSlugsToRemove, $asQueryArgs = array(), $sOperator = 'and' ) { |
|
174 | 174 | |
175 | 175 | $_aPostTypes = array(); |
176 | - foreach( get_post_types( $asQueryArgs, 'objects' ) as $_oPostType ) { |
|
177 | - if ( isset( $_oPostType->name, $_oPostType->label ) ) { |
|
176 | + foreach ( get_post_types( $asQueryArgs, 'objects' ) as $_oPostType ) { |
|
177 | + if ( isset( $_oPostType->name, $_oPostType->label ) ) { |
|
178 | 178 | $_aPostTypes[ $_oPostType->name ] = $_oPostType->label; |
179 | 179 | } |
180 | 180 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * Defines the field type slugs used for this field type. |
42 | 42 | */ |
43 | - public $aFieldTypeSlugs = array( 'import', ); |
|
43 | + public $aFieldTypeSlugs = array( 'import',); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Defines the default key-values of this field type. |
@@ -116,9 +116,9 @@ discard block |
||
116 | 116 | protected function getField( $aField ) { |
117 | 117 | |
118 | 118 | /* Set some required values */ |
119 | - $aField['attributes']['name'] = "__import[submit][{$aField['input_id']}]"; |
|
120 | - $aField['label'] = $aField['label'] |
|
121 | - ? $aField['label'] |
|
119 | + $aField[ 'attributes' ][ 'name' ] = "__import[submit][{$aField[ 'input_id' ]}]"; |
|
120 | + $aField[ 'label' ] = $aField[ 'label' ] |
|
121 | + ? $aField[ 'label' ] |
|
122 | 122 | : $this->oMsg->get( 'import' ); |
123 | 123 | return parent::getField( $aField ); |
124 | 124 | } |
@@ -133,13 +133,13 @@ discard block |
||
133 | 133 | * @return string |
134 | 134 | */ |
135 | 135 | protected function _getExtraFieldsBeforeLabel( &$aField ) { |
136 | - return "<input " . $this->getAttributes( |
|
136 | + return "<input ".$this->getAttributes( |
|
137 | 137 | array( |
138 | - 'id' => "{$aField['input_id']}_file", |
|
138 | + 'id' => "{$aField[ 'input_id' ]}_file", |
|
139 | 139 | 'type' => 'file', |
140 | - 'name' => "__import[{$aField['input_id']}]", |
|
141 | - ) + $aField['attributes']['file'] |
|
142 | - ) . " />"; |
|
140 | + 'name' => "__import[{$aField[ 'input_id' ]}]", |
|
141 | + ) + $aField[ 'attributes' ][ 'file' ] |
|
142 | + )." />"; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -150,44 +150,44 @@ discard block |
||
150 | 150 | */ |
151 | 151 | protected function _getExtraInputFields( &$aField ) { |
152 | 152 | |
153 | - $aHiddenAttributes = array( 'type' => 'hidden', ); |
|
153 | + $aHiddenAttributes = array( 'type' => 'hidden',); |
|
154 | 154 | return |
155 | - "<input " . $this->getAttributes( |
|
155 | + "<input ".$this->getAttributes( |
|
156 | 156 | array( |
157 | - 'name' => "__import[{$aField['input_id']}][input_id]", |
|
158 | - 'value' => $aField['input_id'], |
|
157 | + 'name' => "__import[{$aField[ 'input_id' ]}][input_id]", |
|
158 | + 'value' => $aField[ 'input_id' ], |
|
159 | 159 | ) + $aHiddenAttributes |
160 | - ) . "/>" |
|
161 | - . "<input " . $this->getAttributes( |
|
160 | + )."/>" |
|
161 | + . "<input ".$this->getAttributes( |
|
162 | 162 | array( |
163 | - 'name' => "__import[{$aField['input_id']}][field_id]", |
|
164 | - 'value' => $aField['field_id'], |
|
163 | + 'name' => "__import[{$aField[ 'input_id' ]}][field_id]", |
|
164 | + 'value' => $aField[ 'field_id' ], |
|
165 | 165 | ) + $aHiddenAttributes |
166 | - ) . "/>" |
|
167 | - . "<input " . $this->getAttributes( |
|
166 | + )."/>" |
|
167 | + . "<input ".$this->getAttributes( |
|
168 | 168 | array( |
169 | - 'name' => "__import[{$aField['input_id']}][section_id]", |
|
170 | - 'value' => isset( $aField['section_id'] ) && $aField['section_id'] != '_default' ? $aField['section_id'] : '', |
|
169 | + 'name' => "__import[{$aField[ 'input_id' ]}][section_id]", |
|
170 | + 'value' => isset( $aField[ 'section_id' ] ) && $aField[ 'section_id' ] != '_default' ? $aField[ 'section_id' ] : '', |
|
171 | 171 | ) + $aHiddenAttributes |
172 | - ) . "/>" |
|
173 | - . "<input " . $this->getAttributes( |
|
172 | + )."/>" |
|
173 | + . "<input ".$this->getAttributes( |
|
174 | 174 | array( |
175 | - 'name' => "__import[{$aField['input_id']}][is_merge]", |
|
176 | - 'value' => $aField['is_merge'], |
|
175 | + 'name' => "__import[{$aField[ 'input_id' ]}][is_merge]", |
|
176 | + 'value' => $aField[ 'is_merge' ], |
|
177 | 177 | ) + $aHiddenAttributes |
178 | - ) . "/>" |
|
179 | - . "<input " . $this->getAttributes( |
|
178 | + )."/>" |
|
179 | + . "<input ".$this->getAttributes( |
|
180 | 180 | array( |
181 | - 'name' => "__import[{$aField['input_id']}][option_key]", |
|
182 | - 'value' => $aField['option_key'], |
|
181 | + 'name' => "__import[{$aField[ 'input_id' ]}][option_key]", |
|
182 | + 'value' => $aField[ 'option_key' ], |
|
183 | 183 | ) + $aHiddenAttributes |
184 | - ) . "/>" |
|
185 | - . "<input " . $this->getAttributes( |
|
184 | + )."/>" |
|
185 | + . "<input ".$this->getAttributes( |
|
186 | 186 | array( |
187 | - 'name' => "__import[{$aField['input_id']}][format]", |
|
188 | - 'value' => $aField['format'], |
|
187 | + 'name' => "__import[{$aField[ 'input_id' ]}][format]", |
|
188 | + 'value' => $aField[ 'format' ], |
|
189 | 189 | ) + $aHiddenAttributes |
190 | - ) . "/>" |
|
190 | + )."/>" |
|
191 | 191 | ; |
192 | 192 | } |
193 | 193 |
@@ -62,16 +62,16 @@ discard block |
||
62 | 62 | * - use_desc_for_title (boolean|int) default is 1 - Whether to use the category description as the title attribute. side note: the framework enables this by default. |
63 | 63 | * @param integer $iCurrentObjectID |
64 | 64 | */ |
65 | - function start_el( &$sOutput, $oTerm, $iDepth=0, $aArgs=array(), $iCurrentObjectID=0 ) { |
|
65 | + function start_el( &$sOutput, $oTerm, $iDepth = 0, $aArgs = array(), $iCurrentObjectID = 0 ) { |
|
66 | 66 | |
67 | 67 | $aArgs = $aArgs + array( |
68 | 68 | '_name_prefix' => null, |
69 | 69 | '_input_id_prefix' => null, |
70 | 70 | '_attributes' => array(), |
71 | 71 | '_selected_items' => array(), |
72 | - 'taxonomy' => null, // parsed by the core function to perform the database query. |
|
73 | - 'disabled' => null, // not sure what this was for |
|
74 | - '_save_unchecked' => true, // 3.8.8+ |
|
72 | + 'taxonomy' => null, // parsed by the core function to perform the database query. |
|
73 | + 'disabled' => null, // not sure what this was for |
|
74 | + '_save_unchecked' => true, // 3.8.8+ |
|
75 | 75 | ); |
76 | 76 | |
77 | 77 | // Local variables |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | // Post count |
85 | 85 | $_sPostCount = $aArgs[ 'show_post_count' ] |
86 | - ? " <span class='font-lighter'>(" . $oTerm->count . ")</span>" |
|
86 | + ? " <span class='font-lighter'>(".$oTerm->count.")</span>" |
|
87 | 87 | : ''; |
88 | 88 | |
89 | 89 | // Attributes |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | + array( |
103 | 103 | 'class' => null, |
104 | 104 | ); |
105 | - $_aInputAttributes['class'] .= ' apf_checkbox'; |
|
105 | + $_aInputAttributes[ 'class' ] .= ' apf_checkbox'; |
|
106 | 106 | |
107 | 107 | $_aLiTagAttributes = array( |
108 | 108 | 'id' => "list-{$_sID}", |
@@ -111,15 +111,15 @@ discard block |
||
111 | 111 | ); |
112 | 112 | |
113 | 113 | $_sHiddenInputForUnchecked = $aArgs[ '_save_unchecked' ] |
114 | - ? "<input value='0' type='hidden' name='" . $_aInputAttributes[ 'name' ] . "' class='apf_checkbox' />" |
|
114 | + ? "<input value='0' type='hidden' name='".$_aInputAttributes[ 'name' ]."' class='apf_checkbox' />" |
|
115 | 115 | : ''; |
116 | 116 | |
117 | 117 | // Output - the variable is by reference so the modification takes effect |
118 | 118 | $sOutput .= "\n" |
119 | - . "<li " . AdminPageFramework_WPUtility::getAttributes( $_aLiTagAttributes ) . ">" |
|
119 | + . "<li ".AdminPageFramework_WPUtility::getAttributes( $_aLiTagAttributes ).">" |
|
120 | 120 | . "<label for='{$_sID}' class='taxonomy-checklist-label'>" |
121 | 121 | . $_sHiddenInputForUnchecked // 3.8.8+ |
122 | - . "<input " . AdminPageFramework_WPUtility::getAttributes( $_aInputAttributes ) . " />" |
|
122 | + . "<input ".AdminPageFramework_WPUtility::getAttributes( $_aInputAttributes )." />" |
|
123 | 123 | . esc_html( apply_filters( 'the_category', $oTerm->name ) ) |
124 | 124 | . $_sPostCount |
125 | 125 | . "</label>"; |
@@ -36,21 +36,21 @@ |
||
36 | 36 | */ |
37 | 37 | public function _replyToGetField( $aField ) { |
38 | 38 | return |
39 | - $aField['before_label'] |
|
39 | + $aField[ 'before_label' ] |
|
40 | 40 | . "<div class='admin-page-framework-input-label-container'>" |
41 | - . "<label for='{$aField['input_id']}'>" |
|
42 | - . $aField['before_input'] |
|
43 | - . ( $aField['label'] && ! $aField['repeatable'] |
|
44 | - ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">" |
|
41 | + . "<label for='{$aField[ 'input_id' ]}'>" |
|
42 | + . $aField[ 'before_input' ] |
|
43 | + . ( $aField[ 'label' ] && !$aField[ 'repeatable' ] |
|
44 | + ? "<span ".$this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ).">" |
|
45 | 45 | . $aField[ 'label' ] |
46 | 46 | . "</span>" |
47 | 47 | : "" |
48 | 48 | ) |
49 | - . $aField['value'] |
|
50 | - . $aField['after_input'] |
|
49 | + . $aField[ 'value' ] |
|
50 | + . $aField[ 'after_input' ] |
|
51 | 51 | . "</label>" |
52 | 52 | . "</div>" |
53 | - . $aField['after_label'] |
|
53 | + . $aField[ 'after_label' ] |
|
54 | 54 | ; |
55 | 55 | } |
56 | 56 |