Initial commit

Working directory listing. Hardcoded sidebar template.
This commit is contained in:
2011-01-16 22:59:18 +00:00
parent ee1707d86e
commit 65c560cdf0
20 changed files with 558 additions and 0 deletions

1
public/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.htaccess

37
public/index.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
require_once('../private/config.php');
require_once(SihnonFramework_Lib . 'SihnonFramework/Main.class.php');
require 'smarty/Smarty.class.php';
try {
Sihnon_Main::registerAutoloadClasses('SihnonFramework', SihnonFramework_Lib, 'MediaListing', Sihnon_Main::makeAbsolutePath('../source/lib/'));
$main = MediaListing_Main::instance();
$smarty = new Smarty();
$smarty->template_dir = '../source/templates';
$smarty->compile_dir = '../private/tmp/templates';
$smarty->cache_dir = '../private/tmp/cache';
$smarty->config_dir = '../private/config';
$smarty->register_modifier('formatDuration', array('MediaListing_Main', 'formatDuration'));
$smarty->register_modifier('formatFilesize', array('MediaListing_Main', 'formatFilesize'));
$smarty->assign('version', '0.1');
$smarty->assign('base_uri', $main->baseUri());
$request = new MediaListing_RequestParser(isset($_GET['l']) ? $_GET['l'] : '');
$page = new MediaListing_Page($smarty, $request);
if ($page->evaluate(
array(
'smarty' => $smarty,
'request' => $request,
)
)) {
$smarty->display('index.tpl');
}
} catch (Sihnon_Exception $e) {
die("Uncaught " . get_class($e) . ": " . $e->getMessage());
}
?>

118
public/styles/normal.css Normal file
View File

@@ -0,0 +1,118 @@
body {
margin: 0em;
padding: 0em;
background: #a7a09a;
font-family: verdana, helvetica, sans-serif;
}
a {
color: gray;
}
label {
margin-left: 1em;
margin-right: 1em;
}
#container {
width: 75%;
min-width: 75em;
margin: auto;
}
#banner {
margin: 0em;
padding: 0em;
background: #eeeeee;
}
#banner h1 {
padding: 0.5em;
}
#navigation {
background: #eeeeee;
margin-top: 0em;
margin-bottom: 1em;
padding: 0.2em;
}
#navigation ul {
margin: 0em;
padding: 0em 5em;;
list-style: none;
}
#navigation li {
margin: 1em;
padding: 0em;
display: inline;
}
#page-container {
margin: 0em;
padding: 0em;
}
#sidebar {
float: left;
width: 20em;
margin-bottom: 1em;
background: #eeeeee;
}
#page {
margin-left: 21em;
margin-bottom: 1em;
padding: 0.5em;
background: #eeeeee;
}
#footer {
clear: both;
padding: 2em;
font-size: smaller;
font-style: italic;
background: #eeeeee;
color: #333333;
}
#errors {
background: peachpuff;
color: darkred;
margin: 1em;
}
#messages {
background: lightcyan;
color: darkblue;
margin: 1em;
}
.default {
background: beige;
color: darkgray;
font-style: italic;
}
.icon {
height: 16px;
width: 16px;
}
form#setup-rips input[type="text"] {
width: 30em;
}
#quantizer-slider {
width: 20em;
}
select.rip-streams {
width: 20em;
}