Modularización de GKACHELE SaaS
This commit is contained in:
45
wp-content/themes/abiz/page.php
Normal file
45
wp-content/themes/abiz/page.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying all pages.
|
||||
*/
|
||||
get_header();
|
||||
get_template_part('/template-parts/site', 'breadcrumb');
|
||||
?>
|
||||
<section id="abiz-page" class="abiz-page st-py-default">
|
||||
<div class="container">
|
||||
<div class="row gy-lg-0 gy-5 wow fadeInUp">
|
||||
<?php
|
||||
if ( class_exists( 'woocommerce' ) ){
|
||||
|
||||
if( is_account_page() || is_cart() || is_checkout() ) { ?>
|
||||
<div class="<?php if ( is_active_sidebar('sidebar-woocommerce') ){ esc_attr_e('col-lg-8','abiz'); } else { esc_attr_e('col-lg-12','abiz'); } ?>">
|
||||
<?php }
|
||||
else{ ?>
|
||||
|
||||
<div class="<?php if ( is_active_sidebar('sidebar-primary') ){ esc_attr_e('col-lg-8','abiz'); } else { esc_attr_e('col-lg-12','abiz'); } ?>">
|
||||
|
||||
<?php }}else{ ?>
|
||||
|
||||
<div class="<?php if ( is_active_sidebar('sidebar-primary') ){ esc_attr_e('col-lg-8','abiz'); } else { esc_attr_e('col-lg-12','abiz'); } ?>">
|
||||
|
||||
<?php } if( have_posts()) : the_post();
|
||||
the_content();
|
||||
endif;
|
||||
if( $post->comment_status == 'open' ) {
|
||||
comments_template( '', true ); // show comments
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ( class_exists( 'WooCommerce' ) )
|
||||
if( is_account_page() || is_cart() || is_checkout() ) {
|
||||
get_sidebar('woocommerce');
|
||||
}else{
|
||||
|
||||
get_sidebar();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user