contact.php 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->set('name', 'contact')
  9. ->set('title', '联系我们')
  10. ->import('inc/head')
  11. # 定义名称
  12. ->fetch('body@t', '1')
  13. ->fetch('.sub-t', 'main/api.config#contact_desc')
  14. ->fetch('.address iframe@src', 'main/api.config#contact_address_map')
  15. ->fetch('.address-text i', 'main/api.config#contact_address')
  16. ->loop
  17. (
  18. '.contact-list dl',
  19. 'main/api.contact',
  20. array
  21. (
  22. 'b|0' => '$v.info',
  23. 'b|1' => '$v.name',
  24. 'img' => array
  25. (
  26. 'src' => '$v.avatar',
  27. ),
  28. 'i' => '$v.contact',
  29. )
  30. )
  31. ->import('inc/foot')
  32. # display
  33. ->display();