one_step_checkout.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. ?>
  10. <?php
  11. $jsOptions = [
  12. # js config 1
  13. [
  14. 'options' => [
  15. 'position' => 'POS_END',
  16. // 'condition'=> 'lt IE 9',
  17. ],
  18. 'js' =>[
  19. 'js/zepto.min.js',
  20. 'js/sm.min.js',
  21. 'js/sm-extend.min.js',
  22. 'js/fec.js',
  23. ],
  24. ],
  25. ];
  26. # css config
  27. $cssOptions = [
  28. # css config 1.
  29. [
  30. 'css' =>[
  31. 'css/sm.min.css',
  32. 'css/sm-extend.min.css',
  33. 'css/fec.css',
  34. ],
  35. ],
  36. ];
  37. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  38. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  39. \Yii::$service->page->asset->register($this);
  40. ?>
  41. <?php $this->beginPage() ?>
  42. <!DOCTYPE html>
  43. <html>
  44. <head>
  45. <?= Yii::$service->page->widget->render('head',$this); ?>
  46. </head>
  47. <body>
  48. <?= Yii::$service->page->widget->render('beforeContent',$this); ?>
  49. <?php $this->beginBody() ?>
  50. <div class="page-group">
  51. <div class="page">
  52. <?= Yii::$service->page->widget->render('header',$this); ?>
  53. <div class="content" id=''>
  54. <?= $content; ?>
  55. </div>
  56. </div>
  57. <?= Yii::$service->page->widget->render('menu',$this); ?>
  58. <?= Yii::$service->page->widget->render('trace',$this); ?>
  59. </div>
  60. <?php $this->endBody() ?>
  61. </body>
  62. </html>
  63. <?php $this->endPage() ?>