diff --git a/tests/_data/testcore/calendar_template.php b/tests/_data/testcore/calendar_template.php new file mode 100644 index 000000000..36ae5f7a0 --- /dev/null +++ b/tests/_data/testcore/calendar_template.php @@ -0,0 +1,269 @@ +"; +$sc_style['PREV_MONTH']['post'] = ""; + +$sc_style['CURRENT_MONTH']['pre'] = ""; +$sc_style['CURRENT_MONTH']['post'] = ""; + +$sc_style['NEXT_MONTH']['pre'] = ""; +$sc_style['NEXT_MONTH']['post'] = ""; + +$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'] = ""; + +// + +$CALENDAR_TIME_TABLE = " +
+ + + + +\n + + + + +\n +
{PREV_MONTH}{CURRENT_MONTH}{NEXT_MONTH}
{PREV_YEAR}{MONTH_LIST}{NEXT_YEAR}
"; + + + +// NAVIGATION BUTTONS ------------------------------------------------------------ +//$sc_style['NAV_LINKCURRENTMONTH']['pre'] = ""; +//$sc_style['NAV_LINKCURRENTMONTH']['post'] = ""; +$sc_style['NAV_LINKCURRENTMONTH']['pre'] = ""; +$sc_style['NAV_LINKCURRENTMONTH']['post'] = ""; + +$CALENDAR_NAVIGATION_TABLE = " +
+
+ + + +\n +
{NAV_CATEGORIES} {NAV_BUT_ALLEVENTS} {NAV_BUT_VIEWCAT} {NAV_BUT_ENTEREVENT} {NAV_BUT_SUBSCRIPTION} {NAV_LINKCURRENTMONTH}
+
+
"; + + + +// EVENT LIST ------------------------------------------------------------ +$sc_style['EVENTLIST_CAPTION']['pre'] = ""; +$sc_style['EVENTLIST_CAPTION']['post'] = ":

\n"; + +$EVENT_EVENTLIST_TABLE_START = "{EVENTLIST_CAPTION}"; +$EVENT_EVENTLIST_TABLE_END = "
"; + + + +// EVENT ARCHIVE ------------------------------------------------------------ +$sc_style['EVENTARCHIVE_CAPTION']['pre'] = ""; +$sc_style['EVENTARCHIVE_CAPTION']['post'] = "\n"; + +$EVENT_ARCHIVE_TABLE_START = "
{EVENTARCHIVE_CAPTION}"; +$EVENT_ARCHIVE_TABLE = " + + + +\n"; +//
{EVENTARCHIVE_DETAILS} +$EVENT_ARCHIVE_TABLE_EMPTY = "\n"; +$EVENT_ARCHIVE_TABLE_END = "
{EVENT_RECENT_ICON}{EVENTARCHIVE_DATE}{EVENTARCHIVE_HEADING}
{EVENTARCHIVE_EMPTY}
"; + + + +// EVENT SHOW EVENT ------------------------------------------------------------ +$EVENT_EVENT_TABLE_START = ""; +$EVENT_EVENT_TABLE_END = "
"; + +$sc_style['EVENT_HEADING_DATE']['pre'] = ""; +$sc_style['EVENT_HEADING_DATE']['post'] = ""; + +$sc_style['EVENT_DETAILS']['pre'] = ""; +$sc_style['EVENT_DETAILS']['post'] = "\n"; + +$sc_style['EVENT_LOCATION']['pre'] = "".EC_LAN_32." "; +$sc_style['EVENT_LOCATION']['post'] = ""; + +$sc_style['EVENT_AUTHOR']['pre'] = "".EC_LAN_31." "; +$sc_style['EVENT_AUTHOR']['post'] = " "; + +$sc_style['EVENT_CONTACT']['pre'] = "".EC_LAN_33." "; +$sc_style['EVENT_CONTACT']['post'] = " "; + +$sc_style['EVENT_THREAD']['pre'] = ""; +$sc_style['EVENT_THREAD']['post'] = "\n"; + +$sc_style['EVENT_CATEGORY']['pre'] = "".EC_LAN_30." "; +$sc_style['EVENT_CATEGORY']['post'] = " "; + +$sc_style['EVENT_DATE_START']['pre'] = (isset($thisevent['event_allday']) && $thisevent['event_allday']) ? "".EC_LAN_68." " : "".EC_LAN_29." "; +$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'] = "".EC_LAN_69." "; +$sc_style['EVENT_DATE_END']['post'] = ""; + +$sc_style['EVENT_TIME_END']['pre'] = EC_LAN_144; +$sc_style['EVENT_TIME_END']['post'] = ""; + +$EVENT_EVENT_TABLE = " + + +
{EVENT_RECENT_ICON}{EVENT_CAT_ICON}{EVENT_HEADING_DATE}{EVENT_TIME_START} - {EVENT_TITLE}
+
+ + + \n + + {EVENT_DETAILS} + {EVENT_THREAD} +
{EVENT_AUTHOR} {EVENT_CAT_ICON} {EVENT_CATEGORY} {EVENT_CONTACT} {EVENT_OPTIONS}
{EVENT_DATE_START}{EVENT_TIME_START} {EVENT_DATE_END}{EVENT_TIME_END}
{EVENT_LOCATION}
+
+ +\n +"; + + +// CALENDAR SHOW EVENT ------------------------------------------------------------ +$sc_style['CALENDAR_CALENDAR_RECENT_ICON']['pre'] = ""; +$sc_style['CALENDAR_CALENDAR_RECENT_ICON']['post'] = ""; +$CALENDAR_SHOWEVENT = "{CALENDAR_CALENDAR_RECENT_ICON}\n
{SHOWEVENT_IMAGE}{SHOWEVENT_INDICAT}{SHOWEVENT_HEADING}
"; + + + +// CALENDAR CALENDAR ------------------------------------------------------------ +$CALENDAR_CALENDAR_START = " +
+"; + +$CALENDAR_CALENDAR_END = " +\n
"; + +$CALENDAR_CALENDAR_DAY_NON = ""; + +//header row +$CALENDAR_CALENDAR_HEADER_START = ""; +$CALENDAR_CALENDAR_HEADER = "{CALENDAR_CALENDAR_HEADER_DAY}"; +$CALENDAR_CALENDAR_HEADER_END = "\n"; + + +$CALENDAR_CALENDAR_WEEKSWITCH = "\n"; + +//today +$CALENDAR_CALENDAR_DAY_TODAY = " + +{CALENDAR_CALENDAR_DAY_TODAY_HEADING}"; + +//day has events +$CALENDAR_CALENDAR_DAY_EVENT = " + +{CALENDAR_CALENDAR_DAY_EVENT_HEADING}"; + +// no events and not today +$CALENDAR_CALENDAR_DAY_EMPTY = " + +{CALENDAR_CALENDAR_DAY_EMPTY_HEADING}"; + +$CALENDAR_CALENDAR_DAY_END = ""; + +//==================================================================== +// Calendar menu templates +$CALENDAR_MENU_START = "
"; +$CALENDAR_MENU_TABLE_START = ""; + +$CALENDAR_MENU_END = "
"; + +// Blank cells at beginning and end +$CALENDAR_MENU_DAY_NON = "
"; + +//header row +$CALENDAR_MENU_HEADER_START = "\n"; +$CALENDAR_MENU_HEADER_FRONT = ""; +$CALENDAR_MENU_HEADER_BACK = ""; +$CALENDAR_MENU_HEADER_END = "\n"; + + +$CALENDAR_MENU_WEEKSWITCH = "\n"; + +// 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'] = ""; + +// no events and not today +$CALENDAR_MENU_DAY_START['2'] = ""; + +//day has events - same whether its today or not +$CALENDAR_MENU_DAY_START['3'] = ""; +$CALENDAR_MENU_DAY_START['4'] = ""; +// day has events, one which is recently added/updated +$CALENDAR_MENU_DAY_START['5'] = ""; +$CALENDAR_MENU_DAY_START['6'] = ""; +// Example highlight using background colour: +//$CALENDAR_MENU_DAY_START['5'] = ""; +//$CALENDAR_MENU_DAY_START['6'] = ""; + +$CALENDAR_MENU_DAY_END['1'] = ""; +$CALENDAR_MENU_DAY_END['2'] = ""; +$CALENDAR_MENU_DAY_END['3'] = ""; +$CALENDAR_MENU_DAY_END['4'] = ""; +$CALENDAR_MENU_DAY_END['5'] = ""; +$CALENDAR_MENU_DAY_END['6'] = ""; + +//============================================================================ +// 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'] = " \ No newline at end of file diff --git a/tests/_data/testcore/comment_menu_template.php b/tests/_data/testcore/comment_menu_template.php new file mode 100644 index 000000000..0d63db2a2 --- /dev/null +++ b/tests/_data/testcore/comment_menu_template.php @@ -0,0 +1,38 @@ +"; +$sc_style['CM_AUTHOR']['post'] = ""; + +$sc_style['CM_DATESTAMP']['pre'] = " ".CM_L11." "; +$sc_style['CM_DATESTAMP']['post'] = ""; + +$sc_style['CM_COMMENT']['pre'] = ""; +$sc_style['CM_COMMENT']['post'] = "

"; + +if (!isset($COMMENT_MENU_TEMPLATE)){ + $COMMENT_MENU_TEMPLATE = " + {CM_ICON} {CM_URL_PRE}{CM_TYPE} {CM_HEADING}{CM_URL_POST}
+ {CM_AUTHOR}

+ "; +} +?> \ No newline at end of file diff --git a/tests/_data/testcore/favicon.ico b/tests/_data/testcore/favicon.ico new file mode 100644 index 000000000..083a83b69 Binary files /dev/null and b/tests/_data/testcore/favicon.ico differ diff --git a/tests/_data/testcore/forum/admin.png b/tests/_data/testcore/forum/admin.png new file mode 100644 index 000000000..b873a6de9 Binary files /dev/null and b/tests/_data/testcore/forum/admin.png differ diff --git a/tests/_data/testcore/forum/index.html b/tests/_data/testcore/forum/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/forum/main_admin.png b/tests/_data/testcore/forum/main_admin.png new file mode 100644 index 000000000..da98c9335 Binary files /dev/null and b/tests/_data/testcore/forum/main_admin.png differ diff --git a/tests/_data/testcore/forum/moderator.png b/tests/_data/testcore/forum/moderator.png new file mode 100644 index 000000000..3f7e29872 Binary files /dev/null and b/tests/_data/testcore/forum/moderator.png differ diff --git a/tests/_data/testcore/forum/newthread.png b/tests/_data/testcore/forum/newthread.png new file mode 100644 index 000000000..3d3687c1c Binary files /dev/null and b/tests/_data/testcore/forum/newthread.png differ diff --git a/tests/_data/testcore/forum/reply.png b/tests/_data/testcore/forum/reply.png new file mode 100644 index 000000000..85b6e02c7 Binary files /dev/null and b/tests/_data/testcore/forum/reply.png differ diff --git a/tests/_data/testcore/fs_custom.sc b/tests/_data/testcore/fs_custom.sc new file mode 100644 index 000000000..f1d923457 --- /dev/null +++ b/tests/_data/testcore/fs_custom.sc @@ -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 = ' +
+
+ '.$sec_img->r_image().' +
+
+ + +
+
+ '; +} +$err = ''; + +if (LOGINMESSAGE != '') { + $err = ' +
+ Error +
'.LOGINMESSAGE.'
+
+
+ '; +} + +switch($custom_query[0]) +{ + case "login": + case "login noprofile": + include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); + + + if(ADMIN == TRUE) + { + $fs_admin = ' + '.LOGIN_MENU_L11.'  | + '; + } + if($custom_query[0] != "login noprofile") + { + $fs_profile = ' + '.LOGIN_MENU_L13.'  | + '; + } + $fs_settings = ' + '.LOGIN_MENU_L12.'  | + '; + $fs_logout = ' + '.LOGIN_MENU_L8.' + '; + + if (USER == TRUE){ + $ret .= ' +

'.LOGIN_MENU_L5.' '.USERNAME.'

+
+ '.$fs_admin.' + '.$fs_profile.' + '.$fs_settings.' + '.$fs_logout.' + '; + } else { + if($pref['user_reg']) + { + $fs_signup = ' + '.LOGIN_MENU_L3.' + '; + } + if ($pref['user_tracking'] == "cookie") + { + $fs_autologin = "".LOGIN_MENU_L6."  \n"; + } + + if (!$pref['auth_method'] || $pref['auth_method'] == 'e107') + { + $fs_pw = "".LOGIN_MENU_L4.""; + } + + $user_txt = str_replace(':','',LOGIN_MENU_L1); + $pass_txt = str_replace(':','',LOGIN_MENU_L2); + + $ret .= ' +
+
+
+ Close +
+
+
+ '.$err.' +
+
'.$user_txt.'
+
+
'.$pass_txt.'
+
+
+
+ +
+
+
+ +
+ + '.$fs_sec_code_img.' +
+ '.$fs_autologin.' +
+
+ + + +
+
+
+ + +
'.$fs_pw.'
+
+
+
+ +
+
+
+ '; + + } + return $ret; + break; + +} diff --git a/tests/_data/testcore/fs_functions.php b/tests/_data/testcore/fs_functions.php new file mode 100644 index 000000000..6b4eab39b --- /dev/null +++ b/tests/_data/testcore/fs_functions.php @@ -0,0 +1,313 @@ +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 "
link= ".$link; + echo "
link_q= ".$link_qry; + echo "
url= ".e_PAGE; + echo "
url_query= ".e_QUERY."
"; + } + +// ----------- 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 = "toHTML($cat_title,"","defs, no_hook").""; + } else { + $text .= ">".$tp->toHTML($cat_title,"","defs, no_hook").""; + } + + 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 .= " +
  • ".adnav_main($subname, $sub['link_url'], $sub['link_id'],$sub['link_open']); + + $text .= " + "; + $text .= " +
  • "; + } else { + $text .= " +
  • ".adnav_main($subname, $sub['link_url'], null, $sub['link_open'])."
  • "; + } + } + + 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 = "toHTML($cat_title,"","defs, no_hook").""; + + return $text; +} + +$text .= " + + "; + +$text .= ' + +'; +?> \ No newline at end of file diff --git a/tests/_data/testcore/fs_login.sc b/tests/_data/testcore/fs_login.sc new file mode 100644 index 000000000..e9d0cfceb --- /dev/null +++ b/tests/_data/testcore/fs_login.sc @@ -0,0 +1,59 @@ +global $pref; +if(!USER){ + $loginsc = ' +
    +
    + '.LAN_THEME_SING.' +
    +
    +
    +
    + +
    +
    + '; + return $loginsc; +} + + +if (USER == TRUE || ADMIN == TRUE) { + $loginsc = ' +
    + + '.LAN_THEME_23.'  '.USERNAME.' + + '; + + $loginsc .= ' + '; + if (ADMIN == TRUE) { + $loginsc .= ' + + '.LAN_THEME_24.'   + '; + } + $loginsc .= ' + '.LAN_THEME_27.'   + '.LAN_THEME_26.'   + '.(isset($pref['plug_installed']['list_new']) ? ''.LAN_THEME_29.'' : '').' + + + + + '.LAN_THEME_28.' + + + +
    + '; + + $loginsc .= ' + '; + return $loginsc; + + +} \ No newline at end of file diff --git a/tests/_data/testcore/fs_sitelinks.sc b/tests/_data/testcore/fs_sitelinks.sc new file mode 100644 index 000000000..fe020ca9b --- /dev/null +++ b/tests/_data/testcore/fs_sitelinks.sc @@ -0,0 +1,3 @@ +include_once(THEME.'fs_functions.php'); + +return $text; diff --git a/tests/_data/testcore/images/admin_nav_bkg.png b/tests/_data/testcore/images/admin_nav_bkg.png new file mode 100644 index 000000000..dc531a45b Binary files /dev/null and b/tests/_data/testcore/images/admin_nav_bkg.png differ diff --git a/tests/_data/testcore/images/adminbg.png b/tests/_data/testcore/images/adminbg.png new file mode 100644 index 000000000..33fdde77d Binary files /dev/null and b/tests/_data/testcore/images/adminbg.png differ diff --git a/tests/_data/testcore/images/adminnavbg.png b/tests/_data/testcore/images/adminnavbg.png new file mode 100644 index 000000000..dd2f462b5 Binary files /dev/null and b/tests/_data/testcore/images/adminnavbg.png differ diff --git a/tests/_data/testcore/images/admintopbg.png b/tests/_data/testcore/images/admintopbg.png new file mode 100644 index 000000000..a70e005fc Binary files /dev/null and b/tests/_data/testcore/images/admintopbg.png differ diff --git a/tests/_data/testcore/images/bottom_xhtml.png b/tests/_data/testcore/images/bottom_xhtml.png new file mode 100644 index 000000000..8e57fa7d3 Binary files /dev/null and b/tests/_data/testcore/images/bottom_xhtml.png differ diff --git a/tests/_data/testcore/images/bullet.png b/tests/_data/testcore/images/bullet.png new file mode 100644 index 000000000..0ee60d67b Binary files /dev/null and b/tests/_data/testcore/images/bullet.png differ diff --git a/tests/_data/testcore/images/bullet2.gif b/tests/_data/testcore/images/bullet2.gif new file mode 100644 index 000000000..a28f5ee66 Binary files /dev/null and b/tests/_data/testcore/images/bullet2.gif differ diff --git a/tests/_data/testcore/images/contentbg.png b/tests/_data/testcore/images/contentbg.png new file mode 100644 index 000000000..7123fee27 Binary files /dev/null and b/tests/_data/testcore/images/contentbg.png differ diff --git a/tests/_data/testcore/images/e_adminlogo.png b/tests/_data/testcore/images/e_adminlogo.png new file mode 100644 index 000000000..42d8ed6a9 Binary files /dev/null and b/tests/_data/testcore/images/e_adminlogo.png differ diff --git a/tests/_data/testcore/images/e_logo.png b/tests/_data/testcore/images/e_logo.png new file mode 100644 index 000000000..819c76a9f Binary files /dev/null and b/tests/_data/testcore/images/e_logo.png differ diff --git a/tests/_data/testcore/images/e_logo_small.png b/tests/_data/testcore/images/e_logo_small.png new file mode 100644 index 000000000..a1d306b37 Binary files /dev/null and b/tests/_data/testcore/images/e_logo_small.png differ diff --git a/tests/_data/testcore/images/file.png b/tests/_data/testcore/images/file.png new file mode 100644 index 000000000..5ec7adef4 Binary files /dev/null and b/tests/_data/testcore/images/file.png differ diff --git a/tests/_data/testcore/images/footerbor.png b/tests/_data/testcore/images/footerbor.png new file mode 100644 index 000000000..71c9cb42e Binary files /dev/null and b/tests/_data/testcore/images/footerbor.png differ diff --git a/tests/_data/testcore/images/headerbg.png b/tests/_data/testcore/images/headerbg.png new file mode 100644 index 000000000..97587426f Binary files /dev/null and b/tests/_data/testcore/images/headerbg.png differ diff --git a/tests/_data/testcore/images/index.html b/tests/_data/testcore/images/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/images/login_logo.png b/tests/_data/testcore/images/login_logo.png new file mode 100644 index 000000000..819c76a9f Binary files /dev/null and b/tests/_data/testcore/images/login_logo.png differ diff --git a/tests/_data/testcore/images/mail.png b/tests/_data/testcore/images/mail.png new file mode 100644 index 000000000..a126ac536 Binary files /dev/null and b/tests/_data/testcore/images/mail.png differ diff --git a/tests/_data/testcore/images/mainbg.png b/tests/_data/testcore/images/mainbg.png new file mode 100644 index 000000000..c184e5589 Binary files /dev/null and b/tests/_data/testcore/images/mainbg.png differ diff --git a/tests/_data/testcore/images/nav_hover.png b/tests/_data/testcore/images/nav_hover.png new file mode 100644 index 000000000..aa45ce839 Binary files /dev/null and b/tests/_data/testcore/images/nav_hover.png differ diff --git a/tests/_data/testcore/images/nav_sep.png b/tests/_data/testcore/images/nav_sep.png new file mode 100644 index 000000000..c412bffbc Binary files /dev/null and b/tests/_data/testcore/images/nav_sep.png differ diff --git a/tests/_data/testcore/images/navbg.png b/tests/_data/testcore/images/navbg.png new file mode 100644 index 000000000..8029098af Binary files /dev/null and b/tests/_data/testcore/images/navbg.png differ diff --git a/tests/_data/testcore/images/newsedit.png b/tests/_data/testcore/images/newsedit.png new file mode 100644 index 000000000..bd871f7b0 Binary files /dev/null and b/tests/_data/testcore/images/newsedit.png differ diff --git a/tests/_data/testcore/images/pdf.png b/tests/_data/testcore/images/pdf.png new file mode 100644 index 000000000..4a522252f Binary files /dev/null and b/tests/_data/testcore/images/pdf.png differ diff --git a/tests/_data/testcore/images/print.png b/tests/_data/testcore/images/print.png new file mode 100644 index 000000000..62f944822 Binary files /dev/null and b/tests/_data/testcore/images/print.png differ diff --git a/tests/_data/testcore/images/regl.png b/tests/_data/testcore/images/regl.png new file mode 100644 index 000000000..2ea161355 Binary files /dev/null and b/tests/_data/testcore/images/regl.png differ diff --git a/tests/_data/testcore/images/regm.png b/tests/_data/testcore/images/regm.png new file mode 100644 index 000000000..5339b032d Binary files /dev/null and b/tests/_data/testcore/images/regm.png differ diff --git a/tests/_data/testcore/images/regr.png b/tests/_data/testcore/images/regr.png new file mode 100644 index 000000000..9a986c1e3 Binary files /dev/null and b/tests/_data/testcore/images/regr.png differ diff --git a/tests/_data/testcore/images/rightbox_title_bg.png b/tests/_data/testcore/images/rightbox_title_bg.png new file mode 100644 index 000000000..7f86e7eaf Binary files /dev/null and b/tests/_data/testcore/images/rightbox_title_bg.png differ diff --git a/tests/_data/testcore/images/search-icon.png b/tests/_data/testcore/images/search-icon.png new file mode 100644 index 000000000..34c60a87a Binary files /dev/null and b/tests/_data/testcore/images/search-icon.png differ diff --git a/tests/_data/testcore/images/titlebg.png b/tests/_data/testcore/images/titlebg.png new file mode 100644 index 000000000..348008ae5 Binary files /dev/null and b/tests/_data/testcore/images/titlebg.png differ diff --git a/tests/_data/testcore/index.html b/tests/_data/testcore/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/js/index.html b/tests/_data/testcore/js/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/js/menu.js b/tests/_data/testcore/js/menu.js new file mode 100644 index 000000000..03f698a69 --- /dev/null +++ b/tests/_data/testcore/js/menu.js @@ -0,0 +1,25 @@ +sfHover = function() { + var sfEls = document.getElementById("nav").getElementsByTagName("LI"); + for (var i=0; ie107 Inc.'); +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"); +?> \ No newline at end of file diff --git a/tests/_data/testcore/languages/index.html b/tests/_data/testcore/languages/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/login_template.php b/tests/_data/testcore/login_template.php new file mode 100644 index 000000000..e67d545cd --- /dev/null +++ b/tests/_data/testcore/login_template.php @@ -0,0 +1,94 @@ +
    +
    + ".(file_exists(THEME."images/login_logo.png") ? "" : "" ); +} + +// ##### LOGIN TABLE ----------------------------------------------------------------------------- +if(!isset($LOGIN_TABLE)) +{ + $LOGIN_TABLE = ''; + if($LOGIN_TABLE_LOGINMESSAGE != '') + { + $LOGIN_TABLE .= "
    {LOGIN_TABLE_LOGINMESSAGE}
    "; + } + if (!isset($LOGIN_TABLE_SECIMG_SECIMG)) + { + $LOGIN_TABLE_SECIMG_SECIMG = FALSE; + } + $LOGIN_TABLE .= " +
    + ".$rs -> form_open("post", e_SELF)." + + + + + + + + + + + + + + "; + if($LOGIN_TABLE_SECIMG_SECIMG){ + $LOGIN_TABLE .= " + + + + "; + } + + $LOGIN_TABLE .= " + + + +
    + ".LAN_LOGIN_4." +
    + ".LAN_LOGIN_1." + + {LOGIN_TABLE_USERNAME} + + ".(file_exists(THEME."images/password.png") ? "" : "" )." +
    + ".LAN_LOGIN_2." + + {LOGIN_TABLE_PASSWORD} +
    + {LOGIN_TABLE_SECIMG_LAN} + + {LOGIN_TABLE_SECIMG_HIDDEN} {LOGIN_TABLE_SECIMG_SECIMG} {LOGIN_TABLE_SECIMG_TEXTBOC} +
    + {LOGIN_TABLE_AUTOLOGIN}{LOGIN_TABLE_AUTOLOGIN_LAN}

    {LOGIN_TABLE_SUBMIT} +
    ". + $rs -> form_close()."
    "; +} +// ##### ------------------------------------------------------------------------------------------ + +// ##### LOGIN TABLE FOOTER ----------------------------------------------------------------------- +if(!isset($LOGIN_TABLE_FOOTER)) +{ + $LOGIN_TABLE_FOOTER = " +
    +

    + {LOGIN_TABLE_FOOTER_USERREG}   ".LAN_LOGIN_12." +
    +
    +
    + "; +} +// ##### ------------------------------------------------------------------------------------------ + + +?> \ No newline at end of file diff --git a/tests/_data/testcore/preview.jpg b/tests/_data/testcore/preview.jpg new file mode 100644 index 000000000..7ffebcc5b Binary files /dev/null and b/tests/_data/testcore/preview.jpg differ diff --git a/tests/_data/testcore/source/admin_mainadmin_moderator.png b/tests/_data/testcore/source/admin_mainadmin_moderator.png new file mode 100644 index 000000000..86021181d Binary files /dev/null and b/tests/_data/testcore/source/admin_mainadmin_moderator.png differ diff --git a/tests/_data/testcore/source/forum_images.png b/tests/_data/testcore/source/forum_images.png new file mode 100644 index 000000000..b49990a42 Binary files /dev/null and b/tests/_data/testcore/source/forum_images.png differ diff --git a/tests/_data/testcore/source/index.html b/tests/_data/testcore/source/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testcore/source/reply_new_thread.png b/tests/_data/testcore/source/reply_new_thread.png new file mode 100644 index 000000000..817aa6160 Binary files /dev/null and b/tests/_data/testcore/source/reply_new_thread.png differ diff --git a/tests/_data/testcore/style.css b/tests/_data/testcore/style.css new file mode 100644 index 000000000..df903ed4b --- /dev/null +++ b/tests/_data/testcore/style.css @@ -0,0 +1,1315 @@ +/* CLEAR CSS */ +html, body { width: 100%;} +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { +margin: 0; +padding: 0; +border: 0; +} +ol, ul { list-style: none; } +h1, h2, h3, h4, h5, h6 {line-height: normal; } +body { +line-height: 1; +} +ol, ul { +list-style: none; +} +select { +padding: 0px 20px ; +max-width: 180px; +} + +option { +padding: 0px 20px ; +} +checkbox, label { +margin: 0px 5px ; +} +input[type="checkbox"], input[type="radio"] { +margin: 0px 5px 0px 0px ; +padding: 5px 5px ; +} +blockquote, q { +quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { +content: ''; +content: none; +} +:focus { +outline: 0px; +} +ins { +text-decoration: none; +} +del { +text-decoration: line-through; +} +table { +border-collapse: collapse; +border-spacing: 0px; +} +.clear { +clear:both; +} +.clearfix:after { +clear:both; +content:' '; +display:block; +font-size:0px; +line-height:0px; +visibility:hidden; +width:0px; +height:0px; +} +.clearfix { +display:inline-block; +} +* html .clearfix{height:1%;} +* .clearfix{display:block;} +* { margin: 0px; padding: 0px; } +/* E107 CORE CSS */ +.tbox { +color: #111111; +background-color: #FFFFFF; +border:1px solid #B5B5B7; +font-size: 14px; +font-weight: normal; +padding: 5px 10px; +margin: 5px 5px ; +-webkit-border-radius: 3px; +-moz-border-radius: 3px; +border-radius: 3px; +} +.tbox:focus { +background-color: #EEEEEE; +border:1px solid #B5B5B7; +} +.button, .button:focus { +text-align: center; +background-color: #FFFFFF; +border: 1px #B5B5B7 solid; +padding: 5px 10px ; +margin: 5px 0px ; +font-weight: bold; +-moz-border-radius: 3px; +border-radius: 3px; +-webkit-border-radius: 3px; +cursor:hand; +cursor:pointer; +} +.button:hover { +color: #3399CC; +border: 1px #EEEEEE solid; +-moz-border-radius: 3px; +border-radius: 3px; +-webkit-border-radius: 3px; +} +#submitnews_item { +width: 90%; +} +.tbox.chatbox { +width: 90%; +padding : 2px; +color: #111111; +background-color: #EEEEEE; +border:1px solid #B5B5B7; +margin: 10px auto; +-webkit-border-radius: 3px; +-moz-border-radius: 3px; +border-radius: 3px; +-webkit-border-radius: 3px; +} +.tbox.chatbox:focus { +background-color: #FFFFFF; +border:1px solid #EEEEEE; +} +.tbox.signature { +width: 350px; +color: #111111; +background-color: #FFFFFF; +border:1px solid #B5B5B7; +font-size: 14px; +font-weight: normal; +padding: 5px 10px; +margin: 5px 5px ; +-moz-border-radius: 3px; +border-radius: 3px; +-webkit-border-radius: 3px; +} +.tbox.signature:focus { +background-color: #EEEEEE; +border:1px solid #B5B5B7; +} +.npdropdown { +width: auto; +margin: 0px 0px; +padding: 2px; +height: auto; +text-align: left; +} +.tbox.comment.subject { +width: 98%; +background-color: transparent; +border: 0px none; +padding: 2px; +margin-top: 3px; +} +#comment.tbox.comment { +width: 98%; +padding : 2px; +color: #111111; +background-color: #FFFFFF; +border:1px solid #B5B5B7; +} +#comment.tbox.comment:focus { +background-color: #EEEEEE; +border:1px solid #B5B5B7; +} +#contactForm textarea.tbox { +width: auto; +padding : 2px; +color: #111111; +background-color: #FFFFFF; +border:1px solid #B5B5B7; +} +#contactForm textarea.tbox:focus { +background-color: #EEEEEE; +border:1px solid #B5B5B7; +} +input.input-text, textarea.tbox { +width: auto; +padding : 5px; +color: #111111; +background-color: #FFFFFF; +border:1px solid #B5B5B7; +} +input.input-text:focus, textarea.tbox:focus { +background-color: #EEEEEE; +border:1px solid #B5B5B7; +} +input#helpb.helpbox { +float: left; +margin-top: 2px; +margin-bottom: 2px; +background-color: transparent; +border: 0px none; +font-size: 80%; +color: #111111; +text-align: left; +} +#commentform .helpbox{ +width: 98%; +border-collapse: collapse; +padding: 1px; +} +.helpbox { +width: 98%; +background-color: transparent; +border: 0px none; +border-collapse: collapse; +padding: 3px; +} +.indent { +color: #111111; +background-color: #EEEEEE; +border:1px solid #B5B5B7; +padding: 5px 15px; +font-size: 90%; +margin: 10px 10px 5px 15px; +font-style: italic; +} +.nextprev{ +border: 0px none; +background-color: transparent; +border-collapse: collapse; +padding: 15px; +margin: 5px 0px ; +text-align: left; +width: auto; +font-size: 13px; +font-weight: bold; +} +.nextprev_link { +background-color: #3399CC; +border:1px solid #3399CC; +-moz-border-radius: 3px; +-webkit-border-radius: 3px; +border-radius: 3px; +color:#FFFFFF; +margin:0px; +padding:2px 6px; +text-decoration: none; +} +.nextprev_link:hover { +background-color: #EEEEEE; +color:#3399CC; +text-decoration: none; +} +.nextprev_current { +background-color: transparent; +border:1px solid transparent; +color:#333333; +margin:0px; +padding:2px 6px; +text-decoration: none; +} +.smalltext { +font-size: 12px; +font-weight: normal; +} +.smallblacktext { +font-size: 12px; +font-weight: bold; +} +.defaulttext, .caption, .bodytable, .mediumtext { +font-size: 13px; +font-weight: normal; +} +.fborder { +background-color: transparent; +border: 0px none; +padding: 3px; +margin-top: 3px; +text-align: left; +} +.forumheader { +background-color: #F9F9F9; +border-bottom:1px solid #B5B5B7; +padding: 8px 3px; +font-weight: bold; +vertical-align: middle; +text-align: left; +} +.nforumcaption{ +background-color: transparent; +border-bottom:1px solid #B5B5B7; +padding: 3px; +font-size: 110%; +text-align: left; +} +.finfobar{ +background-color: transparent; +border-bottom:1px solid #B5B5B7; +padding: 3px; +font-size: 100%; +text-align: left; +} +.forumheader2{ +background-color: transparent; +border-bottom:1px solid #B5B5B7; +padding: 3px; +font-size: 99%; +text-align: left; +} +.forumheader3{ +background-color: transparent; +border-bottom:1px solid #B5B5B7; +padding: 10px 3px; +font-size: 99%; +text-align: left; +} +.forumborder { +background-color: transparent; +border-bottom:1px solid #B5B5B7; +vertical-align: top; +text-align: left; +} +.fcaption { +background-color: transparent; +border-bottom:1px solid #B5B5B7; +border-collapse: collapse; +border: 0px none; +vertical-align: top; +font-size: 13px; +text-align: left; +font-weight: bold; +line-height: 40px; +padding: 0px 10px ; +} +.fcaption a { +text-decoration: none; +} +.fcaption a:hover { +text-decoration: underline; +} +/* THEME CSS */ +body { +background: #FFFFFF url(images/mainbg.png) repeat-x 0px 0px; +font: 12px/16px Arial,Helvetica,sans-serif; +color : #333333; +} +h1 { +font: normal 35px Arial,Helvetica,sans-serif; +} +h2 { +font: normal 22px Arial,Helvetica,sans-serif; +} +h3 { +font: normal 18px Arial,Helvetica,sans-serif; +} +h4 { +font: normal 16px Arial,Helvetica,sans-serif; +} +a { +color: #3399CC; +text-decoration: none; +cursor:hand; +cursor:pointer; +} +a:hover { +color: #333333; +text-decoration: none; +} +img { +border: 0px; +} +.mr10 { +margin-right: 10px; +} +.mr20 { +margin-right: 20px; +} +.ml20 { +margin-left: 20px; +} +.wrapper { +width: 1000px; +margin: 0px auto ; +} +.wrapper_full { +width: 95%; +margin: 0px auto ; +} +/* HEADER CSS */ +.headerbg { +background: transparent url(images/headerbg.png) repeat-x 0px 0px; +width: 100%; +height: 186px;; +} +.headertop { +height: 135px; +width: 100%; +} +.sitelogo { +width: 500px; +float: left; +margin: 20px 0px 0px 0px; +} +.banner { +width: 490px; +float: right; +text-align: right; +margin: 20px 0px 0px 0px; +} +.headerbottom { +height: 50px; +width: 100% +} +/* LOGIN CSS */ +.fs_login { +width: 500px; +float: left; +height: 50px; +} +.fs_c_login { +height: 50px; +width: 200px; +} +.singin { +float: left; +padding: 20px 0px 0px 20px; +} +.singin a { +color: #3399CC; +text-decoration: underline; +font-weight: bold; +font-size: 14px; +} +.singin a:hover { +text-decoration: none; +} +.register { +color: #FFFFFF; +font-weight: bold; +width: 100px; +float: right; +padding-top: 10px; +font-size: 14px; +} +.regr { +width: 6px; +height: 31px; +background: transparent url(images/regr.png) no-repeat 0px 0px; +float: right; +} +.regl { +width: 6px; +height: 31px; +background: transparent url(images/regl.png) no-repeat 0px 0px; +float: left; +} +.regm { +height: 31px; +margin: 0px 6px ; +text-align: center; +background: transparent url(images/regm.png) repeat-x 0px 0px; +} +.register_text { +padding: 8px 0px 0px 0px; +} +.register a { +color: #FFFFFF; +text-decoration: none; +} +.fs_c_login2 { +padding: 10px 0px ; +width: 600px; +} +span.logout { +color: #FFFFFF; +font-weight: bold; +width: 100px; +font-size: 14px; +padding: 5px 20px ; +text-align: center; +background: transparent url(images/regm.png) repeat-x 0px 0px; +-moz-border-radius: 3px; +-webkit-border-radius: 3px; +border-radius: 3px; +} +span.logm { +height: 31px; +} +span.logout a { +color: #FFFFFF; +text-decoration: none; +} +.username { +float: left; +} +.userpass { +float: right; +} +.tbox.fs_username { +width: 180px; +padding: 5px 10px ; +font-size: 12px; +color: #333333; +background-color: #F0F0F0; +border: 0px none; +} +.tbox.fs_username:focus { +background-color: #FFFFFF; +} +.tbox.fs_userpass { +width: 180px; +padding: 5px 10px ; +font-size: 12px; +color: #333333; +background-color: #F0F0F0; +border: 0px none; +} +.tbox.fs_userpass:focus { +background-color: #FFFFFF; +} +.userlogin { +padding: 2px 10px ; +} +.fs_login_links { +padding: 5px 0px 0px 20px; +} +.fs_welcome { +font-weight: bold; +padding: 0px 0px 5px 20px; +} +.fs_login_links_b { +padding: 0px 10px 0px 10px ; +} +/* SEARCH BOX CSS */ +.sitesearch { +width: 300px; +text-align: right; +float: right; +margin-right: 20px; +margin-top: 4px; +} +.search-form { +width: 200px; +padding: 5px 10px ; +font-size: 12px; +color: #333333; +background-color: #F0F0F0; +border: 0px none; +-moz-border-radius: 3px; +-webkit-border-radius: 3px; +border-radius: 3px; +} +.search-form:focus { +background-color: #FFFFFF; +border: 1px #F0F0F0 solid; +} +.search-submit { +background: url(images/search-icon.png) no-repeat 0px 0px; +padding: 5px 5px ; +height: 24px; +width: 24px; +border: 0px none; +color: #FFFFFF; +font-weight: bold; +cursor:pointer; +} +/* NAVIGATION CONTENT CSS */ +.navigation { +width: 100%; +margin: 0px auto ; +height: 62px; +background: url(images/navbg.png) repeat-x 0px 0px; +} +#nav li.fs-linkSep { +background: url(images/nav_sep.png) no-repeat 0px 50%; +width: 2px; +height: 62px; +} +#nav a { +padding: 0px; +margin: 0px; +list-style: none; +} +#nav ul { +padding: 0px 0px; +margin: 0px; +list-style: none; +cursor: pointer; +} +#nav li { +float: left; +font-size: 18px; +font-weight: normal; +} +#nav li a { +color: #656565; +text-shadow: 2px 2px 2px #B5B5B7; +margin: 0px 10px; +padding: 20px 20px 10px 20px ; +display: block; +text-decoration: none; +} +#nav li#active a { +display: block; +text-decoration: none; +color:#3399CB; +background: url(images/nav_hover.png) no-repeat 0px 100%; +} +#nav li a:hover, +#nav li.sfhover a, +#nav li:hover a { +display: block; +text-decoration: none; +color:#3399CB; +} +#nav li#active, +#nav li.sfhover, +#nav li:hover { +cursor: pointer; +} +#nav li.sub-sfhover, +#nav li.sub:hover { +cursor: pointer; +} +#nav li.sub-sfhover a, +#nav li.sub-sfhover a:hover, +#nav li.sub:hover a, +#nav li.sub:hover a:hover { +} +#nav li#active a, +#nav li a:hover, +#nav li.sfhover a, +#nav li:hover a { +display: block; +text-decoration: none; +} +#nav li#active, +#nav li.sfhover, +#nav li:hover { +cursor: pointer; +} +#nav li.sub-sfhover, +#nav li.sub:hover { +cursor: pointer; +} +/* LEVEL 2 */ +#nav li li a { +margin-left: 0px; +display: block; +padding: 0px; +float: none; +padding-left: 15px; +width: 180px; +width/* */:/**/165px; +width: /**/165px; +color: #000000; +font-size: 14px; +font-weight: normal; +border-bottom: 1px #B5B5B7 solid; +} +#nav li li a:hover { +background-color: #B5B5B7; +color: #656565; +border-bottom: 1px #B5B5B7 solid; +} +#nav li ul { /* second-level lists */ +position: absolute; +z-index: 1000; +width: 180px; +left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */ +background-color: #F6F8F8; +color: #656565; +line-height: 32px; +} +#nav li:hover ul, +#nav li.sfhover ul, +#nav li.sub-sfhover ul { +background-image: none; +background-repeat: no-repeat; +background-position: 0px 100%; +} +#nav li.sub-sfhover ul.sub, +#nav li.sub:hover ul.sub { +margin-left: 0px; +padding-bottom: 0px; +} +#nav li ul ul { /* third-and-above-level lists */ +margin: -28px 0px 0px 180px; +} +#nav ul.sub li, +#nav ul.sub li a, +#nav ul.sub li a:hover, +#nav ul.sub li:hover, +#nav ul.sub li:hover a, +#nav ul.sub li.sfhover a, +#nav ul.sub li:hover a:hover, +#nav ul.sub li.sfhover a:hover, +#nav li.sub ul.sub a +{ background-image: none; } +#nav li#active ul.sub li, +#nav li#active ul.sub li a, +#nav li#active ul.sub li a:hover, +#nav li#active ul.sub li:hover, +#nav li#active ul.sub li:hover a, +#nav li#active ul.sub li.sfhover a, +#nav li#active ul.sub li:hover a:hover, +#nav li#active ul.sub li.sfhover a:hover, +#nav li.sub ul.sub a +{ background-image: none; } +#nav li:hover ul ul, +#nav li:hover ul ul ul, +#nav li:hover ul ul ul ul, +#nav li.sfhover ul ul, +#nav li.sfhover ul ul ul, +#nav li.sfhover ul ul ul ul, +#nav li.sub-sfhover ul ul, +#nav li.sub-sfhover ul ul ul, +#nav li.sub-sfhover ul ul ul ul { +left: -999em; +} +#nav li:hover ul, +#nav li li:hover ul, +#nav li li li:hover ul, +#nav li li li li:hover ul, +#nav li.sfhover ul, +#nav li li.sfhover ul, +#nav li li li.sfhover ul, +#nav li li li li.sfhover ul, +#nav li.sub-sfhover ul, +#nav li.sub-sfhover li.sfhover ul, +#nav li.sub-sfhover li li.sfhover ul, +#nav li.sub-sfhover li li li.sfhover ul { /* lists nested under hovered list items */ +left: auto; +} +#nav a.sub { +} +#nav a.sub:hover { +} +/* MAIN CONTENT CSS */ +.maincontent { +background: #FFFFFF url(images/contentbg.png) repeat-x 0px 0px; +margin: 0px auto ; +width: 100%; +padding: 20px 0px ; +} +.topcontent { +margin: 0px 20px 30px 20px; +} +.topcontent_entry { +font-size: 14px; +line-height: 18px; +color: #626262; +background-color: #FFFFFF; +margin-bottom: 30px; +padding: 20px 20px; +border-bottom: 3px #EEEEEE solid; +} +.topcontent_entry img { +float: left; +margin: 0px 20px 10px 0px; +} +.topcontent_entry table { +width: 90%; +margin: 0px auto ; +} +.maincontentall { +background: #FFFFFF url(images/contentbg.png) repeat-x 0px 0px; +margin: 0px auto ; +width: 100%; +padding: 20px 0px ; +} +.topcontentall { +margin: 0px 20px 30px 20px; +background-color: #FFFFFF; +padding: 20px 20px ; +} +/* FULL SITE SIDE CSS */ +.fullside { +margin: 20px 20px ; +padding: 20px 0px ; +background-color: #FFFFFF; +} +.fullcontent { +padding: 0px 20px ; +} +.fullcontent_title { +background: url(images/rightbox_title_bg.png) no-repeat 0px 100%; +font-size: 16px; +font-weight: bold; +padding-bottom: 10px; +margin-bottom: 10px; +text-shadow: 2px 2px 2px #B5B5B7; +} +.fullcontent_entry table { +width: 90%; +margin: 0px auto ; +} +.maincontentwrap { +background-color: #FFFFFF; +width: 920px; +margin: 0px auto ; +padding: 20px 20px ; +} +/* RIGHT SITE SIDE CSS */ +.rightcolall { +float: right; +width: 300px; +font-size: 13px; +} +.rightcol { +float: right; +width: 300px; +font-size: 13px; +margin-top: 63px; +} +.rightbox { +margin-bottom: 30px; +margin-top: 30px; +} +.rightbox_title { +background: url(images/rightbox_title_bg.png) no-repeat 0px 100%; +font-size: 16px; +font-weight: bold; +padding-bottom: 10px; +margin-left: 30px; +margin-bottom: 10px; +text-shadow: 2px 2px 2px #B5B5B7; +} +.rightbox_text { +padding: 0px 0px; +} +.rightbox_text table { +width: 90%; +margin: 0px auto ; +} +.title_clean { +font-size: 16px; +font-weight: bold; +padding-bottom: 10px; +margin-bottom: 10px; +text-shadow: 2px 2px 2px #B5B5B7; +} +/* MENU CSS */ +.bottmomenusbox { +margin-bottom: 30px; +} +.bottmomenus_title { +background: url(images/rightbox_title_bg.png) no-repeat 0px 100%; +font-size: 16px; +font-weight: bold; +padding-bottom: 10px; +margin-bottom: 10px; +text-shadow: 2px 2px 2px #B5B5B7; +} +.bottmomenus_text { +padding: 0px 0px; +} +.bottmomenus_text table { +width: 90%; +margin: 0px auto ; +} +/* LEFT SITE SIDE CSS */ +.leftcol { +width: 600px; +float: left; +font-size: 13px; +} +.leftbox { +margin-bottom: 30px; +} +.leftbox_title_bg { +background: #EBECEC url(images/titlebg.png) repeat 0px 100%; +min-height: 45px; +margin-bottom: 10px; +} +.leftbox_title { +padding: 10px 20px ; +font-size: 18px; +text-shadow: 2px 2px 2px #B5B5B7; +} +.leftbox_text table { +width: 90%; +margin: 0px auto ; +} +/* NEWSSTYLE CSS */ +.news_title_cat { +color: #333333; +font-weight: bold; +font-size: 14px; +text-align: left; +border-bottom: 1px #F1F1F1 solid; +} +.news_title_cat a { +color: #333333; +} +.news_title_cat a:hover { +color: #3399CC; +text-decoration: none; +} +.news_item_cat a { +color: #3399CC; +text-decoration: none; +} +.news_item_cat a:hover { +color: #333333; +text-decoration: none; +} +.news_icons { +font-size: 10px; +vertical-align: middle; +padding: 0px 2px 15px 0px; +} +.newsbox { +margin-bottom: 30px; +} +.meta { +width: 100%; +padding: 5px 0px 10px 0px; +} +.author { +padding: 0px 10px ; +text-align: right; +} +.news_comments { +vertical-align: middle; +height: 24px; +} +.fsnewsbbody { +padding: 5px 0px 10px 0px; +} +.news_image { +float: left; +margin: 0px 10px 5px 0px; +} +.metabottom { +width: 100%; +height: 24px; +vertical-align: middle; +} +.metaicons { +height: 24px; +text-align: right; +float: right; +vertical-align: middle; +} +.readmore { +font-weight: bold; +} +.readmore a { +color: #333333; +text-decoration: underline; +} +.readmore a:hover { +color: #333333; +text-decoration: none; +} +/* MENU=2 MENU=3 MENU=4 CSS */ +.bottmomenus { +width: 960px; +margin: 30px auto ; +} +.bmenul { +width: 300px; +float: left; +} +.bmenur { +width: 300px; +float: right; +} +.bmenum { +width: auto; +margin: 0px 330px ; +} +/* FOOTER */ +.footerbor { +background: url(images/footerbor.png) repeat-x 0px 0px; +width: 90%; +margin: 30px auto 0px auto ; +height: 3px; +} +.footerborfull { +background: url(images/footerbor.png) repeat-x 0px 0px; +width: 95%; +margin: 30px auto 0px auto ; +height: 3px; +} +.footer { +width: 100%; +margin: 30px 0px ; +} +.footer a { +text-decoration: none; +} +.fmenul { +float: left; +width: 300px; +} +.fmenur { +float: right; +text-align: center; +width: 300px; +color: #656565; +} +.fmenum { +text-align: center; +margin: 0px 310px; +width: auto; +color: #3399CC; +font-weight: bold; +font-size: 14px; +} +.footerlinks { +width: auto; +margin: 20px 20px ; +text-align: center; +} +.footerlinks a { +color: #656565; +text-decoration: none; +} +.footerlinks a:hover { +color: #333333; +text-decoration: none; +} +/* SITELINKS=flat:2 CSS */ +.styledmenu { +width: 100%; +margin-bottom: 30px; +} +.styledmenu ul { +list-style-type: none; +margin: 0px; +padding: 0px; +} +.styledmenu ul li { +padding-bottom: 2px; +margin: 0px; +} +.styledmenu ul li a { +color: #333333; +background-color: #F0F0F0; +display: block; +padding: 5px 0px; +line-height: 17px; +padding-left: 8px; +text-decoration: none; +} +.styledmenu ul li a:hover { +color: #111111; +background-color: #F9F9F9; +font-weight: bold; +} +.styledmenu ul li.current a { +color: #111111; +background-color: #FFFFFF; +font-weight: bold; +} + +.installe { + color:#FF5C5C; background-color:#FFCECE; border:1px solid #FF5C5C; padding:10px;margin:20px; +} +/* ADMIN CSS +.admin_header { +width: 100%; +margin: 0px auto 0px auto ; +height: 70px; +color: #FFFFFF; +background: #2C5C81 url(images/admintopbg.png) repeat-x 0px 0px; +} +.admin_header a { +color: #FFFFFF; +text-decoration: none; +} +.admin_header a:hover { +color: #70C3EC; +text-decoration: none; +} +.admin_header_left { +float: left; +margin: 10px 20px 0px 20px ; +} +.admin_header_right { +float: right; +text-align: right; +margin: 10px 20px 0px 20px ; +} +.admin_sitenav { +text-align: right; +margin: 5px 0px 0px 0px; +} +.admin_main_col { +width: 100%; +background-color: #EDEDED; +margin: 0px auto 10px auto; +padding: 0px 0px 20px 0px; +border-bottom: 1px #B5B5B7 solid; +} +.admin_main_col a { +color: #000; +text-decoration: none; +} +.admin_main_col a:hover { +color: #333333; +text-decoration: none; +} +.admin_main_col .button, .admin_main_col .button:focus { +background-color: #EDEDED; +border: 1px #B5B5B7 solid; +padding: 5px 10px ; +margin: 5px 0px ; +font-weight: bold; +cursor:hand; +cursor:pointer; +} + +.link_button { +padding: 5px 5px ; +border-bottom: 1px #B5B5B7 solid; +} +.link_button a { +color: #000000; +text-decoration: none; +} +.link_button a:hover { +color: #666666; +text-decoration: none; +} +.admin_main_col .helpbox { +background-color: transparent; +border: 0px none ! important; +} +.admin_main_col .tbox { +padding: 5px 10px; +margin: 5px 5px ; +width: 90%; +} +.admin_main_col textarea.tbox { +padding: 5px 10px; +margin: 5px 5px ; +width: 90% ! important; +} +.admin_main_col input.tbox { +padding: 5px 10px; +margin: 15px 5px ; +width: auto; +} +.admin_main_col select.tbox { +padding: 5px 10px; +margin: 15px 5px ; +max-width: 180px; +} +.admin_main_col .nextprev{ +border: 0px none; +background-color: transparent; +border-collapse: collapse; +padding: 15px; +margin: 15px 0px ; +text-align: left; +width: auto; +font-size: 13px; +font-weight: bold; +} +.admin_main_col .nextprev_link { +background-color: #EDEDED; +border:1px solid #B5B5B7; +-moz-border-radius: 2px; +-webkit-border-radius: 2px; +border-radius: 3px; +color:#000000; +margin:0px; +padding:2px 6px; +text-decoration: none; +} +.admin_main_col .nextprev_link:hover { +background-color: #FFFFFF; +color:#333333; +text-decoration: none; +} +.admin_main_col .nextprev_current { +background-color: transparent; +border:1px solid transparent; +color:#333333; +margin:0px; +padding:2px 6px; +text-decoration: none; +} +.admin_sitenav a { +padding: 0px 0px 0px 10px ; +} +.admin_left_col { +padding: 20px 19px; +vertical-align: top; +} +.admin_right_col { +padding: 20px 19px; +} +.admin_mid_col { +background-color: #f5f5f5; +padding: 20px 20px ; +} +.admin_mid_col_one { +width: 76%; +float: right; +} +.admin_left_col_one { +float: left; +width: 20%; +padding-left: 20px; +vertical-align: top; +} +.admin_main_nav_bg { +background-color: #0A3452; +background: #02243F url(images/adminnavbg.png) repeat-x 0px 0px; +padding: 15px 0px 0px 0px ; +height: 35px; +} +.admin_main_nav { +width: 98%; +margin: 0px auto 0px auto ; +} +div.menuBar, +div.menuBar a.menuButton, div.menuButton, div.menuButton_over, +div.menu, +div.menu a.menuItem { +font-family: arial, sans-serif; +font-size: 16px; +font-style: normal; +font-weight: normal; +color: #FFFFFF; +} +div.menuBar { +border-bottom: 0px solid #000; +} +div.emenuBar { +background-color: #F7F9FA; +border-top: 0px none #ffffff; +border-bottom: 0px solid #000; +text-align: left; +} +div.menuBar a.menuButton, div.menuButton, div.menuButton_over { +background-color: transparent; +color: #FFFFFF; +cursor: default; +left: 0px; +margin: 0px 0px; +padding: 5px 24px 5px 22px; +position: relative; +text-decoration: none; +top: 0px; +z-index: 100; +cursor:hand; +cursor:pointer; +} +div.menuBar a.menuButton:hover, div.menuButton:hover, div.menuButton_over { +color: #70C3EC; +} +div.menuBar a.menuButtonActive, div.menuButtonActive, div.menuButtonActive:hover, +div.menuBar a.menuButtonActive:hover { +color: #70C3EC; +} +div.menu { +background-color: #FCFDFF; +border: #B5B5B7 1px solid; +left: 0px; +padding: 1px 1px 1px 1px; +position: absolute; +top: 0px; +visibility: hidden; +z-index: 101; +} +div.menu a.menuItem { +color: #000000; +cursor:hand; +cursor:pointer; +font-size: 13px; +display: block; +padding: 5px 41px 5px 0px; +text-decoration: none; +white-space: nowrap; +} +div.menu a.menuItem:hover, div.menu a.menuItemHighlight { +background-color: #B5B5B7; +color: #000000; +} +div.menu a.menuItem span.menuItemBuffer { +padding: 8px 5px 8px 8px; +color: #ffffff; +} +div.menu a.menuItem:hover span.menuItemBuffer { +color: #000000; +} +div.menu a.menuItem span.menuItemText { +padding: 0px 0px 0px 3px; +} +div.menu a.menuItem span.menuItemArrow { +margin-right: -.75em; +} +div.menu div.menuItemSep { +border-top: 1px solid #a5a5a5; +border-bottom: 1px solid #ffffff; +margin: 4px 2px; +} +.menuItem .header a { +border-bottom: 1px solid #b3b3b3; +} +.td { +padding: 10px 5px ; +} +.forumheader4, .forumheader5 { +padding: 10px 5px ; +} + */ \ No newline at end of file diff --git a/tests/_data/testcore/theme.php b/tests/_data/testcore/theme.php new file mode 100644 index 000000000..323f996e8 --- /dev/null +++ b/tests/_data/testcore/theme.php @@ -0,0 +1,556 @@ +'); +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 ' + + + + '; +} +// [layout] +$layout = '_default'; +$HEADER = ' +
    +
    +
    + + +
    +
    + +
    + {SEARCH} +
    +
    +
    + +
    +
    +
    + {SETSTYLE=flatlinks} + {LINKSTYLE=flatlinks} + {SITELINKS=flat:2} + {SETSTYLE=bottmomenus} + {MENU=1} +
    +
    + {MENU=5} +'; +$FOOTER = ' + {MENU=6} +
    +
    +
    +
    +
    +
    + {MENU=2} +
    +
    + {MENU=4} +
    +
    + {MENU=3} +
    +
    +
    +
    + + +
    +'; +$CUSTOMHEADER['HOME'] = ' +
    +
    +
    + + +
    +
    + +
    + {SEARCH} +
    +
    +
    + +
    +
    + {SETSTYLE=wm} + {WMESSAGE} + +'; +$CUSTOMFOOTER['HOME'] = ' + +
    +
    +
    +
    +
    + {SETSTYLE=bottmomenus} + {MENU=2} +
    +
    + {MENU=4} +
    +
    + {MENU=3} +
    +
    +
    +
    + + +
    +'; +$CUSTOMPAGES['HOME'] = SITEURL.'index.php'; +$CUSTOMHEADER['FULL'] = ' +
    +
    +
    + + +
    +
    + +
    + {SEARCH} +
    +
    +
    + +
    +
    + {SETSTYLE=full} +'; +$CUSTOMFOOTER['FULL'] = ' +
    +
    +
    +
    + + +
    +'; +$CUSTOMPAGES['FULL'] = 'forum/ '; +// [tablestyle] +function tablestyle($caption, $text, $mode=''){ + global $style; + + if($mode == 'admin_update') + { + echo ' + + '.$caption.' + + + '; + return; + } + +switch ($style) { + + case 'wm': + echo ' +
    + '.$text.' +
    + '; + break; + case 'flatlinks': + echo ' +
    +
    + '.$text.' +
    +
    + '; + break; + case 'full': + echo ' +
    +
    + '.$caption.' +
    +
    + '.$text.' +
    +
    + '; + break; + case 'rightcol': + echo ' +
    +
    + '.$caption.' +
    +
    + '.$text.' +
    +
    + '; + break; + case 'leftcol': + echo ' +
    +
    +
    + '.$caption.' +
    +
    +
    + '.$text.' +
    +
    + '; + break; + case 'bottmomenus': + echo ' +
    +
    + '.$caption.' +
    +
    + '.$text.' +
    +
    + '; + break; + default: + echo ' +
    +
    + '.$caption.' +
    +
    + '.$text.' +
    +
    + '; + break; + } +} +define('THEME_DISCLAIMER', '
    '.LAN_THEME_1.''); +define('ICONSTYLE', 'float: left; border:0'); +define('COMMENTLINK', LAN_THEME_2); +define('COMMENTOFFSTRING', LAN_THEME_3); +define('PRE_EXTENDEDSTRING', '
    '); +define('EXTENDEDSTRING', LAN_THEME_4); +define('POST_EXTENDEDSTRING', '
    '); +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"] = '
    '; +$sc_style["NEWSIMAGE"]["post"] = '
    '; +$sc_style["NEWSCOMMENTS"]["pre"] = '
    '; +$sc_style["NEWSCOMMENTS"]["post"] = '
    '; +//[newsstlyle] +$NEWSSTYLE = ' +
    +
    +
    +
    + {NEWSTITLE} +
    +
    +
    +
    + {NEWSDATE=short}  '.LAN_THEME_9.' {NEWSAUTHOR} +
    +
    +
    + {NEWSIMAGE} + {NEWSBODY} {EXTENDED} +
    +
    +
    +
    + {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS} +
    + {NEWSCOMMENTS} +
    +
    +
    + '; +$NEWSLISTSTYLE = ' +
    +
    +
    +
    + {NEWSTITLE} +
    +
    +
    +
    + {NEWSDATE=short}  '.LAN_THEME_9.' {NEWSAUTHOR} +
    +
    +
    + {NEWSIMAGE} + {NEWSBODY} {EXTENDED} +
    +
    +
    +
    + {EMAILICON} {PRINTICON} {PDFICON} {ADMINOPTIONS} +
    + {NEWSCOMMENTS} +
    +
    +
    +'; +$NEWSARCHIVE =' +
    + + + + +
    +
    {ARCHIVE_BULLET} {ARCHIVE_LINK} '.LAN_THEME_9.' {ARCHIVE_AUTHOR} - {ARCHIVE_DATESTAMP} '.LAN_THEME_8.' {ARCHIVE_CATEGORY}
    +
    +
    +'; +//Render news categories on the bottom of the page +$NEWSCAT = ' + + + + + + + +
    +
    + {NEWSCATEGORY} +
    +
    + + + + +
    +
    +'; +//Loop for news items in category +$NEWSCAT_ITEM = ' +
    +   {NEWSTITLELINK} +
    +'; +// 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'] = ""; + $linkstyleset['linkstart'] = "
  • "; + $linkstyleset['linkend'] = "
  • "; + $linkstyleset['linkstart_hilite'] = "
  • "; + $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'] = ''; + $linkstyleset['linkstart'] = '
  • '; + $linkstyleset['linkend'] = '
  • '; + $linkstyleset['linkstart_hilite'] = "
  • "; + $linkstyleset['linkclass_hilite'] = "current"; + break; + default: // if no LINKSTYLE defined + $linkstyleset['linkdisplay'] = 1; + define('PRELINK', ''); + define('POSTLINK', ''); + define('LINKSTART', ' '); + define('LINKSTART_HILITE', ' '); + define('LINKEND', '
    '); + define('LINKALIGN', 'left'); + } +return $linkstyleset; +} + define('BULLET', 'bullet.png'); +// Chatbox post style +$CHATBOXSTYLE = "
    {USERNAME} {TIMEDATE}
    {MESSAGE}
    "; +// Comment post style +$sc_style["REPLY"]["pre"] = ''; +$sc_style["REPLY"]["post"] = ''; +$sc_style["COMMENTEDIT"]["pre"] = ''; +$sc_style["COMMENTEDIT"]["post"] = ''; +$sc_style["JOINED"]["post"] = '
    '; +$sc_style["LOCATION"]["post"] = '
    '; +$sc_style["RATING"]["post"] = '

    '; +$sc_style["COMMENT"]["post"] = "
    "; +$COMMENTSTYLE = ' +
    + + + + + {REPLY} + + + + +{COMMENTEDIT} +
    + '.LAN_THEME_9.' {USERNAME} '.LAN_THEME_8.' {TIMEDATE} +
    +
    + {AVATAR} +
    + + {JOINED}{COMMENTS}{LOCATION}{IPADDRESS} + +
    + {COMMENT} +
    +
    +'; +// Chatbox post style +$CHATBOXSTYLE = "
    {USERNAME} {TIMEDATE}
    {MESSAGE}
    "; +$SEARCH_SHORTCODE = ' +
    + + +
    +'; +?> \ No newline at end of file diff --git a/tests/_data/testcore/usersettings_template.php b/tests/_data/testcore/usersettings_template.php new file mode 100644 index 000000000..668f44298 --- /dev/null +++ b/tests/_data/testcore/usersettings_template.php @@ -0,0 +1,213 @@ + +".LAN_CUSTOMTITLE.": + +"; +$sc_style['CUSTOMTITLE']['post'] = ""; + +$sc_style['PASSWORD1']['pre'] = " + + ".LAN_152."
    ".LAN_401." + +"; + +$sc_style['PASSWORD2']['pre'] = " + + + + + ".LAN_153."
    ".LAN_401." + +"; +$sc_style['PASSWORD2']['post'] = " + + +"; + +$sc_style['PASSWORD_LEN']['pre'] = "
    (".LAN_SIGNUP_1." "; +$sc_style['PASSWORD_LEN']['post'] = " ".LAN_SIGNUP_2.")"; + +$sc_style['USERCLASSES']['pre'] = " +".LAN_USET_5.":".req($pref['signup_option_class'])." +
    ".LAN_USET_6." + +"; +$sc_style['USERCLASSES']['post'] = ""; + +$sc_style['AVATAR_UPLOAD']['pre'] = " +".LAN_415."
    + +"; +$sc_style['AVATAR_UPLOAD']['post'] = ""; + +$sc_style['PHOTO_UPLOAD']['pre'] = " + +".LAN_425." + + + +".LAN_414."
    ".LAN_426." + +"; +$sc_style['PHOTO_UPLOAD']['post'] = ""; + + +$sc_style['SIGNATURE']['pre'] = " ".LAN_USET_8." + + ".LAN_120.req($pref['signup_option_signature'])." + "; + + +$sc_style['SIGNATURE']['post'] = "
    "; + +$sc_style['SIGNATURE_HELP']['pre'] = ""; +$sc_style['SIGNATURE_HELP']['post'] = " "; + + +$sc_style['XUP']['pre'] = " + +".LAN_435." + + +".LAN_433."
    ".LAN_434." + +"; +$sc_style['XUP']['post'] = ""; + +$USER_EXTENDED_CAT = "{CATNAME}"; +$USEREXTENDED_FIELD = " + + +{FIELDNAME} + + +{FIELDVAL} {HIDEFIELD} + + +"; +$REQUIRED_FIELD = "{FIELDNAME} *"; + +$USERSETTINGS_EDIT = " +
    + + + + + + + + + + + + + + + + + + + + + + {CUSTOMTITLE} + + {PASSWORD1} + {PASSWORD_LEN} + {PASSWORD2} + + + + + + + + + + + + {USERCLASSES} + {USEREXTENDED_ALL} + + + {SIGNATURE=cols=58&rows=4} + {SIGNATURE_HELP} + + + + + + + + + + + + + + + + + + + + + + + + + + {AVATAR_UPLOAD} + {PHOTO_UPLOAD} + {XUP} + + + + +
    ".LAN_418."
    ".LAN_7."
    ".LAN_8."
    + {USERNAME} +
    ".LAN_9."
    ".LAN_10."
    + {LOGINNAME} +
    ".LAN_308.req($pref['signup_option_realname'])." + {REALNAME} +
    ".LAN_112.req(!$pref['disable_emailcheck'])." + {EMAIL} +
    ".LAN_113."
    ".LAN_114."
    + {HIDEEMAIL=radio} + +
    ".LAN_122.req($pref['signup_option_timezone'])." + {TIMEZONE} +
    ".LAN_420."
    ".LAN_404.($pref['im_width'] || $pref['im_height'] ? "
    ".($pref['im_width'] ? MAX_AVWIDTH.$pref['im_width']." pixels. " : "").($pref['im_height'] ? MAX_AVHEIGHT.$pref['im_height']." pixels." : "") : "")."
    ".LAN_422.req($pref['signup_option_image'])."
    ".LAN_423."
    + {AVATAR_REMOTE} +
    ".LAN_421."
    ".LAN_424."
    + {AVATAR_CHOOSE} +
    +
    + "; + + +?> \ No newline at end of file diff --git a/tests/_data/testkubrick/images/01_linkbg1.gif b/tests/_data/testkubrick/images/01_linkbg1.gif new file mode 100644 index 000000000..d971439c2 Binary files /dev/null and b/tests/_data/testkubrick/images/01_linkbg1.gif differ diff --git a/tests/_data/testkubrick/images/01_linkbg2.gif b/tests/_data/testkubrick/images/01_linkbg2.gif new file mode 100644 index 000000000..c7f875075 Binary files /dev/null and b/tests/_data/testkubrick/images/01_linkbg2.gif differ diff --git a/tests/_data/testkubrick/images/bar.jpg b/tests/_data/testkubrick/images/bar.jpg new file mode 100644 index 000000000..09b4da58f Binary files /dev/null and b/tests/_data/testkubrick/images/bar.jpg differ diff --git a/tests/_data/testkubrick/images/bullet2.gif b/tests/_data/testkubrick/images/bullet2.gif new file mode 100644 index 000000000..cb7cb2b9c Binary files /dev/null and b/tests/_data/testkubrick/images/bullet2.gif differ diff --git a/tests/_data/testkubrick/images/kubrickbg.jpg b/tests/_data/testkubrick/images/kubrickbg.jpg new file mode 100644 index 000000000..ca66cdc27 Binary files /dev/null and b/tests/_data/testkubrick/images/kubrickbg.jpg differ diff --git a/tests/_data/testkubrick/images/kubrickbgcolor.jpg b/tests/_data/testkubrick/images/kubrickbgcolor.jpg new file mode 100644 index 000000000..b6875ba48 Binary files /dev/null and b/tests/_data/testkubrick/images/kubrickbgcolor.jpg differ diff --git a/tests/_data/testkubrick/images/kubrickbgwide.jpg b/tests/_data/testkubrick/images/kubrickbgwide.jpg new file mode 100644 index 000000000..c8d04ed80 Binary files /dev/null and b/tests/_data/testkubrick/images/kubrickbgwide.jpg differ diff --git a/tests/_data/testkubrick/images/kubrickfooter.jpg b/tests/_data/testkubrick/images/kubrickfooter.jpg new file mode 100644 index 000000000..d47c7a645 Binary files /dev/null and b/tests/_data/testkubrick/images/kubrickfooter.jpg differ diff --git a/tests/_data/testkubrick/images/kubrickheader.jpg b/tests/_data/testkubrick/images/kubrickheader.jpg new file mode 100644 index 000000000..806b363e6 Binary files /dev/null and b/tests/_data/testkubrick/images/kubrickheader.jpg differ diff --git a/tests/_data/testkubrick/images/tileage.jpg b/tests/_data/testkubrick/images/tileage.jpg new file mode 100644 index 000000000..7985fffdd Binary files /dev/null and b/tests/_data/testkubrick/images/tileage.jpg differ diff --git a/tests/_data/testkubrick/index.html b/tests/_data/testkubrick/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/tests/_data/testkubrick/languages/English.php b/tests/_data/testkubrick/languages/English.php new file mode 100644 index 000000000..48d7dad67 --- /dev/null +++ b/tests/_data/testkubrick/languages/English.php @@ -0,0 +1,29 @@ +jalist & Que, Based on original theme by Michael Heilemann (http://binarybonsai.com/kubrick/. )."); +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'); + + +?> \ No newline at end of file diff --git a/tests/_data/testkubrick/preview.jpg b/tests/_data/testkubrick/preview.jpg new file mode 100644 index 000000000..161e88d39 Binary files /dev/null and b/tests/_data/testkubrick/preview.jpg differ diff --git a/tests/_data/testkubrick/style.css b/tests/_data/testkubrick/style.css new file mode 100644 index 000000000..32946ba68 --- /dev/null +++ b/tests/_data/testkubrick/style.css @@ -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; +} + diff --git a/tests/_data/testkubrick/theme.js b/tests/_data/testkubrick/theme.js new file mode 100644 index 000000000..a96349038 --- /dev/null +++ b/tests/_data/testkubrick/theme.js @@ -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 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); + diff --git a/tests/_data/testkubrick/theme.php b/tests/_data/testkubrick/theme.php new file mode 100644 index 000000000..d88b4ebf2 --- /dev/null +++ b/tests/_data/testkubrick/theme.php @@ -0,0 +1,147 @@ +This theme is intended for minimilist blog sites."; +define("STANDARDS_MODE", TRUE); +$xhtmlcompliant = TRUE; +$csscompliant = TRUE; +define("IMODE", "lite"); +define("THEME_DISCLAIMER", "
    ".LAN_THEME_1.""); + +if(!defined("e_THEME")){ exit; } + +$register_sc[]= "UL"; // register shortcode ul.sc for inclusion. + +// [layout] + +$layout = "_default"; + +$HEADER = "
    + +
    "; + +$FOOTER = " +
    + +
    + +
    +"; + +$CUSTOMHEADER = "
    + +
    "; + + +$CUSTOMFOOTER = " +
    +
    + +
    +"; + +$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 = " +

    {NEWSTITLE}

    +".LAN_THEME_6." {NEWSDATE} | ".LAN_THEME_7." {NEWSAUTHOR} +
    +{NEWSBODY} +{EXTENDED} +
    +
    +{NEWSCOMMENTS}{TRACKBACK} +
    +
    "; +define("ICONSTYLE", "float: left; border:0"); +define("COMMENTLINK", LAN_THEME_3); +define("COMMENTOFFSTRING", LAN_THEME_2); +define("PRE_EXTENDEDSTRING", "

    [ "); +define("EXTENDEDSTRING", LAN_THEME_4); +define("POST_EXTENDEDSTRING", " ]
    "); +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 "

    $caption

    \n
    $text

    \n"; +} + +$COMMENTSTYLE = " + + + + + +
    {USERNAME}
    {TIMEDATE}
    {AVATAR}{REPLY}
    {COMMENT} {COMMENTEDIT}
    "; + + +$CHATBOXSTYLE = " + +{USERNAME} +
    +{MESSAGE} +
    +
    "; + +?> \ No newline at end of file diff --git a/tests/_data/testkubrick/ul.sc b/tests/_data/testkubrick/ul.sc new file mode 100644 index 000000000..99536f0df --- /dev/null +++ b/tests/_data/testkubrick/ul.sc @@ -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."
      "; // Leaf +$ulmenu = "\n".POSTLINK; // Leaf +$ulmenu .= "
    "; // Kubrick +return $ulmenu; \ No newline at end of file diff --git a/tests/unit/e_admin_logTest.php b/tests/unit/e_admin_logTest.php new file mode 100644 index 000000000..73e1be5c5 --- /dev/null +++ b/tests/unit/e_admin_logTest.php @@ -0,0 +1,136 @@ +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() + { + + } +*/ + + + + } diff --git a/tests/unit/e_menu_layoutTest.php b/tests/unit/e_menu_layoutTest.php new file mode 100644 index 000000000..ffb9a610d --- /dev/null +++ b/tests/unit/e_menu_layoutTest.php @@ -0,0 +1,152 @@ +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]); + } + + + } + + + + + } + + + + + }