function nav($menu_items, $child = false) { $output = ''; if (count($menu_items) > 0) { $output .= $child === false ? '<ul>' : '<ul>'; foreach ($menu_items as $nav_item) { if (!empty($nav_item['target'])) { $nav_target = 'target="' . $nav_item['target'] . '"'; } else { $nav_target = ""; } if (strpos($nav_item['url'], "http://") !== false or strpos($nav_item['url'], "https://") !== false) { $nav_url = $nav_item['url']; } else { $nav_url = "" . Configure::read('BASE_URL') . "" . $nav_item['url'] . ""; } $output .= '<li>'; $output .= '<a href="' . $nav_url . '" ' . $nav_target . '>' . $nav_item['title'] . '</a>'; //check if there are any children if (isset($nav_item['children']) && count($nav_item['children'])) { $output .= nav($nav_item['children'], true); } $output .= '</li>'; } $output .= '</ul>'; } return $output; }
function startjournal($sitename, $user) { global $module_name; $user = filter($user, "nohtml"); $sitename = filter($sitename, "nohtml"); if (is_user($user)) { $j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name={$module_name}&file=edit\">" . _YOURJOURNAL . "</a> ]</center>"; $j_user2 = ""; } else { $j_user1 = "<center>[ <a href=\"modules.php?name={$module_name}\">" . _JOURNALDIR . "</a> | <a href=\"modules.php?name=Your_Account&op=new_user\">" . _CREATEACCOUNT . "</a> ]</center>"; $j_user2 = "<br><center><font class=\"tiny\">" . _MEMBERSCAN . "</font></center>"; } title("{$sitename}: " . _USERSJOURNAL . ""); if (is_user($user)) { include "modules/Your_Account/navbar.php"; OpenTable(); nav(); CloseTable(); echo "<br>"; } OpenTable(); echo "<center><img src=modules/{$module_name}/images/bgimage.gif><br><font class=title><b>" . _USERSJOURNAL . "</b></font></center>"; echo "{$j_user1}"; echo "{$j_user2}"; CloseTable(); }
function template_init() { document_open(); page_header(); nav(); page(); page_footer(); document_close(); }
function navigation($is_authed) { if ($is_authed) { $str = a('Current', '/') . ' ' . a('Create Trick', '/trick/create') . ' ' . a('All Tricks', '/tricks') . ' ' . a('Create Tag', '/tag/create') . ' ' . a('All Tags', '/tags') . ' ' . a('Logout', '/auth/delete') . ' '; } else { $str = a('Sign In/Up', '/auth/create') . ' '; } return nav($str . a('About', '/about')); }
/** * Returns a nested unordered list of SimplePage links * * @uses simple_pages_get_links_for_children_pages() * @uses nav() * @param integer|null The id of the parent page. If null, it uses the current simple page * @param string The method by which you sort pages. Options are 'order' (default) and 'alpha'. * @param boolean Whether to return only published pages. * @return string */ function simple_pages_navigation($parentId = 0, $sort = 'order', $requiresIsPublished = true) { $html = ''; $childPageLinks = simple_pages_get_links_for_children_pages($parentId, $sort, $requiresIsPublished); if ($childPageLinks) { $html .= '<div class="simple-pages-navigation">' . "\n"; $html .= nav($childPageLinks); $html .= '</div>' . "\n"; } return $html; }
function nav(array $data) { $nav = "<ul>"; foreach($data as $key => $val) { if(is_array($val)) { $nav .= "<li>$key" . nav($val) . "</li>"; } else { $nav .= "<li><a href='$val'>$key</a></li>"; } } return $nav . "</ul>"; }
public function __whenReady() { // Check Migrations Done if ($this->module->migrationsDone()) { // Add Permission addAdminPermission("manage_users", "Manage Users"); // Add Permission addAdminPermission("maintainance_mode", "Maintainance Mode Access"); // Add Permission addAdminPermission("manage_acl", "Manage Groups and Permissions"); // Add the Required Styles and Scripts registerAdminStyle("auth-admin", __DIR__ . "/styles/auth.css"); registerAdminScript("auth-admin", __DIR__ . "/scripts/auth.js"); setAdminStyleToUse("auth-admin"); // Listen Controller Ready Event $this->app["events"]->listen("admin.controller.ready", function () { // Check Nav if ($nav = nav(adminNavGroup())) { // Add Logout Link $nav->addMenuItem("logout", trans("auth-module::menu_item.logout"), urlRoute(UserItem::logoutRoute(), UserItem::logoutRouteParams()), null, null, 1000); // Add My Account Link $nav->addSubMenuItem(ADMIN_NAV_DASHBOARD, "my_account", trans("auth-module::menu_item.my_account"), urlRoute("my_account"), null, null, 1); // Check Permission if (userHasPermission("manage_acl")) { // Add ACL Navigation Items $nav->detectAddSubMenuItem(ADMIN_NAV_ADMINISTRATION, "acl", trans("auth-module::menu_item.acl"), urlRoute("groups")); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, "acl", "groups", trans("auth-module::menu_item.groups"), urlRoute("groups"), array("include" => array("/create_group/i", "/edit_group\\/(.*)/i"))); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, "acl", "permissions", trans("auth-module::menu_item.permissions"), urlRoute("permissions"), array("include" => array("/create_permission/i", "/edit_permission\\/(.*)/i"))); } // Check Permission if (userHasPermission("manage_users")) { // Add User Navigation Items $nav->detectAddSubMenuItem(ADMIN_NAV_ADMINISTRATION, "users", trans("auth-module::menu_item.users"), urlRoute("users")); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, "users", "create_user", trans("auth-module::menu_item.add_new_user"), urlRoute("create_user")); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, "users", "users", trans("auth-module::menu_item.view_users"), urlRoute("users"), array("include" => array("/edit_user\\/(.*)/i"))); } // Get Groups with Interfaces $groups = GroupItem::hasInterface()->get(); // Loop Each Groups foreach ($groups as $group) { // Check Routes & Langs if ($group->hasValidInterface() && (!$group->group_permission || userHasPermission($group->group_permission))) { // Add Navigation Items $nav->detectAddSubMenuItem(ADMIN_NAV_ADMINISTRATION, $group->getRoute("list"), $group->getLang("menu_list"), urlRoute($group->getRoute("list"))); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, $group->getRoute("list"), $group->getRoute("create"), $group->getLang("menu_add_new"), urlRoute($group->getRoute("create"))); $nav->detectAddSubSubMenuItem(ADMIN_NAV_ADMINISTRATION, $group->getRoute("list"), $group->getRoute("list"), $group->getLang("menu_view_list"), urlRoute($group->getRoute("list")), array("include" => array("/" . $group->getRoute("edit") . "\\/(.*)/i"))); } } } }); } }
function html_header($title = 'Nix', $style = false, $desc = false) { define('css_directory', 'style/'); define('main_style_file', 'style_main.css'); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <meta name="robots" content="all, index, follow" /> <meta name="language" content="fr-FR" /> <meta name="keywords" content="nix, Nix, serveur, Minecraft, rp, roleplay, jeu de rôle, magie, mystère, neige, nord, nordique, aventure, savoir" /> <meta name="description" content="<?php echo $desc ? $desc : 'Nix est un serveur français de roleplay sur Minecraft, se déroulant dans une région enneigée et remplit de mystères.'; ?> " /> <title><?php echo htmlentities($title); ?> </title> <?php if ($style) { ?> <link rel="stylesheet" href="<?php echo css_directoy . $style; ?> " /> <?php } ?> <link rel="stylesheet" href="<?php echo css_directory . main_style_file; ?> " /> </head> <body> <header> </header> <?php include 'includes/nav.php'; nav(); ?> <section id="main_content"> <?php }
public function __whenReady() { // Add Permission addAdminPermission("manage_settings", "Manage Settings Module"); // Store Settings to App $this->app["settings_data"] = SettingItem::getSettingsConfig(); // Listen Controller Ready Event $this->app["events"]->listen("admin.controller.ready", function () { // Check Nav if ($nav = nav(adminNavGroup())) { // Check Permission if (userHasPermission("manage_settings")) { // Add Navigation Items $nav->detectAddSubMenuItem(ADMIN_NAV_SETTINGS, "settings", trans("settings-module::menu_item.settings"), urlRoute("settings")); } } }); }
function nav($menu_items, $child = false) { $output = ''; if (count($menu_items) > 0) { $output .= $child === false ? '<ul class="nav navbar-nav">' : '<ul class="dropdown-menu">'; foreach ($menu_items as $nav_item) { if (!empty($nav_item['target'])) { $nav_target = 'target="' . $nav_item['target'] . '"'; } else { $nav_target = ""; } if (strpos($nav_item['url'], "http://") !== false or strpos($nav_item['url'], "https://") !== false) { $nav_url = $nav_item['url']; } else { $nav_url = "" . BASE_URL . "" . $nav_item['url'] . ""; } //check if there are any children if (isset($nav_item['children']) && count($nav_item['children'])) { $children = 1; } else { $children = 0; } if ($children == 1) { $output .= '<li class="dropdown">'; $output .= '<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" href="' . $nav_url . '" ' . $nav_target . '>' . $nav_item['title'] . ' <span class="caret"></span></a>'; } else { $output .= '<li' . nav_active($nav_url) . '>'; $output .= '<a href="' . $nav_url . '" ' . $nav_target . '>' . $nav_item['title'] . '</a>'; } //loop if ($children == 1) { $output .= nav($nav_item['children'], true); } $output .= '</li>'; } $output .= '</ul>'; } return $output; }
<link href="jQuery%20Sortable_files/vendor.css" rel="stylesheet"> <link href="jQuery%20Sortable_files/application.css" rel="stylesheet"> <link rel="stylesheet" href="test_files/css3menu13/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style> <link rel="shortcut icon" href="icon.ico"> <script src="http://code.jquery.com/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="./jQuery Sortable_files/application.js"></script> <!-- Site Header Content //--> </head> <?php title($_SESSION['ta_name']); ?> <body> <?php nav("MathCode.php"); ?> <h3> <center> Please use the following form to <font color="red">rank</font> your preferences in courses and times </center></h3> <br /> <div> <p><b><center>Note: The following preferences are stored from previous quarters. You can reset them with the button at the bottom left of the page.</center></b> </p> <br> </div> <div style="float:left;width:24%"> <h4>List of Courses <!--<i class="icon-info-sign" data-toggle="tooltip" data-title="Drag any of the following courses into the black box of preferred courses or disliked courses" id='example'></i>--></h4>
<nav id="section-nav" class="navigation vertical" role="navigation"> <?php $navArray = array(array('label' => __('Themes'), 'uri' => url('themes'), 'resource' => 'Themes', 'privilege' => 'edit'), array('label' => __('Navigation'), 'uri' => url('appearance/edit-navigation')), array('label' => __('Settings'), 'uri' => url('appearance/edit-settings'))); echo nav($navArray, 'admin_navigation_settings'); ?> </nav>
</script> <?php if (!is_admin_theme()) { ?> <div class="container-twelve"> <?php } ?> <ul id='section-nav' class='navigation tabs'> <?php $typesNav = array(); foreach ($profile_types as $index => $type) { $typesNav[$type->label] = array('label' => $type->label, 'uri' => url('user-profiles/profiles/user/id/' . $user->id . '/type/' . $type->id)); } echo nav($typesNav, 'user_profiles_types_user_edit'); ?> </ul> <?php echo flash(); ?> <div id="primary"> <section class="seven columns alpha"> <?php if (empty($userprofilesprofile)) { ?> <p><?php echo __('No public profile');
$this.addClass('no-top-margin'); } } }); }); </script> </head> <body> <div id="wrapper"> <div id="header"> <h1>Hôtel-Pensao Sol Na Baïa à Brava</h1> </div> <div id="main"> <div id="navigation"> <?php echo nav(); ?> </div> <div id="content"> <div class="gutter"> <h2><?php echo title(); ?> </h2> <div class="page" style="position:relative;"><?php echo content(); ?> </div> <div class="clear"></div> </div> </div>
css("signup"); if (!$isParticipant) { facebookMeta(4); } else { facebookMeta(3); } ?> </head> <body id="page-top" class="index hackathon"> <!-- Navigation --> <?php include "../includes/nav-simple.php"; nav(true); ?> <section id="signup" class="bg-trianglePurple"> <div class="container"> <div class="row"> <div class="column12"> <div class="signupTitle"> <h1>Sign-up for T9Hacks</h1> </div> </div> </div>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700,300italic' rel='stylesheet' type='text/css'> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script> <script src="/includes/js/toolbelt.js"></script> <script src="jquery.transit.min.js"></script> <link rel="stylesheet" type="text/css" href="reset.css"> <link rel="stylesheet" type="text/css" href="styles.css"> <meta charset="UTF-8"> <meta name="description" content="Testing a modal"> <meta name="keywords" content="Modal"> <meta name="author" content="Jason"> </head> <body> <?php nav("1"); ?> <div id="container" style="width:70%; height:100%; margin:auto;"> <div> <h1 class="orange">Styles Page h1</h1> <h2 class="orange">Styles Page h2</h2> <h3 class="orange">Styles Page h3</h3> <a class="toggleButton"><strong>Open Modal</strong></a> <br><br> <img class="fancyIMG" width="562px" height="280px" src="includes/images/img1.jpg"></img>
/** * @brief build the page. * * Build the page - now that we have all the components * * @param App &$a global application object */ function construct_page(&$a) { exec_pdl($a); $comanche = count($a->layout) ? true : false; require_once theme_include('theme_init.php'); $installing = false; if ($a->module == 'setup') { $installing = true; } else { nav($a); } if ($comanche) { if ($a->layout['nav']) { $a->page['nav'] = get_custom_nav($a, $a->layout['nav']); } } if (($p = theme_include(current_theme() . '.js')) != '') { head_add_js($p); } if (($p = theme_include('mod_' . $a->module . '.php')) != '') { require_once $p; } require_once 'include/js_strings.php'; if (x($a->page, 'template_style')) { head_add_css($a->page['template_style'] . '.css'); } else { head_add_css((x($a->page, 'template') ? $a->page['template'] : 'default') . '.css'); } head_add_css('mod_' . $a->module . '.css'); head_add_css(current_theme_url($installing)); head_add_js('mod_' . $a->module . '.js'); $a->build_pagehead(); $arr = $a->get_widgets(); ksort($arr, SORT_NUMERIC); if (count($arr)) { foreach ($arr as $x) { if (!array_key_exists($x['location'], $a->page)) { $a->page[$x['location']] = ''; } $a->page[$x['location']] .= $x['html']; } } // Let's say we have a comanche declaration '[region=nav][/region][region=content]$nav $content[/region]'. // The text 'region=' identifies a section of the layout by that name. So what we want to do here is leave // $a->page['nav'] empty and put the default content from $a->page['nav'] and $a->page['section'] // into a new region called $a->data['content']. It is presumed that the chosen layout file for this comanche page // has a '<content>' element instead of a '<section>'. // This way the Comanche layout can include any existing content, alter the layout by adding stuff around it or changing the // layout completely with a new layout definition, or replace/remove existing content. if ($comanche) { $arr = array('module' => $a->module, 'layout' => $a->layout); call_hooks('construct_page', $arr); $a->layout = $arr['layout']; foreach ($a->layout as $k => $v) { if (strpos($k, 'region_') === 0 && strlen($v)) { if (strpos($v, '$region_') !== false) { $v = preg_replace_callback('/\\$region_([a-zA-Z0-9]+)/ism', 'comanche_replace_region', $v); } // And a couple of convenience macros if (strpos($v, '$htmlhead') !== false) { $v = str_replace('$htmlhead', $a->page['htmlhead'], $v); } if (strpos($v, '$nav') !== false) { $v = str_replace('$nav', $a->page['nav'], $v); } if (strpos($v, '$content') !== false) { $v = str_replace('$content', $a->page['content'], $v); } $a->page[substr($k, 7)] = $v; } } } if ($a->is_mobile || $a->is_tablet) { if (isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) { $link = $a->get_baseurl() . '/toggle_mobile?f=&address=' . curPageURL(); } else { $link = $a->get_baseurl() . '/toggle_mobile?f=&off=1&address=' . curPageURL(); } if (isset($_SESSION) && $_SESSION['mobile_theme'] != '' && $_SESSION['mobile_theme'] != '---' || isset($a->config['system']['mobile_theme']) && !isset($_SESSION['mobile_theme'])) { $a->page['footer'] .= replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array('$toggle_link' => $link, '$toggle_text' => t('toggle mobile'))); } } $page = $a->page; $profile = $a->profile; header("Content-type: text/html; charset=utf-8"); require_once theme_include((x($a->page, 'template') ? $a->page['template'] : 'default') . '.php'); }
}); <!-------------------------------------------------- THE BUTTON TO TOGGLE THE MODAL --------------------------------------------------------!> $(".toggleButton").click(function(){ if(modalOpen == 0){ $("#modalBox").css("display", "block"); $("#modalBox").transition({marginTop: '100px', opacity: 1}, "slow", function(){}); $("#bgDiv").css("display", "block"); modalOpen = 1; }else{ $("#bgDiv").css("display", "none"); $("#modalBox").transition({marginTop: '-50px', opacity: 0}, "slow", function(){$("#modalBox").css("display", "none");}); modalOpen = 0; } }); } <!-------------------------------------------------- CALL THE MODAL FUNCTION HERE --------------------------------------------------------!> modal(); }); </script> <?php nav("4"); logoheader("4"); ?> </html>
function shows() { $base = config('base'); $args = config('args'); $bc = bc(); echo <<<HTML <h3 class="title round3"> {$bc} </h3> <article class="round2 shadow2"> HTML; nav(); if (isset($args)) { $file = root . "cache/lists/{$args}-showlist.xml"; $xml = cache($file, '3600*168', shows . $args); } else { $file = root . 'cache/lists/a-showlist.xml'; $xml = cache($file, '3600*168', shows . 'a'); } #args echo <<<TH <table id="shows"> <th class="show"> Shows </th> <th> Country </th> <th class="status"> Status </th> TH; foreach ($xml->xpath('///show') as $show) { $name = $show->name; $sid = $show->id; $country = $show->country; $status = $show->status; switch ($show->status) { case 1: $status = 'Returning Series'; break; case 2: $status = 'Canceled/Ended'; break; case 3: $status = 'TBD/On The Bubble'; break; case 4: $status = 'In Development'; break; case 7: $status = 'New Series'; break; case 8: $status = 'Never Aired'; break; case 9: $status = 'Final Season'; break; case 10: $status = 'On Hiatus'; break; case 11: $status = 'Pilot Ordered'; break; case 12: $status = 'Pilot Rejected'; break; default: $status = 'Unknown'; break; } #switch echo <<<TR <tr> <td class="show"> <a href="{$base}episode/{$sid}">{$name}</a> </td> <td> {$country} </td> <td class="status"> {$status} </td> </tr> TR; } #foreach-show echo '</table>'; }
/** * Get the navigation for items. * * @package Omeka\Function\View\Navigation * @uses nav() * @param array $navArray * @param integer|null $maxDepth * @return string */ function public_nav_items(array $navArray = null, $maxDepth = 0) { if (!$navArray) { $navArray = array(array('label' => __('Browse All'), 'uri' => url('items/browse'))); if (total_records('Tag')) { $navArray[] = array('label' => __('Browse by Tag'), 'uri' => url('items/tags')); } $navArray[] = array('label' => __('Search Items'), 'uri' => url('items/search')); } return nav($navArray, 'public_navigation_items'); }
unset($_SESSION['sysmsg_info']); }*/ call_hooks('page_end', $a->page['content']); /** * * Add a place for the pause/resume Ajax indicator * */ $a->page['content'] .= '<div id="pause"></div>'; /** * * Add the navigation (menu) template * */ if ($a->module != 'install' && $a->module != 'maintenance') { nav($a); } /** * Add a "toggle mobile" link if we're using a mobile device */ if ($a->is_mobile || $a->is_tablet) { if (isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) { $link = $a->get_baseurl() . '/toggle_mobile?address=' . curPageURL(); } else { $link = $a->get_baseurl() . '/toggle_mobile?off=1&address=' . curPageURL(); } $a->page['footer'] = replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array('$toggle_link' => $link, '$toggle_text' => t('toggle mobile'))); } /** * Build the page - now that we have all the components */
$gbtitel = show(_gb_titel_noreg, array("postid" => $i, "nick" => re($get['nick']), "edit" => $edit, "delete" => $delete, "comment" => $comment, "public" => $public, "email" => $gbemail, "datum" => date("d.m.Y", $get['datum']), "uhr" => _uhr, "zeit" => date("H:i", $get['datum']), "hp" => $gbhp)); } else { $gbtitel = show(_gb_titel, array("postid" => $i, "nick" => autor($get['reg']), "edit" => $edit, "delete" => $delete, "uhr" => _uhr, "comment" => $comment, "public" => $public, "id" => $get['reg'], "email" => $gbemail, "datum" => date("d.m.Y", $get['datum']), "zeit" => date("H:i", $get['datum']), "hp" => $gbhp)); } if ($chkMe == "4") { $posted_ip = $get['ip']; } else { $posted_ip = _logged; } $show .= show($dir . "/gb_show", array("gbtitel" => $gbtitel, "nachricht" => bbcode($get['nachricht']), "editby" => bbcode($get['editby']), "ip" => $posted_ip)); $i--; } } else { $show = show(_no_entrys_yet, array("colspan" => "2")); } $seiten = nav($entrys, $maxgb, "?action=nav"); if (!ipcheck("gb", $flood_gb)) { if (isset($userid)) { $form = show("page/editor_regged", array("nick" => autor($userid), "von" => _autor)); } else { $form = show("page/editor_notregged", array("nickhead" => _nick, "emailhead" => _email, "hphead" => _hp, "postemail" => "")); } $entry = show($dir . "/add", array("titel" => _eintragen_titel, "nickhead" => _nick, "bbcodehead" => _bbcode, "add_head" => _gb_add_head, "emailhead" => _email, "what" => _button_value_add, "security" => _register_confirm, "lang" => $language, "ed" => "", "reg" => "", "whaturl" => "addgb", "hphead" => _hp, "preview" => _preview, "b1" => $u_b1, "b2" => $u_b2, "id" => $_GET['id'], "form" => $form, "posthp" => "", "postnick" => "", "posteintrag" => "", "ip" => _iplog_info, "error" => "", "eintraghead" => _eintrag)); } else { $entry = ""; $b1 = "<!--"; $b2 = "-->"; } $index = show($dir . "/gb", array("gbhead" => _gb_head, "show" => $show, "add" => $add, "entry" => $entry, "b1" => $b1, "b2" => $b2, "addgb" => $addgb, "seiten" => $seiten)); break; case 'do':
/** * @brief build the page. * * Build the page - now that we have all the components * * @param App &$a global application object */ function construct_page(&$a) { exec_pdl($a); $comanche = count(App::$layout) ? true : false; require_once theme_include('theme_init.php'); $installing = false; if (App::$module == 'setup') { $installing = true; } else { nav($a); } if ($comanche) { if (App::$layout['nav']) { App::$page['nav'] = get_custom_nav($a, App::$layout['nav']); } } $current_theme = Zotlabs\Render\Theme::current(); if (($p = theme_include($current_theme[0] . '.js')) != '') { head_add_js($p); } if (($p = theme_include('mod_' . App::$module . '.php')) != '') { require_once $p; } require_once 'include/js_strings.php'; if (x(App::$page, 'template_style')) { head_add_css(App::$page['template_style'] . '.css'); } else { head_add_css((x(App::$page, 'template') ? App::$page['template'] : 'default') . '.css'); } head_add_css('mod_' . App::$module . '.css'); head_add_css(Zotlabs\Render\Theme::url($installing)); head_add_js('mod_' . App::$module . '.js'); App::build_pagehead(); if (App::$page['pdl_content']) { App::$page['content'] = App::$comanche->region(App::$page['content']); } // Let's say we have a comanche declaration '[region=nav][/region][region=content]$nav $content[/region]'. // The text 'region=' identifies a section of the layout by that name. So what we want to do here is leave // App::$page['nav'] empty and put the default content from App::$page['nav'] and App::$page['section'] // into a new region called App::$data['content']. It is presumed that the chosen layout file for this comanche page // has a '<content>' element instead of a '<section>'. // This way the Comanche layout can include any existing content, alter the layout by adding stuff around it or changing the // layout completely with a new layout definition, or replace/remove existing content. if ($comanche) { $arr = array('module' => App::$module, 'layout' => App::$layout); call_hooks('construct_page', $arr); App::$layout = $arr['layout']; foreach (App::$layout as $k => $v) { if (strpos($k, 'region_') === 0 && strlen($v)) { if (strpos($v, '$region_') !== false) { $v = preg_replace_callback('/\\$region_([a-zA-Z0-9]+)/ism', array(App::$comanche, 'replace_region'), $v); } // And a couple of convenience macros if (strpos($v, '$htmlhead') !== false) { $v = str_replace('$htmlhead', App::$page['htmlhead'], $v); } if (strpos($v, '$nav') !== false) { $v = str_replace('$nav', App::$page['nav'], $v); } if (strpos($v, '$content') !== false) { $v = str_replace('$content', App::$page['content'], $v); } App::$page[substr($k, 7)] = $v; } } } if (App::$is_mobile || App::$is_tablet) { if (isset($_SESSION['show_mobile']) && !$_SESSION['show_mobile']) { $link = z_root() . '/toggle_mobile?f=&address=' . curPageURL(); } else { $link = z_root() . '/toggle_mobile?f=&off=1&address=' . curPageURL(); } if (isset($_SESSION) && $_SESSION['mobile_theme'] != '' && $_SESSION['mobile_theme'] != '---' || isset(App::$config['system']['mobile_theme']) && !isset($_SESSION['mobile_theme'])) { App::$page['footer'] .= replace_macros(get_markup_template("toggle_mobile_footer.tpl"), array('$toggle_link' => $link, '$toggle_text' => t('toggle mobile'))); } } $page = App::$page; $profile = App::$profile; // There's some experimental support for right-to-left text in the view/php/default.php page template. // In v1.9 we started providing direction preference in the per language hstrings.php file // This requires somebody with fluency in a RTL language to make happen $page['direction'] = 0; // ((App::$rtl) ? 1 : 0); header("Content-type: text/html; charset=utf-8"); // security headers - see https://securityheaders.io if (App::get_scheme() === 'https' && App::$config['system']['transport_security_header']) { header("Strict-Transport-Security: max-age=31536000"); } if (App::$config['system']['content_security_policy']) { header("Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"); } if (App::$config['system']['x_security_headers']) { header("X-Frame-Options: SAMEORIGIN"); header("X-Xss-Protection: 1; mode=block;"); header("X-Content-Type-Options: nosniff"); } if (App::$config['system']['public_key_pins']) { header("Public-Key-Pins: " . App::$config['system']['public_key_pins']); } require_once theme_include((x(App::$page, 'template') ? App::$page['template'] : 'default') . '.php'); }
<?php echo nav(adminNavGroup())->fullNavigation(app("config")->get("laravel-admin::top_title"), "dashboard");
<?php $query = array(); if (!empty($collection)) { $pageNav[] = array('label' => __('Home'), 'uri' => record_url($collection)); $query['collection'] = $collection->id; } $pageNav[] = array('label' => __('Browse Items'), 'uri' => url('items/browse', $query)); if (empty($collection) && total_records('Tag')) { $pageNav[] = array('label' => __('Item Tags'), 'uri' => url('items/tags', $query)); } $pageNav[] = array('label' => __('Advanced Search'), 'uri' => url('items/search', $query)); return nav($pageNav)->setUlClass('nav nav-pills');
} else { $status = ""; } $class = $color % 2 ? "contentMainSecond" : "contentMainFirst"; $color++; if (permission("editusers")) { $edit = show("page/button_edit", array("id" => "", "action" => "action=admin&edit=" . $get['id'], "title" => _button_title_edit)); $edit = str_replace("&id=", "", $edit); $delete = show("page/button_delete", array("id" => $get['id'], "action" => "action=admin&do=delete", "title" => _button_title_del)); } else { $edit = ""; $delete = ""; } $userliste .= show($dir . "/userliste_show", array("nick" => autor($get['id'], '', '', 10), "level" => getrank($get['id']), "status" => $status, "email" => $email, "age" => getAge($get['bday']), "mf" => $sex, "edit" => $edit, "delete" => $delete, "class" => $class, "icq" => $icq, "icquin" => $get['icq'], "onoff" => onlinecheck($get['id']), "hp" => $hp, "hlsw" => $hlsw)); } $seiten = nav($entrys, $maxuserlist, "?action=userlist&show=" . $_GET['show'] . ""); if (permission("editusers")) { $edel = '<td class="contentMainTop" colspan="2"> </td>'; } if (isset($_GET['search']) && !empty($_GET['search'])) { $search = $_GET['search']; } else { $search = _nick; } $index = show($dir . "/userliste", array("userlistehead" => _userlist, "nickhead" => _nick, "normal" => _ulist_normal, "country" => _ulist_country, "sex" => _ulist_sex, "cnt" => $entrys . " " . _user, "lastreg" => _ulist_lastreg, "online" => _ulist_online, "age" => _ulist_age, "login" => _ulist_last_login, "bday" => _ulist_bday, "sort" => _ulist_sort, "banned" => _ulist_acc_banned, "edel" => $edel, "search" => $search, "value" => _button_value_search, "mficon" => _mficon_blank, "nav" => $seiten, "statushead" => _status, "emailicon" => _emailicon_blank, "addbuddyicon" => _addbuddyicon_blank, "agehead" => _profil_age, "icqicon" => _icqicon_blank, "pnicon" => _pnicon_blank, "hpicon" => _hpicon_blank, "hlswicon" => _hlswicon_blank, "show" => $userliste)); break; case 'buddys': $where = _site_user_buddys; if ($chkMe == "unlogged") { $index = error(_error_have_to_be_logged, 1); } else {
$db_erg = mysql_query($sql); if (!$db_erg) { die('Ungültige Abfrage: ' . mysql_error()); } // ausführen des mysql-Befehls $db_erg = mysql_query($sql2); if (!$db_erg) { die('Ungültige Abfrage: ' . mysql_error()); } exit; } else { head(); ?> <body> <?php nav(); ?> <div class="container"> <div class="jumbotron" style="padding-right: 15px;padding-left: 15px;"> <img style="width: 100%;" src="http://www.leichtathletik-shop.info/WebRoot/Store22/Shops/62420778/MediaGallery/banner_shop.jpg?CachePrevention=1447671124"> <h1>Bestellformular</h1> <p>Sie sind Leichtathletik-Fan und wollen Ihre Stars hautnah erleben, oder gar die Kleidung der DLV-Mannschaft tragen? Dann sind Sie hier richtig.</p> <p>Sichern Sie sich jetzt über den leichtathletik.de Online-Shop die offizielle DLV-Mode der deutschen Leichtathletik-Mannschaft - angefangen beim Rucksack, über T-Shirts bis hin zu den Trikots. Außerdem erhältlich: Das heiß begehrte T-Shirt zu den Deutschen Meisterschaften mit dem Sie immer eine gute Figur machen, egal ob Zuschauer oder Athlet. </p> </br><p><i><span style="color: red;"><b>Bitte überprüfen Sie alle Formularfelder und akzeptieren Sie die AGBs!</b></span></i></p></br></br> <form action="<?php echo $_SERVER['../PHP_SELF']; ?> " enctype="multipart/form-data" method="post" target="_self">
?> <?php foreach ($categoryValues as $value) { ?> <li class='category'><?php echo metadata_browser_create_link($category->element_id, $value); ?> </li> <?php } ?> </ul> </div> <?php if ($category->getCategoryCount() >= 10) { ?> <ul class="navigation item-tags" id="secondary-nav"> <li>Browse by: </li> <?php echo nav(array('Title' => uri('items/browse', array('sortby' => 'dc.title')), 'Category' => uri('category'), 'Tag' => uri('items/tags'), 'Creator' => uri('items/browse', array('sortby' => 'dc.creator')), 'Most Recent' => uri('items/browse', array('sortby' => 'omeka.modified', 'sortorder' => 'desc')))); ?> </ul> <?php } ?> </div> <?php foot();
unset($_SESSION['course']); unset($_SESSION['dept']); if (!isset($_SESSION['ta_id'])) { session_regenerate_id(true); session_write_close(); header("Location:login.php"); } if (!isset($_POST['submit'])) { ?> <link rel="shortcut icon" href="icon.ico" > <link href="css/styles.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="test_files/css3menu13/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style> <?php title($_SESSION['ta_name']); nav("quarter.php"); print '<h3> <center> Please select the quarter in which you will be Teaching </center></h3>'; if (isset($_POST['submit1'])) { $_SESSION['dept'] = $_POST['dept']; } if (isset($_POST['submit2'])) { $_SESSION['course'] = $_POST['course']; } if (isset($_POST['submit3'])) { $_SESSION['section'] = $_POST['section']; //then find events, check for conflicts, add to calendar. $error = add_event($_SESSION['section'], "section", $_SESSION['year'], $_SESSION['season'], $_SESSION['ta_id']); } if (isset($_POST['submit'])) { $_SESSION['crn'] = $_POST['crn']; //get section id from CRN or return NOT FOUND
?> <h1><?php echo $title; ?> <?php echo __('(%s total)', $total_results); ?> </h1> <?php if (count($exhibits) > 0) { ?> <!-- <nav class="navigation secondary-nav"> <?php echo nav(array(array('label' => __('Browse All'), 'uri' => url('exhibits')), array('label' => __('Browse by Tag'), 'uri' => url('exhibits/tags')))); ?> </nav> --> <?php echo pagination_links(); ?> <?php $exhibitCount = 0; foreach (loop('exhibit') as $exhibit) { ?> <?php $exhibitCount++; ?>