Updated block and template to render regions
This commit is contained in:
@@ -20,10 +20,10 @@ feature {NONE} -- Initialization
|
|||||||
do
|
do
|
||||||
to_implement ("Refactor, take the info from a Database or Configuration file.")
|
to_implement ("Refactor, take the info from a Database or Configuration file.")
|
||||||
create items.make (5)
|
create items.make (5)
|
||||||
force (create {CMS_MENU}.make ("main-menu", 3))
|
force (create {CMS_MENU}.make ("main-menu", 3)) -- primary menu
|
||||||
force (create {CMS_MENU}.make_with_title ("management", "Management", 3))
|
force (create {CMS_MENU}.make_with_title ("management", "Management", 3)) -- secondary in admin view.
|
||||||
force (create {CMS_MENU}.make_with_title ("navigation", "Navigation", 3))
|
force (create {CMS_MENU}.make_with_title ("navigation", "Navigation", 3)) -- secondary
|
||||||
force (create {CMS_MENU}.make_with_title ("user", "User", 3))
|
force (create {CMS_MENU}.make_with_title ("user", "User", 3)) -- first_side_bar
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ feature -- Hooks
|
|||||||
perms: detachable ARRAYED_LIST [READABLE_STRING_8]
|
perms: detachable ARRAYED_LIST [READABLE_STRING_8]
|
||||||
do
|
do
|
||||||
create lnk.make ("List of nodes", "/nodes")
|
create lnk.make ("List of nodes", "/nodes")
|
||||||
a_menu_system.main_menu.extend (lnk)
|
a_menu_system.navigation_menu.extend (lnk)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -201,6 +201,29 @@ feature -- Blocks
|
|||||||
l_region.extend (b)
|
l_region.extend (b)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
set_blocks (a_page: CMS_HTML_PAGE)
|
||||||
|
-- Set blocks to the current `a_page'
|
||||||
|
do
|
||||||
|
debug
|
||||||
|
fixme ("Experimental code")
|
||||||
|
end
|
||||||
|
-- top_header_block
|
||||||
|
set_header_block (a_page)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
set_header_block (a_page: CMS_HTML_PAGE)
|
||||||
|
do
|
||||||
|
if not main_menu.is_empty then
|
||||||
|
a_page.register_variable (main_menu, "primary_nav")
|
||||||
|
end
|
||||||
|
if not navigation_menu.is_empty then
|
||||||
|
a_page.register_variable (navigation_menu, "secondary_nav")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
get_blocks
|
get_blocks
|
||||||
do
|
do
|
||||||
fixme ("find a way to have this in configuration or database, and allow different order")
|
fixme ("find a way to have this in configuration or database, and allow different order")
|
||||||
@@ -616,18 +639,19 @@ feature -- Generation
|
|||||||
call_menu_alter_hooks (menu_system)
|
call_menu_alter_hooks (menu_system)
|
||||||
prepare_menu_system (menu_system)
|
prepare_menu_system (menu_system)
|
||||||
|
|
||||||
get_blocks
|
set_blocks (page)
|
||||||
across
|
-- get_blocks
|
||||||
regions as reg_ic
|
-- across
|
||||||
loop
|
-- regions as reg_ic
|
||||||
across
|
-- loop
|
||||||
reg_ic.item.blocks as ic
|
-- across
|
||||||
loop
|
-- reg_ic.item.blocks as ic
|
||||||
if attached {CMS_MENU_BLOCK} ic.item as l_menu_block then
|
-- loop
|
||||||
recursive_get_active (l_menu_block.menu, request)
|
-- if attached {CMS_MENU_BLOCK} ic.item as l_menu_block then
|
||||||
end
|
-- recursive_get_active (l_menu_block.menu, request)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
-- end
|
||||||
|
|
||||||
if attached title as l_title then
|
if attached title as l_title then
|
||||||
page.set_title (l_title)
|
page.set_title (l_title)
|
||||||
@@ -635,16 +659,16 @@ feature -- Generation
|
|||||||
page.set_title ("CMS::" + request.path_info)
|
page.set_title ("CMS::" + request.path_info)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- blocks
|
-- -- blocks
|
||||||
across
|
-- across
|
||||||
regions as reg_ic
|
-- regions as reg_ic
|
||||||
loop
|
-- loop
|
||||||
across
|
-- across
|
||||||
reg_ic.item.blocks as ic
|
-- reg_ic.item.blocks as ic
|
||||||
loop
|
-- loop
|
||||||
page.add_to_region (theme.block_html (ic.item), reg_ic.item.name)
|
-- page.add_to_region (theme.block_html (ic.item), reg_ic.item.name)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
common_prepare (page: CMS_HTML_PAGE)
|
common_prepare (page: CMS_HTML_PAGE)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ feature -- Conversion
|
|||||||
to_implement ("Maybe we need a SMARTY_CMS_REGION_TEMPLATE")
|
to_implement ("Maybe we need a SMARTY_CMS_REGION_TEMPLATE")
|
||||||
to_implement ("Provide a default Menu using HTML hardcoded, maybe using the Default or providing a default implementation in CMS_THEME.menu_html")
|
to_implement ("Provide a default Menu using HTML hardcoded, maybe using the Default or providing a default implementation in CMS_THEME.menu_html")
|
||||||
-- Use the similar pattern to SMARTY_CMS_PAGE_TEMPLATE, with a different prepare
|
-- Use the similar pattern to SMARTY_CMS_PAGE_TEMPLATE, with a different prepare
|
||||||
-- feature.
|
-- feature
|
||||||
create tpl.make ("tpl/menu", Current)
|
create tpl.make ("tpl/menu", Current)
|
||||||
create l_page.make
|
create l_page.make
|
||||||
l_page.register_variable (a_menu, "menu")
|
l_page.register_variable (a_menu, "menu")
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
|
|
||||||
<!--<header class="main-navi">
|
|
||||||
{include file="master2/header.tpl"/}
|
|
||||||
</header> -->
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{include file="master2/content.tpl"/}
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="$web"}
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if condition="$html"}
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
<div itemscope itemtype="http://schema.org/ItemList">
|
|
||||||
<h2 itemprop="name">Top most recent nodes</h2><br>
|
|
||||||
<meta itemprop="itemListOrder" content="Descending" />
|
|
||||||
|
|
||||||
{foreach from="$nodes" item="item"}
|
|
||||||
<div class="page-header">
|
|
||||||
<h3><span itemprop="itemListElement"><a href="{$host/}/node/{$item.id/}" rel="node"><strong>{$item.title/}</strong></a></span> <small>{$item.summary/} - {$item.publication_date_output/} </small></h3>
|
|
||||||
</div>
|
|
||||||
{/foreach}
|
|
||||||
</div>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<h3> Error: {$code/} </h3>
|
|
||||||
|
|
||||||
{assign name="status400" value="400"/}
|
|
||||||
{assign name="status404" value="404"/}
|
|
||||||
{assign name="status500" value="500"/}
|
|
||||||
|
|
||||||
{if condition="$code ~ $status500"}
|
|
||||||
<p>Internal server error, for the request <strong>{$request/}</string> </p>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="$code ~ $status404"}
|
|
||||||
<p> Resourse not found, for the request <strong>{$request/}</string> </p>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if condition="$code ~ $status400"}
|
|
||||||
<p> Bad request, the request <strong>{$request/}</string> is not valid</p>
|
|
||||||
{/if}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<small>
|
|
||||||
<center>
|
|
||||||
<p class="text-muted"><a href="#" target="_blank" class="info">API Documentation </a>
|
|
||||||
<a href="#" target="_blank" class="info">Questions? Comments? Let us know! </a></p>
|
|
||||||
<p>© Copyright 2014 Eiffel Software -- <a href="#" target="_blank" class="info">Privacy Policy</a>
|
|
||||||
</center>
|
|
||||||
</small>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<meta charset="utf-8">
|
|
||||||
<link rel="icon" href="{$host/}/static/images/favicon.ico">
|
|
||||||
<title>Eiffel RESTonCMS</title>
|
|
||||||
{if condition="$web"}
|
|
||||||
{include file="master2/optional_styling_css.tpl"/}
|
|
||||||
{/if}
|
|
||||||
{if condition="$html"}
|
|
||||||
{include file="master2/optional_styling_css.tpl"/}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
<h1>RESTonCMS</h1>
|
|
||||||
<p>Tagline</p>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<p>You have successfully signed out</p>
|
|
||||||
|
|
||||||
You may want to return
|
|
||||||
|
|
||||||
Press this neat little button:<a href="{$host/}/">Take Me Home </a>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<!--<ul>
|
|
||||||
<li class="main-navi-item"><a href="">Nav1</a></li>
|
|
||||||
<li><a href="">Nav2</a></li>
|
|
||||||
</ul>
|
|
||||||
-->
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
|
||||||
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
|
||||||
{if condition="$web"}
|
|
||||||
<script src="{$host/}/static/js/roc.js"></script>
|
|
||||||
{/if}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{if condition="$html"}
|
|
||||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
|
||||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
|
|
||||||
<link rel="stylesheet" href="http://getbootstrap.com/assets/css/docs.min.css">
|
|
||||||
{/if}
|
|
||||||
{if condition="$web"}
|
|
||||||
<link rel="stylesheet" href="{$host/}/static/css/bootstrap.css">
|
|
||||||
<link rel="stylesheet" href="{$host/}/static/css/dashboard.css">
|
|
||||||
{/if}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
<nav id="" class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
|
|
||||||
<div class="container">
|
|
||||||
<div class="navbar-header">
|
|
||||||
<a class="navbar-brand" href="{$host/}" rel="home">Rest on CMS</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
<li class="ListOfNodes"><a title="Nodes" href="{$host/}/nodes" rel="node">List of Nodes</a></li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
{if isset="$user"}
|
|
||||||
<li><a>{$user/}</a></li>
|
|
||||||
<li><a title="Node" href="{$host/}/node" rel="node">New Node</a></li>
|
|
||||||
<li><a title="Logoff" href="{$host/}/logoff" rel="logoff">Logoff</a></li>
|
|
||||||
{/if}
|
|
||||||
{unless isset="$user"}
|
|
||||||
<li><a title="Login" href="{$host/}/login" rel="login">Login</a></li>
|
|
||||||
<li><a title="Register" href="{$host/}/user" rel="register">Register</a></li>
|
|
||||||
{/unless}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{if isset="$user"}
|
|
||||||
<a title="Logoff" class="" href="{$host/}/logoff">Logoff</a>
|
|
||||||
{/if}
|
|
||||||
{unless isset="$user"}
|
|
||||||
<a title="Login" class="" href="{$host/}/login">Login</a>
|
|
||||||
<a title="Register" class="" href="{$host/}/Register">Register</a>
|
|
||||||
{/unless}
|
|
||||||
<a title="Nodes" class="" href="{$host/}/nodes">List of Nodes</a>
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
<div class="bs-docs-example">
|
|
||||||
{if condition="$web"}
|
|
||||||
<ul id="myTab" class="nav nav-tabs" role="tablist">
|
|
||||||
<li class=""><a href="#view" role="tab" data-toggle="tab">View</a></li>
|
|
||||||
<li class="active"><a href="#edit" role="tab" data-toggle="tab">Edit</a></li>
|
|
||||||
<li class=""><a href="#delete" role="tab" data-toggle="tab">Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
{/if}
|
|
||||||
{if condition="$html"}
|
|
||||||
<ul id="myTab" class="nav nav-tabs" role="tablist">
|
|
||||||
<li class=""><a href="#view" role="tab" data-toggle="tab">View</a></li>
|
|
||||||
<li class="active"><a href="#edit" role="tab" data-toggle="tab">Edit</a></li>
|
|
||||||
<li class=""><a href="#delete" role="tab" data-toggle="tab">Delete</a></li>
|
|
||||||
</ul>
|
|
||||||
{/if}
|
|
||||||
<div id="myTabContent" class="tab-content">
|
|
||||||
<div class="tab-pane" id="view">
|
|
||||||
{if isset="$node"}
|
|
||||||
<hr>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row" itemscope itemtype="http://schema.org/Article">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6 col-md-4 col-lg-3"><h1><span itemprop="name">{$node.title/}</span></h1></div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6 col-md-4 col-lg-3"><span itemprop="text">{$node.content/}<span></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tab-pane fade active in" id="edit">
|
|
||||||
{if isset="$user"}
|
|
||||||
<hr>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="col-xs-12" itemscope itemtype="http://schema.org/Article">
|
|
||||||
{if isset="$node"}
|
|
||||||
<form class="form-inline well" action="{$host/}/node/{$node.id/}" itemprop="url" method="POST">
|
|
||||||
<input type="hidden" name="method" value="PUT">
|
|
||||||
{/if}
|
|
||||||
{unless isset="$node"}
|
|
||||||
<form class="form-inline well" action="{$host/}/node" itemprop="url" method="POST">
|
|
||||||
{/unless/}
|
|
||||||
<fieldset>
|
|
||||||
<legend>Edit Node</legend>
|
|
||||||
<div class="span3">
|
|
||||||
<p>Add or Edit a Node</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
{if isset="$node"}
|
|
||||||
<label><span itemprop="name"><a href="{$host/}/node/{$node.id/}/title" rel="node">Title:</a></span></label>
|
|
||||||
{/if}
|
|
||||||
{unless isset="$node"}
|
|
||||||
<label><span itemprop="name">Title:</span> </label>
|
|
||||||
{/unless}
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="title" type="text" class="form-control" name="title" placeholder="Title" required value="{$node.title/}"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
{if isset="$node"}
|
|
||||||
<label> <span itemprop="description"><a href="{$host/}/node/{$node.id/}/content" rel="node">Summary:</a></span></label>
|
|
||||||
{/if}
|
|
||||||
{unless isset="$node"}
|
|
||||||
<label> <span itemprop="description">Summary:</span></label>
|
|
||||||
{/unless}
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<textarea id="summary" rows="3" class="form-control" cols="100" name="summary" placeholder="Node summary" required>{$node.summary/}</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
{if isset="$node"}
|
|
||||||
<label> <span itemprop="text"><a href="{$host/}/node/{$node.id/}/content" rel="node">Content</a></span> </label>
|
|
||||||
{/if}
|
|
||||||
{unless isset="$node"}
|
|
||||||
<label> <span itemprop="text">Content:</span> </label>
|
|
||||||
{/unless}
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<textarea id="content" rows="25" cols="100" class="form-control" name="content" placeholder="Node content" required>{$node.content/}</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Send" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane" id="delete">
|
|
||||||
{if isset="$user"}
|
|
||||||
<hr>
|
|
||||||
<div class="container-fluid">
|
|
||||||
|
|
||||||
{if isset="$node"}
|
|
||||||
<form action="{$host/}/node/{$node.id/}" method="POST" class="">
|
|
||||||
<input type="hidden" name="method" value="DELETE">
|
|
||||||
<fieldset>
|
|
||||||
<legend>Delete Node</legend>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Delete" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="col-xs-12" itemscope itemtype="http://schema.org/Article">
|
|
||||||
<form class="form-inline well" action="{$host/}/node/{$id/}/content" method="POST" class="">
|
|
||||||
<input type="hidden" name="method" value="PUT">
|
|
||||||
<fieldset>
|
|
||||||
<legend>Edit Node Content</legend>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<label> <span itemprop="text">Content:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<textarea id="content" rows="25" cols="100" class="form-control" name="content" placeholder="Node content" required>{$content/}</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Update" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="col-xs-12" itemscope itemtype="http://schema.org/Article">
|
|
||||||
<form class="form-inline well" action="{$host/}/node/{$id/}/summary" method="POST">
|
|
||||||
<input type="hidden" name="method" value="PUT">
|
|
||||||
<fieldset>
|
|
||||||
<legend>Edit Node Summary</legend>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<label> <span itemprop="text">Summary:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<textarea id="summary" rows="3" cols="80" name="summary" placeholder="Node summary" required>{$summary/}</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Send" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="col-xs-12" itemscope itemtype="http://schema.org/Article">
|
|
||||||
<form class="form-inline well" action="{$host/}/node/{$id/}/title" method="POST">
|
|
||||||
<input type="hidden" name="method" value="PUT">
|
|
||||||
<fieldset>
|
|
||||||
<legend>Edit Node Title</legend>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-1">
|
|
||||||
<label> <span itemprop="text">Title:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="title" type="text" name="title" placeholder="Title" required value="{$title/}"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Send" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
<div itemscope itemtype="http://schema.org/ItemList">
|
|
||||||
<h2 itemprop="name">List nodes</h2><br>
|
|
||||||
<meta itemprop="itemListOrder" content="Descending" />
|
|
||||||
|
|
||||||
{foreach from="$nodes" item="item"}
|
|
||||||
<div class="page-header">
|
|
||||||
<h3><span itemprop="itemListElement"><a href="{$host/}/node/{$item.id/}" rel="node"><strong>{$item.title/}</strong></a></span> <small>{$item.summary/} -{$item.publication_date_output/} </small></h3>
|
|
||||||
</div>
|
|
||||||
{/foreach}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
{if condition="html"}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{include file="master2/head.tpl"/}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{unless condition="$web"}
|
|
||||||
<!-- Site Navigation -->
|
|
||||||
{include file="master2/site_navigation.tpl"/}
|
|
||||||
{/unless}
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<hr>
|
|
||||||
<div class="row">
|
|
||||||
<main class="main">
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="col-xs-12" itemscope itemtype="http://schema.org/Person">
|
|
||||||
<form class="form-inline well" action="{$host/}/user" data-rel="user-register" method="POST" >
|
|
||||||
<fieldset>
|
|
||||||
<legend>Register</legend>
|
|
||||||
<div class="span3">
|
|
||||||
<p>Register new user</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-2">
|
|
||||||
<label><span itemprop="name">Username:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="username" type="text" name="username" placeholder="Username" required/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row" itemscope itemtype="http://schema.org/Text">
|
|
||||||
<div class="col-xs-2">
|
|
||||||
<label><span itemprop="accessCode">Password:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="password" type="password" name="password" placeholder="Password" required/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row" itemscope itemtype="http://schema.org/Text">
|
|
||||||
<div class="col-xs-2">
|
|
||||||
<label><span itemprop="accessCode">Re-type Password:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="check_password" type="password" name="check_password" placeholder="Password" required/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-2">
|
|
||||||
<label><span itemprop="email">Email:</span> </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-7">
|
|
||||||
<input id="email" type="email" name="email" placeholder="Email" required/>
|
|
||||||
</div>
|
|
||||||
s</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<label>
|
|
||||||
<span> </span>
|
|
||||||
<input type="Submit" value="Send" />
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{if condition="html"}
|
|
||||||
<div id="footer">
|
|
||||||
<footer class="site-footer">
|
|
||||||
{include file="master2/footer.tpl"/}
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{include file="master2/optional_enhancement_js.tpl"/}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{/if}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>ROC- Layout with defualt Regions</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
|
|
||||||
<style type="text/css">
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
|
||||||
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<head>
|
|
||||||
<title>ROC CMS - A responsive layout</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Page Top -->
|
|
||||||
{include file="tpl/page_top.tpl"/}
|
|
||||||
|
|
||||||
<!-- Body -->
|
|
||||||
<div class='container-fluid'>
|
|
||||||
|
|
||||||
<!-- Page Header -->
|
|
||||||
{include file="tpl/page_header.tpl"/}
|
|
||||||
|
|
||||||
<!-- General Page Content -->
|
|
||||||
<div id='content' class='row-fluid'>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Left Side Bard sidebar_first -->
|
|
||||||
{include file="tpl/left_sidebar.tpl"/}
|
|
||||||
|
|
||||||
<!-- Highlighted, Help, Content -->
|
|
||||||
<div class='span8 main'>
|
|
||||||
<!-- Highlighted Section -->
|
|
||||||
{include file="tpl/highlighted_section.tpl"/}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Help Section -->
|
|
||||||
{include file="tpl/help_section.tpl"/}
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Main Content Section -->
|
|
||||||
{include file="tpl/main_content.tpl"/}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Right Side Bard sidebar_second-->
|
|
||||||
{include file="tpl/right_sidebar.tpl"/}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--Page footer -->
|
|
||||||
{include file="tpl/page_footer.tpl"/}
|
|
||||||
|
|
||||||
<!-- Page Bottom -->
|
|
||||||
{include file="tpl/page_bottom.tpl"/}
|
|
||||||
</body>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -4,12 +4,20 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>ROC- Layout with defualt Regions</title>
|
<title>ROC- Layout with defualt Regions</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Latest compiled and minified CSS -->
|
||||||
|
|
||||||
|
<!-- Optional theme -->
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">
|
||||||
|
|
||||||
|
<!-- Latest compiled and minified JavaScript -->
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||||
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||||
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<head>
|
<head>
|
||||||
@@ -17,13 +25,16 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Page Top -->
|
<!-- Page Top -->
|
||||||
{$region_top/}
|
{if isset="$top"}
|
||||||
|
{$region_top/}
|
||||||
|
{/if}
|
||||||
<!-- Body -->
|
<!-- Body -->
|
||||||
<div class='container-fluid'>
|
<div class='container-fluid'>
|
||||||
|
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
{$region_header/}
|
<div id="header">
|
||||||
|
{include file="tpl/page_header.tpl"/}
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- General Page Content -->
|
<!-- General Page Content -->
|
||||||
<div id='content' class='row-fluid'>
|
<div id='content' class='row-fluid'>
|
||||||
|
|||||||
108
examples/roc_api/site/www/themes/bootstrap/roc_template -2.html
Normal file
108
examples/roc_api/site/www/themes/bootstrap/roc_template -2.html
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>ROC- Layout with defualt Regions</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||||
|
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<head>
|
||||||
|
<title>ROC CMS - A responsive layout</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Page Top -->
|
||||||
|
<!-- Page Header -->
|
||||||
|
<div class='container-fluid'>
|
||||||
|
<h1>ROC Layout with Defaul Regions</h1>
|
||||||
|
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="https://www2.eiffel.com/beta" itemprop="home" rel="home">Eiffel Support Site</a>
|
||||||
|
</div>
|
||||||
|
<div class="navbar-collapse collapse" itemscope="itemscope" itemtype="https://www2.eiffel.com/beta/profile/esa_api.xml#report" >
|
||||||
|
<ul class="nav navbar-nav navbar-left">
|
||||||
|
<li><a href="https://www2.eiffel.com/beta/reports" class="active" itemprop="all" rel="all">Reports</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href="https://www2.eiffel.com/beta/register" itemprop="register" rel="register">Register</a></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--<li><a class="login pull-right" data-toggle="modal" data-target="#myModalSignIn">Sign In</a></li> <! Custome Modal -->
|
||||||
|
<li id="login_pe" ><a href="https://www2.eiffel.com/beta/login" itemprop="login" rel="login">Sign In</a></li> <!-- Custome Modal -->
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<!--form class="navbar-form navbar-right">
|
||||||
|
<input type="text" class="form-control" placeholder="Search..."/>
|
||||||
|
</form -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id='content' class='row-fluid'>
|
||||||
|
<!-- Highlighted-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Left Side Bard sidebar_first -->
|
||||||
|
<div class='span2 sidebar'>
|
||||||
|
<h3>Left Sidebar</h3>
|
||||||
|
<ul class="nav nav-tabs nav-stacked">
|
||||||
|
<li><a href='#'>Another Link 1</a></li>
|
||||||
|
<li><a href='#'>Another Link 2</a></li>
|
||||||
|
<li><a href='#'>Another Link 3</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Highlighted, Help, Content -->
|
||||||
|
<div class='span8 main'>
|
||||||
|
<h1>Highlighted Section</h1>
|
||||||
|
<h2>Help Section</h2>
|
||||||
|
|
||||||
|
<h2>Main Content Section</h2>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.<p>
|
||||||
|
|
||||||
|
<p>Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Left Side Bard sidebar_second-->
|
||||||
|
<div class='span2 sidebar'>
|
||||||
|
<h3>Right Sidebar</h3>
|
||||||
|
<ul class="nav nav-tabs nav-stacked">
|
||||||
|
<li><a href='#'>Another Link 1</a></li>
|
||||||
|
<li><a href='#'>Another Link 2</a></li>
|
||||||
|
<li><a href='#'>Another Link 3</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--Page footer -->
|
||||||
|
<div id="footer">
|
||||||
|
<small>
|
||||||
|
<center>
|
||||||
|
<p class="text-muted"><a href="#" target="_blank" class="info">ROC Documentation </a>
|
||||||
|
<a href="http://www.eiffel.com/company/contact/" target="_blank" class="info">Questions? Comments? Let us know! </a></p>
|
||||||
|
<p>© Copyright 2014 Eiffel Software -- <a href="#" target="_blank" class="info">Privacy Policy</a>
|
||||||
|
</center>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Page Bottom -->
|
||||||
|
</body>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -4,12 +4,20 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>ROC- Layout with defualt Regions</title>
|
<title>ROC- Layout with defualt Regions</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Latest compiled and minified CSS -->
|
||||||
|
|
||||||
|
<!-- Optional theme -->
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">
|
||||||
|
|
||||||
|
<!-- Latest compiled and minified JavaScript -->
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
||||||
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
|
||||||
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<head>
|
<head>
|
||||||
@@ -18,33 +26,72 @@
|
|||||||
<body>
|
<body>
|
||||||
<!-- Page Top -->
|
<!-- Page Top -->
|
||||||
<!-- Page Header -->
|
<!-- Page Header -->
|
||||||
<div class='container-fluid'>
|
<!-- <div class='container-fluid'>
|
||||||
<h1>ROC Layout with Defaul Regions</h1>
|
<div class="container-fluid">
|
||||||
<div class='navbar navbar-inverse'>
|
<div class="navbar-header">
|
||||||
<div class='navbar-inner nav-collapse' style="height: auto;">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span>
|
||||||
<ul class="nav">
|
<span class="icon-bar"></span>
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<span class="icon-bar"></span>
|
||||||
<li><a href="#">Page One</a></li>
|
</button> <a class="navbar-brand" href="#">Eiffel ROC</a>
|
||||||
<li><a href="#">Page Two</a></li>
|
</div>
|
||||||
</ul>
|
<ul class="nav navbar-nav navbar-left">
|
||||||
</div>
|
<li> <a href="#about">Home</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
<li> <a href="#about">About</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="#services">Service</a>
|
||||||
|
</li>
|
||||||
|
<li> <a href="#portfolio" class="">Portfolio</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar navbar-default" role="navigation">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="https://www2.eiffel.com/beta" itemprop="home" rel="home">Eiffel Support Site</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" itemscope="itemscope" itemtype="https://www2.eiffel.com/beta/profile/esa_api.xml#report" >
|
||||||
|
<ul class="nav navbar-nav navbar-left">
|
||||||
|
<li><a href="https://www2.eiffel.com/beta/reports" class="active" itemprop="all" rel="all">Reports</a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href="https://www2.eiffel.com/beta/register" itemprop="register" rel="register">Register</a></li>
|
||||||
|
<li id="login_pe" ><a href="https://www2.eiffel.com/beta/login" itemprop="login" rel="login">Sign In</a></li> <!-- Custome Modal -->
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id='content' class='row-fluid'>
|
<div id='content' class='row-fluid'>
|
||||||
<!-- Highlighted-->
|
<!-- Highlighted-->
|
||||||
|
|
||||||
|
|
||||||
<!-- Left Side Bard sidebar_first -->
|
<!-- Left Side Bard sidebar_first -->
|
||||||
<div class='span2 sidebar'>
|
<div class="sidebar col-sm-2 col-md-2">
|
||||||
<h3>Left Sidebar</h3>
|
<h3>Left Sidebar</h3>
|
||||||
<ul class="nav nav-tabs nav-stacked">
|
<ul class="nav nav-tabs nav-stacked">
|
||||||
<li><a href='#'>Another Link 1</a></li>
|
<li><a href="#">Another Link 1</a></li>
|
||||||
<li><a href='#'>Another Link 2</a></li>
|
<li><a href="#">Another Link 2</a></li>
|
||||||
<li><a href='#'>Another Link 3</a></li>
|
<li><a href="#">Another Link 3</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Highlighted, Help, Content -->
|
<!-- Highlighted, Help, Content -->
|
||||||
<div class='span8 main'>
|
<div class="main col-sm-8 col-md-8">
|
||||||
<h1>Highlighted Section</h1>
|
<h1>Highlighted Section</h1>
|
||||||
<h2>Help Section</h2>
|
<h2>Help Section</h2>
|
||||||
|
|
||||||
@@ -55,14 +102,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Left Side Bard sidebar_second-->
|
<!-- Left Side Bard sidebar_second-->
|
||||||
<div class='span2 sidebar'>
|
|
||||||
|
<div class="sidebar col-sm-2 col-md-2">
|
||||||
<h3>Right Sidebar</h3>
|
<h3>Right Sidebar</h3>
|
||||||
<ul class="nav nav-tabs nav-stacked">
|
<ul class="nav nav-tabs nav-stacked">
|
||||||
<li><a href='#'>Another Link 1</a></li>
|
<li><a href="#">Another Link 1</a></li>
|
||||||
<li><a href='#'>Another Link 2</a></li>
|
<li><a href="#">Another Link 2</a></li>
|
||||||
<li><a href='#'>Another Link 3</a></li>
|
<li><a href="#">Another Link 3</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,35 @@
|
|||||||
<h1>{$page_title/}</h1>
|
<div class="navbar navbar-default" role="navigation">
|
||||||
<div class='navbar navbar-inverse'>
|
<div class="container-fluid">
|
||||||
<div class='navbar-inner nav-collapse' style="height: auto;">
|
<div class="navbar-header">
|
||||||
<ul class="nav">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
<li><a href="#">Page One</a></li>
|
</button>
|
||||||
<li><a href="#">Page Two</a></li>
|
<a class="navbar-brand" href="${site_url/}" itemprop="home" rel="home">{$site_name/}</a>
|
||||||
</ul>
|
<a class="navbar-brand" href="https://www2.eiffel.com/beta" itemprop="home" rel="home">Eiffel CMS</a>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse">
|
||||||
|
|
||||||
|
{if isset="$primary_nav"}
|
||||||
|
<ul class="nav navbar-nav navbar-left">
|
||||||
|
{foreach item="item" from="$primary_nav.items"}
|
||||||
|
<!-- TODO check if a menu item is active or not -->
|
||||||
|
<li class="active"><a href="{$item.location/}">{$item.title/}</a></li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if isset="$secondary_nav"}
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
{foreach item="item" from="$secondary_nav.items"}
|
||||||
|
<!-- TODO check if a menu item is active or not -->
|
||||||
|
<li class="active"><a href="{$item.location/}">{$item.title/}</a></li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<div class="navbar navbar-default" role="navigation">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
</button>
|
||||||
|
<!-- {$host/} or {$site_url} -->
|
||||||
|
<a class="navbar-brand" href="${host/}" itemprop="home" rel="home">{$site_name/}</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse">
|
||||||
|
|
||||||
|
{if isset="$primary_nav"}
|
||||||
|
{$primary_nav/}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if isset="$secondary_nav"}
|
||||||
|
{$secondary_nav/}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
Reference in New Issue
Block a user