File: /var/www/k8148-2/htdocs/www.sport-roth.at/old/wp-content/themes/daniel/template-parts/content.php
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Daniel
*/
$collumval = 'ht-col-xs-12 ht-col-sm-6 ht-col-md-6 blog-style-'.daniel_get_option( 'daniel_blog_style', 'bloglayout', '1' );
$columns = (int)daniel_get_option( 'daniel_blog_column', 'blogcolumn', '2' );
$titlelen = (int)daniel_get_option( 'daniel_blog_title_len', 'blogtitlelen', '5' );
$contentlen = (int)daniel_get_option( 'daniel_blog_content_len', 'blogcontentlen', '19' );
if( $columns != '' ){
$colwidth = round( 12/$columns );
$collumval = 'ht-col-xs-12 ht-col-sm-6 ht-col-md-'.$colwidth.' blog-style-'.daniel_get_option( 'daniel_blog_style', 'bloglayout', '1' );
}
?>
<div class="<?php echo esc_attr( $collumval ); ?>">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="single-blog">
<div class="thumb">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( 'daniel_size_550x350' ); ?>
</a>
</div>
<div class="blog-content">
<?php if( daniel_get_option( 'daniel_blogtitle_status', 'blogtitle', 'on' ) == 'on' ): ?>
<h2><a href="<?php the_permalink(); ?>"><?php echo wp_trim_words( get_the_title(), $titlelen, ' ' ); ?></a></h2>
<?php endif; ?>
<?php if( daniel_get_option( 'daniel_blogmeta_status', 'blogmeta', 'on' ) == 'on' ): ?>
<ul class="mata-info">
<li><?php echo get_the_time( get_option('date_format') ); ?></li>
<?php
if( function_exists('danielGetPostViews') ){
if( danielGetPostViews( get_the_ID() ) > 1 ){
echo '<li><a href="#">'.danielGetPostViews( get_the_ID() ).esc_html__(' Views','daniel').'</a></li>';
}else{
echo '<li><a href="#">'.danielGetPostViews( get_the_ID() ).esc_html__(' View','daniel').'</a></li>';
}
}
?>
<?php
if( function_exists( 'daniel_getPostLikeLink' ) ){
echo '<li>'.daniel_getPostLikeLink( get_the_ID() ).'</li>';
}
?>
</ul>
<?php endif; ?>
<div class="entry-content">
<?php
if( daniel_get_option( 'daniel_blogcontent_status', 'blogcontent', 'on' ) == 'on' ){
daniel_post_excerpt( $contentlen );
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'daniel' ),
'after' => '</div>',
) );
}
?>
</div><!-- .entry-content -->
</div>
</div>
</article><!-- #post-<?php //the_ID(); ?> -->
</div>