silverstrap 

silverstrap Commit Details

Date:2013-06-14 10:59:07 (6 years 3 months ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:b86e184b854fbfbe802cdc29d5e12dcbbaa9124e
Parents: d98c894e850e3df77af627f1a37e7275b4fd62bc
Message:Templates are now more modular

Instead of using incipit/explicit, modularized the templates to be based
on the functionality provided (JQuery, Bootstrap and silverstrap). This
will likely result in a more comprehensible structure.
Changes:
Dtemplates/Includes/Head.ss (full)
Dtemplates/Includes/Incipit.ss
Rtemplates/Includes/Explicit.ss → templates/Includes/JQuery.ss
Atemplates/Includes/Bootstrap.ss (full)
Mtemplates/Includes/Sitemap.ss (1 diff)
Mtemplates/Page.ss (1 diff)

File differences

templates/Includes/Bootstrap.ss
1
2
3
<% require themedCSS(bootstrap.min.css) %>
<% require themedCSS(bootstrap-responsive.min.css) %>
<script src="$ThemeDir/js/bootstrap.min.js"></script>
templates/Includes/Explicit.ss
1
2
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script>
<script src="$ThemeDir/js/bootstrap.min.js"></script>
templates/Includes/Head.ss
1
2
3
4
5
6
7
8
9
<title>$Title</title>
<meta name="author" content="eNTiDi">
<link rel="shortcut icon" href="$ThemeDir/img/favicon.ico">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="$ThemeDir/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="$ThemeDir/css/bootstrap-responsive.min.css" rel="stylesheet">
<% require themedCSS(silverstrap) %>
templates/Includes/JQuery.ss
1
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script>
templates/Includes/Sitemap.ss
1
2
3
4
5
6
7
8
9
10
11
1
2
3
4
5
6
7
8
9
10
11
12
1213
1314
1415
15
<div class="well">
<div class="container">
<div class="row">
<div class="span12"><% loop $Menu(1) %><% if $Children %>
<div class="span2" style="width: 15%;">
<ul class="unstyled">
<li><strong><a href="$Link" title="$Title">$MenuTitle</a></strong><li>
<li class="divider-vertical"></li><% loop $Children %>
<li><a href="$Link" title="$Title">$MenuTitle</a><li><% end_loop %>
</ul>
</div><% end_if %><% end_loop %>
<div class="well well-large">
<div class="container">
<div class="row">
<div class="span12"><% loop $Menu(1) %><% if $Children %>
<div class="span2" style="width: 15%;">
<ul class="unstyled">
<li><strong><a href="$Link" title="$Title">$MenuTitle</a></strong><li>
<li class="divider-vertical"></li><% loop $Children %>
<li><a href="$Link" title="$Title">$MenuTitle</a><li><% end_loop %>
</ul>
</div><% end_if %><% end_loop %>
</div>
</div>
</div>
</div>
</div>
templates/Page.ss
22
33
44
5
6
7
8
5
6
7
8
9
10
11
12
13
914
1015
1116
12
13
14
15
16
17
17
18
19
20
21
22
23
1824
1925
2026
<html lang="$Lang">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<% base_tag %>
<% include Head %>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<% base_tag %>
<title>$Title</title>
<meta name="author" content="eNTiDi">
<link rel="shortcut icon" href="$ThemeDir/img/favicon.ico">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target=".toc">
<% include Incipit %>
<% include Navbar %>
$Layout
<% include Sitemap %>
<% include Footer %>
<% include Explicit %>
<% include Navbar %>
$Layout
<% include Sitemap %>
<% include Footer %>
<% include JQuery %>
<% include Bootstrap %>
<% require themedCSS(silverstrap) %>
</body>
</html>

Archive Download the corresponding diff file