fix: fix alignment

fix post list thumb alignment
fix #205
pull/206/head
Spirit 2020-03-28 12:28:17 +08:00
parent b169c36931
commit 3c33180289
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@
// return substr($excerpt, 0, 120);
//}
//add_filter('the_excerpt', 'custom_short_excerpt');
$i=0; while ( have_posts() ) : the_post(); $i++;
if(is_sticky()) $i++;
$i=0; $sticky_count=sizeof(get_option( 'sticky_posts' )); while ( have_posts() ) : the_post(); $i++;
if( $sticky_count %2 != 0 && !is_paged() && is_sticky() && ($i == 1) ) $i++;
switch (akina_option('feature_align')) {
case "left":
$class = 'post-list-thumb-left';