From: Yves K. <yku...@us...> - 2004-10-26 07:29:44
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30073/xwysiwyg/themes/Default Modified Files: theme.php theme.tpl Log Message: saved in unix-format; some changes to have less code in these files Index: theme.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default/theme.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** theme.tpl 25 Oct 2004 18:17:33 -0000 1.1.1.1 --- theme.tpl 26 Oct 2004 07:29:35 -0000 1.2 *************** *** 1,47 **** ! <!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> --- 1,47 ---- ! <!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> ! ! <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> Index: theme.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/themes/Default/theme.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** theme.php 25 Oct 2004 18:17:33 -0000 1.1.1.1 --- theme.php 26 Oct 2004 07:29:35 -0000 1.2 *************** *** 1,35 **** ! <?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 ! ?> \ No newline at end of file --- 1,20 ---- ! <?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 ! require_once(PHPWS_SOURCE_DIR.'mod/xwysiwyg/class/xwysiwyg.php');//include the xwysiwyg code ! $THEME["XWYSIWYG"] = PHPWS_xwysiwyg::makeJS(); //build main-js ! // end xwysiwyg-code in theme.php ! ?> \ No newline at end of file |