$content = str_replace( ']]>', ']]>', $content ); if ( is_home() && ! $postId ) $content = null; if ( $content ) { echo '<div class="article-content">' . $content . '</div>'; do_action( 'wm_after_post' ); } } ?> <!-- BLOG ENTRIES --> <?php //Blog posts list $loopType = ( is_page_template( 'home.php' ) && ! is_home() ) ? ( 'blogpage' ) : ( 'index' ); get_template_part( 'inc/loop/loop', $loopType ); ?> </section> <!-- /main --> <?php if ( 'none' != $sidebarLayout ) { $class = 'sidebar clearfix sidebar-' . $sidebarLayout . $sidebarPanes[0]; wm_sidebar( $overrideSidebar, $class ); } ?> </div> <!-- /wrap-inner --> <?php get_footer(); ?>
get_header(); ?> <section class="countdown-timer-wrap"> <div class="wrap-inner"> <?php if ( wm_meta_option( 'construction-date' ) ) echo do_shortcode( '[countdown time="' . ( wm_meta_option( 'construction-date' ) . ' ' . wm_meta_option( 'construction-time' ) ) . '" /]' ); ?> <?php if ( wm_meta_option( 'construction-timer-widgets' ) && is_active_sidebar( wm_meta_option( 'construction-timer-widgets' ) ) ) { echo '<div class="timer-widgets-wrap clearfix">'; wm_sidebar( wm_meta_option( 'construction-timer-widgets' ), 'widgets columns twelve pane', 5 ); //restricted to 5 widgets echo '</div>'; } ?> </div> <!-- /wrap-inner --> </section> <div class="wrap-inner"> <article class="main twelve pane"> <?php do_action( 'wm_start_main_content' ); ?> <?php get_template_part( 'inc/loop/loop', 'singular' ); ?>
if ( $aboveFooter && is_active_sidebar( $aboveFooter ) && ! wm_meta_option( 'no-above-footer-widgets', $pageId ) ) { echo '<section id="above-footer" class="wrap clearfix above-footer-widgets-wrap' . wm_element_width( 'abovefooter' ) . '"><div class="wrap-inner">'; wm_sidebar( $aboveFooter, 'widgets columns twelve pane', 5 ); //no restriction echo '</div></section>'; } ?> <?php do_action( 'wm_before_footer' ); ?> <footer id="footer" class="wrap clearfix footer<?php echo wm_element_width( 'footer' ); ?>"> <!-- FOOTER --> <?php if ( $footerRow && is_active_sidebar( $footerRow ) ) { echo '<section class="footer-widgets-wrap first"><div class="wrap-inner">'; wm_sidebar( $footerRow, 'widgets columns twelve pane', 5 ); //restricted to 5 widgets echo '</div></section>'; } ?> <section class="bottom-wrap clearfix"><div class="wrap-inner"> <div class="twelve pane"> <?php if ( is_page_template( 'page-template/landing.php' ) ) $menuLocationName = 'menu-landing-page-' . get_the_ID(); else $menuLocationName = 'footer-menu'; if ( ! is_page_template( 'page-template/construction.php' ) ) wp_nav_menu( array( 'theme_location' => $menuLocationName,
$sidebarPanes = array( '', ' twelve pane' ); } if ( is_archive() && wm_option( 'blog-archive-no-sidebar' ) ) $sidebarPanes[1] = ' twelve pane'; ?> <div class="wrap-inner"> <section class="main<?php echo $sidebarPanes[1]; ?>"> <?php do_action( 'wm_start_main_content' ); ?> <?php $catDesc = category_description(); if ( ! empty( $catDesc ) ) echo '<div class="cat-desc">' . apply_filters( 'the_content', category_description() ) . '</div>'; ?> <?php get_template_part( 'inc/loop/loop', 'index' ); ?> </section> <!-- /main --> <?php if ( ' twelve pane' !== $sidebarPanes[1] ) { $class = 'sidebar clearfix sidebar-' . $sidebarLayout . $sidebarPanes[0]; wm_sidebar( WM_SIDEBAR_FALLBACK, $class ); } ?> </div> <!-- /wrap-inner --> <?php get_footer(); ?>
function wm_shortcode_widget_area( $atts, $content = null ) { extract( shortcode_atts( array( 'area' => '', 'layout' => 'horizontal', ), $atts ) ); $areas = array_flip( wm_widget_areas() ); $layouts = array( 'horizontal' => 'columns', 'vertical' => 'vertical', 'sidebar-left' => 'sidebar sidebar-left', 'sidebar-right' => 'sidebar sidebar-right' ); //validation $area = ( in_array( trim( $area ), $areas ) && trim( $area ) ) ? ( trim( $area ) ) : ( null ); $class = ( in_array( trim( $layout ), array_flip( $layouts ) ) ) ? ( $layouts[trim( $layout )] ) : ( 'columns' ); $restrictedCount = ( 'horizontal' != $class ) ? ( null ) : ( 5 ); //wm_sidebar($defaultSidebar, $class, $restrictCount, $print) if ( $area ) return wm_sidebar( $area, $class, $restrictedCount, false ); }
$sidebarPanes[1] .= ' sidebar-left'; } else { $sidebarPanes = array( '', ' twelve pane' ); } ?> <article class="main<?php echo $sidebarPanes[1]; ?>"> <?php do_action( 'wm_start_main_content' ); ?> <?php get_template_part( 'inc/loop/loop', 'portfolio' ); ?> </article> <!-- /main --> <?php if ( 'none' != $sidebarLayout ) { $class = 'sidebar clearfix sidebar-' . $sidebarLayout . $sidebarPanes[0]; wm_sidebar( $overrideSidebar, $class ); } ?> <?php } else { echo do_shortcode( WM_MSG_ACCESS_DENIED ); wm_sidebar( 'access-denied', 'widgets columns twelve pane', 5 ); } // /check whether current user can display the page ?> </div> <!-- /wrap-inner --> <?php get_footer(); ?>
) { $imageURL = wm_meta_option( 'background-bg-img-url', $postId ); $imageURL = ( ! is_array( $imageURL ) ) ? ( esc_url( $imageURL ) ) : ( esc_url( $imageURL['url'] ) ); $imagePosition = ( 'fixed' === wm_meta_option( 'background-bg-img-attachment', $postId ) ) ? ( 'fixed' ) : ( 'absolute' ); echo '<img src="' . $imageURL . '" alt="" style="position: ' . $imagePosition . '; width: 100%; left: 0; top: 0; z-index: -1;" />'; } //TOP BAR if ( $isTopBar ) { $topbarClasses = ''; if ( wm_option( 'header-top-bar-fixed' ) ) $topbarClasses = ' fixed'; echo "\r\n\r\n" . '<div id="top-bar" class="clearfix top-bar' . $topbarClasses . '"><div class="wrap' . wm_element_width( 'toppanel' ) . '"><div class="wrap-inner"><div class="twelve pane clearfix">' . "\r\n" . '<!-- TOP BAR -->' . "\r\n" . '<a class="invisible" href="#nav-main">' . __( 'Go to main navigation', 'lespaul_domain' ) . '</a>' . "\r\n"; wm_sidebar( 'top-bar-widgets', 'widgets', 2 ); //restricted to 2 widgets echo '<!-- /top-bar --></div></div></div></div>' . "\r\n\r\n\r\n"; } //header classes $headerClasses = ''; $headerClasses .= ( wm_css_background( 'design-header-' ) ) ? ( ' set-bg' ) : ( '' ); $headerClasses .= wm_option( 'header-navigation-position' ); ?> <header id="header" class="clearfix header<?php echo $headerClasses; ?>"><div class="wrap<?php wm_element_width( 'header', true ); ?>"><?php //Header has to be done this way for option of fixed header ?> <?php if ( ! is_page_template( 'page-template/construction.php' ) && ' nav-top' === wm_option( 'header-navigation-position' ) )