class BIFE_Album_Photo extends BIFE_Widget {
// ~X2C
- // +X2C Operation 106
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function BIFE_Album_Photo($attrs) // ~X2C
- {
- $this->__construct($attrs);
- }
- // -X2C
-
- // +X2C Operation 107
- /**
- * Constructor.
- *
- * @param array $attrs Attributes.
- *
- * @return void
- * @access public
- */
- function __construct($attrs) // ~X2C
- {
- $new_attrs['FILE'] = @$attrs['FILE'] ? $attrs['FILE'] : @$_REQUEST['BIFE_ALBUM_FILE'];
- $new_attrs['DESC'] = @$attrs['DESC'] ? $attrs['DESC'] : basename($new_attrs['FILE']);
- parent::__construct($new_attrs);
- }
- // -X2C
-
// +X2C Operation 108
/**
* Renders the widget using a template returning a string with the results.
*/
function render(&$template) // ~X2C
{
- $template->setGroup('album');
- $out = $template->parse('photo', $this->attrs);
- $template->unsetGroup();
+ $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