瀏覽代碼

Path for bug on theme selection

pecesama 18 年之前
父節點
當前提交
ff182eaa70
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 5 3
      index.php
  2. 2 4
      themes/tumblr/template_header.htm

+ 5 - 3
index.php 查看文件

@@ -60,10 +60,12 @@
60 60
 	$gelato_includes = "<script language=\"javascript\" type=\"text/javascript\" src=\"".$conf->urlGelato."/admin/scripts/mootools.js\"></script>\n";
61 61
 	$gelato_includes .= "\t<script language=\"javascript\" type=\"text/javascript\" src=\"".$conf->urlGelato."/admin/scripts/slimbox.js\"></script>\n";
62 62
 	$gelato_includes .= "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"".$conf->urlGelato."/admin/css/slimbox.css\" />\n";
63
-	$gelato_includes .= "\t<link rel=\"shortcut icon\" href=\"".$conf->urlGelato."/images/favicon.ico\" />";
63
+	$gelato_includes .= "\t<link rel=\"shortcut icon\" href=\"".$conf->urlGelato."/images/favicon.ico\" />\n";
64
+	$gelato_includes .= "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"".$conf->urlGelato."/themes/".$conf->template."/style.css\"/>\n";
65
+	$gelato_includes .= "\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$conf->urlGelato."/rss.php\"/>";
64 66
 	
65
-	$input = array("{Gelato_includes}","{Title}", "{Description}", "{URL_Tumble}");
66
-	$output = array($gelato_includes, $conf->title, $conf->description, $conf->urlGelato);
67
+	$input = array("{Gelato_includes}","{Title}", "{Description}", "{URL_Tumble}", "{Template_name}");
68
+	$output = array($gelato_includes, $conf->title, $conf->description, $conf->urlGelato, $conf->template);
67 69
 	
68 70
 	$template->cargarPlantilla($input, $output, "template_header");
69 71
 	$template->mostrarPlantilla();

+ 2 - 4
themes/tumblr/template_header.htm 查看文件

@@ -3,9 +3,7 @@
3 3
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 4
 <head>    
5 5
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
-	{Gelato_includes}
7
-	<link rel="stylesheet" type="text/css" href="{URL_Tumble}/themes/tumblr/style.css"/>
8
-	<link rel="alternate" type="application/rss+xml" title="RSS" href="{URL_Tumble}/rss.php"/>
6
+	{Gelato_includes}	
9 7
     <title>{Title}</title>
10 8
     <!--[if IE]>
11 9
         <style type="text/css">
@@ -17,7 +15,7 @@
17 15
 </head>
18 16
 <body>
19 17
     <div id="container">
20
-        <a href="{URL_Tumble}/rss.php"><img src="{URL_Tumble}/themes/tumblr/img/rss.gif" id="rss" alt="RSS" title="RSS" /></a>
18
+        <a href="{URL_Tumble}/rss.php"><img src="{URL_Tumble}/themes/{Template_name}/img/rss.gif" id="rss" alt="RSS" title="RSS" /></a>
21 19
 
22 20
         <h1><a href="{URL_Tumble}/">{Title}</a></h1>        
23 21