home.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ];
  26. # css config
  27. $cssOptions = [
  28. # css config 1.
  29. [
  30. 'css' =>[
  31. 'css/style.css',
  32. 'css/owl.carousel.css',
  33. ],
  34. ],
  35. ];
  36. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  37. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  38. \Yii::$service->page->asset->register($this);
  39. ?>
  40. <?php $this->beginPage() ?>
  41. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  42. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $currentLangCode = Yii::$service->store->currentLangCode; ?>" lang="<?= $currentLangCode ?>">
  43. <head>
  44. <?= Yii::$service->page->widget->render('head',$this); ?>
  45. </head>
  46. <body>
  47. <?= Yii::$service->page->widget->render('beforeContent',$this); ?>
  48. <?php $this->beginBody() ?>
  49. <header id="header">
  50. <?= Yii::$service->page->widget->render('header',$this); ?>
  51. <?= Yii::$service->page->widget->render('menu',$this); ?>
  52. </header>
  53. <div class="main-container">
  54. <?= $content; ?>
  55. </div>
  56. <div class="footer-container">
  57. <?= Yii::$service->page->widget->render('footer',$this); ?>
  58. </div>
  59. <?= Yii::$service->page->widget->render('trace',$this); ?>
  60. <?= Yii::$service->page->widget->render('scroll',$this); ?>
  61. <?php $this->endBody() ?>
  62. </body>
  63. </html>
  64. <?php $this->endPage() ?>