| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/task/2388322/cwd/webmail/jupiter/_assets/ |
Upload File : |
[%
DEFAULT SLOT = 'default';
DEFAULT APP_KEY = 'home';
DEFAULT APP = 'webmail';
DEFAULT ARGS = {};
DEFAULT TAG = 'div';
# INPUTS:
# APP_KEY - application key defining the page. HOME is the homepage.
# TAG - HTML wrapper tag
# ROLE - Optional, Role attribute value
# CLASSES - Optional, The list of CSS class names to apply to the surrounding tag
# SLOT - Optional, The name of the section to expand
USE Components;
SET page_components = Components.get_components(APP, APP_KEY);
IF page_components && page_components.$SLOT;
SET section_components = page_components.$SLOT;
%]
<[%TAG%] role="[%ROLE%]" id="[% "$APP-$APP_KEY-$SLOT" %]-components" class="[%CLASSES%]">
[% FOREACH component IN section_components %]
[% IF component.css_url %]
<link url="[% theme_magic_url(component.css_url) %]" />
[% ELSIF component.css %]
<style>
[% component.css %]
</style>
[% END %]
[% IF component.has_markup %]
[% Components.render_component(component, ARGS) %]
[% END %]
[% IF component.js_url %]
<link url="[% theme_magic_url(component.js_url) %]" />
[% ELSIF component.js %]
<script>
[% component.js %]
</script>
[% END %]
[% END %]
</[%TAG%]>
[% END %]