PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.0-dev10
Elementor Website Builder – more than just a page builder v3.6.0-dev10
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / experiments / manager.php

manager.php in Elementor Website Builder – more than just a page builder 3.6.0-dev10, at core/experiments/manager.php

674 lines 20.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Experiments;
3
4 use Elementor\Core\Base\Base_Object;
5 use Elementor\Core\Experiments\Manager as Experiments_Manager;
6 use Elementor\Core\Upgrade\Manager as Upgrade_Manager;
7 use Elementor\Modules\System_Info\Module as System_Info;
8 use Elementor\Plugin;
9 use Elementor\Settings;
10 use Elementor\Tracker;
11 use Elementor\Modules\SafeMode\Module as Safe_Mode;
12 use Elementor\Utils;
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly
16 }
17
18 class Manager extends Base_Object {
19
20 const RELEASE_STATUS_DEV = 'dev';
21
22 const RELEASE_STATUS_ALPHA = 'alpha';
23
24 const RELEASE_STATUS_BETA = 'beta';
25
26 const RELEASE_STATUS_RC = 'rc';
27
28 const RELEASE_STATUS_STABLE = 'stable';
29
30 const STATE_DEFAULT = 'default';
31
32 const STATE_ACTIVE = 'active';
33
34 const STATE_INACTIVE = 'inactive';
35
36 private $states;
37
38 private $release_statuses;
39
40 private $features;
41
42 /**
43 * Add Feature
44 *
45 * @since 3.1.0
46 * @access public
47 *
48 * @param array $options {
49 * @type string $name
50 * @type string $title
51 * @type string $description
52 * @type string $release_status
53 * @type string $default
54 * @type callable $on_state_change
55 * }
56 *
57 * @return array|null
58 */
59 public function add_feature( array $options ) {
60 if ( isset( $this->features[ $options['name'] ] ) ) {
61 return null;
62 }
63
64 $default_experimental_data = [
65 'description' => '',
66 'release_status' => self::RELEASE_STATUS_ALPHA,
67 'default' => self::STATE_INACTIVE,
68 'new_site' => [
69 'default_active' => false,
70 'always_active' => false,
71 'minimum_installation_version' => null,
72 ],
73 'on_state_change' => null,
74 ];
75
76 $allowed_options = [ 'name', 'title', 'description', 'release_status', 'default', 'new_site', 'on_state_change' ];
77
78 $experimental_data = $this->merge_properties( $default_experimental_data, $options, $allowed_options );
79
80 $new_site = $experimental_data['new_site'];
81
82 $feature_is_mutable = true;
83
84 if ( $new_site['default_active'] || $new_site['always_active'] ) {
85 $is_new_installation = Upgrade_Manager::install_compare( $new_site['minimum_installation_version'], '>=' );
86
87 if ( $is_new_installation ) {
88 if ( $new_site['always_active'] ) {
89 $experimental_data['state'] = self::STATE_ACTIVE;
90
91 $feature_is_mutable = false;
92 } elseif ( $new_site['default_active'] ) {
93 $experimental_data['default'] = self::STATE_ACTIVE;
94 }
95 }
96 }
97
98 $experimental_data['mutable'] = $feature_is_mutable;
99
100 if ( $feature_is_mutable ) {
101 $state = $this->get_saved_feature_state( $options['name'] );
102
103 if ( ! $state ) {
104 $state = self::STATE_DEFAULT;
105 }
106
107 $experimental_data['state'] = $state;
108 }
109
110 $this->features[ $options['name'] ] = $experimental_data;
111
112 if ( $feature_is_mutable && is_admin() ) {
113 $feature_option_key = $this->get_feature_option_key( $options['name'] );
114
115 $on_state_change_callback = function( $old_state, $new_state ) use ( $experimental_data ) {
116 $this->on_feature_state_change( $experimental_data, $new_state );
117 };
118
119 add_action( 'add_option_' . $feature_option_key, $on_state_change_callback, 10, 2 );
120 add_action( 'update_option_' . $feature_option_key, $on_state_change_callback, 10, 2 );
121 }
122
123 do_action( 'elementor/experiments/feature-registered', $this, $experimental_data );
124
125 return $experimental_data;
126 }
127
128 /**
129 * Remove Feature
130 *
131 * @since 3.1.0
132 * @access public
133 *
134 * @param string $feature_name
135 */
136 public function remove_feature( $feature_name ) {
137 unset( $this->features[ $feature_name ] );
138 }
139
140 /**
141 * Get Features
142 *
143 * @since 3.1.0
144 * @access public
145 *
146 * @param string $feature_name Optional. Default is null
147 *
148 * @return array|null
149 */
150 public function get_features( $feature_name = null ) {
151 return self::get_items( $this->features, $feature_name );
152 }
153
154 /**
155 * Get Active Features
156 *
157 * @since 3.1.0
158 * @access public
159 *
160 * @return array
161 */
162 public function get_active_features() {
163 return array_filter( $this->features, [ $this, 'is_feature_active' ], ARRAY_FILTER_USE_KEY );
164 }
165
166 /**
167 * Is Feature Active
168 *
169 * @since 3.1.0
170 * @access public
171 *
172 * @param string $feature_name
173 *
174 * @return bool
175 */
176 public function is_feature_active( $feature_name ) {
177 $feature = $this->get_features( $feature_name );
178
179 if ( ! $feature ) {
180 return false;
181 }
182
183 return self::STATE_ACTIVE === $this->get_feature_actual_state( $feature );
184 }
185
186 /**
187 * Set Feature Default State
188 *
189 * @since 3.1.0
190 * @access public
191 *
192 * @param string $feature_name
193 * @param int $default_state
194 */
195 public function set_feature_default_state( $feature_name, $default_state ) {
196 $feature = $this->get_features( $feature_name );
197
198 if ( ! $feature ) {
199 return;
200 }
201
202 $this->features[ $feature_name ]['default'] = $default_state;
203 }
204
205 /**
206 * Get Feature Option Key
207 *
208 * @since 3.1.0
209 * @access public
210 *
211 * @param string $feature_name
212 *
213 * @return string
214 */
215 public function get_feature_option_key( $feature_name ) {
216 return 'elementor_experiment-' . $feature_name;
217 }
218
219 private function add_default_features() {
220 $this->add_feature( [
221 'name' => 'e_dom_optimization',
222 'title' => esc_html__( 'Optimized DOM Output', 'elementor' ),
223 'description' => esc_html__( 'Developers, Please Note! This experiment includes some markup changes. If you\'ve used custom code in Elementor, you might have experienced a snippet of code not running. Turning this experiment off allows you to keep prior Elementor markup output settings, and have that lovely code running again.', 'elementor' )
224 . ' <a href="https://go.elementor.com/wp-dash-legacy-optimized-dom" target="_blank">'
225 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
226 'release_status' => self::RELEASE_STATUS_STABLE,
227 'new_site' => [
228 'default_active' => true,
229 'minimum_installation_version' => '3.1.0-beta',
230 ],
231 ] );
232
233 $this->add_feature( [
234 'name' => 'e_optimized_assets_loading',
235 'title' => esc_html__( 'Improved Asset Loading', 'elementor' ),
236 'description' => esc_html__( 'Please Note! The "Improved Asset Loading" mode reduces the amount of code that is loaded on the page by default. When activated, parts of the infrastructure code will be loaded dynamically, only when needed. Keep in mind that activating this experiment may cause conflicts with incompatible plugins.', 'elementor' )
237 . ' <a href="https://go.elementor.com/wp-dash-improved-asset-loading/" target="_blank">'
238 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
239 'release_status' => self::RELEASE_STATUS_BETA,
240 'new_site' => [
241 'default_active' => true,
242 'minimum_installation_version' => '3.2.0-beta',
243 ],
244 ] );
245
246 $this->add_feature( [
247 'name' => 'e_optimized_css_loading',
248 'title' => esc_html__( 'Improved CSS Loading', 'elementor' ),
249 'description' => esc_html__( 'Please Note! The “Improved CSS Loading” mode reduces the amount of CSS code that is loaded on the page by default. When activated, the CSS code will be loaded, rather inline or in a dedicated file, only when needed. Activating this experiment may cause conflicts with incompatible plugins.', 'elementor' )
250 . ' <a href="https://go.elementor.com/wp-dash-improved-css-loading/" target="_blank">'
251 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
252 'release_status' => self::RELEASE_STATUS_BETA,
253 'new_site' => [
254 'default_active' => true,
255 'minimum_installation_version' => '3.3.0-beta',
256 ],
257 ] );
258
259 $this->add_feature( [
260 'name' => 'e_font_icon_svg',
261 'title' => esc_html__( 'Inline Font Icons', 'elementor' ),
262 'description' => esc_html__( 'The “Inline Font Icons” will render the icons as inline SVG without loading the Font-Awsome and the eicons libraries and its related CSS files and fonts. Learn More.', 'elementor' )
263 . ' <a href="https://go.elementor.com/wp-dash-inline-font-awesome/" target="_blank">'
264 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
265 'release_status' => self::RELEASE_STATUS_ALPHA,
266 ] );
267
268 $this->add_feature( [
269 'name' => 'a11y_improvements',
270 'title' => esc_html__( 'Accessibility Improvements', 'elementor' ),
271 'description' => esc_html__( 'An array of accessibility enhancements in Elementor pages.', 'elementor' )
272 . '<br><strong>' . esc_html__( 'Please note!', 'elementor' ) . '</strong> ' . esc_html__( 'These enhancements may include some markup changes to existing elementor widgets', 'elementor' )
273 . ' <a href="https://go.elementor.com/wp-dash-a11y-improvements" target="_blank">'
274 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
275 'release_status' => self::RELEASE_STATUS_STABLE,
276 'new_site' => [
277 'default_active' => true,
278 'minimum_installation_version' => '3.1.0-beta',
279 ],
280 ] );
281
282 $this->add_feature( [
283 'name' => 'e_import_export',
284 'title' => esc_html__( 'Import Export Template Kit', 'elementor' ),
285 'description' => esc_html__( 'Design sites faster with a template kit that contains some or all components of a complete site, like templates, content & site settings.', 'elementor' )
286 . '<br>'
287 . esc_html__( 'You can import a kit and apply it to your site, or export the elements from this site to be used anywhere else.', 'elementor' ),
288 'release_status' => self::RELEASE_STATUS_BETA,
289 'default' => self::STATE_ACTIVE,
290 'new_site' => [
291 'default_active' => true,
292 'minimum_installation_version' => '3.2.0-beta',
293 ],
294 ] );
295
296 $this->add_feature( [
297 'name' => 'additional_custom_breakpoints',
298 'title' => esc_html__( 'Additional Custom Breakpoints', 'elementor' ),
299 'description' => esc_html__( 'Get pixel-perfect design for every screen size. You can now add up to 6 customizable breakpoints beyond the default desktop setting: mobile, mobile extra, tablet, tablet extra, laptop, and widescreen.', 'elementor' )
300 . '<br /><strong>' . esc_html__( 'Please note! Conditioning controls on values of responsive controls is not supported when this mode is active.', 'elementor' ) . '</strong>'
301 . ' <a href="https://go.elementor.com/wp-dash-additional-custom-breakpoints/" target="_blank">'
302 . esc_html__( 'Learn More', 'elementor' ) . '</a>',
303 'release_status' => self::RELEASE_STATUS_BETA,
304 'new_site' => [
305 'default_active' => true,
306 'minimum_installation_version' => '3.4.0-beta',
307 ],
308 ] );
309
310 $this->add_feature( [
311 'name' => 'e_hidden_wordpress_widgets',
312 'title' => esc_html__( 'Hide native WordPress widgets from search results', 'elementor' ),
313 'description' => esc_html__( 'WordPress widgets will not be shown when searching in the editor panel. Instead, these widgets can be found in the “WordPress” dropdown at the bottom of the panel.', 'elementor' ),
314 'release_status' => self::RELEASE_STATUS_BETA,
315 'default' => self::STATE_ACTIVE,
316 ] );
317
318 $this->add_feature( [
319 'name' => 'container',
320 'title' => esc_html__( 'Container', 'elementor' ),
321 'description' => esc_html__(
322 'Create advanced layouts and responsive designs using the new Container element.
323 When this experiment is active, Containers will be the default building block.
324 Existing Sections, Inner Sections and Columns will not be affected.',
325 'elementor'
326 ),
327 'release_status' => self::RELEASE_STATUS_BETA,
328 'default' => self::STATE_INACTIVE,
329 ] );
330 }
331
332 /**
333 * Init States
334 *
335 * @since 3.1.0
336 * @access private
337 */
338 private function init_states() {
339 $this->states = [
340 self::STATE_DEFAULT => esc_html__( 'Default', 'elementor' ),
341 self::STATE_ACTIVE => esc_html__( 'Active', 'elementor' ),
342 self::STATE_INACTIVE => esc_html__( 'Inactive', 'elementor' ),
343 ];
344 }
345
346 /**
347 * Init Statuses
348 *
349 * @since 3.1.0
350 * @access private
351 */
352 private function init_release_statuses() {
353 $this->release_statuses = [
354 self::RELEASE_STATUS_DEV => esc_html__( 'Development', 'elementor' ),
355 self::RELEASE_STATUS_ALPHA => esc_html__( 'Alpha', 'elementor' ),
356 self::RELEASE_STATUS_BETA => esc_html__( 'Beta', 'elementor' ),
357 self::RELEASE_STATUS_RC => esc_html__( 'Release Candidate', 'elementor' ),
358 self::RELEASE_STATUS_STABLE => esc_html__( 'Stable', 'elementor' ),
359 ];
360 }
361
362 /**
363 * Init Features
364 *
365 * @since 3.1.0
366 * @access private
367 */
368 private function init_features() {
369 $this->features = [];
370
371 $this->add_default_features();
372
373 do_action( 'elementor/experiments/default-features-registered', $this );
374 }
375
376 /**
377 * Register Settings Fields
378 *
379 * @param Settings $settings
380 *
381 * @since 3.1.0
382 * @access private
383 *
384 */
385 private function register_settings_fields( Settings $settings ) {
386 $features = $this->get_features();
387
388 $fields = [];
389
390 foreach ( $features as $feature_name => $feature ) {
391 if ( ! $feature['mutable'] ) {
392 unset( $features[ $feature_name ] );
393
394 continue;
395 }
396
397 $feature_key = 'experiment-' . $feature_name;
398
399 $section = 'stable' === $feature['release_status'] ? 'stable' : 'ongoing';
400
401 $fields[ $section ][ $feature_key ]['label'] = $this->get_feature_settings_label_html( $feature );
402
403 $fields[ $section ][ $feature_key ]['field_args'] = $feature;
404
405 $fields[ $section ][ $feature_key ]['render'] = function( $feature ) {
406 $this->render_feature_settings_field( $feature );
407 };
408 }
409
410 foreach ( [ 'stable', 'ongoing' ] as $section ) {
411 if ( ! isset( $fields[ $section ] ) ) {
412 $fields[ $section ]['no_features'] = [
413 'label' => esc_html__( 'No available experiments', 'elementor' ),
414 'field_args' => [
415 'type' => 'raw_html',
416 'html' => esc_html__( 'The current version of Elementor doesn\'t have any experimental features . if you\'re feeling curious make sure to come back in future versions.', 'elementor' ),
417 ],
418 ];
419 }
420
421 if ( ! Tracker::is_allow_track() && 'stable' === $section ) {
422 $fields[ $section ] += $settings->get_usage_fields();
423 }
424 }
425
426 $settings->add_tab(
427 'experiments', [
428 'label' => esc_html__( 'Experiments', 'elementor' ),
429 'sections' => [
430 'ongoing_experiments' => [
431 'callback' => function() {
432 $this->render_settings_intro();
433 },
434 'fields' => $fields['ongoing'],
435 ],
436 'stable_experiments' => [
437 'callback' => function() {
438 $this->render_stable_section_title();
439 },
440 'fields' => $fields['stable'],
441 ],
442 ],
443 ]
444 );
445 }
446
447 private function render_stable_section_title() {
448 ?>
449 <hr>
450 <h2>
451 <?php echo esc_html__( 'Stable Features', 'elementor' ); ?>
452 </h2>
453 <?php
454 }
455
456 /**
457 * Render Settings Intro
458 *
459 * @since 3.1.0
460 * @access private
461 */
462 private function render_settings_intro() {
463 ?>
464 <h2>
465 <?php echo esc_html__( 'Elementor Experiments', 'elementor' ); ?>
466 </h2>
467 <p class="e-experiment__description">
468 <?php
469 printf(
470 /* translators: %1$s Link open tag, %2$s: Link close tag. */
471 esc_html__( 'Access new and experimental features from Elementor before they\'re officially released. As these features are still in development, they are likely to change, evolve or even be removed altogether. %1$sLearn More.%2$s', 'elementor' ),
472 '<a href="https://go.elementor.com/wp-dash-experiments/" target="_blank">',
473 '</a>'
474 );
475 ?>
476 </p>
477 <p class="e-experiment__description">
478 <?php echo esc_html__( 'To use an experiment on your site, simply click on the dropdown next to it and switch to Active. You can always deactivate them at any time.', 'elementor' ); ?>
479 </p>
480 <p class="e-experiment__description">
481 <?php
482 printf(
483 /* translators: %1$s Link open tag, %2$s: Link close tag. */
484 esc_html__( 'Your feedback is important - %1$shelp us%2$s improve these features by sharing your thoughts and inputs.', 'elementor' ),
485 '<a href="https://go.elementor.com/wp-dash-experiments-report-an-issue/" target="_blank">',
486 '</a>'
487 );
488 ?>
489 </p>
490 <?php if ( $this->get_features() ) { ?>
491 <button type="button" class="button e-experiment__button" value="active">Activate All Experiments</button>
492 <button type="button" class="button e-experiment__button" value="inactive">Deactivate All Experiments</button>
493 <?php } ?>
494 <hr>
495 <h2 class="e-experiment__table-title">
496 <?php echo esc_html__( 'Ongoing Experiments', 'elementor' ); ?>
497 </h2>
498 <?php
499 }
500
501 /**
502 * Render Feature Settings Field
503 *
504 * @since 3.1.0
505 * @access private
506 *
507 * @param array $feature
508 */
509 private function render_feature_settings_field( array $feature ) {
510 ?>
511 <div class="e-experiment__content">
512 <select id="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" class="e-experiment__select" name="<?php echo $this->get_feature_option_key( $feature['name'] ); ?>">
513 <?php foreach ( $this->states as $state_key => $state_title ) { ?>
514 <option value="<?php echo $state_key; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" <?php selected( $state_key, $feature['state'] ); ?>><?php echo $state_title; ?></option>
515 <?php } ?>
516 </select>
517 <p class="description"><?php echo $feature['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
518 <?php if ( 'stable' !== $feature['release_status'] ) { ?>
519 <div class="e-experiment__status"><?php echo sprintf( esc_html__( 'Status: %s', 'elementor' ), $this->release_statuses[ $feature['release_status'] ] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
520 <?php } ?>
521 </div>
522 <?php
523 }
524
525 /**
526 * Get Feature Settings Label HTML
527 *
528 * @since 3.1.0
529 * @access private
530 *
531 * @param array $feature
532 *
533 * @return string
534 */
535 private function get_feature_settings_label_html( array $feature ) {
536 ob_start();
537
538 $is_feature_active = $this->is_feature_active( $feature['name'] );
539
540 $indicator_classes = 'e-experiment__title__indicator';
541
542 if ( $is_feature_active ) {
543 $indicator_classes .= ' e-experiment__title__indicator--active';
544 }
545
546 $indicator_tooltip = $this->get_feature_state_label( $feature );
547
548 ?>
549 <div class="e-experiment__title">
550 <div class="<?php echo $indicator_classes; ?>" data-tooltip="<?php echo $indicator_tooltip; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"></div>
551 <label class="e-experiment__title__label" for="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php echo $feature['title']; ?></label>
552 </div>
553 <?php
554
555 return ob_get_clean();
556 }
557
558 /**
559 * Get Feature State Label
560 *
561 * @param array $feature
562 *
563 * @return string
564 */
565 public function get_feature_state_label( array $feature ) {
566 $is_feature_active = $this->is_feature_active( $feature['name'] );
567
568 if ( self::STATE_DEFAULT === $feature['state'] ) {
569 $label = $is_feature_active ? esc_html__( 'Active by default', 'elementor' ) :
570 esc_html__( 'Inactive by default', 'elementor' );
571 } else {
572 $label = self::STATE_ACTIVE === $feature['state'] ? esc_html__( 'Active', 'elementor' ) :
573 esc_html__( 'Inactive', 'elementor' );
574 }
575
576 return $label;
577 }
578
579 /**
580 * Get Feature Settings Label HTML
581 *
582 * @since 3.1.0
583 * @access private
584 *
585 * @param string $feature_name
586 *
587 * @return int
588 */
589 private function get_saved_feature_state( $feature_name ) {
590 return get_option( $this->get_feature_option_key( $feature_name ) );
591 }
592
593 /**
594 * Get Feature Actual State
595 *
596 * @since 3.1.0
597 * @access private
598 *
599 * @param array $feature
600 *
601 * @return string
602 */
603 private function get_feature_actual_state( array $feature ) {
604 if ( get_option( Safe_Mode::OPTION_ENABLED, '' ) ) {
605 return self::STATE_INACTIVE;
606 }
607
608 if ( self::STATE_DEFAULT !== $feature['state'] ) {
609 return $feature['state'];
610 }
611
612 return $feature['default'];
613 }
614
615 /**
616 * On Feature State Change
617 *
618 * @since 3.1.0
619 * @access private
620 *
621 * @param array $old_feature_data
622 * @param string $new_state
623 */
624 private function on_feature_state_change( array $old_feature_data, $new_state ) {
625 $this->features[ $old_feature_data['name'] ]['state'] = $new_state;
626
627 $new_feature_data = $this->get_features( $old_feature_data['name'] );
628
629 $actual_old_state = $this->get_feature_actual_state( $old_feature_data );
630
631 $actual_new_state = $this->get_feature_actual_state( $new_feature_data );
632
633 if ( $actual_old_state === $actual_new_state ) {
634 return;
635 }
636
637 Plugin::$instance->files_manager->clear_cache();
638
639 if ( $new_feature_data['on_state_change'] ) {
640 $new_feature_data['on_state_change']( $actual_old_state, $actual_new_state );
641 }
642 }
643
644 public function __construct() {
645 $this->init_states();
646
647 $this->init_release_statuses();
648
649 $this->init_features();
650
651 add_action( 'admin_init', function () {
652 System_Info::add_report(
653 'experiments', [
654 'file_name' => __DIR__ . '/experiments-reporter.php',
655 'class_name' => __NAMESPACE__ . '\Experiments_Reporter',
656 ]
657 );
658 }, 79 /* Before log */ );
659
660 if ( is_admin() ) {
661 $page_id = Settings::PAGE_ID;
662
663 add_action( "elementor/admin/after_create_settings/{$page_id}", function( Settings $settings ) {
664 $this->register_settings_fields( $settings );
665 }, 11 );
666 }
667
668 // Register CLI commands.
669 if ( Utils::is_wp_cli() ) {
670 \WP_CLI::add_command( 'elementor experiments', WP_CLI::class );
671 }
672 }
673 }
674