Browse Source
Fix password authentication for links and fix template problems for links by creating a new base layout
remotes/origin/stable45
Fix password authentication for links and fix template problems for links by creating a new base layout
remotes/origin/stable45
6 changed files with 69 additions and 14 deletions
-
9apps/files_sharing/css/public.css
-
13apps/files_sharing/public.php
-
2apps/files_sharing/templates/authenticate.php
-
12apps/files_sharing/templates/public.php
-
37core/templates/layout.base.php
-
10lib/templatelayout.php
@ -1,2 +1,7 @@ |
|||
#content { position:relative; } |
|||
#preview p { text-align: center; } |
|||
body { background:#ddd; } |
|||
#header { position:fixed; top:0; left:0; right:0; z-index:100; height:2.5em; line-height:2.5em; padding:.5em; background:#1d2d44; -moz-box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; -webkit-box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; box-shadow:0 0 10px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; } |
|||
#details { color:#fff; } |
|||
#download { margin-left:2em; font-weight:bold; color:#fff; } |
|||
#preview { min-height:30em; margin:50px auto; border-bottom:1px solid #f8f8f8; background:#eee; text-align:center; } |
|||
p.info { width:22em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; } |
|||
p.info a { font-weight:bold; color:#777; } |
|||
@ -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> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue