Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Radanovn committed Dec 2, 2022
1 parent c0c7dac commit fb075b9
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 7 deletions.
9 changes: 8 additions & 1 deletion modules/posts/templates/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,20 @@
<a href="<?php print $item['link'] ?>"><h3 class="m-b-10"><?php print $item['title'] ?></h3></a>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('description', $show_fields)): ?>
<p><?php print $item['description'] ?></p>
<?php endif; ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 m-t-20"><span>Read more</span></a>
<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 m-t-20"><span>Read more</span>
<?php endif; ?>

</div>
</div>
<?php endforeach; ?>
Expand Down
8 changes: 8 additions & 0 deletions modules/posts/templates/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,21 @@
<a href="<?php print $item['link'] ?>"><h3 class="m-b-10"><?php print $item['title'] ?></h3></a>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('description', $show_fields)): ?>
<p><?php print $item['description'] ?></p>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 m-t-20"><span>Read more</span></a>
<?php endif; ?>


</div>
</div>
<?php endforeach; ?>
Expand Down
4 changes: 4 additions & 0 deletions modules/posts/templates/header-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
</div>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>

<div class="info">
<h5><?php print $item['title'] ?></h5>
</div>
<?php endif; ?>

</div>
<?php endforeach; ?>
<?php endif; ?>
Expand Down
9 changes: 8 additions & 1 deletion modules/posts/templates/news-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
<a href="<?php print $item['link'] ?>">
<div class="thumbnail justify-content-bottom align-items-end d-flex flex-cloumns" style="background-image: url('<?php print thumbnail($item['image'], 800, 800); ?>');"></div>
</a>
<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>
<a href="<?php print $item['link'] ?>"><h2><?php print $item['title'] ?></h2></a>
<?php endif; ?>
Expand All @@ -48,8 +52,11 @@
<a href="<?php print $item['link'] ?>">
<div class="thumbnail justify-content-bottom align-items-end d-flex flex-cloumns" style="background-image: url('<?php print thumbnail($item['image'], 500, 500); ?>');"></div>
</a>
<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>
<a href="<?php print $item['link'] ?>"><h4><?php print $item['title'] ?></h4></a>
<?php endif; ?>
Expand Down
8 changes: 7 additions & 1 deletion modules/posts/templates/news-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@
<div class="post-holder">
<div class="thumbnail justify-content-bottom align-items-end d-flex flex-cloumns" style="background-image: url('<?php print thumbnail($item['image'], 790, 390, true); ?>');">
<div>
<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>
<a href="<?php print $item['link'] ?>">
<h3><?php print $item['title'] ?></h3>
</a>
<?php endif; ?>
<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" class="btn btn-primary m-t-10">Read now</a>
<?php endif; ?>

</div>
</div>
</div>
Expand Down
22 changes: 21 additions & 1 deletion modules/posts/templates/news-3.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,22 @@
<div class="post-holder">
<div class="thumbnail justify-content-bottom align-items-end d-flex flex-cloumns" style="background-image: url('<?php print thumbnail($item['image'], 790, 390, true); ?>');">
<div>
<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>
<a href="<?php print $item['link'] ?>">
<h3><?php print $item['title'] ?></h3>
</a>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" class="btn btn-primary m-t-10">Read now</a>
<?php endif; ?>

</div>
</div>
</div>
Expand All @@ -49,12 +56,17 @@
<div class="col-6 d-none d-lg-block">
<div class="row m-b-30">
<div class="col-lg-5">
<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php if (!isset($show_fields) or $show_fields == false or in_array('thumbnail', $show_fields)): ?>

<div class="post-holder">
<a href="<?php print $item['link'] ?>">
<img src="<?php print thumbnail($item['image'], 300, 225, true); ?>" alt=""/>
</a>
</div>
</div>
<?php endif; ?>

</div>

<div class="col-lg-7">
<div class="post-holder">
Expand All @@ -70,7 +82,11 @@
<?php endif; ?>


<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 button-red m-t-10"><span>Read more</span></a>
<?php endif; ?>

</div>
</div>
</div>
Expand Down Expand Up @@ -98,7 +114,11 @@
</a>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" class="btn btn-primary m-t-10">Read now</a>
<?php endif; ?>

</div>
</div>
</div>
Expand Down
17 changes: 14 additions & 3 deletions modules/posts/templates/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
<div class="post-holder">
<div class="thumbnail justify-content-bottom align-items-end d-flex flex-cloumns" style="background-image: url('<?php print thumbnail($item['image'], 1135, 540, true); ?>');">
<div>
<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<small><?php echo date('d M Y', strtotime($item['created_at'])); ?></small>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('title', $show_fields)): ?>
<a href="<?php print $item['link'] ?>"><h3><?php print $item['title'] ?></h3></a>
Expand All @@ -34,7 +37,11 @@
<p><?php print $item['description'] ?></p>
<?php endif; ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="btn btn-primary m-t-10"><span>Read more</span></a>
<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="btn btn-primary m-t-10"><span>Read more</span></a>
<?php endif; ?>

</div>
</div>
</div>
Expand All @@ -61,7 +68,11 @@
<p><?php print $item['description'] ?></p>
<?php endif; ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 m-t-10"><span>Read more</span></a>
<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<a href="<?php print $item['link'] ?>" itemprop="url" class="button-8 m-t-10"><span>Read more</span></a>
<?php endif; ?>

</div>
</div>
<?php endif; ?>
Expand Down
8 changes: 8 additions & 0 deletions modules/posts/templates/skin-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,24 @@
<h3 class=" m-b-20"><?php print $item['title'] ?></h3>
<?php endif; ?>

<?php if (!isset($show_fields) or $show_fields == false or in_array('created_at', $show_fields)): ?>

<p class="date m-b-10"><?php print $item['created_at'] ?></p>
<?php endif; ?>


<?php if (!isset($show_fields) or $show_fields == false or in_array('description', $show_fields)): ?>
<p><?php print $item['description'] ?></p>
<?php endif; ?>
</div>

<?php if (!isset($show_fields) or $show_fields == false or in_array('read_more', $show_fields)): ?>

<div class="m-t-auto">
<a href="<?php print $item['link'] ?>" class="button-8"><span>Read more</span></a>
</div>
<?php endif; ?>

</div>
</div>
<?php endforeach; ?>
Expand Down

0 comments on commit fb075b9

Please sign in to comment.