diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-24 18:02:19 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-24 18:02:19 +0200 |
commit | 4d11e920be943bdd60c86e46b8f6c922dea87c79 (patch) | |
tree | a203e732192c203618de7a7080fa27399ff945cf /core | |
parent | 1aa8399915bc6148fab3ad8e3eae736e9a135c09 (diff) | |
download | nextcloud-server-4d11e920be943bdd60c86e46b8f6c922dea87c79.tar.gz nextcloud-server-4d11e920be943bdd60c86e46b8f6c922dea87c79.zip |
provide an option to add custom elements to the header of templates
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/layout.admin.php | 12 | ||||
-rw-r--r-- | core/templates/layout.guest.php | 13 | ||||
-rw-r--r-- | core/templates/layout.user.php | 12 |
3 files changed, 37 insertions, 0 deletions
diff --git a/core/templates/layout.admin.php b/core/templates/layout.admin.php index 1fcd4568f8c..8668aa64fda 100644 --- a/core/templates/layout.admin.php +++ b/core/templates/layout.admin.php @@ -13,6 +13,18 @@ <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> + <?php foreach($_['headers'] as $header): ?> + <?php + echo '<'.$header['tag'].' '; + foreach($header['attributes'] as $name=>$value){ + echo "$name='$value' "; + }; + echo '>'; + echo $header['text']; + echo '</'.$header['tag'].'>'; + ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body id="body-settings"> diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index ce99b00b9f6..5655a64d8da 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -13,6 +13,19 @@ <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> + + <?php foreach($_['headers'] as $header): ?> + <?php + echo '<'.$header['tag'].' '; + foreach($header['attributes'] as $name=>$value){ + echo "$name='$value' "; + }; + echo '>'; + echo $header['text']; + echo '</'.$header['tag'].'>'; + ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body id="body-login"> diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index f21db202a83..2a9a817498d 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -13,6 +13,18 @@ <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> + <?php foreach($_['headers'] as $header): ?> + <?php + echo '<'.$header['tag'].' '; + foreach($header['attributes'] as $name=>$value){ + echo "$name='$value' "; + }; + echo '>'; + echo $header['text']; + echo '</'.$header['tag'].'>'; + ?> + <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> + <?php endforeach; ?> </head> <body id="body-user"> |