Commit 9cf86c99 by rajshah

views fixed in archive blogs layout

parent 5374b31f
...@@ -8,7 +8,7 @@ $currentObject = get_queried_object(); ...@@ -8,7 +8,7 @@ $currentObject = get_queried_object();
<div class="row"> <div class="row">
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo site_url('/');?>">Home</a></li> <li class="breadcrumb-item"><a href="<?php echo site_url('/'); ?>">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Blog</li> <li class="breadcrumb-item active" aria-current="page">Blog</li>
</ol> </ol>
</nav> </nav>
...@@ -20,11 +20,11 @@ $currentObject = get_queried_object(); ...@@ -20,11 +20,11 @@ $currentObject = get_queried_object();
<div class="container"> <div class="container">
<div class="row justify-content-between"> <div class="row justify-content-between">
<div class="col-lg-3 pb-60 title-wrapper"> <div class="col-lg-3 pb-60 title-wrapper">
<!-- <h1><?php echo $currentObject->name;?></h1> --> <!-- <h1><?php echo $currentObject->name; ?></h1> -->
<h1>Blog</h1> <h1>Blog</h1>
</div> </div>
<div class="col-lg-6 pb-60 paragraph"> <div class="col-lg-6 pb-60 paragraph">
<!-- <p><?php echo get_the_excerpt();?></p> --> <!-- <p><?php echo get_the_excerpt(); ?></p> -->
<p><?php echo get_field('arch_description', 'option'); ?></p> <p><?php echo get_field('arch_description', 'option'); ?></p>
</div> </div>
</div> </div>
...@@ -34,16 +34,17 @@ $currentObject = get_queried_object(); ...@@ -34,16 +34,17 @@ $currentObject = get_queried_object();
<div class="container"> <div class="container">
<div class="row justify-content-between"> <div class="row justify-content-between">
<div class="col-lg-2 col-12 left-filter"> <div class="col-lg-2 col-12 left-filter">
<?php get_sidebar();?> <?php get_sidebar(); ?>
</div> </div>
<div class="col-lg-10 col-12 blog-list"> <div class="col-lg-10 col-12 blog-list">
<div class="row "> <div class="row ">
<?php while(have_posts()):the_post();?> <?php while (have_posts()):
the_post(); ?>
<div class="col-lg-6 col-md-6"> <div class="col-lg-6 col-md-6">
<div class="blog-card"> <div class="blog-card">
<a href="<?php the_permalink();?>"> <a href="<?php the_permalink(); ?>">
<div class="blog-image-wrapper"> <div class="blog-image-wrapper">
<?php the_post_thumbnail();?> <?php the_post_thumbnail(); ?>
</div> </div>
<!--<p class="text-dark mb-0">Author: <?php echo get_the_author(); ?></p>--> <!--<p class="text-dark mb-0">Author: <?php echo get_the_author(); ?></p>-->
<div class="text-wrapper"> <div class="text-wrapper">
...@@ -56,8 +57,8 @@ $currentObject = get_queried_object(); ...@@ -56,8 +57,8 @@ $currentObject = get_queried_object();
} }
} }
?> ?>
<h6><?php the_title();?></h6> <h6><?php the_title(); ?></h6>
<?php the_excerpt();?> <?php the_excerpt(); ?>
<div class="card-detail d-flex justify-content-between"> <div class="card-detail d-flex justify-content-between">
<div><svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"> <div><svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
...@@ -70,7 +71,7 @@ $currentObject = get_queried_object(); ...@@ -70,7 +71,7 @@ $currentObject = get_queried_object();
<path d="M3.125 7.375H16.875" stroke="#005AFF" stroke-width="1.5" stroke-linecap="round" <path d="M3.125 7.375H16.875" stroke="#005AFF" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" /> stroke-linejoin="round" />
</svg> </svg>
<?php echo get_the_date('d, M Y');?></div> <?php echo get_the_date('d, M Y'); ?></div>
<div><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <div><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M10 4.375C3.75 4.375 1.25 10 1.25 10C1.25 10 3.75 15.625 10 15.625C16.25 15.625 18.75 10 18.75 10C18.75 10 16.25 4.375 10 4.375Z" d="M10 4.375C3.75 4.375 1.25 10 1.25 10C1.25 10 3.75 15.625 10 15.625C16.25 15.625 18.75 10 18.75 10C18.75 10 16.25 4.375 10 4.375Z"
...@@ -79,7 +80,12 @@ $currentObject = get_queried_object(); ...@@ -79,7 +80,12 @@ $currentObject = get_queried_object();
d="M10 13.125C11.7259 13.125 13.125 11.7259 13.125 10C13.125 8.27411 11.7259 6.875 10 6.875C8.27411 6.875 6.875 8.27411 6.875 10C6.875 11.7259 8.27411 13.125 10 13.125Z" d="M10 13.125C11.7259 13.125 13.125 11.7259 13.125 10C13.125 8.27411 11.7259 6.875 10 6.875C8.27411 6.875 6.875 8.27411 6.875 10C6.875 11.7259 8.27411 13.125 10 13.125Z"
stroke="#005AFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> stroke="#005AFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
</svg> </svg>
<?php echo (int) get_post_meta(get_the_ID(),'total_views')??0;?> Views</div> <?php
$views = do_shortcode('[post-views]');
$views = wp_filter_nohtml_kses($views);
echo esc_html($views) . ' Views';
?>
</div>
<div class="d-none"> <div class="d-none">
<svg width="18" height="15" viewBox="0 0 18 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="18" height="15" viewBox="0 0 18 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
...@@ -87,17 +93,17 @@ $currentObject = get_queried_object(); ...@@ -87,17 +93,17 @@ $currentObject = get_queried_object();
fill="#005AFF" /> fill="#005AFF" />
</svg> </svg>
<?php echo get_comments_number();?> Comments <?php echo get_comments_number(); ?> Comments
</div> </div>
</div> </div>
</div> </div>
</a> </a>
</div> </div>
</div> </div>
<?php endwhile;?> <?php endwhile; ?>
</div> </div>
<?php the_posts_pagination();?> <?php the_posts_pagination(); ?>
<!-- <nav aria-label="Page navigation example"> <!-- <nav aria-label="Page navigation example">
<ul class="pagination justify-content-center"> <ul class="pagination justify-content-center">
<li class="page-item"><a class="page-link" href="#">Previous</a></li> <li class="page-item"><a class="page-link" href="#">Previous</a></li>
...@@ -111,6 +117,6 @@ $currentObject = get_queried_object(); ...@@ -111,6 +117,6 @@ $currentObject = get_queried_object();
</div> </div>
</div> </div>
</section> </section>
<!-- // <?php echo custom_page_content(get_the_content(null,false,$current_page_id));?> --> <!-- // <?php echo custom_page_content(get_the_content(null, false, $current_page_id)); ?> -->
<?php get_footer() ?> <?php get_footer() ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment