This commit is contained in:
Manish 2024-04-11 13:18:08 +05:45
parent b77f106922
commit dcdc8ea781
18 changed files with 425 additions and 195 deletions

View File

@ -584,6 +584,14 @@ pre code {
margin-right: auto;
margin-left: auto
}
.footer-container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: 10px;
margin-left: 10px;
}
@media (min-width:576px) {
.container {

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -41,7 +41,7 @@
$ad = new WP_Query($args);
while($ad->have_posts()): $ad->the_post();
?>
<div class="col-md-9 col-lg-9">
<div class="col-md-12 col-lg-9">
<ul class="social-icon-one text-center">
@ -80,7 +80,7 @@
</div>
<div class="footer-main">
<div class="container">
<div class="footer-container">
<div class="row">
<?php
$args = array(
@ -92,7 +92,7 @@
$address = new WP_Query($args);
while($address->have_posts()): $address->the_post();
?>
<div class="col-md-3 col-sm-12 footer-widget">
<div style= "text-align: center;"class="col-md-4 col-sm-12 footer-widget" >
<div class="footer-contact-title">
<h3><?php echo get_field('organization_name');?></h3>
@ -114,29 +114,9 @@
</div><!-- Col end -->
<?php endwhile;?>
<div class="col-md-3 col-sm-12 footer-widget footer ">
<h3 class="widget-title">अर्थसंजाल टीम</h3>
<?php
$args = array(
'post_type' => 'team-member',
// 'posts_per_page' => 2,
// 'order' => 'ASC',
);
$apteam = new WP_Query($args);
while($apteam->have_posts()): $apteam->the_post();
?>
<div class="txtbox">
<h4><?php echo get_field('post');?></h4>
<span class="txt1"><?php the_title();?></span>
</div>
<?php endwhile;?>
</div>
<div class="col-md-3 col-sm-12 footer-widget widget-categories">
<h3 class="widget-title">वेबसाइट नेभिगेशन</h3>
<div style= "text-align: center;" class="col-md-4 col-sm-12 footer-widget widget-categories">
<h3 class="widget-title">Website Navigation</h3>
<?php
@ -162,32 +142,11 @@
?>
<?php
$defaults = array(
'theme_location' => 'footer-mid',
'menu' => '',
'container' => '',
'container_class' => '',
'container_id' => '',
'menu_class' => '',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'items_wrap' => '<ul id="%1$s" class="rightcol">%3$s</ul>',
'depth' => 0,
'walker' => new wp_bootstrap_navwalker()
);
wp_nav_menu( $defaults );
?>
</div>
<div class="col-md-3 col-sm-12 footer-widget widget-categories">
<h3 class="widget-title">नेभिगेशन</h3>
<div style= "text-align: center;" class="col-md-4 col-sm-12 footer-widget widget-categories">
<h3 class="widget-title">Popular Posts</h3>
<?php
$defaults = array(

View File

@ -9,7 +9,7 @@
</div>
<div class="content-blocks">
<div class="row">
<?php $the_query = catagorydatabyid(43, 2); ?>
<?php $the_query = catagorydatabyid(1, 3); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="nbo-st col-lg-6 col-md-6 col-sm-6 col-xs-12">
@ -33,7 +33,7 @@
<?php endif; ?>
</div>
<div class="row">
<?php listingnews(43, 3, 2, ''); ?>
<?php listingnews(1, 3, 2, ''); ?>
</div>
</div>
</div>

View File

@ -9,7 +9,7 @@
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Khanpin-theme
* @package stnews-theme
*/
get_header();
?>
@ -115,22 +115,416 @@ get_header();
</section>
<!-- End Head News -->
<!-- Business Focus -->
<?php include('health.php'); ?>
<div class="sidebar-page-container">
<div class="container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side col-lg-9 col-md-12 col-sm-12">
<!--Sec Title-->
<div class="sec-title">
<h2>Health</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="content-blocks">
<div class="row">
<?php $the_query = catagorydatabyid(1, 2); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="nbo-st col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="inner-box business-focus">
<div class="image">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="content-inner pt20">
<h2> <a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 35, '...'); ?></a></h2>
<div class="text"><?php echo excerpt(35); ?> </div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="row">
<?php listingnews(1, 3, 2, ''); ?>
</div>
</div>
</div>
<div class="sidebar-side col-lg-3 col-md-12 col-sm-12">
<aside class="sidebar default-sidebar">
<?php
$args = array(
'post_type' => 'advertisement',
'posts_per_page' => 5,
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'add-category',
'field' => 'slug',
'terms' => array('right-side-business-focus-ad'),
),
),
);
$bm = new WP_Query($args);
while ($bm->have_posts()) : $bm->the_post(); ?>
<div class="sidebar-widget">
<div class="widget-content">
<div class="image">
<?php the_post_thumbnail('', array('class' => 'img-fluid')); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</aside>
</div>
</div>
</div>
</div>
<!-- //Business Focus -->
<!-- Banking -->
<?php include('khanpin-parts/trending-foods.php'); ?>
<div class="sidebar-page-container">
<div class="container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side col-lg-9 col-md-12 col-sm-12">
<!--Sec Title-->
<div class="sec-title">
<h2>Traditional Foods</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="content-blocks">
<?php $the_query = catagorydatabyid(106, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="nbo-st">
<div class="inner-box">
<div class="row clearfix">
<div class="image-column col-lg-7 col-md-7 col-sm-12">
<div class="image">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('large-img', array('class' => 'img-fluid'));
}
?>
</a>
</div>
</div>
<div class="content-box col-lg-5 col-md-5 col-sm-12">
<div class="content-inner">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="text"><?php echo excerpt(40); ?> </div>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="row">
<?php listcatagory(106, 8, 1, ''); ?>
</div>
</div>
</div>
<div class="sidebar-side col-lg-3 col-md-12 col-sm-12">
<aside class="sidebar default-sidebar">
<div class="widget color-default">
<div class="sec-title">
<h2>धेरै पढिएको</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="list-post-block">
<?php get_sidebar(); ?>
</div><!-- List post block end -->
</div><!-- Sidebar right end -->
</aside>
</div>
</div>
</div>
</div>
<!-- //Banking -->
<!-- Share Market -->
<section class="block-wrapper ">
<div class="container">
<div class="block color-red">
<div class="sec-title">
<h2>Trending Foods</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="row">
<div class="col-md-4 col-sm-4">
<?php $the_query = catagorydatabyid(104, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-block-style clearfix">
<div class="post-imgs-thumb">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title title-extra-large">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<p><?php //echo excerpt(50);
?></p>
</div><!-- Post content end -->
</div><!-- Post Block style end -->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- Col end -->
<div class="col-md-4 col-sm-4">
<div class="list-post-block m-top-0">
<ul class="list-post">
<?php listnews(104, 2, 1, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- List post Col end -->
<div class="col-md-4 col-sm-4">
<div class="list-post-block m-top-0">
<ul class="list-post">
<?php listnews(104, 2, 4, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- List post Col end -->
</div>
</div>
</div>
</section>
<!-- //Share Market -->
<!-- Artha khoj -->
<section class="block-wrapper bg-light-grey">
<div class="container">
<div class="block ">
<div class="sec-title">
<h2>Food History In Nepal</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="row">
<?php $args = array('posts_per_page' => 4, 'category' => array(51));
$myposts = get_posts($args);
foreach ($myposts as $post) : setup_postdata($post); ?>
<div class="col-md-3 col-sm-6 mrb-30 clearfix">
<div class="post-block-style h250 effect2 clearfix">
<div class="post-charcha-thumb">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('', array('class' => 'img-fluid'));
} ?>
</div><!-- Post thumb end -->
<div class="post-content">
<h2 class="post-title title-large ">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 30, '...'); ?></a>
</h2>
<div class="post-meta">
<span class="post-date"><?php // echo get_the_date();
?></span>
</div>
</div><!-- Post content end -->
</div>
</div><!-- Col 1 end -->
<?php endforeach;
wp_reset_postdata(); ?>
</div><!-- Row end -->
</div>
<!--<hr class="class-1 clearfix">-->
<div class="row">
<?php //listnewslist(51,8,4,'');
?>
</div>
</div>
</section>
<!-- //Artha Khoj -->
<!-- Arthawarta -->
<div class="sidebar-page-container">
<div class="container">
<!--Content Side-->
<div class="content-side ">
<!--Sec Title-->
<div class="sec-title">
<h2>Authentic Nepali Foods </h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<div class="content-blocks">
<div class="row clearfix">
<?php $the_query = catagorydatabyid(101, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="image-column col-lg-7 col-md-7 col-sm-12 ">
<div class="nbo-st">
<div class="inner-box">
<div class="image">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('large-img', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="content-inner pt20">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="content-box col-lg-5 col-md-5 col-sm-12 ">
<?php listnews(101, 3, 1, ''); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //Arthawarta -->
<!-- Insurance - Udhyog -->
<section class="block-wrapper">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="block color-dark-blue">
<div class="sec-title">
<h2>What to Eat </h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<?php $the_query = catagorydatabyid(44, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-overaly-style clearfix">
<div class="post-imgs-thumb title-large">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('large-img', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 50, '...'); ?></a>
</h2>
<div class="text"><?php echo excerpt(35); ?> </div>
</div><!-- Post content end -->
<br>
</div><!-- Post Overaly Article end -->
<?php endwhile; ?>
<?php endif; ?>
<div class="gap-20"></div>
<div class="list-post-block">
<ul class="list-post">
<?php listnewsst(44, 3, 1, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- Block end -->
</div><!-- Insurance end -->
<div class="col-md-6">
<div class="block color-dark-blue">
<div class="sec-title">
<h2>What Not to Eat</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<?php $the_query = catagorydatabyid(45, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-overaly-style clearfix">
<div class="post-imgs-thumb title-large">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('large-img', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 50, '...'); ?></a>
</h2>
<div class="text"><?php echo excerpt(35); ?> </div>
</div><!-- Post content end -->
<br>
</div><!-- Post Overaly Article end -->
<?php endwhile; ?>
<?php endif; ?>
<div class="gap-20"></div>
<div class="list-post-block">
<ul class="list-post">
<?php listnewsst(45, 3, 1, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- Block end -->
</div><!-- Insurance end -->
</div><!-- Row end -->
</div><!-- Container end -->
</section>
<!-- //Insurance - Udhyog -->
<!-- krishi -->
@ -143,9 +537,9 @@ get_header();
<div class="content-side col-lg-12 col-md-12 col-sm-12">
<!--Sec Title-->
<div class="sec-title">
<h2>पर्यटन</h2>
<h2>Seasonal Food</h2>
</div>
<?php $the_query = catagorydatabyid(53, 1); ?>
<?php $the_query = catagorydatabyid(102, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="content-blocks row">
@ -173,7 +567,7 @@ get_header();
<?php endif; ?>
<div class="news-block-four col-lg-6 col-md-6 col-sm-12">
<div class="row">
<?php sportscatagory(53, 4, 1, ''); ?>
<?php sportscatagory(102, 4, 1, ''); ?>
</div>
</div>
</div>
@ -183,138 +577,7 @@ get_header();
</div>
<!-- //Sports -->
<!-- Tourism-->
<section class="block-wrapper">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="block color-dark-blue">
<div class="sec-title">
<h2>खेलकुद</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<?php $the_query = catagorydatabyid(66, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-overaly-style clearfix">
<div class="post-imgs-thumb title-large business-focus">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('article-thumb', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 35, '...'); ?></a>
</h2>
</div><!-- Post content end -->
</div><!-- Post Overaly Article end -->
<?php endwhile; ?>
<?php endif; ?>
<div class="gap-20"></div>
<div class="list-post-block">
<div class="list-post ">
<?php listnews(66, 3, 1, ''); ?>
</div><!-- List post end -->
</div><!-- List post block end -->
</div><!-- Block end -->
</div><!-- Travel Col end -->
<div class="col-md-4">
<div class="block color-aqua">
<div class="sec-title">
<h2>अटाे</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<?php $the_query = catagorydatabyid(43, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-overaly-style clearfix">
<div class="post-imgs-thumb title-large business-focus">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('article-thumb', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 35, '...'); ?></a>
</h2>
</div><!-- Post content end -->
</div><!-- Post Overaly Article end -->
<?php endwhile; ?>
<?php endif; ?>
<div class="gap-20"></div>
<div class="list-post-block">
<ul class="list-post">
<?php listnews(43, 3, 1, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- Block end -->
</div><!-- Gadget Col end -->
<div class="col-md-4">
<div class="block color-violet">
<div class="sec-title">
<h2>पालिका</h2>
<!--<div class="pull-right">-->
<!-- <a href="#" class="readall">सबै-->
<!-- <span class="dotline">-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- <span></span>-->
<!-- </span></a>-->
<!--</div>-->
</div>
<?php $the_query = catagorydatabyid(49, 1); ?>
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="post-overaly-style clearfix">
<div class="post-imgs-thumb title-large business-focus">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('article-thumb', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="post-content">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 35, '...'); ?></a>
</h2>
</div><!-- Post content end -->
</div><!-- Post Overaly Article end -->
<?php endwhile; ?>
<?php endif; ?>
<div class="gap-20"></div>
<div class="list-post-block">
<ul class="list-post">
<?php listnews(49, 3, 1, ''); ?>
</ul><!-- List post end -->
</div><!-- List post block end -->
</div><!-- Block end -->
</div><!-- Health Col end -->
</div><!-- Row end -->
</div><!-- Container end -->
</section>
<!-- //Tourism -->
<?php
//get_sidebar();

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB