Przedszkolak
Postów: 1
Data rejestracji: 10.10.2009 10:25
|
Witam. Chciałbym uzyskać pomoc w modyfikacji skórki Hamarey. Chodzi mi głównie o zmiany w wyświetlaniu newsów. Na poniższym zrzucie ekranu postaram się przedstawić, co zaprząta moją głowę.
A tak prezentują się kody plików:
theme.php
<?php
/*.Atlantis Theme for PHP-Fusion v7..*|
|*.Author: Max "Matonor" Toball......*|
|*.Released under the Affero GPLv3...*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
//Theme Settings
define("THEME_WIDTH", "95%"); //theme width. Make sure to adapt the margin-left in the first div (-width/2).
define("THEME_BULLET", "<span class='bullet'>·</span>"); //bullet image
//Theme Settings /
function get_head_tags(){
echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}</style><![endif]-->";
}
function render_page($license=false) {
global $locale, $aidlink, $main_style, $settings;
echo "<div class='tpl_str_center'>
<div class='tpl_str_header'>
<div class='tpl_logo'></div>
<div style='padding:45px 0 0 443px;'><script type='text/javascript'><!--
google_ad_client = 'pub-2020213978766982';
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = '468x60_as';
google_ad_type = 'text';
google_ad_channel = '';
google_color_border = 'CFDDE7';
google_color_bg = 'EEF3F7';
google_color_link = 'ffffff';
google_color_text = '000000';
google_color_url = 'B3B3B3';
google_ui_features = 'rc:6';
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script></div>
</div>
<div class='tpl_str_main'>
<div style='margin:0 27px;'>
<!-- MENU i -->
<div class='tpl_menu'>
<ul>
<li>".showsublinks(" ")."</li>
</ul>
</div>
<!-- MENU e -->
<!-- RELEASE i -->
<div class='tpl_release'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' class='text'><div class='top'>
<center>
<script type='text/javascript'><!--
google_ad_client = 'pub-2020213978766982';
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = '728x90_as';
google_ad_type = 'text';
google_ad_channel = '';
google_color_border = 'CFDDE7';
google_color_bg = '283645';
google_color_link = 'ffffff';
google_color_text = '000000';
google_color_url = 'B3B3B3';
google_ui_features = 'rc:6';
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</center> </td>
</tr>
</table>
</div>
<!-- RELEASE e -->
<!-- MAIN i -->
<div class='tpl_main'>
<!-- CONTENT i -->
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<!-- MAIN -->
<td valign='top'>
<div class='tpl_showpath'><div></div></div>
<div class='tpl_content'>
<!-- MAIN CONTENT i -->
".U_CENTER.
CONTENT.
L_CENTER."
<!-- MAIN CONTENT e -->
<!-- NAVIGATOR i -->
<td class='tpl_extra_box' valign='top'>
<div class='tpl_block tpl_corners'>
".(LEFT ? "<div class='tpl_block_body'>".LEFT."</div>" : "")."
</div>
</td>
<!-- NAVIGATOR e -->
<!-- NAVIGATOR i -->
<td class='tpl_nav_box' valign='top'>
<div class='tpl_block tpl_corners'>
".(RIGHT ? "<div class='tpl_block_body'>".RIGHT."</div>" : "")."
</div>
</td>
<!-- NAVIGATOR e -->
</div>
</td>
</tr>
</table>
<!-- CONTENT e -->
</div>
<!-- MAIN e -->
<!-- MAIN e -->
<!-- FOOTER i -->
<div class='tpl_footer'>
<div align='left'>Copyright © 2000-2008 by <strong>Hamarey</strong> - All rights reserved</div>
<div align='right'><font size='1'>Based on MemHT</div>
</div>
<!-- FOOTER e -->
</div>
</div>
<div class='tpl_str_footer'></div>
</div>
<div class='tpl_footmsg'>
<div align='center'>".showcopyright()."</div>
</div>";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo " <div class='tpl_news_box' valign='top'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='18%' align='right' style='padding-right:15px;' valign='top'>
<!-- DATE -->
<div class='tpl_news_date' align='center'>
<div class='month'>".showdate("%B", $info['news_date'])."</div>
<div class='day'>".showdate("%d", $info['news_date'])."</div>
<div class='year'>".showdate("%Y", $info['news_date'])."</div>
</div>
<!-- AUTHOR -->
</td>
<td width='82%' valign='top'>
<!-- TITLE -->
<div class='tpl_news_title'>$subject</div>
<!-- CONTENT -->
<div class='tpl_news_content'>".$news."</div><br>
<div class='tpl_news_author'>".newsopts($info,"·").itemoptions("N",$info['news_id'])."</div>
</td>
</tr>
</table>
</div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='tpl_news_box' valign='top'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='18%' align='right' style='padding-right:15px;' valign='top'>
<!-- DATE -->
<div class='tpl_news_date' align='center'>
<div class='month'>".showdate("%B", $info['news_date'])."</div>
<div class='day'>".showdate("%d", $info['news_date'])."</div>
<div class='year'>".showdate("%Y", $info['news_date'])."</div>
</div>
<!-- AUTHOR -->
</td>
<td width='82%' valign='top'>
<!-- TITLE -->
<div class='tpl_news_title'>$subject</div>
<!-- CONTENT -->
<div class='tpl_news_content'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
<div class='tpl_news_author'>";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>
</td>
</tr>
</table>
</div>\n";
closetable();
}
function opentable($title) {
echo "\n<h2 class='panelcap'>$title</h2>\n\t<div class='panelbody'>\n";
}
function closetable() {
echo "</div>\n";
}
$panel_collapse = true;
function openside($title, $collapse = false, $state = "on") {
static $box_id = 0; $box_id++;
global $panel_collapse; $panel_collapse = $collapse;
echo "<h3>".($collapse ? panelbutton($state,$box_id) : "")."$title</h3>
<div>\n\t".($collapse ? panelstate($state, $box_id) : "");
}
function closeside() {
global $panel_collapse;
echo ($panel_collapse ? "\t</div>" : "")."\n</div>\n";
}
?>
styles.css
/*Atlantis Theme for PHP-Fusion 7 by Max "Matonor" Toball*/
@import 'nav.css';
/***********************************************************************
OPTIONAL, TEMPLATE SPECIFIC STYLE
***********************************************************************/
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #444;
}
body {
background: url(images/bg.gif) repeat-x top #465A6C;
margin: 20px 0;
padding: 0;
}
a:link { color: #444; text-decoration: none; }
a:visited { color: #444; text-decoration: none; }
a:hover { color: #000; text-decoration: none; }
a:active { color: #444; text-decoration: none; }
/*****************
Structure
*****************/
.tpl_vspacer {
margin-bottom:5px;
}
.tpl_str_center {
width: 954px;
margin: 0 auto;
}
.tpl_str_header {
height: 123px;
background:url(images/header.png) no-repeat !important;
background:url(images/header.gif) no-repeat;
}
.tpl_logo {
float:left;
margin-top:60px;
margin-left:40px;
width:200px;
height:40px;
background:url(images/logo.png) no-repeat !important;
background:url(images/logo.gif) no-repeat;
}
.tpl_str_main {
height:100%; /* IE6 Fix */
background:url(images/main.png) repeat-y !important;
background:url(images/main.gif) repeat-y;
}
.tpl_str_footer {
height: 36px;
background:url(images/bottom.png) no-repeat !important;
background:url(images/bottom.gif) no-repeat;
}
.tpl_main {}
.tpl_content {
padding:10px;
background-color:#FFF;
}
.tpl_showpath {
height:19px;
background:url(images/showpath.png) no-repeat top right #DEE7ED;
font-size:11px;
margin-right:9px;
}
.tpl_showpath div {
padding:3px 0 0 10px;
color:#8FAEC2;
}
.tpl_showpath div a,
.tpl_showpath div a:visited { color:#678A9E; }
.tpl_showpath div a:hover { color:#FFF; }
/*****************
Menu
*****************/
.tpl_menu {
height:30px;
background:url(images/menu_bg.png) repeat-x;
border-top:4px solid #A8B7C8;
color:#C7D1DC;
/*font-weight:bold;*/
}
.tpl_menu a,
.tpl_menu a:visited {
display:block;
color:#C7D1DC;
height:14px;
padding:8px 30px;
}
.tpl_menu a:hover {
color:#FFF;
background:url(images/menu_h.png) repeat-x;
}
.tpl_menu ul {
list-style:none;
padding:0;
margin:0;
}
.tpl_menu li {
float:left;
border-right:1px solid #40556A;
}
/*****************
Release
*****************/
.tpl_release {
height:123px;
background:url(images/ads_bg.png) repeat-x;
border-bottom:4px solid #A8B7C8;
color:#C1CCD9;
padding-right:20px;
}
.tpl_release .text {
padding:24px 0 0 20px;
color:#627B91;
font-size:14px;
}
.tpl_release .top {
margin-bottom:12px;
color:#8A9FB0;
}
.tpl_release .vbig {
font-size:24px;
}
.tpl_release .big {
font-size:20px;
}
.tpl_release .demo {
width:128px;
height:25px;
background:url(images/tpl_release_demo.png) no-repeat !important;
background:url(images/tpl_release_demo.gif) no-repeat;
padding-top:8px;
margin-top:24px;
color:#FFF;
font-weight:bold;
font-size:13px;
text-align:left;
}
.tpl_release .demo a,
.tpl_release .demo a:visited,
.tpl_release .demo a:hover { color:#FFF; }
.tpl_release .download {
width:221px;
height:25px;
background:url(images/tpl_release_download.png) no-repeat !important;
background:url(images/tpl_release_download.gif) no-repeat;
padding-top:8px;
margin-top:12px;
color:#FFF;
font-weight:bold;
font-size:13px;
text-align:left;
}
.tpl_release .download a,
.tpl_release .download a:visited,
.tpl_release .download a:hover { color:#FFF; }
/*****************
Footer
*****************/
.tpl_footer {
border-top:1px solid #CCC;
background-color:#E7E7E7;
font-size:10px;
padding:6px 8px 0 8px;
}
.tpl_footmsg {
font-size:10px;
color:#889EB3;
}
.tpl_footmsg a,
.tpl_footmsg a:visited { color:#889EB3; }
.tpl_footmsg a:hover { color:#FFF; }
#main-bg {
line-height: 1.4em;
background: url(images/cont_t.jpg) repeat-x top;
padding: 2em 1em;
}
#side-border-right, #side-border-left {
padding: 2em 0.75em;
width: 15em;
max-width: 15em;
background: url(images/side_bg.jpg) repeat-x top;
display: inline;
}
#side-border-left {
padding-right: 0.5em;
float: left;
}
#side-border-right {
padding-left: 0.5em;
float: right;
}
* html #side-border-right {margin-left: -3px;}
* html #side-border-left {margin-right: -3px;}
.side-both #main-bg {margin: 0 16em;}
.side-left #main-bg {margin-left: 16em;}
.side-right #main-bg {margin-right: 16em;}
.side-left #side-border-right {display:none;}
.side-right #side-border-left {display:none;}
/*Navigation Panel*/
#navigation h2, .side-label {
color: #0077aa;
font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
text-transform: uppercase;
font-size: 1.0em;
padding: 0.15em;
font-weight: 500;
}
#navigation ul {
margin-left: -0.25em;
list-style-type: none;
line-height: 1.2em;
}
* html #navigation ul li {height: 1%;}
#navigation a {
display: block;
color: #3d667a;
padding: 0.2em 0.2em 0.2em 0.2em;
text-decoration : none;
}
#navigation a:hover {
color: #006699;
background-color: #accad9;
}
/*Misc Styles*/
#container{
width: 100%;
overflow-x: auto;
overflow-y: visible;
}
.pagenav {padding: 0.4em;}
.pagenav span, .pagenav a, .pagenav a:hover {
color: #006699;
background-color: #accad9;
border: 1px solid #dde5eb;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color: #3d667a;
background-color: #edf3f6;
}
#footer, #subfooter {
width: 90%;
color: #72a7c2;
background: #006090;
border: 1px solid #1070aa;
margin: 1.5em auto;
padding: 1em;
font-size: 0.8em;
}
.textbox, .button, .quote {
border-bottom: 1px solid #6f8c99;
border-right: 1px solid #6f8c99;
border-top: 1px solid #c1d9e4;
border-left: 1px solid #c1d9e4;
background: #fff url(images/mainheader_bg.jpg) repeat-x bottom;
font-size: 1em;
margin-top: 0.1em;
padding: 0.25em;
}
.textbox:focus{
border-bottom: 1px solid #c1d9e4;
border-right: 1px solid #c1d9e4;
border-top: 1px solid #6f8c99;
border-left: 1px solid #6f8c99;
}
.button{color: #006699;}
.bbcode {
border-bottom: 1px solid #6f8c99;
border-right: 1px solid #6f8c99;
border-top: 1px solid #c1d9e4;
border-left: 1px solid #c1d9e4;
background: #fff url(images/mainheader_bg.jpg) repeat-x bottom;
font-size: 1em;
margin-top: 0.1em;
}
.news-category {
float: left;
margin: 0.2em 0.5em 0 0;
}
.news-footer-img {vertical-align: middle;}
.news-footer {padding: 0.5em;}
.panelcap {
color: #006699;
font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
text-transform: uppercase;
font-size: 1.15em;
line-height: 1em;
font-weight: 500;
margin: 0;
}
.panelbody {
padding: 0.15em 0.3em;
margin-bottom: 0.8em;
border-top: 2px solid #f0f0f0;
}
.quote, .admin-message {
color: inherit;
margin: 0.25em;
}
.admin-message{
color: #006699;
background: #e8eef1 url(forum/stickythread.gif) 0.4em 0.4em no-repeat;
border: 1px solid #6f8c99;
padding: 0.4em 0.4em 0.6em 2.8em;
margin: 1em auto;
width: 80%;
}
.poll {
height: 1.3em;
background: #006698 url(images/pollbar.jpg) bottom repeat-x;
}
.comment-name {
color: #777;
font-weight: 700;
}
.shoutboxname {font-weight: 700;}
.shoutboxdate {
color: #888;
font-size: 0.8em;
}
.small,.small2,.side-small {font-size: 0.9em;}
.tbl,.tbl1,.tbl2,.forum-caption {padding: 0.3em;}
.tbl-border{background: #bdc5cb; border: 1px solid #bdc5cb;}
.tbl1{background: #e8eef1;}
.tbl2 {background: #edf3f6;}
.forum-caption {
font-weight: 700;
background: #e8eef1 url(images/mainheader_bg.jpg) repeat-x;
}
code, pre {
font-family: monospace;
font-size: 1.1em;
}
hr {
border: solid #c1d9e4 1pt;
height: 1pt;
}
.panelbutton{float: right;}
h1,h2,h3,h4,h5,h6 {font-size: inherit;}
/*Helpers*/
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/*IE Fixes*/
* html #main-bg {
height: 1%;
width: auto;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
.floatfix {overflow:hidden;}
* html .floatfix {width:100%;}
.center, *[align="center"] {margin: 0 auto;}
nav.css
/*****************
Blocks
*****************/
.tpl_nav_box {
width:185px;
background-color:#FFF;
}
.tpl_extra_box {
width:175px;
background-color:#FFF;
}
.tpl_block {
margin:6px 4px 4px 0;
background-color:#EEE;
}
.tpl_block_title,
.tpl_central_title {
padding:4px;
font-size:16px;
font-weight:bold;
color:#517E9F;
border-bottom:1px solid #CCC;
}
.tpl_block_body {
padding:4px;
border-top:1px solid #FFF;
}
.tpl_block_body .block_linkstyle a {
display:block;
padding:2px 0;
border-bottom:1px dotted #D6D6D6;
}
.tpl_block_body .block_linkstyle a:hover { /*background-color:#FFF;*/ color:#517E9F; }
.tpl_central_body {
margin-bottom:10px;
}
.tpl_block_h1 {
margin:8px 8px 8px 0;
background-color:#DEEDDC;
}
.tpl_block_title_h1 {
padding:8px;
font-size:16px;
font-weight:bold;
color:#79A473;
border-bottom:1px solid #B8D8B4;
}
.tpl_block_h2 {
margin:8px 8px 8px 0;
background-color:#E2ECF1;
}
.tpl_block_title_h2 {
padding:8px;
font-size:16px;
font-weight:bold;
color:#517E9F;
border-bottom:1px solid #C6DAE3;
}
/*****************
News
*****************/
.tpl_news_box {
padding:0 4px 10px 4px;
margin-bottom:10px;
border-bottom:1px dotted #CCC;
}
/* Title */
.tpl_news_title {
font-weight: bold;
font-size:110%;
color: #517E9F;
}
.tpl_news_title a,
.tpl_news_title a:visited { color: #517E9F; }
.tpl_news_title a:hover { color: #889EB3; }
/* Date */
.tpl_news_date {
width:49px;
height:58px;
margin-top:6px;
background:url(images/datebg.gif) no-repeat;
}
.tpl_news_date .month {
color:#FFF;
padding-top:3px;
}
.tpl_news_date .day {
color:#555;
padding-top:1px;
font-size:20px;
font-weight:bold;
}
.tpl_news_date .year {
color:#555;
font-size:9px;
}
/* Author */
.tpl_news_author {
padding-top:4px;
color:#777;
}
.tpl_news_author a,
.tpl_news_author a:visited { font-weight:bold; color:#517E9F; }
.tpl_news_author a:hover {
color: #889EB3;
}
img {border:0;}
1. Usunąć kalendarz potrafię (się znaczy z pliku theme.php usuwam tabelkę z zawartością komórki lewej, z kalendarzem, pozostawiając zawartość prawej, z newsem). Jednak jak wygląda działająca funkcja wyświetlająca datę? Tam mam podział na 3, a pewnie jest coś łatwiejszego.
2. Totalnie nie wiem, jak usunąć ikonę kategorii.
3. I ten temat, co nie próbuję usunąć, to błędy... :(
4. Dodanie kategorii newsów i autora, jakie zmienne to wywołują ?
Z góry serdecznie dziękuję za udzieloną pomoc. Templatka mnie zaskoczyła wyglądem (poza bocznymi kolumnami, potem się nimi zajmę :P) i naprawdę liczę na to, że pozwolicie mi skorzystać z jej potencjału za pomocą Waszej wiedzy :-)
Pozdrawiam, Mariusz.
Edytowane przez Pieka dnia 10.10.2009 13:01:47
|