PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.3
Elementor Website Builder – more than just a page builder v3.1.3
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 / modules / system-info / templates / raw.php

raw.php in Elementor Website Builder – more than just a page builder 3.1.3, at modules/system-info/templates/raw.php

66 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5
6 /**
7 * @var array $reports
8 * @var array $required_plugins_properties
9 * @var int $tabs_count
10 */
11
12 $tabs_count++;
13
14 $required_plugins_properties = array_flip( $required_plugins_properties );
15
16 unset( $required_plugins_properties['Name'] );
17
18 foreach ( $reports as $report_name => $report ) :
19 $indent = str_repeat( "\t", $tabs_count - 1 );
20
21 $is_plugins = in_array( $report_name, [
22 'plugins',
23 'network_plugins',
24 'mu_plugins',
25 ] );
26
27 if ( ! $is_plugins ) :
28 echo PHP_EOL . $indent . '== ' . $report['label'] . ' ==';
29 endif;
30
31 echo PHP_EOL;
32
33 foreach ( $report['report'] as $field_name => $field ) :
34 $sub_indent = str_repeat( "\t", $tabs_count );
35
36 if ( $is_plugins ) {
37 echo "== {$field['label']} ==" . PHP_EOL;
38
39 foreach ( $field['value'] as $plugin_info ) :
40 $plugin_properties = array_intersect_key( $plugin_info, $required_plugins_properties );
41
42 echo $sub_indent . $plugin_info['Name'];
43
44 foreach ( $plugin_properties as $property_name => $property ) :
45 echo PHP_EOL . "{$sub_indent}\t{$property_name}: {$property}";
46 endforeach;
47
48 echo PHP_EOL . PHP_EOL;
49 endforeach;
50 } else {
51 $label = $field['label'];
52
53 if ( ! empty( $label ) ) {
54 $label .= ': ';
55 }
56 echo "{$sub_indent}{$label}{$field['value']}" . PHP_EOL;
57 }
58 endforeach;
59
60 if ( ! empty( $report['sub'] ) ) :
61 $this->print_report( $report['sub'], $template, true );
62 endif;
63 endforeach;
64
65 $tabs_count--;
66