mirror of
https://ghproxy.net/https://github.com/AlxMedia/gridzone.git
synced 2025-08-26 08:21:21 +08:00
Add esc_url to get_template_directory_uri, Add "Tested up to:" to style.css
This commit is contained in:
parent
29634e36ca
commit
05bf09eda6
3 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('gridzone-medium-h'); ?>
|
||||
<?php else: ?>
|
||||
<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 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>'; ?>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('gridzone-medium'); ?>
|
||||
<?php else: ?>
|
||||
<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 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>'; ?>
|
||||
|
|
|
@ -4,6 +4,7 @@ Theme URI: http://alx.media/themes/gridzone/
|
|||
Version: 1.2.4
|
||||
Requires at least: 5.0
|
||||
Requires PHP: 5.6
|
||||
Tested up to: 5.5
|
||||
Description: <a href="http://alx.media/themes/gridzone/">Gridzone</a> is a flexible portfolio theme with plenty of options. It is optimized for all devices and built to work with blocks. You can choose between light and dark theme, widget sidebar to the left or right - or no sidebar at all. Demo: http://demo.alx.media/x/?theme=Gridzone
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alx.media
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue