HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/mobile/index11.php
<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="为什么这样,我该怎么办?" />
	<meta name="keywords" content="为什么,怎么办" />
	<meta name="author" content="dsxxlm.com" />
    <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">

    <title><?php bloginfo('name'); echo " - "; bloginfo('description');?></title>

    <!-- Bootstrap core CSS -->
    <link href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="<?php bloginfo('template_url'); ?>/css/offcanvas.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="<?php bloginfo('template_url'); ?>/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="<?php bloginfo('template_url'); ?>/js/html5shiv.min.js"></script>
      <script src="<?php bloginfo('template_url'); ?>/js/respond.min.js"></script>
    <![endif]-->
    
    <link href="<?php bloginfo('template_url'); ?>/style.css" rel="stylesheet">
    
  </head>

  <body>
    <div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><?php bloginfo('name'); ?></a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">首页</a></li>
            <li><a href="#about">公司新闻</a></li>
            <li><a href="#contact">技术相关</a></li>
          </ul>
        </div><!-- /.nav-collapse -->
      </div><!-- /.container -->
    </div><!-- /.navbar -->

    <div class="container">

      <div class="row row-offcanvas row-offcanvas-right">

        <div class="col-xs-12 col-sm-9">
          <p class="pull-right visible-xs">
            <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
          </p>
          <div class="jumbotron">
            <h1>Hello, world!</h1>
            <p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
          </div>
          <div class="row">
          




<?php $sticky = get_option( 'sticky_posts' ); 
				/* 对这些文章排序, 日期最新的在最上 */
					rsort( $sticky ); /* 获取1篇最新置顶文章 */
					$sticky = array_slice( $sticky, 0, 6 );
	$i = 0;
	foreach($sticky as $post_id):
		$post = get_post($post_id);
		setup_postdata($post);
		if($i == 0){
			$class = 'red';
		}elseif($i == 1){
			$class = 'bule';
		}elseif($i == 2){
			$class = 'bule';
		}elseif($i == 3){
			$class = 'hei';
		}elseif($i == 4){
			$class = 'hei';
		}elseif($i == 5){
			$class = 'hei';
		}
		?>
        
            <div class="col-6 col-sm-6 col-lg-4">
              <h2><?php the_title(); ?></h2>
              <p><?php the_content(); ?></p>
              <p>作者: <?php the_author(); ?>发布时间: <?php the_time(__('Y/m/d')) ?> </p>
              <p>分类: <?php the_category(',') ?>  <a href="<?php the_permalink(); ?>#pll-comment-here" target=_blank><?php comments_number('0个评论', '1个评论', '%个评论'); ?></a></p>
              <p>标签: <?php the_tags('<span>','</span> <span>','</span>'); ?></p>
              <p><a class="btn btn-default" href="<?php the_permalink() ?>" role="button">查看原文 &raquo;</a></p>
            </div>      
        
        
<?php $i++;endforeach; ?>
				<?php if (have_posts()) : 
						
						$args = array(	'ignore_sticky_posts' => 1,//忽略sticky_posts,不置顶,但是输出置顶文章
							'post__not_in' => $sticky,//排除置顶文章,不输出
							'paged' => $paged
						);
						query_posts( $args );
					while (have_posts()) : the_post(); ?>


            <div class="col-6 col-sm-6 col-lg-4">
              <h2><?php the_title(); ?></h2>
              <p><?php the_content(); ?></p>
              <p>作者: <?php the_author(); ?>发布时间: <?php the_time(__('Y/m/d')) ?> </p>
              <p>分类: <?php the_category(',') ?>  <a href="<?php the_permalink(); ?>#pll-comment-here" target=_blank><?php comments_number('0个评论', '1个评论', '%个评论'); ?></a></p>
              <p>标签: <?php the_tags('<span>','</span> <span>','</span>'); ?></p>
              <p><a class="btn btn-default" href="<?php the_permalink() ?>" role="button">查看原文 &raquo;</a></p>
            </div>  


       <?php endwhile; ?><?php endif;  wp_reset_query(); ?>          
          
          
          
          </div><!--/row-->
          
   <div class="clear"></div>
   <div class="pages"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>      
          
        </div><!--/span-->

        <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
          <div class="list-group">
            <a href="#" class="list-group-item active">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
            <a href="#" class="list-group-item">Link</a>
          </div>
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>Design by <a href="http://www.dsxxlm.com/">dsxxlm.com</a><br>&copy; 2014-6-8 <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></p>
        <p>备案信息:黔ICP备14002080号</p>
      </footer>

    </div><!--/.container-->



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="<?php bloginfo('template_url'); ?>/js/jquery.min.js"></script>
    <script src="<?php bloginfo('template_url'); ?>/js/bootstrap.min.js"></script>
    <script src="<?php bloginfo('template_url'); ?>/js/offcanvas.js"></script>
    
 
<img id="loading" style="display:none; position:absolute; top:0px; left:0px;" src="<?php bloginfo('template_directory'); ?>/images/loading.gif" /> 
 <script>
$(function(){
	$('.tao').css('cursor','pointer').click(function(){
		var left=$(this).position().left;
		var top=$(this).position().top;
		var t_id=$(this).attr('id');
		$("#loading").css('left',left).css('top',top).show();
		 $.post("taobao/class.php?m=get_url", {id: t_id},function(data){
			if(data)
				window.location.href=data;
   			});
	})	
	
})
</script> 
 
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F410dac53eab2369c3018c2b293072914' type='text/javascript'%3E%3C/script%3E"));
</script> 
    
    
 

  </body>
</html>