__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* The template for displaying all pages
*
* 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 may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package consultstreet
*/
get_header();
get_template_part('template-parts/site','breadcrumb');
$page_sidebar_layout = get_post_meta( get_the_ID(), '_sidebar_layout', true );
?>
<section class="theme-block theme-blog">
<div class="container">
<div class="row">
<?php
if($page_sidebar_layout == 'left-sidebar'):
if ( class_exists( 'WooCommerce' ) ) {
if( is_account_page() || is_cart() || is_checkout() ) {
get_sidebar('woocommerce');
}
else{
get_sidebar();
}
}
else{
get_sidebar();
}
endif;
if($page_sidebar_layout == 'no-sidebar'):
if ( class_exists( 'WooCommerce' ) ) {
if( is_account_page() || is_cart() || is_checkout() ) {
echo '<div class="col-lg-12 col-md-12 col-sm-12">';
}
else{
echo '<div class="col-lg-12 col-md-12 col-sm-12">';
}
}
else{
echo '<div class="col-lg-12 col-md-12 col-sm-12">';
}
else:
if ( class_exists( 'WooCommerce' ) ) {
if( is_account_page() || is_cart() || is_checkout() ) {
echo '<div class="col-lg-'.( !is_active_sidebar( "woocommerce" ) ?"12" :"8" ).' col-md-'.( !is_active_sidebar( "woocommerce" ) ?"12" :"8" ).' col-sm-12">';
}
else{
echo '<div class="col-lg-'.( !is_active_sidebar( "sidebar-main" ) ?"12" :"8" ).' col-md-'.( !is_active_sidebar( "sidebar-main" ) ?"12" :"8" ).' col-sm-12">';
}
}
else{
echo '<div class="col-lg-'.( !is_active_sidebar( "sidebar-main" ) ?"12" :"8" ).' col-md-'.( !is_active_sidebar( "sidebar-main" ) ?"12" :"8" ).' col-sm-12">';
}
endif;
if ( class_exists( 'WooCommerce' ) ) {
if( is_account_page() || is_cart() || is_checkout() ) {
while ( have_posts() ) : the_post();
// Include the page
get_template_part( 'template-parts/content', 'page' );
comments_template( '', true ); // show comments
endwhile;
}
else
{
while ( have_posts() ) : the_post();
// Include the page
get_template_part( 'template-parts/content', 'page' );
comments_template( '', true ); // show comments
endwhile;
}
}
else
{
while ( have_posts() ) : the_post();
// Include the page
get_template_part( 'template-parts/content', 'page' );
comments_template( '', true ); // show comments
endwhile;
}
?>
</div>
<?php if($page_sidebar_layout == 'right-sidebar' || empty($page_sidebar_layout)):
if ( class_exists( 'WooCommerce' ) ) {
if( is_account_page() || is_cart() || is_checkout() ) {
get_sidebar('woocommerce');
}
else{
get_sidebar();
}
}
else{
get_sidebar();
}
endif; ?>
</div>
</div>
</section>
<!--/Blog & Sidebar-->
<?php
get_footer();| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0755 |
|
|
| inc | Folder | 0755 |
|
|
| languages | Folder | 0755 |
|
|
| page-templates | Folder | 0755 |
|
|
| template-parts | Folder | 0755 |
|
|
| 404.php | File | 901 B | 0644 |
|
| archive.php | File | 2.28 KB | 0644 |
|
| comments.php | File | 3.83 KB | 0644 |
|
| footer.php | File | 1.67 KB | 0644 |
|
| functions.php | File | 9.02 KB | 0644 |
|
| header.php | File | 922 B | 0644 |
|
| index.php | File | 1.72 KB | 0644 |
|
| license.txt | File | 14.86 KB | 0644 |
|
| page.php | File | 3.15 KB | 0644 |
|
| readme.txt | File | 22.79 KB | 0644 |
|
| screenshot.png | File | 439.04 KB | 0644 |
|
| search.php | File | 1.34 KB | 0644 |
|
| searchform.php | File | 382 B | 0644 |
|
| sidebar-footer.php | File | 1.23 KB | 0644 |
|
| sidebar-woocommerce.php | File | 418 B | 0644 |
|
| sidebar.php | File | 414 B | 0644 |
|
| single.php | File | 1.73 KB | 0644 |
|
| style.css | File | 100.56 KB | 0644 |
|
| woocommerce.php | File | 1007 B | 0644 |
|