Current File : /home/quantums/durdanatariq.com/wp-content/themes/durdana/index.php |
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
get_header();
?>
<section class="featured-row">
<div class="container">
<div class="row">
<div class="inner-top-brand">
<img src="<?php echo get_template_directory_uri(); ?>/images/cropped-website41-1.png">
</div>
</div>
</div>
</section>
<section class="inner-banner" style="background-image: url(http://durdanatariq.com/wp-content/uploads/2019/03/BLOG.jpg);">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="inner-heading text-center">
<h2 class="tm-h2"> BLOG </h2>
<h4> Learn how Homeopathy can help treat acute and chronic illnesses without any side-effects. Subscribe to my blog for weekly updates! </h4>
</div>
</div>
</div>
</div>
</section>
<section class="blog-row custom-row">
<div class="container">
<div class="row">
<div class="col-md-9">
<?php
if ( have_posts() ) {
// Load posts loop.
while ( have_posts() ) {
the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'single-post-thumbnail' );
$small_content = substr(get_the_content(), 0, 700);
?>
<div class="blog-box-panel">
<h3 class="otw_blog_manager-blog-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
<a href="<?php the_permalink();?>">
<img class="img-fluid" src="<?php echo $image[0];?>">
</a>
<?php the_excerpt();?>
<a href="<?php echo get_the_permalink();?>" class="blob_button">Read More</a>
</div>
<?php
}
// Previous/next page navigation.
twentynineteen_the_posts_navigation();
}
?>
</div>
<div class="col-md-3">
<div class="sidebar">
<?php dynamic_sidebar('page-sidebar');?>
</div>
</div>
</div>
</div>
</section>
<?php
get_footer();