New Paste

 

Recent Pastes

Administrate




PageLines PasteBin.

PasteID: 9zo
Pasted by Danny, 2013-01-30 11:43:03 GMT
Expires Never
Paste size 652 b
Toggle Expand   Wrap   Raw
Copy Contents   Copy URL
 
  1. <?php
  2. /*
  3. 	Section: Blog Sidebar
  4. 	Author: Danny
  5. 	Author URI: http://www.pagelines.com
  6. 	Description: The main widgetized sidebar.
  7. 	Class Name: BlogSidebar	
  8. 	Workswith: sidebar1, sidebar2, sidebar_wrap
  9. 	Persistant: true
  10. */
  11.  
  12. class BlogSidebar extends PageLinesSection {
  13.   /** PHP that always loads no matter if section is added or not. */
  14.   function section_persistent() {
  15.     $setup = pagelines_standard_sidebar($this->name, $this->settings['description']);
  16.     pagelines_register_sidebar($setup, 99);
  17.   }
  18.  
  19.   /** Section template. */
  20.   function section_template() {
  21.     pagelines_draw_sidebar($this->id, $this->name, '');
  22.   }
  23. }
  24.  
 
 
 

 
 
 
 
 
Written by Xan Manning, 2010.
YOU NEED FLASH!