Exemplo n.º 1
0
 /**
  * Captures an section of user display code.
  *
  * @autor John Godley
  * @param string $template_name Name of the template file (without extension)
  * @param string $vars Array of variable name=>value that is available to the display code (optional)
  * @return void
  **/
 static function capture($template_name, $vars = array())
 {
     ob_start();
     nggGallery::render($template_name, $vars);
     $output = ob_get_contents();
     ob_end_clean();
     return $output;
 }