/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. */
  13. if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14. ?>
  15. <?php
  16. if( $Skin->get_setting('column_count') == '3' )
  17. {
  18. echo '<div id="columnB_3columns">';
  19. }
  20. elseif( $Skin->get_setting('column_count') == '2' )
  21. {
  22. echo '<div id="columnC_2columns">';
  23. }
  24. ?>
  25. <?php
  26. // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE --------------------------
  27. // Display container contents:
  28. skin_container( NT_('Sidebar'), array(
  29. // The following (optional) params will be used as defaults for widgets included in this container:
  30. // This will enclose each widget in a block:
  31. 'block_start' => '<div id="$wi_ID$" class="$wi_class$">',
  32. 'block_end' => '</div>',
  33. // This will enclose the title of each widget:
  34. 'block_title_start' => '<h4><span>',
  35. 'block_title_end' => '</span></h4>',
  36. // If a widget displays a list, this will enclose that list:
  37. 'list_start' => '<ul class="links">',
  38. 'list_end' => '</ul>',
  39. // This will enclose each item in a list:
  40. 'item_start' => '<li>',
  41. 'item_end' => '</li>',
  42. // This will enclose sub-lists in a list:
  43. 'group_start' => '<ul>',
  44. 'group_end' => '</ul>',
  45. // This will enclose (foot)notes:
  46. 'notes_start' => '<div class="notes">',
  47. 'notes_end' => '</div> <!-- end of class="notes" -->',
  48. ) );
  49. // ----------------------------- END OF "Sidebar" CONTAINER -----------------------------
  50. ?>
  51. </div> <!-- end of id="columnN_Xcolumns" -->