check if toolbar is visible

Submitted by remo - 4 years ago

The concrete5 in-site editing mode is pretty slick but it can also mess up your own layout because of the toolbar on top. In such situations, you'll need a dummy container or some additional CSS to push down your layout. Here's how that works:

$p = new Permissions(Page::getCurrentPage());
if ($p->canViewToolbar()) {
    echo '<div style="height: 50px;"></div>';
}
Stats Categories Tags
comments powered by Disqus