Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: kaip padaryti theme.php

Parašė remuxs· 2016 Sau. 11 12:01:56
#18

Cia dalis theme.php kodo

<?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 $settings, $main_style, $locale, $mysql_queries_time;



//Header reklama
echo "<table cellpadding='0' cellspacing='0' width='1060' align='center'>\n<tr>\n";
echo "<td class='header'><img src='".THEME."images/logo.png'></td>\n";
echo "<td><a href='http://kapsuko-chebra.wu.lt'><img src='".THEME."images/reklama.png'' style='border:#565656 2px solid;border-radius:2px;'></a></td>";
echo "</tr>\n</table>\n";



//navigacija
echo "<table cellpadding='0' cellspacing='0' width='1060' align='center'>\n<tr>\n";
echo "<td class='navigacija'>
<table width='975'>
<td>
<a href='http://mp3music.wu.lt/' class='nav'>Pagrindinis</a>
<a href='http://mp3music.wu.lt/en' class='nav'><font size='3' color='#ffff66'><b>Angliškos</b></a></font>
<a href='http://mp3music.wu.lt/lt' class='nav'><font size='3' color='#ffff66'><b>Lietuviškos</b></a></font>
<a href='http://mp3music.wu.lt/ru' class='nav'><font size='3' color='#ffff66'><b>Rusiškos</b></a></font>
<a href='http://mp3music.wu.lt/senos-dainos' class='nav'><font size='3' color='#ffff66'><b>Senos</b></a></font>
<a href='http://mp3music.wu.lt/pateikti_daina' class='nav'><font size='3' color='#ff3d44'><font color='#ff3d44'>Pateikti_dainą</a></font>
<a href='http://mp3music.wu.lt/Atsakomybe' class='nav'>Atsakomybė</a>
<a href='http://mp3music.wu.lt/Pagalba' class='nav'>Pagalba</a>



<td align='right'>
<div style='margin-top: 2px;'>
<form id='searchform' action='http://mp3music.wu.lt/search.php?' method='geta'>
<input type='text' name='stext' class='paieska' value='Įrašykite norimos dainos pavadinimą..' onfocus=\"if(this.value=='Įrašykite norimos dainos pavadinimą..'){this.value='';}\" onblur=\"if(this.value==''){this.value='Įrašykite norimos dainos pavadinimą..';}\">
<input type='submit' value='' style='position:absolute;margin-top:0px;margin-left:4px;' name='option' class='ieskoti'></form>
</div>
</td>


</table>
</td>\n";
echo "</tr>\n</table>\n";



//Content
echo "<table cellpadding='0' cellspacing='0' width='1060' align='center' class='$main_style'>\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";


//footer




Kai ideti sita koda taisyklingai kad man jis veiktu tarp <body></body>?

<ul id="dd">
<li><a href="#" class="menu" id="mmenu1"
onmouseover="mopen(1);"
onmouseout="mclosetime();">1</a>
<div class="submenu" id="menu1"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime();">
<a href="#">1.1</a>
<a href="#">1.2</a>
<a href="#">1.3</a>
<a href="#">1.4</a>
</div>
</li>
<li><a href="#" class="menu" id="mmenu2"
onmouseover="mopen(2);"
onmouseout="mclosetime();">2</a>
<div class="submenu" id="menu2"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime();">
<a href="#">2.1</a>
<a href="#">2.2</a>
<a href="#">2.3</a>
<a href="#">2.4</a>
</div>
</li>
<li><a href="#" class="menu">Order</a></li>
<li><a href="#" class="menu">Help</a></li>
<li><a href="#" class="menu" id="mmenu3"
onmouseover="mopen(3);"
onmouseout="mclosetime();">3</a>
<div class="submenu" id="menu3"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime();">
<a href="#">3.1</a>
<a href="#">3.2</a>
<a href="#">3.3</a>
<a href="#">3.4</a>
</div>
</li>
</ul>

Redagavo remuxs· 2016 Sau. 11 12:01:08