Themeing work based on bootstrap

This commit is contained in:
Deon George
2013-04-25 10:22:36 +10:00
parent b310cdb125
commit 74a9c291e4
184 changed files with 37653 additions and 8903 deletions

49
views/pages/login.php Normal file
View File

@@ -0,0 +1,49 @@
<div class="account-container stacked">
<div class="content clearfix">
<form method="post">
<h1>Sign In</h1>
<div class="login-fields">
<p>Sign in using your registered account:</p>
<div class="field">
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="" placeholder="Username" class="login username-field" />
</div> <!-- /field -->
<div class="field">
<label for="password">Password:</label>
<input type="password" id="password" name="password" value="" placeholder="Password" class="login password-field"/>
</div> <!-- /password -->
</div> <!-- /login-fields -->
<div class="login-actions">
<!--
<span class="login-checkbox">
<input id="Field" name="Field" type="checkbox" class="field login-checkbox" value="First Choice" tabindex="4" />
<label class="choice" for="Field">Keep me signed in</label>
</span>
-->
<button class="button btn btn-warning btn-large">Sign In</button>
</div> <!-- .actions -->
<!--
<div class="login-social">
<p>Sign in using social network:</p>
<div class="twitter">
<a href="#" class="btn_1">Login with Twitter</a>
</div>
<div class="fb">
<a href="#" class="btn_2">Login with Facebook</a>
</div>
</div>
-->
</form>
</div> <!-- /content -->
</div> <!-- /account-container -->
<!-- Text Under Box -->
<div class="login-extra">
<!-- Don't have an account? <a href="./signup.html">Sign Up</a><br/> -->
Forgot your <a href="<?php echo URL::site('login/reset'); ?>">Password</a>?
</div> <!-- /login-extra -->

View File

@@ -0,0 +1,26 @@
<div class="pager pagination-centered">
<ul>
<li class="<?php echo $x=($page->first_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' :HTML::chars($page->url($page->first_page())) ?>" rel="first"><?php echo __('First') ?></a>
</li>
<li class="<?php echo $x=($page->previous_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' :HTML::chars($page->url($page->previous_page())) ?>" rel="prev"><?php echo __('Previous') ?></a>
</li>
<?php for ($i = 1; $i <= $page->total_pages(); $i++): ?>
<li class="<?php echo $x=($page->current_page() == $i) ? 'active disabled' : '' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($i)) ?>"><?php echo $i ?></a>
</li>
<?php endfor ?>
<li class="<?php echo $x=($page->next_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($page->next_page())) ?>" rel="next"><?php echo __('Next') ?></a>
</li>
<li class="<?php echo $x=($page->last_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($page->last_page())) ?>" rel="last"><?php echo __('Last') ?></a>
</li>
</ul>
</div>

View File

@@ -0,0 +1,76 @@
<?php
/*
First Previous 1 2 3 ... 22 23 24 25 26 [27] 28 29 30 31 32 ... 48 49 50 Next Last
*/
// Number of page links in the begin and end of whole range
$count_out = (! empty($config['count_out'])) ? (int)$config['count_out'] : 2;
// Number of page links on each side of current page
$count_in = (! empty($config['count_in'])) ? (int)$config['count_in'] : 2;
// Beginning group of pages: $n1...$n2
$n1 = 1;
$n2 = min($count_out,$page->total_pages());
// Ending group of pages: $n7...$n8
$n7 = max(1,$page->total_pages()-$count_out+1);
$n8 = $page->total_pages();
// Middle group of pages: $n4...$n5
$n4 = max($n2+1,$page->current_page()-$count_in);
$n5 = min($n7-1,$page->current_page()+$count_in);
$use_middle = ($n5 >= $n4);
// Point $n3 between $n2 and $n4
$n3 = (int)(($n2+$n4)/2);
$use_n3 = ($use_middle && (($n4-$n2)>1));
// Point $n6 between $n5 and $n7
$n6 = (int)(($n5+$n7)/2);
$use_n6 = ($use_middle && (($n7-$n5)>1));
// Links to display as array(page => content)
$links = array();
// Generate links data in accordance with calculated numbers
for ($i = $n1; $i <= $n2; $i++)
$links[$i] = $i;
if ($use_n3)
$links[$n3] = '&hellip;';
for ($i = $n4; $i <= $n5; $i++)
$links[$i] = $i;
if ($use_n6)
$links[$n6] = '&hellip;';
for ($i = $n7; $i <= $n8; $i++)
$links[$i] = $i;
?>
<div class="pager pagination-centered">
<ul>
<li class="<?php echo $x=($page->first_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' :HTML::chars($page->url($page->first_page())) ?>" rel="first"><?php echo __('First') ?></a>
</li>
<li class="<?php echo $x=($page->previous_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' :HTML::chars($page->url($page->previous_page())) ?>" rel="prev"><?php echo __('Previous') ?></a>
</li>
<?php foreach ($links as $number => $content): ?>
<li class="<?php echo $x=($page->current_page() == $number) ? 'active disabled' : '' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($number)) ?>"><?php echo $content ?></a>
</li>
<?php endforeach ?>
<li class="<?php echo $x=($page->next_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($page->next_page())) ?>" rel="next"><?php echo __('Next') ?></a>
</li>
<li class="<?php echo $x=($page->last_page() !== FALSE) ? '' : 'disabled' ?>">
<a href="<?php echo $x ? '#' : HTML::chars($page->url($page->last_page())) ?>" rel="last"><?php echo __('Last') ?></a>
</li>
</ul>
</div>

View File

@@ -0,0 +1,7 @@
<tr>
<?php foreach ($td as $col => $details) { ?>
<td>
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>
</td>
<?php } ?>
</tr>

View File

@@ -0,0 +1 @@
</table>

View File

@@ -0,0 +1,2 @@
<table class="table table-striped table-condensed" id="list-table">
<tr><th><?php echo implode('</th><th>',$th); ?></th></tr>

View File

@@ -0,0 +1 @@
<tr><td>Other</td><td colspan="<?php echo count($td)-1; ?>"><?php printf('(%s) %s',$count,$other); ?></td></tr>

View File

@@ -1,11 +1,9 @@
</table>
<footer>
<div class="control-group">
<div class="controls">
<?php echo $button; ?>
<button type="submit" name="Submit" class="form_button" id="all_on">Select All</button>
<button type="submit" name="Submit" class="form_button" id="all_off">Deselect All</button>
<button type="submit" name="Submit" class="form_button" id="toggle">Toggle Select</button>
</div>
</div>
</footer>
<!--
<div class="btn-group pull-center">
<?php #echo $button; ?>
<button type="submit" name="Submit" class="btn" id="all_on">Select All</button>
<button type="submit" name="Submit" class="btn" id="all_off">Deselect All</button>
<button type="submit" name="Submit" class="btn" id="toggle">Toggle Select</button>
</div>
-->

View File

@@ -1,2 +1,2 @@
<table class="table table-striped table-condensed" id="select-table">
<table class="table table-striped table-condensed table-hover" id="select-table">
<tr><th>&nbsp;</th><th><?php echo implode('</th><th>',$th); ?></th></tr>

View File

@@ -0,0 +1,119 @@
<!DOCTYPE html>
<html>
<head>
<title><?php echo $meta->title; ?></title>
<link rel="shortcut icon" href="<?php echo $meta->shortcut_icon ? $meta->shortcut_icon : '/favicon.ico' ?>" type="image/vnd.microsoft.icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="<?php echo $meta->language; ?>" />
<meta name="keywords" content="<?php echo $meta->keywords; ?>" />
<meta name="description" content="<?php echo $meta->description; ?>" />
<meta name="copyright" content="<?php echo Config::copywrite(); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<?php
if (Kohana::$environment >= Kohana::TESTING) {
echo HTML::style('media/theme/bootstrap/css/bootstrap.min.css');
echo HTML::style('media/theme/bootstrap/css/bootstrap-responsive.min.css');
echo HTML::style('media/vendor/font-awesome/css/font-awesome.min.css');
// @todo Work out how to delay this loading until required
echo HTML::style('media/theme/bootstrap/vendor/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css');
} else {
// @todo - This protocol should be ommitted so that http/https is used as appropriate
echo HTML::style('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap.min.css');
echo HTML::style('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css');
echo HTML::style('http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css');
// @todo Work out how to delay this loading until required
echo HTML::style('http://cdn.jsdelivr.net/bootstrap.wysihtml5/0.0.2/bootstrap-wysihtml5-0.0.2.css');
}
echo HTML::style('http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,800italic,400,600,800');
echo HTML::style('media/css/ui-lightness/jquery-ui-1.10.0.custom.min.css');
echo HTML::style('media/theme/baseadmin/css/base-admin-2.css');
echo HTML::style('media/theme/baseadmin/css/base-admin-2-responsive.css');
echo HTML::style('media/theme/baseadmin/css/custom.css');
echo Style::factory()->render_all();
?>
</head>
<body>
<?php if (! empty($shownavbar)) : ?>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><i class="icon-cog"></i> </a>
<a class="brand" href="<?php echo URL::site(); ?>"><?php echo Config::sitename(); ?><sup></sup></a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<?php echo $navbar; ?>
</ul>
<form class="navbar-search pull-right">
<input type="text" class="search-query" placeholder="Search" disabled>
</form>
</div><!--/.nav-collapse -->
</div> <!-- /container -->
</div> <!-- /navbar-inner -->
</div> <!-- /nvarbar -->
<div class="subnavbar">
<div class="subnavbar-inner">
<div class="container">
<a class="btn-subnavbar collapsed" data-toggle="collapse" data-target=".subnav-collapse">
<i class="icon-reorder"></i>
</a>
<div class="subnav-collapse collapse">
<ul class="mainnav">
<li class="">
<a href="<?php echo URL::link('user','welcome',TRUE); ?>"><i class="icon-home"></i> <span>Home</span></a>
</li>
</ul>
</div> <!-- /.subnav-collapse -->
</div> <!-- /container -->
</div> <!-- /subnavbar-inner -->
</div> <!-- /subnavbar -->
<?php endif ?>
<div class="error_container">
<div class="error_details">
<div class="row">
<div class="span10 offset2">
<?php echo SystemMessage::factory()->render_all(); ?>
</div>
</div> <!-- /row -->
</div> <!-- /error_details -->
</div> <!-- /error_container -->
<div class="main">
<div class="container">
<div class="widget-content">
<?php echo $content; ?>
</div> <!-- /widget-content -->
</div> <!-- /container -->
</div> <!-- /main -->
<?php
if (Kohana::$environment >= Kohana::TESTING) {
echo HTML::script('media/js/jquery/jquery-1.9.1.min.js');
echo HTML::script('media/theme/bootstrap/js/bootstrap.min.js');
// @todo Work out how to delay this loading until required
echo HTML::script('media/theme/bootstrap/vendor/bootstrap-wysihtml5-0.0.2/libs/js/wysihtml5-0.3.0_rc2.min.js');
echo HTML::script('media/theme/bootstrap/vendor/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min.js');
} else {
echo HTML::script('http://code.jquery.com/jquery-1.9.1.min.js');
echo HTML::script('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js');
// @todo Work out how to delay this loading until required
echo HTML::script('http://cdn.jsdelivr.net/wysihtml5/0.3.0/wysihtml5-0.3.0.min.js');
echo HTML::script('http://cdn.jsdelivr.net/bootstrap.wysihtml5/0.0.2/bootstrap-wysihtml5-0.0.2.min.js');
}
echo HTML::script('media/theme/baseadmin/js/custom.js');
echo Script::factory()->render_all();
?>
</body>
</html>

View File

View File

@@ -0,0 +1 @@
<span class="label <?php echo $label; ?>" style="font-weight: normal;"><?php echo $status; ?></span>

View File

@@ -0,0 +1,105 @@
<!DOCTYPE html>
<html>
<head>
<title><?php echo $meta->title; ?></title>
<link rel="shortcut icon" href="<?php echo $meta->shortcut_icon ? $meta->shortcut_icon : '/favicon.ico' ?>" type="image/vnd.microsoft.icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="<?php echo $meta->language; ?>" />
<meta name="keywords" content="<?php echo $meta->keywords; ?>" />
<meta name="description" content="<?php echo $meta->description; ?>" />
<meta name="copyright" content="<?php echo Config::copywrite(); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<?php
if (Kohana::$environment >= Kohana::TESTING) {
echo HTML::style('media/theme/bootstrap/css/bootstrap.min.css');
echo HTML::style('media/theme/bootstrap/css/bootstrap-responsive.min.css');
echo HTML::style('media/vendor/font-awesome/css/font-awesome.min.css');
} else {
// @todo - This protocol should be ommitted so that http/https is used as appropriate
echo HTML::style('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap.min.css');
echo HTML::style('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css');
echo HTML::style('http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css');
}
echo HTML::style('http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,800italic,400,600,800');
echo HTML::style('media/theme/focusbusiness/css/focus-1.1.css');
echo HTML::style('media/theme/focusbusiness/css/focus-1.1-responsive.css');
echo HTML::style('media/theme/focusbusiness/css/custom.css');
echo Style::factory()->render_all();
?>
</head>
<body>
<div id="wrapper" class="clearfix">
<div id="header">
<h1 id="title"><a href="<?php echo URL::site('/'); ?>"><?php echo Config::sitename(); ?><sup>+</sup></a></h1>
</div> <!-- /header -->
<div id="nav" class="clearfix">
<div class="container">
<?php echo $navbar; ?>
</div> <!-- /container -->
</div> <!-- /nav -->
<div id="content">
<?php echo $content; ?>
</div> <!-- /content -->
<div id="footer">
<div class="container">
<div class="row">
<div class="grid-4">
<h1 id="footer-logo">Focus Business</h1>
<p></p>
</div>
<div class="grid-4">
<h3><span class="slash">//</span> Socialise with us!</h3>
<p>Connect with us online:</p>
<ul class="social-icons-container">
<li>
<a href="javascript:;" class="social-icon social-icon-twitter">Twitter</a>
</li>
<li>
<a href="javascript:;" class="social-icon social-icon-googleplus">Google +</a>
</li>
<li>
<a href="javascript:;" class="social-icon social-icon-facebook">Facebook</a>
</li>
</ul>
</div> <!-- /grid-4 -->
<div class="grid-4">
<h3><span class="slash">//</span> Contact Us</h3>
<address>
<strong><?php echo Company::instance()->name(); ?></strong><br/>
<i class="icon-map-marker"></i> <?php echo Company::instance()->address(); ?><br/>
<i class="icon-phone"></i> <?php echo Company::instance()->phone(); ?><br/>
<i class="icon-envelope"></i> <?php echo Company::instance()->email(); ?>
</address>
</div> <!-- /grid-4 -->
</div> <!-- /row -->
</div> <!-- /container -->
</div> <!-- /footer -->
</div> <!-- /wrapper -->
<?php
if (Kohana::$environment >= Kohana::TESTING) {
echo HTML::script('media/js/jquery/jquery-1.9.1.min.js');
echo HTML::script('media/theme/bootstrap/js/bootstrap.min.js');
} else {
echo HTML::script('http://code.jquery.com/jquery-1.9.1.min.js');
echo HTML::script('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js');
}
echo HTML::script('media/theme/focusbusiness/js/focus.js');
echo Script::factory()->render_all();
?>
</body>
</html>