Exemplo n.º 1
0
tha_header_bottom();
get_template_part('masthead');
?>

<div class="clearfix"></div>
<!-- Slider placeholder -->
<?php 
tha_header_after();
?>
<div id="main" class="site-main">
<?php 
tha_content_top();
?>
<div class="clearfix"></div>
<?php 
if (get_theme_mod('featured_content_location') == 'fullwidth') {
    if (is_front_page() && ridizain_has_featured_posts()) {
        // Include the featured content template.
        get_template_part('featured-content');
    }
}
?>
<div id="main-content" class="main-content">

<?php 
if (get_theme_mod('featured_content_location') == 'default') {
    if (is_front_page() && ridizain_has_featured_posts()) {
        // Include the featured content template.
        get_template_part('featured-content');
    }
}
Exemplo n.º 2
0
function ridizain_general_css()
{
    if (get_theme_mod('ridizain_num_grid_columns')) {
        // Apply custom settings to appropriate element
        ?>
    <style>
	    @media screen and (min-width: 1008px) {
		    .grid .featured-content .hentry {
		        width: 24.999999975%;
	        }
	        .grid .featured-content .hentry:nth-child( 3n+1 ) {
		        clear: none;
	        }
	        .grid .featured-content .hentry:nth-child( 4n+1 ) {
		        clear: both;
	        }
	    }
	</style>
<?php 
    }
    if (get_theme_mod('featured_content_location') == 'fullwidth' && ridizain_has_featured_posts()) {
        // Apply custom settings to appropriate element
        ?>
    <style>@media screen and (min-width: 1008px){.featured-content{margin-top:0;padding-left:0px;z-index:3;}}</style>
<?php 
    }
    if (get_theme_mod('featured_content_boxed') != 0) {
        // Apply custom settings to appropriate element
        ?>
    <style>@media screen and (min-width: 1008px){.featured-content{padding-left:40px;padding-right:40px;}}</style>
<?php 
    }
    if (get_theme_mod('featured_content_location') == 'header' && ridizain_has_featured_posts()) {
        // Apply custom settings to appropriate element
        ?>
    <style>@media screen and (min-width: 1008px){.featured-content{margin-top:0;padding-left:0px;z-index:3;}}</style>
	<style>@media screen and (min-width: 1080px){.slider .featured-content { margin-bottom: 0px; }}}</style>
<?php 
    }
}