balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

theme-missing.php (645B)


      1 <?php
      2 namespace Elementor\Core\Debug\Classes;
      3 
      4 use Elementor\Modules\SafeMode\Module as Safe_Mode;
      5 
      6 class Theme_Missing extends Inspection_Base {
      7 
      8 	public function run() {
      9 		$safe_mode_enabled = get_option( Safe_Mode::OPTION_ENABLED, '' );
     10 		if ( ! empty( $safe_mode_enabled ) ) {
     11 			return true;
     12 		}
     13 		$theme = wp_get_theme();
     14 		return $theme->exists();
     15 	}
     16 
     17 	public function get_name() {
     18 		return 'theme-missing';
     19 	}
     20 
     21 	public function get_message() {
     22 		return esc_html__( 'Some of your theme files are missing.', 'elementor' );
     23 	}
     24 
     25 	public function get_help_doc_url() {
     26 		return 'https://go.elementor.com/preview-not-loaded/#theme-files';
     27 	}
     28 }