@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $this->link_format = $link_format; |
84 | 84 | $this->after_link = $after_link; |
85 | 85 | $this->context = $context; |
86 | - $this->empty_message = function_exists( 'gv_no_results' ) ? gv_no_results() : __('No entries match your request.', 'gravityview'); |
|
86 | + $this->empty_message = function_exists( 'gv_no_results' ) ? gv_no_results() : __( 'No entries match your request.', 'gravityview' ); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -169,25 +169,25 @@ discard block |
||
169 | 169 | public function get_output() { |
170 | 170 | |
171 | 171 | // No Entries |
172 | - if( empty( $this->entries ) ) { |
|
173 | - return '<div class="gv-no-results">'.$this->empty_message.'</div>'; |
|
172 | + if ( empty( $this->entries ) ) { |
|
173 | + return '<div class="gv-no-results">' . $this->empty_message . '</div>'; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | $output = ''; |
177 | 177 | $current_entry = GravityView_View::getInstance()->getCurrentEntry(); |
178 | 178 | |
179 | - $output .= '<'. $this->wrapper_tag .'>'; |
|
179 | + $output .= '<' . $this->wrapper_tag . '>'; |
|
180 | 180 | |
181 | - foreach( $this->entries as $entry ) { |
|
181 | + foreach ( $this->entries as $entry ) { |
|
182 | 182 | |
183 | - if( $this->skip_entry( $entry, $current_entry ) ) { |
|
183 | + if ( $this->skip_entry( $entry, $current_entry ) ) { |
|
184 | 184 | continue; |
185 | 185 | } |
186 | 186 | |
187 | 187 | $output .= $this->get_item_output( $entry ); |
188 | 188 | } |
189 | 189 | |
190 | - $output .= '</'. $this->wrapper_tag .'>'; |
|
190 | + $output .= '</' . $this->wrapper_tag . '>'; |
|
191 | 191 | |
192 | 192 | /** |
193 | 193 | * @filter `gravityview/widget/recent-entries/output` Modify the HTML of the Recent Entries widget output |
@@ -210,15 +210,15 @@ discard block |
||
210 | 210 | private function skip_entry( $entry, $current_entry ) { |
211 | 211 | |
212 | 212 | // If skip entry is off, or there's no current entry, return false |
213 | - if( empty( $this->skip_current_entry ) || empty( $current_entry ) ) { |
|
213 | + if ( empty( $this->skip_current_entry ) || empty( $current_entry ) ) { |
|
214 | 214 | return false; |
215 | 215 | } |
216 | 216 | |
217 | 217 | // If in Single or Edit mode, $current_entry will be an array. |
218 | - $current_entry_id = is_array( $current_entry ) ? $current_entry['id'] : $current_entry; |
|
218 | + $current_entry_id = is_array( $current_entry ) ? $current_entry[ 'id' ] : $current_entry; |
|
219 | 219 | |
220 | 220 | // If the entry ID matches the current entry, yes: skip |
221 | - if( $entry['id'] === $current_entry_id ) { |
|
221 | + if ( $entry[ 'id' ] === $current_entry_id ) { |
|
222 | 222 | return true; |
223 | 223 | } |
224 | 224 | |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | |
246 | 246 | $item_output = gravityview_get_link( $link, $this->link_format ); |
247 | 247 | |
248 | - if( !empty( $this->after_link ) ) { |
|
248 | + if ( ! empty( $this->after_link ) ) { |
|
249 | 249 | |
250 | 250 | /** |
251 | 251 | * @filter `gravityview/entry-list/after-link` Modify the content displayed after the entry link in an entry list |
@@ -254,14 +254,14 @@ discard block |
||
254 | 254 | * @param array $entry Gravity Forms entry array |
255 | 255 | * @param GravityView_Entry_List $this The current class instance |
256 | 256 | */ |
257 | - $after_link = apply_filters( 'gravityview/entry-list/after-link', '<div>'.$this->after_link.'</div>', $entry, $this ); |
|
257 | + $after_link = apply_filters( 'gravityview/entry-list/after-link', '<div>' . $this->after_link . '</div>', $entry, $this ); |
|
258 | 258 | |
259 | 259 | $item_output .= $after_link; |
260 | 260 | } |
261 | 261 | |
262 | 262 | $item_output = GravityView_API::replace_variables( $item_output, $this->form, $entry ); |
263 | 263 | |
264 | - $item_output = '<'. $this->item_tag .'>'. $item_output .'</'. $this->item_tag .'>'; |
|
264 | + $item_output = '<' . $this->item_tag . '>' . $item_output . '</' . $this->item_tag . '>'; |
|
265 | 265 | |
266 | 266 | /** |
267 | 267 | * @filter `gravityview/entry-list/item` Modify each item's output in an entry list |