Ejemplo n.º 1
0
Archivo: home.php Proyecto: sylxjtu/cy
<?php

get_header();
?>

	<div id="wrap" class="container clearfix">
	
	<?php 
// Get Theme Options from Database
$theme_options = glades_theme_options();
// Display Featured Posts on homepage
if (is_front_page() && glades_has_featured_content()) {
    // Include the featured content template.
    get_template_part('featured-content');
}
?>
	
		<section id="content" class="primary" role="main">
		 
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('content', $theme_options['posts_length']);
    }
    glades_display_pagination();
}
?>
			
		</section>
		
Ejemplo n.º 2
0
<?php

/*
Template Name: Magazine Homepage
*/
get_header();
?>
	
	<div id="wrap" class="container clearfix template-magazine">
	
		<?php 
// Get Theme Options from Database
$theme_options = glades_theme_options();
// Display Featured Posts on homepage
if (glades_has_featured_content()) {
    // Include the featured content template.
    get_template_part('featured-content');
}
?>
	
		<section id="content" class="primary" role="main">
		
		<?php 
// Display Magazine Homepage Widgets
if (is_active_sidebar('magazine-homepage')) {
    ?>

			<div id="magazine-homepage-widgets" class="clearfix">

				<?php 
    dynamic_sidebar('magazine-homepage');