Регистрация    Забыли пароль?        Правила форума    FAQ (читать перед созданием новой темы)
Имя   Пароль  запомнить
  
Просмотр темы
Вернуться на сайт: PHP-Fusion SF Russian Support Site

Форум поддержки PHP-Fusion SF | PHP-Fusion SF - Система Управлением Сайта | Установка и настройка системы
# 1 Тема: 2 логотипа слева и справа
WhiteWolf
Пользователь

Avatar пользователя



Местный

Сообщений: 46
Зарегистрирован: 17 Апреля 2008, 14:57:52
Сказали спасибо 4 раз
Статус: offline
Опубликовано 11 Октября 2008, 20:56:31
Доброго времени суток!
Хочу поинтересоваться, можно ли сделать так, чтобы в шапке сайта было два логотипа? Пока у меня установлен один, который по вбивается в админке. Есть ли возможность добавить маленький логотип ещё и справа в шапке сайта?(герб города нужно поставить)
Вроде понял что он в theme.php а вот что править так и не разобрался...((
Вот код theme.php
<?
//************************************************************************************************************************//
// Theme Name: FiSubice Theme for PHP-Fusion 6.00
// Theme Design: by: PHP-Fusion Themes (http://phpfusion.org)
// version 2.0
//
// PHP-Fusion Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// Original Author of file: PHP-Fusion Themes [Shedrock]
// Developed by: PHP-Fusion Themes - Bringing Your Portal To Life
// Copyright © 2005 by PHP-Fusion Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire PHP-Fusion Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from PHP-Fusion Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// PHP-Fusion Themes provides free support on all their theme designs.
// (includes consulting, troubleshooting and fixing problems).
// For Support, please visit us at: http://www.phpfusion.org/forum/viewforum.php?forum_id=2
//
// PHP-Fusion Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//************************************************************************************************************************//

/************************/
/* Theme Settings */
/************************/

$body_text = "#000000";
$body_bg = "#ECF0F6";
$theme_width = "100%";
$theme_width_l = "160";
$theme_width_r = "160";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table class='bodyline' width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table background='".THEME."images/cellpic_bkg.jpg' width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
echo "<td width='100%' height='110'><a href='".BASEDIR."index.php'>$header_content</td>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order"smiley;
if (dbrows($result) != 0) {
echo "<td class='content'> \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---"smiley {
if ($i != 0) { echo " r6;\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : ""smiley;
if (strstr($data['link_url'], "http://"smiley || strstr($data['link_url'], "https://"smiley) {
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 ? " " : ""smiley."</td>\n";
echo "<td width='250' nowrap><div align='right'><font class='date'><b>".ucwords(showdate($settings['subheaderdate'], time()))."";
echo "   </b></font></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#F7F8FC' cellspacing='0' border='0'>";
}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

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

echo "<div align='center'>";
echo "<table cellpadding='3' cellspacing='0' width='98%'>";
echo "<tr><td align='center' >";
echo "This site has had: <b>".$settings['counter']."</b> ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br><br>\n"smiley;
if ($license == false) {
echo " © 2005-2008";
}
echo "";
echo "</td></tr></table></td></tr></table></center></div><br> \n";
}

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

global $locale;

echo "<table border='0' style='border: 1px solid #486386' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : ""smiley."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a&g
t; · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

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

global $locale;

echo "<table border='0' style='border: 1px solid #486386' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #486386'>";
echo "<tr><td bgcolor='#C6D3E4' height='24'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
echo "</td></tr></table>\n";
}

function openside($title) {

echo "<table border='0' style='border: 1px solid #486386' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img border='0' src='".THEME."images/panel_img.gif'> <font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#F4F6FB' class='side-body' width='100%'>";
}

function closeside() {
echo "</td></tr></table>";
tablebreak();
}

function opensidex($title,$open="on"smiley {
$box_img = ($open=="on" ? "off" : "on"smiley;

echo "<table border='0' style='border: 1px solid #486386' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title'smiley\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#F4F6FB' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : ""smiley.">\n";
}


function closesidex() {

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

// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>

 
^ наверх ^
# 2  
Psc
SF Team

Avatar пользователя

Psc

SF Support Team

Почетный SF

Сообщений: 2515
Откуда: As is
Зарегистрирован: 10 Ноября 2007, 13:15:07
Сказали спасибо 353 раз
Статус: offline
Опубликовано 12 Октября 2008, 09:10:57
Была уже тема, где лого сменить просили на флэшку вроде.
В том же месте добавляется второй.

Если есть желание курочить тему - то в строке
echo "<td width='100%' height='110'><a href='".BASEDIR."index.php'>$header_content</td>";

добавляй че надо


--------------------
Retired
^ наверх ^
Перейти на форум:


96,414,999 уникальных посетителей
сейчас: 19 Мая 2024, 23:19:28
Генерация страницы: 0.14 сек.

Original size:28 кб.
GZipped size: 8 кб.
Compression:73%