Skip to content

Commit

Permalink
Merge pull request #4525 from olsgreen/add-edit-mode-class
Browse files Browse the repository at this point in the history
[v5.7] Added 'ccm-edit-mode' class to HTML tag.

Former-commit-id: 3c25dc2
Former-commit-id: 3c580793bc7eeb538af2a8a4d50829b7e450594f
  • Loading branch information
aembler committed Oct 19, 2016
2 parents b46759a + d5a0acb commit abe5530
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/concrete/elements/page_controls_header.php
Expand Up @@ -29,8 +29,11 @@

$editMode = $c->isEditMode();
$tools = REL_DIR_FILES_TOOLS_REQUIRED;
$htmlTagClasses = 'ccm-toolbar-visible';

if ($c->isEditMode()) {
$startEditMode = 'new Concrete.EditMode();';
$htmlTagClasses .= ' ccm-edit-mode';
} else {
$startEditMode = '';
}
Expand All @@ -51,7 +54,7 @@

$js = <<<EOL
<script type="text/javascript">$(function() {
$('html').addClass('ccm-toolbar-visible');
$('html').addClass('$htmlTagClasses');
ConcretePanelManager.register({'identifier': 'dashboard', 'position': 'right', url: '{$panelDashboard}'});
ConcretePanelManager.register({'identifier': 'page', url: '{$panelPage}'});
ConcretePanelManager.register({'identifier': 'sitemap', 'position': 'right', url: '{$panelSitemap}'});
Expand Down

0 comments on commit abe5530

Please sign in to comment.