Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv16437
Modified Files:
jBlog_admin_installer.inc.php jBlog_config_local.tpl
jBlog_genpage.php
Log Message:
You can now add an external stylesheet optionally.
Index: jBlog_admin_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_admin_installer.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- jBlog_admin_installer.inc.php 14 Mar 2003 05:20:16 -0000 1.15
+++ jBlog_admin_installer.inc.php 27 Mar 2003 20:24:00 -0000 1.16
@@ -101,7 +101,7 @@
if (@is_array($from)) $value[$x]["default"] = $from[$value[$x]["name"]];
echo "<tr>";
echo "<td valign='top'>".$value[$x]["name"].":</td>";
- echo "<td>";
+ echo "<td valign='top'>";
if ($value[$x]["type"] == "bool") {
echo "<input type='radio' name='".$value[$x]["name"]."' value='true' ".(($value[$x]["default"]==true) ? "CHECKED" : "")."> Yes<br>";
echo "<input type='radio' name='".$value[$x]["name"]."' value='false' ".(($value[$x]["default"]==true) ? "" : "CHECKED")."> No<br>";
Index: jBlog_config_local.tpl
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_config_local.tpl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- jBlog_config_local.tpl 14 Mar 2003 06:18:30 -0000 1.8
+++ jBlog_config_local.tpl 27 Mar 2003 20:24:01 -0000 1.9
@@ -23,6 +23,7 @@
$jBlog["pass"] = "{pass|string|j}"; // Password for admin login
$jBlog["email"] = "{email|string|j}"; // Email for admin login
$jBlog["want_mail"] = {want_mail|bool|true}; // Do you want to receive emails when comments are posted to your jBlog?
+$jBlog["extCSS"] = "{extCSS|string|none}"; // You can define a stylesheet uri here, aditionally to the settings adjustable in the admin interface (enter 'none' if you don't need this)
$jBlog["wysiwyg"] = {wysiwyg|bool|false}; // Do you want to use the WYSIWYG editor?
$jBlog["layout_mode"] = "{layout_mode|string|table}"; // Layout mode
Index: jBlog_genpage.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_genpage.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- jBlog_genpage.php 11 Mar 2003 01:41:07 -0000 1.6
+++ jBlog_genpage.php 27 Mar 2003 20:24:01 -0000 1.7
@@ -2,6 +2,9 @@
?><html><head><title><?=htmlentities($jBlog['blogTitle'])?></title>
<link rel="stylesheet" type="text/css" href="<?=$jBlog['jBlogHTTPPath']?>jBlog.css.php" />
+<?php
+ if (strtolower($jBlog['extCSS'])!='none') echo "<link rel='stylesheet' type='text/css' href='{$jBlog['extCSS']}'>";
+?>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?=$jBlog['baseURL']?>feeds/index.rss" />
<script language="Javascript" src="<?=$jBlog['jBlogHTTPPath']?>jBlog.js"></script>
</head>
|