Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: kaip padaryti paveiksliuka centre

Parašė arturas97· 2008 Lap. 8 12:11:17
#1

ant 7 fusiono turiu tokia tema,ir noriu kad tas logotipas,saito baneris butu ne kairej o per viduri,kuria kodo dali reikia keisti?


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_BULLET", "<span class=\"bullet\">&middot;</span>");

require_once INCLUDES."theme_functions_include.php";

/**
 * I Don't need for this:
 * function get_head_tags() {}
**/

function render_page($license=false) {
global $settings, $main_style, $locale, $aidlink;

   // Header   
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
   echo "<tr>\n";
   echo "<td class=\"header-left\" rowspan=\"4\"></td>";
   echo "<td class=\"header-top\">\n";
      if(iMEMBER){
         echo "<a href=\"".BASEDIR."edit_profile.php\">".$locale['global_120']."</a> |".
         " <a href=\"".BASEDIR."messages.php\">".$locale['global_121']."</a>".
         (iADMIN ? " | <a href=\"".ADMIN."index.php".$aidlink."\">".$locale['global_123']."</a>" : "").
         " | <a href=\"".BASEDIR."setuser.php?logout=yes\">".$locale['global_124']."</a>\n";
      } else {
         
         echo "<form method=\"post\" action=\"".FUSION_SELF."\" style=\"margin-top:-3px;\">\n";
         echo $locale['global_101']." <input type=\"text\" name=\"user_name\" class=\"textbox\" style=\"width:100px\" />\n";
         echo $locale['global_102']." <input type=\"password\" name=\"user_pass\" class=\"textbox\" style=\"width:100px\" />\n";
         echo "<input type=\"submit\" name=\"login\" value=\"".$locale['global_104']."\" class=\"button\" />\n";
         
         echo ($settings['enable_registration'] ? " | <a href=\"".BASEDIR."register.php\">".$locale['global_107']."</a>\n" : "").
         " | <a href=\"".BASEDIR."lostpassword.php\">".$locale['global_108']."</a>";
         echo "</form>\n";
      }
   echo "</td>";
   echo "<td class=\"header-right\" rowspan=\"4\"></td>";
   echo "</tr><tr>\n";   
   echo "<td class=\"header-logo\">\n";
      echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"height: 100%;\">\n";
      echo "<td>".showbanners()."\n</td>";
      echo "<td align=\"right\" width=\"200\" style=\"width: 200px;\" valign=\"bottom\">\n";
      echo "<form id=\"headsearch\" method=\"get\" action=\"".BASEDIR."search.php\">\n";
      echo "<input type=\"hidden\" name=\"stype\" value=\"news\" />\n";
      echo "<input type=\"text\" name=\"stext\" value=\"Search\" onclick=\"if(this.value=='Search')this.value='';\" onblur=\"if(this.value=='')this.value='Search';\" class=\"headsearchbox\" style=\"width:160px\" />";
      echo "<input type=\"submit\" name=\"submit\" value=\"&rsaquo;\" class=\"headsearchbutton\" style=\"width:20px\" />";
      echo "</form>\n";
      echo "</td></tr></table>";
   echo "</td>";
   echo "</tr><tr>\n";   
   echo "<td class=\"header-navigation-top\">".showsublinks("", "nav-item")."</td>";   
   echo "</tr><tr>\n";   
   echo "<td class=\"header-navigation-bottom\"></td>";   
   echo "</tr>\n";
   echo "</table>\n";
   
   //Content
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"".$main_style."\">\n";
   echo "<tr>\n";
   echo "<td class=\"body-left\" valign=\"top\"></td>";
      if (LEFT) { echo "<td class=\"panels-left\" valign=\"top\">".LEFT."</td>"; }
   echo "<td class=\"body-main\" valign=\"top\">".U_CENTER.CONTENT.L_CENTER."</td>";
      if (RIGHT) { echo "<td class=\"panels-right\" valign=\"top\">".RIGHT."</td>"; }
   echo "<td class=\"body-right\" valign=\"top\"></td>";
   echo "</tr>\n";
   echo "</table>\n";
   
   // Footer
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tr>\n";
   echo "<td class=\"footer-left\"></td>\n";
   echo "<td align=\"left\" class=\"footer-center\">\n";
      echo "<div style=\"float: left;\">".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</div>\n";      
      echo "<div style=\"float: right;\">".showcounter()."</div>\n";
      echo "<div class=\"center\" align=\"center\">BlueStar theme by <a href=\"http://www.burningames.hu\">Burningames</a></div>";
      echo "<div class=\"footer-subbox\">";
      echo stripslashes($settings['footer']);
      if (!$license) { echo "<br />\n".showcopyright(); }
      echo "</div>\n";
   echo "</td>\n";
   echo "<td class=\"footer-right\"></td>\n";   
   echo "</tr>\n";
   echo "</table>\n";

}

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

   echo "<div class=\"news-title\"><h2>".$subject."</h2></div>\n";   
   echo "<div class=\"news-content\">".$news."</div>";
   
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"spacer\">\n";
   echo "<tr>\n";
   echo "<td class=\"fnews-left\"></td>\n";
   echo "<td align=\"center\" class=\"fnews-middle\">\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "<td class=\"fnews-right\"></td>\n";
   echo "</tr>\n";
   echo "</table>\n";

}

function render_article($subject, $article, $info) {
   
   opentable($subject);
   echo "<div class=\"news-content\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>";
   
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"spacer\">\n";
   echo "<tr>\n";
   echo "<td class=\"fnews-left\"></td>\n";
   echo "<td align=\"center\" class=\"fnews-middle\">\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n";
   echo "<td class=\"fnews-right\"></td>\n";
   echo "</tr>\n";
   echo "</table>\n";   
   closetable();
}

function opentable($title) {

   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"opentable-top\">\n";
   echo "<tr>\n";
   echo "<td class=\"title\">".$title."</td>\n";
   echo "</tr>\n";
   echo "</table>\n";
   
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"opentable-body\">\n";
   echo "<tr>\n";
   echo "<td class=\"content\">\n";

}

function closetable() {
   echo "</td>\n";
   echo "</tr>\n";
   echo "</table>\n";

}

function openside($title, $collapse=false, $state="on") {
global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"side-top\">\n";
   echo "<tr>\n";
   echo "<td class=\"title\">".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td align=\"right\">".panelbutton($state, $boxname)."&nbsp;</td>\n";
   }
   echo "</tr>\n";
   echo "</table>\n";
   echo "<table cellpadding=\"3\" cellspacing=\"0\" width=\"100%\" class=\"side-body\">\n<tr>\n";
   echo "<td class=\"body\">\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>