one_step_checkout.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. 'css/font-awesome.min.css',
  44. 'css/ionicons.min.css',
  45. ],
  46. ],
  47. # css config 2.
  48. [
  49. 'options' => [
  50. 'condition'=> 'lt IE 9',
  51. ],
  52. 'css' =>[
  53. 'css/ltie9.css',
  54. 'css/font-awesome.min.css',
  55. 'css/ionicons.min.css',
  56. ],
  57. ],
  58. ];
  59. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  60. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  61. \Yii::$service->page->asset->register($this);
  62. ?>
  63. <?php $this->beginPage() ?>
  64. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  65. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $currentLangCode = Yii::$service->store->currentLangCode; ?>" lang="<?= $currentLangCode ?>">
  66. <head>
  67. <?= Yii::$service->page->widget->render('head',$this); ?>
  68. </head>
  69. <body>
  70. <?= Yii::$service->page->widget->render('beforeContent',$this); ?>
  71. <?php $this->beginBody() ?>
  72. <header id="header">
  73. <?= Yii::$service->page->widget->render('header',$this); ?>
  74. <?= Yii::$service->page->widget->render('menu',$this); ?>
  75. </header>
  76. <div class="main-container">
  77. <?= $content; ?>
  78. </div>
  79. <div class="footer-container">
  80. <?= Yii::$service->page->widget->render('footer',$this); ?>
  81. </div>
  82. <?= Yii::$service->page->widget->render('trace',$this); ?>
  83. <?= Yii::$service->page->widget->render('scroll',$this); ?>
  84. <?php $this->endBody() ?>
  85. </body>
  86. </html>
  87. <?php $this->endPage() ?>