예제 #1
0
파일: sidebar.php 프로젝트: mnjit/aa-global
<?php

dt_widget_area('sidebar');
예제 #2
0
파일: single.php 프로젝트: mnjit/aa-global
        if (!post_password_required()) {
            ?>
 
           
				<div class="hr hr-wide gap-small"></div>

            <?php 
            get_template_part('single', 'dt_blog');
        } else {
            ?>
					<div class="hr hr-wide gap-small"></div>
					<?php 
            echo get_the_password_form();
            ?>
			<?php 
        }
        // password protection
    }
}
?>
           
        </div>

        <?php 
dt_widget_area('sidebar', null, 'sidebar_3');
?>
    
    </div>

<?php 
get_footer();
예제 #3
0
<?php

dt_widget_area('sidebar-right');
예제 #4
0
function dt_footer_widgetarea()
{
    global $post;
    if (is_attachment() || is_single() && get_post_type() == 'dt_video') {
        return '';
    }
    if (!empty($post) && is_single()) {
        $sidebar = '';
        switch ($post->post_type) {
            case 'post':
                $sidebar = 'sidebar_5';
                break;
            case 'dt_catalog':
                $sidebar = 'sidebar_6';
                break;
            case 'dt_portfolio':
                $sidebar = 'sidebar_7';
                break;
        }
        if ($sidebar) {
            dt_widget_area('footer', null, $sidebar);
            return;
        }
    }
    dt_widget_area('footer');
}
예제 #5
0
<?php

dt_widget_area('sidebar-left');