Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Headerio Navigacija

Parašė iSty· 2009 Bal. 14 18:04:22
#1






Norėčiau į šia vietą ikišti kaip nors navigaciją.
Esu pradinokas ant themu, tai norėčiau paklausti - ar būtų imanoma taip padaryti? ir jeigu įmanoma, kaip tai padaryti? ;)

Parašė stygis· 2009 Bal. 14 19:04:10
#2

pasiimk iš kitų temų eilutes

Parašė iSty· 2009 Bal. 14 19:04:03
#3

bėda tame, kad neturiu jau aš tų temu begalybe..
Nemėgėjes ripint tj ir nelaikau, pats geriau piešiu, o gal gali prisekt ta failą, kur yra tos eilutės?

EDIT: Parsisiunčiau, bet nerandu tos eilutės... :?

Redagavo iSty· 2009 Bal. 14 19:04:12

Parašė stygis· 2009 Bal. 14 19:04:17
#4

idėk tos temos theme.php pažiūrėsiu

Parašė iSty· 2009 Bal. 14 19:04:01
#5

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#fff";
$body_bg = "#454545";
$theme_width = "820";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {
global $theme_width;

echo "
<table align=center width=$theme_width height=13 background=".THEME."images/bg1.jpg border=0 cellspacing=0 cellpadding=0>
<tr></tr>
</table>
";
echo "
<table align=center width=$theme_width height=179 background=".THEME."images/header.jpg border=0 cellspacing=0 cellpadding=0>
<tr></tr>
</table>
";
echo "
<table align=center width=$theme_width height=13 background=".THEME."images/bg2.jpg border=0 cellspacing=0 cellpadding=0>
<tr></tr>
</table>
";

echo "
<table align=center width=$theme_width height=44 class='nuorodos1' background=".THEME."images/bg3.jpg cellspacing=0 cellpadding=0>
<tr><td height=25 class='nuorodos2' align=left style='padding-left:20px;'>"; echo showsublinks("&nbsp;&nbsp; ",white); echo "</td></tr>
</table>
";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' >
<tr>
<td>
\n";
}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>
<tr>
<td height='48' background='".THEME."images/footer.png' align='center' class='footer'>".stripslashes($settings['footer'])."<a href='http://php-fusion.co.uk' target='_blank'>Php-fusion</a> | <a href='http://wtfthemes.com' target='_blank'>WTF Themes</a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/vrs2.png' height='35' class='capmain'><img src='".THEME."images/a.png'>&nbsp;&nbsp;$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' background='".THEME."images/capc2.png' height='16' class='news-footer' style='padding-right:20px;'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td background='".THEME."images/vrs2.png' height='35' class='capmain'><img src='".THEME."images/a.png'>&nbsp;&nbsp;$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' background='".THEME."images/capc2.png' height='16' class='news-footer' style='padding-right:10px;'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;");
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background='".THEME."images/vrs2.png' height='35' class='capmain'><img src='".THEME."images/a.png'>&nbsp;&nbsp;$title</td>
</tr>
<tr>
<td class='main'>\n";

}

function closetable() {

echo "</td>
</tr>
<td background='".THEME."images/capc2.png' height='16' class='scapmain'></td>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/vrs.png' height='35' class='scapmain'><img src='".THEME."images/a.png'>&nbsp;&nbsp;$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
<td background='".THEME."images/apc.png' height='16' width='170' class='scapmain'></td>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td background='".THEME."images/vrs.png' height='35' width='170' class='scapmain'><img src='".THEME."images/a.png'>&nbsp;&nbsp;$title</td>
<td align='right'></td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>






O čia ta į kurią reikia įdėti:

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "215";
$theme_width_r = "215";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0' width='850' class='paneles'>\n<tr>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='850'>
<tr>
<td align='center' style='padding-left: 400px; padding-top: -40px;' width='0'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' style='padding-right: 30px; padding-top: 0px;' width='0'>";
include THEME."header.php";
echo "</td>
</tr>
</table><br>\n";


echo "<table cellpadding='0' align='center' cellspacing='0' width='990'>\n<tr>\n";

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td width='73' align='left' style='padding-left: 6px;padding-top: 13px;'>  <a href='http://www.mmw.too.lt/' target='_blank'><img src='".THEME."images/42.png' border='0'></a></td>
<td width='446'></td>
<td width='247' align='right' class='f_text'>TVS: <a href='http://www.php-fusion.co.uk' target='_blank' style='color:#000;'>PHP-Fusion</a> | 2008-2009</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='521'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
<tr><td><img src='".THEME."images/news_foot.gif'></td></tr>
</table>\n";

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0' width='150'>
<tr>
<td class='side-body-panel'>\n";

}

function closeside_panel() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>



Redagavo iSty· 2009 Bal. 14 19:04:22

Parašė iSty· 2009 Bal. 14 20:04:48
#6

Up!
Kasnors man iškiskit tą kOdą! ?|

Parašė bad_user· 2009 Bal. 14 20:04:19
#7

5Lt labas papyldimas įdedu.

Parašė iCreate· 2009 Bal. 14 20:04:07
#8

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#000000";
$body_bg = "#FFFFFF";
$theme_width = "100%";
$theme_width_l = "215";
$theme_width_r = "215";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0' width='850' class='paneles'>\n<tr>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='850'>
<tr>
<td align='center' style='padding-left: 400px; padding-top: -40px;' width='0'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' style='padding-right: 30px; padding-top: 0px;' width='0'>";
include THEME."header.php";
echo "</td>
</tr>
</table><br>\n";

echo "
<table align=center width=$theme_width height=44 class='nuorodos1' background=".THEME."images/bg3.jpg cellspacing=0 cellpadding=0>
<tr><td height=25 class='nuorodos2' align=left style='padding-left:20px;'>"; echo showsublinks("&nbsp;&nbsp; ",white); echo "</td></tr>
</table>
";


echo "<table cellpadding='0' align='center' cellspacing='0' width='990'>\n<tr>\n";

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td width='73' align='left' style='padding-left: 6px;padding-top: 13px;'>  <a href='http://www.mmw.too.lt/' target='_blank'><img src='".THEME."images/42.png' border='0'></a></td>
<td width='446'></td>
<td width='247' align='right' class='f_text'>TVS: <a href='http://www.php-fusion.co.uk' target='_blank' style='color:#000;'>PHP-Fusion</a> | 2008-2009</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='521'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
<tr><td><img src='".THEME."images/news_foot.gif'></td></tr>
</table>\n";

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0' width='150'>
<tr>
<td class='side-body-panel'>\n";

}

function closeside_panel() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>



Aš šiandien blogas.
JEigu gerai įdėjau, pyk.

Redagavo iCreate· 2009 Bal. 14 20:04:30

Parašė iSty· 2009 Bal. 14 20:04:28
#9

Dėkuj!

EDIT: Jeigu galima pabrauk tas eilutes kur iterpiai raudonai :]

Redagavo iSty· 2009 Bal. 14 20:04:23

Parašė iCreate· 2009 Bal. 14 20:04:48
#10

Pabraukiau, nes aš šiandien blogas.

Parašė AurimaszB· 2009 Bal. 22 14:04:16
#11

jau