Redux_Embedded

The evolve Redux Embedded class.

Defined (1)

The class is defined in the following location(s).

/library/admin/redux-framework/inc/themecheck/checks/embedded.php  
  1. class Redux_Embedded implements themecheck { 
  2. protected $error = array(); 
  3.  
  4. function check( $php_files, $css_files, $other_files ) { 
  5.  
  6. $ret = true; 
  7. $check = Redux_ThemeCheck::get_instance(); 
  8. $redux = $check::get_redux_details( $php_files ); 
  9.  
  10. if ( $redux ) { 
  11. if ( ! isset( $_POST['redux_wporg'] ) ) { 
  12. checkcount(); 
  13. $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.', 'evolve' ), 'https://docs.reduxframework.com/core/wordpress-org-submissions/' ) . '</div>'; 
  14. $ret = false; 
  15. } else { 
  16. // TODO Granular WP.org tests!!! 
  17.  
  18. // Check for Tracking 
  19. checkcount(); 
  20. $tracking = $redux['dir'] . 'inc/tracking.php'; 
  21. if ( file_exists( $tracking ) ) { 
  22. $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.', 'evolve'), $tracking ) . '</div>'; 
  23. $ret = false; 
  24.  
  25.  
  26. // Embedded CDN package 
  27. //use_cdn 
  28.  
  29. // Arguments 
  30. checkcount(); 
  31. $args = '<ol>'; 
  32. $args .= "<li><code>'save_defaults' => false</code></li>"; 
  33. $args .= "<li><code>'use_cdn' => false</code></li>"; 
  34. $args .= "<li><code>'customizer_only' => true</code> Non-Customizer Based Panels are Prohibited within WP.org Themes</li>"; 
  35. $args .= "<li><code>'database' => 'theme_mods'</code> (" . __( 'Optional', 'evolve' ) . ")</li>"; 
  36. $args .= '</ol>'; 
  37. $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.', 'evolve' ) . $args . '</div>'; 
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. return $ret; 
  45.  
  46.  
  47. function getError() { 
  48. return $this->error;