Lines Matching refs:this

56         $this->tplDir  = tpl_incdir();
57 $this->baseDir = tpl_basedir();
59 $this->registerHooks();
93 $EVENT_HANDLER->register_hook($event, 'BEFORE', $this, $method);
113 $this->includePage('theme', false);
118 if (empty($this->getConf('customTheme')) === false) {
119 if (file_exists($this->tplDir . 'themes/' . $this->getConf('customTheme') . '/style.less') === true) {
120 $stylesheets[] = $this->baseDir . 'themes/' . $this->getConf('customTheme') . '/style.less';
122 if (file_exists($this->tplDir . 'themes/' . $this->getConf('customTheme') . '/style.css') === true) {
123 $stylesheets[] = $this->baseDir . 'themes/' . $this->getConf('customTheme') . '/style.css';
126 if (file_exists($this->tplDir . 'themes/' . $this->getConf('customTheme') . '/script.js') === true) {
127 $scripts[] = $this->baseDir . 'themes/' . $this->getConf('customTheme') . '/script.js';
131 if (is_array($MIKIO_ICONS) === true && empty($this->getConf('iconTag', 'icon')) === false) {
139 $stylesheets[] = $this->baseDir . 'icons/' . $icon['css'];
151 $scripts[] = $this->baseDir . 'assets/mikio-typeahead.js';
152 $scripts[] = $this->baseDir . 'assets/mikio.js';
154 if ($this->getConf('useLESS') === true) {
155 $stylesheets[] = $this->baseDir . 'assets/mikio.less';
157 $stylesheets[] = $this->baseDir . 'assets/mikio.css';
162 if ($this->getConf('useLESS') === true) {
163 $stylesheets[] = $this->baseDir . 'assets/mikioplugin.less';
165 $stylesheets[] = $this->baseDir . 'assets/mikioplugin.css';
172 if (strcasecmp(substr($style, -5), '.less') === 0 && $this->getConf('useLESS') === true) {
173 $style = $this->baseDir . 'css.php?css=' . str_replace($this->baseDir, '', $style);
195 if ($this->dwVersionNumber() >= 20200729 || $this->dwVersionNumber() == 0) {
197 if ($this->dwVersionNumber() >= 20200729 || $this->dwVersionNumber() == 0) {
224 if (count($this->footerScript) > 0) {
226 foreach ($this->footerScript as $script) {
247 * @param mixed $default If key doesn't exist, return this value.
421 $useACL = $this->getConf('includePageUseACL');
422 $propagate = $this->getConf('includePagePropagate');
453 $useACL = $this->getConf('includePageUseACL');
454 $propagate = $this->getConf('includePagePropagate');
458 $this->includedPageNotifications .= ob_get_contents();
463 $html = $this->parseContent($html);
521 $showIcons = ($this->getConf('navbarDWMenuType') != 'text');
522 $showText = ($this->getConf('navbarDWMenuType') != 'icons');
523 $isDropDown = ($this->getConf('navbarDWMenuCombine') != 'seperate');
530 $showItem = $this->getConf('navbarItemShow' . ucfirst($item->getType()));
557 $showItem = $this->getConf('navbarItemShow' . ucfirst($item->getType()));
581 $showItem = $this->getConf('navbarItemShow' . ucfirst($item->getType()));
602 switch ($this->getConf('navbarDWMenuCombine')) {
607 ($showIcons === true ? $this->mikioInlineIcon('file') : '') .
619 ($showIcons === true ? $this->mikioInlineIcon('gear') : '') .
631 ($showIcons === true ? $this->mikioInlineIcon('user') : '') .
645 ($showIcons === true ? $this->mikioInlineIcon('wrench') : '') .
692 $this->mikioInlineIcon('language') .
702 if ($this->getConf('showLightDark') === true) {
703 $autoLightDark = $this->getConf('autoLightDark');
706 ($autoLightDark === true ? $this->mikioInlineIcon('sunmoon', 'mikio-darklight-auto') : '') .
707 $this->mikioInlineIcon('sun', 'mikio-darklight-light') .
708 $this->mikioInlineIcon('moon', 'mikio-darklight-dark') .
739 strip_tags($this->getLink(trim($parts[0]))) . '">' . strip_tags(trim($parts[1])) .
772 $url = $this->getConf('brandURLUser');
777 $url = $this->getConf('brandURLGuest');
786 $html .= '<nav class="mikio-navbar' . (($this->getConf('stickyNavbar') === true) ? ' mikio-sticky' : '') .
790 if ($this->getConf('navbarUseTitleIcon') === true || $this->getConf('navbarUseTitleText') === true) {
792 if ($this->getConf('navbarUseTitleIcon') === true) {
793 $logo = $this->getMediaFile('logo', false);
795 $width = $this->getConf('navbarTitleIconWidth');
796 $height = $this->getConf('navbarTitleIconHeight');
826 if ($this->getConf('navbarUseTitleText') === true) {
829 if ($this->getConf('navbarUseTaglineText') === true) {
841 $menus = [$this->getConf('navbarPosLeft', 'none'), $this->getConf('navbarPosMiddle', 'none'),
842 $this->getConf('navbarPosRight', 'none')
847 $html .= $this->stringToNav($this->getConf('navbarCustomMenuText', ''));
851 $html .= $this->includeSearch(false);
855 $html .= $this->includeDWMenu(false);
866 $sub = $this->includePage('submenu', false);
893 return $this->pageExists($conf['sidebar' . $prefix]);
923 $this->getConf('sidebarShow' . $confPrefix) === true && page_findnearest($sidebarPage) !== false &&
926 $content = $this->includePage($sidebarPage . 'header', false);
932 $rows = [$this->getConf('sidebarLeftRow1'), $this->getConf('sidebarLeftRow2'),
933 $this->getConf('sidebarLeftRow3'), $this->getConf('sidebarLeftRow4')
939 $html .= $this->includeSearch(false);
942 $html .= $this->includeLoggedIn(false);
945 $content = $this->includePage($sidebarPage, false);
955 $content = $this->includePage($sidebarPage, false);
961 $content = $this->includePage($sidebarPage . 'footer', false);
968 if (empty($prefix) === true && $this->getConf('sidebarAlwaysShowLeft') === true) {
971 if ($this->getConf('sidebarAlwaysShow' . ucfirst($prefix)) === true) {
984 if(empty($prefix) === true && $this->getConf('stickyLeftSidebar') === true) {
989 ($this->getConf('sidebarMobileDefaultCollapse') === true ? ' closed' : '') . '" href="#">' .
995 $html = $this->includeIcons($html);
1035 $showItem = $this->getConf('pageToolsShow' . ucfirst($item->getType()), 'always');
1075 if ($this->getConf('searchUseTypeahead') === true) {
1081 if (strcasecmp($this->getConf('searchButton'), 'icon') === 0) {
1082 $html .= $this->mikioInlineIcon('search');
1109 $html = $this->includeIcons($html);
1110 $html = $this->parseContent($html);
1114 if ($this->getConf('heroTitle') === false && $this->getConf('tagsShowHero') === true) {
1150 $string = $this->getConf('footerPageInfoText', '');
1229 $html .= '<div class="doc">' . $this->custom_tpl_pageinfo(true) . '</div>';
1230 $html .= $this->includePage('footer', false);
1232 $html .= $this->stringToNav($this->getConf('footerCustomMenuText'));
1234 if ($this->getConf('footerSearch') === true) {
1236 $html .= $this->includeSearch(false);
1240 $showPageTools = $this->getConf('pageToolsFooter');
1243 $this->userCanEdit() === true && strcasecmp($showPageTools, 'page editors') === 0)
1245 $html .= $this->includePageTools(false);
1251 $licenseType = $this->getConf('licenseType');
1253 $html .= tpl_license($licenseType, $this->getConf('licenseImageOnly'), true, true);
1277 $this->getConf('breadcrumbHideHome') === true && strcasecmp($ID, 'start') === 0 &&
1287 if ($this->getConf('breadcrumbPrefix') === false && $this->getConf('breadcrumbSep') === false) {
1296 if ($this->getConf('breadcrumbSep') === true) {
1297 $sep = $this->getConf('breadcrumbSepText');
1298 $img = $this->getMediaFile('breadcrumb-sep', false);
1305 if ($this->getConf('breadcrumbPrefix') === true) {
1306 $prefix = $this->getConf('breadcrumbPrefixText');
1307 $img = $this->getMediaFile('breadcrumb-prefix', false);
1342 $html = $this->includeIcons($html);
1362 $this->getConf('youarehereHideHome') === true && strcasecmp($ID, 'start') === 0 &&
1372 if ($this->getConf('youareherePrefix') === false && $this->getConf('youarehereSep') === false) {
1383 if ($this->getConf('youarehereSep') === true) {
1384 $sep = $this->getConf('youarehereSepText');
1385 $img = $this->getMediaFile('youarehere-sep', false);
1392 if ($this->getConf('youareherePrefix') === true) {
1393 $prefix = $this->getConf('youareherePrefixText');
1394 $img = $this->getMediaFile('youarehere-prefix', false);
1436 $showLast = $this->getConf('youarehereShowLast');
1455 switch ($this->getConf('youarehereHome')) {
1464 $this->mikioInlineIcon('home') . '$3', $html, 1);
1479 $html = $this->includeIcons($html);
1500 $title = $this->includeIcons($title);
1516 if ($this->getConf('heroTitle') === true) {
1520 if (strcasecmp($this->getConf('youareherePosition'), 'hero') === 0) {
1521 $html .= $this->includeYouAreHere(false);
1523 if (strcasecmp($this->getConf('breadcrumbPosition'), 'hero') === 0) {
1524 $html .= $this->includeBreadcrumbs(false);
1528 $html .= $this->parsePageTitle(); // No idea why this requires a blank space afterward to work?
1533 $hero_image = $this->getMediaFile('hero', true, $this->getConf('heroImagePropagation', true));
1543 if($this->getConf('tagsShowHero') === true) {
1578 $this->mikioInlineIcon('hamburger', 'hamburger') . '$2' .
1579 $this->mikioInlineIcon('down-arrow', 'down-arrow') . '</h3>',
1591 $html = $this->includeIcons($html);
1612 $iconTag = $this->getConf('iconTag', 'icon');
1641 $iconTag = $this->getConf('iconTag', 'icon');
1674 $dir = $this->baseDir . 'icons/' . $icon['dir'] . '/';
1750 '<tr$1><td class="mikio-config-table-header" colspan="2">' . $this->mikioInlineIcon($icon) .
1938 if ($this->getConf('heroTitle') === true && $ACT !== 'preview') {
1939 $pageTitle = $this->parsePageTitle();
1955 $this->footerScript['hero-subtitle'] = 'mikio.setHeroSubTitle(\'' . $subtitle . '\')';
1988 $this->footerScript['hero-image'] = 'mikio.setHeroImage(\'' . $image . '\')';
1999 $this->footerScript['hero-colors'] = 'mikio.setHeroColor(\'' . $subtitle . '\')';
2019 $this->footerScript['hide-parts'] = $script;
2029 if ($this->getConf('tagsConsolidate') === true) {
2041 $this->footerScript['tags'] = 'mikio.setTags(\'' . $tags . '\')';
2138 $theme = $this->getConf('customTheme');
2341 $show = $this->getConf('showNotifications');
2375 if (strlen($this->includedPageNotifications) > 0) {
2376 echo $this->includedPageNotifications;