Example #1
0
			<?php 
    if (is_page_template('page-templates/home.php')) {
        ?>
				<?php 
        templatemela_get_widget('home-banner');
        ?>
			<?php 
    }
    ?>
	

		</div>
	</div>
	<?php 
}
$tm_page_layout = tm_page_layout();
if (isset($tm_page_layout) && !empty($tm_page_layout)) {
    $tm_page_layout = $tm_page_layout;
} else {
    $tm_page_layout = '';
}
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
    if (is_shop() || is_product_category() || is_product_tag()) {
        $tm_page_layout = 'wide-page';
    }
}
if (is_page_template('page-templates/home.php') || $tm_page_layout == 'wide-page') {
    ?>
		<div class="main-content-inner-full">
			
	<?php 
Example #2
-1
 * 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 WordPress
 * @subpackage TemplateMela
 * @since TemplateMela 1.0
 */
get_header();
?>

<div id="main-content" class="main-content <?php 
echo esc_attr(tm_sidebar_position());
?>
 <?php 
echo esc_attr(tm_page_layout());
?>
">

  <?php 
if (is_front_page() && templatemela_has_featured_posts()) {
    // Include the featured content template.
    get_template_part('featured-content');
}
?>
  <div id="primary" class="content-area">
  <?php 
global $wp_query;
$id = $wp_query->get_queried_object_id();
$single_page = is_single();
if (!empty($id) && isset($id)) {