peki tamam teşekkür ederim temanın tpl_main kodlarını ekliyorum
<?php
/*
+--------------------------------------------------------------------------
| MkPortal "default" Portal Template
| ========================================
| by Meo aka Luponero <Amedeo de longis>
| Don K. Colburn <visiblesoul.net>
| (c) 2003-2008 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
class tpl_main {
//Meo: Changed in C 0.1.b (added javascript siteurl var and $js variable)
function view_header($title, $css, $js, $pmk_js, $board_header) {
global $mklib, $mklib_board;
//$css = $mklib_board->import_css();
return <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- begin document head -->
<head>
<meta http-equiv="content-type" content="text/html; charset={$mklib->charset}" />
<meta name="generator" content="MKPortal" />
<meta http-equiv="Pragma" content="no-cache" />
<meta content="no-cache" http-equiv="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
{$title}
{$css}
{$board_header}
<script type="text/javascript">
mkportalurl = '$mklib->siteurl/';
var MKAJAX_IMAGES_PATH = "{$mklib->images}/mkajax/";
var MKAJAX_SITEPATH = "{$mklib->sitepath}";
</script>
{$js}
{$pmk_js}
</head>
<body onload="javascript:GetPos()">
<a name="top"></a>
<!-- end document head -->
EOF;
}
function view_offline() {
global $mklib;
return <<<EOF
<!-- begin offline notice -->
<div class="bghighlight2 mktxtcontr" style="font-size: 18px; font-weight: bold; padding: 5px">{$mklib->lang['offline']}</div>
<!-- end offline notice -->
EOF;
}
function open_main($mainwidth) {
global $mklib;
return <<<EOF
<!-- begin open main table -->
<div id="mkwrapper" style="width: {$mainwidth};">
<table class="tabmain" width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<!-- end open main table -->
EOF;
}
function view_logo() {
global $mklib;
return <<<EOF
<!-- begin logostrip -->
<tr>
<td id="mklogostrip" style="background-image: url('$mklib->images/sf_logo.gif')" width="100%">
<a href="$mklib->siteurl/index.php"><img src="$mklib->images/logo.gif" border="0" alt="" /></a>
</td>
</tr>
<!-- end logostrip -->
EOF;
}
function view_linkbar($row_link) {
global $mklib, $mkportals;
return <<<EOF
<!-- begin linkbar -->
<tr>
<td>
<table width="100%" align="center" cellspacing="0" cellpadding="2" border="0">
<tr>
<td class="navigatore" style="padding: 4px;">
$row_link
</td>
</tr>
</table>
</td>
</tr>
<!-- end linkbar -->
EOF;
}
function view_urlo($urlo1, $urlo2) {
global $mklib;
return <<<EOF
<!-- begin shoutbox -->
<tr align="left">
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="urlo" style="background-image: url('$mklib->images/m_sf.gif')" width="100%" valign="bottom" nowrap="nowrap">
{$mklib->lang['urlolast']} - $urlo1
</td>
</tr>
<tr>
<td class="urlo2" colspan="2">$urlo2
</td>
</tr>
</table>
</td>
</tr>
<!-- end shoutbox -->
EOF;
}
//Meo: Changed in C 0.1 for AEF shoutbox
function view_urlo_AEF($urlo1, $urlo2) {
global $mklib;
return <<<EOF
<tr align="left">
<td class="tdglobal" style="width: 100%; padding:0px; border-bottom: 1px solid #DEDCD1;">
<div id="mkshout" class="tdglobal" style="padding:4px; font-size: 10px;">
$urlo2
</div>
</td>
</tr>
EOF;
}
/* deprecated
function view_separator_h() {
global $mklib;
return <<<EOF
<!-- begin horizontal spacer -->
<!-- horizontal spacer
<tr align="center">
<td class="trattini"><img src="$mklib->images/punto_or.gif" width="1" height="1" alt="" />
</td>
</tr> -->
<!-- end horizontal spacer -->
EOF;
}
*/
function open_body() {
global $mklib;
return <<<EOF
<!-- begin open portal body -->
<tr align="center">
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<!-- end open portal body -->
EOF;
}
function view_column_left($blocks) {
global $mklib;
return <<<EOF
<!-- begin left column -->
<td id="menusx" valign="top" align="left">
<div id="menucontents" style="$mklib->menucontents">
<table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;">
{$blocks}
</table>
</div>
<div id="menucloseds" style="$mklib->menucloseds">
</div>
</td>
<!-- end left column -->
EOF;
}
function view_separator_v() {
global $mklib;
return <<<EOF
EOF;
}
function view_column_center($blocks) {
global $mklib;
return <<<EOF
<!-- begin center column -->
<td valign="top" align="left" width="100%">
<table cellpadding="0" cellspacing="3" border="0" width="100%">
{$blocks}
</table>
</td>
<!-- end center column -->
EOF;
}
function view_column_right($blocks) {
global $mklib;
return <<<EOF
<!-- begin right column -->
<td id="menudx" valign="top" align="left">
<div id="menucontentr" style="$mklib->menucontentr">
<table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;">
{$blocks}
</table>
</div>
<div id="menuclosedr" style="$mklib->menuclosedr">
</div>
</td>
<!-- end right column -->
EOF;
}
function close_body() {
global $mklib;
return <<<EOF
<!-- begin close portal body -->
</tr>
</table>
</td>
</tr>
<!-- end close portal body -->
EOF;
}
function close_main() {
global $mklib;
return <<<EOF
<!-- begin close main table -->
</table>
</td>
</tr>
</table>
</div>
<!-- end close main table -->
EOF;
}
function view_footer($block) {
global $mklib;
return <<<EOF
<!-- begin footer -->
<!-- you can add your credits here -->
<!-- end footer -->
<p align="center">{$block}</p>
<center><a href="http://www.lideron.com/"><font color="#7aaee2"><b> | LiDeR_MC Theme By_SeHz@dE |</b> </font></a> </center>
</body>
</html>
<!-- end footer -->
EOF;
}
function view_block($title, $content) {
global $mklib;
return <<<EOF
<!-- begin block template -->
<tr>
<td valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="tdmenblock" width="1%"><img src="$mklib->images/m_sx.gif" border="0" class="tdmenblock" alt="" />
</td>
<td class="sottotitolo" width="99%" style="background-image: url('$mklib->images/m_sf.gif')" valign="middle" nowrap="nowrap">{$title}
</td>
<td class="tdmenblock" width="1%"><img src="$mklib->images/m_dx.gif" border="0" class="tdmenblock" alt="" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tablemenu" width="100%">
<table border="0" width="100%" cellpadding="1" cellspacing="1">
{$content}
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdspacer">
</td>
</tr>
<!-- end block template -->
EOF;
}
//Note: Link icon img code is in functions.php (function header)
function row_link( $icon, $url, $text) {
global $mklib;
return <<<EOF
<!-- begin link template -->
{$icon} <a class="uno" $url title="$text">$text</a>
<!-- end link template -->
EOF;
}
//Note: Link icon img code is in block files
function row_link_block($icon, $url, $text) {
global $mklib;
return <<<EOF
<!-- begin block link template -->
{$icon} <a class="uno" $url title="$text">$text</a>
<!-- end block link template -->
EOF;
}
function view_quote($content, $author) {
global $mklib;
return <<<EOF
<!-- begin mkportal quote -->
<table class="mkquotetable" style="margin-top: 5px; margin-bottom: 5px; width: auto;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="bottom">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="26"><img src="$mklib->images/quote/mkquote_balloon_l.gif" height="23" width="26" alt="" /></td>
<td style="background-image: url($mklib->images/quote/mkquote_balloon_bg.gif); background-position: center; padding-bottom: 3px;" valign="middle" nowrap="nowrap">
<span class="mkquoteball"><b>{$mklib->lang['editor_quote']}</b> $author</span>
</td>
<td valign="top"><img src="$mklib->images/quote/mkquote_balloon_r.gif" height="23" width="26" alt="" /></td>
</tr>
</table>
</td>
<td align="right" valign="bottom" width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="background-image: url($mklib->images/quote/mkquote_top_bg.gif);" valign="middle" width="100%"></td>
<td align="left" valign="top"><img src="$mklib->images/quote/mkquote_top_r.gif" height="23" width="13" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="background-image: url($mklib->images/quote/mkquote_left_bg.gif);" width="13"></td>
<td class="mkquotetext" bgcolor="#ffffff" valign="top" width="100%">
<i>$content</i>
</td>
<td style="background-image: url($mklib->images/quote/mkquote_right_bg.gif);" width="13"></td>
</tr>
<tr>
<td valign="bottom" height="9" width="13"><img src="$mklib->images/quote/mkquote_bot_l.gif" alt="" /></td>
<td style="background-image: url($mklib->images/quote/mkquote_bot_bg.gif);" width="100%"></td>
<td valign="bottom" height="9" width="13"><img src="$mklib->images/quote/mkquote_bot_r.gif" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end mkportal quote -->
EOF;
}
//Meo: Changed in C 0.1b for AEF shoutbox
function AEF_shoutbox() {
global $mklib;
return <<<EOF
</tr>
<tr style="visibility:hidden">
<td>
<div id="shoutbox" style="left:0px; top:0px; position:absolute; width:700px; visibility:hidden;">
<table width="100%" cellspacing="0" cellpadding="0" id="shbhandle">
<tr>
<td style="background:url($mklib->siteurl/$mklib->forumpath/themes/default/images/dwhl.gif); width:4px;"></td>
<td align="left" style="background:transparent url($mklib->siteurl/$mklib->forumpath/themes/default/images/dwhc.gif) repeat-x scroll 0%; height:27px;"><b>Shout Box</b></td>
<td align="right" style="background:transparent url($mklib->siteurl/$mklib->forumpath/themes/default/images/dwhc.gif) repeat-x scroll 0%; height:27px;"><a href="javascript:hide_shoutbox()"><img src="$mklib->siteurl/$mklib->forumpath/themes/default/images/close.gif" alt="" /></a></td>
<td style="background:url($mklib->siteurl/$mklib->forumpath/themes/default/images/dwhr.gif); width:4px;"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" style="background-color:#F4F4F4; border:solid 1px #CCCCCC;">
<tr>
<td width="100%" valign="top">
<div id="shouts" align="left" style="height:120px; overflow: auto; display: block;"></div>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
function Mk_Editor_Smileys_Pop() {
editor_smileys_pop = window.open("$mklib->sitepath/index.php?ind=urlobox&op=show_emoticons&shouton=1", "Smileys", "resizable=yes, scrollbars=yes, status=no, titlebar=no, width=200,height=400");
editor_smileys_pop.focus();
}
// -->
</script>
<!-- Meo extended editor -->
<form id="mk_shout_editor" name="mk_shout_editor" action="post" style="padding: 0px;">
<table width="100%" cellpadding="0" cellspacing="0" style="background: url({$mklib->images}/buttons/edit_cat.gif); padding: 0px; margin: 0px; border:solid 1px #CCCCCC;">
<tr>
<td align="left" nowrap="nowrap">
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_bold.gif" alt="Bold" title="Bold" name="B" width="20" height="20" onclick="mk_shout_simpletag('B')" />
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_italic.gif" alt="Italic" title="Italic" name="I" width="20" height="20" onclick="mk_shout_simpletag('I')" />
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_underline.gif" alt="Underline" title="Underline" name="U" width="20" height="20" onclick="mk_shout_simpletag('U')" />
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_separator.gif" width="1" height="20" border="0" alt="" />
<select name="ffont" onchange="mk_shout_alterfont(this.options[this.selectedIndex].value, 'FONT')" >
<option value="0">Font</option>
<option value="Arial" style="font-family:Arial">Arial</option>
<option value="Times" style="font-family:Times">Times</option>
<option value="Courier" style="font-family:Courier">Courier</option>
<option value="Impact" style="font-family:Impact">Impact</option>
<option value="Geneva" style="font-family:Geneva">Geneva</option>
<option value="Optima" style="font-family:Optima">Optima</option>
</select>
<select name="fsize" onchange="mk_shout_alterfont(this.options[this.selectedIndex].value, 'SIZE')" >
<option value="0">Size</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<select name="fcolor" onchange="mk_shout_alterfont(this.options[this.selectedIndex].value, 'COLOR')" >
<option value="0">Color</option>
<option value="blue" style="color:blue">Blue</option>
<option value="red" style="color:red">Red</option>
<option value="purple" style="color:purple">Purple</option>
<option value="orange" style="color:orange">Orange</option>
<option value="yellow" style="color:yellow">Yellow</option>
<option value="gray" style="color:gray">Grey</option>
<option value="green" style="color:green">Green</option>
</select>
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_smiley.gif" width="20" height="20" border="0" alt="Smilies" title="Smilies" onclick="Mk_Editor_Smileys_Pop()" />
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_separator.gif" width="1" height="20" border="0" alt="" />
<img style="vertical-align: middle" src="{$mklib->images}/buttons/ed_closetag.gif" height="20" alt="Close all Tags" title="Close all Tags" onclick="mk_shout_closeall()" />
</td>
</tr>
</table>
</form>
<!-- End Meo extended editor -->
<table width="100%" cellspacing="0" cellpadding="0" style="background-color:#F4F4F4; border:solid 1px #CCCCCC;">
<tr>
<td style="padding-left:1px; text-align: left;">
<input type="text" style="width: 520px;" id="addshout" onkeydown="handleshoutkeys(event)" /> <input type="button" onclick="shout();" value="Shout" id="addshoutbut" /> <input type="button" onclick="reloadshoutbox();" value="Reload" />
</td>
</tr>
</table>
</div>
<script type="text/javascript">
Drag.init($("shbhandle"), $("shoutbox"));
</script>
</td>
EOF;
}
// END Changed
}
$Skin = new tpl_main;
?>