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