[pLog-General] language, template header,...
Brought to you by:
jondaley
From: nexia <nex...@ya...> - 2004-04-01 12:12:56
|
ok, i mix some things i'm doing right now in a single message, as they are related: 1- we will add one detail in the local files: $messages["direction"] = "ltr"; (ltr/rtl) this will determine the direction tag in the html, for languages that require it (Arabic and Chinese) 2- the new default header for "before content" of the templates will now look like this: <?xml version="1.0" encoding="{$locale->getCharset()}"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$locale->getLanguage()}" lang="{$locale->getLanguage()}" dir="{$locale->getLangDirection()}" /> <head> <link rel="icon" type="image/ico" href="{$blog->getFavicon()}"> <title> {$blog->getBlog()} :: {$blog->getPostTitle()} </title> <meta http-equiv="Content-Type" content="text/html; charset={$locale->getCharset()}" /> <meta name="generator" content="pLog {$ANY_VERSION}" /> <meta name="author" content="{$blog->getBlogOwner()}" /> <meta http-equiv="Content-Language" content="{$locale->getLanguage()}" /> <style type="text/css" media="screen"> @import url( {$blog->getCSS()} ); </style> <link rel="stylesheet" type="text/css" media="print" href="{$url->getUrl('/styles/print.css')}" /> <link rel="alternate" type="text/xml" title="RDF" href="{$url->rssLink("rdf")}" /> <link rel="alternate" type="text/xml" title="RSS 2.0" href="{$url->rssLink("rss20")}" /> <link rel="alternate" type="text/xml" title="RSS 1.0" href="{$url->rssLink("rss10")}" /> <link rel="alternate" type="text/xml" title="RSS .90" href="{$url->rssLink("rss090")}" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="{$url->rssLink("xml")}" /> <link rel="pingback" href="{$url->rssLink('pingback_url')}" /> <script type="text/javascript" src="{$ANY_JS_FILE_YA_KNOW}" /> </head> <body> ----------- i've added some strange functions in the code, i'm not sure how to integrate them, but you understand that they are requiring some variables. this is to ensure that the meta tags are properly set. i'm missing some details, like the rss feeds links, but they are to be added if needed only. __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ |