Skip to content

Commit

Permalink
Added new filter to disable homepage content
Browse files Browse the repository at this point in the history
mahdiyazdani committed Aug 1, 2017
1 parent 8c338d4 commit 364b1cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions template-parts/hypermarket-homepage-content.php
Original file line number Diff line number Diff line change
@@ -5,22 +5,22 @@
* @package Hooked into "hypermarket_homepage_template"
* @author Mahdi Yazdani
* @package Hypermarket
* @since 1.0.3
* @since 1.0.9.0
*/
if (have_posts() && '' !== get_post()->post_content):
?>
<!-- Homepage Content -->
<section id="hypermarket-content" class="container padding-top padding-bottom space-top space-bottom">
<?php
if(hypermarket_is_woocommerce_activated()):
if (hypermarket_is_woocommerce_activated()):
echo '<hr>';
echo wp_kses_post( hypermarket_do_shortcode( 'woocommerce_messages' ) );
echo wp_kses_post(hypermarket_do_shortcode('woocommerce_messages'));
endif;
if( apply_filters('hypermarket_homepage_page_title', true) ):
echo '<h3 class="text-center padding-top-2x">' . get_the_title() . '</h3>';
if (apply_filters('hypermarket_homepage_page_title', true)):
echo '<h3 class="text-center padding-top-2x space-bottom-none">' . get_the_title() . '</h3>';
endif;
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('row padding-top'); ?>>
<div id="post-<?php the_ID(); ?>" <?php post_class('row padding-top-2x'); ?>>
<div class="col-sm-12">
<?php
while (have_posts()):

0 comments on commit 364b1cd

Please sign in to comment.