| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/domains/mienphi.org/public_html/wp-content/themes/eduma_OLD/ |
Upload File : |
<?php
$classes = array();
if ( is_front_page() || is_home() ) {
$prefix = 'thim_front_page';
} else {
$prefix = 'thim_archive';
}
$theme_options_data = get_theme_mods();
$columns = thim_blog_grid_column();
$show_author = ! empty( $theme_options_data['thim_show_author'] ) && $theme_options_data['thim_show_author'] == '1';
$show_date = ! empty( $theme_options_data['thim_show_date'] ) && $theme_options_data['thim_show_date'] == '1';
$show_comment = ! empty( $theme_options_data['thim_show_comment'] ) && $theme_options_data['thim_show_comment'] == '1';
$classes[] = 'blog-grid-' . $columns;
switch ( $columns ) {
case 2:
$arr_size = array( '570', '300' );
break;
case 3:
$arr_size = array( '370', '220' );
break;
default:
$arr_size = array( '270', '150' );
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
<div class="content-inner">
<?php
do_action( 'thim_entry_top', 'full' ); ?>
<div class="entry-content">
<?php
if ( has_post_format( 'link' ) && thim_meta( 'thim_link_url' ) && thim_meta( 'thim_link_text' ) ) {
$url = thim_meta( 'thim_link_url' );
$title = thim_meta( 'thim_link_text' );
} else {
$url = get_permalink();
$title = get_the_title();
}
if ( get_theme_mod( 'thim_show_author', true ) ) {
?>
<div class="author">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 40 ); ?>
<?php printf( '<span class="vcard author author_name"><a href="%1$s">%2$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); ?>
</div>
<?php
}
?>
<header class="entry-header">
<div class="entry-contain">
<?php echo sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">%s</a></h2>', esc_url( $url ), esc_attr( $title ) ); ?>
<?php thim_entry_meta(); ?>
</div>
</header>
<div class="entry-grid-meta">
<?php
if ( $show_date ) {
?>
<div class="date">
<i class="edu-calendar"></i><?php echo get_the_date( get_option( 'date_format' ) ); ?>
</div>
<?php
}
if ( $show_comment ) {
$comments = wp_count_comments( get_the_ID() );
?>
<div class="comments"><i class="edu-comment"></i><?php echo $comments->total_comments; ?> </div>
<?php
}
?>
</div>
<div class="entry-summary">
<?php
the_excerpt();
?>
</div>
<div class="readmore">
<a href="<?php echo esc_url( get_permalink() ); ?>"><?php echo esc_html__( 'Read More', 'eduma' ); ?></a>
</div>
</div>
</div>
</article><!-- #post-## -->