PluginProbe ʕ •ᴥ•ʔ
Redux Framework / 4.5.6
Redux Framework v4.5.6
trunk 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.13 4.3.14 4.3.15 4.3.16 4.3.17 4.3.18 4.3.19 4.3.2 4.3.20 4.3.21 4.3.22 4.3.24 4.3.25 4.3.26 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.10 4.4.11 4.4.12 4.4.13 4.4.14 4.4.15 4.4.16 4.4.17 4.4.18 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.6 4.5.7 4.5.8 4.5.9
redux-framework / redux-core / inc / welcome / views / about.php
redux-framework / redux-core / inc / welcome / views Last commit date
about.php 2 years ago index.php 1 year ago
about.php
171 lines
1 <?php
2 /**
3 * Admin View: Page - About
4 *
5 * @package Redux Framework
6 */
7
8 defined( 'ABSPATH' ) || exit;
9
10 ?>
11 <div class="wrap about-wrap">
12 <div class="error hide">
13 <p>Redux.io is running from within one of your products. To keep your site safe, please install the Redux
14 Framework
15 plugin from WordPress.org.</p>
16 </div>
17 <h1><?php printf( esc_html__( 'Welcome to', 'redux-framework' ) . ' Redux Framework %s', esc_html( $this->display_version ) ); ?></h1>
18
19
20 <div class="about-text">
21 <?php esc_html_e( "Redux is the world's most powerful and widely used WordPress interface builder. We are trusted by millions of developers and end users world-wide.", 'redux-framework' ); ?>
22 </div>
23 <div class="redux-badge">
24 <i class="el el-redux"></i>
25 <span><?php printf( esc_html__( 'Version', 'redux-framework' ) . ' %s', esc_html( Redux_Core::$version ) ); ?></span>
26 </div>
27
28 <?php $this->actions(); ?>
29 <?php $this->tabs(); ?>
30 <hr>
31 <?php
32
33 $sysinfo = Redux_Helpers::process_redux_callers();
34
35 ?>
36
37 <div class="feature-section <?php echo empty( $sysinfo ) ? 'one-col' : 'two-col'; ?>">
38 <div class="<?php echo ! empty( $sysinfo ) ? 'col' : ''; ?>">
39 <h2 style="text-align:left;"><?php echo esc_html__( 'Did I install this?', 'redux-framework' ); ?></h2>
40 <h3>
41 <?php
42 if ( ! empty( $sysinfo ) ) {
43 esc_html_e( 'Maybe not! These items are using Redux. If you want to keep using them, Redux will need to remain installed and activated.', 'redux-framework' );
44 } else {
45 $nonce = wp_create_nonce( 'redux_framework_demo' );
46
47 $query_args = array(
48 'page' => 'redux-framework',
49 'redux-framework-plugin' => 'demo',
50 'nonce' => $nonce,
51 );
52
53 // translators: %1$s: URL, %2$s: close tag.
54 printf( esc_html__( 'Maybe not! If you want to see what Redux is all about, click here to %1$sActivate Demo Mode%2$s.', 'redux-framework' ), '<a href="' . esc_url( admin_url( add_query_arg( $query_args, 'options-general.php' ) ) ) . '">', '</a>' );
55 }
56
57 ?>
58 </h3>
59 </div>
60 <div class="col">
61 <?php
62 if ( ! empty( $sysinfo ) && is_array( $sysinfo ) ) {
63 $plugin_index = array();
64 $plugin_data = get_plugins();
65
66 foreach ( $plugin_data as $key => $data ) {
67 $key_slug = explode( '/', $key );
68 $key_slug = $key_slug[0];
69 $plugin_index[ $key_slug ] = $key;
70 }
71
72 foreach ( $sysinfo as $project_type => $products ) {
73 if ( 'theme' === $project_type ) {
74 $my_theme = wp_get_theme();
75
76 ?>
77 <div class="redux-product">
78 <h2 class="name"><?php echo esc_html( $my_theme->get( 'Name' ) ); ?>
79 <?php if ( ! empty( $my_theme->get( 'Version' ) ) ) { ?>
80 <span class="version"><?php echo esc_html__( 'Version:', 'redux-framework' ); ?>&nbsp;<?php echo esc_html( $my_theme->get( 'Version' ) ); ?></span>
81 <?php } ?>
82 </h2>
83 <p class="author">
84 <?php if ( ! empty( $my_theme->get( 'Author' ) ) ) { ?>
85 <?php echo esc_html__( 'By', 'redux-framework' ); ?>
86 <a href="<?php echo ! empty( $my_theme->get( 'AuthorURI' ) ) ? esc_attr( $my_theme->get( 'AuthorURI' ) ) : esc_attr( $my_theme->get( 'ThemeURI' ) ); ?>">
87 <?php echo esc_html( $my_theme->get( 'Author' ) ); ?>
88
89 </a>
90 <?php } ?>
91 <span class="type theme">
92 <?php echo esc_html__( 'Theme', 'redux-framework' ); ?>
93 </span>
94 </p>
95 <hr style="margin: 0 0 15px 0;padding:0;">
96 <p class="author">
97 <small>
98 <?php
99 foreach ( $products as $slug => $data ) {
100 foreach ( $data as $opt_name => $callers ) {
101 echo '<span><strong>opt_name</strong>: <code>' . esc_html( $opt_name ) . '</code></span><br />';
102
103 foreach ( $callers as $caller ) {
104 echo '<span>~/' . esc_html( $caller['basename'] ) . '</span><br />';
105 }
106
107 echo '<br />';
108 }
109 }
110 ?>
111 </small>
112 </p>
113 </div>
114 <?php
115
116 } else {
117 foreach ( $products as $product => $data ) {
118 if ( ! isset( $plugin_index[ $product ] ) ) {
119 continue;
120 }
121
122 $plugin_path = Redux_Functions_Ex::wp_normalize_path( WP_PLUGIN_DIR . '/' . $plugin_index[ $product ] );
123 $plugin_data = get_plugin_data( $plugin_path );
124
125 ?>
126 <div class="redux-product">
127 <h2 class="name">
128 <?php echo esc_html( $plugin_data['Name'] ); ?>
129 <?php if ( ! empty( $plugin_data['Version'] ) ) { ?>
130 <span class="version"><?php echo esc_html__( 'Version', 'redux-framework' ); ?>&nbsp;<?php echo esc_html( $plugin_data['Version'] ); ?></span>
131 <?php } ?>
132 </h2>
133 <p class="author">
134 <?php
135 if ( ! empty( $plugin_data['Author'] ) ) {
136 $plugin_url = ! empty( $plugin_data['AuthorURI'] ) ? $plugin_data['AuthorURI'] : $plugin_data['PluginURI'];
137 ?>
138 <?php echo esc_html__( 'By', 'redux-framework' ); ?>
139 <a href="<?php echo esc_attr( $plugin_url ); ?>">
140 <?php echo esc_html( trim( wp_strip_all_tags( $plugin_data['Author'] ) ) ); ?>
141 </a>
142 <?php } ?>
143 <span class="type plugin">
144 <?php echo esc_html__( 'Plugin', 'redux-framework' ); ?>
145 </span>
146 </p>
147 <hr style="margin: 0 0 15px 0;padding:0;">
148 <p class="author">
149 <small>
150 <?php
151 foreach ( $data as $opt_name => $callers ) {
152 echo '<span><strong>opt_name</strong>: <code>' . esc_html( $opt_name ) . '</code></span><br />';
153
154 foreach ( $callers as $caller ) {
155 echo '<span>~/' . esc_html( $caller['basename'] ) . '</span><br />';
156 }
157 }
158 ?>
159 </small>
160 </p>
161 </div>
162 <?php
163 }
164 }
165 }
166 }
167 ?>
168 </div>
169 </div>
170 </div>
171