-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitepage.hbs
106 lines (96 loc) · 4.81 KB
/
sitepage.hbs
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{{!
ADOBE CONFIDENTIAL
__________________
Copyright 2014 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: All information contained herein is, and remains
the property of Adobe Systems Incorporated and its suppliers,
if any. The intellectual and technical concepts contained
herein are proprietary to Adobe Systems Incorporated and its
suppliers and are protected by trade secret or copyright law.
Dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from Adobe Systems Incorporated.
}}
<nav class="scf-site-header navbar navbar-default hidden-xs" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a class="navbar-brand scf-js-site-title" data-id="{{siteId}}" href="{{siteUrl}}.html">{{i18n siteTitle}}</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse">
{{#if loggedInUser.loggedIn}}
<ul class="nav navbar-nav">
<li><a href="{{siteUrl}}/profile.html">{{i18n "Profile"}}</a></li>
{{#if messagingAllowed}}
<li>
<script>
var data = {};
data["messageFolder"] = "inbox";
var messagecount;
$.ajax({
type: "GET",
url: "{{siteUrl}}" + "/messaging/jcr:content/content/primary/messagebox_5ab3.social.0.0.json",
async: true,
data: data,
success: function(json) {
messagecount = json["messageCounts"].nonDeletedUnreadCount;
$("a.messageBoxPrimaryLink").html($("a.messageBoxPrimaryLink").html() + " <span class=\"badge\">" + messagecount + "</span>");
}
});
</script>
<a href="{{siteUrl}}/messaging.html" class="messageBoxPrimaryLink">{{i18n "Messages"}}</a>
</li>
{{/if}}
<li>
<a href="{{siteUrl}}/notifications.html">
{{i18n "Notifications"}} <span class="badge" id="scf-js-notificationsUnreadCount" data-siteUrl="{{siteUrl}}">0</span>
</a>
</li>
</ul>
{{/if}}
<div class="nav navbar-right">
<form data-paths="{{this.ugcPath}}" class="scf-js-searchform navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" name="input_value" placeholder="{{i18n "Search..."}}" class="form-control scf-search-value, scf-js-search-value">
<input style="display:none" type="checkbox" class="scf-js-search-jcrtitle" value="jcr:title" checked></input>
<input style="display:none" type="checkbox" class="scf-js-search-jcrdescription" value="jcr:description" checked></input>
<input style="display:none" type="checkbox" class="scf-js-search-tag" value="tag" checked></input>
<input style="display:none" type="checkbox" class="scf-js-search-userIdentifier" value="userIdentifier" checked></input>
<input type="hidden" name="resultPage" class="scf-js-seach-resultPage" value="{{searchPagePath}}"></input>
</div>
</form>
<ul class="nav navbar-nav navbar-right">
{{#unless loggedInUser.loggedIn}}
<li><a href="{{siteUrl}}/signin.html">{{i18n "Log In"}}</a></li>
{{else}}
<li><a href="/system/sling/logout.html?resource={{siteUrl}}.html">{{i18n "Log Out"}}</a></li>
{{/unless}}
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<div class="jumbotron">
<div class="container">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more »</a></p>
</div>
</div>
{{#include this.id path="sitenav" resourceType="social/console/components/hbs/sitenavbar" }}
{"searchPath":"{{ugcPath}}","searchPage":"{{searchPagePath}}"}
{{/include}}
{{include this.id path="groupnav" resourceType="social/console/components/hbs/groupnavbar"}}
<div class="container-fluid scf-site-body-content-container">
<div class="row scf-breadcrumbs-box">
<div class="col-md-12">
{{include this.id path="content/breadcrumbs"}}
</div>
</div>
{{include this.id path="content"}}
</div>
{{include this.id path="clientcontext" resourceType="cq/personalization/components/clientcontext"}} {{include this.id path="cloudservices" resourceType="cq/cloudserviceconfigs/components/servicecomponents"}}