tmpl.cp.base.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="theme-color" content="#205081" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <title>{{$.Data.Title}}</title>
  8. <link rel="stylesheet" href="{{$.System.PathCssBootstrap}}">
  9. {{if or (eq $.System.CpModule "index") (eq $.System.CpModule "blog") (eq $.System.CpModule "shop")}}
  10. {{if or (eq $.System.CpSubModule "add") (eq $.System.CpSubModule "modify")}}
  11. <link rel="stylesheet" href="{{$.System.PathCssCpWysiwygPell}}">
  12. {{end}}
  13. {{end}}
  14. {{if eq $.System.CpModule "templates"}}
  15. <link rel="stylesheet" href="{{$.System.PathCssCpCodeMirror}}">
  16. {{end}}
  17. <link rel="stylesheet" href="{{$.System.PathCssStyles}}" />
  18. <link rel="stylesheet" href="{{$.System.PathCssCpStyles}}">
  19. <link rel="shortcut icon" href="{{$.System.PathIcoFav}}" type="image/x-icon" />
  20. <script type="text/javascript">
  21. var CurrentUserProfileData = {
  22. first_name: '{{$.Data.UserFirstName}}',
  23. last_name: '{{$.Data.UserLastName}}',
  24. email: '{{$.Data.UserEmail}}'
  25. };
  26. function WaitForFave(callback) {
  27. if(window && window.fave) {
  28. callback();
  29. } else {
  30. setTimeout(function() {
  31. WaitForFave(callback);
  32. }, 100);
  33. }
  34. };
  35. </script>
  36. </head>
  37. <body class="{{$.Data.BodyClasses}} cp-mod-{{$.System.CpModule}} cp-sub-mod-{{$.System.CpSubModule}}">
  38. <div id="sys-modal-user-settings-placeholder"></div>
  39. <div id="sys-modal-shop-product-attach-placeholder"></div>
  40. <div id="sys-modal-files-manager-placeholder"></div>
  41. <div id="sys-modal-system-message-placeholder"></div>
  42. <nav class="navbar main navbar-expand-md navbar-dark fixed-top bg-dark">
  43. <a class="navbar-brand" href="/cp/">{{$.Data.Caption}}</a>
  44. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  45. <span class="navbar-toggler-icon"></span>
  46. </button>
  47. <div class="collapse navbar-collapse" id="navbarCollapse">
  48. <ul class="navbar-nav mr-auto">
  49. <li class="nav-item dropdown">
  50. <a class="nav-link dropdown-toggle" href="javascript:;" id="nbModulesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  51. Modules
  52. </a>
  53. <div class="dropdown-menu" aria-labelledby="nbModulesDropdown">
  54. {{$.Data.NavBarModules}}
  55. </div>
  56. </li>
  57. <li class="nav-item dropdown">
  58. <a class="nav-link dropdown-toggle" href="javascript:;" id="nbSystemDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  59. System
  60. </a>
  61. <div class="dropdown-menu" aria-labelledby="nbSystemDropdown">
  62. {{$.Data.NavBarModulesSys}}
  63. </div>
  64. </li>
  65. <li class="nav-item">
  66. <a class="nav-link" href="javascript:fave.FilesManagerDialog();" role="button" aria-expanded="false">
  67. Files
  68. </a>
  69. </li>
  70. </ul>
  71. <ul class="navbar-nav ml-auto">
  72. <li class="nav-item dropdown">
  73. <a class="nav-link dropdown-toggle" href="javascript:;" id="nbAccountDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  74. {{$.Data.UserEmail}}
  75. </a>
  76. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="nbAccountDropdown">
  77. <a class="dropdown-item" href="javascript:fave.ModalUserProfile();">My profile</a>
  78. <div class="dropdown-divider"></div>
  79. <a class="dropdown-item" href="javascript:fave.ActionLogout('Are you sure want to logout?');">Logout</a>
  80. </div>
  81. </li>
  82. </ul>
  83. </div>
  84. </nav>
  85. <div class="wrap">
  86. <div class="sidebar sidebar-left d-block d-sm-table-cell">
  87. <div class="scroll">
  88. <div class="padd">
  89. {{$.Data.SidebarLeft}}
  90. </div>
  91. </div>
  92. </div>
  93. <div class="sidebar sidebar-right d-none d-lg-table-cell">
  94. <div class="scroll">
  95. <div class="padd">
  96. {{$.Data.SidebarRight}}
  97. </div>
  98. </div>
  99. </div>
  100. <div class="content d-block d-sm-table-cell">
  101. <div class="scroll">
  102. <div class="padd">
  103. {{$.Data.Content}}
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <script src="{{$.System.PathJsJquery}}"></script>
  109. <script src="{{$.System.PathJsPopper}}"></script>
  110. <script src="{{$.System.PathJsBootstrap}}"></script>
  111. {{if or (eq $.System.CpModule "index") (eq $.System.CpModule "blog") (eq $.System.CpModule "shop")}}
  112. {{if or (eq $.System.CpSubModule "add") (eq $.System.CpSubModule "modify")}}
  113. <script src="{{$.System.PathJsCpWysiwygPell}}"></script>
  114. {{end}}
  115. {{end}}
  116. {{if eq $.System.CpModule "templates"}}
  117. <script src="{{$.System.PathJsCpCodeMirror}}"></script>
  118. {{end}}
  119. <script src="{{$.System.PathJsCpScripts}}"></script>
  120. </body>
  121. </html>