Example #1
0
 static function DrawIssueArchiveList($dummy = "")
 {
     $stdout = "";
     $items = array();
     $colhead1 = "<div class='col c1of2'>\r\n" . "\r\n" . "  <h3>Nordita in Stockholm</h3>\r\n" . "\r\n";
     $colhead2 = "</div>\r\n" . "\r\n" . "<div class='col c2of2'>\r\n" . "\r\n" . "  <h3>Nordita in Copenhagen</h3>\r\n" . "\r\n" . "          <h3>2006</h3>\r\n" . "            <p>\r\n" . "              <a href='" . PATH_NEWSOLDARCHIVE . "/a_new_beginning/index.php'>" . "A New Beginning for NORDITA in Stockholm</a><br>\r\n";
     // -----------------------------------------------------------
     // -- Obtain data
     // -----------------------------------------------------------
     // New-style issues (from DB)
     self::initiateNewsClass();
     $newstyleIssues = $GLOBALS["newsClass"]->getIssue(NEWS_PUBLISHED, 0, "date_published DESC");
     if ($newstyleIssues) {
         foreach ($newstyleIssues as $iss) {
             if (!empty($iss["issue_year"]) && !empty($iss["issue_number"])) {
                 $date = date("F Y", strtotime($iss["issue_date_published"]));
                 $items[$iss["issue_year"]][$iss["issue_number"]] = array("subpath" => PATH_NEWSARCHIVE . "/index.php?iid=" . $iss["issue_id"], "blurb" => $date, "issue" => "Nordita News " . $iss["issue_year"] . ", " . "Issue " . $iss["issue_number"], "oldstyle" => 0);
             }
         }
     }
     // Old-style issues (from menu file)
     if (!function_exists("menu_newsletters")) {
         include PATH_MENU . "/m_newsletters.php";
     }
     if (!function_exists("menu_newsletters")) {
         return $colhead1 . "<p class='red bold'>No issues found</p>\r\n" . $colhead2;
     }
     foreach (menu_newsletters() as $key => $v) {
         $item = array();
         if (preg_match("#" . "/(nn_(....)_(\\d*))#ms", $key, $res) && !preg_match("/available_issues/", $key) && $res[2] <= LAST_OLDSTYLE_YEAR) {
             $item["subpath"] = PATH_NEWSOLDARCHIVE . "/" . $res[1] . "/index.php";
             $item["blurb"] = $v["blurb"] . " " . $res[2];
             $item["issue"] = "Nordita News " . $res[2] . ", Issue " . $res[3];
             $item["oldstyle"] = $res[2] <= LAST_OLDSTYLE_YEAR ? 1 : 0;
             $items[$res[2]][$res[3]] = $item;
         }
     }
     krsort($items);
     if (!isset($items) || empty($items)) {
         return $colhead1 . "<p class='red bold'>No issues found</p>\r\n" . $colhead2;
     }
     // ------------------------------
     // -- Output data
     // ------------------------------
     $stdout .= $colhead1;
     foreach ($items as $year => $entry) {
         if ($year == "2006") {
             $stdout .= $colhead2;
         } else {
             $stdout .= "          <h3>" . $year . "</h3>\r\n" . "            <p>\r\n";
         }
         foreach ($entry as $issue => $ev) {
             if ($issue) {
                 $stdout .= "              <a href='" . $ev["subpath"] . "'>" . "Nordita News " . $ev["issue"] . "</a>. " . "&nbsp;&nbsp; " . $ev["blurb"] . "<br>\r\n";
             }
         }
         //TODO: fragile; this is the earliest new-style issue
         if ($ev["subpath"] != "nn_2006_2") {
             $stdout .= "            </p>\r\n";
         }
     }
     $stdout .= functions::OutputWikiPage('0', '1581') . "</div><div style='clear:both'><br></div>\r\n";
     if (SUBSITE == PATH_NEWSTEST) {
         $stdout = str_replace(PATH_NEWS . "/", PATH_NEWSTEST . "/", $stdout);
     }
     return $stdout;
 }
Example #2
0
function menu_news($subsitecrumb = PATH_NEWS)
{
    $pg = array();
    $titlePrefix = $subsitecrumb == PATH_NEWSTEST ? TEST_PREFIX : "";
    // ===========================================================================
    // New Newsletter Site (2013)
    // ===========================================================================
    if (PATH_NEWS == "news") {
        // New newsletter site
        $pg[$subsitecrumb] = array("title" => "News", "robots" => "noindex,nofollow", "isindex" => true, "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nopagetitle" => true, "feedurl" => $subsitecrumb . "/feed", "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_COVER . "')");
        $pg[$subsitecrumb . "/archive"] = array("title" => $titlePrefix . "Nordita News - Current Issue", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "command" => "functions::callMethod('news','lib/news','DrawArticlesRecentInSectionList','" . NEWS_ALLSECTIONS . "')", "nolist" => true);
    } else {
        // Old news summary page
        $pg["news"] = array("title" => $titlePrefix . "News", "priority" => "0.9", "changefreq" => "weekly", "keywords" => "news, science news, scientific news", "desc" => "Scientific and other news from Nordita, the Nordic Institute for theoretical Physics.", "bodyid" => "newsbrief", "medwide" => true, "nosearchfocus" => true, "command" => IS_TESTSERVER ? "functions::callMethod('news','lib/news','DrawPage','" . NEWS_COVER . "')" : "functions::callMethod('news','lib/news','OutputScienceNews')");
    }
    // ===========================================================================
    $pg[$subsitecrumb . "/feed"] = array("title" => $titlePrefix . "Nordita Newsletter Feed", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "contenttype" => "feed", "command" => "functions::callMethod('feed','lib/feed','OutputRssPage','" . NEWS_ALLSECTIONS . "')", "nolist" => true);
    // -----------------------------------------------------------
    // Pages that will be displayed in the subsite menu:
    $pg[$subsitecrumb . "/feature"] = array("title" => $titlePrefix . "Feature", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "feedurl" => $subsitecrumb . "/feature/feed", "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_FEATURE . "')");
    $pg[$subsitecrumb . "/feature/archive"] = array("title" => $titlePrefix . "Feature Archive", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "command" => "functions::callMethod('news','lib/news','DrawArticlesRecentInSectionList','" . NEWS_FEATURE . "')", "nolist" => true);
    $pg[$subsitecrumb . "/feature/feed"] = array("title" => $titlePrefix . "Nordita News Feature - Feed", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "contenttype" => "feed", "command" => "functions::callMethod('feed','lib/feed','OutputRssPage','" . NEWS_FEATURE . "')", "nolist" => true);
    $pg[$subsitecrumb . "/nordic"] = array("title" => $titlePrefix . "Nordic News", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "feedurl" => $subsitecrumb . "/nordic/feed", "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_NORDIC . "')");
    $pg[$subsitecrumb . "/nordic/archive"] = array("title" => $titlePrefix . "Nordic News Archive", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "command" => "functions::callMethod('news','lib/news','DrawArticlesRecentInSectionList','" . NEWS_NORDIC . "')", "nolist" => true);
    $pg[$subsitecrumb . "/nordic/correspondents"] = array("title" => $titlePrefix . "Our Correspondents", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "command" => "functions::callMethod('news','lib/news','DrawAuthorsList','" . NEWS_CORRESPONDENT . "')");
    $pg[$subsitecrumb . "/nordic/feed"] = array("title" => $titlePrefix . "Nordic News - Feed", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "contenttype" => "feed", "command" => "functions::callMethod('feed','lib/feed','OutputRssPage','" . NEWS_NORDIC . "')", "nolist" => true);
    $pg[$subsitecrumb . "/institute"] = array("title" => $titlePrefix . "From the Institute", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "changefreq" => "weekly", "keywords" => "news, science news, scientific news", "desc" => "Scientific and other news from Nordita, the Nordic Institute for theoretical Physics.", "bodyid" => "newsletter", "medwide" => true, "nosearchfocus" => true, "feedurl" => $subsitecrumb . "/institute/feed/", "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_INSTITUTE . "')");
    $pg[$subsitecrumb . "/institute/archive"] = array("title" => $titlePrefix . "Newsletter Archive", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "wikititle" => "Available_Issues", "wikiid" => "1581", "command" => "functions::callMethod('news','lib/news','DrawArticlesRecentInSectionList','" . NEWS_INSTITUTE . "')", "nolist" => true);
    $pg[$subsitecrumb . "/institute/feed"] = array("title" => $titlePrefix . "From Nordita - Feed", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "contenttype" => "feed", "command" => "functions::callMethod('feed','lib/feed','OutputRssPage','" . NEWS_INSTITUTE . "')", "nolist" => true);
    $pg[$subsitecrumb . "/institute/preprints"] = array("title" => $titlePrefix . "Nordita Preprint Archive" . EXTERNAL_LINK, "bodyid" => "newsletter", "norditabot" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nosearch" => true, "url" => RELPATHTOROOT . "preprints/index.php");
    $pg[$subsitecrumb . "/upcoming"] = array("title" => $titlePrefix . "Upcoming", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "feedurl" => $subsitecrumb . "/upcoming/feed", "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_UPCOMING . "')");
    $pg[$subsitecrumb . "/upcoming/archive"] = array("title" => $titlePrefix . "Upcoming Archive", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "command" => "functions::callMethod('news','lib/news','DrawUpcomingRecent','0','999')", "nolist" => true);
    $pg[$subsitecrumb . "/upcoming/feed"] = array("title" => $titlePrefix . "From Nordita - Feed", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "contenttype" => "feed", "command" => "functions::callMethod('feed','lib/feed','OutputRssPage','" . NEWS_UPCOMING . "')", "nolist" => true);
    $pg[$subsitecrumb . "/upcoming/events"] = array("title" => $titlePrefix . "All Nordita Events" . EXTERNAL_LINK, "bodyid" => "newsletter", "norditabot" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nosearch" => true, "url" => RELPATHTOROOT . "science/events/index.php");
    $pg[$subsitecrumb . "/upcoming/positions"] = array("title" => $titlePrefix . "Current Open Positions" . EXTERNAL_LINK, "bodyid" => "newsletter", "norditabot" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nosearch" => true, "url" => RELPATHTOROOT . "people/positions/index.php");
    $pg[$subsitecrumb . "/about"] = array("title" => $titlePrefix . "About", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "notintopmenu" => true, "wikititle" => "News_About", "wikiid" => "2477", "command" => "functions::OutputWikiPage('0','2477')");
    $pg[$subsitecrumb . "/about/subscribe"] = array("title" => $titlePrefix . "Subscribe", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nofollow" => true, "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "nosearchfocus" => true, "wikititle" => "News_Subscribe", "wikiid" => "2462", "command" => "functions::callMethod('news','lib/news','NsubscribeDialogue','subscribe')");
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/about/unsubscribe"] = array("title" => $titlePrefix . "Unsubscribe", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nofollow" => true, "nosearch" => true, "bodyid" => "newsletter", "medwide" => true, "nosearchfocus" => true, "wikititle" => "News_Unsubscribe", "wikiid" => "2464", "command" => "functions::callMethod('news','lib/news','NsubscribeDialogue','unsubscribe')");
    $pg[$subsitecrumb . "/about/rss"] = array("title" => $titlePrefix . "RSS Feeds", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "wikititle" => "News_Feedindex", "wikiid" => "2478", "command" => "functions::OutputWikiPage('0','2478')");
    $pg[$subsitecrumb . "/about/archive"] = array("title" => $titlePrefix . "Newsletter Archive", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "command" => "functions::callMethod('news','lib/news','DrawIssuePreview','" . NEWS_PUBLISHED . "')");
    $pg[$subsitecrumb . "/about/archive/issues"] = array("title" => $titlePrefix . "Older Newsletter Issues", "priority" => "0.4", "bodyid" => "newsletter", "medwide" => true, "nosearch" => true, "wikititle" => "Available_Issues", "wikiid" => "1581", "command" => "functions::callMethod('news','lib/news','DrawIssueArchiveList')");
    // -- No support for this in the directory tree (too much to copy). Use redirect instead
    if (file_exists(INCLEVEL . PATH_MENU . "/m_newsletters.php")) {
        include_once PATH_MENU . "/m_newsletters.php";
        $pg = array_merge($pg, menu_newsletters(PATH_NEWSOLDARCHIVE));
    }
    $pg[$subsitecrumb . "/about/contact"] = array("title" => $titlePrefix . "Contact Us", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "wikititle" => "News_Contact", "wikiid" => "2475", "command" => "functions::OutputWikiPage('0','2475')");
    $pg[$subsitecrumb . "/about/authors"] = array("title" => $titlePrefix . "Authors and Editors", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "command" => "functions::callMethod('news','lib/news','DrawAuthorsList','" . NEWS_EDITOR . "','" . NEWS_CORRESPONDENT . "')");
    $pg[$subsitecrumb . "/about/cookies"] = array("title" => $titlePrefix . "Cookie Policy", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "wikititle" => "News_Cookies", "wikiid" => "2476", "command" => "functions::OutputWikiPage('0','2476')");
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/reset"] = array("title" => $titlePrefix . "Reset Editor's Password", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "nosearchfocus" => true, "wikititle" => "Lorem_Ipsum*", "wikiid" => "2188", "command" => "functions::callMethod('news','lib/news','DrawPasswordReset')", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/search"] = array("title" => $titlePrefix . "Search", "bodyid" => "search", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "priority" => "0.0", "changefreq" => "never", "bodyid" => "newsletter", "medwide" => true, "nobackground" => true, "nosearch" => true, "command" => "search::getCombinedSearch()", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/article"] = array("title" => $titlePrefix . "FROM THE NORDITA NEWSLETTER", "bodyid" => "search", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "priority" => "0.0", "changefreq" => "never", "bodyid" => "newsletter", "medwide" => true, "notintopmenu" => true, "nobackground" => true, "nosearch" => true, "command" => "functions::callMethod('news','lib/news','DrawPage','" . NEWS_ARTICLE . "')", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/authenticate"] = array("title" => $titlePrefix . "Authenticating Your OpenID...", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nosearch" => true, "priority" => "0.0", "changefreq" => "never", "bodyid" => "newsletter", "medwide" => true, "nosearchfocus" => true, "contenttype" => "standalone", "command" => "functions::callMethod('news','lib/news','CheckOpenid')", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/sitemap"] = array("title" => $titlePrefix . "Nordita Newsletter Site Map", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "command" => "functions::callMethod('sitemap','lib/sitemap','OutputSitemap','positions')", "nolist" => true);
    /*
      // -- unlisted but linked to
      $pg[$subsitecrumb."/about"] = array(
          "title"    => $titlePrefix . "About the Newsletter",
          "robots"   => "noindex,nofollow",
          "bodyid"   => "newsletter",
          "medwide"  => true,
          "nofollow" => true,
          "nosearch" => true,
          "wikititle" => "Lorem_Ipsum",
          "wikiid"    => "2411",
          "command"  => "functions::OutputWikiPage('0','2188')",
          "nolist"   => true
         );
    */
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/feedindex"] = array("title" => $titlePrefix . "Feed Index", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "wikititle" => "News_Feedindex", "wikiid" => "2478", "command" => "functions::OutputWikiPage('0','2478')", "nolist" => true);
    // Using RSS Feeds
    // How to make the most of our RSS feeds
    // 1. Sign up to a browser-based service like Google Reader or download a desktop application like NetNewsWire.
    // 2. Click on the feed you want to subscribe to and follow the link to the service you have signed up to. If your service is not in our list you can copy the feed address and paste it into your own reader.
    // 3. Your RSS reader will now update with the latest content from The Times.
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/subscribe"] = array("title" => $titlePrefix . "Subscribe", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nosearch" => true, "priority" => "0.0", "changefreq" => "never", "bodyid" => "newsletter", "medwide" => true, "nosearchfocus" => true, "url" => "../about/subscribe/index.php", "nolist" => true);
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/unsubscribe"] = array("title" => $titlePrefix . "Unsubscribe", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nosearch" => true, "priority" => "0.0", "changefreq" => "never", "bodyid" => "newsletter", "medwide" => true, "nosearchfocus" => true, "url" => "../about/unsubscribe/index.php", "nolist" => true);
    // ===========================================================================
    // Old News page
    // ===========================================================================
    /*
      $pg["news"] = array(
          "title"    => $titlePrefix . "News",
          "priority" => "0.9",
          "changefreq" => "weekly",
          "keywords" => "news, science news, scientific news",
          "desc"     => "Scientific and other news from Nordita, the Nordic Institute for theoretical Physics.",
          "bodyid"   => "newsletter",
          "medwide"  => true,
          "nosearchfocus" => true,
          //"wikititle" => "News",
          //"wikiid"    => "1436",
          //"command"  => "functions::OutputWikiPage('0','1436')"
          "command" => "functions::callMethod('news','lib/news','OutputScienceNews')" // obsolete
    ,"nolist" => true
         );
    */
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/albanova_agenda"] = array("title" => $titlePrefix . "AlbaNova Agenda System", "priority" => "0.9", "changefreq" => "weekly", "keywords" => "agendaweb, agenda web, agenda, albanova agenda", "desc" => "", "medwide" => true, "wikititle" => "A2z_Agenda_Howto", "wikiid" => "2364", "command" => "functions::OutputWikiPage('0','2362');functions::OutputWikiPage('0','2364')", "nolist" => true);
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/nordita_news"] = array("title" => $titlePrefix . "Nordita Newsletter", "priority" => "0.8", "changefreq" => "weekly", "nosearchfocus" => true, "wikititle" => "Nordita_News", "wikiid" => "1627", "command" => "functions::OutputWikiPage('0','1627')", "nolist" => true);
    // -- unlisted
    $pg[$subsitecrumb . "/nordita_news/current_issue"] = array("title" => $titlePrefix . "Current Issue", "priority" => "0.8", "changefreq" => "weekly", "robots" => "noindex,nofollow", "nofollow" => true, "wikititle" => "*_Current_Issue", "wikiid" => "2358", "url" => RELPATHTOROOT . PATH_NEWS . "/index.php", "nolist" => true);
    // -- unlisted
    $pg[$subsitecrumb . "/nordita_news/available_issues"] = array("title" => $titlePrefix . "Newsletter Archive", "priority" => "0.4", "medwide" => true, "wikititle" => "Available_Issues", "wikiid" => "1581", "command" => "functions::callMethod('news','lib/news','DrawIssueArchiveList')", "nolist" => true);
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/preprints"] = array("title" => $titlePrefix . "Preprint Archive", "robots" => "noindex,nofollow", "nofollow" => true, "url" => USE_SECURE_SITE_FOR_PREPRINTS ? "https://secure.albanova.se/preprints/index.php?group=all&period=" . date("Y") : "../../preprints/index.php?group=all&period=" . date("Y"), "nolist" => true);
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/rss"] = array("title" => $titlePrefix . "RSS Feeds", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "nosearch" => true, "url" => "../about/rss/index.php", "nolist" => true);
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/visitors_this_week"] = array("title" => $titlePrefix . "Visitors Arriving This Week", "medwide" => true, "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "command" => "functions::callMethod('event','lib/event','OutputArrivingVisitors','arrivingvisitors','week')", "nolist" => true);
    // --------------------
    // -- unlisted
    $pg[$subsitecrumb . "/open_positions"] = array("title" => $titlePrefix . "Open Positions", "priority" => "0.8", "changefreq" => "monthly", "medwide" => true, "command" => "functions::callMethod('position','lib/position','OutputOpenPositions','openpositions','','','0','0','0');", "nolist" => true);
    // -- unlisted
    $pg[$subsitecrumb . "/open_positions/archive"] = array("title" => $titlePrefix . "Positions Archive", "medwide" => true, "command" => "functions::callMethod('position','lib/position','OutputOpenPositions','openpositions','','','0','1','0');", "nolist" => true);
    // -- unlisted
    $pg[$subsitecrumb . "/open_positions/applications"] = array("title" => $titlePrefix . "Applications" . EXTERNAL_LINK, "robots" => "noindex,nofollow", "nofollow" => true, "url" => "http://jam.nordita.org/", "nolist" => true);
    // ===========================================================================
    return $pg;
}
Example #3
0
function menu_adm($subsitecrumb = "adm")
{
    $pg = array();
    // -----------------------------------------------------------
    $pg[$subsitecrumb] = array("title" => "For Nordita Administrators", "robots" => "noindex,nofollow", "isindex" => true, "medwide" => true, "nofollow" => true, "wikititle" => "Admin_*", "wikiid" => "2382", "command" => "functions::callMethod('startpage','lib/startpage','OutputStartpage')");
    // -----------------------------------------------------------
    // Pages that will be displayed in the subsite menu:
    $pg[$subsitecrumb . "/administration"] = array("title" => "Administration", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_administration", "wikiid" => "2415", "command" => "functions::OutputWikiPage('0','2415')");
    $pg[$subsitecrumb . "/administration/projects"] = array("title" => "Project Codes", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "../../../docsx/su_project_numbers.html");
    $pg[$subsitecrumb . "/administration/common_folder"] = array("title" => "Common Nordita Folder", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Computing_Common_Folder", "wikiid" => "2590", "command" => "functions::OutputWikiPage('0','2590')");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/policies"] = array("title" => "Policies", "robots" => "noindex,nofollow", "medwide" => true, "wikititle" => "Admin_policies", "wikiid" => "2594", "command" => "functions::OutputWikiPage('0','2594')", "medwide" => true);
    $pg[$subsitecrumb . "/policies/employment_affiliation"] = array("title" => "Employment and Affiliation", "robots" => "noindex,nofollow", "medwide" => true, "wikititle" => "Employment_and_Affiliation", "wikiid" => "2595", "command" => "functions::OutputWikiPage('0','2595')", "medwide" => true);
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/people"] = array("title" => "People", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_manage_hr", "wikiid" => "2204", "command" => "functions::OutputWikiPage('0','2204')");
    $pg[$subsitecrumb . "/people/job_descriptions"] = array("title" => "Job Descriptions", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_job_descriptions", "wikiid" => "2205", "command" => "functions::OutputWikiPage('0','2205')");
    $pg[$subsitecrumb . "/people/whoiswhere"] = array("title" => "Who Is Where" . EXTERNAL_LINK, "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "http://whoiswhere.albanova.se/travel/");
    $pg[$subsitecrumb . "/people/homepages"] = array("title" => "User Homepages", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('people','lib/people','OutputUserHomepagesCheck')");
    $pg[$subsitecrumb . "/people/offices"] = array("title" => "Offices", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_manage_offices", "wikiid" => "2226", "command" => "functions::OutputWikiPage('0','2226')");
    $pg[$subsitecrumb . "/people/offices/maps"] = array("title" => "Maps over Offices", "priority" => "0.4", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_manage_offices_maps", "wikiid" => "2227", "command" => "functions::OutputWikiPage('0','2227');");
    $pg[$subsitecrumb . "/people/offices/doorlabel"] = array("title" => "Create Doorlabels", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nobanneronprint" => true, "nocolophon" => true, "command" => "functions::callMethod('people','lib/people','OutputDoorlabel')");
    $pg[$subsitecrumb . "/people/stay_list"] = array("title" => "Staff List With Period of Stay", "robots" => "noindex,nofollow", "nofollow" => true, "medwide" => true, "nosearchfocus" => true, "command" => "functions::callMethod('people','lib/people','OutputPeople','all','stay','','')");
    $pg[$subsitecrumb . "/people/full_list"] = array("title" => "Staff List With All Data", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nosearchfocus" => true, "command" => "functions::callMethod('people','lib/people','OutputPeople','complete','full','','')");
    $pg[$subsitecrumb . "/people/helpdesk_list"] = array("title" => "Phone List for Helpdesk", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('people','lib/people','OutputPeople','all','csv','xpeople-list','')");
    $pg[$subsitecrumb . "/people/this_week"] = array("title" => "Visitors Arriving This Week", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('event','lib/event','OutputArrivingVisitors','arrivingvisitors','week')");
    $pg[$subsitecrumb . "/people/alumni"] = array("title" => "Alumni" . EXTERNAL_LINK, "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "http://cms.nordita.org/?q=ea/3724363626");
    $pg[$subsitecrumb . "/people/visiting_phd_fellows"] = array("title" => "Visiting PhD Fellows", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Science_Visitors_PhD_Fellows", "wikiid" => "2192", "command" => "functions::OutputWikiPage('0','2192')");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/events"] = array("title" => "Events", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_manage_events", "wikiid" => "2206", "command" => "functions::OutputWikiPage('0','2206')");
    $pg[$subsitecrumb . "/events/agenda"] = array("title" => "AlbaNova Agenda System" . EXTERNAL_LINK, "priority" => "0.0", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => AGENDA_URI . "/");
    $pg[$subsitecrumb . "/events/visitors"] = array("title" => "Visitors (CMS)" . EXTERNAL_LINK, "priority" => "0.0", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "http://cms.nordita.org/index.php?q=vm");
    $pg[$subsitecrumb . "/events/cms"] = array("title" => "Visitors (CMS)" . EXTERNAL_LINK, "priority" => "0.0", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "http://cms.nordita.org/index.php?q=vm", "nolist" => true);
    $pg[$subsitecrumb . "/events/howto_organizers"] = array("title" => "Instructions for Organizers", "priority" => "0.0", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "../../../organizers/index.php");
    $pg[$subsitecrumb . "/events/list"] = array("title" => "List Nordita Events", "priority" => "0.95", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('event','lib/event','OutputEventList')");
    $pg[$subsitecrumb . "/events/calendar"] = array("title" => "Events Calendar", "robots" => "noindex,nofollow", "bodyid" => "calendar", "medwide" => true, "nofollow" => true, "nocolophon" => true, "command" => "functions::callMethod('event','lib/event','OutputEventCalendar')");
    $pg[$subsitecrumb . "/events/timetables"] = array("title" => "View Timetables", "bodyid" => "timetable", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nopagetitle" => true, "nocolophon" => true, "command" => "functions::callMethod('event','lib/event','OutputEventTimetable')");
    $pg[$subsitecrumb . "/events/participants"] = array("title" => "View List of Participants", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nopagetitle" => true, "nocolophon" => true, "nosearchfocus" => true, "command" => "functions::callMethod('event','lib/event','OutputEventParticipantsCaptcha')");
    $pg[$subsitecrumb . "/events/participants_daily"] = array("title" => "View Participants One Day", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "nofollow" => true, "medwide" => true, "nosearchfocus" => true, "notintopmenu" => true, "nopagetitle" => true, "nocolophon" => true, "command" => "functions::callMethod('event','lib/event','OutputEventParticipantsCaptcha','1')");
    $pg[$subsitecrumb . "/events/distribution"] = array("title" => "View Participant Distributions", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nocolophon" => true, "command" => "functions::callMethod('event','lib/event','OutputEventDistribution')");
    $pg[$subsitecrumb . "/events/partmail"] = array("title" => "E-mail Addresses of Participants", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nocolophon" => true, "nosearchfocus" => true, "command" => "functions::callMethod('event','lib/event','OutputEventPartMailCaptcha')");
    $pg[$subsitecrumb . "/events/orgmail"] = array("title" => "E-mail Addresses of Organizers", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nocolophon" => true, "nosearchfocus" => true, "command" => "functions::callMethod('event','lib/event','OutputEventOrgMailCaptcha')");
    $pg[$subsitecrumb . "/events/registration"] = array("title" => "Registration Dates for Events", "robots" => "noindex,nofollow", "medwide" => true, "nosearchfocus" => true, "command" => isset($_REQUEST["mail"]) && $_REQUEST["mail"] == 1 ? "functions::callMethod('event','lib/event','OutputEventRegistrationCaptcha','" . REGISTRATION_SHIFT . "')" : "functions::callMethod('event','lib/event','OutputEventRegistration','" . REGISTRATION_SHIFT . "')");
    $pg[$subsitecrumb . "/events/addresses"] = array("title" => "Short Web Addresses for Events", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('event','lib/event','OutputEventAddresses','a')");
    $pg[$subsitecrumb . "/events/surveys"] = array("title" => "Summaries of Program Surveys", "priority" => "0.8", "changefreq" => "monthly", "norditabot" => "noindex,nofollow", "robots" => "noindex,nofollow", "nofollow" => true, "nosearchfocus" => true, "medwide" => true, "wikititle" => "Statistics_Reports", "wikiid" => "2392", "command" => "functions::callMethod('event','lib/event','OutputSurveyReportListCaptcha')");
    $pg[$subsitecrumb . "/events/surveys_invite"] = array("title" => "Surveys Invitation Letter", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Letter_Survey_Invite", "wikiid" => "2176", "command" => "functions::OutputWikiPage('0','2176')", "nolist" => true);
    // --------------------
    /*
        $pg[$subsitecrumb."/help/practical_information/surveys"] = array(
            "title"    => "Administrating Visitor Surveys",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Survey",
            "wikiid"    => "2170",
            "command"  => "functions::OutputWikiPage('0','2170')"
           );
          $pg[$subsitecrumb."/help/practical_information/surveys/create"] = array(
              "title"    => "Create Visitor Surveys",
              "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Survey_Create",
              "wikiid"    => "2172",
              "command"  => "functions::OutputWikiPage('0','2172')"
             );
          $pg[$subsitecrumb."/help/practical_information/surveys/invite"] = array(
              "title"    => "Invite Visitors to a Survey",
              "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Survey_Invite",
              "wikiid"    => "2174",
              "command"  => "functions::OutputWikiPage('0','2174')"
             );
          $pg[$subsitecrumb."/help/practical_information/surveys/evaluate"] = array(
              "title"    => "Evaluate Visitor Surveys",
              "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Survey_Evaluate",
              "wikiid"    => "2175",
              "command"  => "functions::OutputWikiPage('0','2175')"
             );
    */
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/preprints"] = array("title" => "Preprints" . EXTERNAL_LINK, "priority" => "0.8", "changefreq" => "weekly", "bodyid" => "preprints", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => USE_SECURE_SITE_FOR_PREPRINTS ? "https://secure.albanova.se/preprints/" : "../../preprints/index.php", "nolist" => true);
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/newsletter"] = array("title" => "Newsletter", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_manage_newsletter", "wikiid" => "2210", "command" => "functions::OutputWikiPage('0','2210')");
    $pg[$subsitecrumb . "/newsletter/archive"] = array("title" => "Newsletter Archive", "priority" => "0.4", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Available_Issues", "wikiid" => "1581", "command" => "functions::callMethod('news','lib/news','DrawIssueArchiveList')");
    // -- No support for this in the directory tree (too much to copy). Use redirect instead
    if (file_exists(INCLEVEL . PATH_MENU . "/m_newsletters.php")) {
        include_once PATH_MENU . "/m_newsletters.php";
        $pg = array_merge($pg, menu_newsletters(PATH_NEWSOLDARCHIVE));
    }
    $pg[$subsitecrumb . "/newsletter/preprints"] = array("title" => "Preprints Code", "priority" => "0.4", "robots" => "noindex,nofollow", "bodyid" => "newsletter", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('preprint','lib/preprint','OutputPreprintListHtmlCode')");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/positions"] = array("title" => "Positions", "priority" => "0.8", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_positions", "wikiid" => "2211", "changefreq" => "monthly", "command" => "functions::OutputWikiPage('0','2211')");
    $pg[$subsitecrumb . "/positions/jam"] = array("title" => "JAM - Job Application Manager" . EXTERNAL_LINK, "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "url" => "http://jam.nordita.org/");
    $pg[$subsitecrumb . "/positions/archive"] = array("title" => "Positions Archive", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('position','lib/position','OutputOpenPositions','openpositions','','','0','1','0');");
    $pg[$subsitecrumb . "/positions/countries"] = array("title" => "Position Applicant Statistics", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"programs\",1,1,0')");
    $pg[$subsitecrumb . "/positions/create_ad"] = array("title" => "Create Job Ads in SU ReachMee", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_reachmee", "wikiid" => "2607", "command" => "functions::OutputWikiPage('0','2607')");
    $pg[$subsitecrumb . "/positions/ads"] = array("title" => "Job Ads Resources", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_positions_ads", "wikiid" => "2547", "command" => "functions::OutputWikiPage('0','2547')");
    // -----------------------------------------------------------
    /*
    
      $pg[$subsitecrumb."/accommodation"] = array(
          "title"    => "Accommodation", // Management",
          "priority" => "0.8",
          "changefreq" => "monthly",
          "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Admin_apartments",
          "wikiid"    => "2207",
          "command"  => "functions::OutputWikiPage('0','2207')"
         );
    
      $pg[$subsitecrumb."/accommodation/gbg8howto"] = array(
          "title"    => "Instruktioner Gyllenborgsgatan&nbsp;8",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Admin_instructions_gyllenborgsgatan",
          "wikiid"    => "2404",
          "command"  => "functions::OutputWikiPage('0','2404')"
    ,"nolist" => true
         );
    
      $pg[$subsitecrumb."/accommodation/confirm"] = array(
          "title"    => "Confirmation Mail Templates",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment",
          "wikiid"    => "2102",
          "command"  => "functions::OutputWikiPage('0','2102')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/arcadia"] = array(
          "title"    => "Confirm Hotel&nbsp;Arcadia",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Arcadia",
          "wikiid"    => "2097",
          "command"  => "functions::OutputWikiPage('0','2097')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/biz"] = array(
          "title"    => "Confirm BizApartment",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Biz",
          "wikiid"    => "2189",
          "command"  => "functions::OutputWikiPage('0','2189')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/sky"] = array(
          "title"    => "Confirm SkyApartment",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Sky",
          "wikiid"    => "2421",
          "command"  => "functions::OutputWikiPage('0','2421')"
    ,"nolist" => true
         );
      $pg[$subsitecrumb."/accommodation/confirm/gbg8"] = array(
          "title"    => "Confirm Gyllenborgsgatan&nbsp;8",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Gbg8",
          "wikiid"    => "2094",
          "command"  => "functions::OutputWikiPage('0','2094')"
    ,"nolist" => true
         );
      $pg[$subsitecrumb."/accommodation/confirm/hansson"] = array(
          "title"    => "Confirm Hotel&nbsp;Hansson",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Hansson",
          "wikiid"    => "2118",
          "command"  => "functions::OutputWikiPage('0','2118')"
    ,"nolist" => true
         );
      $pg[$subsitecrumb."/accommodation/confirm/matsallskapet"] = array(
          "title"    => "Confirm Matsällskapet Guestrooms",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Matsallskapet",
          "wikiid"    => "2117",
          "command"  => "functions::OutputWikiPage('0','2117')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/oden"] = array(
          "title"    => "Confirm Hotel&nbsp;Oden",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Oden",
          "wikiid"    => "2121",
          "command"  => "functions::OutputWikiPage('0','2121')"
    ,"nolist" => true
         );
      $pg[$subsitecrumb."/accommodation/confirm/stayat"] = array(
          "title"    => "Confirm Hotel&nbsp;StayAt&nbsp;Lindhagen",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Stayat",
          "wikiid"    => "2099",
          "command"  => "functions::OutputWikiPage('0','2099')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/thv3"] = array(
          "title"    => "Confirm Thorildsvägen&nbsp;3",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Thg3",
          "wikiid"    => "2096",
          "command"  => "functions::OutputWikiPage('0','2096')"
    ,"nolist" => true
         );
      $pg[$subsitecrumb."/accommodation/confirm/wallquistska"] = array(
          "title"    => "Confirm Wallquistska&nbsp;Guesthouse",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Wallquistska",
          "wikiid"    => "2098",
          "command"  => "functions::OutputWikiPage('0','2098')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/wennergren"] = array(
          "title"    => "Confirm Wenner-Gren&nbsp;Center",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Confirm_Apartment_Wennergren",
          "wikiid"    => "2135",
          "command"  => "functions::OutputWikiPage('0','2135')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/venue_albanova"] = array(
          "title"    => "Information Venue&nbsp;AlbaNova",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Directions_Venue_Albanova",
          "wikiid"    => "2114",
          "command"  => "functions::OutputWikiPage('0','2114')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/venue_kth"] = array(
          "title"    => "Information Venue&nbsp;KTH",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Directions_Venue_Kth",
          "wikiid"    => "2167",
          "command"  => "functions::OutputWikiPage('0','2167')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/venue_wennergren"] = array(
          "title"    => "Information Venue&nbsp;Wennergren",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Directions_Venue_Wennergren",
          "wikiid"    => "2168",
          "command"  => "functions::OutputWikiPage('0','2168')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/travel_program"] = array(
          "title"    => "Request Travel&nbsp;Reimbursement",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Travel_Program",
          "wikiid"    => "2165",
          "command"  => "functions::OutputWikiPage('0','2165')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/travel_visitor"] = array(
          "title"    => "Request Travel&nbsp;Visitor",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Travel_Visitor",
          "wikiid"    => "2169",
          "command"  => "functions::OutputWikiPage('0','2169')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/perdiem_program"] = array(
          "title"    => "Request Perdiem&nbsp;Program",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Perdiem_Program",
          "wikiid"    => "2157",
          "command"  => "functions::OutputWikiPage('0','2157')"
         );
      $pg[$subsitecrumb."/accommodation/confirm/perdiem_visitor"] = array(
          "title"    => "Request Perdiem&nbsp;Visitor",
          "robots"   => "noindex,nofollow",
          "norditabot" => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Letter_Perdiem_Visitor",
          "wikiid"    => "2159",
          "command"  => "functions::OutputWikiPage('0','2159')"
         );
    
    //  // OBSOLETE
    //  $pg[$subsitecrumb."/accommodation/use"] = array(
    //      "title"    => "Apartment Usage",
    //      "robots"   => "noindex,nofollow",
    //      "medwide"  => true,
    //      "nofollow" => true,
    //      "command"  => "functions::callMethod('widget','lib/widget','WapartmentsUse')"
    //     );
    //
    //  // OBSOLETE
    //  $pg[$subsitecrumb."/accommodation/availability"] = array( // TODO
    //      "title"    => "Apartment Availability",
    //      "robots"   => "noindex,nofollow",
    //      "medwide"  => true,
    //      "nofollow" => true,
    //      //"command"  => "functions::callMethod('widget','lib/widget','WapartmentsAvailability')",
    //      "command"  => "functions::OutputWikiPage('0','2188')" // LOREM IPSUM
    //     );
    //
    //  // OBSOLETE
    //  $pg[$subsitecrumb."/accommodation/stad"] = array(
    //      "title"    => "Cleaning Schedule Gbg 8",
    //      "bodyid"   => "stad",
    //      "robots"   => "noindex,nofollow",
    //      "medwide"  => true,
    //      "nofollow" => true,
    //      "nomenu"   => true,
    //      "nocolophon" => true,
    //      "nopagetitle"     => true,
    //      "nobackground"    => true,
    //      "command"  => "functions::callMethod('widget','lib/widget','Wstad')",
    //      "nolist" => true
    //     );
    //
    //  // OBSOLETE
    //  $pg[$subsitecrumb."/accommodation/stad/schema"] = array(
    //      "title"    => "Cleaning Schedule Planner for Gbg 8",
    //      "bodyid"   => "stad",
    //      "robots"   => "noindex,nofollow",
    //      "medwide"  => true,
    //      "nofollow" => true,
    //      "nomenu"   => true,
    //      "nocolophon" => true,
    //      "nopagetitle"     => true,
    //      "nobackground"    => true,
    //      "command"  => "functions::callMethod('widget','lib/widget','WstadSchema')",
    //      "nolist" => true
    //    );
    */
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/statistics"] = array("title" => "Statistics", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_statistics", "wikiid" => "2208", "command" => "functions::OutputWikiPage('0','2208')");
    $pg[$subsitecrumb . "/statistics/nationality_applicants"] = array("title" => "Nationality of Applicants", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"applicants\",1,1,0,0')");
    $pg[$subsitecrumb . "/statistics/summary_applicants"] = array("title" => "Summary: Nordic Applicants", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "medwide" => true, "nobackground" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"applicants\",1,1,0,1')");
    $pg[$subsitecrumb . "/statistics/nationality_programs"] = array("title" => "Nationality of Event Participants", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "newmenusection" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"events\",1,1,0,0')");
    $pg[$subsitecrumb . "/statistics/nationality_visitors"] = array("title" => "Nationality of Non-Event Visitors", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"visitors\",1,1,0,0,1')");
    $pg[$subsitecrumb . "/statistics/summary_visitors"] = array("title" => "Summary: All Nordic Visitors", "medwide" => true, "nobackground" => true, "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"allguests\",1,1,0,1')");
    /*
      $pg[$subsitecrumb."/statistics/nationality_brief"] = array(
          "title"    => "Nationality - Brief Summary [TESTSERVER ONLY]",
          "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          //"command"  => "functions::callMethod('widget','lib/widget','WstatisticsNationality','brief',1,1,0,1)"
          "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsNationality','\"brief\",1,1,0,1')"
    ,"nolist"   => (IS_TESTSERVER) ? false : true
         );
    */
    $pg[$subsitecrumb . "/statistics/preprint"] = array("title" => "Preprints", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "nosearchfocus" => true, "newmenusection" => true, "command" => "functions::callMethod('statistics','lib/statistics','OutputStatisticsPreprints',0')");
    if (isset($_REQUEST["output_type"]) && in_array($_REQUEST["output_type"], array("text"))) {
        $pg[$subsitecrumb . "/statistics/preprint"]["contenttype"] = "plain";
    }
    if (isset($_REQUEST["output_type"]) && in_array($_REQUEST["output_type"], array("word"))) {
        $pg[$subsitecrumb . "/statistics/preprint"]["nomenu"] = true;
        $pg[$subsitecrumb . "/statistics/preprint"]["nopagetitle"] = true;
        $pg[$subsitecrumb . "/statistics/preprint"]["nobanner"] = true;
        $pg[$subsitecrumb . "/statistics/preprint"]["nocolophon"] = true;
        $pg[$subsitecrumb . "/statistics/preprint"]["nosearch"] = true;
        $pg[$subsitecrumb . "/statistics/preprint"]["plaincss"] = true;
    }
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/reports"] = array("title" => "Reports", "priority" => "0.8", "changefreq" => "monthly", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Admin_reports", "wikiid" => "2209", "command" => "functions::callMethod('widget','lib/widget','WoutputReports','1')");
    $pg[$subsitecrumb . "/reports/evaluations"] = array("title" => "Evaluations of Nordita", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Evaluation", "wikiid" => "1894", "command" => "functions::OutputWikiPage('0','1894')", "nolist" => true);
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/dummy"] = array("title" => "[to be sorted in]", "priority" => "0.0", "changefreq" => "never", "robots" => "noindex,nofollow", "medwide" => true, "nofollow" => true, "wikititle" => "Editing_Logins", "wikiid" => "1712", "command" => "functions::OutputWikiPage('0','1712')", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/search"] = array("title" => "Search", "bodyid" => "search", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "priority" => "0.0", "changefreq" => "never", "medwide" => true, "nobackground" => true, "command" => "search::getCombinedSearch()", "nolist" => true);
    // -----------------------------------------------------------
    // -- unlisted but linked to
    $pg[$subsitecrumb . "/sitemap"] = array("title" => "Administrator Site Map", "medwide" => true, "nofollow" => true, "command" => "functions::callMethod('sitemap','lib/sitemap','OutputSitemap','positions')", "nolist" => true);
    // --------------------
    /*
      $pg["software"] = array(
          "title"    => "Software",
          "priority" => "0.8",
          "changefreq" => "monthly",
          "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Software",
          "wikiid"    => "1688",
          "command"  => "functions::OutputWikiPage('0','1688')"
         );
    
      $pg["software/pencil-code"] = array(
          "title"    => "The Pencil-Code",
          "priority" => "0.8",
          "changefreq" => "monthly"
         );
    */
    /*
      $pg[$subsitecrumb."/help/practical_information/wiki"] = array(
          "title"    => "How to edit Nordita Web Pages",
          "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_help",
          "wikiid"    => "1807",
          "command"  => "functions::OutputWikiPage('0','1807')",
          "url"      => "../../wiki/index.php"
         );
      $pg[$subsitecrumb."/help/wiki"] = array(
          "title"    => "Edit Nordita web pages",
          "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_help",
          "wikiid"    => "1806",
          "command"  => "functions::OutputWikiPage('0','1806')"
         );
        $pg[$subsitecrumb."/help/wiki/login"] = array(
            "title"    => "Login to the Wiki",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_login",
            "wikiid"    => "1808",
            "command"  => "functions::OutputWikiPage('0','1808')"
           );
        $pg[$subsitecrumb."/help/wiki/edit_webpage"] = array(
            "title"    => "Edit a webpage",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_edit_webpage",
            "wikiid"    => "1809",
            "command"  => "functions::OutputWikiPage('0','1809')"
           );
        $pg[$subsitecrumb."/help/wiki/edit_homepage"] = array(
            "title"    => "Edit your homepage",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_edit_homepage",
            "wikiid"    => "1810",
            "command"  => "functions::OutputWikiPage('0','1810')"
           );
        $pg[$subsitecrumb."/help/wiki/upload_images"] = array(
            "title"    => "Upload Images",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_upload_images",
            "wikiid"    => "1812",
            "command"  => "functions::OutputWikiPage('0','1812')"
           );
        $pg[$subsitecrumb."/help/wiki/wiki_markup"] = array(
            "title"    => "The Wiki markup",
            "robots"   => "noindex,nofollow",
          "medwide"  => true,
          "nofollow" => true,
          "wikititle" => "Wiki_markup",
            "wikiid"    => "1811",
            "command"  => "functions::OutputWikiPage('0','1811')"
           );
    */
    // --------------------
    // -----------------------------------------------------------
    //DEBUG//echo "<pre>";print_r($pg);echo "</pre>";
    //-------------
    return $pg;
}
Example #4
0
function menu_nordita2011($subsitecrumb = "nordita2011")
{
    $pg = array();
    // -----------------------------------------------------------
    // DB search for all relevant Wiki pages (selected by namespace)
    //   "0"     => 'Main:'
    //   "1"     => 'Talk:'
    //   "2"     => 'User:'******'User_talk:'
    //   "4"     => 'NORDITA:'
    //   "5"     => 'NORDITA_talk:'
    //   "10"    => 'Template:'
    //   "11"    => 'Template_talk:'
    // -----------------------------------------------------------
    // -----------------------------------------------------------
    // Pages that will be displayed in the site map:
    // -----------------------------------------------------------
    // Functions that care about the start page having index="" or index=".":
    //   document->buildMenuItemDrupal()
    $pg[$subsitecrumb] = array("title" => "Home", "isindex" => true, "bodyid" => "startpage", "medwide" => true, "priority" => "1.0", "changefreq" => "daily", "command" => "functions::callMethod('startpage','lib/startpage','OutputStartpage')");
    $pg["index"] = array("title" => "", "isindex" => true, "bodyid" => "startpage", "medwide" => true, "priority" => "0.0", "changefreq" => "never", "command" => "functions::callMethod('startpage','lib/startpage','OutputStartpage','index-content')", "nolist" => true);
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/news"] = array("title" => "News", "priority" => "0.9", "changefreq" => "weekly", "medwide" => true, "command" => "functions::callMethod('news','lib/news','OutputScienceNews')");
    // --------------------
    $pg[$subsitecrumb . "/news/albanova_agenda"] = array("title" => "AlbaNova Agenda System", "priority" => "0.9", "changefreq" => "weekly", "medwide" => true, "wikititle" => "A2z_Agenda", "wikiid" => "2362", "command" => "functions::OutputWikiPage('0','2362');functions::OutputWikiPage('0','2364')");
    // --------------------
    $pg[$subsitecrumb . "/news/nordita_news"] = array("title" => "Nordita Newsletter", "priority" => "0.8", "changefreq" => "weekly", "showsidebar" => true, "wikititle" => "Nordita_News", "wikiid" => "1627", "command" => "functions::OutputWikiPage('0','1627')");
    $pg[$subsitecrumb . "/news/nordita_news/current_issue"] = array("title" => "Current Issue", "priority" => "0.8", "changefreq" => "weekly", "wikititle" => "*_Current_Issue", "wikiid" => "2358", "url" => RELPATHTOROOT . PATH_NEWS . "/index.php");
    $pg[$subsitecrumb . "/news/nordita_news/available_issues"] = array("title" => "Newsletter Archive", "priority" => "0.4", "showsidebar" => true, "wikititle" => "Available_Issues", "wikiid" => "1581", "command" => "functions::callMethod('news','lib/news','DrawIssueArchiveList')");
    require_once PATH_MENU . "/m_newsletters.php";
    $pg = array_merge($pg, menu_newsletters(SUBSITE . "/news/nordita_news/available_issues"));
    // --------------------
    $pg[$subsitecrumb . "/news/preprints"] = array("title" => "Preprint Archive", "url" => "../../../preprints/index.php");
    // --------------------
    $pg[$subsitecrumb . "/news/visitors_this_week"] = array("title" => "Visitors Arriving This Week", "medwide" => true, "command" => "functions::callMethod('event','lib/event','OutputArrivingVisitors','arrivingvisitors','week')");
    // --------------------
    $pg[$subsitecrumb . "/news/open_positions"] = array("title" => "Open Positions", "url" => "../../people/positions/index.php");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/science"] = array("title" => "Scientific Activities", "priority" => "0.9", "changefreq" => "monthly", "medwide" => true, "wikititle" => "Science", "wikiid" => "2325", "command" => "functions::OutputWikiPage('0','2325')");
    // --------------------
    $pg[$subsitecrumb . "/science/research"] = array("title" => "Research Fields", "priority" => "0.8", "medwide" => true, "wikititle" => "Research_Fields", "wikiid" => "1641", "command" => "functions::OutputWikiPage('0','1641')");
    $pg[$subsitecrumb . "/science/research/ap"] = array("title" => GROUP_AP, "medwide" => true, "wikititle" => "Astrophysics_and_Astrobiology", "wikiid" => "1588", "command" => "functions::OutputWikiPage('0','1588')");
    $pg[$subsitecrumb . "/science/research/ap/astrobiology"] = array("title" => "Astrobiology", "medwide" => true, "wikititle" => "Astrobiology", "wikiid" => "1642", "command" => "functions::OutputWikiPage('0','1642')");
    $pg[$subsitecrumb . "/science/research/ap/astro-ph-meeting"] = array("title" => "Astro-Ph Meeting", "medwide" => true, "wikititle" => "Astro-ph_Meeting", "wikiid" => "2112", "command" => "functions::OutputWikiPage('0','2112')");
    $pg[$subsitecrumb . "/science/research/cm"] = array("title" => GROUP_CM, "medwide" => true, "wikititle" => "Condensed_Matter_and_Statistical_Physics", "wikiid" => "1547", "command" => "functions::OutputWikiPage('0','1547')");
    $pg[$subsitecrumb . "/science/research/cm/bec"] = array("title" => "Ultracold Atomic Gases", "medwide" => true, "wikititle" => "Ultracold_Atomic_Gases", "wikiid" => "1761", "command" => "functions::OutputWikiPage('0','1761')");
    $pg[$subsitecrumb . "/science/research/cm/qh"] = array("title" => "Quantum Hall Systems", "medwide" => true, "wikititle" => "Quantum_Hall", "wikiid" => "1760", "command" => "functions::OutputWikiPage('0','1760')");
    $pg[$subsitecrumb . "/science/research/cm/spcs"] = array("title" => "Statistical Physics of Complex Systems", "medwide" => true, "wikititle" => "Statistical_Physics_Complex_Systems", "wikiid" => "1856", "command" => "functions::OutputWikiPage('0','1856')");
    $pg[$subsitecrumb . "/science/research/cm/nn"] = array("title" => "Neural Networks", "medwide" => true, "wikititle" => "Neural_Networks", "wikiid" => "1857", "command" => "functions::OutputWikiPage('0','1857')");
    $pg[$subsitecrumb . "/science/research/sa"] = array("title" => GROUP_SA, "medwide" => true, "wikititle" => "High_Energy_and_Nuclear_Physics", "wikiid" => "1550", "command" => "functions::OutputWikiPage('0','1550')");
    $pg[$subsitecrumb . "/science/research/sa/dsc"] = array("title" => "D-Branes and String Compactification", "medwide" => true, "wikititle" => "String_compactification", "wikiid" => "1883", "command" => "functions::OutputWikiPage('0','1883')");
    // --------------------
    $pg[$subsitecrumb . "/science/programs"] = array("title" => "Scientific Programs", "priority" => "0.0", "wikititle" => "Programs_(Part_1)", "wikiid" => "1623", "command" => "functions::callMethod('event','lib/event','OutputProgramsStart')");
    $pg[$subsitecrumb . "/science/programs/list_of_programs"] = array("title" => "List of Scientific Programs", "priority" => "0.95", "changefreq" => "monthly", "medwide" => true, "command" => "functions::callMethod('event','lib/event','OutputEventList')");
    $pg[$subsitecrumb . "/science/programs/propose_a_program"] = array("title" => "Propose a Program " . EXTERNAL_LINK, "priority" => "0.0", "wikititle" => "Programs_Propose", "wikiid" => "1637", "url" => "../../../../organizers/proposal/guidelines/index.php");
    $pg[$subsitecrumb . "/science/programs/information_for_organizers"] = array("title" => "Information for Program Organizers " . EXTERNAL_LINK, "priority" => "0.0", "url" => "../../../../organizers/index.php");
    // --------------------
    $pg[$subsitecrumb . "/science/workshops"] = array("title" => "Workshops and Conferences", "priority" => "0.8", "wikititle" => "Science_Workshops", "wikiid" => "2334", "command" => "functions::OutputWikiPage('0','2334')");
    // --------------------
    $pg[$subsitecrumb . "/science/seminars"] = array("title" => "Theoretical Physics Seminars", "wikititle" => "Science_Seminars", "wikiid" => "1818", "command" => "functions::OutputWikiPage('0','1818')");
    $pg[$subsitecrumb . "/science/seminars/schedule"] = array("title" => "Seminar Schedule", "robots" => "noindex,nofollow", "norditabot" => "noindex,nofollow", "command" => "functions::callMethod('event','lib/event','OutputSeminarsSchedule')");
    // --------------------
    $pg[$subsitecrumb . "/science/visitors"] = array("title" => "Visitors Program", "priority" => "0.8", "wikititle" => "Science_Visitors", "wikiid" => "2349", "command" => "functions::OutputWikiPage('0','2349')");
    $pg[$subsitecrumb . "/science/visitors/list_of_visitors"] = array("title" => "List of Visitors", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_Visitors_List", "wikiid" => "2350", "command" => "functions::OutputWikiPage('0','2350')");
    // --------------------
    $pg[$subsitecrumb . "/science/preprints"] = array("title" => "Nordita Preprint Archive", "url" => "../../../preprints/index.php");
    // --------------------
    $pg[$subsitecrumb . "/science/software"] = array("title" => "Nordita-Developed Software", "priority" => "0.8", "changefreq" => "monthly", "medwide" => true, "wikititle" => "Software", "wikiid" => "1688", "command" => "functions::OutputWikiPage('0','1688')");
    // --------------------
    $pg[$subsitecrumb . "/science/schools"] = array("title" => "Nordita Schools", "priority" => "0.8", "wikititle" => "Science_Schools", "wikiid" => "1752", "command" => "functions::OutputWikiPage('0','1752')");
    $pg[$subsitecrumb . "/science/schools/list_of_schools"] = array("title" => "List of Nordita Schools", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_Schools_List", "wikiid" => "2332", "command" => "functions::OutputWikiPage('0','2332')");
    // --------------------
    $pg[$subsitecrumb . "/science/courses"] = array("title" => "Nordita Courses", "medwide" => true, "wikititle" => "Science_Nordita_Courses", "wikiid" => "1779", "command" => "functions::OutputWikiPage('0','1779')");
    // --------------------
    $pg[$subsitecrumb . "/science/phd_students"] = array("title" => "PhD Student Program", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_PhD_Students", "wikiid" => "2369", "command" => "functions::OutputWikiPage('0','2369')");
    $pg[$subsitecrumb . "/science/phd_students/list_of_phd_fellows"] = array("title" => "List of PhD Students", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_PhD_Students_List", "wikiid" => "2369", "command" => "functions::OutputWikiPage('0','2369')");
    // --------------------
    $pg[$subsitecrumb . "/science/phd_fellows"] = array("title" => "Visiting PhD Fellows Program", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_PhD_Fellows", "wikiid" => "2192", "command" => "functions::OutputWikiPage('0','2192')");
    $pg[$subsitecrumb . "/science/phd_fellows/list_of_phd_fellows"] = array("title" => "List of Visiting PhD Fellows", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_PhD_Fellows_List", "wikiid" => "2367", "command" => "functions::OutputWikiPage('0','2367')");
    // --------------------
    $pg[$subsitecrumb . "/science/interns"] = array("title" => "Master Student Internships", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_Interns", "wikiid" => "2366", "command" => "functions::OutputWikiPage('0','2366')");
    $pg[$subsitecrumb . "/science/interns/list_of_interns"] = array("title" => "List of Master Sudent Interns", "priority" => "0.8", "medwide" => true, "wikititle" => "Science_Interns_List", "wikiid" => "2372", "command" => "functions::OutputWikiPage('0','2372')");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/people"] = array("title" => "People", "priority" => "0.8", "changefreq" => "weekly", "medwide" => true, "command" => "functions::callMethod('people','lib/people','OutputPeople','all','list','people-list','')");
    // --------------------
    $pg[$subsitecrumb . "/people/staff"] = array("title" => "People at Nordita", "medwide" => true, "command" => "functions::callMethod('people','lib/people','OutputPeople','user','single','people-user','')", "nolist" => true);
    // --------------------
    $pg[$subsitecrumb . "/people/search"] = array("title" => "People Search", "medwide" => true, "command" => "functions::callMethod('people','lib/people','searchPeople','')", "nolist" => SHOW_SEARCH ? false : true);
    // --------------------
    $pg[$subsitecrumb . "/people/board"] = array("title" => "Board", "medwide" => true, "wikititle" => "People_Nordita_Board", "wikiid" => "2330", "command" => "functions::OutputWikiPage('0','2330')");
    // --------------------
    $pg[$subsitecrumb . "/people/director"] = array("title" => "Director", "medwide" => true, "wikititle" => "People_Director", "wikiid" => "1686", "command" => "functions::OutputWikiPage('1','1686')");
    // --------------------
    $pg[$subsitecrumb . "/people/research_committees"] = array("title" => "Research Committees", "medwide" => true, "wikititle" => "People_Research_Committees", "wikiid" => "1685", "command" => "functions::OutputWikiPage('0','1685')");
    // --------------------
    $pg[$subsitecrumb . "/people/advisory_committee"] = array("title" => "Advisory Committee", "medwide" => true, "wikititle" => "People_Advisory_Committee", "wikiid" => "1687", "command" => "functions::OutputWikiPage('0','1687')");
    // --------------------
    $pg[$subsitecrumb . "/people/program_committee"] = array("title" => "Program Committee", "medwide" => true, "wikititle" => "People_Program_Committee", "wikiid" => "2066", "command" => "functions::OutputWikiPage('0','2066')");
    // --------------------
    $pg[$subsitecrumb . "/people/whoiswhere"] = array("title" => "Who Is Where" . EXTERNAL_LINK, "url" => "http://whoiswhere.albanova.se/travel/");
    // --------------------
    $pg[$subsitecrumb . "/people/this_week"] = array("title" => "Visitors Arriving This Week", "medwide" => true, "command" => "functions::callMethod('event','lib/event','OutputArrivingVisitors','arrivingvisitors','week')");
    // --------------------
    //TODO: redirect
    $pg[$subsitecrumb . "/people/positions"] = array("title" => "Open Positions", "priority" => "0.8", "changefreq" => "monthly", "wikititle" => "Template:Widget_Open_Positions", "wikiid" => "1633", "command" => "functions::OutputWikiPage('0','1633')");
    $pg[$subsitecrumb . "/people/positions/archive"] = array("title" => "Positions Archive", "medwide" => true, "command" => "functions::callMethod('position','lib/position','OutputOpenPositions','openpositions','','','0','1','0');");
    $pg[$subsitecrumb . "/people/positions/pattern"] = array("title" => "Please note", "nolist" => true, "command" => "functions::callMethod('position','lib/position','OutputPostionsPattern')");
    $pg[$subsitecrumb . "/people/positions/countries"] = array("title" => "Position Applicant Statistics", "nolist" => true, "url" => "../../statistics/nationality_applicants/index.php");
    $pg[$subsitecrumb . "/people/positions/applications"] = array("title" => "Applications" . EXTERNAL_LINK, "url" => "http://jam.nordita.org/");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/resources"] = array("title" => "Resources", "medwide" => true, "wikititle" => "Resources", "wikiid" => "2195", "command" => "functions::OutputWikiPage('0','2195')");
    // -----------------------------------------------------------
    $pg[$subsitecrumb . "/aboutus"] = array("title" => "About Us", "priority" => "0.8", "changefreq" => "monthly", "medwide" => true, "wikititle" => "About_Us", "wikiid" => "1564", "command" => "functions::OutputWikiPage('0','1564')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/organization"] = array("title" => "Organization", "wikititle" => "Organization", "wikiid" => "1634", "command" => "functions::OutputWikiPage('0','1634')");
    $pg[$subsitecrumb . "/aboutus/organization/board"] = array("title" => "Board", "medwide" => true, "wikititle" => "People_Nordita_Board", "wikiid" => "2330", "command" => "functions::OutputWikiPage('0','2330')");
    $pg[$subsitecrumb . "/aboutus/organization/director"] = array("title" => "Director", "medwide" => true, "wikititle" => "People_Director", "wikiid" => "1686", "command" => "functions::OutputWikiPage('0','1686')");
    $pg[$subsitecrumb . "/aboutus/organization/committees"] = array("title" => "Research Committees", "medwide" => true, "wikititle" => "People_Research_Committees", "wikiid" => "1685", "command" => "functions::OutputWikiPage('0','1685')");
    $pg[$subsitecrumb . "/aboutus/organization/advisory_committee"] = array("title" => "Advisory Committee", "medwide" => true, "wikititle" => "People_Advisory_Committee", "wikiid" => "1687", "command" => "functions::OutputWikiPage('0','1687')");
    $pg[$subsitecrumb . "/aboutus/organization/program_committee"] = array("title" => "Program Committee", "medwide" => true, "wikititle" => "People_Program_Committee", "wikiid" => "2066", "command" => "functions::OutputWikiPage('0','2066')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/evaluation"] = array("title" => "Evaluations of Nordita", "wikititle" => "Evaluation", "wikiid" => "1894", "command" => "functions::OutputWikiPage('0','1894')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/contact_information"] = array("title" => "Contact Information", "medwide" => true, "wikititle" => "Contact_Information", "wikiid" => "1636", "command" => "functions::OutputWikiPage('0','1636')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/map"] = array("title" => "How to Get Here", "medwide" => true, "wikititle" => "A2z_How_To_Get_Here", "wikiid" => "1610", "command" => "functions::OutputWikiPage('0','1610')");
    $pg[$subsitecrumb . "/aboutus/map/biz"] = array("title" => "Go to BizApartments", "medwide" => true, "wikititle" => "A2z_Bizapartments_Directions", "wikiid" => "2221", "command" => "functions::OutputWikiPage('0','2221')");
    $pg[$subsitecrumb . "/aboutus/map/apartments"] = array("title" => "Go to Nordita Apartments", "medwide" => true, "wikititle" => "A2z_Apartments_Directions", "wikiid" => "2144", "command" => "functions::OutputWikiPage('0','2144')");
    $pg[$subsitecrumb . "/aboutus/map/hotels"] = array("title" => "Go to Hotels and Hostels", "medwide" => true, "wikititle" => "A2z_Hotels_Directions", "wikiid" => "2257", "command" => "functions::OutputWikiPage('0','2257');functions::OutputWikiPage('0','2572');functions::OutputWikiPage('0','2566')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/history"] = array("title" => "Brief History", "wikititle" => "History", "wikiid" => "1568", "command" => "functions::OutputWikiPage('0','1568')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/logotype"] = array("title" => "Logotype", "medwide" => true, "wikititle" => "Logotype", "wikiid" => "1701", "command" => "functions::OutputWikiPage('0','1701')");
    $pg[$subsitecrumb . "/aboutus/logotype/specification"] = array("title" => "Specification", "medwide" => true, "wikititle" => "Logotype_Specification", "wikiid" => "1702", "command" => "functions::OutputWikiPage('0','1702')");
    $pg[$subsitecrumb . "/aboutus/logotype/download"] = array("title" => "Downloads", "medwide" => true, "wikititle" => "Logotype_Text_Guidelines", "wikiid" => "2244", "command" => "functions::OutputWikiPage('0','2244')");
    $pg[$subsitecrumb . "/aboutus/logotype/stationery"] = array("title" => "Stationery", "medwide" => true, "wikititle" => "A2z_Stationery", "wikiid" => "1708", "command" => "functions::OutputWikiPage('0','1708')");
    // --------------------
    $pg[$subsitecrumb . "/aboutus/photos"] = array("title" => "Photos from Nordita", "url" => "../../../photos/index.php");
    // -----------------------------------------------------------
    // Pages that are taken care of in '/m_main_nonmenu.php'
    $pg[$subsitecrumb . "/sitemap"] = array("title" => "Site Map", "medwide" => true, "command" => "functions::callMethod('sitemap','lib/sitemap','OutputSitemap')", "nolist" => true);
    $pg[$subsitecrumb . "/sitemap/xml"] = array("title" => "Site Map", "command" => "functions::callMethod('sitemap','lib/sitemap','OutputXmlSitemap')", "contenttype" => "plain", "nolist" => true, "nopagetitle" => true, "nobanner" => true, "nocolophon" => true, "nobackground" => true, "nocss" => true);
    $pg[$subsitecrumb . "/sitemap/drupal"] = array("title" => "Drupal menu", "command" => "functions::callMethod('drupal','lib/drupal','OutputMenuDrupal')", "contenttype" => "plain", "nolist" => true, "nopagetitle" => true, "nobanner" => true, "nocolophon" => true, "nobackground" => true, "nocss" => true);
    // --------------------
    $pg[$subsitecrumb . "/site"] = array("title" => "About This Site", "wikititle" => "About_This_Site", "wikiid" => "1645", "command" => "functions::OutputWikiPage('0','1645')", "nolist" => true);
    $pg[$subsitecrumb . "/site/sitemap"] = array("title" => "Site Map", "command" => "functions::callMethod('sitemap','lib/sitemap','OutputSitemap')", "nolist" => true);
    $pg[$subsitecrumb . "/site/cookies"] = array("title" => "Cookie Policy", "medwide" => true, "wikititle" => "Cookie_Policy", "wikiid" => "1644", "command" => "functions::OutputWikiPage('0','1644')", "nolist" => true);
    // --------------------
    $pg[$subsitecrumb . "/reference"] = array("title" => "Reference Web Sites", "priority" => "0.0", "medwide" => true, "wikititle" => "Websites_Reference", "wikiid" => "2354", "command" => "functions::OutputWikiPage('0','2354')", "nolist" => true);
    // --------------------
    // -- placeholder
    $pg[$subsitecrumb . "/search"] = array("title" => "Search Results", "priority" => "0.0", "changefreq" => "never", "medwide" => true, "wikititle" => "Outreach", "wikiid" => "2355", "command" => "functions::OutputWikiPage('0','2355')", "nolist" => true);
    // --------------------
    $pg[$subsitecrumb . "/entrance"] = array("title" => "", "bodyid" => "display2011", "command" => "functions::callMethod('display','lib/display','OutputDisplayPage')", "nolist" => true, "wide" => true, "nomenu" => true, "nopagetitle" => true, "nocolophon" => true);
    //-------------
    return $pg;
}