Włączenie paneli bocznych w skórce Bifrost
|
Juby |
Dodany dnia 10.03.2011 15:51:32
|
Przedszkolak
Postów: 19 Pomógł: 1 Ostrzeżeń: 1
v7.02.03 Data rejestracji: 01.11.2010 10:37
|
Witam czy mógł by mi ktoś powiedzieć jak włączyć panele boczne w moim themie? Mam thema który wyłącza mi wszystkie panele a są mi bardzo potrzebne.
Kod pliku theme.php:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Bifrost Theme for PHP-Fusion
| Filename: theme.php
| Author: Johan Wilson
| Version 1.1
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(THEME."locale/".LOCALESET."locale.php")) {
require_once THEME."locale/".LOCALESET."locale.php";
} else {
require_once THEME."locale/English/locale.php";
}
require_once INCLUDES."theme_functions_include.php";
require_once THEME."config.php";
require_once THEME."header.php";
require_once THEME."functions.php";
require_once THEME."footer.php";
function render_page() {
global $aidlink, $locale, $settings, $userdata; add_handler("theme_head_output"); ?>
<div id="content" class="container_24">
<div id="header">
<div id="logo" class="grid_6">
<?php echo showbanners(); ?>
</div><!-- /logo -->
<div id="nav" class="grid_16 push_1">
<?php navigation(); ?>
</div><!-- /nav -->
<div class="grid_9 hinfo">
<h4>Example Content</h4>
<p>Lorem ipsum dolor sit amet.</p>
</div><!-- /hinfo -->
<div class="grid_6 push_1 hinfo">
<h4><?php echo $locale['Search_box_title']; ?></h4>
<form action="/search.php" id="search" method="get" role="search" />
<div>
<label for="s" class="screen-reader-text"><?php echo $locale['Search_label']; ?></label>
<input type="text" id="s" name="stext" value="" />
<input type="submit" value="<?php echo $locale['Search_value']; ?>" id="searchsubmit" />
</div>
</form>
</div><!-- /search -->
<div class="grid_6 push_2 userinfo hinfo">
<?php userinfo(); ?>
</div><!-- /userinfo -->
</div><!-- /header -->
<div id="main" class="grid_24">
<?php echo U_CENTER; ?>
<?php echo CONTENT; ?>
<?php echo L_CENTER; ?>
</div><!-- /main -->
</div><!-- /content -->
<div id="footer">
<div class="container_24">
<?php navigation(false); ?>
<div class="clearfix"></div>
<div id="subfooter">
<small><?php echo showcopyright(); ?></small>
</div><!-- /subfooter -->
</div>
</div><!-- /footer -->
<?php get_footer_tags(); ?>
<?php echo (DEBUG ? "<div id='debug'><strong>Debug is on </strong>" : "<!-- ").showrendertime().(DEBUG ? "</div><!-- /debug -->": " -->")."\n";
}
function render_news($subject, $news, $info) {
global $locale,$data,$settings;
echo !isset($_GET['readmore']) && $info['news_ext'] == "y" ? "<h2 class='posttitle'><a href='/news.php?readmore=".$info['news_id']."'>".strip_tags($subject)."</a></h2>\n" : opentable($subject); ?>
<div class="postmeta">
<span><?php echo showdate("%B %d, %Y", $info['news_date']); ?></span>
<span class="i-cat"><?php echo $locale['news_in']; ?> <?php echo substr(newscat($info), 18); ?></span>
<span class="i-aur"><?php echo $locale['news_by']; ?> <?php echo profile_link($info['user_id'], $info['user_name'], $info['user_status']); ?></span>
<span class="i-com"> <?php echo $info['news_allow_comments'] && $settings['comments_enabled'] == "1" ? "<a href='news.php?readmore=".$info['news_id']."#comments'>".($info['news_comments'] != 0 ? $info['news_comments'] : "").($info['news_comments'] == 1 || $info['news_comments'] == 0 ? $locale['global_073b'] : $locale['global_073'])."</a>": ""; ?></span>
</div>
<div class="post">
<?php echo "$news\n"; ?>
</div>
<?php closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='postmeta'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
$pi=0;
function opentable($title="") {
static $pi;
echo (!empty($title) ? ($pi==0 ? "<h1 class='title'>$title</h1>" : "<h2 class='title'>$title</h2>") : "")."\n";
$pi++;
}
function closetable() {
echo "\t\t<!-- /section -->\n";
}
function openside($title="", $collapse = false, $state = "on") {
echo !empty($title) ? "<h3>$title</h3>\n" : "";
}
function closeside() {
echo "<!-- /side -->";
}
Skórka Bifrost w załączniku. Dodatkowo można ją pobrać z UK: http://www.php-fu...ddon_id=55
Juby dodał/a następującą plik:
|
|
|
|
Wścibski Gość |
Dodany dnia 22.11.2024 11:26:22
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
jantom |
Dodany dnia 11.03.2011 23:35:52
|
Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Zainteresuj się http://dev.php-fu...post_11840 - to skórka Bifrost, przystosowana dla ludu.
Edytowane przez jantom dnia 11.03.2011 23:36:21
|
|
|
|
Pieka |
Dodany dnia 11.03.2011 23:54:16
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Skorka Joga, czyli Bifrost z panelami bocznymi w zalaczniku.
Pieka dodał/a następującą plik:
Jestem jaki jestem
|
|
|
|
Juby |
Dodany dnia 12.03.2011 13:33:54
|
Przedszkolak
Postów: 19 Pomógł: 1 Ostrzeżeń: 1
v7.02.03 Data rejestracji: 01.11.2010 10:37
|
Wielkie dzięki, już drugi raz mi pomogliście. Naprawdę tego potrzebowałem, macie ogromne doświadczenie!
Wiadomość doklejona:
A wiecie może jak przenieść prawe panele na lewą stronę? Tak aby wszystko przypominało bloga.
Wiadomość doklejona:
Dobra poradziłem sobie jest ok.
Edytowane przez Juby dnia 12.03.2011 19:10:02
|
|
|
|
Fasonsql |
Dodany dnia 30.08.2011 11:03:05
|
Przedszkolak
Postów: 75 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.01.2011 20:26
|
Co do paneli bocznych jeżeli z poziomu PA dodajesz, a się nie wyświetlają to w twojej skórce brakuje:
Do paneli lewych:
if (LEFT) { echo "<td class='side-left' valign='top'>".LEFT."</td>"; }
Do paneli prawych:
if (RIGHT) { echo "<td class='side-right' valign='top'>".RIGHT."</td>"; }
No i w styles.css dodać:
.side-left {
margin-left: 0px;
width: tutaj wpisz szerokość lewego panelu w px;
}
.side-right {
margin-right: 0px;
width: tutaj wpisz szerokość prawego panelu w px;
}
PW od moderatora:
- Przeniesienie posta - Pieka 30.08.2011 11:03
Edytowane przez Pieka dnia 30.08.2011 11:01:45
Aplikacje Windows Phone | Front-end Developer | Web-Designer
|
|
|
|
talent |
Dodany dnia 30.08.2011 11:03:05
|
Przedszkolak
Postów: 40 Ostrzeżeń: 3
v7.02.03 Data rejestracji: 14.01.2007 00:31
|
Plik theme.php:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Bifrost Theme for PHP-Fusion
| Filename: theme.php
| Author: Johan Wilson
| Version 1.1
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(THEME."locale/".LOCALESET."locale.php")) {
require_once THEME."locale/".LOCALESET."locale.php";
} else {
require_once THEME."locale/English/locale.php";
}
require_once INCLUDES."theme_functions_include.php";
require_once THEME."config.php";
require_once THEME."header.php";
require_once THEME."functions.php";
require_once THEME."footer.php";
function render_page() {
global $aidlink, $locale, $settings, $userdata; add_handler("theme_head_output"); ?>
<div id="content" class="container_24">
<div id="header">
<div id="logo" class="grid_6">
<?php echo showbanners(); ?>
</div><!-- /logo -->
<div id="nav" class="grid_16 push_1">
<?php navigation(); ?>
</div><!-- /nav -->
<div class="grid_9 hinfo">
<h4>Portal Obywatelski</h4>
<p>Mieszkancow Gminy Redziny</p>
</div><!-- /hinfo -->
<div class="grid_6 push_1 hinfo">
<h4><?php echo $locale['Search_box_title']; ?></h4>
<form action="/search.php" id="search" method="get" role="search" />
<div>
<label for="s" class="screen-reader-text"><?php echo $locale['Search_label']; ?></label>
<input type="text" id="s" name="stext" value="" />
<input type="submit" value="<?php echo $locale['Search_value']; ?>" id="searchsubmit" />
</div>
</form>
</div><!-- /search -->
<div class="grid_6 push_2 userinfo hinfo">
<?php userinfo(); ?>
</div><!-- /userinfo -->
</div><!-- /header -->
<div id="main" class="grid_24">
<?php echo U_CENTER; ?>
<?php echo CONTENT; ?>
<?php echo L_CENTER; ?>
</div><!-- /main -->
</div><!-- /content -->
<div id="footer">
<div class="container_24">
<?php navigation(false); ?>
<div class="clearfix"></div>
<div id="subfooter">
<small><?php echo showcopyright(); ?></small>
</div><!-- /subfooter -->
</div>
</div><!-- /footer -->
<?php get_footer_tags(); ?>
<?php echo (DEBUG ? "<div id='debug'><strong>Debug is on </strong>" : "<!-- ").showrendertime().(DEBUG ? "</div><!-- /debug -->": " -->")."\n";
}
function render_news($subject, $news, $info) {
global $locale,$data,$settings;
echo !isset($_GET['readmore']) && $info['news_ext'] == "y" ? "<h2 class='posttitle'><a href='/news.php?readmore=".$info['news_id']."'>".strip_tags($subject)."</a></h2>\n" : opentable($subject); ?>
<div class="postmeta">
<span><?php echo showdate("%B %d, %Y", $info['news_date']); ?></span>
<span class="i-cat"><?php echo $locale['news_in']; ?> <?php echo substr(newscat($info), 18); ?></span>
<span class="i-aur"><?php echo $locale['news_by']; ?> <?php echo profile_link($info['user_id'], $info['user_name'], $info['user_status']); ?></span>
<span class="i-com"> <?php echo $info['news_allow_comments'] && $settings['comments_enabled'] == "1" ? "<a href='news.php?readmore=".$info['news_id']."#comments'>".($info['news_comments'] != 0 ? $info['news_comments'] : "").($info['news_comments'] == 1 || $info['news_comments'] == 0 ? $locale['global_073b'] : $locale['global_073'])."</a>": ""; ?></span>
</div>
<div class="post">
<?php echo "$news\n"; ?>
</div>
<?php closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='postmeta'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
$pi=0;
function opentable($title="") {
static $pi;
echo (!empty($title) ? ($pi==0 ? "<h1 class='title'>$title</h1>" : "<h2 class='title'>$title</h2>") : "")."\n";
$pi++;
}
function closetable() {
echo "\t\t<!-- /section -->\n";
}
function openside($title="", $collapse = false, $state = "on") {
echo !empty($title) ? "<h3>$title</h3>\n" : "";
}
function closeside() {
echo "<!-- /side -->";
}
Co do paneli bocznych to jest dokładnie tak jak napisałeś, dodaję je w PA ale nadal są niewidoczne. Podany przez Ciebie kod mam wkleić w.. theme.php? :)
PW od moderatora:
- Przeniesienie posta - Pieka 30.08.2011 11:03
|
|
|
|
Fasonsql |
Dodany dnia 30.08.2011 11:03:05
|
Przedszkolak
Postów: 75 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.01.2011 20:26
|
Dodaj do styles.css to co ci wcześniej podałem. Tutaj daje ci plik theme.php po edycji. Panele powinny się pojawić.
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Bifrost Theme for PHP-Fusion
| Filename: theme.php
| Author: Johan Wilson
| Version 1.1
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(THEME."locale/".LOCALESET."locale.php")) {
require_once THEME."locale/".LOCALESET."locale.php";
} else {
require_once THEME."locale/English/locale.php";
}
require_once INCLUDES."theme_functions_include.php";
require_once THEME."config.php";
require_once THEME."header.php";
require_once THEME."functions.php";
require_once THEME."footer.php";
function render_page() {
global $aidlink, $locale, $settings, $userdata; add_handler("theme_head_output"); ?>
<div id="content" class="container_24">
<div id="header">
<div id="logo" class="grid_6">
<?php echo showbanners(); ?>
</div><!-- /logo -->
<div id="nav" class="grid_16 push_1">
<?php navigation(); ?>
</div><!-- /nav -->
<div class="grid_9 hinfo">
<h4>Portal Obywatelski</h4>
<p>Mieszkancow Gminy Redziny</p>
</div><!-- /hinfo -->
<div class="grid_6 push_1 hinfo">
<h4><?php echo $locale['Search_box_title']; ?></h4>
<form action="/search.php" id="search" method="get" role="search" />
<div>
<label for="s" class="screen-reader-text"><?php echo $locale['Search_label']; ?></label>
<input type="text" id="s" name="stext" value="" />
<input type="submit" value="<?php echo $locale['Search_value']; ?>" id="searchsubmit" />
</div>
</form>
</div><!-- /search -->
<div class="grid_6 push_2 userinfo hinfo">
<?php userinfo(); ?>
</div><!-- /userinfo -->
</div><!-- /header -->
<div id="main" class="grid_24">
if (LEFT) { echo "<td class='side-left' valign='top'>".LEFT."</td>"; }
<?php echo U_CENTER; ?>
<?php echo CONTENT; ?>
<?php echo L_CENTER; ?>
if (RIGHT) { echo "<td class='side-right' valign='top'>".RIGHT."</td>"; }
</div><!-- /main -->
</div><!-- /content -->
<div id="footer">
<div class="container_24">
<?php navigation(false); ?>
<div class="clearfix"></div>
<div id="subfooter">
<small><?php echo showcopyright(); ?></small>
</div><!-- /subfooter -->
</div>
</div><!-- /footer -->
<?php get_footer_tags(); ?>
<?php echo (DEBUG ? "<div id='debug'><strong>Debug is on </strong>" : "<!-- ").showrendertime().(DEBUG ? "</div><!-- /debug -->": " -->")."\n";
}
function render_news($subject, $news, $info) {
global $locale,$data,$settings;
echo !isset($_GET['readmore']) && $info['news_ext'] == "y" ? "<h2 class='posttitle'><a href='/news.php?readmore=".$info['news_id']."'>".strip_tags($subject)."</a></h2>\n" : opentable($subject); ?>
<div class="postmeta">
<span><?php echo showdate("%B %d, %Y", $info['news_date']); ?></span>
<span class="i-cat"><?php echo $locale['news_in']; ?> <?php echo substr(newscat($info), 18); ?></span>
<span class="i-aur"><?php echo $locale['news_by']; ?> <?php echo profile_link($info['user_id'], $info['user_name'], $info['user_status']); ?></span>
<span class="i-com"> <?php echo $info['news_allow_comments'] && $settings['comments_enabled'] == "1" ? "<a href='news.php?readmore=".$info['news_id']."#comments'>".($info['news_comments'] != 0 ? $info['news_comments'] : "").($info['news_comments'] == 1 || $info['news_comments'] == 0 ? $locale['global_073b'] : $locale['global_073'])."</a>": ""; ?></span>
</div>
<div class="post">
<?php echo "$news\n"; ?>
</div>
<?php closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='postmeta'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
$pi=0;
function opentable($title="") {
static $pi;
echo (!empty($title) ? ($pi==0 ? "<h1 class='title'>$title</h1>" : "<h2 class='title'>$title</h2>") : "")."\n";
$pi++;
}
function closetable() {
echo "\t\t<!-- /section -->\n";
}
function openside($title="", $collapse = false, $state = "on") {
echo !empty($title) ? "<h3>$title</h3>\n" : "";
}
function closeside() {
echo "<!-- /side -->";
}
PW od moderatora:
- Przeniesienie posta - Pieka 30.08.2011 11:03
Aplikacje Windows Phone | Front-end Developer | Web-Designer
|
|
|
|
talent |
Dodany dnia 30.08.2011 11:13:22
|
Przedszkolak
Postów: 40 Ostrzeżeń: 3
v7.02.03 Data rejestracji: 14.01.2007 00:31
|
Zrobiłem tak jak pisałeś Rafcio34, ale coś nie trybi. Paneli nie ma, natomiast nad i pod newsami pojawiło się takie coś: http://rob-szota....l/news.php |
|
|
|
Fasonsql |
Dodany dnia 30.08.2011 11:39:28
|
Przedszkolak
Postów: 75 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.01.2011 20:26
|
W takim razie, pobierz tą skórkę z tego tematu gdzie napisane są już panele boczne. Po co się wysilać i pisać nowy kod.
Aplikacje Windows Phone | Front-end Developer | Web-Designer
|
|
|
|
talent |
Dodany dnia 30.08.2011 11:41:28
|
Przedszkolak
Postów: 40 Ostrzeżeń: 3
v7.02.03 Data rejestracji: 14.01.2007 00:31
|
Ale tamta skórka zasadniczo różni się od tej. Może dla kogoś to jest Bifrost + panele boczne, ale dla mnie to inna skórka, jedynie nieco podobna. |
|
|
|
Fasonsql |
Dodany dnia 30.08.2011 12:14:09
|
Przedszkolak
Postów: 75 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.01.2011 20:26
|
Theme.php:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Bifrost Theme for PHP-Fusion
| Filename: theme.php
| Author: Johan Wilson
| Version 1.1
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(THEME."locale/".LOCALESET."locale.php")) {
require_once THEME."locale/".LOCALESET."locale.php";
} else {
require_once THEME."locale/English/locale.php";
}
require_once INCLUDES."theme_functions_include.php";
require_once THEME."config.php";
require_once THEME."header.php";
require_once THEME."functions.php";
require_once THEME."footer.php";
function render_page() {
global $aidlink, $locale, $settings, $userdata; add_handler("theme_head_output"); ?>
<div id="content" class="container_24">
<div id="header">
<div id="logo" class="grid_6">
<?php echo showbanners(); ?>
</div><!-- /logo -->
<div id="nav" class="grid_16 push_1">
<?php navigation(); ?>
</div><!-- /nav -->
<div class="grid_9 hinfo">
<h4>Portal Obywatelski</h4>
<p>Mieszkancow Gminy Redziny</p>
</div><!-- /hinfo -->
<div class="grid_6 push_1 hinfo">
<h4><?php echo $locale['Search_box_title']; ?></h4>
<form action="/search.php" id="search" method="get" role="search" />
<div>
<label for="s" class="screen-reader-text"><?php echo $locale['Search_label']; ?></label>
<input type="text" id="s" name="stext" value="" />
<input type="submit" value="<?php echo $locale['Search_value']; ?>" id="searchsubmit" />
</div>
</form>
</div><!-- /search -->
<div class="grid_6 push_2 userinfo hinfo">
<?php userinfo(); ?>
</div><!-- /userinfo -->
</div><!-- /header -->
<div id="main" class="grid_24">
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>\n"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>\n";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>\n"; }
</div><!-- /main -->
</div><!-- /content -->
<div id="footer">
<div class="container_24">
<?php navigation(false); ?>
<div class="clearfix"></div>
<div id="subfooter">
<small><?php echo showcopyright(); ?></small>
</div><!-- /subfooter -->
</div>
</div><!-- /footer -->
<?php get_footer_tags(); ?>
<?php echo (DEBUG ? "<div id='debug'><strong>Debug is on </strong>" : "<!-- ").showrendertime().(DEBUG ? "</div><!-- /debug -->": " -->")."\n";
}
function render_news($subject, $news, $info) {
global $locale,$data,$settings;
echo !isset($_GET['readmore']) && $info['news_ext'] == "y" ? "<h2 class='posttitle'><a href='/news.php?readmore=".$info['news_id']."'>".strip_tags($subject)."</a></h2>\n" : opentable($subject); ?>
<div class="postmeta">
<span><?php echo showdate("%B %d, %Y", $info['news_date']); ?></span>
<span class="i-cat"><?php echo $locale['news_in']; ?> <?php echo substr(newscat($info), 18); ?></span>
<span class="i-aur"><?php echo $locale['news_by']; ?> <?php echo profile_link($info['user_id'], $info['user_name'], $info['user_status']); ?></span>
<span class="i-com"> <?php echo $info['news_allow_comments'] && $settings['comments_enabled'] == "1" ? "<a href='news.php?readmore=".$info['news_id']."#comments'>".($info['news_comments'] != 0 ? $info['news_comments'] : "").($info['news_comments'] == 1 || $info['news_comments'] == 0 ? $locale['global_073b'] : $locale['global_073'])."</a>": ""; ?></span>
</div>
<div class="post">
<?php echo "$news\n"; ?>
</div>
<?php closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='postmeta'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>\n";
closetable();
}
$pi=0;
function opentable($title="") {
static $pi;
echo (!empty($title) ? ($pi==0 ? "<h1 class='title'>$title</h1>" : "<h2 class='title'>$title</h2>") : "")."\n";
$pi++;
}
function closetable() {
echo "\t\t<!-- /section -->\n";
}
function openside($title="", $collapse = false, $state = "on") {
echo !empty($title) ? "<h3>$title</h3>\n" : "";
}
function closeside() {
echo "<!-- /side -->";
}
A to dodaj do styles.css:
/* Side panels and main body properties */
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color: #000;
padding: 15px 5px 5px 5px;
width: 195px;
}
.side-border-right {
color: #000;
padding: 15px 5px 5px 5px;
width: 195px;
}
.main-bg {color: #555;padding:15px 2px 2px 2px;}
Dodałem modyfikacje ze skórki Joga.
PS. Nie sprawdzałem czy działa.
Aplikacje Windows Phone | Front-end Developer | Web-Designer
|
|
|
|
talent |
Dodany dnia 30.08.2011 12:21:15
|
Przedszkolak
Postów: 40 Ostrzeżeń: 3
v7.02.03 Data rejestracji: 14.01.2007 00:31
|
Niestety newsy zniknęły a paneli nadal nie ma. |
|
|