Footer.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /*
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. namespace fecshop\services\page;
  10. use fecshop\services\Service;
  11. use Yii;
  12. /**
  13. * page Footer services.
  14. * @author Terry Zhao <2358269014@qq.com>
  15. * @since 1.0
  16. */
  17. class Footer extends Service
  18. {
  19. //public $textTerms;
  20. const TEXT_TERMS = 'footer_text_terms';
  21. const COPYRIGHT = 'footer_copyright';
  22. const FOLLOW_USE = 'footer_follow_us';
  23. const PAYMENT_IMG = 'footer_payment_img';
  24. /**
  25. * 得到页面底部的html部分
  26. */
  27. public function getTextTerms()
  28. {
  29. Yii::$service->page->staticblock->get(self::TEXT_TERMS);
  30. }
  31. /**
  32. * 得到页面底部的版权部分
  33. */
  34. public function getCopyRight()
  35. {
  36. Yii::$service->page->staticblock->get(self::COPYRIGHT);
  37. }
  38. /**
  39. * 得到页面底部的follow us部分
  40. */
  41. public function followUs()
  42. {
  43. Yii::$service->page->staticblock->get(self::FOLLOW_USE);
  44. }
  45. /**
  46. * 得到页面底部的支付图片部分
  47. */
  48. public function getPaymentImg()
  49. {
  50. Yii::$service->page->staticblock->get(self::PAYMENT_IMG);
  51. }
  52. }