diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-29 11:54:31 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-29 11:54:49 -0400 |
commit | e5cbc532c300142e50f9a6ffb14229595dd74c78 (patch) | |
tree | be97ac29a495dd58c3c3c730419ceb83746949df /core/templates | |
parent | 9fcb916057934b81a44952bf67bc0118f609c570 (diff) | |
download | nextcloud-server-e5cbc532c300142e50f9a6ffb14229595dd74c78.tar.gz nextcloud-server-e5cbc532c300142e50f9a6ffb14229595dd74c78.zip |
Fix password authentication for links and fix template problems for links by creating a new base layout
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.base.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php new file mode 100644 index 00000000000..bfd23a9ce97 --- /dev/null +++ b/core/templates/layout.base.php @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html> + <head> + <title>ownCloud</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" /> + <?php if (!empty(OC_Util::$core_styles)): ?> + <link rel="stylesheet" href="<?php echo OC_Helper::linkToRemote('core.css', false) ?>" type="text/css" media="screen" /> + <?php endif ?> + <?php foreach ($_['cssfiles'] as $cssfile): ?> + <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> + <?php endforeach; ?> + <script type="text/javascript"> + var oc_webroot = '<?php echo OC::$WEBROOT; ?>'; + var oc_appswebroots = <?php echo $_['apps_paths'] ?>; + </script> + <?php if (!empty(OC_Util::$core_scripts)): ?> + <script type="text/javascript" src="<?php echo OC_Helper::linkToRemote('core.js', false) ?>"></script> + <?php endif ?> + <?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 '/>'; + ?> + <?php endforeach; ?> + </head> + + <body> + <?php echo $_['content']; ?> + </body> +</html> |