0) { $previous = elgg_view('output/url', array( 'href' => "pg/theme_preview/{$vars['pages'][$index - 1]}", 'text' => $previous, )); } $next = 'next >'; if ($index < (count($vars['pages']) - 1)) { $next = elgg_view('output/url', array( 'href' => "pg/theme_preview/{$vars['pages'][$index + 1]}", 'text' => $next, )); } echo << Index > $title
$previous  $next
HTML;