function themeSettings() { global $manager; if (countHooks("design-settings") == 0) { hook("big_message", "noDesignSettings"); return; } }
</div> <div class="secondary"> <?php call_anchor("form_submit_secondary"); $manager->form->draw(); $manager->form->reset_template("row_start"); $manager->form->reset_template("row_end"); ?> </div> </div> <?php } call_anchor("form_main"); $manager->form->draw(); if (countHooks("form_submit_primary") > 0 || countHooks("form_submit_secondary") > 0) { ?> <div class="formButtons"> <div class="primary"> <?php $manager->form->set_template("row_start", ""); $manager->form->set_template("row_end", ""); call_anchor("form_submit_primary"); $manager->form->draw(); ?> </div> <div class="secondary"> <?php call_anchor("form_submit_secondary"); $manager->form->draw();
function themeList() { global $manager, $themes; $currentTheme = $manager->clerk->getSetting("site_theme", 1); foreach ($themes as $theme => $info) { $themeFolder = BASE_URL . "site/themes/" . $theme . "/"; $preview = empty($info['preview']) ? "" : '<img src="' . $themeFolder . $info['preview'] . '" alt="' . $info['preview'] . '" />'; $selectLink = $theme == $currentTheme ? "#" : $manager->office->URIquery(array('id', 'action'), "action=select&id=" . $theme); $editLink = $manager->office->URIquery("id", "action=edit&id=" . $theme); $selectText = $theme == $currentTheme ? "Currently using this theme" : "Use this theme"; $active = $theme == $currentTheme ? " active" : ""; $settings = $theme == $currentTheme && countHooks("design-settings") >= 1 ? '<a href="?cubicle=design-settings" class="editTheme">Settings</a>' : ''; $html = <<<HTML \t\t\t\t<div class="theme col-4"> \t\t\t\t\t<div class="col-2"> \t\t\t\t\t\t<h1>{$info['name']}</h1> \t\t\t\t\t\t<div class="controls inline"> \t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t<li class="misc{$active}"> \t\t\t\t\t\t\t\t\t<a href="{$selectLink}">{$selectText}</a> \t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t\t<li class="edit"> \t\t\t\t\t\t\t\t\t<a href="{$editLink}">Edit</a></span> \t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t\t<li class="misc"> \t\t\t\t\t\t\t\t\t{$settings} \t\t\t\t\t\t\t\t</li> \t\t\t\t\t\t\t</ul> \t\t\t\t\t\t</div> \t\t\t\t\t\t<p> \t\t\t\t\t\t\tDesigned by <a href="{$info['website']}">{$info['designer']}</a><br /> \t\t\t\t\t\t\t{$info['date']} \t\t\t\t\t\t</p> \t\t\t\t\t\t<p> \t\t\t\t\t\t\t{$info['about']} \t\t\t\t\t\t</p> \t\t\t\t\t</div> \t\t\t\t\t<div class="col-2 last preview"> \t\t\t\t\t\t{$preview} \t\t\t\t\t</div> \t\t\t\t</div> \t\t\t\t<div class="divider"></div> HTML; echo $html; } }
public function make_breadcrumb() { $request = explode("-", $this->cubicle('REQUEST')); $breadCrumb = ""; $count = 0; foreach ($request as $part) { $chain .= $count == 0 ? $part : "-" . $part; $link = $count >= 1 ? "?cubicle=" . $chain : "#"; $module = $this->menu_ExtractBranch($chain, "branch", $this->menu); $breadCrumb .= $count >= 0 ? '<a href="' . $link . '">' . $module['dis_name'] . '</a>' : ""; $breadCrumb .= $count >= 0 && $count < count($request) - 1 ? " / " : ""; $count++; } $breadCrumb .= countHooks("breadcrumbActive") > 0 ? " / " : ""; return $breadCrumb; }