Example #1
0
function templ_content_css($class = '')
{
    if (templ_is_layout('3_col_fix')) {
        $class .= 'content content_3col column_spacer left';
    } else {
        if (templ_is_layout('3_col_left')) {
            $class .= 'content content_3col_right right';
        } else {
            if (templ_is_layout('3_col_right')) {
                $class .= 'content content_3col_left left';
            } else {
                if (templ_is_layout('full_width')) {
                    $class .= 'content content_full';
                } else {
                    if (templ_is_layout('2_col_right')) {
                        $class .= 'content left';
                    } else {
                        $class .= 'content right';
                    }
                }
            }
        }
    }
    $class = apply_filters('templ_content_css_filter', $class);
    echo $class;
}
Example #2
0
        templ_sidebar_2col_merge();
        templ_sidebar1('sidebar_3col_l_m left');
        templ_sidebar2('sidebar_3col_r_m right');
        ?>
	</div>
<?php 
    } else {
        if (templ_is_layout('3_col_right')) {
            ?>
	<div class="sidebar sidebar_3col_merge_r right">
<?php 
            templ_sidebar_2col_merge();
            templ_sidebar1('sidebar_3col_l_m left');
            templ_sidebar2('sidebar_3col_r_m right');
            ?>
	</div>
<?php 
        } else {
            if (templ_is_layout('full_width')) {
            } else {
                if (templ_is_layout('2_col_right')) {
                    templ_sidebar1('sidebar right');
                } else {
                    templ_sidebar1('sidebar left');
                }
            }
        }
    }
}
templ_after_sidebar();
// after sidebar hooks