/
index.main.php
executable file
·349 lines (321 loc) · 12.6 KB
/
index.main.php
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<?php
/**
* This skin only uses one single template which includes most of its features.
* It will also rely on default includes for specific dispays (like the comment form).
*
* The main page template is used to display the blog when no specific page template is available
* to handle the request (based on $disp).
*
* b2evolution Mystique skin v2.0.1
*
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
if( version_compare( $app_version, '3.0' ) < 0 )
{
die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}
// 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 --------------------------------
global $s, $ReqURI;
?>
<div id="page" class="<?php $Skin->body_class() ?>">
<!-- header -->
<div class="page-content header-wrapper">
<div id="header" class="bubbleTrigger">
<ul class="blog-list">
<?php
skin_container( NT_('Page Top'), array(
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '<li>',
'item_end' => '</li>',
) );
?>
</ul>
<div id="site-title" class="clearfix">
<?php
if( $blog_name = $Skin->get_setting('blog_name') )
{
if( preg_match( '~^https?://~', $blog_name, $match ) )
{
$blog_name = '<img src="'.$blog_name.'" alt="'.$Blog->get('name').'" />';
}
echo '<h1 id="logo"><a href="'.$Blog->get( 'url' ).'">'.$blog_name.'</a></h1>';
}
if( $Skin->get_setting('blog_tagline') )
{
echo '<p class="headline">'.$Skin->get_setting('blog_tagline').'</p>';
}
?>
</div>
<div class="shadow-left">
<div class="shadow-right clearfix">
<p class="nav-extra">
<?php
echo '<a href="'.$Blog->get( 'rss2_url' ).'" class="nav-extra" title="'.$Skin->T_('View RSS Feed').'"></a>';
if( $soc_user = $Skin->get_setting('twitter_user') )
{
echo '<a href="http://twitter.com/'.$soc_user.'" target="_blank" class="nav-extra" style="background-position:-64px top" title="'.$Skin->T_('Follow me on Twitter').'"></a>';
}
if( $soc_user = $Skin->get_setting('flickr_user') )
{
echo '<a href="http://www.flickr.com/people/'.$soc_user.'/" target="_blank" class="nav-extra" style="background-position:-128px top" title="'.$Skin->T_('Find me on Flickr').'"></a>';
}
if( $soc_user = $Skin->get_setting('facebook_user') )
{
echo '<a href="http://www.facebook.com/'.$soc_user.'" target="_blank" class="nav-extra" style="background-position:-192px top" title="'.$Skin->T_('Find me on Facebook').'"></a>';
}
if( $soc_user = $Skin->get_setting('myspace_user') )
{
echo '<a href="http://www.myspace.com/'.$soc_user.'" target="_blank" class="nav-extra" style="background-position:-256px top" title="'.$Skin->T_('Find me on MySpace').'"></a>';
}
if( $soc_user = $Skin->get_setting('linkedin_user') )
{
echo '<a href="http://www.linkedin.com/in/'.$soc_user.'" target="_blank" class="nav-extra" style="background-position:-320px top" title="'.$Skin->T_('Follow me on LinkedIn').'"></a>';
}
if( $soc_user = $Skin->get_setting('youtube_user') )
{
echo '<a href="http://www.youtube.com/user/'.$soc_user.'" target="_blank" class="nav-extra" style="background-position:-384px top" title="'.$Skin->T_('Follow me on Youtube').'"></a>';
}
?>
</p>
<!-- main navi -->
<ul id="navigation" class="clearfix">
<?php
// Home page link
echo '<li class="home active"><a class="home fadeThis active" href="'.$Blog->get( 'url' ).
'"><span class="title">'.$Skin->T_('Home').'</span></a></li>';
// "Menu" CONTAINER EMBEDDED HERE
ob_start();
skin_container( NT_('Menu'), array(
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '<li>',
'item_selected_start' => '<li class="active">',
) );
$menu_container = ob_get_clean();
echo preg_replace( '~<li([^>]+)?><a href="'.quotemeta($Blog->get('url')).'">'.T_('Home').'</a></li>~is', '', $menu_container );
?>
</ul>
<!-- /main navi -->
</div>
</div>
</div>
</div>
<!-- /header -->
<!-- left+right bottom shadow -->
<div class="shadow-left page-content main-wrapper">
<div class="shadow-right">
<!-- main content: primary + sidebar(s) -->
<div id="main">
<div id="main-inside" class="clearfix">
<!-- primary content -->
<div id="primary-content">
<div class="blocks">
<?php
// MESSAGES GENERATED FROM ACTIONS
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>',
) );
// Display search results
global $ASearch_plugin;
if( is_object($ASearch_plugin) )
{
$ASearch_plugin->display_results();
}
// PREV/NEXT POST LINKS (SINGLE POST MODE)
item_prevnext_links( array(
'block_start' => '<div class="single-navigation clear-block">',
'block_end' => '</div>',
'prev_start' => '<div class="alignleft">',
'prev_end' => '</div>',
'next_start' => '<div class="alignright">',
'next_end' => '</div>',
) );
// TITLE FOR THE CURRENT REQUEST
request_title( array(
'title_before'=> '<h2 class="request_title">',
'title_after' => '</h2>',
'title_none' => '',
'glue' => ' - ',
'title_single_disp' => false,
'title_page_disp' => false,
'format' => 'htmlbody',
) );
if( $Item = & get_featured_Item() )
{ // We have a featured/intro post to display:
// ITEM BLOCK INCLUDED HERE
skin_include( '_item_block.inc.php', array(
'feature_block' => true,
'content_mode' => 'auto',
'intro_mode' => 'normal',
'item_class' => 'post clearfix bFeatured',
'image_size' => 'fit-520x390',
) );
}
// START OF POSTS
// Display message if no post:
display_if_empty( array(
'before' => '<div class="bPost display_empty">',
'after' => '</div>',
) );
while( $Item = & mainlist_get_item() )
{
// ITEM BLOCK INCLUDED HERE
skin_include( '_item_block.inc.php', array(
'content_mode' => 'auto',
'image_size' => 'fit-520x390',
'item_class' => 'post clearfix',
) );
}
// PREV/NEXT PAGE LINKS (POST LIST MODE)
mainlist_page_links( array(
'block_start' => '<div class="comment-navigation clearfix">',
'block_end' => '</div>',
'prev_text' => '«',
'next_text' => '»',
) );
// MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp)
skin_include( '$disp$', array(
'disp_posts' => '', // We already handled this case above
'disp_single' => '', // We already handled this case above
'disp_page' => '', // We already handled this case above
) );
?>
</div>
</div>
<!-- /primary content -->
<?php if( @preg_match('~-3~', $Skin->get_setting('skin_layout')) ) : ?>
<!-- sidebar2 -->
<div id="sidebar2">
<ul class="blocks">
<?php
// "Sidebar" CONTAINER EMBEDDED HERE
skin_container( NT_('Sidebar 2'), array(
// This will enclose each widget in a block:
'block_start' => '<li class="block $wi_class$"><div class="clearfix">',
'block_end' => '</div></li>',
// This will enclose the title of each widget:
'block_title_start' => '<h3 class="title"><span>',
'block_title_end' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>',
// If a widget displays a list, this will enclose that list:
'list_start' => '<ul>',
'list_end' => '</ul>',
// This will enclose each item in a list:
'item_start' => '<li>',
'item_end' => '</li>',
// This will enclose sub-lists in a list:
'group_start' => '<ul>',
'group_end' => '</ul>',
// This will enclose (foot)notes:
'notes_start' => '<div class="notes">',
'notes_end' => '</div>',
) );
?>
</ul>
</div>
<!-- sidebar2 -->
<?php endif; ?>
<?php if( ! @preg_match('~-1~', $Skin->get_setting('skin_layout')) ) : ?>
<!-- sidebar -->
<div id="sidebar">
<ul class="blocks">
<!-- search form -->
<li class="block">
<div class="search-form">
<form method="get" id="searchform" action="<?php echo $Blog->gen_blogurl() ?>" class="clearfix" name="searchform">
<fieldset>
<div id="searchfield">
<?php
$s_value = $s;
if( empty($s_value) ) $s_value = $Skin->T_('Search');
echo '<input type="text" name="s" class="text clearField" value="'.
$s_value.'" onfocus="if (this.value == \''.$s_value.
'\') {this.value = \'\';}" onblur="if (this.value == \'\')
{this.value = \''.$s_value.'\';}" />';
?>
</div>
<input type="hidden" name="disp" value="search">
<input type="submit" value="" class="submit" />
</fieldset>
</form>
</div>
</li>
<!-- /search form -->
<?php
// Display javascript tabbed widget
$Skin->display_tabbed_widget();
// "Sidebar" CONTAINER EMBEDDED HERE
skin_container( NT_('Sidebar'), array(
// This will enclose each widget in a block:
'block_start' => '<li class="block $wi_class$"><div class="clearfix">',
'block_end' => '</div></li>',
// This will enclose the title of each widget:
'block_title_start' => '<h3 class="title"><span>',
'block_title_end' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>',
// If a widget displays a list, this will enclose that list:
'list_start' => '<ul>',
'list_end' => '</ul>',
// This will enclose each item in a list:
'item_start' => '<li>',
'item_end' => '</li>',
// This will enclose sub-lists in a list:
'group_start' => '<ul>',
'group_end' => '</ul>',
// This will enclose (foot)notes:
'notes_start' => '<div class="notes">',
'notes_end' => '</div>',
) );
// Display twitter widget
$Skin->display_twitter_widget();
?>
</ul>
</div>
<!-- sidebar -->
<?php endif; ?>
</div>
</div>
<!-- /main content -->
<?php
// "After posts" CONTAINER EMBEDDED HERE
skin_container( NT_('After posts'), array(
'block_start' => '<div class="AfterPosts">',
'block_end' => '</div>',
) );
?>
<!-- footer -->
<div id="footer">
<div id="footer-blocks" class="page-content">
<div class="slide-container clear-block">
<ul class="slides">
<li class="slide slide-1 page-content">
<div class="slide-content"><?php $Skin->display_footer_container() ?></div>
</li>
</ul>
</div>
</div>
<div class="page-content"><?php $Skin->display_footer() ?></div>
</div>
<!-- /footer -->
</div>
</div>
<div id="pageControls"></div>
</div>
<?php
// HTML FOOTER INCLUDED HERE
skin_include( '_html_footer.inc.php' );
?>