Beispiel #1
0
function suevafree_template($id)
{
    $template = array("full" => "span12", "2column" => "span6", "3column" => "span4", "left-sidebar" => "span8", "right-sidebar" => "span8");
    $span = $template["right-sidebar"];
    $sidebar = "right-sidebar";
    if (suevafree_setting('suevafree_home') && is_home()) {
        $span = $template[suevafree_setting('suevafree_home')];
        $sidebar = suevafree_setting('suevafree_home');
    } else {
        if (suevafree_setting('suevafree_category_layout') && suevafree_get_archive_title()) {
            $span = $template[suevafree_setting('suevafree_category_layout')];
            $sidebar = suevafree_setting('suevafree_category_layout');
        } else {
            if (suevafree_postmeta('suevafree_template') && (is_page() || is_single())) {
                $span = $template[suevafree_postmeta('suevafree_template')];
                $sidebar = suevafree_postmeta('suevafree_template');
            }
        }
    }
    return ${$id};
}
Beispiel #2
0
        	<div class="row"> 
        
    <?php 
}
if (have_posts()) {
    ?>
		
        <div <?php 
    post_class();
    ?>
 >

			<article class="article category">

				<p> <?php 
    echo suevafree_get_archive_title();
    ?>
 </strong> </p>
				
			</article>

    	</div>
		
		<?php 
    while (have_posts()) {
        the_post();
        ?>

            <div <?php 
        post_class();
        ?>