Пример #1
0
<?php

global $asteria;
$blocks = $asteria['home_sort_id'];
if (!empty($blocks['blocks'])) {
    if (asteria_is_mobile() && !empty($asteria['hide_mob_blocks'])) {
    } else {
        ?>
<!--Blocks-->
<div class="midrow">

 <div class="midrow_wrap">       
        <div class="midrow_blocks">   
        <div class="midrow_blocks_wrap">
        
        <!--BLOCK1 START-->
		<?php 
        if (!empty($asteria['block1_text_id']) || !empty($asteria['block1_textarea_id'])) {
            ?>
        
		<?php 
            if (!empty($asteria['block1_link_id'])) {
                ?>
 <a href="<?php 
                echo $asteria['block1_link_id'];
                ?>
"><?php 
            }
            ?>
        <div class="midrow_block">
            <div class="mid_block_content">
Пример #2
0
if (!empty($asteria['totop_id'])) {
    ?>
<!--To Top Button-->
<a class="to_top"><i class="fa-angle-up fa-2x"></i></a>
<?php 
}
?>
<!--To Top Button END-->


<!--Footer Start-->
<div class="fixed_site">
	<div class="fixed_wrap footefixed">

<?php 
if (asteria_is_mobile() && !empty($asteria['hide_mob_footwdgt'])) {
} else {
    ?>
<div id="footer">
    <div class="center">
        <!--Footer Widgets START-->
        <div class="widgets"><ul><?php 
    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Footer Widgets', 'asteria'))) {
    }
    ?>
</ul></div>
        <!--Footer Widgets END-->
    </div>
</div>
<?php 
}
Пример #3
0
<?php

global $asteria;
?>

<?php 
if (asteria_is_mobile() && !empty($asteria['hide_mob_rightsdbr'])) {
    ?>
	<?php 
} else {
    ?>
<div id="sidebar">
    <div class="widgets">          
            <?php 
    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Right Sidebar', 'asteria'))) {
        ?>
 
            <?php 
    }
    ?>
            </div>
    </div>
<?php 
}
Пример #4
0
<?php

global $asteria;
?>

<?php 
$tabs = $asteria['home_sort_id'];
if (!empty($tabs['tabs'])) {
    ?>
<!--Home Tabs START-->
<?php 
    if (asteria_is_mobile() && !empty($asteria['hide_mob_tabs'])) {
    } else {
        ?>
 <?php 
        if (!empty($asteria['tab_blockid'])) {
            ?>
   
    <div class="centerfix">
    <div class="home_tabs">
        <div class="home_tabs_wrap">
            <div class="center">
            
            <div id="tab-bottom-container" class='tab-container'>
                <ul class='etabs'>
                    <?php 
            foreach ((array) $asteria['tab_blockid'] as $arr) {
                ?>
                    <?php 
                $tabid = strtolower($arr['tab_text_field_id']);
                $tabid = str_replace(" ", "", $tabid);
Пример #5
0
                    get_template_part('frontpage/content', 'welcome-text');
                    ?>
</div>
    
    <?php 
                    //Front Page Posts
                    break;
                case 'posts':
                    ?>
    <div class="home_blocks"><?php 
                    $homeposts = $asteria['home_sort_id'];
                    if (!empty($homeposts['posts'])) {
                        ?>
        <!--Latest Posts-->
            <?php 
                        if (asteria_is_mobile() && !empty($asteria['hide_mob_frontposts'])) {
                            ?>
            <?php 
                        } else {
                            ?>
            <?php 
                            get_template_part('layout' . $asteria['front_layout_id'] . '');
                            ?>
            <?php 
                        }
                        ?>
        <!--Latest Posts END-->
        <?php 
                    }
                    ?>
</div>
Пример #6
0
<?php

global $asteria;
$welcome = $asteria['home_sort_id'];
if (!empty($welcome['welcome-text'])) {
    ?>
<!--Text Block START-->
	<?php 
    if (asteria_is_mobile() && !empty($asteria['hide_mob_welcm'])) {
        ?>
    <?php 
    } else {
        ?>
    <div class="text_block">
    <div class="text_block_wrap"><div class="center"><?php 
        echo do_shortcode($asteria['welcm_textarea_id']);
        ?>
</div></div>
    </div>
    <?php 
    }
    ?>
<!--Text Block END-->
<?php 
}