Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Problema su Meniu

Parašė artasas· 2011 Vas. 15 13:02:49
#3

Ir ka cia reiketu pakeisti:

theme.php :
<?php

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

define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $aidlink, $settings, $main_style, $locale, $userdata;

echo "<table align='center' width='100%' cellspacing='0' cellpadding='0'>
        <tr>
        <td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt='' /></td>
        <td  class='mbody' align='right'><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td class='toplogo'><img src='".THEME."images/logo.jpg' alt='' /></td></tr></table>
        <table width='100%' cellspacing='0' cellpadding='0' border='0'>
        <tr>
        <td class='menuss'>\n";
$separator = " </td><td class='sep'></td><td class='menuss'> ";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   echo "\n";
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " $separator \n"; } else { echo "\n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
   } else {
   echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td><td class='sep'></td><td width='30%' class='pustka'> </td>
   <td class='sep'></td>
        <td class='menus' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
        </tr>
        </table>\n";



//Content
   echo "<table cellpadding='0' cellspacing='0' class='border' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".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'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
        echo "</td><td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt='' /></td>";

//footer
   echo "</tr>\n</table>\n";
   echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr>
   <td class='lefter'><img width='45' src='".THEME."images/lefter.gif' height='1' alt='' /></td>";
   echo "<td class='footer' align='center'>".stripslashes($settings['footer'])."<br/>";
   echo showcopyright();
   echo "<br/><b>gt-cs_Green</b> theme by: <b><a href='http://webmer.pl' target='_blank'>sonar</a> - Converted to v7 by <a target='_blank' href='http://www.kaj-max.dk'>WhoCare</a><br/><br/></b></td>";
        echo "<td class='righter'><img width='45' src='".THEME."images/righter.gif' height='1' alt='' /></td>
        </tr>
        </table>\n";

}

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

global $settings,$locale;


echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05' align='left'>$subject</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11' align='left'>$news<br/><br/>";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td><td class='tresc12'></td></tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt='' /></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt='' /></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt='' /></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt='' />
        </td></tr></table>\n";

}

function render_article($subject, $article, $info) {

global $locale;

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05' align='left'>$subject</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11' align='left'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
        <br/>
        <br/>";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td><td class='tresc12'></td>
   </tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt='' /></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt='' /></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt='' /></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt='' /></td>
   </tr>
</table>\n";

}

function opentable($title) {

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='tresc01'></td>
   <td colspan='3' class='tresc02'></td>
   <td class='tresc03'></td>
   </tr>
   <tr>
   <td class='tresc04'></td>
   <td colspan='3' class='tresc05' align='left'>$title</td>
   <td class='tresc06'></td>
   </tr>
   <tr>
   <td class='tresc07'></td>
   <td colspan='3' class='tresc08'></td>
   <td class='tresc09'></td>
   </tr>
   <tr>
   <td class='tresc10'></td>
   <td colspan='3' class='tresc11' align='left'>\n";

}

function closetable() {

echo "</td>
   <td class='tresc12'></td>
   </tr>
   <tr>
   <td class='tresc13'><img src='".THEME."images/tresc/tresc_13.gif' width='4' height='29' alt='' /></td>
   <td class='tresc14'><img src='".THEME."images/tresc/tresc_14.gif' width='22' height='29' alt='' /></td>
   <td class='tresc15' width='100%'></td>
   <td class='tresc16'><img src='".THEME."images/tresc/tresc_16.gif' width='22' height='29' alt='' /></td>
   <td class='tresc17'><img src='".THEME."images/tresc/tresc_17.gif' width='4' height='29' alt='' /></td>
   </tr>
</table>\n";

}

function openside($title) {

global $p_data;

echo "<table border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='bok01'></td>
   <td colspan='2' class='bok02'></td>
   <td class='bok03'></td>
   </tr>
   <tr>
   <td class='bok04'></td>
   <td colspan='2' class='bok05' align='left'>$title</td>
   <td class='bok06'></td>
   </tr>
   <tr>
   <td class='bok07'></td>
   <td colspan='2' class='bok08'></td>
   <td class='bok09'></td>
   </tr>
   <tr>
   <td class='bok10'></td>
   <td colspan='2' class='bok11' align='left'>\n";

}

function closeside() {

global $p_data;

if ($p_data['panel_side'] == 1) {

  echo "</td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok14'></td>
   <td class='bok15'></td>
   <td class='bok16'></td>
   </tr>
</table>"; }
       
else {

  echo "</td>
   <td class='bok12'></td>
   </tr>
   <tr>
   <td class='bok13'></td>
   <td class='bok17'></td>
   <td class='bok14'></td>
   <td class='bok16'></td>
   </tr>
</table>\n";
}
}
?>