|
87 | 87 |
|
88 | 88 | <body class="admin <?php echo $option . ' view-' . $view . ' layout-' . $layout . ($task ? ' task-' . $task : '') . ($monochrome ? ' monochrome' : ''); ?>"> |
89 | 89 |
|
90 | | -<noscript> |
91 | | - <div class="alert alert-danger" role="alert"> |
92 | | - <?php echo Text::_('JGLOBAL_WARNJAVASCRIPT'); ?> |
93 | | - </div> |
94 | | -</noscript> |
| 90 | + <noscript> |
| 91 | + <div class="alert alert-danger" role="alert"> |
| 92 | + <?php echo Text::_('JGLOBAL_WARNJAVASCRIPT'); ?> |
| 93 | + </div> |
| 94 | + </noscript> |
95 | 95 |
|
96 | | -<?php // Header ?> |
97 | | -<header id="header" class="header"> |
98 | | - <div class="header-inside"> |
| 96 | + <header id="header" class="header d-flex"> |
99 | 97 | <div class="header-title d-flex"> |
100 | 98 | <div class="d-flex align-items-center"> |
101 | 99 | <div class="logo"> |
|
106 | 104 | <jdoc:include type="modules" name="title" /> |
107 | 105 | </div> |
108 | 106 | <?php echo $statusModules; ?> |
109 | | - </div> |
110 | | -</header> |
111 | | - |
112 | | -<?php // Wrapper ?> |
113 | | -<div id="wrapper" class="d-flex wrapper<?php echo $hiddenMenu ? '0' : ''; ?>"> |
114 | | - |
115 | | - <?php // Sidebar ?> |
116 | | - <?php if (!$hiddenMenu) : ?> |
117 | | - <button class="navbar-toggler toggler-burger collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar-wrapper" aria-controls="sidebar-wrapper" aria-expanded="false" aria-label="<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>"> |
118 | | - <span class="navbar-toggler-icon"></span> |
119 | | - </button> |
120 | | - |
121 | | - <div id="sidebar-wrapper" class="sidebar-wrapper sidebar-menu" <?php echo $hiddenMenu ? 'data-hidden="' . $hiddenMenu . '"' : ''; ?>> |
122 | | - <div id="sidebarmenu"> |
123 | | - <div class="sidebar-toggle item item-level-1"> |
124 | | - <a id="menu-collapse" href="#" aria-label="<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>"> |
125 | | - <span id="menu-collapse-icon" class="icon-toggle-off icon-fw" aria-hidden="true"></span> |
126 | | - <span class="sidebar-item-title"><?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?></span> |
127 | | - </a> |
| 107 | + </header> |
| 108 | + |
| 109 | + <div id="wrapper" class="d-flex wrapper<?php echo $hiddenMenu ? '0' : ''; ?>"> |
| 110 | + <div class="container-fluid container-main"> |
| 111 | + <?php if (!$cpanel) : ?> |
| 112 | + <a class="btn btn-subhead d-md-none d-lg-none d-xl-none" data-bs-toggle="collapse" |
| 113 | + data-bs-target=".subhead-collapse"><?php echo Text::_('TPL_ATUM_TOOLBAR'); ?> |
| 114 | + <span class="icon-wrench"></span></a> |
| 115 | + <div id="subhead" class="subhead mb-3"> |
| 116 | + <div id="container-collapse" class="container-collapse"></div> |
| 117 | + <div class="row"> |
| 118 | + <div class="col-md-12"> |
| 119 | + <jdoc:include type="modules" name="toolbar" style="none" /> |
| 120 | + </div> |
| 121 | + </div> |
128 | 122 | </div> |
129 | | - <jdoc:include type="modules" name="menu" style="none" /> |
130 | | - </div> |
131 | | - </div> |
132 | | - <?php endif; ?> |
133 | | - |
134 | | - <?php // container-fluid ?> |
135 | | - <div class="container-fluid container-main"> |
136 | | - <?php if (!$cpanel) : ?> |
137 | | - <?php // Subheader ?> |
138 | | - <a class="btn btn-subhead d-md-none d-lg-none d-xl-none" data-bs-toggle="collapse" |
139 | | - data-bs-target=".subhead-collapse"><?php echo Text::_('TPL_ATUM_TOOLBAR'); ?> |
140 | | - <span class="icon-wrench"></span></a> |
141 | | - <div id="subhead" class="subhead mb-3"> |
142 | | - <div id="container-collapse" class="container-collapse"></div> |
| 123 | + <?php endif; ?> |
| 124 | + <section id="content" class="content"> |
| 125 | + <jdoc:include type="message" /> |
| 126 | + <jdoc:include type="modules" name="top" style="xhtml" /> |
143 | 127 | <div class="row"> |
144 | 128 | <div class="col-md-12"> |
145 | | - <jdoc:include type="modules" name="toolbar" style="none" /> |
| 129 | + <h1><?php echo Text::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?></h1> |
| 130 | + <blockquote class="blockquote"> |
| 131 | + <span class="badge bg-secondary"><?php echo $this->error->getCode(); ?></span> |
| 132 | + <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> |
| 133 | + </blockquote> |
| 134 | + <?php if ($this->debug) : ?> |
| 135 | + <div> |
| 136 | + <?php echo $this->renderBacktrace(); ?> |
| 137 | + <?php // Check if there are more Exceptions and render their data as well ?> |
| 138 | + <?php if ($this->error->getPrevious()) : ?> |
| 139 | + <?php $loop = true; ?> |
| 140 | + <?php // Reference $this->_error here and in the loop as setError() assigns errors to this property and we need this for the backtrace to work correctly ?> |
| 141 | + <?php // Make the first assignment to setError() outside the loop so the loop does not skip Exceptions ?> |
| 142 | + <?php $this->setError($this->_error->getPrevious()); ?> |
| 143 | + <?php while ($loop === true) : ?> |
| 144 | + <p><strong><?php echo Text::_('JERROR_LAYOUT_PREVIOUS_ERROR'); ?></strong></p> |
| 145 | + <p><?php echo htmlspecialchars($this->_error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></p> |
| 146 | + <?php echo $this->renderBacktrace(); ?> |
| 147 | + <?php $loop = $this->setError($this->_error->getPrevious()); ?> |
| 148 | + <?php endwhile; ?> |
| 149 | + <?php // Reset the main error object to the base error ?> |
| 150 | + <?php $this->setError($this->error); ?> |
| 151 | + <?php endif; ?> |
| 152 | + </div> |
| 153 | + <?php endif; ?> |
| 154 | + <p> |
| 155 | + <a href="<?php echo $this->baseurl; ?>" class="btn btn-secondary"> |
| 156 | + <span class="icon-dashboard" aria-hidden="true"></span> |
| 157 | + <?php echo Text::_('JGLOBAL_TPL_CPANEL_LINK_TEXT'); ?></a> |
| 158 | + </p> |
146 | 159 | </div> |
147 | | - </div> |
148 | | - </div> |
149 | | - <?php endif; ?> |
150 | | - <section id="content" class="content"> |
151 | | - <?php // Begin Content ?> |
152 | | - <jdoc:include type="message" /> |
153 | | - <jdoc:include type="modules" name="top" style="xhtml" /> |
154 | | - <div class="row"> |
155 | | - <div class="col-md-12"> |
156 | | - <h1><?php echo Text::_('JERROR_AN_ERROR_HAS_OCCURRED'); ?></h1> |
157 | | - <blockquote class="blockquote"> |
158 | | - <span class="badge bg-secondary"><?php echo $this->error->getCode(); ?></span> |
159 | | - <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> |
160 | | - </blockquote> |
161 | | - <?php if ($this->debug) : ?> |
162 | | - <div> |
163 | | - <?php echo $this->renderBacktrace(); ?> |
164 | | - <?php // Check if there are more Exceptions and render their data as well ?> |
165 | | - <?php if ($this->error->getPrevious()) : ?> |
166 | | - <?php $loop = true; ?> |
167 | | - <?php // Reference $this->_error here and in the loop as setError() assigns errors to this property and we need this for the backtrace to work correctly ?> |
168 | | - <?php // Make the first assignment to setError() outside the loop so the loop does not skip Exceptions ?> |
169 | | - <?php $this->setError($this->_error->getPrevious()); ?> |
170 | | - <?php while ($loop === true) : ?> |
171 | | - <p><strong><?php echo Text::_('JERROR_LAYOUT_PREVIOUS_ERROR'); ?></strong></p> |
172 | | - <p><?php echo htmlspecialchars($this->_error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></p> |
173 | | - <?php echo $this->renderBacktrace(); ?> |
174 | | - <?php $loop = $this->setError($this->_error->getPrevious()); ?> |
175 | | - <?php endwhile; ?> |
176 | | - <?php // Reset the main error object to the base error ?> |
177 | | - <?php $this->setError($this->error); ?> |
178 | | - <?php endif; ?> |
179 | | - </div> |
| 160 | + |
| 161 | + <?php if ($this->countModules('bottom')) : ?> |
| 162 | + <jdoc:include type="modules" name="bottom" style="xhtml" /> |
180 | 163 | <?php endif; ?> |
181 | | - <p> |
182 | | - <a href="<?php echo $this->baseurl; ?>" class="btn btn-secondary"> |
183 | | - <span class="icon-dashboard" aria-hidden="true"></span> |
184 | | - <?php echo Text::_('JGLOBAL_TPL_CPANEL_LINK_TEXT'); ?></a> |
185 | | - </p> |
186 | 164 | </div> |
| 165 | + </section> |
| 166 | + </div> |
187 | 167 |
|
188 | | - <?php if ($this->countModules('bottom')) : ?> |
189 | | - <jdoc:include type="modules" name="bottom" style="xhtml" /> |
190 | | - <?php endif; ?> |
| 168 | + <?php if (!$hiddenMenu) : ?> |
| 169 | + <button class="navbar-toggler toggler-burger collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar-wrapper" aria-controls="sidebar-wrapper" aria-expanded="false" aria-label="<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>"> |
| 170 | + <span class="navbar-toggler-icon"></span> |
| 171 | + </button> |
| 172 | + |
| 173 | + <div id="sidebar-wrapper" class="sidebar-wrapper sidebar-menu" <?php echo $hiddenMenu ? 'data-hidden="' . $hiddenMenu . '"' : ''; ?>> |
| 174 | + <div id="sidebarmenu"> |
| 175 | + <div class="sidebar-toggle item item-level-1"> |
| 176 | + <a id="menu-collapse" href="#" aria-label="<?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?>"> |
| 177 | + <span id="menu-collapse-icon" class="icon-toggle-off icon-fw" aria-hidden="true"></span> |
| 178 | + <span class="sidebar-item-title"><?php echo Text::_('JTOGGLE_SIDEBAR_MENU'); ?></span> |
| 179 | + </a> |
| 180 | + </div> |
| 181 | + <jdoc:include type="modules" name="menu" style="none" /> |
| 182 | + </div> |
191 | 183 | </div> |
192 | | - <?php // End Content ?> |
193 | | - </section> |
| 184 | + <?php endif; ?> |
194 | 185 | </div> |
195 | | -</div> |
196 | | -<jdoc:include type="modules" name="debug" style="none" /> |
| 186 | + <jdoc:include type="modules" name="debug" style="none" /> |
197 | 187 | </body> |
198 | 188 | </html> |
0 commit comments