Skip to content

Commit

Permalink
更新微博,更新标题字数
Browse files Browse the repository at this point in the history
  • Loading branch information
onionwyl committed Aug 9, 2016
1 parent e4e6602 commit 506ddf7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
<ul class="slideshow" id="slidesImgs" >
<!-- 焦点图数据循环开始 -->
<li><a href="<?php echo $pictures['top_left_url1']; ?>" target="_blank">
<img src="<?php echo $pictures['top_left_picture1']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo $pictures["top_left_content1"]; ?></span></li>
<img src="<?php echo $pictures['top_left_picture1']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo mb_strimwidth($pictures["top_left_content1"], 0, 28,"","UTF-8"); ?></span></li>
<li><a href="<?php echo $pictures['top_left_url2']; ?>" target="_blank">
<img src="<?php echo $pictures['top_left_picture2']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo $pictures["top_left_content2"]; ?></span></li>
<img src="<?php echo $pictures['top_left_picture2']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo mb_strimwidth($pictures["top_left_content2"], 0, 28,"","UTF-8"); ?></span></li>
<li><a href="<?php echo $pictures['top_left_url3']; ?>" target="_blank">
<img src="<?php echo $pictures['top_left_picture3']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo $pictures["top_left_content3"]; ?></span></li>
<img src="<?php echo $pictures['top_left_picture3']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo mb_strimwidth($pictures["top_left_content3"], 0, 28,"","UTF-8"); ?></span></li>
<li><a href="<?php echo $pictures['top_left_url4']; ?>" target="_blank">
<img src="<?php echo $pictures['top_left_picture4']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo $pictures["top_left_content4"]; ?></span></li>
<img src="<?php echo $pictures['top_left_picture4']; ?>" width="300" height="200" alt="" /></a><span class="title"><?php echo mb_strimwidth($pictures["top_left_content4"], 0, 28,"","UTF-8"); ?></span></li>
<!-- 焦点图数据循环结束 -->
</ul>
</div>
Expand Down Expand Up @@ -110,7 +110,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
<!-- 选项卡1文字结束 -->
Expand Down Expand Up @@ -151,7 +151,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
<!-- 选项卡2文字结束 -->
Expand All @@ -169,7 +169,7 @@
</tr>
</table>
<div style="width: 300px;height: 190px">
<iframe width="300px" height="160px" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=190&fansRow=2&ptype=1&speed=0&skin=5&isTitle=0&noborder=1&isWeibo=1&isFans=0&uid=5293007529&verifier=1f9f3b9c&dpc=1"></iframe>
<iframe width="300" height="210" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=300&height=210&fansRow=2&ptype=1&speed=0&skin=1&isTitle=0&noborder=1&isWeibo=1&isFans=0&uid=5293007529&verifier=1f9f3b9c&colors=D2D2D2,ffffff,666666,0082cb,ecfbfd&dpc=1"></iframe>
</div>

<!-- 微博类选项结束 -->
Expand Down Expand Up @@ -213,7 +213,7 @@
$query = new WP_Query("posts_per_page=4&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
<!-- 头题文字循环结束 -->
Expand Down Expand Up @@ -245,7 +245,7 @@
$query = new WP_Query("posts_per_page=6&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
</tr>
Expand Down Expand Up @@ -285,7 +285,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
</td>
Expand All @@ -296,7 +296,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10" style="padding-right:9px; "><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10" style="padding-right:9px; "><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul></td>
</tr>
Expand Down Expand Up @@ -333,7 +333,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul></td>
<td width="325" style="padding-left:10px; ">
Expand All @@ -344,7 +344,7 @@
$query = new WP_Query("posts_per_page=5&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10" style="padding-right:9px; "><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10" style="padding-right:9px; "><?php the_time("m-d"); ?></font></li>
<?php endwhile; wp_reset_query(); ?>
</ul></td>
</tr>
Expand Down Expand Up @@ -421,7 +421,7 @@
$query = new WP_Query("posts_per_page=6&category_name=".$cat_name);
while($query->have_posts()): $query->the_post();
?>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>
<li class="li"><a href="<?php the_permalink(); ?>" class="black14"><?php echo mb_strimwidth(get_the_title(), 0, 39,"...","UTF-8"); ?></a><font class="grey10"><?php the_time("m-d"); ?></font></li>

<?php endwhile; wp_reset_query(); ?>
</ul>
Expand Down

0 comments on commit 506ddf7

Please sign in to comment.