Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: cha.lt tema

Parašė Soo-2· 2008 Sau. 6 17:01:14
#5

function render_header($header_content) {
global $theme_width,$settings;

// viršutinės dalies pradžia

   

echo "<table cellspacing='0' cellpadding='0' >";
echo "<tr>";
echo " <td ><img src='".THEME."images/logo.png'></td>";
echo " <td width='160'></td>";
echo " <td align='right' ><img src='".THEME."images/baner.png'></td>";
echo "</tr></table>";








   

   // virsutinė dalis pasibaigė
echo "<center><table width='960' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'>";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td class='meniu' width='950' background='".THEME."images/virsus/2.png'>";


$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            if ($i != 0) { echo " | \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.">".$data['link_name']."</a>";
            } else {
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."><b>".$data['link_name']."</b></a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? "&nbsp;" : "")."


</td>";
echo "<td class='meniu' align='right' background='".THEME."images/virsus/2.png'>";
echo" </td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table></center>\n";
echo "<table width='967' cellpadding='4' bgcolor='#ffffff' cellspacing='0' align='center' border='0'><tr>";
}






Redagavo Soo-2· 2008 Sau. 6 17:01:27