home.php 1.9 KB

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