PageRenderTime 44ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress/wp-content/theme/isd/home.php

http://ooxx.googlecode.com/
PHP | 281 lines | 277 code | 2 blank | 2 comment | 19 complexity | 90ed6d8ae4b20df23c664cf419445ff8 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php get_header() ?>
  2. <?php include( TEMPLATEPATH . '/menu.php' ); ?>
  3. <!--=S ??????=-->
  4. <div id="wrapper" class="bg_wf">
  5. <div class="inner">
  6. <div class="main">
  7. <!--==S ??????==-->
  8. <section>
  9. <!--===S ???===-->
  10. <div class="img_slides">
  11. <div class="wrapper">
  12. <ul>
  13. <li><a href="http://webteam.isd.com/681" target="_blank"><img src="/slide/20091204_css3.jpg" alt="?CSS3???????????" /></a></li>
  14. <li><a href="http://webteam.isd.com/2169" target="_blank"><img src="/slide/20091204_farm.jpg" alt="??????? - ??????????" /></a></li>
  15. <li><a href="http://webteam.isd.com/1694" target="_blank"><img src="/slide/20091204_vip.jpg" alt="QQ VIP ?????" /></a></li>
  16. <li><a href="http://webteam.isd.com/674" target="_blank"><img src="/slide/20091204_cigLighter.jpg" alt="????????" /></a></li>
  17. <li><a href="http://webteam.isd.com/476" target="_blank"><img src="/slide/20091204_float.jpg" alt="???????? ????????" /></a></li>
  18. <li><a href="http://webteam.isd.com/2150" target="_blank"><img src="/slide/20091204_mod.jpg" alt="???????????" /></a></li>
  19. </ul>
  20. </div>
  21. <div class="img_slides_menu_bg"></div>
  22. </div>
  23. <!--===E ???===-->
  24. <!--===S ????===-->
  25. <header class="mode_tit">
  26. <h2 class="img_bg">????</h2>
  27. <p><a href="<?php bloginfo('home') ?>/cat/project/" title="??">??</a></p>
  28. </header>
  29. <ul class="mode_list_imgtxt">
  30. <?php $args=array(
  31. #'category_name' => 'key',
  32. #'category__in' => array(7,8,9,10),
  33. 'category__and' => array(1,27),
  34. 'showposts'=>3,
  35. );
  36. query_posts($args);if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  37. <li>
  38. <article>
  39. <header>
  40. <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),111); ?></a></h3>
  41. </header>
  42. <footer>
  43. <p class="info">???<time><?php the_time('Y-m-d'); ?></time> ???<?php the_category(', '); ?> ???<?php the_author(); ?></p>
  44. <p class="cover"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
  45. <?php if ( get_post_meta($post->ID, 'cover', true) ) {
  46. $cover=get_post_meta($post->ID, 'cover', true); ?>
  47. <img src="<?php echo $cover; ?>" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  48. <?php }else{ ?>
  49. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  50. <?php } ?>
  51. </a></p>
  52. </footer>
  53. <p title="<?php echo get_the_excerpt(); ?>"><?php cut_str(get_the_excerpt(),213); ?></p>
  54. </article>
  55. </li>
  56. <?php endwhile; else: ?>
  57. <li><p><?php _e('?????,??????.'); ?></p></li>
  58. <?php endif;wp_reset_query(); ?>
  59. </ul>
  60. <!--===E ????===-->
  61. <!--===S ??===-->
  62. <div class="left mode_list_index">
  63. <header class="mode_tit">
  64. <h2 class="img_bg">??</h2>
  65. </header>
  66. <?php $args=array(
  67. 'category__and' => array(11,27),
  68. 'showposts'=>1,
  69. );
  70. query_posts($args);if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  71. <article>
  72. <header>
  73. <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),40); ?></a></h3>
  74. </header>
  75. <footer>
  76. <p class="info">???<time><?php the_time('Y-m-d'); ?></time> ???<?php the_author(); ?></p>
  77. <p class="cover"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
  78. <?php if ( get_post_meta($post->ID, 'cover', true) ) {
  79. $cover=get_post_meta($post->ID, 'cover', true); ?>
  80. <img src="<?php echo $cover; ?>" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  81. <?php }else{ ?>
  82. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  83. <?php } ?>
  84. </a></p>
  85. </footer>
  86. <p title="<?php echo get_the_excerpt(); ?>"><?php cut_str(get_the_excerpt(),78); ?></p>
  87. </article>
  88. <?php endwhile; else: ?>
  89. <p><?php _e('?????,??????.'); ?></p>
  90. <?php endif;wp_reset_query(); ?>
  91. <ul class="mode_list_txtime">
  92. <?php $bc_key=0;
  93. $bc_i=0;
  94. $args=array(
  95. 'category__in' => array(11),
  96. 'showposts'=>5,
  97. );
  98. query_posts($args);if ( have_posts() ) : while ( have_posts() ) : the_post();
  99. if((in_category('27') && ($bc_key == 0)) || ($bc_i == 5)){$bc_key++;$bc_i++;continue;}else{$bc_i++;}
  100. ?>
  101. <li>
  102. <article>
  103. <header>
  104. <h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),44); ?></a></h4>
  105. </header>
  106. <footer>
  107. <time><?php the_time('Y-m-d'); ?></time>
  108. </footer>
  109. </article>
  110. </li>
  111. <?php endwhile; else: ?>
  112. <li><p><?php _e('?????,??????.'); ?></p></li>
  113. <?php endif;wp_reset_query(); ?>
  114. </ul>
  115. </div>
  116. <!--===E ??===-->
  117. <!--===S ??===-->
  118. <div class="right mode_list_index">
  119. <header class="mode_tit">
  120. <h2 class="img_bg">??</h2>
  121. </header>
  122. <?php $args=array(
  123. 'category__and' => array(21,27),
  124. 'showposts'=>1,
  125. );
  126. query_posts($args);if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  127. <article>
  128. <header>
  129. <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),40); ?></a></h3>
  130. </header>
  131. <footer>
  132. <p class="info">???<time><?php the_time('Y-m-d'); ?></time> ???<?php the_author(); ?></p>
  133. <p class="cover"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
  134. <?php if ( get_post_meta($post->ID, 'cover', true) ) {
  135. $cover=get_post_meta($post->ID, 'cover', true); ?>
  136. <img src="<?php echo $cover; ?>" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  137. <?php }else{ ?>
  138. <img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="<?php the_title(); ?>" style="width:80px; height:80px;" />
  139. <?php } ?>
  140. </a></p>
  141. </footer>
  142. <p title="<?php echo get_the_excerpt(); ?>"><?php cut_str(get_the_excerpt(),78); ?></p>
  143. </article>
  144. <?php endwhile; else: ?>
  145. <p><?php _e('?????,??????.'); ?></p>
  146. <?php endif;wp_reset_query(); ?>
  147. <ul class="mode_list_txtime">
  148. <?php $bc_key=0;
  149. $bc_i=0;
  150. $args=array(
  151. 'category__in' => array(21),
  152. 'showposts'=>5,
  153. );
  154. query_posts($args);if ( have_posts() ) : while ( have_posts() ) : the_post();
  155. if((in_category('27') && ($bc_key == 0)) || ($bc_i == 5)){$bc_key++;$bc_i++;continue;}else{$bc_i++;}
  156. ?>
  157. <li>
  158. <article>
  159. <header>
  160. <h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),44);?></a></h4>
  161. </header>
  162. <footer>
  163. <time><?php the_time('Y-m-d'); ?></time>
  164. </footer>
  165. </article>
  166. </li>
  167. <?php endwhile; else: ?>
  168. <p><?php _e('?????,??????.'); ?></p>
  169. <?php endif;wp_reset_query(); ?>
  170. </ul>
  171. </div>
  172. <!--===E ??===-->
  173. </section>
  174. <!--==E ??????==-->
  175. <!--==S ??????==-->
  176. <aside>
  177. <!--===S ??===-->
  178. <div class="mode_search">
  179. <form id="searchform" class="blog-search" method="get" action="<?php bloginfo('home') ?>">
  180. <fieldset>
  181. <legend>????</legend>
  182. <p class="mode_search_cont"><input type="text" id="s" name="s" class="int_txt" value="<?php the_search_query() ?>" /> <input type="submit" value="? ?" class="img_bg int_sub" /></p>
  183. <h3 class="hide">???????</h3>
  184. <p class="mode_tags">
  185. <?php wp_tag_cloud('smallest=14&largest=14&unit=px&number=14&order=RAND'); ?>
  186. </p>
  187. </fieldset>
  188. </form>
  189. </div>
  190. <!--===E ??===-->
  191. <!--===S ??===-->
  192. <div class="mode_aside_panel">
  193. <header class="mode_tit">
  194. <h2 class="img_bg">??</h2>
  195. <p><a href="<?php bloginfo('home') ?>/cat/share/" title="??">??</a></p>
  196. </header>
  197. <ul class="mode_list_txtime">
  198. <?php query_posts("category_name=share&showposts=5");if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  199. <li>
  200. <article>
  201. <header>
  202. <h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php cut_str(get_the_title(),37); ?></a></h4>
  203. </header>
  204. <footer>
  205. <time><?php the_time('Y-m-d'); ?></time>
  206. </footer>
  207. </article>
  208. </li>
  209. <?php endwhile; else: ?>
  210. <li><p><?php _e('?????,??????.'); ?></p></li>
  211. <?php endif;wp_reset_query(); ?>
  212. </ul>
  213. </div>
  214. <!--===E ??===-->
  215. <!--===S ???===-->
  216. <div class="mode_aside_panel none">
  217. <header class="mode_tit">
  218. <h2 class="img_bg">???</h2>
  219. <p><a href="<?php bloginfo('home') ?>/visual-designer/" title="??">??</a></p>
  220. </header>
  221. <div class="mode_index_list_designer">
  222. <ul>
  223. <li>
  224. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  225. </li>
  226. <li>
  227. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  228. </li>
  229. <li>
  230. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  231. </li>
  232. <li>
  233. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  234. </li>
  235. <li>
  236. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  237. </li>
  238. <li>
  239. <a href="##" title="Qzoneing ????????"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:80px; height:80px;" /></a>
  240. </li>
  241. </ul>
  242. </div>
  243. </div>
  244. <!--===E ???===-->
  245. <!--===S ???===-->
  246. <div class="mode_aside_panel mode_aside_other none">
  247. <p><img src="<?php bloginfo('stylesheet_directory'); ?>/img/c/pic_1.jpg" alt="Qzoneing ????????" style="width:270px; height:76px;" /></p>
  248. <ul class="mode_list_txtime">
  249. <li>
  250. <article>
  251. <header>
  252. <h4><a href="##" title="[??] ISD????????">[??] ISD????????</a></h4>
  253. </header>
  254. </article>
  255. </li>
  256. <li>
  257. <article>
  258. <header>
  259. <h4><a href="##" title="[??] ?????">[??] ?????</a></h4>
  260. </header>
  261. </article>
  262. </li>
  263. <li>
  264. <article>
  265. <header>
  266. <h4><a href="##" title="[??] ???????">[??] ???????</a></h4>
  267. </header>
  268. </article>
  269. </li>
  270. </ul>
  271. </div>
  272. <!--===E ???===-->
  273. </aside>
  274. <!--==E ??????==-->
  275. </div>
  276. </div>
  277. </div>
  278. <!--=E ??????=-->
  279. <?php get_footer() ?>