0
Résultats de validation

Iknow Education WordPress Theme

Iknow Education WordPress Theme

WordPress 4.9.6 theme
0
  • TYPE DE THèMEThème WordPress %s 4.9.6
  • NOM DU FICHIERiknow.zip
  • TAILLE DU FICHIER7627928 octets
  • MD5ba37a86dca614fff22ce9d89b0ad20a7
  • SHA112b52ab4ab518e18992117099429c8d07a5eecf3
  • LICENCEAucun
  • FICHIERS INCLUSCSS, PHP, XML, Bitmap images, Adobe Illustrator
  • VERSION1.6.0
  • URI DE L'AUTEUR
  • TAGSblack, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
  • DATE DE CRéATION2018-05-10
  • DERNIèRE MISE à JOUR DU FICHIER2018-05-10
  • DERNIèRE VALIDATION2018-05-10 07:27
Alertes critiques
  1. Title : Title Absence de référence à add_theme_support( "title-tag" ) dans le thème.Le thème doit avoir des tags <title>, idéalement dans le fichier header.php.Le thème doit comporter un appel à wp_title(), idéalement dans le fichier header.php.Les tags <title> ne peuvent contenir qu'un appe à wp_title(). wp_title filter soit être utilisée pour modifier la sortie.Les tags <title> ne peuvent contenir qu'un appe à wp_title(). wp_title filter soit être utilisée pour modifier la sortie.
  2. Présence d'iframes : Les iframes sont parfois utilisées pour charger du contenu non désirés ou du code malicieux sur des sites tiers <iframe src="http://www.youtube.com/embed/'.$id[1].'?wmode=transparent" ' .$width_html. ' height="'.$height.'" > trouvé dans le fichier sliders.php.
    Line 60: return '<iframe src='http://www.youtube.com/embed/'.$id[1].'?wmode=transparent' ' .
  3. Menu Admin : Les thèmes doivent utiliser add_theme_page () pour ajouter des pages admin. Fichier cp-option.php :
    Line 21: add_menu_page( 'CrunchPress Option', THEME_NAME_F, 'administrator', 'genera
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
    Fichier cp-option.php :
    Line 22: //add_submenu_page( 'general_options', 'Home Page Settings', 'Home Page Setti
    Line 23: add_submenu_page( 'general_options', 'Typography Settings', 'Typography Set
    Line 24: add_submenu_page( 'general_options', 'Slider Settings', 'Slider Settings', 
    Line 25: add_submenu_page( 'general_options', 'Social Network', 'Social Network', 'a
    Line 26: add_submenu_page( 'general_options', 'Sidebar Settings', 'Sidebar Settings'
    Line 27: add_submenu_page( 'general_options', 'Default Pages Settings', 'Default Pag
    Line 28: add_submenu_page( 'general_options', 'Newsletter Settings', 'Newsletter Set
    Line 29: add_submenu_page( 'general_options', 'Import Dummy Data', 'Import Dummy Dat
    Line 30: //add_submenu_page( 'general_options', 'Course Management', 'Course Managemen
  4. Fonctions obsolètes : wp_get_http wp_get_http trouvé dans le fichier wordpress-importer.php . Obsolète depuis la version de la 4.4. Il est prérable d'utiliser WP_Http à la place.
    Line 874: $headers = wp_get_http( $url, $upload['file'] );
    
  5. Déclaration des "theme features" : Implémentation de add_theme_support() a été trouvé dans le fichier cp-functions.php alors que get_post_format ou has_post_format sont introuvables
  6. Inclusion de plugin : Présence de fichier zip Les plugins ne sont pas autorisés dans les thèmes. Le fichier zip cp-shortcode-core.zip cp-framework.zip a été trouvé.
Attention
  1. Script de core désabonné : Désabonnement d'un script de coreAppel à wp_deregister_script dans old_script-handler.php. Les thèmes ne doivent appeler wp_deregister_script sur des scripts du core.
    Line 1: <?php
    
    	/*	
    	*	CrunchPress Include Script File
    	*	---------------------------------------------------------------------
    	* 	@version	1.0
    	*   @ Package   Fine Food Theme
    	* 	@author		CrunchPress
    	* 	@link		http://crunchpress.com
    	* 	@copyright	Copyright (c) CrunchPress
    	*	---------------------------------------------------------------------
    	*	This file manage to embed the stylesheet and javascript to each page
    	*	based on the content of that page.
    	*	---------------------------------------------------------------------
    	*/
    	
    	//Add Scripts in Theme
    	if(is_admin()){
    		add_action('admin_enqueue_scripts', 'register_meta_script');
    		add_action('admin_enqueue_scripts','register_crunchpress_panel_scripts');
    		add_action('admin_enqueue_scripts','register_crunchpress_panel_styles');
    	}else{
    		add_action('wp_enqueue_scripts','register_non_admin_styles');
    		add_action('wp_enqueue_scripts','register_non_admin_scripts');
    
    	}
    
    	
    	/* 	---------------------------------------------------------------------
    	*	This section include the back-end script
    	*	---------------------------------------------------------------------
    	*/ 
    	
    	function register_meta_script(){
    		global $post_type;
    		
    		wp_enqueue_style('bootstrap', CP_PATH_URL.'/framework/stylesheet/bootstrap.css');
    		wp_enqueue_style('thickbox');
    		
    		//Font Awesome
    		wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome.css');
    		wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome-ie7.css');
    		
    		
    		
    		wp_enqueue_style('admin-css',CP_PATH_URL.'/framework/stylesheet/admin-css.css');
    		
    		// register style and script when access to the 'page' post_type page
    		if( $post_type == 'page' ){
    		
    			wp_enqueue_style('meta-css',CP_PATH_URL.'/framework/stylesheet/meta-css.css');
    			wp_enqueue_style('page-dragging',CP_PATH_URL.'/framework/stylesheet/page-dragging.css');
    			wp_enqueue_style('image-picker',CP_PATH_URL.'/framework/stylesheet/image-picker.css');
    			
    			wp_register_script('image-picker', CP_PATH_URL.'/framework/javascript/image-picker.js', false, '1.0', true);
    			wp_enqueue_script('image-picker');
    		
    			wp_register_script('page-dragging', CP_PATH_URL.'/framework/javascript/page-dragging.js', false, '1.0', true);
    			wp_enqueue_script('page-dragging');
    			
    			wp_register_script('edit-box', CP_PATH_URL.'/framework/javascript/edit-box.js', false, '1.0', true);
    			wp_enqueue_script('edit-box');
    			
    			wp_register_script('confirm-dialog', CP_PATH_URL.'/framework/javascript/jquery.confirm.js', false, '1.0', true);
    			wp_enqueue_script('confirm-dialog');
    			
    			
    		// register style and script when access to the 'post' post_type page
    		}else if( $post_type == 'event' || $post_type == 'post' || $post_type == 'team'  || $post_type == 'portfolio' || $post_type == 'cp_slider' || $post_type == 'gallery' || $post_type == 'product' ){
    		
    			wp_deregister_style('admin-css');
    			wp_enqueue_style('meta-css',CP_PATH_URL.'/framework/stylesheet/meta-css.css');
    			wp_enqueue_style('image-picker',CP_PATH_URL.'/framework/stylesheet/image-picker.css');
    			wp_enqueue_style('confirm-dialog',CP_PATH_URL.'/framework/stylesheet/jquery.confirm.css');
    			
    			wp_register_script('post-effects', CP_PATH_URL.'/framework/javascript/post-effects.js', false, '1.0', true);
    			wp_enqueue_script('post-effects');
    			
    			wp_register_script('image-picker', CP_PATH_URL.'/framework/javascript/image-picker.js', false, '1.0', true);
    			wp_localize_script('image-picker', 'URL', array('crunchpress' => CP_PATH_URL ));
    			wp_enqueue_script('image-picker');
    			
    			wp_register_script('confirm-dialog', CP_PATH_URL.'/framework/javascript/jquery.confirm.js', false, '1.0', true);
    			wp_enqueue_script('confirm-dialog');
    		
    		// register style and script when access to the 'testimonial' post_type page		
    		}else if( $post_type == 'testimonial' ){
    		
    			wp_enqueue_style('meta-css',CP_PATH_URL.'/framework/stylesheet/meta-css.css');
    		
    		}else if($post_type == 'albums'){
    		
    			wp_register_script('contact-validation', CP_PATH_URL.'/frontend/js/jquery.validate.js', false, '1.0', true);
    			wp_enqueue_script('contact-validation');
    		}
    		
    	}
    	
    	
    	// register script in CrunchPress panel
    	function register_crunchpress_panel_scripts(){
    		global $post_type;
    		//wp_enqueue_style('ie-style',CP_PATH_URL . '/stylesheet/ie-style.php?path=' . CP_PATH_URL);	
    	
    		if($post_type == 'page'){
    		
    		}else{
    			wp_enqueue_style('bootstrap',CP_PATH_URL.'/framework/stylesheet/bootstrap.css');
    			$cp_script_url = CP_PATH_URL.'/framework/javascript/cp-panel.js';
    			wp_enqueue_script('cp_scripts_admin', $cp_script_url, array('jquery','media-upload','thickbox', 'jquery-ui-droppable','jquery-ui-datepicker','jquery-ui-tabs', 'jquery-ui-slider','jquery-timepicker','jquery-ui-position','mini-color','confirm-dialog','dummy_content'));
    
    			wp_register_script('bootstrap', CP_PATH_URL.'/framework/javascript/bootstrap.js', false, '1.0', true);
    			wp_enqueue_script('bootstrap');
    
    			//Font Awesome
    			wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome.css');
    			wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome-ie7.css');
    		
    		
    			wp_register_script('mini-color', CP_PATH_URL.'/framework/javascript/jquery.miniColors.js', false, '1.0', true);
    			wp_register_script('confirm-dialog', CP_PATH_URL.'/framework/javascript/jquery.confirm.js', false, '1.0', true);
    			wp_register_script('jquery-timepicker', CP_PATH_URL.'/framework/javascript/jquery.ui.timepicker.js', false, '1.0', true);
    			wp_register_script('dummy_content', CP_PATH_URL.'/framework/javascript/dummy_content.js', false, '1.0', true);
    		}		
    	}
    
    	// register style in CrunchPress panel
    	function register_crunchpress_panel_styles(){
    	
    		wp_enqueue_style('jquery-ui',CP_PATH_URL.'/framework/stylesheet/jquery-ui.css');
    		wp_enqueue_style('cp-panel',CP_PATH_URL.'/framework/stylesheet/cp-panel.css');
    		wp_enqueue_style('mini-color',CP_PATH_URL.'/framework/stylesheet/jquery.miniColors.css');
    		wp_enqueue_style('confirm-dialog',CP_PATH_URL.'/framework/stylesheet/jquery.confirm.css');
    		wp_enqueue_style('jquery-timepicker',CP_PATH_URL.'/framework/stylesheet/jquery.ui.timepicker.css');
    		
    	}
    	
    	/* 	---------------------------------------------------------------------
    	*	this section include the front-end script
    	*	---------------------------------------------------------------------
    	*/ 
    	
    	// Register all stylesheet
    
    	function register_non_admin_styles(){
    	
    		$cp_page_xml = '';
    		$slider_type = '';
    	
    		global $post,$post_id,$cp_page_xml,$slider_type;
    		
    		$cp_page_xml = get_post_meta($post_id,'page-option-item-xml', true);
    		$slider_type = get_post_meta ( $post_id, 'page-option-top-slider-types', true );
    		
    		
    		wp_enqueue_style( 'default-style', get_stylesheet_uri() );  //Default Stylesheet
    		//wp_enqueue_style('cp_default',CP_PATH_URL.'/frontend/css/cp_default.css'); //Include Default Widgets and Other settings
    		wp_enqueue_style('cp-bootstrap',CP_PATH_URL.'/frontend/css/bootstrap.css'); //Bootstrap Grid
    		wp_enqueue_style('cp-bootstrap-res',CP_PATH_URL.'/frontend/css/bootstrap-responsive.css'); //Bootstrap responsive
    		wp_enqueue_style('cp-jplayer-res',CP_PATH_URL.'/frontend/css/jplayer.css'); //Bootstrap responsive
    		
    		//wp_enqueue_style('cp-font-awesome','//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'); //FontAwesome
    		//wp_enqueue_style('cp-slide-menu',CP_PATH_URL.'/frontend/css/slide-menu.css'); //Bootstrap Grid
    		//wp_enqueue_style('cp-jquery-menu',CP_PATH_URL.'/frontend/css/jquery.mmenu.css'); //Bootstrap Grid
    		
    	
    		wp_enqueue_style('cp-color-1',CP_PATH_URL.'/css/color.css');
    		wp_enqueue_style('cp-color-2',CP_PATH_URL.'/css/color-skyblue.css');
    		
    		wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome.css');
    		wp_enqueue_style('cp-fontAW',CP_PATH_URL.'/frontend/cp_font/css/font-awesome-ie7.css');
    		
    		
    		
    	
    		$rtl_layout = '';
    		$site_loader = '';
    		$element_loader = '';
    		//General Settings Values
    		$cp_general_settings = get_option('general_settings');
    		if($cp_general_settings <> ''){
    			$cp_logo = new DOMDocument ();
    			$cp_logo->loadXML ( $cp_general_settings );
    			$rtl_layout = find_xml_value($cp_logo->documentElement,'rtl_layout');
    			$site_loader = find_xml_value($cp_logo->documentElement,'site_loader');
    			$element_loader = find_xml_value($cp_logo->documentElement,'element_loader');
    		}
    		
    		//Responsive stylesheet
    		
    		
    		wp_deregister_style('woocommerce-general');
    		wp_deregister_style('woocommerce-layout');
    		wp_deregister_style('woocommerce_frontend_styles');		
    		wp_deregister_style('events-manager');		
    		
    		//wp_enqueue_style('cp-woo-commerce',CP_PATH_URL.'/frontend/css/wp-commerce.css'); //WooCommerce 
    		wp_enqueue_style('cp-widget-default',CP_PATH_URL.'/frontend/css/cp_widgets_default.css'); //WooCommerce 
    		wp_enqueue_style('cp-event-manager',CP_PATH_URL.'/frontend/css/event-manager.css'); //Event Manager
    		//wp_enqueue_style('cp-default-widget',CP_PATH_URL.'/frontend/css/cp_widgets_default.css'); //Event Manager	
    		
    		//Call own css for prayer box
    		if(function_exists('pb_includePublicCSS')){
    			wp_enqueue_style('cp-prayer-box',CP_PATH_URL.'/frontend/css/gd-praybox-sc.css'); //prayer Manager	
    		}
    		//RTL Layouts
    		if($rtl_layout == 'enable'){
    			wp_enqueue_style('cp-rtl',CP_PATH_URL.'/rtl.css');
    		}		
    	
    		//Facebook Fan Page Script
    		if(isset($post->ID)){
    			$facebook_fan = '';
    			$facebook_fan = get_post_meta ( $post->ID, 'page-option-item-facebook-selection', true );
    			if($facebook_fan == 'Yes'){$facebook_fan = 'facebook_fan';
    				wp_enqueue_style('style_810',CP_PATH_URL.'/frontend/css/style810.css');
    			}
    		}	
    		
    		$maintenance_mode = get_themeoption_value('maintenance_mode','general_settings');				
    		if($maintenance_mode == 'enable'){		
    			wp_enqueue_style('cp-countdown',CP_PATH_URL.'/frontend/css/jquery.countdown.css');
    			
    		}
    	
    		if( is_search() || is_archive() ){
    		
    			wp_enqueue_style('cp-anything-slider',CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');
    	
    		
    	
    		// Post post_type
    		}else if( isset($post) && $post->post_type == 'post' || 
    			isset($post) && $post->post_type == 'events' ){
    		
    			// If using slider (flex slider)	
    		if(!is_home()){
    			$thumbnail_types = '';
    			$post_detail_xml = get_post_meta($post->ID, 'post_detail_xml', true);
    			if($post_detail_xml <> ''){
    				$cp_post_xml = new DOMDocument ();
    				$cp_post_xml->loadXML ( $post_detail_xml );
    				$thumbnail_types = find_xml_value($cp_post_xml->documentElement,'post_thumbnail');
    			}
    			
    			if( $thumbnail_types == 'Slider'){
    			
    				wp_enqueue_style('cp-anything-slider',CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');
    				
    			}
    			
    			$event_detail_xml = get_post_meta($post->ID, 'event_detail_xml', true);
    			if($event_detail_xml <> ''){
    				$cp_event_xml = new DOMDocument ();
    				$cp_event_xml->loadXML ( $event_detail_xml );
    				$event_thumbnail = find_xml_value($cp_event_xml->documentElement,'event_thumbnail');
    				
    				//Condition for Slider
    				if( $event_thumbnail == 'Slider'){
    				
    					wp_enqueue_style('cp-anything-slider',CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');
    					
    				}
    			}
    		}
    			
    		// Page post_type
    		}else if( isset($post) && $post->post_type == 'page' ){
    		
    			global $post,$cp_page_xml, $slider_type, $cp_top_slider_type;
    			$cp_page_xml = get_post_meta($post->ID,'page-option-item-xml', true);
    			$cp_top_slider_switch = get_post_meta($post->ID,'page-option-top-slider-on', true);
    			$slider_type = get_post_meta ( $post->ID, 'page-option-top-slider-types', true );
    			$cp_top_slider_type = get_post_meta($post->ID,'page-option-top-slider-types', true);
    			
    			
    			//Layer Slider
    			if(strpos($cp_page_xml,'<slider-type>Layer-Slider</slider-type>') > -1 || $slider_type == 'Layer-Slider'){
    				//wp_enqueue_style('layerslider_js', CP_PATH_URL.'/frontend/css/layerslider.css');
    			}
    			
    			// If using carousel slider
    			if(	strpos($cp_page_xml,'<slider-type>Flex-Slider</slider-type>') > -1 || $slider_type == 'Flex-Slider'){
    				
    				wp_enqueue_style('cp-flex-slider',CP_PATH_URL.'/frontend/css/flexslider.css');
    			}
    			
    			// If using nivo slider
    			if( strpos($cp_page_xml,'<slider-type>Flex-Slider</slider-type>') > -1 ||
    				$slider_type == 'Flex-Slider' ){
    				wp_enqueue_style('cp-flex-slider',CP_PATH_URL.'/frontend/css/flexslider.css');
    			}
    			
    			//Bx Slider Condition
    			if(strpos($cp_page_xml,'<slider-type>Bx-Slider</slider-type>') > -1 || $slider_type == 'Bx-Slider' ){
    				wp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');
    			}
    			
    			// If using Fine slider
    			if( strpos($cp_page_xml,'<slider-type>Default-Slider</slider-type>') > -1 ||
    				$slider_type == 'Default-Slider' ){
    			
    				wp_enqueue_style('Default-Slider',CP_PATH_URL.'/frontend/css/slider.css');
    				
    			}				
    			if( strpos($cp_page_xml, '<slider-type>Anything</slider-type>') > -1){
    				wp_enqueue_style('cp-anything-slider', CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');
    				
    			}
    			if($slider_type == 'Anything' AND $cp_top_slider_switch == 'Yes'){
    				wp_enqueue_style('cp-anything-slider', CP_PATH_URL.'/frontend/anythingslider/css/anythingslider.css');
    			}
    			
    			if( strpos($cp_page_xml,'<eventview>Calendar View</eventview>') > -1 ){
    		
    				wp_enqueue_style('cp-calender-view', CP_PATH_URL.'/framework/javascript/fullcalendar/fullcalendar.css');
    			
    			}
    			// If using filterable plugin
    			if( strpos($cp_page_xml,'<show-filterable>') > -1 ){
    			
    				wp_enqueue_style('cp-style-view', CP_PATH_URL.'/frontend/css/style_animate.css');
    			
    			}
    			
    			// If using Services
    			if( strpos($cp_page_xml,'<service-widget-style>Circle-Icon</service-widget-style>') > -1 ){
    			
    				wp_enqueue_style('circle-hover',CP_PATH_URL.'/frontend/css/circle-hover.css');
    			
    			}
    			
    			// If using NewsSlider
    			if( strpos($cp_page_xml,'<News-Slider>') > -1 ){
    			
    				wp_enqueue_style('cp-bx-slider',CP_PATH_URL.'/frontend/css/bxslider.css');
    			
    			}
    			
    			// If using Services
    			if( strpos($cp_page_xml,'<service-widget-style>Box-Style3</service-widget-style>') > -1 ){
    			
    				wp_enqueue_style('cp-services-view', CP_PATH_URL.'/frontend/css/style_css_services.css');
    			
    			}
    			
    		}
    		
    		$font_google = '';
    		$font_size_normal = '';
    		$menu_font_google = '';
    		$fonts_array = '';
    		$font_google_heading = '';
    		$heading_h1 = '';
    		$heading_h2 = '';
    		$heading_h3 = '';
    		$heading_h4 = '';
    		$heading_h5 = '';
    		$heading_h6 = '';
    		$embed_typekit_code = '';
    		$cp_typography_settings = get_option('typography_settings');
    		
    		//$dd = find_xml_node($logo_uploa_d,'logo_upload');
    		if($cp_typography_settings <> ''){
    			$cp_typo = new DOMDocument ();
    			$cp_typo->loadXML ( $cp_typography_settings );
    			$font_google = find_xml_value($cp_typo->documentElement,'font_google');
    			$font_size_normal = find_xml_value($cp_typo->documentElement,'font_size_normal');
    			$menu_font_google = find_xml_value($cp_typo->documentElement,'menu_font_google');
    			$font_google_heading = find_xml_value($cp_typo->documentElement,'font_google_heading');
    			$heading_h1 = find_xml_value($cp_typo->documentElement,'heading_h1');
    			$heading_h2 = find_xml_value($cp_typo->documentElement,'heading_h2');
    			$heading_h3 = find_xml_value($cp_typo->documentElement,'heading_h3');
    			$heading_h4 = find_xml_value($cp_typo->documentElement,'heading_h4');
    			$heading_h5 = find_xml_value($cp_typo->documentElement,'heading_h5');
    			$heading_h6 = find_xml_value($cp_typo->documentElement,'heading_h6');
    			$embed_typekit_code = find_xml_value($cp_typo->documentElement,'embed_typekit_code');
    			
    		}
    		
    		//Body Font Installing
    		if(verify_google_f($font_google) == 'type_kit'){
    			//Adobe Edge Font (TypeKit) 
    			if($font_google <> ''){
    				wp_register_script( 'adobe-edge-font', 'http://use.edgefonts.net/'.$font_google.'.js', false, '1.0', false);
    				wp_enqueue_script('adobe-edge-font');	
    			}
    		}else if(verify_google_f($font_google) == 'google_font'){
    			//Google Font Body
    			if($font_google <> ''){
    				$font_google = str_replace(' ','+',$font_google);
    				wp_enqueue_style('googleFonts', 'http://fonts.googleapis.com/css?family='.$font_google.'');
    			}	
    		}
    		//verify_google_para($font_google_heading);
    		//Heading Font Installing
    		if(verify_google_para($font_google_heading) == 'type_kit'){
    			if($font_google_heading <> ''){
    				wp_register_script( 'adobe-edge-heading', 'http://use.edgefonts.net/'.$font_google_heading.'.js', false, '1.0', false);
    				wp_enqueue_script('adobe-edge-heading');	
    			}
    		}else if(verify_google_para($font_google_heading) == 'google_font'){
    			if($font_google_heading <> ''){
    				$font_google_heading = str_replace(' ','+',$font_google_heading);
    				wp_enqueue_style('googleFonts-heading', 'http://fonts.googleapis.com/css?family='.$font_google_heading.'' );
    			}
    		}
    
    		//Menu Font Installing
    		//verify_google_menu($menu_font_google);
    		if(verify_google_menu($menu_font_google) == 'type_kit'){
    			if($menu_font_google <> ''){
    				wp_register_script( 'menu-edge-heading', 'http://use.edgefonts.net/'.$menu_font_google.'.js', false, '1.0', false);
    				wp_enqueue_script('menu-edge-heading');	
    			}
    		}else if(verify_google_menu($menu_font_google) == 'google_font'){
    			if($menu_font_google <> ''){
    				$menu_font_google = str_replace(' ','+',$menu_font_google);
    				wp_enqueue_style('menu-googleFonts-heading', 'http://fonts.googleapis.com/css?family='.$menu_font_google.'' );
    			}
    		}
    		
    	}
    		 
            // Register all scripts
    	function register_non_admin_scripts(){
    		global $post,$post_id;
    		global $cp_is_responsive;
    		global $crunchpress_element;		
    		global $wp_scripts;
    		$cp_page_xml = get_post_meta($post_id,'page-option-item-xml', true);
    		$slider_type = get_post_meta ( $post_id, 'page-option-top-slider-types', true );
    
    		$social_networking = '';
    		$site_loader = '';
    		$element_loader = '';
    		$cp_general_settings = get_option('general_settings');
    		if($cp_general_settings <> ''){
    			$cp_logo = new DOMDocument ();
    			$cp_logo->loadXML ( $cp_general_settings );
    			$social_networking = find_xml_value($cp_logo->documentElement,'social_networking');
    			$site_loader = find_xml_value($cp_logo->documentElement,'site_loader');
    			$element_loader = find_xml_value($cp_logo->documentElement,'element_loader');
    			$topweather_icon = find_xml_value($cp_logo->documentElement,'topweather_icon');
    			
    		}
    		
    		wp_enqueue_script('jquery');
    		
    		//wp_register_script('rating_script', CP_PATH_URL.'/frontend/js/rating_script/jRating.jquery.js', array('jquery'), '1.0', true);
    		//wp_enqueue_script('rating_script');
    		
    		//wp_enqueue_script('like_post', CP_PATH_URL.'/frontend/js/post-like.js', array('jquery'), '1.0', 1 );
    		
    		//CP Load Fade in and Out Effect
    		
    		//CP Load Fade in and Out Effect
    		wp_register_script('cp-load', CP_PATH_URL.'/frontend/js/cp_loader.js', false, '1.0', true);
    		wp_localize_script('cp-load', 'loader', array('site_loader' => $site_loader,'element_loader' => $element_loader));
    		wp_enqueue_script('cp-load');
    		
    		wp_register_script('cp-underscore-min', CP_PATH_URL.'/frontend/js/underscore-min.js', false, '1.0', true);
    		wp_enqueue_script('cp-underscore-min');
    		
    		
    
    		
    		if ( is_singular() && get_option( 'thread_comments' ) ) 	wp_enqueue_script( 'comment-reply' );
    			
    		//BootStrap Script Loaded
    		wp_register_script('cp-bootstrap', CP_PATH_URL.'/frontend/js/bootstrap.js', array('jquery'), '1.0', true);
    		wp_localize_script('cp-bootstrap', 'ajax_var', array('url' => admin_url('admin-ajax.php'),'nonce' => wp_create_nonce('ajax-nonce')));
    		wp_enqueue_script('cp-bootstrap');
    		
    		//Custom Script Loaded
    		wp_register_script('cp-scripts', CP_PATH_URL.'/frontend/js/frontend_scripts.js', false, '1.0', true);
    		wp_enqueue_script('cp-scripts');
    		
    		// wp_register_script('cp-jquery-mmenu-min', CP_PATH_URL.'/frontend/js/jquery-mmenu-min.js', false, '1.0', true);
    		// wp_enqueue_script('cp-jquery-mmenu-min');
    		
    
    		$maintenance_mode = get_themeoption_value('maintenance_mode','general_settings');				
    		if($maintenance_mode == 'enable'){		
    			wp_register_script('countdown', CP_PATH_URL.'/frontend/js/jquery_countdown.js', false, '1.0', true);
    			wp_enqueue_script('countdown');
    			
    		}
    		
    		
    		
    		global $wp_scripts,$post;
    		wp_register_script('html5shiv',CP_PATH_URL.'/frontend/js/html5shive.js',array(),'1.5.1',false);
    		wp_enqueue_script('html5shiv');
    		$wp_scripts->add_data( 'html5shiv', 'conditional', 'lt IE 9' );
    		
    		if($social_networking == 'enable'){
    			wp_register_script('cp-social_slider_main', CP_PATH_URL.'/frontend/js/social_slider_main.js', false, '1.0', true);
    			wp_enqueue_script('cp-social_slider_main');
    		}
    					
    			
    		
    		// Search and archive page
    		if( is_search() || is_archive() ){
    		
    			wp_register_script('cp-anything-slider', CP_PATH_URL.'/frontend/anythingslider/js/jquery.anythingslider.js', false, '1.0', true);
    			wp_enqueue_script('cp-anything-slider');	
    		
    		// Post post_type
    		}else if( isset($post) &&  $post->post_type == 'post' && !is_home() || 
    			isset($post) &&  $post->post_type == 'events' && !is_home() ){
    		
    			if(!is_home()){
    				$cp_post_thumbnail = '';
    				$post_detail_xml = get_post_meta($post->ID, 'post_detail_xml', true);
    				if($post_detail_xml <> ''){
    					$cp_post_xml = new DOMDocument ();
    					$cp_post_xml->loadXML ( $post_detail_xml );
    					$cp_post_thumbnail = find_xml_value($cp_post_xml->documentElement,'post_thumbnail');						
    
    					if( $cp_post_thumbnail == 'Slider'){
    
    						wp_register_script('cp-anything-slider', CP_PATH_URL.'/frontend/anythingslider/js/jquery.anythingslider.js', false, '1.0', true);
    						wp_enqueue_script('cp-anything-slider');
    						
    						wp_register_script('cp-anything-slider-fx', CP_PATH_URL.'/frontend/anythingslider/js/jquery.anythingslider.fx.js', false, '1.0', true);
    						wp_enqueue_script('cp-anything-slider-fx');
    						
    					}
    				}
    			
    				$event_detail_xml = get_post_meta($post->ID, 'event_detail_xml', true);
    				if($event_detail_xml <> ''){
    					$cp_event_xml = new DOMDocument ();
    					$cp_event_xml->loadXML ( $event_detail_xml );
    					$event_thumbnail = find_xml_value($cp_event_xml->documentElement,'event_thumbnail');
    					
    					if( $event_thumbnail == 'Slider'){
    
    						wp_register_script('cp-anything-slider', CP_PATH_URL.'/frontend/anythingslider/js/jquery.anythingslider.js', false, '1.0', true);
    						wp_enqueue_script('cp-anything-slider');
    						
    					}
    				}
    			}
    		
    		// Page post_type
    		}else if( isset($post) &&  $post->post_type == 'page' ){
    			global $post,$cp_page_xml, $slider_type, $cp_top_slider_type;
    			$cp_page_xml = get_post_meta($post->ID,'page-option-item-xml', true);
    			$cp_top_slider_switch = get_post_meta($post->ID,'page-option-top-slider-on', true);
    			$slider_type = get_post_meta ( $post->ID, 'page-option-top-slider-types', true );
    			$cp_top_slider_type = get_post_meta($post->ID,'page-option-top-slider-types', true);
    			
    			// if using Accordicns
    			if( strpos($cp_page_xml,'<Accordion>') > -1 ){
    				wp_enqueue_script('jquery-ui-accordion');
    				wp_register_script('cp-accordian-script', CP_PATH_URL.'/frontend/js/accordian_script.js', false, '1.0', true);
    				wp_enqueue_script('cp-accordian-script');
    				
    			}
    			// if using tabs
    			if( strpos($cp_page_xml,'<Tab>') > -1 ){
    			    //wp_enqueue_script('jquery-ui-accordion');
    				wp_enqueue_script('jquery-ui-tabs');
    				wp_register_script('cp-tabs-script', CP_PATH_URL.'/frontend/js/tabs_script.js', false, '1.0', true);
    				wp_enqueue_script('cp-tabs-script');
    				
    			}
    			
    			// If using Flex Slider
    			if( strpos($cp_page_xml,'<slider-type>Flex-Slider</slider-type>') > -1 || $slider_type == 'Flex-Slider' AND $cp_top_slider_switch == 'Yes'){				
    				wp_register_script('cp-flex-slider', CP_PATH_URL.'/frontend/js/jquery.flexslider.js', false, '1.0', true);
    				wp_enqueue_script('cp-flex-slider');
    			}
    			
    			//Layer Slider Scripts
    			if(strpos($cp_page_xml,'<slider-type>Layer-Slider</slider-type>') > -1 || $slider_type == 'Layer-Slider' AND $cp_top_slider_switch == 'Yes'){
    				if(class_exists('LS_Sliders')){
    				// Include in the footer?
    					$footer = get_option('ls_include_at_footer', false) ? true : false;
    
    					// Use Gogole CDN version of jQuery
    					if(get_option('ls_use_custom_jquery', false)) {
    						wp_deregister_script('jquery');
    						wp_enqueue_script('jquery', '//ajax.g
  2. tags du thème : Présence de tags inconnusLe tag black est obsolète, il ne doit pas figurer dans le header de style.css.Le tag green est obsolète, il ne doit pas figurer dans le header de style.css.Le tag white est obsolète, il ne doit pas figurer dans le header de style.css.Le tag light est obsolète, il ne doit pas figurer dans le header de style.css.Le tag dark est obsolète, il ne doit pas figurer dans le header de style.css.Le tag fixed-layout est obsolète, il ne doit pas figurer dans le header de style.css.Le tag responsive-layout est obsolète, il ne doit pas figurer dans le header de style.css.Les thèmes qui utilisent le tag accessibility-ready doivent concoder avec les règles de la revue d'accessibilité.
    Voir https://make.wordpress.org/themes/handbook/review/accessibility/
  3. Text domain : Utilisation incorrecte des fonctions de traduction.Mauvaus répertoire d'installation pour le thème. Le nom du répertoir doit correspondre au slug du thème. Le slug de ce thème ainsi que le text-domain est iknow-education-wordpress-theme.
  4. Text domain : Utilisation incorrecte des fonctions de traduction.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'Begin installing plugin', 'Begin installing plugins' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction _n_noop, avec les arguments 'Activate installed plugin', 'Activate installed plugins' dans le fichier plugins.php.Une fonction de traduction utilisée sans text-domain. Fonction __, avec les arguments 'Wrong username or password.' dans le fichier cp-functions.php.Une fonction de traduction utilisée sans text-domain. Fonction __, avec les arguments 'Login successful, Now Redirecting...' dans le fichier cp-functions.php.Utilisation d'une fonction de traduction avec un nombre incorrect d'arguments. Fonction _n, avec les arguments '%s download remaining', '%s downloads remaining', downloads_remaining, 'woocommerce' dans le fichier my-downloads.php.Une fonction de traduction utilisée sans text-domain. Fonction __, avec les arguments 'woocommerce' dans le fichier shipping-calculator.php.Plusieurs text-domain sont utilisés dans le thème. Cela signifie que le thème n'est pas compatible avec les language packs de WordPress. Les domaines trouvés sont crunchpress, tgmpa, dbem, twentyfourteen, woocommerce, rockon, crunchpres, downloads_remaining.
  5. Cdn : Utilisation d'un CDNUne url de type CDN a été trouvée dans le code netdna.bootstrapcdn.com/font-awesome. Les fichiers CSS et JS ne doivent pas être chargés depuis un CDN. Ces ressources doivent être intégrées dans le thème.
  6. Implémentation de l'internationalisation : Utilisation correcte de ___al(La variable $cvalue a été trouvée dans une fonction de traduction dans le fichier shipping-calculator.php . Les appels de fonctions de traduction ne doivent pas contenir de variables PHP.
    Line 66: echo '<option value='' . esc_attr( $ckey ) . '' ' . selected( $current_r, $ckey, false ) . '>' . __( esc_html( $cvalue ), 'woocommerce' ) .'</option>';
  7. Screenshot : Copie d'écranLa taille du screenshot est 880x660px. La taille recommandée est 1200x900, pour prendre en compte les affichages HiDPI. Bien qu'une résolution de 1200x900 soit recommandée, toutes les images au format 4:3 sont acceptables.Mauvaise extension de fichier screenshot ! Le fichier screenshot.png n'est pas un véritable fichier JPG. Le type détecté est : "image/png".
Info
  1. Fichiers optionnels : Présence du fichierde style pour les écritures de droite vers la gauche rtl.cssCe thème ne contient pas le fichier optionnel rtl.php.
  2. Fichiers optionnels : Présence du fichier-template fron-*page.phpCe thème ne contient pas le fichier optionnel front-page.php.
  3. Fichiers optionnels : Présence du fichier-template de page d'accueil home.phpCe thème ne contient pas le fichier optionnel home.php.
  4. Fichiers optionnels : Présence du fichier-template de catégorie category.phpCe thème ne contient pas le fichier optionnel category.php.
  5. Fichiers optionnels : Présence du fichier-template des tags tag.phpCe thème ne contient pas le fichier optionnel tag.php.
  6. Fichiers optionnels : Présence du fichier template de taxinomie taxonomy.phpCe thème ne contient pas le fichier optionnel taxonomy.php.
  7. Fichiers optionnels : Présence de du fichier-template des dates et heures date.phpCe thème ne contient pas le fichier optionnel date.php.
  8. Fichiers optionnels : Présence du fichier-template des pièces jointes attachment.phpCe thème ne contient pas le fichier optionnel attachment.php.
  9. Fichiers optionnels : Présence du fichier-template des images image.phpCe thème ne contient pas le fichier optionnel image.php.
  10. Utilisation d'includes : Utilisation de include ou de de requireLe thème semble utiliser include ou require : class-tgm-plugin-activation.php
    Line 34: require_once ('class-tgm.php');
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.
    Le thème semble utiliser include ou require : dummy_data.inc.php
    Line 18: require_once($class_wp_importer);
    Line 29: require_once($wp_importer);
    Line 42: include_once('default_dummy_data.inc.php');
    Si ces fonctions sont utilisées pour inclure des sections séparées d'un modèle à partir de fichiers indépendants, alors get_template_part () doit être utilisé à la place.
Autre thèmes vérifiés