|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /home/njnconst/public_html/cd/wp-content/themes/skt-white/ |
Upload File : |
<?php
/**
* @package SKT White
*/
?>
<div class="article-wrapper">
<article id="post-<?php the_ID(); ?>" <?php post_class('homepage-article'); ?>>
<div class="featured-image">
<?php if (has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb'); ?></a>
<?php else: ?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri()."/images/dthumb.jpg"; ?>"></a>
<?php endif; ?>
</div>
<header class="entry-header">
<?php
if (strlen(get_the_title()) >= 85) { ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" data-title="<?php the_title(); ?>" rel="bookmark">
<?php echo substr(get_the_title(), 0, 84)."...";
}
else { ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_title();
}
?>
</a></h1>
</header><!-- .entry-header -->
</article><!-- #post-## -->
</div>