forked from LiveCarta/LiveCartaWP
115 lines
5.7 KiB
PHP
115 lines
5.7 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"><span class="text-overflow"><?php the_title(); ?></span></span>
|
|
<span class="text-overflow"><?php the_excerpt(); ?></span>
|
|
</div>
|
|
</a>
|
|
<?php
|
|
endforeach;
|
|
endif;
|
|
wp_reset_postdata();
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="main-page">
|
|
<div class="mp-small-block bot-flex" style="padding: 30px 0">
|
|
<div class="cont">
|
|
<div class="flex">
|
|
<div class="subscribe-block">
|
|
<div class="sb-img">
|
|
<picture>
|
|
<source srcset="<?= get_theme_file_uri('/assets/img/home-page/subscription.webp'); ?>" type="image/webp">
|
|
<img src="<?= get_theme_file_uri('/assets/img/home-page/subscription.png'); ?>" alt="Feature">
|
|
</picture>
|
|
</div>
|
|
<div class="sb-text">
|
|
<div class="sb-line1">Subscribe and receive exclusive tips and offers! </div>
|
|
<div class="sb-line2">You can unsubscribe at any time.</div>
|
|
</div>
|
|
<div class="sub-input">
|
|
<div id="mc_embed_signup">
|
|
<form action="https://livecarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&id=a0685621c3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate="">
|
|
<div id="mc_embed_signup_scroll">
|
|
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your Email" required="">
|
|
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f1055fdbaf5889ec432f2821f_a0685621c3" tabindex="-1" value=""></div>
|
|
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button xxl mp-top-right">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</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 class="show-promo-popup"></div>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|