forked from LiveCarta/LiveCartaWP
81 lines
3.6 KiB
PHP
81 lines
3.6 KiB
PHP
<?php
|
||
get_header();
|
||
$post = get_post();
|
||
?>
|
||
<div class="content no-pb">
|
||
<div class="blog-page-single">
|
||
<div class="blog-page-top">
|
||
<div class="bp-top-bg"></div>
|
||
<div class="cont">
|
||
<div class="bp-top-img" style="background-image: url(<?=get_the_post_thumbnail_url(); ?>);"></div>
|
||
<h1 class="bp-top-text"><?=get_the_title($post); ?></h1>
|
||
</div>
|
||
</div>
|
||
<div class="blog-body">
|
||
<div class="cont">
|
||
<div class="blog-info">
|
||
<div class="blog-date"><?=get_the_date(); ?></div>
|
||
<div class="blog-tags"><?php
|
||
$tags = get_the_tags();
|
||
$tag_links = [];
|
||
if($tags) {
|
||
foreach ($tags as $tag) {
|
||
$tag_link = get_tag_link($tag->term_id);
|
||
$tag_links[] = "<a href='{$tag_link}' title='{$tag->name}' class='{$tag->slug}'>{$tag->name}</a>";
|
||
}
|
||
}
|
||
?>
|
||
<?=implode(', ', $tag_links); ?>
|
||
</div>
|
||
</div>
|
||
<div class="blog-page-social">
|
||
<div class="left">
|
||
<a href="https://twitter.com/intent/tweet?text=<?php the_permalink(); ?>" class="social twitter" target="_blank"></a>
|
||
<a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php the_permalink(); ?>" class="social linkedin" target="_blank"></a>
|
||
<a href="https://www.facebook.com/sharer/sharer.php?u=#url" class="social facebook" target="_blank"></a>
|
||
</div>
|
||
</div>
|
||
<?=get_the_content(null,false, $post); ?>
|
||
</div>
|
||
</div>
|
||
<div class="read-next">
|
||
<div class="rn-head">What you may want to read next...</div>
|
||
<div class="rn-body">
|
||
<div class="cont">
|
||
<?php
|
||
global $post;
|
||
$myposts = get_posts(['numberposts' => 3, 'orderby' => 'rand']);
|
||
if($myposts):
|
||
foreach ( $myposts as $post ) :
|
||
setup_postdata( $post ); ?>
|
||
<a class="rn-block" href="<?php the_permalink(); ?>">
|
||
<div class="text">
|
||
<span class="head"><?php the_title(); ?></span>
|
||
Before starting, ask yourself a clear question: "What environment do I want to foster for my class?" It’s important to communicate with your students to learn what makes things most ...
|
||
</div>
|
||
</a>
|
||
<?php
|
||
endforeach;
|
||
endif;
|
||
wp_reset_postdata();
|
||
?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- <div class="main-page">
|
||
<div class="mp-small-block">
|
||
<div class="cont">
|
||
<div class="sb-head">Interested? Get to know more</div>
|
||
<div class="buttons">
|
||
<a href="/contact-us" class="button xxl mp-top-right">Request a demo</a>
|
||
<a href="<?= get_lawcarta_url()?>/user/registration" class="button xxl mp-top-left">Sign Up For Free</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div> -->
|
||
</div>
|
||
|
||
<?php
|
||
get_footer();
|