-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.main.php
223 lines (208 loc) · 6.35 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
<?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).
*
* @package evoskins
*
*/
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 );
require_js( '#jquery#' );
require_js( 'scripts.js', true );
require_css( 'print.css', true, '', 'print' );
// HTML HEADER INCLUDED HERE
skin_include( '_html_header.inc.php' );
global $s;
?>
<div id="page_wrap">
<div id="header">
<div class="blog_list">
<?php
// START OF BLOG LIST
skin_widget( array(
'widget' => 'colls_list_public',
'block_start' => '/ ',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '',
'item_end' => ' / ',
'item_selected_start' => '<span class="selected">',
'item_selected_end' => '</span> / ',
) );
?>
</div>
<div class="clear"></div>
<div class="blog_title">
<?php
// "Header" CONTAINER EMBEDDED HERE
skin_container( NT_('Header'), array(
'block_start' => '',
'block_end' => '',
'block_title_start' => '<h1>',
'block_title_end' => '</h1>',
) );
?>
</div>
<div id="search">
<?php
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_search_form',
// Optional display params
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'disp_search_options' => 0,
'search_class' => 'extended_search_form',
'use_search_disp' => 0,
) );
?>
</div>
<div class="clear"></div>
</div>
<div id="main_navi">
<ul class="left">
<?php
// "Menu" CONTAINER EMBEDDED HERE
skin_container( NT_('Menu'), array(
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
) );
?>
</ul>
<ul class="right">
<!--<li class="twitter"><a href="http://twitter.com/your_user_name">Twitter</a></li>-->
<li class="feed"><a href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>">RSS Feed</a></li>
</ul>
</div>
<div class="clear"></div>
<div id="container">
<div id="main">
<?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="navigation">',
'prev_start' => '<div class="left">',
'prev_end' => '</div>',
'next_start' => '<div class="right">',
'next_end' => '</div>',
'block_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' => 'bPost bFeatured',
'image_size' => 'fit-400x320',
) );
}
// 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-400x320',
) );
}
// PREV/NEXT PAGE LINKS (POST LIST MODE)
mainlist_page_links( array(
'block_start' => '<div class="page_nav">',
'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
) );
// "After Posts" CONTAINER EMBEDDED HERE
skin_container( NT_('After Posts'), array(
'block_start' => '<div class="AfterPosts">',
'block_end' => '</div>',
) );
?>
</div>
<div id="sidebar">
<?php
// "Sidebar" CONTAINER EMBEDDED HERE
skin_container( NT_('Sidebar'), array(
// This will enclose each widget in a block:
'block_start' => '<div class="bSideitem $wi_class$">',
'block_end' => '</div>',
// This will enclose the title of each widget:
'block_title_start' => '<h2>',
'block_title_end' => '</h2>',
// 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>',
) );
?>
</div>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<div class="footer_wrapper">
<div class="footer_left">Theme: <a href="http://imotta.cn">Pyrmont V1.2</a>, <a href="http://b2evo.sonorth.com/show.php/b2evolution-freelance-work">b2evolution freelance services</a> by Sonorth Corp.</div>
<div>Powered by <a href="http://b2evolution.net/">b2evolution</a></div>
</div>
</div>
<?php
// HTML FOOTER INCLUDED HERE
skin_include( '_html_footer.inc.php' );
?>