/
layout.cfm
69 lines (58 loc) · 2.22 KB
/
layout.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<cfoutput>#application.admin.title#</cfoutput>
</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
<cfoutput>
#stylesheetLinkTag("base, jquery.treeTable.css, themes/blue/style.css, splash/jquery-ui-1.7.2.custom.css")#
#javascriptIncludeTag("jquery.treeTable.min.js,application")#
</cfoutput>
<cfif params.controller is "pages" and (params.action is "new" or params.action is "edit")>
<cfoutput>#javascriptIncludeTag("pages")#</cfoutput>
</cfif>
<cfif params.controller is "snippets" and (params.action is "new" or params.action is "edit")>
<cfoutput>#javascriptIncludeTag("snippets")#</cfoutput>
</cfif>
<script type="text/javascript">
$(document).ready(function(){
// this adds the nice hover state to all of our buttons
$('.ui-button').hover(function() {
$(this).addClass("ui-state-hover");
}, function() {
$(this).removeClass("ui-state-hover");
});
});
</script>
</head>
<body>
<div id="container">
<div id="header">
<cfoutput>
<h1>#linkTo(text="#application.admin.title#", route="admin_path")#</h1>
#includePartial('/shared/user_navigation')#
#includePartial('/shared/main_navigation')#
</cfoutput>
</div>
<div id="wrapper">
<div id="main">
<div class="block">
<cfoutput>
<!--- secondary navigation will go here if we ever need it --->
#includePartial("/shared/render_flash")#
</cfoutput>
<div class="content">
<div class="inner">
<cfoutput>#contentForLayout()#</cfoutput>
</div>
</div>
</div>
<cfoutput>#includePartial('/shared/footer')#</cfoutput>
</div>
</div>
</div>
</body>
</html>