one_step_checkout.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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/jquery-3.0.0.min.js',
  20. 'js/jquery.lazyload.min.js',
  21. 'js/owl.carousel.min.js',
  22. 'js/js.js',
  23. ],
  24. ],
  25. # js config 2
  26. [
  27. 'options' => [
  28. 'condition'=> 'lt IE 9',
  29. ],
  30. 'js' =>[
  31. 'js/ie9js.js'
  32. ],
  33. ],
  34. ];
  35. # css config
  36. $cssOptions = [
  37. # css config 1.
  38. [
  39. 'css' =>[
  40. 'css/style.css',
  41. 'css/ie.css',
  42. 'onestepcheckout/onestepcheckout.css',
  43. ],
  44. ],
  45. # css config 2.
  46. [
  47. 'options' => [
  48. 'condition'=> 'lt IE 9',
  49. ],
  50. 'css' =>[
  51. 'css/ltie9.css',
  52. ],
  53. ],
  54. ];
  55. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  56. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  57. \Yii::$service->page->asset->register($this);
  58. ?>
  59. <?php $this->beginPage() ?>
  60. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  61. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $currentLangCode = Yii::$service->store->currentLangCode; ?>" lang="<?= $currentLangCode ?>">
  62. <head>
  63. <?= Yii::$service->page->widget->render('head',$this); ?>
  64. </head>
  65. <body>
  66. <?= Yii::$service->page->widget->render('beforeContent',$this); ?>
  67. <?php $this->beginBody() ?>
  68. <header id="header">
  69. <?= Yii::$service->page->widget->render('header',$this); ?>
  70. <?= Yii::$service->page->widget->render('menu',$this); ?>
  71. </header>
  72. <div class="main-container">
  73. <?= $content; ?>
  74. </div>
  75. <div class="footer-container">
  76. <?= Yii::$service->page->widget->render('footer',$this); ?>
  77. </div>
  78. <?= Yii::$service->page->widget->render('trace',$this); ?>
  79. <?= Yii::$service->page->widget->render('scroll',$this); ?>
  80. <?php $this->endBody() ?>
  81. </body>
  82. </html>
  83. <?php $this->endPage() ?>