forked from LiveCarta/LiveCartaWP
blog
This commit is contained in:
@@ -94,8 +94,8 @@ body {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
background-color: #f5f5f5;
|
||||
overflow: hidden;
|
||||
font-family: 'Open Sans', sans-serif; }
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
border-bottom: 1px solid transparent; }
|
||||
.wrapper.white {
|
||||
background-color: #fff; }
|
||||
.wrapper.new-footer {
|
||||
@@ -2644,3 +2644,237 @@ footer {
|
||||
left: -5px; }
|
||||
.pc-slider .splide__arrow--next {
|
||||
right: -5px; }
|
||||
|
||||
.blog-page .bp-list-header {
|
||||
display: block;
|
||||
background: -webkit-gradient(linear, left top, right top, from(#539aea), to(#0e3f7b));
|
||||
background: linear-gradient(to right, #539aea, #0e3f7b);
|
||||
padding: 40px 0 65px; }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list-header {
|
||||
padding: 80px 0 125px; } }
|
||||
.blog-page .bp-list-header .cont {
|
||||
font-family: 'PT Serif', serif;
|
||||
color: #fff;
|
||||
text-align: center; }
|
||||
.blog-page .bp-list-header h1 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-weight: bold;
|
||||
font-size: 46px;
|
||||
line-height: 1;
|
||||
padding: 0 0 15px; }
|
||||
@media (min-width: 480px) {
|
||||
.blog-page .bp-list-header h1 {
|
||||
font-size: 60px; } }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list-header h1 {
|
||||
font-size: 96px;
|
||||
padding: 0 0 25px; } }
|
||||
.blog-page .bp-list-header p {
|
||||
font-size: 20px;
|
||||
line-height: 26px;
|
||||
font-weight: 100; }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list-header p {
|
||||
font-size: 36px;
|
||||
line-height: 40px; } }
|
||||
|
||||
.blog-page .bp-list-tabs {
|
||||
display: block;
|
||||
margin-top: -18px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
margin-bottom: 20px; }
|
||||
@media (min-width: 480px) {
|
||||
.blog-page .bp-list-tabs {
|
||||
margin-top: -35px;
|
||||
margin-bottom: 30px; } }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list-tabs {
|
||||
margin-bottom: 65px; } }
|
||||
.blog-page .bp-list-tabs:after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both; }
|
||||
.blog-page .bp-list-tabs ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
.blog-page .bp-list-tabs ul li {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 10px 10px 0; }
|
||||
.blog-page .bp-list-tabs ul li:nth-child(2) {
|
||||
clear: both; }
|
||||
@media (min-width: 480px) {
|
||||
.blog-page .bp-list-tabs ul li {
|
||||
width: 48%;
|
||||
margin: 0 1% 10px;
|
||||
clear: none; }
|
||||
.blog-page .bp-list-tabs ul li:nth-child(2) {
|
||||
clear: none; } }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list-tabs ul li {
|
||||
width: 25%;
|
||||
margin: 0; } }
|
||||
.blog-page .bp-list-tabs ul li a {
|
||||
display: block;
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
font-size: 14px;
|
||||
color: #134D94;
|
||||
background: #fff;
|
||||
-webkit-box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
padding: 0 10px; }
|
||||
.blog-page .bp-list-tabs ul li a:hover {
|
||||
text-decoration: none;
|
||||
z-index: 5;
|
||||
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
|
||||
.blog-page .bp-list-tabs ul li a:hover:after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(24, 102, 198, 0.2); }
|
||||
.blog-page .bp-list-tabs ul li a:focus {
|
||||
text-decoration: none; }
|
||||
.blog-page .bp-list-tabs ul li a.selected {
|
||||
color: #fff;
|
||||
background: #FF6B00; }
|
||||
.blog-page .bp-list-tabs ul li a.selected:hover {
|
||||
text-decoration: none; }
|
||||
.blog-page .bp-list-tabs ul li a.selected:hover:after {
|
||||
display: none; }
|
||||
@media (min-width: 480px) {
|
||||
.blog-page .bp-list-tabs ul li a {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
font-size: 20px; } }
|
||||
@media (min-width: 992px) {
|
||||
.blog-page .bp-list-tabs ul li a {
|
||||
font-size: 24px;
|
||||
height: 70px;
|
||||
line-height: 70px; } }
|
||||
|
||||
.blog-page .bp-list {
|
||||
display: block;
|
||||
margin: 0 auto; }
|
||||
.blog-page .bp-list:after {
|
||||
content: " ";
|
||||
display: block;
|
||||
clear: both; }
|
||||
@media (min-width: 768px) {
|
||||
.blog-page .bp-list .cont {
|
||||
padding: 0 20px; } }
|
||||
|
||||
.blog-page .bp-block {
|
||||
display: none;
|
||||
margin: 0 auto 20px;
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
padding-bottom: 70px; }
|
||||
@media (min-width: 540px) {
|
||||
.blog-page .bp-block {
|
||||
width: 46%;
|
||||
margin: 0 2% 20px;
|
||||
height: 360px;
|
||||
float: left; } }
|
||||
@media (min-width: 992px) {
|
||||
.blog-page .bp-block {
|
||||
width: 30%;
|
||||
margin: 0 1.6666666666666% 30px;
|
||||
height: 360px;
|
||||
float: left; } }
|
||||
.blog-page .bp-block .bp-img {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
background-position: center center;
|
||||
background-size: 0, 0; }
|
||||
.blog-page .bp-block .bp-img:after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(24, 102, 198, 0.7); }
|
||||
@media (min-width: 540px) {
|
||||
.blog-page .bp-block .bp-img {
|
||||
background-size: cover; } }
|
||||
.blog-page .bp-block .bp-title {
|
||||
display: block;
|
||||
z-index: 3;
|
||||
font-weight: bold;
|
||||
font-size: 26px;
|
||||
line-height: 28px;
|
||||
width: 100%;
|
||||
padding: 10px 15px;
|
||||
color: #FFFFFF;
|
||||
position: relative; }
|
||||
@media (min-width: 540px) {
|
||||
.blog-page .bp-block .bp-title {
|
||||
font-size: 32px;
|
||||
line-height: 32px;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
bottom: 80px;
|
||||
text-align: center;
|
||||
width: auto; }
|
||||
.blog-page .bp-block .bp-title .cont-overflow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
max-height: 228px;
|
||||
padding: 5px 0;
|
||||
overflow: hidden;
|
||||
width: 100%; } }
|
||||
.blog-page .bp-block .bp-description {
|
||||
display: block;
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
left: 10px;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
background: #fff;
|
||||
color: #134D94;
|
||||
font-size: 16.2492px;
|
||||
line-height: 18px;
|
||||
padding: 10px; }
|
||||
.blog-page .bp-block .bp-description .cont-overflow {
|
||||
display: block;
|
||||
min-height: 38px;
|
||||
max-height: 38px;
|
||||
overflow: hidden; }
|
||||
.blog-page .bp-block:hover {
|
||||
text-decoration: none; }
|
||||
.blog-page .bp-block:hover .bp-img:after {
|
||||
background: rgba(24, 102, 198, 0.9); }
|
||||
|
||||
.blog-page .cat-publishing .cat-publishing {
|
||||
display: block; }
|
||||
|
||||
.blog-page .cat-teaching .cat-teaching {
|
||||
display: block; }
|
||||
|
||||
.blog-page .cat-learning .cat-learning {
|
||||
display: block; }
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,21 +1,73 @@
|
||||
<?php
|
||||
get_header();
|
||||
$posts = get_posts();
|
||||
foreach ($posts as $post):
|
||||
?>
|
||||
<?=$post->ID ?>
|
||||
<?=get_the_title($post); ?>
|
||||
<?=get_post_meta($post->ID,'title2',true); ?>
|
||||
<?=get_the_post_thumbnail_url(); ?>
|
||||
<?=get_permalink(); ?>
|
||||
<?php $categories = get_the_category();
|
||||
foreach($categories as $category):?>
|
||||
<?=$category->term_id; ?>
|
||||
<?=$category->slug; ?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="content no-pb">
|
||||
<div class="blog-page">
|
||||
<div class="bp-list-header">
|
||||
<div class="cont">
|
||||
<h1>Blog</h1>
|
||||
<p>Welcome to LiveCarta blog! <br>Learn how to publish, teach and study efficiently.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bp-list-tabs">
|
||||
<div class="cont">
|
||||
<ul>
|
||||
<li><a href="#" data-cat="cat-all" class="category-select all selected">All Categories</a></li>
|
||||
<li><a href="#" data-cat="cat-publishing" class="category-select">Publishing</a></li>
|
||||
<li><a href="#" data-cat="cat-teaching" class="category-select">Teaching</a></li>
|
||||
<li><a href="#" data-cat="cat-learning" class="category-select">Learning</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bp-list cat-publishing cat-teaching cat-learning">
|
||||
<div class="cont">
|
||||
<?php foreach ($posts as $post): ?>
|
||||
<a href="<?=get_permalink(); ?>" class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>">
|
||||
<span class="bp-img" style="background-image: url(<?=get_the_post_thumbnail_url(); ?>);"></span>
|
||||
<span class="bp-title"><span class="cont-overflow"><?=get_the_title($post); ?></span></span>
|
||||
<span class="bp-description"><span class="cont-overflow"><?=get_the_excerpt(); ?></span></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.body.addEventListener('click', function(event){
|
||||
var catClass = '';
|
||||
if (event.target.classList.contains('category-select')) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
document.querySelector('.category-select.selected').classList.remove('selected');
|
||||
event.target.classList.add('selected');
|
||||
if (event.target.classList.contains('all')) {
|
||||
document.querySelector('.bp-list').classList.add('cat-publishing');
|
||||
document.querySelector('.bp-list').classList.add('cat-teaching');
|
||||
document.querySelector('.bp-list').classList.add('cat-learning');
|
||||
return false;
|
||||
}
|
||||
document.querySelector('.bp-list').classList.remove('cat-publishing');
|
||||
document.querySelector('.bp-list').classList.remove('cat-teaching');
|
||||
document.querySelector('.bp-list').classList.remove('cat-learning');
|
||||
catClass = event.target.dataset.cat;
|
||||
document.querySelector('.bp-list').classList.add(catClass);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</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="#" class="button xxl mp-top-right">Request a demo</a>
|
||||
<a href="#" class="button xxl mp-top-left">Sign Up For Free</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
get_footer();
|
||||
|
||||
@@ -2,19 +2,27 @@
|
||||
get_header();
|
||||
$post = get_post();
|
||||
?>
|
||||
<?=$post->ID ?>
|
||||
<?=get_the_title($post); ?>
|
||||
<?=get_post_meta($post->ID,'title2',true); ?>
|
||||
<?=get_the_post_thumbnail_url(); ?>
|
||||
<?=get_permalink(); ?>
|
||||
<?=get_the_content(null,false, $post); ?>
|
||||
<?php $categories = get_the_category();
|
||||
foreach($categories as $category):?>
|
||||
<?=$category->term_id; ?>
|
||||
<?=$category->slug; ?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<br>
|
||||
<div class="content no-pb">
|
||||
<div class="top-panel empty"></div>
|
||||
<div class="cont back-white">
|
||||
<div class="text-page">
|
||||
<h1><?=get_the_title($post); ?></h1>
|
||||
<br>
|
||||
<?=get_the_content(null,false, $post); ?>
|
||||
</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="#" class="button xxl mp-top-right">Request a demo</a>
|
||||
<a href="#" class="button xxl mp-top-left">Sign Up For Free</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
||||
Reference in New Issue
Block a user