Added "feed_url" trigger & separate gelato_includes.
parent
c3685083f3
commit
7dceb5493a
19
index.php
19
index.php
|
|
@ -48,16 +48,13 @@ $theme = new themes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$gelato_includes = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
|
$feed_url = $conf->urlGelato.($conf->urlFriendly?"/rss/":"/rss.php");
|
||||||
$gelato_includes .= "\t<meta name=\"generator\" content=\"gelato ".codeName()." (".version().")\" />\n";
|
$trigger->call('feed_url');
|
||||||
$gelato_includes .= "\t<link rel=\"shortcut icon\" href=\"".$conf->urlGelato."/images/favicon.ico\" />\n";
|
$theme->set('rssFeed',"\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$feed_url."\"/>\n");
|
||||||
$gelato_includes .= "\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$conf->urlGelato.($conf->urlFriendly?"/rss/":"/rss.php")."\"/>\n";
|
|
||||||
$gelato_includes .= "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"".$conf->urlGelato."/themes/".$conf->template."/style.css\"/>\n";
|
$gelato_includes = "<meta name=\"generator\" content=\"gelato ".codeName()." (".version().")\" />\n";
|
||||||
$gelato_includes .= "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"".$conf->urlGelato."/admin/css/lightbox.css\" />\n";
|
$gelato_includes .= "\t<link rel=\"shortcut icon\" href=\"".$conf->urlGelato."/images/favicon.ico\" />";
|
||||||
$gelato_includes .= "\t<script language=\"javascript\" type=\"text/javascript\" src=\"".$conf->urlGelato."/admin/scripts/jquery.js\"></script>\n";
|
|
||||||
$gelato_includes .= "\t<script language=\"javascript\" type=\"text/javascript\" src=\"".$conf->urlGelato."/admin/scripts/lightbox.js\"></script>";
|
|
||||||
|
|
||||||
|
|
||||||
$page_title = $conf->title;
|
$page_title = $conf->title;
|
||||||
$page_title_divisor = " » "; // it should be set in configuration
|
$page_title_divisor = " » "; // it should be set in configuration
|
||||||
$page_title_len = 50; // it should be set in configuration
|
$page_title_len = 50; // it should be set in configuration
|
||||||
|
|
@ -76,7 +73,7 @@ $theme = new themes;
|
||||||
$page_title .= $page_title_divisor.stripslashes($page_title_data);
|
$page_title .= $page_title_divisor.stripslashes($page_title_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$trigger->call('gelato_includes');
|
$trigger->call('gelato_includes');
|
||||||
$theme->set('Gelato_includes',$gelato_includes);
|
$theme->set('Gelato_includes',$gelato_includes);
|
||||||
$theme->set('Title',$conf->title);
|
$theme->set('Title',$conf->title);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
{Gelato_includes}
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
{Gelato_includes}
|
||||||
|
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/themes/{Template_name}/style.css"/>
|
||||||
|
<script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/jquery.js"></script>
|
||||||
|
<script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/lightbox.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/admin/css/lightbox.css" />
|
||||||
<title>{Page_Title}</title>
|
<title>{Page_Title}</title>
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
@ -81,7 +86,7 @@
|
||||||
<h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
|
<h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{if {$id_post}}
|
{if {$id_post}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue