>
', '' ); endif; $post_grid = get_theme_mod( 'shopera_post_grid', true ); if ( ( $post_grid && !is_single() ) && !is_search() ) { $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'shopera-post-picture'); } else { $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'shopera-full-width'); } if ( empty($img[0]) ) { $img[0] = get_template_directory_uri() . '/images/default-image.jpg'; } if ( $post->post_type == 'post' ) { echo '
post-img
'; } ?>
→', 'shopera' ) ); } else { $content = strip_tags( get_the_content( __( 'Continue reading ', 'shopera' ) ) ); } $post_grid = get_theme_mod( 'shopera_post_grid', true ); if( empty( $content ) ) { $post_content = __( 'No excerpt for this post.', 'shopera' ); } elseif ( $post_grid == false || is_single() ) { echo '

'.$content.'

'; } else { if ( strlen($content) > 140 ) { $post_content = substr($content, 0, 140) . '..'; } else { $post_content = $content; } echo '

'.$post_content.'

'; } wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '', ) ); ?>