diff options
author | Michael Letzgus <www@chronos.michael-letzgus.de> | 2017-05-20 12:16:44 +0200 |
---|---|---|
committer | Michael Letzgus <www@chronos.michael-letzgus.de> | 2017-05-25 11:13:43 +0200 |
commit | 0d320fba4b2ff940975fc9fa415e2d20c6da961f (patch) | |
tree | c61698238afe6370672b07468ca0a9007232d1c4 /core/templates/layout.user.php | |
parent | a46d2f1d39c99b2e237b3b642099f02a3fb8c841 (diff) | |
download | nextcloud-server-0d320fba4b2ff940975fc9fa415e2d20c6da961f.tar.gz nextcloud-server-0d320fba4b2ff940975fc9fa415e2d20c6da961f.zip |
Streamline templates, more DRY
Use Unified function to emit <link> tags for css loading, obey "Don't Repeat Yourself" ;-)
(Next step might by to combine this with the emit <script> function (even more DRY?) AND move all this to a better place?)
Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r-- | core/templates/layout.user.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index aad9875f375..7d54d9b21f7 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -21,12 +21,7 @@ <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>"> <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>"> - <?php foreach($_['cssfiles'] as $cssfile): ?> - <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>"> - <?php endforeach; ?> - <?php foreach($_['printcssfiles'] as $cssfile): ?> - <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print"> - <?php endforeach; ?> + <?php emit_css_loading_tags($_); ?> <?php emit_script_loading_tags($_); ?> <?php print_unescaped($_['headers']); ?> </head> |