service.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'inc/head.php');
  8. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'inc/foot.php');
  9. $view
  10. ->loop
  11. (
  12. '.sidebar-blog-categories li',
  13. 'main/data.service_cate_list',
  14. array
  15. (
  16. 'a' => array
  17. (
  18. 'html' => '$v.name',
  19. 'href' => '$v.link',
  20. )
  21. )
  22. )
  23. ->loop
  24. (
  25. '.services-company .col-md-4',
  26. 'main/data.service_list',
  27. array
  28. (
  29. 'h4' => '$v.name',
  30. 'p' => '$v.desc',
  31. '.link' => array
  32. (
  33. 'style' => 'display:none',
  34. ),
  35. 'img' => array
  36. (
  37. 'src' => '$v.cover',
  38. 'alt' => '$v.name',
  39. ),
  40. 'a' => array
  41. (
  42. 'href' => '$v.link',
  43. 'title' => '$v.name',
  44. ),
  45. )
  46. )
  47. ->fetch('.title', 'main/data.service_cate_info#name')
  48. ->fetch('.description', 'main/data.service_cate_info#desc')
  49. ->fetch('.page-title@style', 'main/data.service_cate_info#background')
  50. ->fetch(array('.child a', 0), 'main/data.service_cate_info#name')
  51. ->fetch(array('.child a@href', 0), '#')
  52. ->fetch(array('.parent a', 0), 'main/data.config#link_name')
  53. ->fetch(array('.parent a@href', 0), 'main/data.config#link')
  54. # display
  55. ->display();