/** * PRINT LAST CHANGES LIST * * Print an <ul> loaded with @param last changes. * * @param integer $n number of last changes to show in the list */ function _mixture_last_changes($n, $context = null) { global $conf, $lang; $flags = ''; if (strpos(tpl_getConf('lastchanges'), 'skip_deleted') !== false) { $flags = RECENTS_SKIP_DELETED; } if (strpos(tpl_getConf('lastchanges'), 'skip_minors') !== false) { $flags += RECENTS_SKIP_MINORS; } $recents = getRecents(0, $n, getNS($ID), $flags); $i = 0; foreach ($recents as $key => $value) { $details = null; if ($value['sum'] != null) { $details = ucfirst(trim($value['sum'], ".")); } else { $details = ucfirst(trim(str_replace(":", "", $lang['mail_changed']), chr(0xc2) . chr(0xa0))); } if ($value['user'] != null and $context == "landing") { $details .= $lang['by'] . ucwords($value['user']); } if ($context == "landing") { $details .= "."; } print '<li'; if ($context == "landing") { print ' data-infos="' . $details . '"'; $logo = _mixture_namespacedFile('logo', 'inherit', 1, null, $value['id']); if ($logo != null) { print ' data-logo="' . $logo['fileID'] . '"'; } } print '>'; if ($context == "landing") { //print '<i class="fa fa-fw fa-play state"></i>'; print '<span class="timestamp display-none">' . _mixture_date("long", $value['date'], true) . '</span>'; } if (page_exists($value['id'])) { $exist = "wikilink1"; } else { $exist = "wikilink2"; } if ($context == null or $conf['useheading'] == 0 or p_get_first_heading($value['id']) == null) { $pageName = $value['id']; } else { $pageName = p_get_first_heading($value['id']); } if ($context == "landing") { tpl_link(wl($value['id']), $pageName, 'class="' . $exist . '"'); } else { tpl_link(wl($value['id']), $pageName, 'title="' . $details . ' (' . _mixture_date("long", $value['date']) . ')" class="' . $exist . '"'); } $by = null; if ($value['user'] != null) { $by = " " . $lang['by'] . " "; } if ($context == null) { print '<span class="display-none wd-display-initial">' . $by . '<span class="text-capitalize"><bdi>' . $value['user'] . '</bdi></span></span>'; } $i++; print '</li>'; } }
if (strpos(tpl_getConf('elements'), 'header_topbar_date') !== false or strpos(tpl_getConf('elements'), 'header_topbar_lastchanges') !== false or strpos(tpl_getConf('elements'), 'header_topbar_links') !== false) { ?> <aside id="mixture__topbar" class="container<?php echo _mixture_area_width("topbar"); ?> background-color-dark color-auto justify-space-around items-center<?php echo _mixture_stickme("topbar"); ?> "> <!-- DATE --> <?php if (strpos(tpl_getConf('elements'), 'header_topbar_date') !== false) { ?> <div id="mixture__topbar_date" class="col-12 col-sm-3 col-md-auto text-capitalize text-center container justify-center items-center"> <?php print _mixture_date("long"); ?> </div><!-- #mixture__topbar_date --> <?php } ?> <!-- LAST CHANGES --> <?php if (strpos(tpl_getConf('elements'), 'header_topbar_lastchanges') !== false and $showLastChanges >= 1) { ?> <div id="js_topbar_changes_container" class="col-11 col-sm-6 col-md-auto container"> <strong><span class="md-display-none" title="<?php print $lang['btn_recent']; ?> "><?php echo _mixture_glyph("last-changes");