foot.php 380 B

123456789101112131415161718192021222324
  1. <?php
  2. $view
  3. ->loop
  4. (
  5. '.footer_nav li',
  6. 'main/api.push|key=foot_link&name=底部链接',
  7. array
  8. (
  9. 'a' => array
  10. (
  11. 'href' => '$v.link',
  12. 'title' => '$v.name',
  13. 'target' => '_blank',
  14. ),
  15. )
  16. )
  17. ->fetch('.footer_nav@style', 'main/api.push?key=foot_link&name=底部链接', 'none')
  18. ;