Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Header modifikaciju isiemimas

Parašė Mandello· 2010 Bir. 26 13:06:38
#3

Fusion versija V7
<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>&middot;</span>");
require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;

   echo "<table align='center' cellpadding='0' cellspacing='0' class='head'>\n<tr><td align='right' width='1023'>";echo "</td></tr></table>";echo "<table align='center' cellpadding='0' cellspacing='0' class='head2'>\n<tr><td align='right' width='50'>";echo "</td><td align='right' width='350'></td><td align='right' width='215'>";echo "</td><td align='right' width='240'>";
   if (iMEMBER) {
   if ($userdata['user_avatar'] != "") {
   echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\" style=\"padding-right: 10px; padding-left: 35px;\"><tr>\n";
   echo "<td align='center' height='1%'>";
   echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' hight='70' border='0' alt=''></td>";
   echo "</table></center>";
   } else {
   echo"<table><tr><td></td></tr></table>";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='a'>Redaguoti profil&#303;</a><br>
   <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='a'>&#381;inut&#279;s</a><br>
   <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='a'>Mano profilis</a><br>
   <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='a'>Nari&#371; sara&#353;as</a><br>";
   echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
   <td></td></tr></table>";
   echo "\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
   echo"<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."','_self' class='a'>Administracija</a><br>\n";
   }{echo " ";
   echo"<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes','_self' class='a'>Atsijungti</a></div>\n";
   }
   tablebreak();
   } else {
   echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
   <input type='text' name='user_name' class='pass' value='vardas' onBlur=\"if(this.value=='') this.value='vardas';\" onFocus=\"if(this.value=='vardas') this.value='';\" ><br>
   <img src='".THEME."images/bg_l.png' alt=''><br>
   <input type='password' name='user_pass' class='pass' value='slapta&#382;odis' onBlur=\"if(this.value=='') this.value='slapta&#382;odis';\" onFocus=\"if(this.value=='slapta&#382;odis') this.value='';\" ><br>
   <input type='checkbox' name='remember_me' value='y' title='Prisiminti mane' style='vertical-align:middle;'><span style='font-size: 10px; color:#ffffff;'>Prisiminti mane</span>
   <input type='submit' name='login' value='' class='inne'>
   </form>\n";
   if ($settings['enable_registration']) {
   echo "<img src='".THEME."images/bg_l.png' alt=''><br>
   <a href='".BASEDIR."register.php' >
   <span style='font-size: 9px; font-family: sans-serif;' ><b>Registracija | </b></a></span>
   <a href='".BASEDIR."lostpassword.php' >
   <span style='font-size: 9px; font-family: sans-serif;' ><b>prisimink slapta&#382;odi!</b></a></span>\n";
   }
   echo "</div>\n";
   }
   echo "</td><td align='right' width='165'>";echo "</td></tr></table>";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='1024' class='sub-header'>\n<tr>\n";
   echo "<td align='center' width='0'>";
   include THEME."code/nuorodos.php";
   echo "</tr>\n</table>\n";
   echo "<table align='center' cellpadding='0' cellspacing='0' width='956' class='sub'>\n<tr>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='956' align='center' class='content'><tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top' width='226'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top' width='226'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='956' align='center' class='footer'>\n<tr>\n";
   echo "<td class='userinfo1' style='padding-left:150px; padding-top:50px;'>\n";
   echo "\n";
   echo '<td class="userinfo2" style="padding-right:200px; padding-top:38px;"><a target="_blank" href="http://www.hey.lt/details.php?id=LRPG"><img width=88 height=31 border=0 src="//www.hey.lt/count.php?id=LRPG" alt="Hey.lt - Nemokamas lankytoju skaitliukas"></a></td>\n';
   echo "</td>\n</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";
}

function render_news($subject, $news, $info) {
   
   
}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='17' height='39' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main3'>$subject</td>";
   echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='17' height='39' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
   echo "<div style='margin-top:5px'>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><br>";
   echo "<td class='infobar2'>".articleposter($info," &middot;")."</td>";
   echo "<td align='right' class='infobar2'>";
    echo articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td></tr></table></div></td>";
   echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "</tr><tr>";
   echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function opentable($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'>";
   echo "<tr><td class='panel-left2'><img src='".THEME."images/blank.gif' width='17' height='39' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main2'>$title</td>";
   echo "<td class='panel-right2'><img src='".THEME."images/blank.gif' width='17' height='39' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='table-body'><br>\n";
}

function closetable() {

   echo "</td>";
   echo "<td class='border-right2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bmain2'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
   echo "<td class='border-bright2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

function openside($title) {

   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='17' height='35' alt='' style='display:block'></td>";
   echo "<td width='100%' class='panel-main'>$title</td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='17' height='35' alt='' style='display:block'></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
   echo "<td class='side-body'><br>\n";
}

function closeside() {

   global $panel_collapse;
   if ($panel_collapse == true) { echo "</div>\n"; }
   echo "</td>";
   echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
   echo "<tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='10' height='22' alt='' style='display:block'></td>";
   echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='206' height='22' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='10' height='22' alt='' style='display:block'></td>";
   echo "</tr></table><br>\n";
}

?>



Redagavo Mandello· 2010 Bir. 26 13:06:02