right.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. $view
  3. # 推荐
  4. ->loop
  5. (
  6. '.isgood_news li',
  7. 'main/api.push|key=home_tuijian&name=推荐阅读',
  8. array
  9. (
  10. 'a' => array
  11. (
  12. 'href' => '$v.link',
  13. 'title' => '$v.name',
  14. 'target' => '',
  15. 'img' => array
  16. (
  17. 'src' => '$v.pic',
  18. 'alt' => '$v.name',
  19. ),
  20. 'em' => array
  21. (
  22. 'html' => '<{$k+1}>',
  23. ),
  24. 'p' => array
  25. (
  26. 'html' => '$v.name',
  27. ),
  28. 'span' => array
  29. (
  30. 'class' => 'star5'
  31. )
  32. ),
  33. )
  34. )
  35. ->fetch('.isgood_news@style', 'main/api.push?key=home_tuijian&name=推荐阅读', 'none')
  36. ->fetch('.isgood_news .h_title', '推荐阅读')
  37. ->loop
  38. (
  39. '.hot_news li',
  40. 'content/lib/article.getDataByNum',
  41. array
  42. (
  43. 'a' => array
  44. (
  45. 'href' => '$v.link',
  46. 'title' => '$v.name',
  47. 'target' => '',
  48. 'p' => array
  49. (
  50. 'html' => '$v.name',
  51. ),
  52. ),
  53. 'span' => array
  54. (
  55. 'html' => '$v.num_view',
  56. ),
  57. )
  58. )
  59. ->fetch('.hot_news@style', 'content/lib/article.getDataByNum', 'none')
  60. ->loop
  61. (
  62. '.tagsclous a',
  63. 'main/api.getTagList',
  64. array
  65. (
  66. 'href' => '$v.link',
  67. 'title' => '$v.name',
  68. 'html' => '$v.name',
  69. 'target' => '',
  70. )
  71. )
  72. ->fetch('.tagsclous@style', 'main/api.getTagList', 'none')
  73. ->fetch('.emial_box a@href', 'main/api.config#email_link')
  74. ->fetch('.emial_box a', 'main/api.config#email')
  75. ->loop
  76. (
  77. '.ad_r a|0',
  78. 'main/api.ad|key=ad_right_1&name=右侧广告1',
  79. array
  80. (
  81. 'href' => '$v.link',
  82. 'title' => '$v.name',
  83. 'target' => '_blank',
  84. 'img' => array
  85. (
  86. 'src' => '$v.pic',
  87. 'alt' => '$v,name',
  88. )
  89. )
  90. )
  91. ->fetch(array('.ad_r@style', 0), 'main/api.ad?key=ad_right_1&name=右侧广告1', 'none')
  92. ->loop
  93. (
  94. '.ad_r a|1',
  95. 'main/api.ad|key=ad_right_2&name=右侧广告2',
  96. array
  97. (
  98. 'href' => '$v.link',
  99. 'title' => '$v.name',
  100. 'target' => '_blank',
  101. 'img' => array
  102. (
  103. 'src' => '$v.pic',
  104. 'alt' => '$v,name',
  105. )
  106. )
  107. )
  108. ->fetch(array('.ad_r@style', 1), 'main/api.ad?key=ad_right_2&name=右侧广告2', 'none')
  109. ;