/
template-top.xhtml
86 lines (72 loc) · 4.21 KB
/
template-top.xhtml
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
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
template="/admin-top.xhtml">
<ui:define name="head">
<h:outputStylesheet library="css" name="showcase.css"/>
<h:outputStylesheet library="css" name="prism.css"/>
<link rel="shortcut icon" type="image/x-icon" href="#{resource['favicon/favicon.ico']}"/>
<link rel="shortcut icon" type="image/x-icon" href="#{resource['favicon/favicon-16x16.png']}" sizes="16x16"/>
<link rel="shortcut icon" type="image/x-icon" href="#{resource['favicon/favicon-32x32.png']}" sizes="32x32"/>
<link rel="shortcut icon" type="image/x-icon" href="#{resource['favicon/favicon-96x96.png']}" sizes="96x96"/>
<link rel="shortcut icon" type="image/x-icon" href="#{resource['favicon/favicon-144x144.png']}" sizes="144x144"/>
<!-- See https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android -->
<meta name="theme-color" content="#444"/>
<meta name="mobile-web-app-capable" content="yes"/>
<f:loadBundle var="theme" basename="admin-theme"/>
<title>AdminFaces Showcase</title>
</ui:define>
<ui:define name="logo">
<b>Admin</b>Faces
</ui:define>
<ui:define name="menu">
<ui:include src="/includes/menubar.xhtml"/>
</ui:define>
<ui:define name="top-menu">
<ui:include src="/includes/top-menu.xhtml"/>
</ui:define>
<ui:define name="content-end">
<section class="content">
<ui:insert name="code"/>
</section>
</ui:define>
<!-- below is just an example on how to define more tabs for control sidebar -->
<ui:define name="controlsidebar-tabs">
<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
</ui:define>
<ui:define name="controlsidebar-content">
<ui:include src="/includes/controlsidebar-tabs-content.xhtml"/>
</ui:define>
<ui:define name="footer">
<div style="display: inline">
<p:tooltip for="admin-footer" escape="false" position="top"
showEvent="mouseover" hideEvent="mouseleave" hideDelay="2500"
value="Using <a href='https://github.com/adminfaces/admin-template'
target='_blank'>Admin Template <span style='font-weight: 600'>
#{adm['admin.version']}</span></a>,
<a href='https://github.com/adminfaces/admin-theme'
target='_blank'>Admin theme <span style='font-weight: 600'>
#{adm['admin.version']}</span></a> and <a href='https://primefaces.org/'
target='_blank'>PrimeFaces <span style='font-weight: 600'>
#{msg['primefaces.version']}</span></a>
"/>
Powered by <h:link value="AdminFaces - © 2017-2019" id="admin-footer" href="#" onclick="void(0);return false"/>
<div class="pull-right " style="color: gray">
Page views: <h:link id="link-stats" href="#" onclick="void(0);return false"> <span
style="font-weight: 600"> #{analyticsMB.pageStats.totalPageViews}</span></h:link>
</div>
<p:tooltip for="link-stats" escape="false" position="top"
showEvent="mouseover" hideEvent="mouseleave" style="width: 150px"
value="Unique visitors: <div
style='font-weight: 600;color:#3c8dbc;display:inline'> #{analyticsMB.pageStats.uniquePageViews}</div>"/>
</div>
</ui:define>
<ui:define name="after-wrapper">
<h:outputScript library="js" name="prism.js" target="head"/>
<h:outputScript library="js" name="showcase.js" target="head"/>
</ui:define>
</ui:composition>