Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Theme redagavimas

Parašė ququ· 2008 Rugp. 2 13:08:39
#1

Mano temoj yra keli nesklandumai kuriuos noriu istaisyt prasau padekit:
1. Naujienos pavadinima pabraukt ( Jau isaiskejo ) Liko 2
2. Naujienos kategorijos pav i kita sona perkelt nes kiek meginau
vis jis issoka i virsu arba jis visa eilute uzzima
3. Read more perkelti po kategorijos paveiksliuku




Kaip man igivendint savo idejas ?

Theme failas




<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|        SO Theme for PHP-Fusion v6           |
|---------------------------------------------|
| author: Jantom's Studio - Jantom © 2006-2007|
| web: http://jantomsstudio.prv.pl            |
| email: jantom@php-fusion.pl                 |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
| Please, do not remove this information      |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

//ustawienia strony/page settings
$body_text = "black";
$body_bg = "#e5ddc9";
$theme_width = "898";
$theme_width_l = "180px";
$theme_width_r = "180px";

function render_header($header_content) {

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


echo"<center><div id='naglow1'>";
//User panel in header - start
if (!iMEMBER){
   if (file_exists(THEME."locale/".$settings['locale'].".php")) {
      include THEME."locale/".$settings['locale'].".php";
   } else {
      include THEME."locale/English.php";
   }
   
echo "<div id='naglow2-log'>
   <div id='register'>
      <form name='loginform' method='post' action='".FUSION_SELF."'>
      <input type='text' name='user_name' class='textbox' style='width:100px'><br><div style='width:100%; height:15px'></div>
      <input type='password' name='user_pass' class='textbox' style='width:100px'><br>".$locale['063']."
      <input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'><br>
      <input type='submit' name='login' value='".$locale['064']."' class='button'><br>
   
      <a href='".BASEDIR."lostpassword.php' class='sub'>".$locale['so01']."</a>";
      if ($settings['enable_registration']) {
      echo " <a href='".BASEDIR."register.php' class='sub'>".$locale['so00']."</a>";
      }
      
      echo"</form>";
   
} else {

echo"<div id='naglow2'>
      <DIV id='witaj'>".$locale['024'].": ".$userdata['user_name']."<br><center>";
         echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' ALT='avatar' style='margin:0 auto'>" : "<img src='".THEME."images/noav.png' ALT='NoAvatar image'>")."
      </center></div>
      <div id='witaj_p2'>
      <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
      <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
      <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
         if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
         echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
         }
         echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>";
      
}
//User panel in header - end   
echo"</div></div></div><div id='subheader'><span style='padding-left:35px'>".showsublinks(" o ")."</SPAN></div>
<table cellspacing='0' cellpadding='0' id='content'><tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr></table>
<div id='footer'>
   <span id='powered'>
   </span>
   ".stripslashes($settings['footer'])."
</DIV>
</CENTER>";
}

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

echo "<div class='capmain'>$subject</div>
      <div class='main-body'>$news</div>
      <div class='news-footer'>".openform("N",$info['news_id']).newsposter($info," ").newsopts($info,"&middot;").closeform("N",$info['news_id'])."</DIV>\n";
}

function render_article($subject, $article, $info) {
   
echo "<div class='capmain'>$subject</div>
   <div class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
   <div class='news-footer'>".openform("A",$info['article_id']).articleposter($info," ").articleopts($info,"&middot;").closeform("A",$info['article_id'])."</div>\n";
}
function opentable($title) {

echo "<div class='capmain'>$title</div>\n
   <div class='side-body'>\n";

}

function closetable() {

echo "</div>";

}

function openside($title) {
   
echo "<div class='boki'>$title</div>
<div class='side-body'>\n";
}

function closeside() {

echo "</div>\n";
tablebreak();
}

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

$boxname = str_replace(" ", "", $title);
echo "<div class='boki'>$title <div class='roller'>".panelbutton($state,$boxname)."</div></div>
   <div id='box_$boxname' style='clear:both;'".($state=="off"?" style='text-align:left;'":"").">
   <div class='side-body'>\n";
}

function closesidex() {
echo "</div></div>\n";
tablebreak();
}

function tablebreak() {

echo "<div style='width:100%; height:5px'>\n</div>\n";
}
?>



Redagavo ququ· 2008 Rugp. 2 15:08:12

Parašė bruzgis· 2008 Rugp. 2 13:08:58
#2

uz 10lt padarysiu :) nes cia ir news.php faila reik koreguot

Parašė Mantas_· 2008 Rugp. 2 13:08:53
#3

nemulkink tu jo:[

Parašė ququ· 2008 Rugp. 2 13:08:24
#4

Kur man ieskot nes dar piewauju php zonoj :)

Parašė Mantas_· 2008 Rugp. 2 13:08:08
#5

as irgi zalias buwau bet atsirasdavo geru zmoniu;)

Parašė Žmogus· 2008 Rugp. 2 13:08:15
#6

<div class='capmain'><u>$subject</u></div>

čia naujienose

Parašė Athrax· 2008 Rugp. 2 13:08:09
#7

"Spausti če" ;DDDDDD bl kai luzau ;DDD
kokia cia kalba ?

Parašė ququ· 2008 Rugp. 2 14:08:02
#8

na kai pastebejau buvo per velu keisti image ,kitur mintys buvo :)
Aciu shadow eilute Theme faile, ne news ir veikia ;)


Gal yra minciu kaip igivendint kitus du punktus :) ?

Redagavo ququ· 2008 Rugp. 2 14:08:44

Parašė DžiuDžiTsu Grįžta· 2008 Rugp. 2 19:08:33
#9

Ne, bent jau mano mintis. :] :p

Parašė ququ· 2008 Rugp. 3 00:08:39
#10

help :>