Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13383/modules/xwysiwyg/themes/Default
Added Files:
theme.php theme.tpl
Log Message:
Initial Revision
--- NEW FILE: theme.tpl ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{TITLE}</title>
{METATAGS}
{XWYSIWYG}
{JAVASCRIPT}
{STYLE}
</head>
<body{XWYSIWYG_BODY}>
<a href=".">
<img src="{THEME_DIRECTORY}images/poweredby.jpg" alt="Fallout" border="0" />
</a>
<table border="0" cellpadding="5" cellspacing="0" width="100%" summary="Layout table">
<tr>
<!-- BEGIN LEFTSIDE -->
<td width="15%" valign="top" align="center">
{LEFT_COL_TOP}
{LEFT_COL_MID}
{LEFT_COL_BOTTOM}
</td>
<!-- END LEFTSIDE -->
<td valign="top" width="70%">
{TOP}
{BODY}
{BOTTOM}
</td>
<!-- BEGIN RIGHTSIDE -->
<td width="15%" valign="top" align="center">
{RIGHT_COL_TOP}
{RIGHT_COL_MID}
{RIGHT_COL_BOTTOM}
</td>
<!-- END RIGHTSIDE -->
</tr>
</table>
<div class="smalltext" style="text-align : center">
Copyright © Appalachian State University 2002 - 2004<br />
This Site is powered by phpWebSite © The Web Technology Group, Appalachian State University<br />
phpWebSite is licensed under the <a href="http://www.gnu.org/copyleft/lesser.html">GNU LGPL</a>
</div><br />
{EXAMPLE}
</body>
</html>
--- NEW FILE: theme.php ---
<?php
// This is a sample theme include file. Just insert the functions you want to appear
// in your theme and place them into the $THEME['LABEL_NAME'] array. Then just create
// a {EXAMPLE} tag in your theme.tpl file.
// This file will NOT be included if layout's config.php file prohibits it.
// $THEME["EXAMPLE"] = "This is a sample of including php code into your theme. <br />
// Uncomment this line then look at the bottom of your Default theme page.";
// begin xwysiwyg-code in theme.php
if ($GLOBALS['xwysiwyg'] >= 1) {
$settings = PHPWS_xwysiwyg::readConfig();
$areas = $GLOBALS['xwysiwyg_areas'];
$loadplugs = PHPWS_xwysiwyg::loadPlugins($settings); //get Plugins to load
$lang = PHPWS_xwysiwyg::setLanguage($settings); //get Language
$editors = "";
$index = 1;
foreach($areas as $area) {
$regplugs = PHPWS_xwysiwyg::registerPlugins($settings,$index); //get Plugins to register
$editors .= PHPWS_xwysiwyg::makeEditors($settings,$index,$regplugs,$area,$lang); //make Editors-js
$index++;
}
if(!$settings['request_mode'])
$THEME["XWYSIWYG_BODY"] = " onload=\"setTimeout(function() {initEditor()}, 900);\"";
$THEME["XWYSIWYG"] = PHPWS_xwysiwyg::makeMain($settings,$editors,$loadplugs,$lang); //build main-js
}
// end xwysiwyg-code in theme.php
?>
|