$imgdir = Horde_Themes::img(null, 'horde');
$customurl = Horde::applicationUrl('faces/custom.php');
$url = (!empty($args['url']) ? urldecode($args['url']) : '');
- ob_start();
+ Horde::startBuffer();
require_once ANSEL_TEMPLATES . '/faces/image.inc';
- $html = ob_get_clean();
+ $html = Horde::endBuffer();
return array('response' => 1,
'message' => $html);
} else {
/* Background color is needed if displaying a mini tile */
$background_color = $style['background'];
- ob_start();
+ Horde::startBuffer();
include ANSEL_TEMPLATES . '/tile/dategallery' . ($mini ? 'mini' : '') . '.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
}
$modified = _("Modified") . ' '
. strftime($date_format, (int)$gallery->get('last_modified'));
- ob_start();
+ Horde::startBuffer();
include ANSEL_TEMPLATES . '/tile/gallery' . ($mini ? 'mini' : '') . '.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
}
$title = $image->filename;
}
- ob_start();
+ Horde::startBuffer();
// In-line caption editing if we have Horde_Perms::EDIT
if ($option_edit) {
$imple = Horde_Ajax_Imple::factory(array('ansel', 'EditCaption'),
'domid' => $image->id . 'caption'));
$imple->attach();
}
-
+
include ANSEL_BASE . '/templates/tile/image.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
}
// Note that we can't use Horde_Util::bufferOutput() here since the
// include file would be included inside that method's scope, and not
// this one.
- ob_start();
+ //ob_start();
+ Horde::startBuffer();
if (!empty($this->view->api)) {
$includes = $GLOBALS['injector']->createInstance('Horde_Script_Files');
$includes->add('prototype.js', 'horde', true, true);
}
Horde::addScriptFile('popup.js', 'horde');
include ANSEL_TEMPLATES . '/view/gallery.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
}
'url_callback' => $callback);
$pager = new Horde_Ui_Pager('page', $vars, $params);
-
- /* Start buffering */
- ob_start();
-
+ Horde::startBuffer();
/* Create the js variables to pass to the lightbox script */
$jsvars = array('graphics_dir' => Horde::applicationUrl(Horde_Themes::img(), true, -1),
'image_text' => _("Photo"),
$count = 0;
include ANSEL_TEMPLATES . '/view/gallerylightbox.inc';
- return ob_get_clean();
+
+ return Horde::endBuffer();
}
}
}
/* Buffer the template file and return the html */
- ob_start();
+ Horde::startBuffer();
//@TODO: Refactor styles to allow dynamic inclusion/exclusion of widgets.
/* These items currently don't work when viewing through the api */
}
require ANSEL_TEMPLATES . '/view/image.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
/**
$count = 0;
$width = round(100 / $prefs->getValue('tilesperrow'));
- ob_start();
+ Horde::startBuffer();
include ANSEL_TEMPLATES . '/view/list.inc';
- $html = ob_get_clean();
+ $html = Horde::endBuffer();
+
return $html;
}
+
return '';
}
$this->_pager = new Horde_Ui_Pager('page', $vars, array('num' => $total,
'url' => $viewurl,
'perpage' => $this->_perPage));
- ob_start();
+ Horde::startBuffer();
include ANSEL_TEMPLATES . '/view/results.inc';
- return ob_get_clean();
+ return Horde::endBuffer();
}
public function viewType()
{
global $registry, $prefs;
$imageIndex = $this->_revList[$this->resource->id];
- ob_start();
+ Horde::startBuffer();
require ANSEL_TEMPLATES . '/view/slideshow.inc';
- return ob_get_clean();
-
+ return Horde::endBuffer();
}
public function viewType()
$html = '<div style="display:' . (($GLOBALS['prefs']->getValue('show_actions')) ? 'block' : 'none') . ';" id="gallery-actions">';
/* Attach the ajax action */
- ob_start();
+ Horde::startBuffer();
$imple = Horde_Ajax_Imple::factory(array('ansel', 'ToggleGalleryActions'), array('bindTo' => 'gallery-actions'));
$imple->attach();
- $html .= ob_get_clean();
+ $html .= Horde::endBuffer();
/* Buid the url parameters to the zip link */
$view_params = array(
. _("Manual face selection") . '</a>';
// Attach the ajax edit actions
- ob_start();
+ Horde::startBuffer();
$imple = Horde_Ajax_Imple::factory(
array('ansel', 'EditFaces'),
array('image_id' => $this->_view->resource->id,
'selfUrl' => $this->_params['selfUrl']));
$imple->attach();
- $html .= ob_get_clean();
+ $html .= Horde::endBuffer();
}
// Build the main content area of the widget
($gal->id == $this->_view->gallery->id),
array('icon' => $img, 'icondir' => '', 'url' => $link));
}
- ob_start();
+ Horde::startBuffer();
$imple = Horde_Ajax_Imple::factory(array('ansel', 'ToggleOtherGalleries'), array('bindTo' => 'othergalleries'));
$imple->attach();
$tree->sort('label');
$tree->renderTree();
- $html .= ob_get_clean();
+ $html .= Horde::endBuffer();
$html .= '</div>';
$selfurl = Horde::selfUrl(true, true);
$html .= '<div class="control"><a href="'
$html = $this->_htmlBegin();
$html .= '<div id="tags">' . $this->_getTagHTML() . '</div>';
if ($this->_view->gallery->hasPermission(Horde_Auth::getAuth(), Horde_Perms::EDIT)) {
- ob_start();
+ Horde::startBuffer();
/* Attach the Ajax action */
$imple = Horde_Ajax_Imple::factory(array('ansel', 'TagActions'),
array('bindTo' => array('add' => 'tagbutton'),
'gallery' => $this->_view->gallery->id,
'image' => $image_id));
$imple->attach();
- $html .= ob_get_clean();
+ $html .= Horde::endBuffer();
$actionUrl = Horde_Util::addParameter('image.php',
array('image' => $this->_view->resource->id,
$stream_rss2 = Horde_Util::addParameter(Horde::applicationUrl('rss.php', true, -1), $getparams);
$images = $imgs;
- ob_start();
+ Horde::startBuffer();
include ANSEL_TEMPLATES . '/rss/' . $type . '.inc';
- $rss = ob_get_clean();
+ $rss = Horde::endBuffer();
if ($conf['ansel_cache']['usecache']) {
$GLOBALS['injector']->getInstance('Horde_Cache')->set($cache_key, $rss);