Add esc_url to get_template_directory_uri, Add "Tested up to:" to style.css

This commit is contained in:
Alexander Agnarson 2020-07-13 17:55:52 +02:00
parent 217b835d7f
commit a51cecbd4b
7 changed files with 7 additions and 6 deletions

View file

@ -6,7 +6,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-large'); ?> <?php the_post_thumbnail('split-large'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
</a> </a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?> <?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?>

View file

@ -8,7 +8,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('split-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>

View file

@ -6,7 +6,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('split-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
</a> </a>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?> <?php if ( comments_open() && ( get_theme_mod( 'comment-count','on' ) == 'on' ) ): ?>

View file

@ -8,7 +8,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-square'); ?> <?php the_post_thumbnail('split-square'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-square.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>

View file

@ -8,7 +8,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('split-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fas fa-volume-up"></i></span>'; ?>

View file

@ -17,7 +17,7 @@
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('split-medium'); ?> <?php the_post_thumbnail('split-medium'); ?>
<?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?> <?php elseif ( get_theme_mod('placeholder','on') == 'on' ): ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" /> <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?> <?php endif; ?>
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>

View file

@ -4,6 +4,7 @@ Theme URI: http://alx.media/themes/split/
Version: 1.3.9 Version: 1.3.9
Requires at least: 5.0 Requires at least: 5.0
Requires PHP: 5.6 Requires PHP: 5.6
Tested up to: 5.5
Description: <a href="http://alx.media/themes/split/">Split</a> is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features. Description: <a href="http://alx.media/themes/split/">Split</a> is a responsive 100% high resolution theme for blogs and magazines. The feature list is long: Unlimited accent colors, unlimited widget areas, sidebar to the right that can be uniquely specified for each page or post, 0-4 footer widget columns, almost zero layout images, related posts and post nav, featured stories and carousel, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
Author: Alexander Agnarson Author: Alexander Agnarson
Author URI: http://alx.media Author URI: http://alx.media