All pastes #85949 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-07-12 10:19 UTC
rendered paste body
<?php

  /*
  -----------------------------------------------------------------------------------------------------------+
  |
  |	e107 website system
  |	GREYCUBE THEME TEMPLATE
  |
  |	©Richard Perry 2004
  |	http://www.greycube.com
  |	code@greycube.com
  |
  +----------------------------------------------------------------------------------------------------------+
  */

require_once(THEME."gc_custom_login.php"); // DEFINE GC_CUSTOM_LOGIN


//[themeinfo]

$themename    = "GC TEMPLATE";
$themeversion = "1.0";
$themeauthor  = "Richard Perry";
$themedate    = "01/01/2005";
$themeinfo    = "<a href='http://www.greycube.com'>GREYCUBE.com</a>";
define("THEME_DISCLAIMER", "<br /><br />Template by GREYCUBE.com");


//[layout]

$layout = "_default";

$HEADER = "

	<table cellpadding='0' cellspacing='3' class='topborder' style='width:100%'>
		<tr>
			<td style='text-align:center; vertical-align:top'>".GC_CUSTOM_LOGIN."</td>
		</tr>
	</table>

	<table cellpadding='0' cellspacing='0' class='topborder' style='width:100%; background-color:#E3E6E5'>
		<tr>
			<td>
				<object type='application/x-shockwave-flash' data='".THEME."banner.swf' width='100%' height='100px'>
					<param name='movie' value='".THEME."banner.swf' />
					<param name='bgcolor' value='#E3E6E5' />
				</object>
			</td>
		</tr>
	</table>

	<table cellpadding='0' cellspacing='0' border='0' style='width:100%; margin-top:5px'>
		<tr>
			<td style='width:20%; vertical-align:top;'>
				{SITELINKS=menu}
				{MENU=1}
			</td>

			<td style='width:60%; vertical-align:top;'>
";

$FOOTER = "
				".GC_CUSTOM_LOGIN_FORUM."
			</td>

			<td style='width:20%; vertical-align:top'>
				{MENU=2}
			</td>
		</tr>
	</table>

	<table style='width:100%'>
		<tr>
			<td style='width:100%; vertical-align:top'>
				<br />
				{MENU=3}
			</td>
		</tr>

		<tr>
			<td style='text-align:center'>
				<br />
				{SITEDISCLAIMER}
				<br /><br />
			</td>
		</tr>		
	</table>
";


//[newsstyle]

$NEWSSTYLE = "

	<div style='cursor:pointer' onclick=\"expandit('exp_news_{NEWSID}')\">
	<table cellpadding='0' cellspacing='0' border='0'>
		<tr>
			<td class='top_left'><img src='".THEME."images/blank.gif' width='14' height='25' alt='' class='ffimgfix' /></td>
			<td class='top_middle' style='width:100%;white-space:nowrap'>
				{NEWSTITLE}
			</td>
			<td class='top_right'><img src='".THEME."images/blank.gif' width='16' height='25' alt='' class='ffimgfix' /></td>
		</tr>
	</table>
	</div>

	<div id='exp_news_{NEWSID}'>
	<table cellpadding='0' cellspacing='0' border='0'>
		<tr>
			<td class='middle_left'><img src='".THEME."images/blank.gif' width='8' height='10' alt='' /></td>
			<td class='middle_middle' style='width:100%'>
				{NEWSBODY}
				{EXTENDED}
				<br />
				<div class='divide_news' style='width:100%;white-space:nowrap'>
					<img src='".THEME."images/blank.gif' width='10' height='14' alt='' />
				</div>
				<div class='alttd' style='text-align:right'>
					<span style='white-space:nowrap'>Posted by {NEWSAUTHOR} on </span>
					<span style='white-space:nowrap'>{NEWSDATE}</span>
					<span style='white-space:nowrap'> | {NEWSCOMMENTS}</span>
				</div>
			</td>
			<td class='middle_right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' /></td>
		</tr>
	</table>
	</div>
	
	<table cellpadding='0' cellspacing='0'  border='0'>
		<tr>
			<td class='bottom_left'><img src='".THEME."images/blank.gif' width='14' height='14' alt='' class='ffimgfix' /></td>
			<td class='bottom_middle' style='width:100%'><img src='".THEME."images/blank.gif' width='10' height='14' alt='' class='ffimgfix' /></td>
			<td class='bottom_right'><img src='".THEME."images/blank.gif' width='16' height='14' alt='' class='ffimgfix' /></td>
		</tr>
	</table>
";


//[newsbits]

define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", "Read/Post Comment: ");
define("COMMENTOFFSTRING", "Comments are Off");
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", "Read the rest ...");
define("POST_EXTENDEDSTRING", " ]<br />");
define("ICONMAIL", "iconmail.png");
define("ICONPRINT", "iconprint.png");


//[mainlinkstyle]

define(PRELINK, "");
define(POSTLINK, "");
define(LINKSTART, "<img src='".THEME."images/bullet2.gif' alt='' /> ");
define(LINKEND, "<br />");
define(LINKDISPLAY, 2);
define(LINKALIGN, "left");


//[menustyle]

function tablestyle($caption, $text)
{
  global $expand_menu_counter;
  $expand_menu_counter += 1; 

  echo "
	<div style='cursor:pointer' onclick=\"expandit('exp_menu_$expand_menu_counter')\">
	<table cellpadding='0' cellspacing='0'>
		<tr>
			<td class='top_left'><img src='".THEME."images/blank.gif' width='14' height='25' alt='' class='ffimgfix' /></td>
			<td class='top_middle' style='width:100%;white-space:nowrap'>".$caption."</td>
			<td class='top_right'><img src='".THEME."images/blank.gif' width='16' height='25' alt='' class='ffimgfix' /></td>
		</tr>
	</table>
	</div>
	
	<div id='exp_menu_$expand_menu_counter'>
	<table cellpadding='0' cellspacing='0'>
		<tr>
			<td class='middle_left'><img src='".THEME."images/blank.gif' width='8' height='10' alt='' /></td>
			<td class='middle_middle' style='width:100%'>".$text."</td>
			<td class='middle_right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' /></td>
		</tr>
	</table>
	</div>

	<table cellpadding='0' cellspacing='0'>
		<tr>
			<td class='bottom_left'><img src='".THEME."images/blank.gif' width='14' height='14' alt='' class='ffimgfix' /></td>
			<td class='bottom_middle' style='width:100%'><img src='".THEME."images/blank.gif' width='10' height='14' alt='' class='ffimgfix' /></td>
			<td class='bottom_right'><img src='".THEME."images/blank.gif' width='16' height='14' alt='' class='ffimgfix' /></td>
		</tr>
	</table>
	
	";
}


//[pollstyle]

$POLLSTYLE = <<< EOF
<b> {QUESTION} </b>
<br /><br />
{OPTIONS=<span class='alttd'>OPTION</span><br />BAR<br /><span class='smalltext'>PERCENTAGE VOTES</span><br /><br />\n}
<div style='text-align:center' class='smalltext'>{VOTE_TOTAL} {COMMENTS}
<br />
</div>
EOF;


//[chatboxstyle]

define(CB_STYLE, $CHATBOXSTYLE);


//[commentstyle]

$COMMENTSTYLE = "
	<div style='text-align:center'>
		<table style='width:100%'>
			<tr>
				<td colspan='2' class='alttd'>
					{SUBJECT}
					<b>
						{USERNAME}
					</b>
 					| 
 					{TIMEDATE}
				</td>
			</tr>
			<tr>
				<td style='width:30%; vertical-align:top'>
					<div class='spacer'>
						{AVATAR}
					</div>
					<span class='smalltext'>
						{LEVEL}
						{COMMENTS}
						<br />
						{JOINED}
						<br />
						{REPLY}
					</span>
				</td>
				<td style='width:70%; vertical-align:top'>
					{COMMENT}
				</td>
			</tr>
		</table>
	</div>
<br />";


//[forumstyle]

if ( strstr(e_SELF,"forum.php") || strstr(e_SELF,"forum_post.php") || strstr(e_SELF,"forum_viewforum.php") || strstr(e_SELF,"forum_viewtopic.php") )
{
  require_once("forum_design.php");
}

?>