/**
 * 
 * 获取首页布局
 */
function fun_get_layout()
{
    $layout = 'blog';
    if (ot_get_option('opt_layout')) {
        $layout = ot_get_option('opt_layout');
    }
    if (fun_is_mobile()) {
        $layout = 'blog';
    }
    return $layout;
}
示例#2
0
/***************************************

	Theme Name: 	Change
	Theme URI: 		http://www.xiapistudio.com/change
	Description: 	Chage主题,WordPress多模板主题
	Version: 		1.0.1
	Author: 		虾皮工作室
	Author URI: 	http://www.xiapistudio.com/
	License:     	GPLv3
	
***************************************/
?>
<!-- Footer -->
<!-- Footer Wrap -->
<?php 
if (!fun_is_mobile() && (int) ot_get_option('footer-widgets') > 0) {
    ?>
<div id="footer-wrap">
	<div id="footer" class="layout-wrap">
		<!-- Footer Widgets -->
		<div id="footer-widgets">
			<?php 
    $total = 3;
    if (ot_get_option('footer-widgets') != '') {
        $total = ot_get_option('footer-widgets');
        if ($total == 1) {
            $class = 'footer-widgets-one-full';
        }
        if ($total == 2) {
            $class = 'footer-widgets-one-half';
        }
示例#3
0
	Theme Name: 	Change
	Theme URI: 		http://www.xiapistudio.com/change
	Description: 	Chage主题,WordPress多模板主题
	Version: 		1.0.1
	Author: 		虾皮工作室
	Author URI: 	http://www.xiapistudio.com/
	License:     	GPLv3
	
***************************************/
?>
<script type="text/javascript">
	$('.site_loading').animate({'width':'55%'},50);  //第二个节点
</script>
<?php 
if (fun_is_mobile()) {
    ?>
<div id="sidebar" class="clr"></div>
<?php 
} else {
    $sidebar = fun_sidebar_primary();
    ?>
<div id="sidebar" class="clr">
<?php 
    dynamic_sidebar($sidebar);
    ?>
<div class="floatwidget-container">
</div>
</div>
<?php 
}
示例#4
0
			<div class="navigation-right">
				<span><?php 
    _e('下一篇', 'xiapistudio');
    ?>
</span>
				<?php 
    echo "<a>&nbsp;</a>";
    next_post_link('%link');
    ?>
			</div>
		</div>
		<!-- /.Prev or Next Article -->
		
		<!-- Comments ad1 -->
		<?php 
    if (!fun_is_mobile()) {
        ?>
			<div id="cmnt-banner1" class="banner">
			<?php 
        echo ot_get_option('cmntad1');
        ?>
			</div>
		<?php 
    } else {
        ?>
			<div id="loopad" class="mobile-ad">
			<?php 
        echo ot_get_option('singlead1_mobile');
        ?>
			</div>
		<?php