class SiteHistoryView {
public static function render_linkbox() {
if (check_perms('users_mod')
) { ?>
}
}
public static function render_events($Events) {
$Text = new Text;
$Categories = SiteHistory::get_categories();
$SubCategories = SiteHistory::get_sub_categories();
$CanEdit = check_perms('users_mod') ;
foreach($Events as $Event) { ?>
self::render_tags($Event['Tags'])?>
if (!empty($Event['Body'])) { ?>
=$Text->full_format($Event['Body'])?>
} ?>
}
}
private static function render_tags($Tags) {
$Tags = explode(',', $Tags);
natcasesort($Tags);
$FormattedTags = "";
foreach($Tags as $Tag) {
$FormattedTags .= "" . $Tag . ", ";
}
echo rtrim($FormattedTags, ', ');
}
public static function render_months($Months) { ?>
Calendar
$Year = "";
foreach ($Months as $Month) {
if ($Month['Year'] != $Year) {
$Year = $Month['Year'];
echo "
$Year
";
} ?>
=$Month['MonthName']?>
} ?>
}
public static function render_search() { ?>
}
public static function render_edit_form($Event) { ?>
}
public static function render_recent_sidebar($Events) { ?>
}
}