first commit
This commit is contained in:
35
wp-content/themes/thinkai/templates/blog-single/image.php
Normal file
35
wp-content/themes/thinkai/templates/blog-single/image.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Single Image File.
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Theme Kalia
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
if ( class_exists( 'Thinkai_Resizer' ) ) {
|
||||
$img_obj = new Thinkai_Resizer();
|
||||
|
||||
}
|
||||
$width = $data->get( 'sidebar' ) ? '769' : '1170';
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
?>
|
||||
|
||||
|
||||
<div class="single-avatar singlee">
|
||||
<?php if ( class_exists( 'Thinkai_Resizer' ) ) : ?>
|
||||
|
||||
<?php echo wp_kses( $img_obj->resize( wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ), 'full' ), $width, 460, true ), $allowed_html ); ?>
|
||||
<?php else : ?>
|
||||
<?php the_post_thumbnail( 'full' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $options->get( 'small_image' ) && has_post_thumbnail() ) : ?>
|
||||
|
||||
<span><?php echo get_avatar( get_the_author_meta( 'ID' ), 41 ); ?></span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user