0
Validation results

BlackLight

BlackLight

WordPress 4.9.6 theme
0
  • THEME TYPEWordPress theme 4.9.6
  • FILE NAMEblacklight.zip
  • FILE SIZE545999 bytes
  • MD5fe0e1ad11ea7f277719dab99bea7beda
  • SHA14196a22e3fc5b424889dbdc2122517ab36a8c9e8
  • LICENSEGNU GPL 2
  • FILES INCLUDEDCSS, PHP, XML, Bitmap images, Adobe Photoshop, Adobe Illustrator
  • THEME URIhttp://www.theme-junkie.com
  • VERSION1.0.4
  • AUTHOR URI
  • TAGStheme-options, translation-ready
  • CREATION DATE2015-11-30
  • LAST FILE UPDATE2018-05-02
  • LAST VALIDATION2018-05-02 17:46
Critical alerts
  1. Title : Title No reference to add_theme_support( "title-tag" ) was found in the theme.The theme needs to have <title> tags, ideally in the header.php file.The theme needs to have a call to wp_title(), ideally in the header.php file.The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.
  2. Inapropriate constants : Use of TEMPLATEPATH Constant TEMPLATEPATH was found in the file functions.php. get_template_directory() should be used instead.
    Line 4: load_theme_textdomain( 'themejunkie', TEMPLATEPATH . '/lang' );
    Line 7: require_once(TEMPLATEPATH . '/includes/sidebar-init.php');
    Line 8: require_once(TEMPLATEPATH . '/includes/custom-functions.php');
    Line 9: require_once(TEMPLATEPATH . '/includes/post-thumbnails.php');
    Line 11: require_once(TEMPLATEPATH . '/includes/theme-comments.php');
    Line 13: require_once(TEMPLATEPATH . '/includes/theme-options.php');
    Line 14: require_once(TEMPLATEPATH . '/includes/theme-widgets.php');
    Line 16: require_once(TEMPLATEPATH . '/functions/theme_functions.php'); 
    Line 17: require_once(TEMPLATEPATH . '/functions/admin_functions.php');
  3. Content width : Proper definition of content_width No content width has been defined. Example:
    if ( ! isset( $content_width ) ) $content_width = 900;
  4. Deprecated functions : get_bloginfo get_bloginfo('template_directory') was found in the file header.php. Use get_template_directory_uri() instead.
    Line 51: <a href='<?php bloginfo('url'); ?>'><?php $logo = (get_option('blacklight_logo') <> '') ? get_option('blacklight_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?><img src='<?php ec
    get_bloginfo('template_directory') was found in the file theme-options.php. Use get_template_directory_uri() instead.
    Line 56: 'std' => get_bloginfo('template_directory') . '/images/logo.png',
    Line 69: 'std' => get_bloginfo('template_directory') . '/images/favicon.png',
    get_bloginfo('url') was found in the file custom-functions.php. Use home_url() instead.
    Line 191: $url = sprintf('%s?p=%s', get_bloginfo('url').'/', $id);
    get_bloginfo('template_url') was found in the file custom-functions.php. Use get_template_directory_uri() instead.
    Line 23: wp_enqueue_script('jquery', get_bloginfo('template_url').'/includes/js/jquery.min.js', false, '1.8.3');
    Line 25: wp_enqueue_script('jquery-superfish', get_bloginfo('template_url').'/includes/js/superfish.js', false, '1.4.2');
    Line 26: wp_enqueue_script('jquery-slider', get_bloginfo('template_url').'/includes/js/slides.min.jquery.js', false, '1
    Line 27: wp_enqueue_script('jquery-custom', get_bloginfo('template_url').'/includes/js/custom.js', false, '1.4.2');
    Line 28: wp_enqueue_script('html5', get_bloginfo('template_url').'/includes/js/html5.js', false, '1.0');   
    get_bloginfo('template_directory') was found in the file admin_functions.php. Use get_template_directory_uri() instead.
    Line 20: $admincp_jsfolder = get_bloginfo('template_directory') . '/functions/js';
    Line 26: 'clearpath' => get_bloginfo('template_directory') . '/functions/images/empty.png',
    Line 378: wp_register_script('my-upload', get_bloginfo('template_directory').'/functions/js/custom_uploader.js', arra
  5. Deprecated functions : bloginfo bloginfo('url') was found in the file header.php. Use echo esc_url( home_url() ) instead.
    Line 47: <h1 id='site-title'><a href='<?php bloginfo('url'); ?>'><?php bloginfo('name'); ?></a></h1>
    Line 51: <a href='<?php bloginfo('url'); ?>'><?php $logo = (get_option('blacklight_logo') <> '') ? 
    Line 59: <form method='get' id='searchform' action='<?php bloginfo('url'); ?>'>
    Line 75: <li class='first'><a href='<?php bloginfo('url'); ?>'><?php _e('Home', 'themejunkie') ?></a></li>					
    bloginfo('template_directory') was found in the file header.php. Use echo esc_url( get_template_directory_uri() ) instead.
    Line 51: <a href='<?php bloginfo('url'); ?>'><?php $logo = (get_option('blacklight_logo') <> '') ? get_option('blacklight_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?><img src='<?php echo $
    Line 61: <input class='submit btn' type='image' src='<?php bloginfo('template_directory'); ?>/images/ico-search.png' title='Go' alt='s
    bloginfo( 'template_url' ) was found in the file header.php. Use echo esc_url( get_template_directory_uri() ) instead.
    Line 13: <link rel='stylesheet' type='text/css' href='<?php bloginfo( 'template_url' ); ?>/colors/<?php echo get_option('blacklight_the
    Line 14: <link rel='stylesheet' type='text/css' href='<?php bloginfo( 'template_url' ); ?>/custom.css' />
    Line 20: <span id='home-url' class='<?php bloginfo( 'template_url' ); ?>' style='display: none;' ></span>
    bloginfo('url') was found in the file widget-ad125.php. Use echo esc_url( home_url() ) instead.
    Line 55: <a href='<?php echo $bannerUrl[$i] ?>' <?php if ($new_window == 1) echo('target='_blank'') ?>><img src='<?php if ($use_relpath == 1) bloginfo('url'); else echo $bannerPath[$i]; ?><?php if ($use_relpath == 1 )
    bloginfo('url') was found in the file breadcrumbs.php. Use echo esc_url( home_url() ) instead.
    Line 4: <strong><?php _e('Your Are Here','themejunkie') ?></a></strong> &rarr; <a href='<?php bloginfo('url'); ?>'><?php _e('Home','themejunkie') ?></a> &rarr;
    bloginfo('url') was found in the file searchform.php. Use echo esc_url( home_url() ) instead.
    Line 1: <form method='get' id='searchform' action='<?php bloginfo('url'); ?>'>
    bloginfo('template_directory') was found in the file searchform.php. Use echo esc_url( get_template_directory_uri() ) instead.
    Line 3: <input class='submit btn' type='image' src='<?php bloginfo('template_directory'); ?>/images/ico-search.png' title='Go' alt='s
    bloginfo('template_directory') was found in the file admin_functions.php. Use echo esc_url( get_template_directory_uri() ) instead.
    Line 20: $admincp_jsfolder = get_bloginfo('template_directory') . '/functions/js';
    Line 26: 'clearpath' => get_bloginfo('template_directory') . '/functions/images/empty.png',
    Line 37: <link rel='stylesheet' href='<?php bloginfo('template_directory') ?>/functions/css/admin-style.css' type='text
    Line 39: .lightboxclose { background: url('<?php bloginfo('template_directory') ?>/functions/images/description-close.png') 
    Line 95: <li><a href='#nav-general'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-general.png' class='
    Line 98: <li><a href='#nav-navigation'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-navigation.png' clas
    Line 101: <li><a href='#nav-layout'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-layout.png' class='p
    Line 104: <li><a href='#nav-advertisements'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-ad.png' class='pngfi
    Line 108: <li><a href='#nav-seo'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-seo.png' class='pngf
    Line 111: <li><a href='#nav-integration'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-integration.png' cla
    Line 114: <li><a href='#nav-doc'><img src='<?php bloginfo('template_directory') ?>/functions/images/ico-doc.png' class='pngf
    Line 123: <img src='<?php bloginfo('template_directory') ?>/functions/images/help.png' alt='descripti
    Line 213: <img src='<?php bloginfo('template_directory') ?>/functions/images/help.png' alt='descripti
    Line 273: <img src='<?php bloginfo('template_directory') ?>/functions/images/reset.png' class='defaul
    Line 288: <img src='<?php bloginfo('template_directory') ?>/functions/images/no.png' class='no' alt='
    Line 296: <img src='<?php bloginfo('template_directory') ?>/functions/images/loading.gif' alt='loadin
    Line 378: wp_register_script('my-upload', get_bloginfo('template_directory').'/functions/js/custom_uploader.js', array('j
    bloginfo('url') was found in the file theme_functions.php. Use echo esc_url( home_url() ) instead.
    Line 96: <li <?php if (is_front_page() || is_home()) echo('class='current_page_item'') ?>><a href='<?php bloginfo('url'); ?>'><?php _e('Home',$themename); ?></a></li>
    Line 292: if (is_home() && get_option($shortname.'_seo_home_canonical') == 'on') echo '<link rel='canonical' href=''.get_bloginfo('url').'' />';
    bloginfo('template_directory') was found in the file theme_functions.php. Use echo esc_url( get_template_directory_uri() ) instead.
    Line 138: <link rel='stylesheet' href='<?php bloginfo('template_directory'); ?>/style-<?php echo(get_option($shortname.'
Warning
  1. core scripts deregistered : Core scripts deregistrationFound wp_deregister_script in custom-functions.php. Themes must not deregister core scripts.
    Line 21: wp_deregister_script( 'jquery' );
    Found wp_deregister_script in admin_functions.php. Themes must not deregister core scripts.
    Line 12: wp_deregister_script('jquery');
  2. special URIs : Presence of bad theme tagsTheme URI and Author URI should not be the same.
  3. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'Primary Nav' in file custom-functions.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Secondary Nav' in file custom-functions.php.Found a translation function that is missing a text-domain. Function _e, with the arguments 'Home' in file theme_functions.php.More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are themejunkie, theme junkie, shortcodes.
  4. Plugin territory : Plugin territory functionalitiesThe theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  5. Fundamental theme elements : Presence of language_attributes()Could not find .
  6. Fundamental theme elements : Presence of add_theme_support()Could not find add_theme_support( 'automatic-feed-links' ).
  7. Fundamental theme elements : Presence of comment_form()Could not find comment_form.
  8. Custom elements : Presence of custom headerNo reference to custom header was found in the theme.
  9. Deprecated functions : _preview_theme_template_filter_preview_theme_template_filter found in file theme-widgets.php. Deprecated since version 4.3.
    Line 7: $preview_template = _preview_theme_template_filter();
  10. Editor style : Presence of editor styleNo reference to add_editor_style() was found in the theme. It is recommended that the theme implements editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
  11. I18N implementation : Proper use of _e(Possible variable $themename found in translation function in theme_functions.php. Translation function calls should not contain PHP variables.
    Line 96: <li <?php if (is_front_page() || is_home()) echo('class='current_page_item'') ?>><a href='<?php bloginfo('url'); ?>'><?php _e('Home',$themename); ?></a></li>
  12. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  13. CSS files : Presence of .sticky class.sticky css class is needed in theme css.
  14. CSS files : Presence of .bypostauthor class.bypostauthor css class is needed in theme css.
  15. CSS files : Presence of .gallery-caption class.gallery-caption css class is needed in theme css.
  16. CSS files : Presence of .screen-reader-text class.screen-reader-text css class is needed in your theme css. See : the Codex for an example implementation.
  17. Date and time implementation : Use of the_time()At least one hard coded date was found in the file breadcrumbs.php. Function get_option( 'date_format' ) should be used instead.
  18. Screenshot : Screenshot fileScreenshot size is 300x225px. Screenshot size should be 1200x900, to account for HiDPI displays. Any 4:3 image size is acceptable, but 1200x900 is preferred.Bad screenshot file extension ! File screenshot.png is not an actual JPG file. Detected type was : "image/png".
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file widget-flickr.php.
    Line 46: <label for='<?php echo $this->get_field_id('id'); ?>'><?php _e('Flickr ID (<a href='http://www.idgettr.com'>idGettr</a>):','themejunkie'); ?></label>
  2. Optional files : Presence of rtl stylesheet rtl.cssThis theme does not contain optional file rtl.php.
  3. Optional files : Presence of front page template file front-page.phpThis theme does not contain optional file front-page.php.
  4. Optional files : Presence of home template file home.phpThis theme does not contain optional file home.php.
  5. Optional files : Presence of category template file category.phpThis theme does not contain optional file category.php.
  6. Optional files : Presence of tag template file tag.phpThis theme does not contain optional file tag.php.
  7. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  8. Optional files : Presence of author template file author.phpThis theme does not contain optional file author.php.
  9. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  10. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  11. Optional files : Presence of image template file image.phpThis theme does not contain optional file image.php.
  12. Use of includes : Use of include or requireThe theme appears to use include or require : archive.php
    Line 1: <?php get_header(); ?>
    
    	<div id='content'>
    		<?php get_template_part('includes/breadcrumbs'); ?>
    		<article>
    			<?php $counter = 1; if (have_posts()) : while ( have_posts() ) : the_post() ?>
    				<?php include(TEMPLATEPATH. '/includes/loop.php'); ?>
    				<?php if ($counter%2 ==
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : theme-widgets.php
    Line 20: include_once($tj_widgets_dir . $tj_widgets_file);
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : index.php
    Line 1: <?php get_header(); ?>
    
    	<?php if((get_option('blacklight_news_ticker_enable') == 'on') && is_home() && !is_paged()){ ?>
    		<div id='news-ticker'>
    		    <span class='text'><?php _e('Breaking News:','themejunkie'); ?></span>
    		    <ul class='news'>
    		        <?php
    		        query_posts( array(
    		            'tag' => get_option('blacklight_news_ticker_tags'),
    		            'showposts' => get_option('blacklight_news_ticker_num')
    		        ));
    		        if( have_posts() ) : while( have_posts() ) : the_post();
    		            ?>
    		            <li class='news-ticker'>
    		                <?php the_time('M d,Y'); ?> - <a href='<?php the_permalink(); ?>' title='<?php printf( esc_attr__( 'Permalink to %s', 'themejunkie' ), the_title_attribute( 'echo=0' ) ); ?>' rel='bookmark'><?php the_title(); ?></a> -  <span class='headline-comment'><?php comments_popup_link( __( '0 Comment', 'themejunkie' ), __( '1 Comment', 'themejunkie' ), __( '% Comments', 'themejunkie' ) ); ?></span>
    		            </li>
    		            <?php endwhile; endif; wp_reset_query(); ?>
    		    </ul><!-- .news -->
    			<span class='headline-nav'>
    				<a class='headline-previous' href='#pre-headline'>&larr;</a>
    				<a class='headline-next' href='#next-headline'>&rarr;</a>
    			</span><!-- headline-nav -->
    		    <div class='clear'></div>
    		</div><!-- #news-ticker -->
    	<?php } ?>
    	    
    	<?php if(!is_paged() && (get_option('blacklight_featured_slider_enable') == 'on')) : ?>
    		<?php
    		    $featured_tags = get_option('blacklight_featured_post_tags');
    		    $featured_num = get_option('blacklight_featured_post_num');
    		    if(!preg_match('/^\d*$/',$featured_num)){
    		        $featured_num = 3;
    		    }
    		?>
    		<div id='slider'>
    		    <div class='slides_container'>
    		        <?php
    		        query_posts( array(
    	                'tag' => $featured_tags,
    	                'posts_per_page' => $featured_num
    		            )
    		        );
    		        ?>
    		        <?php if (have_posts()) : while ( have_posts() ) : the_post() ?>
    		    		<?php include(TEMPLATEPATH. '/includes/loop-slide.php'); ?>
    		        <?php endwh
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : search.php
    Line 7: <?php include(TEMPLATEPATH. '/includes/loop.php'); ?>
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : admin_functions.php
    Line 233: <?php include(TEMPLATEPATH . '/includes/docs/'.$value['name'].'.php'); ?>
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : theme_functions.php
    Line 353: require_once(TEMPLATEPATH . '/functions/shortcodes/theme-shortcodes.php');
    Line 354: require_once(TEMPLATEPATH . '/functions/shortcodes/tinymce/tinymce.php');
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : window_post.php
    Line 3: require_once('tj_config.php');
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : window_page.php
    Line 3: require_once('tj_config.php');
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : tj_config.php
    Line 9: require($wp_include);
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
Other checked themes