forked from LiveCarta/LiveCartaWP
69 lines
3.3 KiB
PHP
69 lines
3.3 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Home Page
|
|
*/
|
|
$posts = get_posts(['posts_per_page' => 3]);
|
|
get_header();
|
|
?>
|
|
|
|
<div class="content">
|
|
<?php the_content();?><!--home page content from wp admin wysiwyg -->
|
|
<?php if($posts):?>
|
|
<div class="mp-blog">
|
|
<div class="cont">
|
|
<div class="inner-cont">
|
|
<h4>More from the Blog</h4>
|
|
<div class="bp-list cat-all">
|
|
<?php foreach ($posts as $post): ?>
|
|
<a class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>" href="<?=get_permalink(); ?>">
|
|
<span class="bp-img">
|
|
<img src="<?=get_the_post_thumbnail_url(); ?>" alt="Blog img">
|
|
</span>
|
|
<span class="bp-title"><?=get_the_title($post); ?></span>
|
|
<span class="bp-description"><?=get_the_excerpt(); ?></span>
|
|
</a>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="mp-feature bot-form with-bg main">
|
|
<div class="cont">
|
|
<div class="inner-cont">
|
|
<div class="flex">
|
|
<div class="col">
|
|
<div class="mp-interested">
|
|
<h4>Interested? Get to know more</h4>
|
|
<div class="buttons">
|
|
<a href="/contact-us" class="button action big">Request a demo</a>
|
|
<a href="<?= get_lawcarta_url()?>/user/registration" class="button secondary big">Sign Up For Free</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col">
|
|
<div class="subscribe-block">
|
|
<div class="sb-text">Subscribe and receive exclusive tips and offers!</div>
|
|
<div class="sub-input">
|
|
<div id="mc_embed_signup">
|
|
<form action="https://lawcarta.us12.list-manage.com/subscribe/post?u=f1055fdbaf5889ec432f2821f&id=25a4c0d555" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
|
<div id="mc_embed_signup_scroll" class="form-inline">
|
|
<input type="email" value="" name="EMAIL" class="email form-control" id="mce-EMAIL" placeholder="Enter your Email" required>
|
|
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_f1055fdbaf5889ec432f2821f_25a4c0d555" tabindex="-1" value=""></div>
|
|
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button secondary big">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|