Skip to content

Instantly share code, notes, and snippets.

@killua99
Created September 2, 2016 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killua99/707ec5791cc3d23f3477240c90260998 to your computer and use it in GitHub Desktop.
Save killua99/707ec5791cc3d23f3477240c90260998 to your computer and use it in GitHub Desktop.
{#
/**
* @file
* Default theme implementation for a page wrapper.
*
* For consistent wrapping to {{ page }} render in all themes.
*
* Available variables:
* - children: Contains the child elements of the page.
*
* @ingroup themeable
*/
#}
{% if children and is_admin %}
{% spaceless %}
<div id="main-canvas-wrapper" class="outside-in outside-in--wrapper">
<div id="main-canvas" class="outside-in__internal">
{{ children }}
</div>
</div>
{% endspaceless %}
{% else %}
{{ children }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment