Menu-Manager theme layout parsing test. Legacy themes added.
269
tests/_data/testcore/calendar_template.php
Normal file
@ -0,0 +1,269 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.7/e107_plugins/calendar_menu/calendar_template.php,v $
|
||||
| $Revision: 11346 $
|
||||
| $Date: 2010-02-17 13:56:14 -0500 (Wed, 17 Feb 2010) $
|
||||
| $Author: secretr $
|
||||
|
|
||||
| 10.11.06 steved - mods for next CVS release
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// TIME SWITCH BUTTONS ------------------------------------------------------------
|
||||
$sc_style['PREV_MONTH']['pre'] = "<span class='defaulttext'>";
|
||||
$sc_style['PREV_MONTH']['post'] = "</span>";
|
||||
|
||||
$sc_style['CURRENT_MONTH']['pre'] = "<b>";
|
||||
$sc_style['CURRENT_MONTH']['post'] = "</b>";
|
||||
|
||||
$sc_style['NEXT_MONTH']['pre'] = "<span class='defaulttext'>";
|
||||
$sc_style['NEXT_MONTH']['post'] = "</span>";
|
||||
|
||||
$sc_style['PREV_YEAR']['pre'] = "";
|
||||
$sc_style['PREV_YEAR']['post'] = "";
|
||||
|
||||
$sc_style['MONTH_LIST']['pre'] = "";
|
||||
$sc_style['MONTH_LIST']['post'] = "";
|
||||
|
||||
$sc_style['NEXT_YEAR']['pre'] = "";
|
||||
$sc_style['NEXT_YEAR']['post'] = "";
|
||||
|
||||
//<table style='width:98%;' class='fborder'>
|
||||
|
||||
$CALENDAR_TIME_TABLE = "
|
||||
<table cellpadding='0' cellspacing='1' class='fborder' style='width:100%'>
|
||||
<tr>
|
||||
<td style='width:18%; text-align:left'>{PREV_MONTH}</td>
|
||||
<td class='fcaption' style='width:64%; text-align:center'>{CURRENT_MONTH}</td>
|
||||
<td style='width:18%; text-align:right'>{NEXT_MONTH}</td>
|
||||
</tr>\n
|
||||
<tr>
|
||||
<td style='text-align:left'>{PREV_YEAR}</td>
|
||||
<td class='fcaption' style='text-align:center; vertical-align:middle'>{MONTH_LIST}</td>
|
||||
<td style='text-align:right'>{NEXT_YEAR}</td>
|
||||
</tr>\n
|
||||
</table>";
|
||||
|
||||
|
||||
|
||||
// NAVIGATION BUTTONS ------------------------------------------------------------
|
||||
//$sc_style['NAV_LINKCURRENTMONTH']['pre'] = "<span class='button' style='width:120px; '>";
|
||||
//$sc_style['NAV_LINKCURRENTMONTH']['post'] = "</span>";
|
||||
$sc_style['NAV_LINKCURRENTMONTH']['pre'] = "";
|
||||
$sc_style['NAV_LINKCURRENTMONTH']['post'] = "";
|
||||
|
||||
$CALENDAR_NAVIGATION_TABLE = "
|
||||
<div style='text-align:center; margin-bottom:20px;'>
|
||||
<form method='post' action='" . e_SELF . "?" . e_QUERY . "' id='calform'>
|
||||
<table border='0' cellpadding='0' cellspacing='0' style='width:100%;'>
|
||||
<tr>
|
||||
<td style='text-align:center;'>{NAV_CATEGORIES} {NAV_BUT_ALLEVENTS} {NAV_BUT_VIEWCAT} {NAV_BUT_ENTEREVENT} {NAV_BUT_SUBSCRIPTION} {NAV_LINKCURRENTMONTH}</td>
|
||||
</tr>\n
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
|
||||
|
||||
|
||||
// EVENT LIST ------------------------------------------------------------
|
||||
$sc_style['EVENTLIST_CAPTION']['pre'] = "<tr><td class='fcaption' colspan='2'>";
|
||||
$sc_style['EVENTLIST_CAPTION']['post'] = ":<br /><br /></td></tr>\n";
|
||||
|
||||
$EVENT_EVENTLIST_TABLE_START = "<table style='width:100%' class='fborder'>{EVENTLIST_CAPTION}";
|
||||
$EVENT_EVENTLIST_TABLE_END = "</table>";
|
||||
|
||||
|
||||
|
||||
// EVENT ARCHIVE ------------------------------------------------------------
|
||||
$sc_style['EVENTARCHIVE_CAPTION']['pre'] = "<tr><td colspan='2' class='fcaption'>";
|
||||
$sc_style['EVENTARCHIVE_CAPTION']['post'] = "</td></tr>\n";
|
||||
|
||||
$EVENT_ARCHIVE_TABLE_START = "<br /><table style='width:100%' class='fborder'>{EVENTARCHIVE_CAPTION}";
|
||||
$EVENT_ARCHIVE_TABLE = "
|
||||
<tr>
|
||||
<td style='width:35%; vertical-align:top' class='forumheader3'>{EVENT_RECENT_ICON}{EVENTARCHIVE_DATE}</td>
|
||||
<td style='width:65%' class='forumheader3'>{EVENTARCHIVE_HEADING}</td>
|
||||
</tr>\n";
|
||||
//<br />{EVENTARCHIVE_DETAILS}
|
||||
$EVENT_ARCHIVE_TABLE_EMPTY = "<tr><td colspan='2' class='forumheader3'>{EVENTARCHIVE_EMPTY}</td></tr>\n";
|
||||
$EVENT_ARCHIVE_TABLE_END = "</table>";
|
||||
|
||||
|
||||
|
||||
// EVENT SHOW EVENT ------------------------------------------------------------
|
||||
$EVENT_EVENT_TABLE_START = "<table style='width:100%' class='fborder' cellspacing='0' cellpadding='0'>";
|
||||
$EVENT_EVENT_TABLE_END = "</table>";
|
||||
|
||||
$sc_style['EVENT_HEADING_DATE']['pre'] = "";
|
||||
$sc_style['EVENT_HEADING_DATE']['post'] = "";
|
||||
|
||||
$sc_style['EVENT_DETAILS']['pre'] = "<tr><td colspan='2' class='forumheader3'>";
|
||||
$sc_style['EVENT_DETAILS']['post'] = "</td></tr>\n";
|
||||
|
||||
$sc_style['EVENT_LOCATION']['pre'] = "<b>".EC_LAN_32."</b> ";
|
||||
$sc_style['EVENT_LOCATION']['post'] = "";
|
||||
|
||||
$sc_style['EVENT_AUTHOR']['pre'] = "<b>".EC_LAN_31."</b> ";
|
||||
$sc_style['EVENT_AUTHOR']['post'] = " ";
|
||||
|
||||
$sc_style['EVENT_CONTACT']['pre'] = "<b>".EC_LAN_33."</b> ";
|
||||
$sc_style['EVENT_CONTACT']['post'] = " ";
|
||||
|
||||
$sc_style['EVENT_THREAD']['pre'] = "<tr><td colspan='2' class='forumheader3'><span class='smalltext'>";
|
||||
$sc_style['EVENT_THREAD']['post'] = "</span></td></tr>\n";
|
||||
|
||||
$sc_style['EVENT_CATEGORY']['pre'] = "<b>".EC_LAN_30."</b> ";
|
||||
$sc_style['EVENT_CATEGORY']['post'] = " ";
|
||||
|
||||
$sc_style['EVENT_DATE_START']['pre'] = (isset($thisevent['event_allday']) && $thisevent['event_allday']) ? "<b>".EC_LAN_68."</b> " : "<b>".EC_LAN_29."</b> ";
|
||||
$sc_style['EVENT_DATE_START']['post'] = "";
|
||||
|
||||
$sc_style['EVENT_TIME_START']['pre'] = EC_LAN_144;
|
||||
$sc_style['EVENT_TIME_START']['post'] = "";
|
||||
|
||||
$sc_style['EVENT_DATE_END']['pre'] = "<b>".EC_LAN_69."</b> ";
|
||||
$sc_style['EVENT_DATE_END']['post'] = "";
|
||||
|
||||
$sc_style['EVENT_TIME_END']['pre'] = EC_LAN_144;
|
||||
$sc_style['EVENT_TIME_END']['post'] = "";
|
||||
|
||||
$EVENT_EVENT_TABLE = "
|
||||
<tr>
|
||||
<td >
|
||||
<div title='".EC_LAN_132."' class='fcaption' style='cursor:pointer; text-align:left; border:0px solid #000;' onclick=\"expandit('{EVENT_ID}')\">{EVENT_RECENT_ICON}{EVENT_CAT_ICON}{EVENT_HEADING_DATE}{EVENT_TIME_START} - {EVENT_TITLE}</div>
|
||||
<div id='{EVENT_ID}' style='display:{EVENT_DISPLAYSTYLE}; padding-top:10px; padding-bottom:10px; text-align:left;'>
|
||||
<table style='width:100%;' cellspacing='0' cellpadding='0'>
|
||||
<tr><td colspan='2' class='forumheader3'>{EVENT_AUTHOR} {EVENT_CAT_ICON} {EVENT_CATEGORY} {EVENT_CONTACT} {EVENT_OPTIONS}</td></tr>
|
||||
<tr><td colspan='2' class='forumheader3'>{EVENT_DATE_START}{EVENT_TIME_START} {EVENT_DATE_END}{EVENT_TIME_END}</td></tr>\n
|
||||
<tr><td colspan='2' class='forumheader3'>{EVENT_LOCATION}</td></tr>
|
||||
{EVENT_DETAILS}
|
||||
{EVENT_THREAD}
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>\n
|
||||
";
|
||||
|
||||
|
||||
// CALENDAR SHOW EVENT ------------------------------------------------------------
|
||||
$sc_style['CALENDAR_CALENDAR_RECENT_ICON']['pre'] = "<td style='vertical-align:top; color: #000; width:10px;'>";
|
||||
$sc_style['CALENDAR_CALENDAR_RECENT_ICON']['post'] = "</td>";
|
||||
$CALENDAR_SHOWEVENT = "<table cellspacing='0' cellpadding='0' style='width:100%;'><tr>{CALENDAR_CALENDAR_RECENT_ICON}<td style='vertical-align:top; width:10px;'>{SHOWEVENT_IMAGE}</td><td style='vertical-align:top; width:2%;'>{SHOWEVENT_INDICAT}</td><td style='vertical-align:top;'>{SHOWEVENT_HEADING}</td></tr>\n</table>";
|
||||
|
||||
|
||||
|
||||
// CALENDAR CALENDAR ------------------------------------------------------------
|
||||
$CALENDAR_CALENDAR_START = "
|
||||
<div style='text-align:center'>
|
||||
<table cellpadding='0' cellspacing='1' style='border: 1px #CCCCCC solid; width:100%'>";
|
||||
|
||||
$CALENDAR_CALENDAR_END = "
|
||||
</tr>\n</table></div>";
|
||||
|
||||
$CALENDAR_CALENDAR_DAY_NON = "<td style='width:12%;height:60px;'></td>";
|
||||
|
||||
//header row
|
||||
$CALENDAR_CALENDAR_HEADER_START = "<tr>";
|
||||
$CALENDAR_CALENDAR_HEADER = "<td class='fcaption' style='z-index: -1; background-color:#F9F9F9; border-bottom: 1px #CCCCCC solid; width:90px; height:20px; text-align:center; vertical-align:middle;'>{CALENDAR_CALENDAR_HEADER_DAY}</td>";
|
||||
$CALENDAR_CALENDAR_HEADER_END = "</tr>\n<tr>";
|
||||
|
||||
|
||||
$CALENDAR_CALENDAR_WEEKSWITCH = "</tr>\n<tr>";
|
||||
|
||||
//today
|
||||
$CALENDAR_CALENDAR_DAY_TODAY = "
|
||||
<td class='forumheader3' style='vertical-align:top; width:14%; height:90px; padding-bottom:0px;padding-right:0px; margin-right:0px; padding:2px;'>
|
||||
<span style='z-index: 2; position:relative; top:1px; height:10px;padding-right:0px'>{CALENDAR_CALENDAR_DAY_TODAY_HEADING}</span>";
|
||||
|
||||
//day has events
|
||||
$CALENDAR_CALENDAR_DAY_EVENT = "
|
||||
<td class='forumheader3' style='z-index: 1;vertical-align:top; width:14%; height:90px; padding-bottom:0px;padding-right:0px; margin-right:0px; padding:2px;'>
|
||||
<span style='z-index: 2; position:relative; top:1px; height:10px;padding-right:0px'><b>{CALENDAR_CALENDAR_DAY_EVENT_HEADING}</b></span>";
|
||||
|
||||
// no events and not today
|
||||
$CALENDAR_CALENDAR_DAY_EMPTY = "
|
||||
<td class='forumheader2' style='z-index: 1;vertical-align:top; width:14%; height:90px;padding-bottom:0px;padding-right:0px; margin-right:0px; padding:2px;'>
|
||||
<span style='z-index: 2; position:relative; top:1px; height:10px;padding-right:0px'><b>{CALENDAR_CALENDAR_DAY_EMPTY_HEADING}</b></span>";
|
||||
|
||||
$CALENDAR_CALENDAR_DAY_END = "</td>";
|
||||
|
||||
//====================================================================
|
||||
// Calendar menu templates
|
||||
$CALENDAR_MENU_START = "<div style='text-align:center'>";
|
||||
$CALENDAR_MENU_TABLE_START = "<table cellpadding='0' cellspacing='1' style='width:100%' class='fborder'>";
|
||||
|
||||
$CALENDAR_MENU_END = "</tr></table></div>";
|
||||
|
||||
// Blank cells at beginning and end
|
||||
$CALENDAR_MENU_DAY_NON = "<td class='forumheader3' style='padding:1px; text-align:center'><br /></td>";
|
||||
|
||||
//header row
|
||||
$CALENDAR_MENU_HEADER_START = "<tr>\n";
|
||||
$CALENDAR_MENU_HEADER_FRONT = "<td class='forumheader' style='text-align:center; vertical-align:middle;'><span class='smalltext'>";
|
||||
$CALENDAR_MENU_HEADER_BACK = "</span></td>";
|
||||
$CALENDAR_MENU_HEADER_END = "</tr>\n<tr>";
|
||||
|
||||
|
||||
$CALENDAR_MENU_WEEKSWITCH = "</tr>\n<tr>";
|
||||
|
||||
// Start and end CSS for date cells - six cases to decode, determined by array index:
|
||||
// 1 - Today, no events
|
||||
// 2 - Some other day, no events (or no icon defined)
|
||||
// 3 - Today with events (and icon defined)
|
||||
// 4 - Some other day with events (and icon defined)
|
||||
// 5 - today with events, one or more of which has recently been added/updated (and icon defined)
|
||||
// 6 - Some other day with events, one or more of which has recently been added/updated (and icon defined)
|
||||
|
||||
//today, no events
|
||||
$CALENDAR_MENU_DAY_START['1'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center; '>";
|
||||
|
||||
// no events and not today
|
||||
$CALENDAR_MENU_DAY_START['2'] = "<td class='forumheader3' style='width:14.28%; padding:1px; text-align:center; '>";
|
||||
|
||||
//day has events - same whether its today or not
|
||||
$CALENDAR_MENU_DAY_START['3'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center; '>";
|
||||
$CALENDAR_MENU_DAY_START['4'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center;'>";
|
||||
// day has events, one which is recently added/updated
|
||||
$CALENDAR_MENU_DAY_START['5'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center; '>";
|
||||
$CALENDAR_MENU_DAY_START['6'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center;'>";
|
||||
// Example highlight using background colour:
|
||||
//$CALENDAR_MENU_DAY_START['5'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center; background-color: #FF8000;'>";
|
||||
//$CALENDAR_MENU_DAY_START['6'] = "<td class='indent' style='width:14.28%; padding:1px; text-align:center; background-color: #FF0000; '>";
|
||||
|
||||
$CALENDAR_MENU_DAY_END['1'] = "</td>";
|
||||
$CALENDAR_MENU_DAY_END['2'] = "</td>";
|
||||
$CALENDAR_MENU_DAY_END['3'] = "</td>";
|
||||
$CALENDAR_MENU_DAY_END['4'] = "</td>";
|
||||
$CALENDAR_MENU_DAY_END['5'] = "</td>";
|
||||
$CALENDAR_MENU_DAY_END['6'] = "</td>";
|
||||
|
||||
//============================================================================
|
||||
// Next event menu template
|
||||
$sc_style['NEXT_EVENT_TIME']['pre'] = EC_LAN_144;
|
||||
$sc_style['NEXT_EVENT_TIME']['post'] = "";
|
||||
// Following are original styles
|
||||
//$sc_style['NEXT_EVENT_ICON']['pre'] = "<img style='border:0px' src='";
|
||||
//$sc_style['NEXT_EVENT_ICON']['post'] = "' alt='' /> ";
|
||||
// Following to 'float right' on a larger icon
|
||||
$sc_style['NEXT_EVENT_ICON']['pre'] = "<img style='clear: right; float: left; margin: 0px 3px 0px 0px; padding:1px; border: 0px;' src='";
|
||||
$sc_style['NEXT_EVENT_ICON']['post'] = "' alt='' />";
|
||||
|
||||
|
||||
if (!isset($EVENT_CAL_FE_LINE))
|
||||
{
|
||||
$EVENT_CAL_FE_LINE = "{NEXT_EVENT_ICON}{NEXT_EVENT_DATE}{NEXT_EVENT_TIME}<br /><strong>{NEXT_EVENT_TITLE}</strong>{NEXT_EVENT_GAP}";
|
||||
}
|
||||
|
||||
|
||||
?>
|
38
tests/_data/testcore/comment_menu_template.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.7/e107_plugins/comment_menu/comment_menu_template.php,v $
|
||||
| $Revision: 11346 $
|
||||
| $Date: 2010-02-17 13:56:14 -0500 (Wed, 17 Feb 2010) $
|
||||
| $Author: secretr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
$sc_style['CM_TYPE']['pre'] = "[";
|
||||
$sc_style['CM_TYPE']['post'] = "]";
|
||||
|
||||
$sc_style['CM_AUTHOR']['pre'] = CM_L13." <b>";
|
||||
$sc_style['CM_AUTHOR']['post'] = "</b>";
|
||||
|
||||
$sc_style['CM_DATESTAMP']['pre'] = " ".CM_L11." ";
|
||||
$sc_style['CM_DATESTAMP']['post'] = "";
|
||||
|
||||
$sc_style['CM_COMMENT']['pre'] = "";
|
||||
$sc_style['CM_COMMENT']['post'] = "<br /><br />";
|
||||
|
||||
if (!isset($COMMENT_MENU_TEMPLATE)){
|
||||
$COMMENT_MENU_TEMPLATE = "
|
||||
{CM_ICON} {CM_URL_PRE}{CM_TYPE} {CM_HEADING}{CM_URL_POST}<br />
|
||||
{CM_AUTHOR}<br /><br />
|
||||
";
|
||||
}
|
||||
?>
|
BIN
tests/_data/testcore/favicon.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
tests/_data/testcore/forum/admin.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
0
tests/_data/testcore/forum/index.html
Normal file
BIN
tests/_data/testcore/forum/main_admin.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
tests/_data/testcore/forum/moderator.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
tests/_data/testcore/forum/newthread.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
tests/_data/testcore/forum/reply.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
146
tests/_data/testcore/fs_custom.sc
Normal file
@ -0,0 +1,146 @@
|
||||
/*
|
||||
* Copyright (C) 2006-2009 Corllete ltd (clabteam.com), Released under Creative Common license - http://creativecommons.org/licenses/by-nc/3.0/
|
||||
* Download and update at http://www.free-source.net/
|
||||
* $Id:
|
||||
*
|
||||
*/
|
||||
|
||||
global $tp,$pref;
|
||||
$ret = "";
|
||||
$custom_query = explode('+', $parm);
|
||||
|
||||
global $use_imagecode, $sec_img;
|
||||
$use_imagecode = ($pref['logcode'] && extension_loaded('gd'));
|
||||
if($use_imagecode) {
|
||||
include_once(e_HANDLER.'secure_img_handler.php');
|
||||
$sec_img = new secure_image;
|
||||
$fs_sec_code_img = '
|
||||
<div class="H20"><!-- --></div>
|
||||
<div class="secure secure-img">
|
||||
'.$sec_img->r_image().'
|
||||
</div>
|
||||
<div class="secure secure-field center">
|
||||
<input type="hidden" name="rand_num" value="'.$sec_img->random_number.'" />
|
||||
<input class="custom-loginc verify" type="text" name="code_verify" size="15" maxlength="20" />
|
||||
</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
';
|
||||
}
|
||||
$err = '';
|
||||
|
||||
if (LOGINMESSAGE != '') {
|
||||
$err = '
|
||||
<div class="login-message">
|
||||
<img class="f-left" src="'.THEME_ABS.'images/messagebox_critical.png" alt="Error" />
|
||||
<div style="margin-left: 40px;">'.LOGINMESSAGE.'</div>
|
||||
</div>
|
||||
<div class="clear H10"></div>
|
||||
';
|
||||
}
|
||||
|
||||
switch($custom_query[0])
|
||||
{
|
||||
case "login":
|
||||
case "login noprofile":
|
||||
include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php");
|
||||
|
||||
|
||||
if(ADMIN == TRUE)
|
||||
{
|
||||
$fs_admin = '
|
||||
<a class="logincn admin" href="'.e_ADMIN_ABS.'admin.php">'.LOGIN_MENU_L11.'</a> |
|
||||
';
|
||||
}
|
||||
if($custom_query[0] != "login noprofile")
|
||||
{
|
||||
$fs_profile = '
|
||||
<a class="logincn profile" href="'.SITEURL.'user.php?id.'.USERID.'">'.LOGIN_MENU_L13.'</a> |
|
||||
';
|
||||
}
|
||||
$fs_settings = '
|
||||
<a class="logincn usersettings" href="' . SITEURL . 'usersettings.php">'.LOGIN_MENU_L12.'</a> |
|
||||
';
|
||||
$fs_logout = '
|
||||
<a class="logincn logout" href="'.SITEURL.'index.php?logout">'.LOGIN_MENU_L8.'</a>
|
||||
';
|
||||
|
||||
if (USER == TRUE){
|
||||
$ret .= '
|
||||
<h3 class="prologin">'.LOGIN_MENU_L5.' '.USERNAME.'</h3>
|
||||
<div class="H5"></div>
|
||||
'.$fs_admin.'
|
||||
'.$fs_profile.'
|
||||
'.$fs_settings.'
|
||||
'.$fs_logout.'
|
||||
';
|
||||
} else {
|
||||
if($pref['user_reg'])
|
||||
{
|
||||
$fs_signup = '
|
||||
<a class="custom-loginc-link custom-signup f-right" href="'.e_SIGNUP.'">'.LOGIN_MENU_L3.'</a>
|
||||
';
|
||||
}
|
||||
if ($pref['user_tracking'] == "cookie")
|
||||
{
|
||||
$fs_autologin = "<input type='checkbox' name='autologin' value='1' />".LOGIN_MENU_L6." \n";
|
||||
}
|
||||
|
||||
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
||||
{
|
||||
$fs_pw = "<a class='custom-loginc-link custom-fpw' href='".SITEURL."fpw.php' title=\"".LOGIN_MENU_L4."\">".LOGIN_MENU_L4."</a>";
|
||||
}
|
||||
|
||||
$user_txt = str_replace(':','',LOGIN_MENU_L1);
|
||||
$pass_txt = str_replace(':','',LOGIN_MENU_L2);
|
||||
|
||||
$ret .= '
|
||||
<form method="post" action="'.e_SELF.'">
|
||||
<div id="login-wrapper" style="display: '.(($err && $err != '') ? 'block' : 'none').'">
|
||||
<div id="login-close" onclick="$(\'login-wrapper\').hide();">
|
||||
<img src="'.THEME_ABS.'images/p19_login_close.png" alt="Close" />
|
||||
</div>
|
||||
<div class="box-TC">
|
||||
<div class="cont">
|
||||
'.$err.'
|
||||
<div class="labels f-left">
|
||||
<div class="label right">'.$user_txt.'</div>
|
||||
<div class="H20"><!-- --></div>
|
||||
<div class="label right">'.$pass_txt.'</div>
|
||||
</div>
|
||||
<div class="fields f-right">
|
||||
<div class="user-field center">
|
||||
<input class="custom-loginc user" type="text" name="username" size="20" maxlength="20" />
|
||||
</div>
|
||||
<div class="H20"><!-- --></div>
|
||||
<div class="pass-field center">
|
||||
<input class="custom-loginc pass" type="password" name="userpass" size="15" maxlength="20" />
|
||||
</div>
|
||||
|
||||
'.$fs_sec_code_img.'
|
||||
<div class="autologin">
|
||||
'.$fs_autologin.'
|
||||
</div>
|
||||
<div class="buttons">
|
||||
|
||||
<button class="button f-right" type="submit" name="userlogin" value="'.LOGIN_MENU_L28.'" ><span>'.LOGIN_MENU_L28.'</span></button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
|
||||
|
||||
<div class="fpw-cont">'.$fs_pw.'</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-BC">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
';
|
||||
|
||||
}
|
||||
return $ret;
|
||||
break;
|
||||
|
||||
}
|
313
tests/_data/testcore/fs_functions.php
Normal file
@ -0,0 +1,313 @@
|
||||
<?php
|
||||
global $sql, $pref;
|
||||
//---------------------------------------------------------------------------------------
|
||||
function hilite($link,$enabled=''){
|
||||
global $PLUGINS_DIRECTORY,$tp,$pref;
|
||||
if(!$enabled){ return FALSE; }
|
||||
|
||||
$link = $tp->replaceConstants($link,TRUE);
|
||||
$tmp = explode("?",$link);
|
||||
$link_qry = (isset($tmp[1])) ? $tmp[1] : "";
|
||||
$link_slf = (isset($tmp[0])) ? $tmp[0] : "";
|
||||
$link_pge = basename($link_slf);
|
||||
$link_match = strpos(e_SELF,$tmp[0]);
|
||||
|
||||
if(e_MENU == "debug" && getperms('0')) {
|
||||
echo "<br />link= ".$link;
|
||||
echo "<br />link_q= ".$link_qry;
|
||||
echo "<br />url= ".e_PAGE;
|
||||
echo "<br />url_query= ".e_QUERY."<br />";
|
||||
}
|
||||
|
||||
// ----------- highlight overriding - set the link matching in the page itself.
|
||||
|
||||
if(defined("HILITE")) {
|
||||
if(strpos($link,HILITE)) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --------------- highlighting for 'HOME'. ----------------
|
||||
global $pref;
|
||||
list($fp,$fp_q) = explode("?",$pref['frontpage']['all']."?");
|
||||
if(strpos(e_SELF,"/".$pref['frontpage']['all'])!== FALSE && $fp_q == $tmp[1] && $link == e_HTTP."index.php"){
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// --------------- highlighting for plugins. ----------------
|
||||
if(stristr($link, $PLUGINS_DIRECTORY) !== FALSE && stristr($link, "custompages") === FALSE){
|
||||
|
||||
if($link_qry)
|
||||
{ // plugin links with queries
|
||||
$subq = explode("?",$link);
|
||||
if(strpos(e_SELF,$subq[0]) && e_QUERY == $subq[1]){
|
||||
return TRUE;
|
||||
}else{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{ // plugin links without queries
|
||||
$link = str_replace("../", "", $link);
|
||||
if(stristr(dirname(e_SELF), dirname($link)) !== FALSE){
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// --------------- highlight for news items.----------------
|
||||
// eg. news.php, news.php?list.1 or news.php?cat.2 etc
|
||||
if(substr(basename($link),0,8) == "news.php")
|
||||
{
|
||||
|
||||
if (strpos($link, "news.php?") !== FALSE && strpos(e_SELF,"/news.php")!==FALSE) {
|
||||
|
||||
$lnk = explode(".",$link_qry); // link queries.
|
||||
$qry = explode(".",e_QUERY); // current page queries.
|
||||
|
||||
if($qry[0] == "item")
|
||||
{
|
||||
return ($qry[2] == $lnk[1]) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
if($qry[0] == "all" && $lnk[0] == "all")
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if($lnk[0] == $qry[0] && $lnk[1] == $qry[1])
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if($qry[1] == "list" && $lnk[0] == "list" && $lnk[1] == $qry[2])
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
elseif (!e_QUERY && e_PAGE == "news.php")
|
||||
{
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
||||
}
|
||||
// --------------- highlight for Custom Pages.----------------
|
||||
// eg. page.php?1
|
||||
|
||||
if (strpos($link, "page.php?") !== FALSE && strpos(e_SELF,"/page.php")) {
|
||||
list($custom,$page) = explode(".",$link_qry);
|
||||
list($q_custom,$q_page) = explode(".",e_QUERY);
|
||||
if($custom == $q_custom){
|
||||
return TRUE;
|
||||
}else{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
// --------------- highlight default ----------------
|
||||
if(strpos($link, "?") !== FALSE){
|
||||
|
||||
$thelink = str_replace("../", "", $link);
|
||||
if((strpos(e_SELF,$thelink) !== false) && (strpos(e_QUERY,$link_qry) !== false)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if(!preg_match("/all|item|cat|list/", e_QUERY) && (strpos(e_SELF, str_replace("../", "",$link)) !== false)){
|
||||
return true;
|
||||
}
|
||||
|
||||
if((!$link_qry && !e_QUERY) && (strpos(e_SELF,$link) !== FALSE)){
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if(($link_slf == e_SELF && !link_qry) || (e_QUERY && strpos(e_SELF."?".e_QUERY,$link)!== FALSE) ){
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
// ----------------------------------------------------
|
||||
|
||||
function adnav_cat($cat_title, $cat_link, $cat_id=FALSE, $cat_open=FALSE) {
|
||||
global $tp;
|
||||
|
||||
$cat_link = (strpos($cat_link, '://') === FALSE && strpos($cat_link, 'mailto:') !== 0 ? e_HTTP.$cat_link : $cat_link);
|
||||
|
||||
if ($cat_open == 4 || $cat_open == 5){
|
||||
$dimen = ($cat_open == 4) ? "600,400" : "800,600";
|
||||
$href = " href=\"javascript:open_window('".$cat_link."',".$dimen.")\"";
|
||||
} else {
|
||||
$href = "href='".$cat_link."'";
|
||||
}
|
||||
|
||||
$text = "<a ".$href." ";
|
||||
|
||||
if ($cat_open == 1){
|
||||
$text .= " rel='external' ";
|
||||
}
|
||||
|
||||
if ($cat_id) {
|
||||
$text .= ">".$tp->toHTML($cat_title,"","defs, no_hook")."</a>";
|
||||
} else {
|
||||
$text .= ">".$tp->toHTML($cat_title,"","defs, no_hook")."</a>";
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
function render_sub($linklist, $id) {
|
||||
$text = "";
|
||||
foreach ($linklist['sub_'.$id] as $sub) {
|
||||
|
||||
// Filter title for backwards compatibility ---->
|
||||
if(substr($sub['link_name'],0,8) == "submenu.") {
|
||||
$tmp = explode(".",$sub['link_name']);
|
||||
$subname = $tmp[2];
|
||||
} else {
|
||||
$subname = $sub['link_name'];
|
||||
}
|
||||
|
||||
if (isset($linklist['sub_'.$sub['link_id']])) { // Has Children.
|
||||
$sub_ids[] = $sub['link_id'];
|
||||
|
||||
$text .= "
|
||||
<li>".adnav_main($subname, $sub['link_url'], $sub['link_id'],$sub['link_open']);
|
||||
|
||||
$text .= "
|
||||
<ul>";
|
||||
|
||||
$temp = $linklist['sub_'.$sub['link_id']];
|
||||
foreach ($temp as $bla) {
|
||||
if (isset($linklist['sub_'.$bla['link_id']])) {
|
||||
$text .= "
|
||||
<li>".adnav_main($bla['link_name'], $bla['link_url'], $bla['link_id'], $bla['link_open']);
|
||||
$text .= "
|
||||
<ul>";
|
||||
$text .= render_sub($linklist, $bla['link_id']);
|
||||
$text .= "
|
||||
</ul></li>";
|
||||
} else {
|
||||
$text .= "
|
||||
<li>".adnav_main($bla['link_name'], $bla['link_url'], null, $bla['link_open']).'</li>';
|
||||
}
|
||||
}
|
||||
|
||||
$text .= "
|
||||
</ul>";
|
||||
$text .= "
|
||||
</li>";
|
||||
} else {
|
||||
$text .= "
|
||||
<li>".adnav_main($subname, $sub['link_url'], null, $sub['link_open'])."</li>";
|
||||
}
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
function adnav_main($cat_title, $cat_link, $cat_id=FALSE, $cat_open=FALSE) {
|
||||
global $tp;
|
||||
|
||||
$cat_link = (strpos($cat_link, '://') === FALSE) ? e_HTTP.$cat_link : $cat_link;
|
||||
$cat_link = $tp->replaceConstants($cat_link,TRUE);
|
||||
|
||||
if ($cat_open == 4 || $cat_open == 5){
|
||||
$dimen = ($cat_open == 4) ? "600,400" : "800,600";
|
||||
$href = " href=\"javascript:open_window('".$cat_link."',".$dimen.")\"";
|
||||
} else {
|
||||
$href = "href='".$cat_link."'";
|
||||
}
|
||||
|
||||
$text = "<a ".$href." ";
|
||||
|
||||
if ($cat_id) {
|
||||
$text .= "class='sub'";
|
||||
}
|
||||
if ($cat_open == 1) {
|
||||
$text .= " rel='external' ";
|
||||
}
|
||||
$text .= ">".$tp->toHTML($cat_title,"","defs, no_hook")."</a>";
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
$text .= "
|
||||
<div class='menuBar'>
|
||||
<ul id='nav'>";
|
||||
|
||||
if (defined('FS_START_SEPARATOR') && FS_START_SEPARATOR != false) {
|
||||
$text .= "
|
||||
<li class='fs-linkSep'>".FS_LINK_SEPARATOR."</li>";
|
||||
}
|
||||
|
||||
// Setup Parent/Child Arrays ---->
|
||||
|
||||
$link_total = $sql->db_Select("links", "*", "link_class IN (".USERCLASS_LIST.") AND link_category=1 ORDER BY link_order ASC");
|
||||
while ($row = $sql->db_Fetch()) {
|
||||
if($row['link_parent'] == 0) {
|
||||
$linklist['head_menu'][] = $row;
|
||||
$parents[] = $row['link_id'];
|
||||
} else {
|
||||
$pid = $row['link_parent'];
|
||||
$linklist['sub_'.$pid][] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Loops thru parents.--------->
|
||||
global $tp;
|
||||
$sepBr = 1;
|
||||
$sepCount = count($linklist['head_menu']);
|
||||
foreach ($linklist['head_menu'] as $lk) {
|
||||
$lk['link_url'] = $tp -> replaceConstants($lk['link_url'],TRUE);
|
||||
$main_linkid = $lk['link_id'];
|
||||
|
||||
//if (hilite($lk['link_url'],TRUE)) { echo $lk['link_name']; }
|
||||
if (hilite($lk['link_url'],TRUE)) { $hilite_style = " id='active'"; } else { $hilite_style = ""; }
|
||||
|
||||
if (isset($linklist['sub_'.$main_linkid])) { // Has Children.
|
||||
$text .= "
|
||||
<li".$hilite_style." class='sub'>".adnav_cat($lk['link_name'], e_SELF.'?'.e_QUERY.'#', $main_linkid)."";
|
||||
|
||||
$text .= "
|
||||
<ul class='sub'>".render_sub($linklist, $main_linkid)."
|
||||
</ul>
|
||||
</li>";
|
||||
|
||||
} else {
|
||||
|
||||
// Display Parent only.
|
||||
$text .= "
|
||||
<li".$hilite_style.">".adnav_cat($lk['link_name'], $lk['link_url'], FALSE, $lk['link_open'])."</li>";
|
||||
}
|
||||
|
||||
if (defined('FS_LINK_SEPARATOR')) {
|
||||
if ($sepBr < $sepCount) {
|
||||
$text .= "
|
||||
<li class='fs-linkSep'>".FS_LINK_SEPARATOR."</li>";
|
||||
}
|
||||
}
|
||||
|
||||
$sepBr++;
|
||||
}
|
||||
|
||||
if (defined('FS_END_SEPARATOR') && FS_END_SEPARATOR != false) {
|
||||
$text .= "
|
||||
<li class='fs-linkSep'>".FS_LINK_SEPARATOR."</li>";
|
||||
}
|
||||
|
||||
$text .= "
|
||||
</ul>
|
||||
</div>
|
||||
";
|
||||
|
||||
$text .= '
|
||||
|
||||
';
|
||||
?>
|
59
tests/_data/testcore/fs_login.sc
Normal file
@ -0,0 +1,59 @@
|
||||
global $pref;
|
||||
if(!USER){
|
||||
$loginsc = '
|
||||
<div class="fs_c_login">
|
||||
<div class="singin">
|
||||
<a href="'.e_HTTP.'login.php">'.LAN_THEME_SING.'</a>
|
||||
</div>
|
||||
<div class="register">
|
||||
<div class="regl"></div>
|
||||
<div class="regr"></div>
|
||||
<div class="regm">
|
||||
<div class="register_text">
|
||||
<a href="'.e_HTTP.'signup.php">'.LAN_THEME_REG.'</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
return $loginsc;
|
||||
}
|
||||
|
||||
|
||||
if (USER == TRUE || ADMIN == TRUE) {
|
||||
$loginsc = '
|
||||
<div class="fs_c_login2">
|
||||
<span class="fs_welcome">
|
||||
'.LAN_THEME_23.' '.USERNAME.'
|
||||
</span>
|
||||
';
|
||||
|
||||
$loginsc .= '
|
||||
';
|
||||
if (ADMIN == TRUE) {
|
||||
$loginsc .= '
|
||||
<span class="fs_login_links_b">
|
||||
<a href="'.e_ADMIN_ABS.'admin.php">'.LAN_THEME_24.'</a>
|
||||
';
|
||||
}
|
||||
$loginsc .= '
|
||||
<a href="'.e_HTTP.'user.php?id.'.USERID.'">'.LAN_THEME_27.'</a>
|
||||
<a href="'.e_HTTP.'usersettings.php">'.LAN_THEME_26.'</a>
|
||||
'.(isset($pref['plug_installed']['list_new']) ? '<a href="'.e_PLUGIN_ABS.'list_new/list.php?new">'.LAN_THEME_29.'</a>' : '').'
|
||||
</span>
|
||||
<span class="logout">
|
||||
<span class="logm">
|
||||
<span class="register_text">
|
||||
<a href="'.e_HTTP.'news.php?logout">'.LAN_THEME_28.'</a>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
';
|
||||
|
||||
$loginsc .= '
|
||||
';
|
||||
return $loginsc;
|
||||
|
||||
|
||||
}
|
3
tests/_data/testcore/fs_sitelinks.sc
Normal file
@ -0,0 +1,3 @@
|
||||
include_once(THEME.'fs_functions.php');
|
||||
|
||||
return $text;
|
BIN
tests/_data/testcore/images/admin_nav_bkg.png
Normal file
After Width: | Height: | Size: 203 B |
BIN
tests/_data/testcore/images/adminbg.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
tests/_data/testcore/images/adminnavbg.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
tests/_data/testcore/images/admintopbg.png
Normal file
After Width: | Height: | Size: 267 B |
BIN
tests/_data/testcore/images/bottom_xhtml.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
tests/_data/testcore/images/bullet.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
tests/_data/testcore/images/bullet2.gif
Normal file
After Width: | Height: | Size: 197 B |
BIN
tests/_data/testcore/images/contentbg.png
Normal file
After Width: | Height: | Size: 342 B |
BIN
tests/_data/testcore/images/e_adminlogo.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
tests/_data/testcore/images/e_logo.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
tests/_data/testcore/images/e_logo_small.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
tests/_data/testcore/images/file.png
Normal file
After Width: | Height: | Size: 290 B |
BIN
tests/_data/testcore/images/footerbor.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
tests/_data/testcore/images/headerbg.png
Normal file
After Width: | Height: | Size: 284 B |
0
tests/_data/testcore/images/index.html
Normal file
BIN
tests/_data/testcore/images/login_logo.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
tests/_data/testcore/images/mail.png
Normal file
After Width: | Height: | Size: 276 B |
BIN
tests/_data/testcore/images/mainbg.png
Normal file
After Width: | Height: | Size: 456 B |
BIN
tests/_data/testcore/images/nav_hover.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
tests/_data/testcore/images/nav_sep.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
tests/_data/testcore/images/navbg.png
Normal file
After Width: | Height: | Size: 229 B |
BIN
tests/_data/testcore/images/newsedit.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
tests/_data/testcore/images/pdf.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
tests/_data/testcore/images/print.png
Normal file
After Width: | Height: | Size: 299 B |
BIN
tests/_data/testcore/images/regl.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
tests/_data/testcore/images/regm.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
tests/_data/testcore/images/regr.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
tests/_data/testcore/images/rightbox_title_bg.png
Normal file
After Width: | Height: | Size: 218 B |
BIN
tests/_data/testcore/images/search-icon.png
Normal file
After Width: | Height: | Size: 774 B |
BIN
tests/_data/testcore/images/titlebg.png
Normal file
After Width: | Height: | Size: 219 B |
0
tests/_data/testcore/index.html
Normal file
0
tests/_data/testcore/js/index.html
Normal file
25
tests/_data/testcore/js/menu.js
Normal file
@ -0,0 +1,25 @@
|
||||
sfHover = function() {
|
||||
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
|
||||
for (var i=0; i<sfEls.length; i++) {
|
||||
sfEls[i].onmouseover=function() {
|
||||
if(this.className != 'fs-linkSep') {
|
||||
if(this.className == 'sub') {
|
||||
this.className+="-sfhover";
|
||||
|
||||
} else {
|
||||
this.className+=" sfhover";
|
||||
}
|
||||
}
|
||||
}
|
||||
sfEls[i].onmouseout=function() {
|
||||
if(this.className == 'sub-sfhover') {
|
||||
this.className=this.className.replace(new RegExp("-sfhover\\b"), "");
|
||||
|
||||
} else {
|
||||
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (window.attachEvent) window.attachEvent("onload", sfHover);
|
||||
|
33
tests/_data/testcore/languages/English.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
define('LAN_THEME_1', 'e107 core theme by <a href="http://e107.org" title="e107 CMS" rel="external">e107 Inc.</a>');
|
||||
define('LAN_THEME_2', 'Comments: ');
|
||||
define('LAN_THEME_3', 'Comments are turned off for this item');
|
||||
define('LAN_THEME_4', 'Read the full story');
|
||||
define('LAN_THEME_5', 'Trackbacks: ');
|
||||
define('LAN_THEME_8', 'in');
|
||||
define('LAN_THEME_9', 'by');
|
||||
define("LAN_THEME_11", "Latest news");
|
||||
define("LAN_THEME_12", "E-mail to a friend");
|
||||
define("LAN_THEME_13", "Create PDF file");
|
||||
define("LAN_THEME_14", "Print");
|
||||
define("LAN_THEME_15", "Edit");
|
||||
define('LAN_THEME_17', 'Login');
|
||||
define('LAN_THEME_18', 'Username');
|
||||
define('LAN_THEME_19', 'Password');
|
||||
define('LAN_THEME_20', 'Register');
|
||||
define('LAN_THEME_21', 'Login');
|
||||
define('LAN_THEME_22', 'Forgot password?');
|
||||
define('LAN_THEME_23', 'Welcome');
|
||||
define('LAN_THEME_24', 'Admin');
|
||||
define('LAN_THEME_26', 'Settings');
|
||||
define('LAN_THEME_27', 'Profile');
|
||||
define('LAN_THEME_28', 'Logout');
|
||||
define('LAN_THEME_29', 'List new');
|
||||
define('LAN_THEME_SING', 'Login');
|
||||
define('LAN_THEME_REG', 'Register');
|
||||
define("LAN_SEARCH", "Search");
|
||||
define("LAN_SEARCH_SUB", "Go");
|
||||
define('LAN_THEME_SHARE', 'Share this');
|
||||
define('LAN_THEME_VER', 'e107 v.');
|
||||
define("CM_L13", "by");
|
||||
?>
|
0
tests/_data/testcore/languages/index.html
Normal file
94
tests/_data/testcore/login_template.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
// $Id: login_template.php 11346 2010-02-17 18:56:14Z secretr $
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// ##### LOGIN HEADER TABLE -----------------------------------------------------------------------
|
||||
if(!isset($LOGIN_TABLE_HEADER))
|
||||
{
|
||||
$LOGIN_TABLE_HEADER = "
|
||||
<div style='width:100%;text-align:center; margin-left: auto;margin-right: auto; margin-top: 0px'><br />
|
||||
<div style='text-align:center;width:70%;margin-left: auto;margin-right: auto'>
|
||||
".(file_exists(THEME."images/login_logo.png") ? "<img src='".THEME_ABS."images/login_logo.png' alt='' />" : "<img src='".e_IMAGE."logo.png' alt='' />" );
|
||||
}
|
||||
|
||||
// ##### LOGIN TABLE -----------------------------------------------------------------------------
|
||||
if(!isset($LOGIN_TABLE))
|
||||
{
|
||||
$LOGIN_TABLE = '';
|
||||
if($LOGIN_TABLE_LOGINMESSAGE != '')
|
||||
{
|
||||
$LOGIN_TABLE .= "<div style='text-align:center'>{LOGIN_TABLE_LOGINMESSAGE}</div>";
|
||||
}
|
||||
if (!isset($LOGIN_TABLE_SECIMG_SECIMG))
|
||||
{
|
||||
$LOGIN_TABLE_SECIMG_SECIMG = FALSE;
|
||||
}
|
||||
$LOGIN_TABLE .= "
|
||||
<div style='text-align:center;'>
|
||||
".$rs -> form_open("post", e_SELF)."
|
||||
<table style='width:60%' >
|
||||
<tr>
|
||||
<td style='text-align:center; font-weight: bold; padding: 20px 0 30px 0; font-zise: 15px' colspan='3'>
|
||||
".LAN_LOGIN_4."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title_clean' style='text-align:left; width: 40%'>
|
||||
".LAN_LOGIN_1."
|
||||
</td>
|
||||
<td style='text-align:right; width: 40%'>
|
||||
{LOGIN_TABLE_USERNAME}
|
||||
</td>
|
||||
<td rowspan='".($LOGIN_TABLE_SECIMG_SECIMG ? 3 : 2)."' style='width: 20%; vertical-align: middle; margin-left: auto; margin-right: auto; text-align: center;'>
|
||||
".(file_exists(THEME."images/password.png") ? "<img src='".THEME_ABS."images/password.png' alt='' />" : "<img src='".e_IMAGE."generic/".IMODE."/password.png' alt='' />" )."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title_clean' style='text-align:left;'>
|
||||
".LAN_LOGIN_2."
|
||||
</td>
|
||||
<td style='text-align:right; width: 40%'>
|
||||
{LOGIN_TABLE_PASSWORD}
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
if($LOGIN_TABLE_SECIMG_SECIMG){
|
||||
$LOGIN_TABLE .= "
|
||||
<tr>
|
||||
<td>
|
||||
{LOGIN_TABLE_SECIMG_LAN}
|
||||
</td>
|
||||
<td class='forumheader3'>
|
||||
{LOGIN_TABLE_SECIMG_HIDDEN} {LOGIN_TABLE_SECIMG_SECIMG} {LOGIN_TABLE_SECIMG_TEXTBOC}
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
$LOGIN_TABLE .= "
|
||||
<tr>
|
||||
<td style='text-align:center; padding: 10px 0 0 0;' colspan='3'>
|
||||
{LOGIN_TABLE_AUTOLOGIN}<span class='smalltext' style='padding: 0 5px 5px 5px;'>{LOGIN_TABLE_AUTOLOGIN_LAN}</span><br /><br />{LOGIN_TABLE_SUBMIT}
|
||||
</td>
|
||||
</tr>
|
||||
</table>".
|
||||
$rs -> form_close()."</div>";
|
||||
}
|
||||
// ##### ------------------------------------------------------------------------------------------
|
||||
|
||||
// ##### LOGIN TABLE FOOTER -----------------------------------------------------------------------
|
||||
if(!isset($LOGIN_TABLE_FOOTER))
|
||||
{
|
||||
$LOGIN_TABLE_FOOTER = "
|
||||
<div style='width:70%;margin-right:auto;margin-left:auto; font-weight: bold;'>
|
||||
<div style='text-align:center'><br />
|
||||
{LOGIN_TABLE_FOOTER_USERREG} <a href='".e_BASE."fpw.php'>".LAN_LOGIN_12."</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>";
|
||||
}
|
||||
// ##### ------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
?>
|
BIN
tests/_data/testcore/preview.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
tests/_data/testcore/source/admin_mainadmin_moderator.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
tests/_data/testcore/source/forum_images.png
Normal file
After Width: | Height: | Size: 56 KiB |
0
tests/_data/testcore/source/index.html
Normal file
BIN
tests/_data/testcore/source/reply_new_thread.png
Normal file
After Width: | Height: | Size: 51 KiB |
1315
tests/_data/testcore/style.css
Normal file
556
tests/_data/testcore/theme.php
Normal file
@ -0,0 +1,556 @@
|
||||
<?php
|
||||
if(!defined('e107_INIT')){ exit; }
|
||||
// [multilanguage]
|
||||
include_lan(e_THEME.'testcore/languages/'.e_LANGUAGE.'.php');
|
||||
@include_lan(e_THEME.'testcore/languages/English.php');
|
||||
// [theme information]
|
||||
$themename = 'e107 core';
|
||||
$themeversion = ' 1.0';
|
||||
$themeauthor = 'e107 Inc.';
|
||||
$themeemail = 'themes@e107.org';
|
||||
$themewebsite = 'http://www.e107.org';
|
||||
$themedate = '12/2011';
|
||||
$themeinfo = '';
|
||||
$xhtmlcompliant = TRUE;
|
||||
$csscompliant = TRUE;
|
||||
define('IMODE', 'lite');
|
||||
define('STANDARDS_MODE', TRUE);
|
||||
define('USER_WIDTH','width: 100%');
|
||||
define("NEXTPREV_NOSTYLE", TRUE);
|
||||
define("FS_LINK_SEPARATOR",'<div class="fs-linkSep"><!-- --></div>');
|
||||
define("FS_START_SEPARATOR", FALSE);
|
||||
define("FS_END_SEPARATOR", FALSE);
|
||||
define("ADLINK_COLS",5);
|
||||
$register_sc[]='FS_SITELINKS';
|
||||
$register_sc[]='FS_LOGIN';
|
||||
$register_sc[]='ADMIN_ALT_NAV';
|
||||
|
||||
function theme_head() {
|
||||
return '
|
||||
<!--[if lte IE 7]>
|
||||
<script type="text/javascript" src="'.THEME_ABS.'js/menu.js"></script>
|
||||
<![endif]-->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?load=effects" type="text/javascript"></script>
|
||||
';
|
||||
}
|
||||
// [layout]
|
||||
$layout = '_default';
|
||||
$HEADER = '
|
||||
<div class="wrapper">
|
||||
<div class="headerbg">
|
||||
<div class="headertop">
|
||||
<div class="sitelogo">
|
||||
<div class="ml20">
|
||||
<a href="'.e_HTTP.'index.php" title="{SITENAME}">{LOGO}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner">
|
||||
<div class="mr20">
|
||||
{BANNER=campaign_one}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="headerbottom">
|
||||
<div class="fs_login">
|
||||
{FS_LOGIN}
|
||||
</div>
|
||||
<div class="sitesearch">
|
||||
{SEARCH}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
{FS_SITELINKS}
|
||||
</div>
|
||||
<div class="maincontentall">
|
||||
<div class="topcontentall clearfix">
|
||||
<div class="rightcolall">
|
||||
{SETSTYLE=flatlinks}
|
||||
{LINKSTYLE=flatlinks}
|
||||
{SITELINKS=flat:2}
|
||||
{SETSTYLE=bottmomenus}
|
||||
{MENU=1}
|
||||
</div>
|
||||
<div class="leftcol">
|
||||
{MENU=5}
|
||||
';
|
||||
$FOOTER = '
|
||||
{MENU=6}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="bottmomenus">
|
||||
<div class="bmenul">
|
||||
{MENU=2}
|
||||
</div>
|
||||
<div class="bmenur">
|
||||
{MENU=4}
|
||||
</div>
|
||||
<div class="bmenum">
|
||||
{MENU=3}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="footerbor"></div>
|
||||
<div class="footer">
|
||||
<div class="fmenul">
|
||||
<div>
|
||||
<a href="http://validator.w3.org/check?uri=referer" title=""><img src="'.THEME_ABS.'images/bottom_xhtml.png" alt="" style="margin-top: 10px;" /></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fmenur smalltext">
|
||||
{SITEDISCLAIMER}
|
||||
</div>
|
||||
<div class="fmenum">
|
||||
<a href="http://www.e107.org" title="e107"><img src="'.THEME_ABS.'images/e_logo_small.png" alt="" /></a>
|
||||
<br />{SITENAME}
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerlinks">
|
||||
{LINKSTYLE=bottom}
|
||||
{SITELINKS=flat:3}
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$CUSTOMHEADER['HOME'] = '
|
||||
<div class="wrapper">
|
||||
<div class="headerbg">
|
||||
<div class="headertop">
|
||||
<div class="sitelogo">
|
||||
<div class="ml20">
|
||||
<a href="'.e_HTTP.'index.php" title="{SITENAME}">{LOGO}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner">
|
||||
<div class="mr20">
|
||||
{BANNER=campaign_one}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="headerbottom">
|
||||
<div class="fs_login">
|
||||
{FS_LOGIN}
|
||||
</div>
|
||||
<div class="sitesearch">
|
||||
{SEARCH}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
{FS_SITELINKS}
|
||||
</div>
|
||||
<div class="maincontent">
|
||||
<div class="topcontent clearfix">
|
||||
{SETSTYLE=wm}
|
||||
{WMESSAGE}
|
||||
|
||||
';
|
||||
$CUSTOMFOOTER['HOME'] = '
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="bottmomenus">
|
||||
<div class="bmenul">
|
||||
{SETSTYLE=bottmomenus}
|
||||
{MENU=2}
|
||||
</div>
|
||||
<div class="bmenur">
|
||||
{MENU=4}
|
||||
</div>
|
||||
<div class="bmenum">
|
||||
{MENU=3}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="footerbor"></div>
|
||||
<div class="footer">
|
||||
<div class="fmenul">
|
||||
<div>
|
||||
<a href="http://validator.w3.org/check?uri=referer" title=""><img src="'.THEME_ABS.'images/bottom_xhtml.png" alt="" style="margin-top: 10px;" /></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fmenur smalltext">
|
||||
{SITEDISCLAIMER}
|
||||
</div>
|
||||
<div class="fmenum">
|
||||
<a href="http://www.e107.org" title="e107"><img src="'.THEME_ABS.'images/e_logo_small.png" alt="" /></a>
|
||||
<br />{SITENAME}
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerlinks">
|
||||
{LINKSTYLE=bottom}
|
||||
{SITELINKS=flat:3}
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$CUSTOMPAGES['HOME'] = SITEURL.'index.php';
|
||||
$CUSTOMHEADER['FULL'] = '
|
||||
<div class="wrapper_full">
|
||||
<div class="headerbg">
|
||||
<div class="headertop">
|
||||
<div class="sitelogo">
|
||||
<div class="ml20">
|
||||
<a href="'.e_HTTP.'index.php" title="{SITENAME}">{LOGO}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner">
|
||||
<div class="mr20">
|
||||
{BANNER=campaign_one}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="headerbottom">
|
||||
<div class="fs_login">
|
||||
{FS_LOGIN}
|
||||
</div>
|
||||
<div class="sitesearch">
|
||||
{SEARCH}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navigation">
|
||||
{FS_SITELINKS}
|
||||
</div>
|
||||
<div class="maincontent">
|
||||
<div class="fullside">
|
||||
{SETSTYLE=full}
|
||||
';
|
||||
$CUSTOMFOOTER['FULL'] = '
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="footerborfull"></div>
|
||||
<div class="footer">
|
||||
<div class="fmenul">
|
||||
<div>
|
||||
<a href="http://validator.w3.org/check?uri=referer" title=""><img src="'.THEME_ABS.'images/bottom_xhtml.png" alt="" style="margin-top: 10px;" /></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fmenur smalltext">
|
||||
{SITEDISCLAIMER}
|
||||
</div>
|
||||
<div class="fmenum">
|
||||
<a href="http://www.e107.org" title="e107"><img src="'.THEME_ABS.'images/e_logo_small.png" alt="" /></a>
|
||||
<br />{SITENAME}
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerlinks">
|
||||
{LINKSTYLE=bottom}
|
||||
{SITELINKS=flat:3}
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$CUSTOMPAGES['FULL'] = 'forum/ ';
|
||||
// [tablestyle]
|
||||
function tablestyle($caption, $text, $mode=''){
|
||||
global $style;
|
||||
|
||||
if($mode == 'admin_update')
|
||||
{
|
||||
echo '
|
||||
<span class="admin_update">
|
||||
'.$caption.'
|
||||
</span>
|
||||
<span class="hover" style="display:none">
|
||||
'.$text.'
|
||||
</span>
|
||||
';
|
||||
return;
|
||||
}
|
||||
|
||||
switch ($style) {
|
||||
|
||||
case 'wm':
|
||||
echo '
|
||||
<div class="topcontent_entry clearfix">
|
||||
'.$text.'
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
case 'flatlinks':
|
||||
echo '
|
||||
<div class="styledmenu">
|
||||
<div class="13">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
case 'full':
|
||||
echo '
|
||||
<div class="fullcontent clearfix">
|
||||
<div class="fullcontent_title">
|
||||
'.$caption.'
|
||||
</div>
|
||||
<div class="fullcontent_entry">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
case 'rightcol':
|
||||
echo '
|
||||
<div class="rightbox">
|
||||
<div class="rightbox_title">
|
||||
'.$caption.'
|
||||
</div>
|
||||
<div class="rightbox_text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
case 'leftcol':
|
||||
echo '
|
||||
<div class="leftbox">
|
||||
<div class="leftbox_title_bg">
|
||||
<div class="leftbox_title">
|
||||
'.$caption.'
|
||||
</div>
|
||||
</div>
|
||||
<div class="leftbox_text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
case 'bottmomenus':
|
||||
echo '
|
||||
<div class="bottmomenusbox">
|
||||
<div class="bottmomenus_title">
|
||||
'.$caption.'
|
||||
</div>
|
||||
<div class="bottmomenus_text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
default:
|
||||
echo '
|
||||
<div class="bottmomenusbox">
|
||||
<div class="title_clean">
|
||||
'.$caption.'
|
||||
</div>
|
||||
<div class="bottmomenus_text">
|
||||
'.$text.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
break;
|
||||
}
|
||||
}
|
||||
define('THEME_DISCLAIMER', '<br /><i>'.LAN_THEME_1.'</i>');
|
||||
define('ICONSTYLE', 'float: left; border:0');
|
||||
define('COMMENTLINK', LAN_THEME_2);
|
||||
define('COMMENTOFFSTRING', LAN_THEME_3);
|
||||
define('PRE_EXTENDEDSTRING', '<div class="readmore">');
|
||||
define('EXTENDEDSTRING', LAN_THEME_4);
|
||||
define('POST_EXTENDEDSTRING', '</div>');
|
||||
define('TRACKBACKSTRING', LAN_THEME_5);
|
||||
define('TRACKBACKBEFORESTRING', ' :: ');
|
||||
define('ICONMAIL', 'mail.png');
|
||||
define('ICONPRINT', 'print.png');
|
||||
define('ICONPRINTPDF', 'pdf.png');
|
||||
define("NEWSCAT_AMOUNT",10);
|
||||
$sc_style["NEWSIMAGE"]["pre"] = '<div class="news_image">';
|
||||
$sc_style["NEWSIMAGE"]["post"] = '</div>';
|
||||
$sc_style["NEWSCOMMENTS"]["pre"] = '<div class="news_comments">';
|
||||
$sc_style["NEWSCOMMENTS"]["post"] = '</div>';
|
||||
//[newsstlyle]
|
||||
$NEWSSTYLE = '
|
||||
<div class="newsbox">
|
||||
<div class="leftbox">
|
||||
<div class="leftbox_title_bg">
|
||||
<div class="leftbox_title">
|
||||
{NEWSTITLE}
|
||||
</div>
|
||||
</div>
|
||||
<div class="meta">
|
||||
<div class="author mediumtext">
|
||||
{NEWSDATE=short} '.LAN_THEME_9.' {NEWSAUTHOR}
|
||||
</div>
|
||||
</div>
|
||||
<div class="fsnewsbbody">
|
||||
{NEWSIMAGE}
|
||||
{NEWSBODY} {EXTENDED}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="metabottom v-middle">
|
||||
<div class="metaicons">
|
||||
{EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
||||
</div>
|
||||
{NEWSCOMMENTS}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$NEWSLISTSTYLE = '
|
||||
<div class="newsbox">
|
||||
<div class="leftbox">
|
||||
<div class="leftbox_title_bg">
|
||||
<div class="leftbox_title">
|
||||
{NEWSTITLE}
|
||||
</div>
|
||||
</div>
|
||||
<div class="meta">
|
||||
<div class="author mediumtext">
|
||||
{NEWSDATE=short} '.LAN_THEME_9.' {NEWSAUTHOR}
|
||||
</div>
|
||||
</div>
|
||||
<div class="fsnewsbbody">
|
||||
{NEWSIMAGE}
|
||||
{NEWSBODY} {EXTENDED}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="metabottom v-middle">
|
||||
<div class="metaicons">
|
||||
{EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS}
|
||||
</div>
|
||||
{NEWSCOMMENTS}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
$NEWSARCHIVE ='
|
||||
<div>
|
||||
<table style="width:98%;">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="mediumtext">{ARCHIVE_BULLET} {ARCHIVE_LINK} '.LAN_THEME_9.' {ARCHIVE_AUTHOR} - {ARCHIVE_DATESTAMP} '.LAN_THEME_8.' {ARCHIVE_CATEGORY}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
//Render news categories on the bottom of the page
|
||||
$NEWSCAT = '
|
||||
<table cellpadding="0" cellspacing="0" style="width: 95%">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="news_title_cat">
|
||||
{NEWSCATEGORY}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding-top: 10px;">
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="catlink left v-middle" style="padding-bottom: 5px; padding-left: 10px;">
|
||||
{NEWSCAT_ITEM}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
';
|
||||
//Loop for news items in category
|
||||
$NEWSCAT_ITEM = '
|
||||
<div class="news_item_cat">
|
||||
<img src="'.THEME_ABS.'images/bullet.png" alt="" /> {NEWSTITLELINK}
|
||||
</div>
|
||||
';
|
||||
// linkstyle
|
||||
// http://wiki.e107.org/?title=Styling_Individual_Sitelink_Menus
|
||||
function linkstyle($np_linkstyle) {
|
||||
// Common to all styles (for this theme)
|
||||
// Common sublink settings
|
||||
// NOTE: *any* settings can be customized for sublinks by using
|
||||
// 'sub' as a prefix for the setting name. Plus, there's 'subindent'
|
||||
// $linkstyleset['sublinkclass'] = 'mysublink2;
|
||||
// $linkstyleset['subindent'] = ' ';
|
||||
// Now for some per-style setup
|
||||
switch ($np_linkstyle)
|
||||
{
|
||||
case 'toplinks':
|
||||
$linkstyleset['linkdisplay'] = 1;
|
||||
$linkstyleset['prelink'] = "<ul id='menu'>";
|
||||
$linkstyleset['postlink'] = "</ul>";
|
||||
$linkstyleset['linkstart'] = "<li>";
|
||||
$linkstyleset['linkend'] = "</li>";
|
||||
$linkstyleset['linkstart_hilite'] = "<li>";
|
||||
$linkstyleset['linkclass_hilite'] = "";
|
||||
$linkstyleset['linkseparator'] = "";
|
||||
break;
|
||||
case 'bottom':
|
||||
$linkstyleset['linkdisplay'] = 1;
|
||||
$linkstyleset['prelink'] = "";
|
||||
$linkstyleset['postlink'] = "";
|
||||
$linkstyleset['linkstart'] = "";
|
||||
$linkstyleset['linkend'] = "";
|
||||
$linkstyleset['linkstart_hilite'] = "";
|
||||
$linkstyleset['linkclass_hilite'] = "";
|
||||
$linkstyleset['linkseparator'] = " ";
|
||||
break;
|
||||
case 'flatlinks':
|
||||
$linkstyleset['linkdisplay'] = 2;
|
||||
$linkstyleset['prelink'] = '<ul>';
|
||||
$linkstyleset['postlink'] = '</ul>';
|
||||
$linkstyleset['linkstart'] = '<li>';
|
||||
$linkstyleset['linkend'] = '</li>';
|
||||
$linkstyleset['linkstart_hilite'] = "<li class='current'>";
|
||||
$linkstyleset['linkclass_hilite'] = "current";
|
||||
break;
|
||||
default: // if no LINKSTYLE defined
|
||||
$linkstyleset['linkdisplay'] = 1;
|
||||
define('PRELINK', '');
|
||||
define('POSTLINK', '');
|
||||
define('LINKSTART', '<span> ');
|
||||
define('LINKSTART_HILITE', '<span> ');
|
||||
define('LINKEND', '</span><div style="padding-top: 1px;"></div>');
|
||||
define('LINKALIGN', 'left');
|
||||
}
|
||||
return $linkstyleset;
|
||||
}
|
||||
define('BULLET', 'bullet.png');
|
||||
// Chatbox post style
|
||||
$CHATBOXSTYLE = "<br /><b>{USERNAME}</b> {TIMEDATE}<br />{MESSAGE}<br />";
|
||||
// Comment post style
|
||||
$sc_style["REPLY"]["pre"] = '<tr><td class="smallblacktext" style="padding: 10px 20px;">';
|
||||
$sc_style["REPLY"]["post"] = '</td></tr>';
|
||||
$sc_style["COMMENTEDIT"]["pre"] = '<tr><td class="forumheader" colspan="2" style="text-align: right">';
|
||||
$sc_style["COMMENTEDIT"]["post"] = '</td></tr>';
|
||||
$sc_style["JOINED"]["post"] = '<br />';
|
||||
$sc_style["LOCATION"]["post"] = '<br />';
|
||||
$sc_style["RATING"]["post"] = '<br /><br />';
|
||||
$sc_style["COMMENT"]["post"] = "<br />";
|
||||
$COMMENTSTYLE = '
|
||||
<div class="spacer" style="text-align:left; width: 100%; padding: 3px 0; margin: 5px 10px;">
|
||||
<table class="fborder" style="width: 98%; border-bottom: 1px solid #EEEEEE; background: transparent;">
|
||||
<tr>
|
||||
<td class=" forumheader mediumtext" style="padding: 10px 10px;" colspan="2">
|
||||
'.LAN_THEME_9.' {USERNAME} '.LAN_THEME_8.' {TIMEDATE}
|
||||
</td>
|
||||
</tr>
|
||||
{REPLY}
|
||||
<tr>
|
||||
<td class="forumheader3" style="width: 25%; vertical-align: top; border: 0 none">
|
||||
<div style="text-align: center;">
|
||||
{AVATAR}
|
||||
</div>
|
||||
<span class="smalltext">
|
||||
{JOINED}{COMMENTS}{LOCATION}{IPADDRESS}
|
||||
</span>
|
||||
</td>
|
||||
<td class="forumheader3" style="width: 70%; vertical-align: top; border: 0 none;">
|
||||
{COMMENT}
|
||||
</td>
|
||||
</tr>
|
||||
{COMMENTEDIT}
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
// Chatbox post style
|
||||
$CHATBOXSTYLE = "<br /><b>{USERNAME}</b> {TIMEDATE}<br />{MESSAGE}<br />";
|
||||
$SEARCH_SHORTCODE = '
|
||||
<div>
|
||||
<input class="search-form" type="text" name="q" size="25" maxlength="50" value="'.LAN_SEARCH.'" onfocus="if (this.value == \''.LAN_SEARCH.'\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \''.LAN_SEARCH.'\';" />
|
||||
<input type="submit" value="" class="search-submit" />
|
||||
</div>
|
||||
';
|
||||
?>
|
213
tests/_data/testcore/usersettings_template.php
Normal file
@ -0,0 +1,213 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.7/e107_themes/templates/usersettings_template.php,v $
|
||||
| $Revision: 11346 $
|
||||
| $Date: 2010-02-17 13:56:14 -0500 (Wed, 17 Feb 2010) $
|
||||
| $Author: secretr $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:auto"); }
|
||||
global $usersettings_shortcodes, $pref;
|
||||
|
||||
|
||||
$sc_style['CUSTOMTITLE']['pre'] = "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_CUSTOMTITLE.":</td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
";
|
||||
$sc_style['CUSTOMTITLE']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['PASSWORD1']['pre'] = "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_152."<br /><span class='smalltext'>".LAN_401."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
";
|
||||
|
||||
$sc_style['PASSWORD2']['pre'] = "
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_153."<br /><span class='smalltext'>".LAN_401."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
";
|
||||
$sc_style['PASSWORD2']['post'] = "
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
$sc_style['PASSWORD_LEN']['pre'] = "<br /><span class='smalltext'> (".LAN_SIGNUP_1." ";
|
||||
$sc_style['PASSWORD_LEN']['post'] = " ".LAN_SIGNUP_2.")</span>";
|
||||
|
||||
$sc_style['USERCLASSES']['pre'] = "<tr>
|
||||
<td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_USET_5.":".req($pref['signup_option_class'])."
|
||||
<br /><span class='smalltext'>".LAN_USET_6."</span>
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader2'>";
|
||||
$sc_style['USERCLASSES']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['AVATAR_UPLOAD']['pre'] = "<tr>
|
||||
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_415."<br /></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
";
|
||||
$sc_style['AVATAR_UPLOAD']['post'] = "</td></tr>";
|
||||
|
||||
$sc_style['PHOTO_UPLOAD']['pre'] = "
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>".LAN_425."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_414."<br /><span class='smalltext'>".LAN_426."</span></td>
|
||||
<td style='width:60%' class='forumheader2'><span class='smalltext'>
|
||||
";
|
||||
$sc_style['PHOTO_UPLOAD']['post'] = "</span></td></tr>";
|
||||
|
||||
|
||||
$sc_style['SIGNATURE']['pre'] = " <tr><td colspan='2' class='forumheader'>".LAN_USET_8."</td></tr>
|
||||
<tr>
|
||||
<td style='width:40%;vertical-align:top' class='forumheader3'>".LAN_120.req($pref['signup_option_signature'])."</td>
|
||||
<td style='width:60%' class='forumheader2'>";
|
||||
|
||||
|
||||
$sc_style['SIGNATURE']['post'] = "<br />";
|
||||
|
||||
$sc_style['SIGNATURE_HELP']['pre'] = "";
|
||||
$sc_style['SIGNATURE_HELP']['post'] = " </td></tr>";
|
||||
|
||||
|
||||
$sc_style['XUP']['pre'] = "
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>".LAN_435."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:20%; vertical-align:top' class='forumheader3'>".LAN_433."<br /><span class='smalltext'><a href='http://e107.org/generate_xup.php' rel='external'>".LAN_434."</a></span></td>
|
||||
<td style='width:80%' class='forumheader2'>
|
||||
";
|
||||
$sc_style['XUP']['post'] = "</td></tr>";
|
||||
|
||||
$USER_EXTENDED_CAT = "<tr><td colspan='2' class='forumheader'>{CATNAME}</td></tr>";
|
||||
$USEREXTENDED_FIELD = "
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
{FIELDNAME}
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
{FIELDVAL} {HIDEFIELD}
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
$REQUIRED_FIELD = "{FIELDNAME}<span style='text-align:right;font-size:15px; color:red'> *</span>";
|
||||
|
||||
$USERSETTINGS_EDIT = "
|
||||
<div style='text-align:center'>
|
||||
<table style='".USER_WIDTH."' class='fborder'>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>".LAN_418."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_7."<br /><span class='smalltext'>".LAN_8."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{USERNAME}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_9."<br /><span class='smalltext'>".LAN_10."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{LOGINNAME}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_308.req($pref['signup_option_realname'])."</td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{REALNAME}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{CUSTOMTITLE}
|
||||
|
||||
{PASSWORD1}
|
||||
{PASSWORD_LEN}
|
||||
{PASSWORD2}
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_112.req(!$pref['disable_emailcheck'])."</td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{EMAIL}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_113."<br /><span class='smalltext'>".LAN_114."</span></td>
|
||||
<td style='width:60%' class='forumheader2'><span class='defaulttext'>
|
||||
{HIDEEMAIL=radio}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{USERCLASSES}
|
||||
{USEREXTENDED_ALL}
|
||||
|
||||
|
||||
{SIGNATURE=cols=58&rows=4}
|
||||
{SIGNATURE_HELP}
|
||||
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".LAN_122.req($pref['signup_option_timezone'])."</td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{TIMEZONE}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>".LAN_420."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader3' style='text-align:center'>".LAN_404.($pref['im_width'] || $pref['im_height'] ? "<br />".($pref['im_width'] ? MAX_AVWIDTH.$pref['im_width']." pixels. " : "").($pref['im_height'] ? MAX_AVHEIGHT.$pref['im_height']." pixels." : "") : "")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_422.req($pref['signup_option_image'])."<br /><span class='smalltext'>".LAN_423."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{AVATAR_REMOTE}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%; vertical-align:top' class='forumheader3'>".LAN_421."<br /><span class='smalltext'>".LAN_424."</span></td>
|
||||
<td style='width:60%' class='forumheader2'>
|
||||
{AVATAR_CHOOSE}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{AVATAR_UPLOAD}
|
||||
{PHOTO_UPLOAD}
|
||||
{XUP}
|
||||
|
||||
<tr style='vertical-align:top'>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'><input class='button' type='submit' name='updatesettings' value='".LAN_154."' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
";
|
||||
|
||||
|
||||
?>
|
BIN
tests/_data/testkubrick/images/01_linkbg1.gif
Normal file
After Width: | Height: | Size: 104 B |
BIN
tests/_data/testkubrick/images/01_linkbg2.gif
Normal file
After Width: | Height: | Size: 104 B |
BIN
tests/_data/testkubrick/images/bar.jpg
Normal file
After Width: | Height: | Size: 644 B |
BIN
tests/_data/testkubrick/images/bullet2.gif
Normal file
After Width: | Height: | Size: 868 B |
BIN
tests/_data/testkubrick/images/kubrickbg.jpg
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
tests/_data/testkubrick/images/kubrickbgcolor.jpg
Normal file
After Width: | Height: | Size: 558 B |
BIN
tests/_data/testkubrick/images/kubrickbgwide.jpg
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
tests/_data/testkubrick/images/kubrickfooter.jpg
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
tests/_data/testkubrick/images/kubrickheader.jpg
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
tests/_data/testkubrick/images/tileage.jpg
Normal file
After Width: | Height: | Size: 347 B |
0
tests/_data/testkubrick/index.html
Normal file
29
tests/_data/testkubrick/languages/English.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)
|
||||
| Copyright (C) 2008-2010 e107 Inc (e107.org)
|
||||
|
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/e107_themes/kubrick/languages/English.php $
|
||||
| $Revision: 11678 $
|
||||
| $Id: English.php 11678 2010-08-22 00:43:45Z e107coders $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("LAN_THEME_1", "'kubrick' by <a href='http://e107.org' title='e107.org' rel='external'>jalist</a> & <a href='http://e107themes.org' title='e107themes.org' rel='external'>Que</a>, Based on original theme by Michael Heilemann (<a href='http://binarybonsai.com/kubrick/' title='http://binarybonsai.com/kubrick/' rel='external'>http://binarybonsai.com/kubrick/</a>. ).");
|
||||
define("LAN_THEME_2", "Comments are turned off for this item");
|
||||
define("LAN_THEME_3", "comment: ");
|
||||
define("LAN_THEME_4", "Read the rest ...");
|
||||
define("LAN_THEME_5", "Trackbacks: ");
|
||||
define('LAN_THEME_6', 'on');
|
||||
define('LAN_THEME_7', 'by');
|
||||
|
||||
|
||||
?>
|
BIN
tests/_data/testkubrick/preview.jpg
Normal file
After Width: | Height: | Size: 5.0 KiB |
463
tests/_data/testkubrick/style.css
Normal file
@ -0,0 +1,463 @@
|
||||
/*
|
||||
Kubrick v1.2.5 for e107
|
||||
http://binarybonsai.com/kubrick/
|
||||
This theme was designed and built by Michael Heilemann,
|
||||
whose blog you will find at http://binarybonsai.com/
|
||||
The CSS, XHTML and design is released under GPL:
|
||||
http://www.opensource.org/licenses/gpl-license.php
|
||||
Maintainer: William Moffett [Que~]
|
||||
*/
|
||||
|
||||
/* BEGIN TYPOGRAPHY & COLORS */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 62.5%; /* Resets 1em to 10px */
|
||||
font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
background:#d5d6d7 url("images/kubrickbgcolor.jpg");
|
||||
}
|
||||
|
||||
a {
|
||||
color: #06c;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #147;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.6em;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
td {
|
||||
background: none;
|
||||
font-family: tahoma, verdana, arial, helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
font-style: normal;
|
||||
color:#5d6e75;
|
||||
padding: 0px;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
acronym, abbr, span.caps {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
acronym, abbr {
|
||||
border-bottom: 1px dashed #999;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 15px 30px 0 10px;
|
||||
padding-left: 20px;
|
||||
border-left: 5px solid #ddd;
|
||||
}
|
||||
|
||||
blockquote cite {
|
||||
margin: 5px 0 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.linkspage_button{
|
||||
border:0px;
|
||||
}
|
||||
|
||||
.hidden{
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* BEGIN LAYOUT */
|
||||
|
||||
#page {
|
||||
margin: 20px auto;
|
||||
padding: 0;
|
||||
width: 760px;
|
||||
border: 1px solid #959596;
|
||||
text-align: left;
|
||||
background:white url("images/kubrickbg.jpg") repeat-y top; border: none;
|
||||
}
|
||||
|
||||
#page2 {
|
||||
margin: 20px auto;
|
||||
padding: 0;
|
||||
width: 760px;
|
||||
border: 1px solid #959596;
|
||||
text-align: left;
|
||||
background:white url("images/kubrickbgwide.jpg") repeat-y top; border: none;
|
||||
}
|
||||
|
||||
#header {
|
||||
position:relative;
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
background: #73a0c5 url("images/kubrickheader.jpg") no-repeat bottom center;
|
||||
}
|
||||
|
||||
#header h1{
|
||||
position:absolute;
|
||||
top:50px;
|
||||
left:0px;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
font-size: 4em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#header h1 a, #header h1 a:hover{
|
||||
color:white;
|
||||
}
|
||||
|
||||
#header h2 {
|
||||
position:absolute;
|
||||
top:100px;
|
||||
left:0px;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* UL NAVIGATION ADDED BY QUE~ */
|
||||
|
||||
#navigation{
|
||||
font-size: 11px;
|
||||
width: 694px;
|
||||
height: 22px;
|
||||
position: absolute;
|
||||
top: 178px;
|
||||
left: 13px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#navigation li{
|
||||
background: none;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* END UL NAVIGATION */
|
||||
|
||||
#content {
|
||||
margin-top:22px;
|
||||
font-size: 1.2em
|
||||
}
|
||||
|
||||
#sidebar{
|
||||
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
margin:22px 0px 0px 545px;
|
||||
padding: 20px 0 10px 0;
|
||||
width: 190px;
|
||||
font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
.narrowcolumn {
|
||||
float: left;
|
||||
padding: 0 0 20px 45px;
|
||||
margin: 0px 0 0;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
.widecolumn {
|
||||
padding: 10px 0 10px 0;
|
||||
margin: 5px 0 0 5px;
|
||||
width: 700px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.narrowcolumn .entry, .widecolumn .entry {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.widecolumn {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
width: 760px;
|
||||
clear: both;
|
||||
background:transparent url("images/kubrickfooter.jpg") bottom left no-repeat;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* END LAYOUT */
|
||||
|
||||
|
||||
/* BEGIN E107 CORE CLASSES MAINTAINER QUE~ */
|
||||
|
||||
.button{
|
||||
font-family: tahoma, verdana, arial, helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.tbox.chatbox {
|
||||
width: 80%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
padding: 2px 0 2px 0;
|
||||
}
|
||||
|
||||
|
||||
.indent{
|
||||
padding:4px;
|
||||
border: 1px solid #06c;
|
||||
}
|
||||
|
||||
.smalltext {
|
||||
font: 1em 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
.mediumtext {
|
||||
font: 12px 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||
}
|
||||
|
||||
.tbox{
|
||||
background-color: #F4F7FA;
|
||||
border: #5e5d63 1px solid;
|
||||
color: #000000;
|
||||
font: 10px verdana, tahoma, arial, helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.helpbox {
|
||||
border: 0px;
|
||||
background-color: transparent;
|
||||
color:#000;
|
||||
font: 9px tahoma, verdana, arial, helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.fborder {
|
||||
border: #ededed 1px solid;
|
||||
background-color: #fff;
|
||||
|
||||
}
|
||||
|
||||
.forumheader{
|
||||
background-color: #EBEFF2;
|
||||
font-family: verdana, tahoma, arial, helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color:#000;
|
||||
padding: 4px;
|
||||
border: 1px solid #ededed;
|
||||
}
|
||||
|
||||
.forumheader2{
|
||||
background-color: #fff;
|
||||
font-family: verdana, tahoma, arial, helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
color:#000;
|
||||
padding: 4px;
|
||||
border: #ededed 1px solid;
|
||||
}
|
||||
|
||||
.forumheader3{
|
||||
background-color: #fff;
|
||||
font: 9px verdana, tahoma, arial, helvetica, sans-serif;
|
||||
color:#000;
|
||||
padding: 4px;
|
||||
border: #ededed 1px solid;
|
||||
|
||||
}
|
||||
|
||||
.forumborder{
|
||||
border: #000080 1px solid;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.fcaption {
|
||||
height:35px;
|
||||
border: #ededed 1px solid;
|
||||
padding: 2px 0 2px 8px;
|
||||
background-color: #68ADE5;
|
||||
font: 12px verdana, tahoma, arial, helvetica, sans-serif;
|
||||
color:#fff;
|
||||
font-weight:bold;
|
||||
background-image: url("images/tileage.jpg");
|
||||
|
||||
}
|
||||
.fcaption a{
|
||||
padding-right:4px;
|
||||
color:#fff;
|
||||
|
||||
}
|
||||
|
||||
/* "Daisy, Daisy, give me your answer do. I'm half crazy all for the love of you.
|
||||
It won't be a stylish marriage, I can't afford a carriage.
|
||||
But you'll look sweet upon the seat of a bicycle built for two." */
|
||||
|
||||
|
||||
/* START NAVIGATION */
|
||||
|
||||
/* THIS PART IS FOR THE NAVIGATION LINKS */
|
||||
.nav1 a:link, .nav1 a:visited, .nav2 a:link, .nav2 a:visited, .nav3 a:link, .nav3 a:visited, .nav4 a:link, .nav4 a:visited, .nav5 a:link, .nav5 a:visited, .nav6 a:link, .nav6 a:visited, .nav7 a:link, .nav7 a:visited, .nav8 a:link, .nav8 a:visited{
|
||||
color: #4E4E4E;
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
background: url(images/01_linkbg2.gif) top repeat-y;
|
||||
padding: 0;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.nav1_onpage a:link, .nav1_onpage a:visited, .nav2_onpage a:link, .nav2_onpage a:visited, .nav3_onpage a:link, .nav3_onpage a:visited, .nav4_onpage a:link, .nav4_onpage a:visited, .nav5_onpage a:link, .nav5_onpage a:visited, .nav6_onpage a:link, .nav6_onpage a:visited, .nav7_onpage a:link, .nav7_onpage a:visited, .nav8_onpage a:link, .nav8_onpage a:visited{
|
||||
color: #4E4E4E;
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
background: url(images/01_linkbg2.gif) top repeat-y;
|
||||
padding: 0;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.nav1 a:link, .nav1 a:visited, .nav1_onpage a:link, .nav1_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 14px;
|
||||
}
|
||||
|
||||
.nav2 a:link, .nav2 a:visited, .nav2_onpage a:link, .nav2_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 96px;
|
||||
}
|
||||
.nav3 a:link, .nav3 a:visited, .nav3_onpage a:link, .nav3_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 178px;
|
||||
}
|
||||
|
||||
.nav4 a:link, .nav4 a:visited, .nav4_onpage a:link, .nav4_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 260px;
|
||||
}
|
||||
|
||||
.nav5 a:link, .nav5 a:visited, .nav5_onpage a:link, .nav5_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 342px;
|
||||
}
|
||||
|
||||
.nav6 a:link, .nav6 a:visited, .nav6_onpage a:link, .nav6_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 424px;
|
||||
}
|
||||
|
||||
.nav7 a:link, .nav7 a:visited, .nav7_onpage a:link, .nav7_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 506px;
|
||||
}
|
||||
|
||||
.nav8 a:link, .nav8 a:visited, .nav8_onpage a:link, .nav8_onpage a:visited{
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 588px;
|
||||
}
|
||||
|
||||
/* HOVER EFFECTS */
|
||||
|
||||
.nav1 a:hover, .nav1 a:active,
|
||||
.nav2 a:hover, .nav2 a:active,
|
||||
.nav3 a:hover, .nav3 a:active,
|
||||
.nav4 a:hover, .nav4 a:active,
|
||||
.nav5 a:hover, .nav5 a:active,
|
||||
.nav6 a:hover, .nav6 a:active,
|
||||
.nav7 a:hover, .nav7 a:active,
|
||||
.nav8 a:hover, .nav8 a:active{
|
||||
background: url(images/01_linkbg1.gif) top repeat-y;
|
||||
margin: 1px 0 0 0;
|
||||
}
|
||||
|
||||
/* USE A DIFFERENT COLOR WHEN USER IS ON THAT PAGE */
|
||||
|
||||
.nav1_onpage a:link, .nav1_onpage a:visited,
|
||||
.nav2_onpage a:link, .nav2_onpage a:visited,
|
||||
.nav3_onpage a:link, .nav3_onpage a:visited,
|
||||
.nav4_onpage a:link, .nav4_onpage a:visited,
|
||||
.nav5_onpage a:link, .nav5_onpage a:visited,
|
||||
.nav6_onpage a:link, .nav6_onpage a:visited,
|
||||
.nav7_onpage a:link, .nav7_onpage a:visited,
|
||||
.nav8_onpage a:link, .nav8_onpage a:visited{
|
||||
background: url(images/01_linkbg1.gif) top repeat-y;
|
||||
}
|
||||
|
||||
/* END NAVIGATION */
|
||||
|
||||
/* NICETITLE ADDED BY QUE~*/
|
||||
|
||||
.nicetitle {
|
||||
font-weight: bold;
|
||||
color: #3C3C3C;
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 35em;
|
||||
z-index: 20;
|
||||
max-width: 60%;
|
||||
}
|
||||
.nicetitle-content{
|
||||
overflow: hidden;
|
||||
background: white;
|
||||
border: 1px solid #333;
|
||||
padding: 7px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.nicetitle p{
|
||||
margin: 0;
|
||||
line-height: 120%;
|
||||
}
|
||||
.nicetitle p.destination {
|
||||
font-weight: normal;
|
||||
font-size: 10px;
|
||||
color: #5E7743;
|
||||
}
|
||||
div.nicetitle p span.accesskey {
|
||||
color: #FF7200;
|
||||
}
|
||||
|
348
tests/_data/testkubrick/theme.js
Normal file
@ -0,0 +1,348 @@
|
||||
// from http://www.kryogenix.org
|
||||
// by Scott Andrew - http://scottandrew.com
|
||||
// add an eventlistener to browsers that can do it somehow.
|
||||
function addEvent(obj, evType, fn)
|
||||
{
|
||||
if (obj.addEventListener)
|
||||
{
|
||||
obj.addEventListener(evType, fn, false);
|
||||
return true;
|
||||
}
|
||||
else if (obj.attachEvent)
|
||||
{
|
||||
var r = obj.attachEvent('on'+evType, fn);
|
||||
return r;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Force IE not to show alternate text as tooltip
|
||||
function noAltTooltip()
|
||||
{
|
||||
images = document.getElementsByTagName('img');
|
||||
for (var i = 0; i < images.length; i++)
|
||||
{
|
||||
var title = images[i].getAttribute('title');
|
||||
var alt = images[i].getAttribute('alt');
|
||||
if ((document.all) && (alt) && (!title))
|
||||
{
|
||||
images[i].setAttribute('title', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Nice Titles
|
||||
|
||||
// original code by Stuart Langridge 2003-11
|
||||
// with additions to the code by other good people
|
||||
// http://www.kryogenix.org/code/browser/nicetitle/
|
||||
// thank you, sir
|
||||
|
||||
// modified by Peter Janes 2003-03-25
|
||||
// http://peterjanes.ca/blog/archives/2003/03/25/nicetitles-for-ins-and-del
|
||||
// added in ins and del tags
|
||||
|
||||
// modified by Dunstan Orchard 2003-11-18
|
||||
// http://1976design.com/blog/
|
||||
// added in accesskey information
|
||||
// tried ever-so-hard, but couldn't work out how to do what Ethan did
|
||||
|
||||
// final genius touch by by Ethan Marcotte 2003-11-18
|
||||
// http://www.sidesh0w.com/
|
||||
// worked out how to delay showing the popups to make them more like the browser's own
|
||||
|
||||
// set the namespace
|
||||
var XHTMLNS = 'http://www.w3.org/1999/xhtml';
|
||||
var CURRENT_NICE_TITLE;
|
||||
|
||||
// browser sniff
|
||||
var browser = new Browser();
|
||||
|
||||
// determine browser and version.
|
||||
function Browser()
|
||||
{
|
||||
var ua, s, i;
|
||||
|
||||
this.isIE = false;
|
||||
this.isNS = false;
|
||||
this.version = null;
|
||||
|
||||
ua = navigator.userAgent;
|
||||
|
||||
s = 'MSIE';
|
||||
if ((i = ua.indexOf(s)) >= 0)
|
||||
{
|
||||
this.isIE = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
s = 'Netscape6/';
|
||||
if ((i = ua.indexOf(s)) >= 0)
|
||||
{
|
||||
this.isNS = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
// treat any other 'Gecko' browser as NS 6.1.
|
||||
s = 'Gecko';
|
||||
if ((i = ua.indexOf(s)) >= 0)
|
||||
{
|
||||
this.isNS = true;
|
||||
this.version = 6.1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 2003-11-19 sidesh0w
|
||||
// set delay vars to emulate normal hover delay
|
||||
var delay;
|
||||
var interval = 0.60;
|
||||
|
||||
// this function runs on window load
|
||||
// it runs through all the links on the page as starts listening for actions
|
||||
function makeNiceTitles()
|
||||
{
|
||||
if (!document.createElement || !document.getElementsByTagName) return;
|
||||
if (!document.createElementNS)
|
||||
{
|
||||
document.createElementNS = function(ns, elt)
|
||||
{
|
||||
return document.createElement(elt);
|
||||
}
|
||||
}
|
||||
|
||||
// do regular links
|
||||
if (!document.links)
|
||||
{
|
||||
document.links = document.getElementsByTagName('a');
|
||||
}
|
||||
for (var ti=0; ti<document.links.length; ti++)
|
||||
{
|
||||
var lnk = document.links[ti];
|
||||
// * I added specific class names here..
|
||||
if (lnk.title)
|
||||
{
|
||||
lnk.setAttribute('nicetitle', lnk.title);
|
||||
lnk.removeAttribute('title');
|
||||
addEvent(lnk, 'mouseover', showDelay);
|
||||
addEvent(lnk, 'mouseout', hideNiceTitle);
|
||||
addEvent(lnk, 'focus', showDelay);
|
||||
addEvent(lnk, 'blur', hideNiceTitle);
|
||||
}
|
||||
}
|
||||
|
||||
// 2003-03-25 Peter Janes
|
||||
// do ins and del tags
|
||||
var tags = new Array(2);
|
||||
tags[0] = document.getElementsByTagName('ins');
|
||||
tags[1] = document.getElementsByTagName('del');
|
||||
for (var tt=0; tt<tags.length; tt++)
|
||||
{
|
||||
if (tags[tt])
|
||||
{
|
||||
for (var ti=0; ti<tags[tt].length; ti++)
|
||||
{
|
||||
var tag = tags[tt][ti];
|
||||
if (tag.dateTime)
|
||||
{
|
||||
var strDate = tag.dateTime;
|
||||
// HTML/ISO8601 date: yyyy-mm-ddThh:mm:ssTZD (Z, -hh:mm, +hh:mm)
|
||||
var month = strDate.substring(5,7);
|
||||
var day = strDate.substring(8,10);
|
||||
if (month[0] == '0')
|
||||
{
|
||||
month = month[1];
|
||||
}
|
||||
if (day[0] == '0')
|
||||
{
|
||||
day = day[1];
|
||||
}
|
||||
var dtIns = new Date(strDate.substring(0,4), month-1, day, strDate.substring(11,13), strDate.substring(14,16), strDate.substring(17,19));
|
||||
tag.setAttribute('nicetitle', (tt == 0 ? 'Added' : 'Deleted') + ' on ' + dtIns.toString());
|
||||
addEvent(tag, 'mouseover', showDelay);
|
||||
addEvent(tag, 'mouseout', hideNiceTitle);
|
||||
addEvent(tag, 'focus', showDelay);
|
||||
addEvent(tag, 'blur', hideNiceTitle);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function findPosition(oLink)
|
||||
{
|
||||
if (oLink.offsetParent)
|
||||
{
|
||||
for (var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent)
|
||||
{
|
||||
posX += oLink.offsetLeft;
|
||||
posY += oLink.offsetTop;
|
||||
}
|
||||
return [posX, posY];
|
||||
}
|
||||
else
|
||||
{
|
||||
return [oLink.x, oLink.y];
|
||||
}
|
||||
}
|
||||
|
||||
function getParent(el, pTagName)
|
||||
{
|
||||
if (el == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// gecko bug, supposed to be uppercase
|
||||
else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())
|
||||
{
|
||||
return el;
|
||||
}
|
||||
else
|
||||
{
|
||||
return getParent(el.parentNode, pTagName);
|
||||
}
|
||||
}
|
||||
|
||||
// 2003-11-19 sidesh0w
|
||||
// trailerpark wrapper function
|
||||
function showDelay(e)
|
||||
{
|
||||
if (window.event && window.event.srcElement)
|
||||
{
|
||||
lnk = window.event.srcElement
|
||||
}
|
||||
else if (e && e.target)
|
||||
{
|
||||
lnk = e.target
|
||||
}
|
||||
if (!lnk) return;
|
||||
|
||||
// lnk is a textnode or an elementnode that's not ins/del
|
||||
if (lnk.nodeType == 3 || (lnk.nodeType == 1 && lnk.tagName.toLowerCase() != 'ins' && lnk.tagName.toLowerCase() != 'del'))
|
||||
{
|
||||
// ascend parents until we hit a link
|
||||
lnk = getParent(lnk, 'a');
|
||||
}
|
||||
|
||||
delay = setTimeout("showNiceTitle(lnk)", interval * 1000);
|
||||
}
|
||||
|
||||
// build and show the nice titles
|
||||
function showNiceTitle(link)
|
||||
{
|
||||
if (CURRENT_NICE_TITLE) hideNiceTitle(CURRENT_NICE_TITLE);
|
||||
if (!document.getElementsByTagName) return;
|
||||
|
||||
nicetitle = lnk.getAttribute('nicetitle');
|
||||
|
||||
var d = document.createElementNS(XHTMLNS, 'div');
|
||||
d.className = 'nicetitle';
|
||||
var dc = document.createElementNS(XHTMLNS, 'div');
|
||||
dc.className = 'nicetitle-content';
|
||||
d.appendChild(dc);
|
||||
tnt = document.createTextNode(nicetitle);
|
||||
pat = document.createElementNS(XHTMLNS, 'p');
|
||||
pat.className = 'titletext';
|
||||
pat.appendChild(tnt);
|
||||
|
||||
// 2003-11-18 Dunstan Orchard
|
||||
// added in accesskey info
|
||||
if (lnk.accessKey)
|
||||
{
|
||||
axs = document.createTextNode(' [' + lnk.accessKey + ']');
|
||||
axsk = document.createElementNS(XHTMLNS, 'span');
|
||||
axsk.className = 'accesskey';
|
||||
axsk.appendChild(axs);
|
||||
pat.appendChild(axsk);
|
||||
}
|
||||
dc.appendChild(pat);
|
||||
|
||||
if (lnk.href)
|
||||
{
|
||||
tnd = document.createTextNode(lnk.href);
|
||||
pad = document.createElementNS(XHTMLNS, 'p');
|
||||
pad.className = 'destination';
|
||||
pad.appendChild(tnd);
|
||||
dc.appendChild(pad);
|
||||
}
|
||||
|
||||
STD_WIDTH = 300;
|
||||
|
||||
if (lnk.href)
|
||||
{
|
||||
h = lnk.href.length;
|
||||
}
|
||||
else
|
||||
{
|
||||
h = nicetitle.length;
|
||||
}
|
||||
|
||||
if (nicetitle.length)
|
||||
{
|
||||
t = nicetitle.length;
|
||||
}
|
||||
|
||||
h_pixels = h*6;
|
||||
t_pixels = t*10;
|
||||
|
||||
if (h_pixels > STD_WIDTH)
|
||||
{
|
||||
w = h_pixels;
|
||||
}
|
||||
else if ((STD_WIDTH>t_pixels) && (t_pixels>h_pixels))
|
||||
{
|
||||
w = t_pixels;
|
||||
}
|
||||
else if ((STD_WIDTH>t_pixels) && (h_pixels>t_pixels))
|
||||
{
|
||||
w = h_pixels;
|
||||
}
|
||||
else
|
||||
{
|
||||
w = STD_WIDTH;
|
||||
}
|
||||
|
||||
d.style.width = w + 'px';
|
||||
|
||||
mpos = findPosition(lnk);
|
||||
mx = mpos[0];
|
||||
my = mpos[1];
|
||||
|
||||
d.style.left = (mx+15) + 'px';
|
||||
d.style.top = (my+35) + 'px';
|
||||
|
||||
if (window.innerWidth && ((mx+w) > window.innerWidth))
|
||||
{
|
||||
d.style.left = (window.innerWidth - w - 25) + 'px';
|
||||
}
|
||||
if (document.body.scrollWidth && ((mx+w) > document.body.scrollWidth))
|
||||
{
|
||||
d.style.left = (document.body.scrollWidth - w - 25) + 'px';
|
||||
}
|
||||
|
||||
document.getElementsByTagName('body')[0].appendChild(d);
|
||||
|
||||
CURRENT_NICE_TITLE = d;
|
||||
}
|
||||
|
||||
function hideNiceTitle(e)
|
||||
{
|
||||
// 2003-11-19 sidesh0w
|
||||
// clearTimeout
|
||||
if (delay) clearTimeout(delay);
|
||||
if (!document.getElementsByTagName) return;
|
||||
if (CURRENT_NICE_TITLE)
|
||||
{
|
||||
document.getElementsByTagName('body')[0].removeChild(CURRENT_NICE_TITLE);
|
||||
CURRENT_NICE_TITLE = null;
|
||||
}
|
||||
}
|
||||
addEvent(window, "load", noAltTooltip);
|
||||
addEvent(window, "load", makeNiceTitles);
|
||||
|
147
tests/_data/testkubrick/theme.php
Normal file
@ -0,0 +1,147 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| Copyright (C) 2001-2002 Steve Dunstan (jalist@e107.org)
|
||||
| Copyright (C) 2008-2010 e107 Inc (e107.org)
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/e107_themes/kubrick/theme.php $
|
||||
| $Revision: 11678 $
|
||||
| $Id: theme.php 11678 2010-08-22 00:43:45Z e107coders $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// [multilanguage]
|
||||
|
||||
include_lan(e_THEME."testkubrick/languages/".e_LANGUAGE.".php");
|
||||
|
||||
// [theme]
|
||||
$themename = "kubrick";
|
||||
$themeversion = "1.0";
|
||||
$themeauthor = "Steve Dunstan [jalist] & William Moffett [Que]";
|
||||
$themeemail = "jalist@e107.org";
|
||||
$themewebsite = "http://e107.org";
|
||||
$themedate = "29/01/2005";
|
||||
$themeinfo = "Based on 'kubrick' by Michael Heilemann (http://binarybonsai.com/kubrick/).<br />This theme is intended for minimilist blog sites.";
|
||||
define("STANDARDS_MODE", TRUE);
|
||||
$xhtmlcompliant = TRUE;
|
||||
$csscompliant = TRUE;
|
||||
define("IMODE", "lite");
|
||||
define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");
|
||||
|
||||
if(!defined("e_THEME")){ exit; }
|
||||
|
||||
$register_sc[]= "UL"; // register shortcode ul.sc for inclusion.
|
||||
|
||||
// [layout]
|
||||
|
||||
$layout = "_default";
|
||||
|
||||
$HEADER = "<div id='page'>
|
||||
<div id='header'>
|
||||
<h1><a href='".SITEURL."' title='{SITENAME}'>{SITENAME}</a></h1>
|
||||
<h2>{SITETAG}</h2>
|
||||
{UL}
|
||||
</div>
|
||||
<div id='content' class='narrowcolumn'>";
|
||||
|
||||
$FOOTER = "
|
||||
</div>
|
||||
<div id='sidebar'>
|
||||
{MENU=1}
|
||||
{MENU=2}
|
||||
</div>
|
||||
<hr />
|
||||
<div id='footer'>
|
||||
<p>
|
||||
{SITEDISCLAIMER}<br />{THEME_DISCLAIMER}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$CUSTOMHEADER = "<div id='page2'>
|
||||
<div id='header'>
|
||||
<h1><a href='".SITEURL."' title='{SITENAME}'>{SITENAME}</a></h1>
|
||||
<h2>{SITETAG}</h2>
|
||||
{UL}
|
||||
</div>
|
||||
<div id='content' class='widecolumn'>";
|
||||
|
||||
|
||||
$CUSTOMFOOTER = "
|
||||
</div>
|
||||
<hr />
|
||||
<div id='footer'>
|
||||
<p>
|
||||
{SITEDISCLAIMER}<br />{THEME_DISCLAIMER}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$CUSTOMPAGES = "forum.php forum_post.php forum_viewforum.php forum_viewtopic.php user.php submitnews.php download.php links.php stats.php usersettings.php signup.php";
|
||||
|
||||
$NEWSSTYLE = "
|
||||
<h2>{NEWSTITLE}</h2>
|
||||
<small>".LAN_THEME_6." {NEWSDATE} | ".LAN_THEME_7." {NEWSAUTHOR}</small>
|
||||
<div class='entry' style='text-align:left'>
|
||||
{NEWSBODY}
|
||||
{EXTENDED}
|
||||
</div>
|
||||
<div style='text-align:right' class='smalltext'>
|
||||
{NEWSCOMMENTS}{TRACKBACK}
|
||||
</div>
|
||||
<br />";
|
||||
define("ICONSTYLE", "float: left; border:0");
|
||||
define("COMMENTLINK", LAN_THEME_3);
|
||||
define("COMMENTOFFSTRING", LAN_THEME_2);
|
||||
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
|
||||
define("EXTENDEDSTRING", LAN_THEME_4);
|
||||
define("POST_EXTENDEDSTRING", " ]<br />");
|
||||
define("TRACKBACKSTRING", LAN_THEME_5);
|
||||
define("TRACKBACKBEFORESTRING", " | ");
|
||||
|
||||
|
||||
// [linkstyle]
|
||||
|
||||
define('PRELINK', "");
|
||||
define('POSTLINK', "");
|
||||
define('LINKSTART', "");
|
||||
define('LINKEND', "");
|
||||
define('LINKDISPLAY', 1);
|
||||
define('LINKALIGN', "left");
|
||||
define('LINKCLASS', "");
|
||||
|
||||
// [tablestyle]
|
||||
|
||||
function tablestyle($caption, $text, $mode)
|
||||
{
|
||||
echo "<h3>$caption</h3>\n<div>$text</div><br />\n";
|
||||
}
|
||||
|
||||
$COMMENTSTYLE = "
|
||||
<table style='width: 450px;'>
|
||||
<tr>
|
||||
<td style='width: 30%; vertical-align: top;'><span class='mediumtext'>{USERNAME}</span><br /><span class='smalltext'>{TIMEDATE}</span><br />{AVATAR}{REPLY}</td>
|
||||
<td style='width: 70%; vertical-align: top;'><span class='mediumtext'>{COMMENT} {COMMENTEDIT}</span></td>
|
||||
</tr>
|
||||
</table>";
|
||||
|
||||
|
||||
$CHATBOXSTYLE = "
|
||||
<img src='".e_IMAGE_ABS."admin_images/chatbox_16.png' alt='' style='vertical-align: middle;' />
|
||||
<b>{USERNAME}</b>
|
||||
<div class='smalltext'>
|
||||
{MESSAGE}
|
||||
</div>
|
||||
<br />";
|
||||
|
||||
?>
|
43
tests/_data/testkubrick/ul.sc
Normal file
@ -0,0 +1,43 @@
|
||||
global $sql, $link_class, $page,$tp;
|
||||
|
||||
$sql -> db_Select('links', '*', "link_category = 1 and link_parent =0 and link_class IN (".USERCLASS_LIST.") ORDER BY link_order ASC");
|
||||
//$ulmenu = PRELINK."<ul>"; // Leaf
|
||||
$ulmenu = "<ul id='navigation'>"; // Kubrick
|
||||
$r='1'; // Needs to be a character - used for access key
|
||||
while (($row = $sql -> db_Fetch()) && ($r <= "8"))
|
||||
{
|
||||
extract($row);
|
||||
$link_url = $tp->replaceConstants($link_url,TRUE);
|
||||
// Check if current page is one of the links - Test from kubrick is better
|
||||
$ltest = (e_QUERY ? e_PAGE."?".e_QUERY : e_PAGE);
|
||||
$rtest=substr(strrchr($link_url, "/"), 1);
|
||||
if (strpos($link_url, '://') === FALSE) { $link_url = e_BASE.$link_url; }
|
||||
if($ltest == $link_url || $rtest == e_PAGE){ $ulclass = '_onpage'; } else { $ulclass = ''; }
|
||||
|
||||
$link_append = '';
|
||||
switch ($link_open)
|
||||
{
|
||||
case 0: // Open in same window
|
||||
break;
|
||||
case 1: // Simple open in new window
|
||||
$link_append = " rel='external'";
|
||||
break;
|
||||
case 4: // 600 x 400 window
|
||||
$link_append = " onclick=\"javascript:open_window('{$link_url}',600,400); return false;\"";
|
||||
break;
|
||||
case 5: // 800 x 600 window
|
||||
$link_append = " onclick=\"javascript:open_window('{$link_url}',800,600); return false;\"";
|
||||
break;
|
||||
}
|
||||
$lname = (defined(trim($link_name))) ? constant(trim($link_name)) : $link_name;
|
||||
$ulmenu .= "<li class='nav".$r."$ulclass'><a title='".varsettrue($link_description,'add a text description to this link')."' ";
|
||||
// if ($ulclass) $ulmenu .= " class='$ulclass' "; // Not for kubrick
|
||||
$ulmenu .= " href='{$link_url}'".$link_append." accesskey='".$r."' >".LINKSTART.$lname."</a></li>"; // For Kubrick
|
||||
// $ulmenu .= " href='{$link_url}'".$link_append." accesskey='".$r."' >".LINKSTART."$lname".LINKEND."</a></li>"; // For leaf
|
||||
|
||||
|
||||
$r++;
|
||||
}
|
||||
//$ulmenu .= "</ul>\n".POSTLINK; // Leaf
|
||||
$ulmenu .= "</ul>"; // Kubrick
|
||||
return $ulmenu;
|
136
tests/unit/e_admin_logTest.php
Normal file
@ -0,0 +1,136 @@
|
||||
<?php
|
||||
/**
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2019 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
class e_admin_logTest extends \Codeception\Test\Unit
|
||||
{
|
||||
|
||||
/** @var e_admin_log */
|
||||
protected $log;
|
||||
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
$this->log = $this->make('e_admin_log');
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
$this->assertTrue(false, "Couldn't load e_admin_log object");
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
public function testAddSuccess()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testAddDebug()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLogError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLogSuccess()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testUser_audit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testAddArray()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLogMessage()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testAddWarning()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testPurge_log_events()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testE_log_event()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testSave()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLogArrayAll()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testFlushMessages()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testAddError()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testClear()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testAdd()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testToFile()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testSetCurrentPlugin()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLogArrayDiffs()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testLog_event()
|
||||
{
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
152
tests/unit/e_menu_layoutTest.php
Normal file
@ -0,0 +1,152 @@
|
||||
<?php
|
||||
/**
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2019 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
class e_menu_layoutTest extends \Codeception\Test\Unit
|
||||
{
|
||||
|
||||
/** @var e_menu_layout */
|
||||
protected $menu;
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
require_once(e_HANDLER."menumanager_class.php");
|
||||
}
|
||||
|
||||
private function copydir( $src, $dst )
|
||||
{
|
||||
if(!is_dir($src))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$dir = opendir($src);
|
||||
@mkdir(dirname($dst));
|
||||
|
||||
$DS = DIRECTORY_SEPARATOR ;
|
||||
|
||||
while(false !== ($file = readdir($dir)))
|
||||
{
|
||||
if($file != '.' && $file != '..')
|
||||
{
|
||||
if(is_dir($src . $DS . $file))
|
||||
{
|
||||
$this->copydir($src . $DS . $file, $dst . $DS . $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
copy($src . $DS . $file, $dst . $DS . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir($dir);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
public function testMenuSelector()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
public function testGetLayouts()
|
||||
{
|
||||
$src1 = codecept_data_dir()."testcore";
|
||||
$dest1 = e_THEME."testcore";
|
||||
|
||||
$this->copydir($src1,$dest1);
|
||||
|
||||
$src2 = codecept_data_dir()."testkubrick";
|
||||
$dest2 = e_THEME."testkubrick";
|
||||
|
||||
$this->copydir($src2,$dest2);
|
||||
|
||||
$tests = array(
|
||||
|
||||
'bootstrap3' => array (
|
||||
'templates' => array( // template key and string length
|
||||
'jumbotron_home' => 2940,
|
||||
'modern_business_home' => 3746,
|
||||
'jumbotron_full' => 1949,
|
||||
'jumbotron_sidebar_right' => 2765
|
||||
),
|
||||
'menus' => array (
|
||||
'jumbotron_home' => array ('1','2','3','4','5','6','7','8','9','10','11','12','13','14','100','101','102','103','104','105','106','107',),
|
||||
'modern_business_home' => array ('10','100','101','102','103','104','105','106','107',),
|
||||
'jumbotron_full' => array ('1','100','101','102','103','104','105','106','107',),
|
||||
'jumbotron_sidebar_right' => array ('1','2','3','4','5','6','7','8','100','101','102','103','104','105','106','107',),
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
'testkubrick' => array (
|
||||
'templates' => array(
|
||||
'legacyCustom' => 283,
|
||||
'legacyDefault' => 328
|
||||
),
|
||||
'menus' => array(
|
||||
'legacyCustom' => array(),
|
||||
'legacyDefault' => array('1', '2')
|
||||
),
|
||||
),
|
||||
|
||||
'testcore' => array (
|
||||
'templates' => array (
|
||||
'HOME' => 1635,
|
||||
'FULL' => 1378,
|
||||
'legacyDefault'=> 1807
|
||||
),
|
||||
'menus' => array(
|
||||
'HOME' => array('2', '3', '4'),
|
||||
'FULL' => array(),
|
||||
'legacyDefault'=> array('1', '2', '3', '4','5','6')
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
foreach($tests as $theme=>$vars)
|
||||
{
|
||||
$result = e_menu_layout::getLayouts($theme);
|
||||
|
||||
// var_dump($result['templates']);
|
||||
// var_export($result['menus']);
|
||||
|
||||
foreach($vars['templates'] as $key=>$length)
|
||||
{
|
||||
|
||||
$expectedLength = $length;
|
||||
$actualLength = strlen($result['templates'][$key]);
|
||||
|
||||
$this->assertEquals($expectedLength, $actualLength);
|
||||
}
|
||||
|
||||
foreach($vars['menus'] as $key=>$arr)
|
||||
{
|
||||
$this->assertEquals($arr, $result['menus'][$key]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|