OSDN Git Service

Added a template using 'favourite icon'
authorhenoheno <henoheno>
Tue, 7 Mar 2006 14:00:40 +0000 (23:00 +0900)
committerhenoheno <henoheno>
Tue, 7 Mar 2006 14:00:40 +0000 (23:00 +0900)
skin/pukiwiki.skin.php
skin/tdiary.skin.php

index 7493b7a..61901c4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: pukiwiki.skin.php,v 1.46 2005/05/23 14:22:30 henoheno Exp $
+// $Id: pukiwiki.skin.php,v 1.47 2006/03/07 14:00:40 henoheno Exp $
 // Copyright (C)
 //   2002-2005 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
@@ -11,8 +11,9 @@
 // ------------------------------------------------------------
 // Settings (define before here, if you want)
 
-// Set site logo
+// Set site identities
 $_IMAGE['skin']['logo']     = 'pukiwiki.png';
+$_IMAGE['skin']['favicon']  = ''; // Sample: 'image/favicon.ico';
 
 // SKIN_DEFAULT_DISABLE_TOPICPATH
 //   1 = Show reload URL
@@ -73,6 +74,8 @@ if (isset($pkwk_dtd)) {
 <?php if (PKWK_ALLOW_JAVASCRIPT && isset($javascript)) { ?> <meta http-equiv="Content-Script-Type" content="text/javascript" /><?php } ?>
 
  <title><?php echo $title ?> - <?php echo $page_title ?></title>
+
+ <link rel="SHORTCUT ICON" href="<?php echo $image['favicon'] ?>" />
  <link rel="stylesheet" type="text/css" media="screen" href="skin/pukiwiki.css.php?charset=<?php echo $css_charset ?>" charset="<?php echo $css_charset ?>" />
  <link rel="stylesheet" type="text/css" media="print"  href="skin/pukiwiki.css.php?charset=<?php echo $css_charset ?>&amp;media=print" charset="<?php echo $css_charset ?>" />
  <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $link['rss'] ?>" /><?php // RSS auto-discovery ?>
index da652c0..3e6d91c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: tdiary.skin.php,v 1.28 2005/08/01 15:19:02 henoheno Exp $
+// $Id: tdiary.skin.php,v 1.29 2006/03/07 14:00:40 henoheno Exp $
 // Copyright (C)
 //   2002-2005 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
@@ -11,6 +11,9 @@
 // ------------------------------------------------------------
 // Settings (define before here, if you want)
 
+// Set site identities
+$_IMAGE['skin']['favicon']  = ''; // Sample: 'image/favicon.ico';
+
 // Select theme
 if (! defined('TDIARY_THEME'))
        define('TDIARY_THEME', 'loose-leaf'); // Default
@@ -541,6 +544,7 @@ if ($sidebar == 'none') {
 
 $lang  = & $_LANG['skin'];
 $link  = & $_LINK;
+$image = & $_IMAGE['skin'];
 $rw    = ! PKWK_READONLY;
 
 // Decide charset for CSS
@@ -574,6 +578,7 @@ if (isset($pkwk_dtd)) {
 
  <title><?php echo $title ?> - <?php echo $page_title ?></title>
 
+ <link rel="SHORTCUT ICON" href="<?php echo $image['favicon'] ?>" />
  <link rel="stylesheet" type="text/css" media="all" href="skin/theme/base.css" />
  <link rel="stylesheet" type="text/css" media="all" href="skin/theme/<?php echo $theme ?>/<?php echo $theme ?>.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="skin/tdiary.css.php?charset=<?php echo $css_charset ?>&amp;color=<?php echo $css_theme ?>" charset="<?php echo $css_charset ?>" />