-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccess_denied.main.php
More file actions
271 lines (231 loc) · 8.87 KB
/
access_denied.main.php
File metadata and controls
271 lines (231 loc) · 8.87 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<?php
/**
* This file is the template that displays an access denied for non-members
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://b2evolution.net/man/skin-development-primer}
*
* @package evoskins
* @subpackage bootstrap
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
global $app_version, $disp, $Blog;
if( version_compare( $app_version, '5.0' ) < 0 )
{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
die( 'This skin is designed for b2evolution 5.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php', array() );
// -------------------------------- END OF HEADER --------------------------------
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include( '_site_body_header.inc.php' );
// ------------------------------- END OF SITE HEADER --------------------------------
?>
<div class="container-fluid">
<div class="row">
<?php
if( $Skin->show_container_when_access_denied( 'Header' ) )
{ // Display 'Page Top' widget container
?>
<div class="headpicture">
<div class="headipic_section <?php
if( $Skin->get_setting( 'header_content_pos' ) == 'center_pos' ) {
echo 'center';
} elseif( $Skin->get_setting( 'header_content_pos' ) == 'left_pos' ){
echo 'left';
} elseif( $Skin->get_setting( 'header_content_pos' ) == 'right_pos' ){
echo 'right';
}
?>">
<?php
if( $Skin->get_setting( 'header_content_pos' ) == 'column_pos' ) {
echo '<div class="container">';
}
skin_container( NT_('Header'), array(
) );
if( $Skin->get_setting( 'header_content_pos' ) == 'column_pos' ) {
echo '</div>';
}
?>
</div>
</div>
<?php } ?>
<?php
if( $Skin->show_container_when_access_denied( 'Menu' ) )
{ // Display 'Page Top' widget container
?>
<nav class="top-menu container-fluid">
<div class="row">
<!-- Brand and toggle get grouped for better mobile display -->
<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_inline' ) {
echo '<div class="container menu_inline_container">';
} ?>
<div class="navbar-header<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_center' ) { echo ' navbar-header-center'; } ?>">
<button type="button" class="navbar-toggle navbar-toggle-hamb collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
if( $Skin->get_setting( 'top_menu_brand' ) ) {
// ------------------------- "Menu" Collection title --------------------------
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_title',
// Optional display params
'block_start' => '<div class="navbar-brand">',
'block_end' => '</div>',
'item_class' => 'navbar-brand',
) );
// ------------------------- "Menu" Collection logo --------------------------
}
?>
</div><!-- /.navbar-header -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_center' ) { echo ' menu_center'; } ?>" id="navbar-collapse-1">
<ul class="navbar-nav evo_container evo_container__menu" id="menu">
<?php
// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
// Note: this container is designed to be a single <ul> list
skin_container( NT_('Menu'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '<li class="evo_widget $wi_class$">',
'item_end' => '</li>',
'item_selected_start' => '<li class="active evo_widget $wi_class$">',
'item_selected_end' => '</li>',
'item_title_before' => '',
'item_title_after' => '',
) );
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
</ul>
</div><!-- .collapse -->
<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_inline' ) {
echo '</div><!-- .container -->';
} ?>
</div><!-- .row -->
</nav><!-- .top-menu -->
<?php } ?>
</div>
</div>
<div class="container">
<!-- =================================== START OF MAIN AREA =================================== -->
<div class="row">
<div class="col-md-12">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>',
) );
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------
request_title( array(
'title_before' => '<h2>',
'title_after' => '</h2>',
'title_none' => '',
'glue' => ' - ',
) );
// ----------------------------- END OF REQUEST TITLE ----------------------------
?>
<p class="center"><?php echo T_( 'You are not a member of this collection, therefore you are not allowed to access it.' ); ?></p>
</div>
</div>
</div>
<?php
if( $Skin->show_container_when_access_denied( 'footer' ) )
{ // Display 'Footer' widget container
?>
<!-- =================================== START OF FOOTER =================================== -->
<footer class="footer">
<div class='container'>
<div class="row">
<?php
// Display container and contents:
skin_container( NT_("Footer"), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '<div class="widget $wi_class$">',
'block_end' => '</div>',
'block_title_start' => '<div class="panel-heading"><h4 class="panel-title">',
'block_title_end' => '</h4></div>',
'block_body_start' => '<div class="panel-body">',
'block_body_end' => '</div>',
) );
// Note: Double quotes have been used around "Footer" only for test purposes.
?>
<div class="footer_note__wrapper clear">
<p class="footer_note">
<?php
// Display footer text (text can be edited in Blog Settings):
$Blog->footer_text( array(
'before' => '',
'after' => ' • ',
) );
?>
<?php
// Display a link to contact the owner of this blog (if owner accepts messages):
$Blog->contact_link( array(
'before' => '',
'after' => ' • ',
'text' => T_('Contact'),
'title' => T_('Send a message to the owner of this blog...'),
) );
// Display a link to help page:
$Blog->help_link( array(
'before' => ' ',
'after' => ' ',
'text' => T_('Help'),
) );
?>
<?php
if($Skin->get_setting('b2evo_credits')==true) {
// Display additional credits:
// If you can add your own credits without removing the defaults, you'll be very cool :))
// Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
credits( array(
'list_start' => '•',
'list_end' => ' ',
'separator' => '•',
'item_start' => ' ',
'item_end' => ' ',
) );
}
?>
</p>
<?php
if($Skin->get_setting('footer_links')==true) {
skin_widget( array(
// CODE for the widget:
'widget' => 'user_links',
) );
}
?>
</div>
</div>
</div>
</footer>
<?php } ?>
<?php
// ---------------------------- SITE FOOTER INCLUDED HERE ----------------------------
// If site footers are enabled, they will be included here:
siteskin_include( '_site_body_footer.inc.php' );
// ------------------------------- END OF SITE FOOTER --------------------------------
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>