Example #1
0
function pl_fixed_top_area()
{
    ?>
	<div id="fixed-top" class="pl-fixed-top is-not-fixed" data-region="fixed-top">
		
		<div class="pl-fixed-region pl-region" data-region="fixed">
			<div class="outline pl-area-container">
				<?php 
    pagelines_template_area('pagelines_fixed_top', 'fixed_top');
    // Hook
    ?>
				<?php 
    pagelines_template_area('pagelines_fixed', 'fixed');
    // Hook
    ?>
				
			</div>
		</div>
		
	</div>
	<div class="fixed-top-pusher"></div>
	<script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
	
	<?php 
}
Example #2
0
    /**
     * Section template.
     */
    function section_template()
    {
        global $pagelines_layout;
        ?>
		<div id="pagelines_content" class="<?php 
        echo $pagelines_layout->layout_mode;
        ?>
 fix">

			<?php 
        pagelines_register_hook('pagelines_content_before_columns', 'maincontent');
        // Hook
        ?>
			<div id="column-wrap" class="fix">

				<?php 
        pagelines_register_hook('pagelines_content_before_maincolumn', 'maincontent');
        // Hook
        ?>
				<div id="column-main" class="mcolumn fix">
					<div class="mcolumn-pad" >
						<?php 
        pagelines_template_area('pagelines_main', 'main');
        ?>
					</div>
				</div>

				<?php 
        if ($pagelines_layout->layout_mode == 'two-sidebar-center') {
            ?>
					<?php 
            pagelines_register_hook('pagelines_content_before_sidebar1', 'maincontent');
            // Hook
            ?>
					<div id="sidebar1" class="scolumn fix">
						<div class="scolumn-pad">
							<?php 
            pagelines_template_area('pagelines_sidebar1', 'sidebar1');
            ?>
						</div>
					</div>
					<?php 
            pagelines_register_hook('pagelines_content_after_sidebar1', 'maincontent');
            // Hook
            ?>
				<?php 
        }
        ?>
			</div>
			<?php 
        get_sidebar();
        ?>
		</div>
<?php 
    }
Example #3
0
 /**
  * DMS Hack for compatibility
  * DMS uses a output buffer for integrations, they are nested. Look at same trigger function
  * If it is active then actually grab the other buffer as the output, then start a new one that is blank to match
  * the ob_get_clean applied in DMS footer.
  */
 function dms_integration_output_buffer_cascade_issue($content)
 {
     if (function_exists('do_special_content_wrap') && do_special_content_wrap()) {
         global $integration_out;
         $integration_out = $content;
         ob_start();
         pagelines_template_area('pagelines_template', 'templates');
         $content = ob_get_clean();
     }
     return $content;
 }
Example #4
0
echo pagelines_layout_mode();
?>
"> <!-- #site // Wraps #header, #page-main, #footer - closed in footer -->
<?php 
pagelines_register_hook('pagelines_before_page');
// Hook
?>
	<div id="page"> <!-- #page // Wraps #header, #page-main - closed in footer -->
		<div id="page-canvas">
			<?php 
pagelines_register_hook('pagelines_before_header');
?>
			<div id="header" class="container-group fix">
				<div class="outline">
					<?php 
pagelines_template_area('pagelines_header', 'header');
// Hook
?>
				</div>
			</div>
			<?php 
pagelines_register_hook('pagelines_before_main');
// Hook
?>
			<div id="page-main" class="container-group fix"> <!-- #page-main // closed in footer -->
				<div id="dynamic-content" class="outline fix">
					<?php 
if (pagelines_is_buddypress_page()) {
    ?>
						<div id="buddypress-page" class="fix">
							<div class="content fix">
Example #5
0
						<?php 
            pagelines_template_area('pagelines_sidebar1', 'sidebar1');
            // Hook
            ?>
					</div>
				</div>
			<?php 
        }
        if ($pagelines_layout->num_columns == 3) {
            ?>
				<div id="sidebar2" class="scolumn">
					<div class="scolumn-pad">
						<?php 
            pagelines_template_area('pagelines_sidebar2', 'sidebar2');
            // Hook
            ?>
					</div>
				</div>
	<?php 
        }
        if (ploption('sidebar_wrap_widgets') == 'bottom') {
            pagelines_template_area('pagelines_sidebar_wrap', 'sidebar_wrap');
            // Hook
        }
        ?>
		</div>
	<?php 
    }
    pagelines_register_hook('pagelines_after_sidebar_wrap');
    // Hook
}
/**
 * Includes the loading template that sets up all PageLines templates
 * 
 * @since 1.1.0
 */
function setup_pagelines_template()
{
    get_header();
    pagelines_template_area('pagelines_template', 'templates');
    get_footer();
}
Example #7
0
    // Hook
    ?>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</div>

<?php 
    pagelines_register_hook('pagelines_before_footer');
    // Hook
    ?>
	<footer id="footer" class="container-group">
		<div class="outline fix">
		<?php 
    pagelines_template_area('pagelines_footer', 'footer');
    // Hook
    pagelines_register_hook('pagelines_after_footer');
    // Hook
    pagelines_cred();
    ?>
		</div>
	</footer>
</div>
<?php 
}
print_pagelines_option('footerscripts');
// Load footer scripts option
wp_footer();
// Hook (WordPress)
?>
/**
 * Setup PageLines Template
 *
 * Includes the loading template that sets up all PageLines templates
 *
 * @since   1.1.0
 *
 * @link    http://www.pagelines.com/wiki/Setup_pagelines_template
 *
 * @uses    pagelines_template_area
 */
function setup_pagelines_template()
{
    // if not true, then a non pagelines template is being rendered (wrap with .content)
    $GLOBALS['pagelines_render'] = true;
    get_header();
    if (!has_action('override_pagelines_body_output')) {
        pagelines_template_area('pagelines_template', 'templates');
    }
    get_footer();
}
<?php global $pagelines_layout;?>
<div id="pagelines_content" class="<?php echo $pagelines_layout->layout_mode;?> fix">
	
	<?php pagelines_register_hook( 'pagelines_content_before_columns', 'maincontent' ); // Hook ?>
	<div id="column-wrap" class="fix">
		
		<?php pagelines_register_hook( 'pagelines_content_before_maincolumn', 'maincontent' ); // Hook ?>
		<div id="column-main" class="mcolumn fix">
			<div class="mcolumn-pad" >
				<?php pagelines_template_area('pagelines_main', 'main'); ?>
			</div>
		</div>
		
		<?php if($pagelines_layout->layout_mode == 'two-sidebar-center'):?>
			<?php pagelines_register_hook( 'pagelines_content_before_sidebar1', 'maincontent' ); // Hook ?>
			<div id="sidebar1" class="scolumn fix">
				<div class="scolumn-pad">
					<?php pagelines_template_area('pagelines_sidebar1', 'sidebar1'); ?>
				</div>
			</div>
			<?php pagelines_register_hook( 'pagelines_content_after_sidebar1', 'maincontent' ); // Hook ?>
		<?php endif;?>
		
	</div>	
	
	<?php get_sidebar(); ?>

</div>
Example #10
0
function pl_region_fixed()
{
    // allow users to disable
    if (pl_setting('region_disable_fixed')) {
        return;
    }
    ?>
	<div id="fixed-top" class="pl-fixed-top is-not-fixed" data-region="fixed-top">

		<div class="pl-fixed-region pl-region" data-region="fixed">
			<div class="outline pl-area-container">
				<?php 
    pagelines_template_area('pagelines_fixed_top', 'fixed_top');
    // Hook
    ?>
				<?php 
    pagelines_template_area('pagelines_fixed', 'fixed');
    // Hook
    ?>

			</div>
		</div>

	</div>
	<div class="fixed-top-pusher"></div>
	<script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>

	<?php 
}
Example #11
0
/**
 * Setup PageLines Template
 *
 * Includes the loading template that sets up all PageLines templates
 *
 */
function setup_pagelines_template()
{
    // if not true, then a non pagelines template is being rendered (wrap with .content)
    $GLOBALS['pagelines_render'] = true;
    if (locate_template(array('header.php'))) {
        // yep, header.php is in main templates/child theme.
        get_header();
    } else {
        // nope, load the content
        do_action('get_header');
        include_once trailingslashit(pl_get_template_directory()) . '/header.php';
    }
    if (!has_action('override_pagelines_body_output')) {
        pagelines_template_area('pagelines_template', 'templates');
    }
    if (locate_template(array('footer.php'))) {
        // yep, footer.php is in main templates/child theme.
        get_footer();
    } else {
        // nope, we could be in a child theme here without a footer.php?
        do_action('get_footer');
        load_template(trailingslashit(pl_get_template_directory()) . '/footer.php');
    }
}
Example #12
0
 function get_integration_output()
 {
     global $integration_out;
     $integration_out = ob_get_clean();
     pagelines_template_area('pagelines_template', 'templates');
 }
<head>
<?php 
		
		pagelines_register_hook('pagelines_head'); // Hook 
		
		wp_head(); // Hook (WordPress) 

?></head>
<body <?php body_class( pagelines_body_classes() ); ?>>
<?php 

	print_pagelines_option('asynch_analytics');  // Recommended Spot For Asynchronous Google Analytics
	pagelines_register_hook('pagelines_before_site'); // Hook 

?><div id="site" class="<?php echo pagelines_layout_mode();?>"> <!-- #site // Wraps #header, #page-main, #footer - closed in footer -->
<?php pagelines_register_hook('pagelines_before_page'); // Hook ?>
	<div id="page"> <!-- #page // Wraps #header, #page-main - closed in footer -->
		<div id="page-canvas">
			<?php pagelines_register_hook('pagelines_before_header');?>
			<div id="header" class="container-group fix">
				<div class="outline">
					<?php pagelines_template_area('pagelines_header', 'header'); // Hook ?>
				</div>
			</div>
			<?php pagelines_register_hook('pagelines_before_main'); // Hook ?>
			<div id="page-main" class="container-group fix"> <!-- #page-main // closed in footer -->
				<div id="dynamic-content" class="outline fix">
					<?php if(pagelines_is_buddypress_page()):?>
						<div id="buddypress-page" class="fix">
							<div class="content fix">
					<?php endif;?>