PluginProbe
QuadMenu – Mega Menu / 3.3.8
QuadMenu – Mega Menu v3.3.8
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / redux / ReduxCore / inc / themecheck / checks / embedded.php

embedded.php in QuadMenu – Mega Menu 3.3.8, at redux/ReduxCore/inc/themecheck/checks/embedded.php

56 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class ReduxLegacy_Embedded implements themecheck {
4 protected $error = array();
5
6 function check( $php_files, $css_files, $other_files ) {
7
8 $ret = true;
9 $check = ReduxLegacy_ThemeCheck::get_instance();
10 $redux = $check::get_redux_details( $php_files );
11
12 if ( $redux ) {
13 if ( ! isset( $_POST['redux_wporg'] ) ) {
14 checkcount();
15 $this->error[] = '<div class="redux-error">' . sprintf( __( '<span class="tc-lead tc-recommended">RECOMMENDED</span>: If you are submitting to WordPress.org Theme Repository, it is <strong>strongly</strong> suggested that you read <a href="%s" target="_blank">this document</a>, or your theme will be rejected because of Redux.', 'redux-framework' ), 'https://docs.ReduxFrameworkLegacy.com/core/wordpress-org-submissions/' ) . '</div>';
16 $ret = false;
17 } else {
18 // TODO Granular WP.org tests!!!
19
20 // Check for Tracking
21 checkcount();
22 $tracking = $redux['dir'] . 'inc/tracking.php';
23 if ( file_exists( $tracking ) ) {
24 $this->error[] = '<div class="redux-error">' . sprintf( __( '<span class="tc-lead tc-required">REQUIRED</span>: You MUST delete <strong> %s </strong>, or your theme will be rejected by WP.org theme submission because of Redux.', 'redux-framework' ), $tracking ) . '</div>';
25 $ret = false;
26 }
27
28 // Embedded CDN package
29 // use_cdn
30
31 // Arguments
32 checkcount();
33 $args = '<ol>';
34 $args .= "<li><code>'save_defaults' => false</code></li>";
35 $args .= "<li><code>'use_cdn' => false</code></li>";
36 $args .= "<li><code>'customizer_only' => true</code> Non-Customizer Based Panels are Prohibited within WP.org Themes</li>";
37 $args .= "<li><code>'database' => 'theme_mods'</code> (" . __( 'Optional', 'redux-framework' ) . ')</li>';
38 $args .= '</ol>';
39 $this->error[] = '<div class="redux-error">' . __( '<span class="tc-lead tc-recommended">RECOMMENDED</span>: The following arguments MUST be used for WP.org submissions, or you will be rejected because of your Redux configuration.', 'redux-framework' ) . $args . '</div>';
40
41 }
42 }
43
44 return $ret;
45 }
46
47
48 function getError() {
49 return $this->error;
50 }
51 }
52
53 $themechecks = array();
54
55 $themechecks[] = new ReduxLegacy_Embedded();
56