Elastic
[ class tree: Elastic ] [ index: Elastic ] [ all elements ]

Source for file sidebar.php

Documentation is available at sidebar.php

  1. <?php
  2. /**
  3.  * A module that registers a widgetized sidebar.
  4.  * 
  5.  * Note that to prevent naming conflicts in the WordPress Widget Admin,
  6.  * the elastic prefix (default: 'elastic_') is added to the sidebar id.
  7.  *
  8.  * @package Elastic
  9.  * @author Daryl Koopersmith
  10.  */
  11. class Sidebar extends Module {
  12.     function __construct($name$type NULL{
  13.         parent::__construct($name$type);
  14.         
  15.         add_action$this->format_hook('_register_sidebars''admin')array(&$this'_admin_register_sidebars') );
  16.         add_action$this->format_hook('_register_sidebars''')array(&$this'_admin_register_sidebars') );
  17.     }
  18.     
  19.     /**
  20.      * Private. Prevents id conflicts on the Widgets Admin page by adding a prefix to each sidebar id.
  21.      *
  22.      * @param string $settings 
  23.      * @return void 
  24.      * @author Daryl Koopersmith
  25.      */
  26.     function _admin_register_sidebars$settings {
  27.         $settings['id'elastic_get('prefix'$settings['id'];
  28.         return $settings;
  29.     }
  30. }
  31.  
  32. ?>

Documentation generated on Sat, 24 Oct 2009 17:17:46 -0500 by phpDocumentor 1.4.3