示例#1
0
"><?php 
        _e('+ 更多', 'tinection');
        ?>
</a>
			</h2>
		<?php 
        get_template_part('includes/' . $tp, esc_attr($catid));
        ?>
	
		</div>
	</section>
	<?php 
        if ($i == 1) {
            ?>
		<?php 
            if (!tin_is_mobile()) {
                ?>
			<div id="loopad" class="container banner">
			<?php 
                echo ot_get_option('cmswithsidebar_loop_ad');
                ?>
			</div>
		<?php 
            } else {
                ?>
			<div id="loopad" class="mobile-ad">
			<?php 
                echo ot_get_option('singlead1_mobile');
                ?>
			</div>
		<?php 
示例#2
0
文件: footer.php 项目: yszar/linuxwp
 * Main Template of Tinection WordPress Theme
 *
 * @package   Tinection
 * @version   1.1.7
 * @date      2015.3.6
 * @author    Zhiyan <*****@*****.**>
 * @site      Zhiyanblog <www.zhiyanblog.com>
 * @copyright Copyright (c) 2014-2015, Zhiyan
 * @license   http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link      http://www.zhiyanblog.com/tinection.html
**/
?>
<!-- Footer -->
<!-- Footer Wrap -->
<?php 
if (!tin_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
function the_layout()
{
    $layout = 'blog';
    if (isset($_GET['layout'])) {
        $layout = $_GET['layout'];
    } elseif (ot_get_option('layout')) {
        $layout = ot_get_option('layout');
    } else {
        $layout = 'blog';
    }
    if (tin_is_mobile()) {
        $layout = 'blog';
    }
    return $layout;
}
示例#4
0
			<?php 
    echo ot_get_option('singlebottomad');
    ?>
		</div>
		<?php 
}
?>
		</div>
		<!-- /.Content -->
		</div>
		<!-- Sidebar -->
		<script type="text/javascript">
			$('.site_loading').animate({'width':'55%'},50);  //第二个节点
		</script>
		<?php 
if (tin_is_mobile()) {
    ?>
		<div id="sidebar" class="clr"></div>
		<?php 
} else {
    ?>
		<div id="sidebar" class="clr">
		<?php 
    dynamic_sidebar(ot_get_option('s1-download', 'primary'));
    ?>
			<div class="floatwidget-container">
			</div>
		</div>
		<?php 
}
?>