echo _mixture_stickme("nav"); ?> "> <!-- BRANDING --> <div id="mixture__brand" class="container<?php echo _mixture_area_width("main_nav"); ?> col-md-auto justify-center items-center"> <?php if (strpos(tpl_getConf('elements'), 'header_logo') !== false) { ?> <div id="mixture__brand_logo"> <?php // Check settings to know if we're looking for a Namespace dependent logo or not if (strpos(tpl_getConf('namespacedFiles'), 'header_logo') !== false) { $logo = _mixture_namespacedFile('logo', 'inherit', 1); } else { $logo = null; } if ($ID == "start" or $logo == null) { $logoMaxHeight = 128; $logoSize = array(); $logo = tpl_getMediaFile(array(':wiki:logo.jpg', ':wiki:logo.png', ':logo.jpg', ':logo.png', 'images/logo.jpg', 'images/logo.png'), false, $logoSize); $logoDisplayHeight = min($logoSize[1], $logoMaxHeight); if ($logoSize[1] > $logoDisplayHeight) { $logoSize[3] = 'width="' . $logoSize[0] / ($logoSize[1] / $logoDisplayHeight) . '" height="' . $logoDisplayHeight . '"'; } } else { //dbg($logo); if ($logo != null) { $logoSize = $logo['imageSize'];
/** * 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>'; } }