<?php /** * The template for displaying home page. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package VW Charity NGO */ get_header(); ?> <main id="maincontent" role="main"> <div class="middle-align container"> <?php $vw_charity_ngo_theme_lay = get_theme_mod( 'vw_charity_ngo_theme_options','Right Sidebar'); if($vw_charity_ngo_theme_lay == 'Left Sidebar'){ ?> <div class="row"> <div class="col-md-4 col-lg-4 sidebar"><?php get_sidebar();?></div> <div id="our-services" class="services col-md-8 col-lg-8"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> </div> <div class="clearfix"></div> <?php }else if($vw_charity_ngo_theme_lay == 'Right Sidebar'){ ?> <div class="row"> <div id="our-services" class="services col-md-8 col-lg-8"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <div class="col-md-4 col-lg-4 sidebar"><?php get_sidebar();?></div> </div> <?php }else if($vw_charity_ngo_theme_lay == 'One Column'){ ?> <div id="our-services" class="services"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <?php }else if($vw_charity_ngo_theme_lay == 'Three Columns'){ ?> <div class="row"> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-1');?></div> <div id="our-services" class="services col-md-6 col-lg-6"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-2');?></div> </div> <?php }else if($vw_charity_ngo_theme_lay == 'Four Columns'){ ?> <div class="row"> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-1');?></div> <div id="our-services" class="services col-md-3 col-lg-3"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-2');?></div> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-3');?></div> </div> <?php }else if($vw_charity_ngo_theme_lay == 'Grid Layout'){ ?> <div class="row"> <div id="our-services" class="services col-md-9 col-lg-9"> <div class="row"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/grid-layout' ); endwhile; else : get_template_part( 'no-results' ); endif; ?> </div> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <div class="col-md-3 col-lg-3 sidebar"><?php dynamic_sidebar('sidebar-1');?></div> </div> <?php }else{?> <div class="row"> <div id="our-services" class="services col-md-8 col-lg-8"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content',get_post_format()); endwhile; else : get_template_part( 'no-results' ); endif; ?> <?php if( get_theme_mod( 'vw_charity_ngo_blog_pagination_hide_show',true) == 1) { ?> <div class="navigation"> <?php vw_charity_ngo_blog_posts_pagination(); ?> <div class="clearfix"></div> </div> <?php } ?> </div> <div class="col-md-4 col-lg-4 sidebar"><?php dynamic_sidebar('sidebar-1');?></div> </div> <?php } ?> <div class="clearfix"></div> </div> </main> <?php get_footer(); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
css | Folder | 0777 |
|
|
images | Folder | 0777 |
|
|
inc | Folder | 0777 |
|
|
js | Folder | 0777 |
|
|
languages | Folder | 0777 |
|
|
page-template | Folder | 0777 |
|
|
template-parts | Folder | 0777 |
|
|
webfonts | Folder | 0777 |
|
|
woocommerce | Folder | 0777 |
|
|
404.php | File | 1.23 KB | 0777 |
|
archive.php | File | 7.8 KB | 0777 |
|
comments.php | File | 2.41 KB | 0777 |
|
footer.php | File | 4.42 KB | 0777 |
|
functions.php | File | 18.62 KB | 0777 |
|
header.php | File | 1.38 KB | 0777 |
|
image.php | File | 8.12 KB | 0777 |
|
index.php | File | 6.71 KB | 0777 |
|
inline-style.php | File | 47.07 KB | 0777 |
|
license.txt | File | 34.32 KB | 0777 |
|
no-results.php | File | 1.29 KB | 0777 |
|
page.php | File | 3.58 KB | 0777 |
|
readme.txt | File | 21.75 KB | 0777 |
|
rtl.css | File | 38.84 KB | 0777 |
|
screenshot.png | File | 178.96 KB | 0777 |
|
search.php | File | 10.04 KB | 0777 |
|
searchform.php | File | 652 B | 0777 |
|
sidebar.php | File | 993 B | 0777 |
|
single.php | File | 9.65 KB | 0777 |
|
style.css | File | 51.96 KB | 0777 |
|