mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-26 16:48:09 +08:00
Fix prefixing for thumbs
This commit is contained in:
parent
7d6260f863
commit
1fe2f51ded
8 changed files with 12 additions and 12 deletions
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-medium'); ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-medium'); ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-list'); ?>
|
||||
<?php the_post_thumbnail('blogline-list'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-list.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -67,10 +67,10 @@ if ( ! function_exists( 'alx_setup' ) ) {
|
|||
add_theme_support( 'woocommerce' );
|
||||
|
||||
// Thumbnail sizes
|
||||
add_image_size( 'thumb-small', 200, 200, true );
|
||||
add_image_size( 'thumb-medium', 520, 292, true );
|
||||
add_image_size( 'thumb-large', 720, 404, true );
|
||||
add_image_size( 'thumb-list', 320, 320, true );
|
||||
add_image_size( 'blogline-small', 200, 200, true );
|
||||
add_image_size( 'blogline-medium', 520, 292, true );
|
||||
add_image_size( 'blogline-large', 720, 404, true );
|
||||
add_image_size( 'blogline-list', 320, 320, true );
|
||||
|
||||
// Custom menu areas
|
||||
register_nav_menus( array(
|
||||
|
|
|
@ -56,7 +56,7 @@ class AlxPosts extends WP_Widget {
|
|||
<div class="post-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-medium'); ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -90,7 +90,7 @@ class AlxTabs extends WP_Widget {
|
|||
<div class="tab-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-small'); ?>
|
||||
<?php the_post_thumbnail('blogline-small'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -141,7 +141,7 @@ class AlxTabs extends WP_Widget {
|
|||
<div class="tab-item-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-small'); ?>
|
||||
<?php the_post_thumbnail('blogline-small'); ?>
|
||||
<?php else: ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
<div class="post-format">
|
||||
<div class="image-container">
|
||||
<?php if ( has_post_thumbnail() ) {
|
||||
the_post_thumbnail('thumb-large');
|
||||
the_post_thumbnail('blogline-large');
|
||||
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
|
||||
if ( isset($caption) && $caption ) echo '<div class="image-caption">'.$caption.'</div>';
|
||||
} ?>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="post-thumbnail">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumb-medium'); ?>
|
||||
<?php the_post_thumbnail('blogline-medium'); ?>
|
||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue