Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created March 22, 2021 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodepoetry/0f03ad04bb79355bc80ae53ceeb80511 to your computer and use it in GitHub Desktop.
Save thecodepoetry/0f03ad04bb79355bc80ae53ceeb80511 to your computer and use it in GitHub Desktop.
<?php
/**
* Classic layout.
*
* @package The7pt
*/
defined( 'ABSPATH' ) || exit;
$rollover_class = '';
if ( ! empty( $icons_html ) ) {
$rollover_class = 'rollover-active';
}
?>
<?php if ( ! empty( $post_media ) ) :
$post_media = str_replace('nofollow', '', $post_media);
?>
<div class="post-thumbnail-wrap <?php echo $rollover_class; ?>">
<div class="post-thumbnail">
<?php
echo $post_media;
if ( ! empty( $icons_html ) ) {
echo '<div class="project-links-container">' . $icons_html . '</div>';
}
?>
</div>
</div>
<?php endif; ?>
<div class="post-entry-content">
<?php
if ( ! empty( $post_title ) ) {
echo $post_title;
}
if ( isset( $post_meta ) ) {
echo $post_meta;
}
if ( ! empty( $post_excerpt ) ) {
echo '<div class="entry-excerpt">';
echo $post_excerpt;
echo '</div>';
}
if ( isset( $details_btn ) ) {
echo $details_btn;
}
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment