mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Updated to new xml standard, matching new plugin.xml
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
|
||||
| $Revision: 1.12 $
|
||||
| $Date: 2008-11-17 07:17:23 $
|
||||
| $Author: e107coders $
|
||||
| $Revision: 1.13 $
|
||||
| $Date: 2008-12-03 18:09:00 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -459,17 +459,8 @@ class themeHandler{
|
||||
</td></tr></table>\n";
|
||||
}
|
||||
|
||||
/*if($theme['xhtmlcompliant'] || $theme['xhtmlcompliant'])
|
||||
{
|
||||
$text .= "<table cellspacing='3' style='width:97%'><tr><td >";
|
||||
$text .= ($theme['xhtmlcompliant']) ? "<img src='".e_IMAGE."generic/valid-xhtml11_small.png' alt='' style='border: 0px;' /> ": "";
|
||||
$text .= ($theme['csscompliant']) ? "<img src='".e_IMAGE."generic/vcss_small.png' alt='' style='border: 0px;' /> " : "";
|
||||
$text .= "</td></tr></table>";
|
||||
}*/
|
||||
|
||||
$text .= "</td></tr></table></div>\n";
|
||||
return $text;
|
||||
|
||||
}
|
||||
|
||||
function themePreview()
|
||||
@@ -571,8 +562,6 @@ class themeHandler{
|
||||
$css = strtolower($match[2]);
|
||||
$themeArray['csscompliant'] = ($css == "true" ? true : false);
|
||||
|
||||
|
||||
|
||||
if (!$themeArray['name'])
|
||||
{
|
||||
unset($themeArray);
|
||||
@@ -588,11 +577,21 @@ class themeHandler{
|
||||
$xml = new xmlClass;
|
||||
$vars = $xml->loadXMLfile(e_THEME.$path.'/theme.xml', true, true);
|
||||
|
||||
$vars['email'] = $vars['authorEmail'];
|
||||
$vars['website'] = $vars['authorUrl'];
|
||||
$vars['name'] = varset($vars['@attributes']['name']);
|
||||
$vars['version'] = varset($vars['@attributes']['version']);
|
||||
$vars['date'] = varset($vars['@attributes']['date']);
|
||||
$vars['compatibility'] = varset($vars['@attributes']['compatibility']);
|
||||
|
||||
|
||||
$vars['email'] = varset($vars['author']['@attributes']['email']);
|
||||
$vars['website'] = varset($vars['author']['@attributes']['url']);
|
||||
$tmp = varset($vars['author']['@attributes']['name']);
|
||||
$vars['author'] = $tmp;
|
||||
|
||||
|
||||
$vars['info'] = $vars['description'];
|
||||
$vars['xhtmlcompliant'] = (strtolower($vars['xhtmlCompliant']) == "true") ? 1 : 0;
|
||||
$vars['csscompliant'] = (strtolower($vars['cssCompliant']) == "true") ? 1 : 0;
|
||||
$vars['xhtmlcompliant'] = (strtolower($vars['compliance']['@attributes']['xhtml']) == 'true' ? 1 : 0);
|
||||
$vars['csscompliant'] = (strtolower($vars['compliance']['@attributes']['css']) == 'true' ? 1 : 0);
|
||||
$vars['path'] = $path;
|
||||
$vars['@attributes']['default'] = (strtolower($vars['@attributes']['default'])=='true') ? 1 : 0;
|
||||
|
||||
|
@@ -1,16 +1,8 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<e107Theme>
|
||||
<name>e107.v4</name>
|
||||
<version>3.0</version>
|
||||
<date>2003-06-11</date>
|
||||
<author>Steve Dunstan [jalist]</author>
|
||||
<authorEmail>jalist@e107.org</authorEmail>
|
||||
<authorUrl>http://e107.org</authorUrl>
|
||||
<e107Theme name="e107.v4" version="3.0" date="2003-06-11" compatibility="0.8">
|
||||
<author name ="Steve Dunstan [jalist]" email="jalist@e107.org" url="http://e107.org"/>
|
||||
<description>Classic e107 theme</description>
|
||||
<compatibility>0.8</compatibility>
|
||||
<xhtmlCompliant>true</xhtmlCompliant>
|
||||
<cssCompliant>true</cssCompliant>
|
||||
<compliance xhtml="true" css="true"/>
|
||||
<layouts>
|
||||
<layout name='3_column' title='3 Columns' preview='preview.jpg' previewFull='preview_full.png' requiredPlugins='chatbox' default='true' >
|
||||
<menuPresets>
|
||||
|
Reference in New Issue
Block a user