| // +--------------------------------------------------------------------+ // // $Id$ // // +X2C includes require_once 'BIFE/Widget.php'; // ~X2C // +X2C Class 103 :Photo /** * Photo widget. * * @package BIFE_Album * @access public */ class BIFE_Album_Photo extends BIFE_Widget { // ~X2C // +X2C Operation 108 /** * Renders the widget using a template returning a string with the results. * * @param HTML_Template_HIT &$template Template to use to render the widget. * * @return string * @access public */ function render(&$template) // ~X2C { $attrs['FILE'] = @$this->attrs['FILE'] ? $this->attrs['FILE'] : @$_REQUEST['BIFE_ALBUM_FILE']; $attrs['DESC'] = @$this->attrs['DESC'] ? $this->attrs['DESC'] : basename($attrs['FILE']); $out = $template->parse('photo', $attrs, '', 'album'); return $out; } // -X2C } // -X2C Class :Photo ?>