PluginProbe
QuadMenu – Mega Menu / 1.8.8
QuadMenu – Mega Menu v1.8.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 / lib / ReduxCore / inc / themecheck / checks / embedded.php

embedded.php in QuadMenu – Mega Menu 1.8.8, at lib/ReduxCore/inc/themecheck/checks/embedded.php

60 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Redux_Embedded implements themecheck {
4 protected $error = array();
5
6 function check( $php_files, $css_files, $other_files ) {
7
8 $ret = true;
9 $check = Redux_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.reduxframework.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
29 // Embedded CDN package
30 //use_cdn
31
32 // Arguments
33 checkcount();
34 $args = '<ol>';
35 $args .= "<li><code>'save_defaults' => false</code></li>";
36 $args .= "<li><code>'use_cdn' => false</code></li>";
37 $args .= "<li><code>'customizer_only' => true</code> Non-Customizer Based Panels are Prohibited within WP.org Themes</li>";
38 $args .= "<li><code>'database' => 'theme_mods'</code> (" . __( 'Optional', 'redux-framework' ) . ")</li>";
39 $args .= '</ol>';
40 $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>';
41
42
43 }
44
45
46 }
47
48
49 return $ret;
50 }
51
52
53 function getError() {
54 return $this->error;
55 }
56 }
57
58 $themechecks = array();
59
60 $themechecks[] = new Redux_Embedded;