logo       
Google Custom Search
    AddThis Social Bookmark Button

CVS: phpwiki/themes/wikilens/templates head.tmpl,NONE,1.1 navbar.tmpl,NONE,: msg#00192

Subject: CVS: phpwiki/themes/wikilens/templates head.tmpl,NONE,1.1 navbar.tmpl,NONE,1.1
Update of /cvsroot/phpwiki/phpwiki/themes/wikilens/templates
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19133/wikilens/templates

Added Files:
        head.tmpl navbar.tmpl 
Log Message:
sample theme needed for RateIt

--- NEW FILE: head.tmpl ---
<?php  // -*-html-*-
  rcs_id('$Id: head.tmpl,v 1.1 2004/03/30 02:40:07 rurban Exp $');
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
<?php $ROBOTS_CONTENT = $ROBOTS_META ? $ROBOTS_META : "noindex,nofollow"; ?>
<meta name="robots" content="<?= $ROBOTS_CONTENT ?>" />
<?php if (!empty($PAGE_DESCRIPTION)) { ?>
<meta name="description" content="<?=$PAGE_DESCRIPTION?>" />
<?php } ?>
<?php if (!empty($PAGE_KEYWORDS)) { ?>
<meta name="keywords" content="<?=$PAGE_KEYWORDS?>" />
<?php } ?>
<meta name="language" content="<?=DEFAULT_LANGUAGE?>" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
<base href="<?=PHPWIKI_BASE_URL?>" />
<link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
<?php /**
       * Additional navigation links are provided here in the html header for 
browsers
       * which support them: Mozilla, iCab, Amaya (and certain versions of 
Opera??).
       *
       * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
       *     http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
       */ ?>
<?php /* The next few lines are wrapped in an odd manner to allow gettext 
string extraction: cd locale;make */ ?>
<link rel="home" title="<?=HOME_PAGE?>" href="<?=WikiURL(HOME_PAGE)?>" />
<link rel="help" title="<?=_("HowToUseWiki")?>" href="<?=WikiURL(
_("HowToUseWiki"))?>" />
<link rel="copyright" title="<?=COPYRIGHTPAGE_TITLE?>" 
href="<?=COPYRIGHTPAGE_URL?>" />
<link rel="author" title="<?=AUTHORPAGE_TITLE?>" href="<?=AUTHORPAGE_URL?>" />
<link rel="search" title="<?=_("FindPage")?>" href="<?=WikiURL(
_("FindPage"))?>" />
<?php /**
       * Provide alternate variations of the page content:
       * 'viewsource' and 'browse'.
       * Translated pages could go here too.
       */
      if (!empty($revision)) {
          $args = $request->getargs();
          $action = $args['action'];
          if (!($action == "viewsource")) {
            $alternatelinkTitle = fmt("%s: %s", _("View Source"), 
$page->getName());
            $alternatelinkUrl = WikiURL($revision, array('action' => 
'viewsource'));
          }
          if (!($action == "browse")) {
            $alternatelinkTitle = $page->getName();
            $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
          } ?>
<link rel="alternate" title="<?= $alternatelinkTitle ?>" href="<?= 
$alternatelinkUrl ?>" />
<?php }
      /**
       * Link tag for RSS auto-discovery.  See
       * http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery
       * http://www.oreillynet.com/cs/weblog/view/wlg/1475
       */
?>
<link rel="alternate" type="application/rss+xml" title="RSS" 
href="<?=WikiURL(_("RecentChanges"), array('format' => 'rss'))?>" />

<?php /**
       * Add some user-specific links.
       */ ?>
<?php if (!$user->isSignedIn()) {
      /* For users not signed in */ ?>
<link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(
_("SandBox"))?>" />
<link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(
_("WikiWikiWeb"))?>" />
<?php } ?>

<?php if ($user->isadmin()) {
      /* Only for the Administrator */ ?>
<link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(
_("PhpWikiAdministration"))?>" />
<?php } ?>

<?php if ($user->isSignedIn()) {
      /* For signed-in users */ ?>
<link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(
_("UserPreferences"))?>" />
<?php /* User's calendar page
       */
      $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
      $UserCalPageUrl = WikiURL($UserCalPageTitle);
      ?>
<link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl 
?>" />
<?php /* Today's calendar page for the user if it exists
       */
      $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . 
strftime("%Y-%m-%d", time()); //FIXME
      $dbi = $request->getDbh();
      if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
          $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
          ?>
<link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= 
$UserCalPageTodayUrl ?>" />
<?php } ?>
<?php } //end of links for signed-in user ?>

<?= $Theme->getCSS() ?>
<?php
  // avoid redundant bookmark title for custom home page
  if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
      $pagetitle = "";
  else
      $pagetitle = " - ". AsString($TITLE);
?>
<title><?= WIKI_NAME.$pagetitle ?></title>
<?php
  require_once("lib/plugin/RateIt.php");
  $plugin = new WikiPlugin_RateIt;
  $plugin->head();
?>
<?= $Theme->getMoreHeaders() ?>
</head>

<?php
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -          
               
// $Log: head.tmpl,v $
// Revision 1.1  2004/03/30 02:40:07  rurban
// sample theme needed for RateIt
//
// Revision 1.14  2004/02/17 12:19:49  rurban
// support to add more javascript dynamically
//
// Revision 1.13  2003/12/05 15:36:39  carstenklapp
// Improvements: to make it easier to run multiple wikis off of one set
// of code, urls for link rel author and copyright now defined in
// index.php.
// Bugfix: updated language meta tag to use DEFAULT_LANGUAGE constant
// instead of old LANG global.
// Internal change: Eliminated RECENT_CHANGES constant from RSS link,
// just use the easily localizable _("RecentChanges").
// Typo fixed.
//
// Revision 1.12  2003/11/22 17:58:43  carstenklapp
// Minor internal change: Removed redundant call to gettext within
// fmt(). (locale make: head.tmpl:49: warning: keyword nested in keyword
// arg)
//
// Revision 1.11  2003/11/21 23:06:12  carstenklapp
// Bugfix: Some <link rel=...> links in Mozilla/iCab were always linking
// to the english pages even when DEFAULT_LANGUAGE != 'en'. (Rewrapped
// text for a more complete xgettext string extraction: 'cd
// phpwiki/locale;make' to update po/mo files).
//
// Revision 1.10  2003/03/07 20:51:59  dairiki
// New feature: Automatic extraction of keywords (for the meta keywords tag)
// from Category* and Topic* links on each page.
//
// Revision 1.9  2003/03/07 02:45:51  dairiki
// Rename BASE_URL to PHPWIKI_BASE_URL.  Lycos pre-defines BASE_URL (to
// the wrong thing).
//
// Revision 1.8  2003/03/05 21:38:15  dairiki
// More HTML comment reduction patches by "Klaus-Guenter Leiss"
// <Leiss.Klaus-Guenter@xxxxxxxx>
//
// (With a few adjustments by me.  Any bugs are probably my fault.)
//
// Revision 1.7  2003/02/26 22:27:17  dairiki
// Fix and refactor FrameInclude plugin (more or less).
//
// (This should now generate valid HTML.  Woohoo!)
//
// The output when using the Sidebar theme is ugly enough that it should
// be considered broken.  (But the Sidebar theme appears pretty broken in
// general right now.)
//
// (Personal comment (not to be taken personally): I must say that I
// remain unconvinced of the usefulness of this plugin.)
//
// Revision 1.6  2003/01/11 22:29:47  carstenklapp
// Tweak redundant bookmark title when browsing a custom home page with
// the same name as the wiki (i.e. avoid titles like "MyWiki - MyWiki"
// when HOME_PAGE==WIKI_NAME)
//
?>

--- NEW FILE: navbar.tmpl ---
<?php // -*-html-*-
    rcs_id('$Id: navbar.tmpl,v 1.1 2004/03/30 02:40:07 rurban Exp $');

    $s = $Theme->getButtonSeparator();
?>
<!-- The top navigation/search bar -->
<form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
      method="get" accept-charset="<?=CHARSET?>">
  <div id="navbuttons">
   <?= WikiLink(_("RecentChanges"), "button") ?>
   <?=$s?><?= WikiLink(_("FindPage"), "button") ?>
   <?=$s?><input type="hidden" name="auto_redirect" value="1" />
      <?php if (! USE_PATH_INFO) { ?>
      <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
      <?php } ?>
      <input type="hidden" name="nocache" value="purge" />
      <input type="text"  name="s" size="12" maxlength="256"
             title='<?=_("Quick Search")?>'
             onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
             onmouseout="window.status=''; return true;" />
    <?php if (!empty($revision)) { ?>
     <?=$s?><?= Button("LikePages", _("LikePages")) ?>
     <?=$s?><?= Button("BackLinks", _("BackLinks")) ?>
    <?php } ?>
    <?php if (!empty($user)) { ?>
     <?=$s?>
<?php 
$loader = new WikiPluginLoader();
printXML($loader->expandPI("<"."?plugin RateIt ?".">",$request,$dbi->_markup));
?>
    <?php
      /* Today's calendar page for the user, if the Calender subpage is 
defined. */
      $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
      $dbi = $request->getDbh();
      if ($dbi->isWikiPage($UserCalPageTitle)) {
        $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . 
strftime("%Y-%m-%d", time());
        $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
        ?>
     <?=$s?><?= WikiLink($UserCalPageTodayUrl, "button", _("Today")) ?>
      <?php } ?>
      <?php if (!empty($user) && $user->isAdmin()) { ?>
     <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
      <?php } ?>
    <?php } ?></div>
</form>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>