main.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/vendor/modernizr-2.8.3.min.js',
  20. 'js/vendor/jquery.min.js',
  21. 'js/popper.min.js',
  22. 'js/bootstrap.min.js',
  23. 'js/plugins.js',
  24. 'js/main.js',
  25. 'js/js.js',
  26. ],
  27. ],
  28. ];
  29. # css config
  30. $cssOptions = [
  31. # css config 1.
  32. [
  33. 'css' =>[
  34. 'css/bootstrap.min.css',
  35. 'css/font-awesome.min.css',
  36. 'css/ionicons.min.css',
  37. 'css/plugins.css',
  38. 'css/helper.css',
  39. 'css/main.css',
  40. 'css/fec.css',
  41. ],
  42. ],
  43. ];
  44. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  45. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  46. \Yii::$service->page->asset->register($this);
  47. ?>
  48. <?php $this->beginPage() ?>
  49. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  50. <html class="no-js" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $currentLangCode = Yii::$service->store->currentLangCode; ?>" lang="<?= $currentLangCode ?>">
  51. <head>
  52. <?= Yii::$service->page->widget->render('base/head',$this); ?>
  53. </head>
  54. <body>
  55. <?= Yii::$service->page->widget->render('base/beforeContent',$this); ?>
  56. <?php $this->beginBody() ?>
  57. <div class="header-container header-sticky">
  58. <?= Yii::$service->page->widget->render('base/header',$this); ?>
  59. <?= Yii::$service->page->widget->render('base/menu',$this); ?>
  60. </div>
  61. <div class="main-container">
  62. <?= $content; ?>
  63. </div>
  64. <div class="footer-container">
  65. <?= Yii::$service->page->widget->render('base/footer',$this); ?>
  66. </div>
  67. <?= Yii::$service->page->widget->render('base/trace',$this); ?>
  68. <?= Yii::$service->page->widget->render('base/scroll',$this); ?>
  69. <?php $this->endBody() ?>
  70. </body>
  71. </html>
  72. <?php $this->endPage() ?>