PageRenderTime 76ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/b2evolution/nonzero/_sidebar-1.inc.php

http://laibcomsthemes.googlecode.com/
PHP | 55 lines | 30 code | 4 blank | 21 comment | 4 complexity | d7420da0546ed123d61defeb7fb2cacd MD5 | raw file
 1<?php
 2/**
 3 * This is the sidebar include template.
 4 *
 5 * For a quick explanation of b2evo 2.0 skins, please start here:
 6 * {@link http://manual.b2evolution.net/Skins_2.0}
 7 *
 8 * This is meant to be included in a page template.
 9 *
10 * @package evoskins
11 * @subpackage nonzero
12 */
13if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
14?>
15
16<?php
17if( $Skin->get_setting('column_count') == '3' )
18{
19	echo '<div id="columnB_3columns">';
20}
21elseif( $Skin->get_setting('column_count') == '2' )
22{
23	echo '<div id="columnC_2columns">';
24}
25?>
26	
27	<?php
28		// ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
29		// Display container contents:
30		skin_container( NT_('Sidebar'), array(
31				// The following (optional) params will be used as defaults for widgets included in this container:
32				// This will enclose each widget in a block:
33				'block_start' => '<div id="$wi_ID$" class="$wi_class$">',
34				'block_end' => '</div>',
35				// This will enclose the title of each widget:
36				'block_title_start' => '<h4><span>',
37				'block_title_end' => '</span></h4>',
38				// If a widget displays a list, this will enclose that list:
39				'list_start' => '<ul class="links">',
40				'list_end' => '</ul>',
41				// This will enclose each item in a list:
42				'item_start' => '<li>',
43				'item_end' => '</li>',
44				// This will enclose sub-lists in a list:
45				'group_start' => '<ul>',
46				'group_end' => '</ul>',
47				// This will enclose (foot)notes:
48				'notes_start' => '<div class="notes">',
49				'notes_end' => '</div> <!-- end of class="notes" -->',
50			) );
51		// ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
52	?>
53
54	
55</div> <!-- end of id="columnN_Xcolumns" -->