Przedszkolak
Postów: 4
Data rejestracji: 30.10.2008 16:14
|
Oczywiście ucięte litery to te z prawej strony na zdjęciu.
zapomniałem napisać ze ta treść znajduje się po kliknięciu czytaj więcej a to za pewne może mieć duże znaczenie.
Modyfikowałem wielokrotnie lecz nie przypominam sobie bym grzebał coś w funkcji newsa. Zamieszcze tu plik theme.php i style.css.
Dzieki za odpowiedź
pozdro
theme.php
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Theme: Modern10
| Filename: theme.php
| Author: Hans Kristian Flaatten {Starefossen}
+--------------------------------------------------------+
| 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"); }
require_once INCLUDES."theme_functions_include.php";
// Required constant
define("THEME_BULLET", "");
// Set png images
set_image("up", THEME."images/up.png");
set_image("down", THEME."images/down.png");
set_image("left", THEME."images/left.png");
set_image("right", THEME."images/right.png");
set_image("newthread", THEME."forum/newthread.png");
set_image("reply", THEME."forum/reply.png");
set_image("forum_edit", THEME."forum/edit.png");
set_image("quote", THEME."forum/quote.png");
set_image("pm", THEME."forum/pm.png");
set_image("web", THEME."forum/web.png");
set_image("email", THEME."forum/email.png");
set_image("profile", THEME."forum/profile.png");
set_image("folder", THEME."forum/folder.png");
set_image("folderhot", THEME."forum/folderhot.png");
set_image("folderlock", THEME."forum/folderlock.png");
set_image("foldernew", THEME."forum/foldernew.png");
set_image("stickythread", THEME."forum/stickythread.png");
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
// Container Start
echo "<div id='container1'>\n";
echo" <table width='100%'>
<tr>
<td width='1%'>";
echo "<tr><td class='header-left'><a href='index.php'><img src='".THEME."images/original.png' width='110' height='75' alt='' style='margin-bottom: -17px;'></td>";
echo "</td>
<td width='25%'>";
echo "<div id='search'>\n";
echo "<form action='".BASEDIR."search.php' method='get'>\n";
echo "<input type='text' class='search' name='stext' />";
echo "<input type='submit' class='submit' name='search' value='' />";
echo "</form>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "</td>
<td width='32%'>";
echo "<div id='top-nav'>".showsublinks("")."</div>\n";
echo "</td>
<td width='1%'>";
echo "</td>
</tr>
</table>";
echo" <table width='100%'>
<tr>
<td width='1%'>";
echo "<tr><td class='header-left'><a href='register.php'><img src='".THEME."images/info.png' width='898px' height='200px' alt='' style='margin-bottom: -1px;'></td>";
echo "</td>
</tr>
</table>";
// Container End
echo "</div>\n";
// Container Start
echo "<div id='container'>\n";
// Content
echo "<div id='conent'>\n";
if (LEFT) { echo "<div id='side-left'>".LEFT."</div>\n"; }
if (RIGHT) { echo "<div id='side-right'>".RIGHT."</div>\n"; }
echo "<div id='side-center' class='".$main_style."'>";
echo "<div class='upper'>".U_CENTER."</div>\n";
echo "<div class='content'>".CONTENT."</div>\n";
echo "<div class='lower'>".L_CENTER."</div>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "</div>\n";
//Footer
echo "<div id='footer' class='".$main_style."'>\n";
echo "<div id='copyright-site'>".stripslashes($settings['footer'])."</div>\n";
if (!$license) { echo "<div id='copyright-fusion'>".showcopyright()."</div>\n"; }
echo "</div>\n";
echo "<!-- ".showrendertime()." -->";
// Container End
echo "</div>\n";
}
function render_news($subject, $news, $info) {
global $_GET; $image = "";
$image = $info['cat_image'];
echo "<a name='news_".$info['news_id']."' id='news_".$info['news_id']."'></a>\n";
echo "<div class='news-item floatfix'>\n";
echo "<div class='content'>\n";
echo "<div class='image'>".$image."</div>\n";
echo "<div class='info'>\n";
echo "<span class='title'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>".$info['news_subject']."</a></span>\n";
echo "<span class='poster'>".newsposter($info, "")."</span>\n";
echo "</div>\n";
echo "<div class='subject'>".$news."</div>\n";
echo "<div class='footer'>\n";
echo "<span class='category'>".newscat($info, " - ")."</span>";
echo "<span class='read-more'>".newsopts($info, " - ")."</span>";
echo "</div>\n";
echo "</div>\n";
echo "<div class='clear'></div>\n";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='news-item'>\n";
echo "<div class='content'>\n";
echo "<div class='info'>\n";
echo "<span class='title'>".$subject."</span>\n";
echo "<span class='poster'>".articleposter($info, "")."</span>\n";
echo "</div>\n";
echo "<div class='subject'>".$article."</div>\n";
echo "<div class='footer'>\n";
echo "<span class='category'>".articlecat($info, " - ")."</span>";
echo "<span class='read-more'>".articleopts($info, " - ")."</span>";
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function opentable($title) {
echo "<div class='side-panel'>\n";
echo "<div class='title'>".$title."</div>\n";
}
function closetable() {
echo "</div>";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='side-panel'>\n";
echo "<div class='title'>".$title."</div>\n";
/* echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); } */
}
function closeside() {
global $panel_collapse;
echo "</div>\n";
/* if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n"; */
}
?>
styles.css
/* PHP-Fusion 7.02.00 Style Sheet
--------------------------------------------------------------
Style name: Modern10
Style author: Hans Kristian Flaatten {Starefossen}
Copyright 2010 PHP-Fusion Development Team
--------------------------------------------------------------
*/
/* HTML Tags
---------------------------------------- */
body {
background: rgb(101, 101, 101);
color: #000;
background-image: url(images/bd.png);
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
margin: 0pt;
}
form {
margin: 0px;
}
a {
color: #04688d;
text-decoration: none;
}
a:hover {
color: #04688d;
text-decoration: underline;
}
div.emulated-fieldset {
position: relative;
margin: 20px 0px 10px 0px;
border: 1px solid #ccc;
width: 320px;
background: inherit;
}
div.emulated-fieldset span.emulated-legend {
display: inline;
position: absolute;
top: -12px;
margin: 0 5px;
padding: 4px;
background: inherit;
}
div.emulated-fieldset div.attachments-list {
padding: 10px 3px 3px 3px;
width: 320px;
}
hr {
height: 1px;
border: 0;
border: 1px solid #eee;
}
hr.side-hr {
height: 1px;
border: 0;
border-bottom: 2px dotted #555;
}
table {
padding: 0;
margin: 0;
border-collapse: collapse;
}
td {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
}
pre {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
}
/* PHP-Fusion Site Construction
---------------------------------------- */
#container {
background: rgb(255, 255, 255);
overflow: hidden;
position: relative;
word-wrap: break-word;
text-align: left;
margin: 10px auto;
padding: 0px;
width: 900px;
}
#container1 {
background: rgb(#e8e8e8);
overflow: hidden;
position: relative;
word-wrap: break-word;
text-align: left;
margin: 10px auto;
padding: 0px;
width: 900px;
}
#top-nav, #top-nav ul li a {
color: #363030;
font-family: 'Helvetica Neue', Arial, sans-serif;
font-weight: normal;
font-size: 13px;
}
#top-nav ul li a:hover {
color: #999;
text-decoration: none;
}
#top-nav ul li.current-link a, #top-nav ul li.current-link a:hover {
color: #66ABC5;
text-decoration: none;
}
#top-nav {
line-height: 0px;
text-align: left;
margin-left: 5px;
padding: 0px;
overflow: visible;
display: block;
}
#top-nav ul {
list-style: none;
margin: 0px;
padding: 5px;
}
#top-nav ul li {
display: inline;
list-style-type: none;
padding-left: 10px;
aligin-right: 10px;
position: relative;
top: 10px;
}
#header-left {
color: #797979;
font-family: HelveticaNeue-Light, 'Helvetica Neue', Arial, sans-serif;
font-size: 36px;
font-weight: 300;
text-transform: uppercase;
margin-bottom: 50px 0 0 0;
padding: 0;
}
#header a {
color: #e8e8e8;
}
#header a:hover {
color: #e8e8e8;
font-style: normal;
text-decoration: none;
}
#search {
float: right;
margin-bottom: -15px;
}
#search input.submit {
border: 0;
background: transparent;
background-image: url(images/search.png);
background-position: right bottom; width: 200px;
background-repeat: no-repeat;
width: 38px;
height: 32px;
padding: 5 1 1 5;
margin: -3px;
cursor: pointer;
}
#search input.search {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 20px;
color: #515151;
width: 400px;
padding: 4;
margin: 0 0px 0 0;
border: solid 1px #d3d3d3;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
#content {
width: 100%;
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
}
#side-left {
float: left;
width: 180px;
}
#side-right {
float: right;
width: 180px;
}
#side-center {
}
div.side-both {
margin-right: 183px;
margin-left: 183px;
}
div.side-left {
margin-left: 183px;
}
div.side-right {
margin-right: 183px;
}
#footer {
text-align: left;
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
color: #e8e8e8;
font-size: 0px;
margin-top: 0px;
}
#copyright-site {
margin-bottom: 0px;
}
/* PHP-Fusion Panels
---------------------------------------- */
.ui-sortable { margin: 0;padding: 0;}
a.side {
color: #696969;
text-decoration: none;
}
a:hover.side {
text-decoration: underline;
}
div.side-panel, .admin-message {
font-family: "Times New Roman", serif;
font-size: 12px;
color: #515151;
overflow: visible;
display: block;
margin-bottom: 0px;
padding: 0px;
}
#side-left div.side-panel, #side-right div.side-panel, #side-center div.upper div.side-panel, #side-center div.lower div.side-panel, .admin-message {
color: #424242;
background: #272727;
}
div.side-panel div.title {
font-family: "Times New Roman", serif;
color: #e8e8e8;
font-size: 18px;
font-weight: 0;
letter-spacing: 0px;
line-height: 20px;
padding-bottom: 5px;
}
#side-center div.upper div.side-panel {
margin-bottom: 20px;
}
.admin-message {
background-color: #ff9999;
}
/* PHP-Fusion News
---------------------------------------- */
div.news-item {
padding: 0 0px;
border: 0px strong #000000;
}
div.news-item span.title {
color: #B7614E;
font-family: HelveticaNeue-Light, 'Helvetica Neue', Arial, sans-serif;
font-size: 24px;
font-weight: 300;
line-height: 17px;
margin: 10;
text-transform: uppercase;
}
div.news-item span.title a {
color: #000000;
text-decoration: none;
}
div.news-item span.title a:hover {
color: #E08566;
text-decoration: none;
}
div.news-item span.poster {
color: #797979;
font-family: HelveticaNeue-Bold, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
font-weight: 700;
line-height: 15px;
margin: 0 0 0 15px;
}
div.news-item div.image {
float: right;
}
div.news-item div.content {
float: left;
margin: 0;
}
div.news-item div.info {
margin-bottom: 15px;
}
div.news-item div.content div.subject, div.news-item div.content {
color: #515151;
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
font-weight: 400;
text-align: justify;
line-height: 17px;
}
div.news-item div.content {
margin-bottom: 20px;
}
div.news-item .news-category {
border: 10px solid #cccccc;;
margin: 0 0 0 15px;
}
div.news-item div.footer {
margin-top: 15px;
}
/* PHP-Fusion Spesific
---------------------------------------- */
.alt {
color: #04688d;
}
.spacer {
margin-bottom: 5px;
}
.button {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
background-color: #cccccc;
border: 2px solid #666666;
font-size: 13px;
line-height: 17px;
color: #666666;
height: 25px;
padding: 3px;
margin: 3px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
cursor: pointer;
}
.button:hover {
color: #333333;
background-color: #999999;
}
.bbcode {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 12px;
color: #000;
background-color: #eee;
border: 1px solid #ccc;
margin-top: 2px;
}
.bbcode-popup {
font-size: 12px;
color: #555;
background-color: #fff;
padding: 4px;
}
.textbox {
font-family: HelveticaNeue, 'Helvetica Neue', Arial, sans-serif;
font-size: 13px;
color: #555;
background-color: #f8f8f8;
border: 2px solid #6699cc;
padding: 3px;
margin: 3px;
overflow: inherit;
word-wrap: normal;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.textbox:focus {
color: #000;
background-color: #E1E1E1;
}
/* General table properties */
.comment-avatar {
padding-right: 6px;
float: left;
}
.center {
margin: 0 auto;
}
.tbl-border {
border: 1px solid #999999;
}
.tbl {
font-size: 12px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl1 {
font-size: 12px;
color: #555;
background-color: #fff;
padding: 4px;
}
.tbl2 {
font-size: 12px;
color: #555;
background-color: #cccccc;
padding: 4px;
}
.tbl-error {
color: #AC260F;
font-weight: bold;
background-color: #FCCAC2;
border:2px solid #EB5339;
}
/* Profile spesific classes */
.profile, .profile_category {
width: 500px;
}
.edit-profile {
width: 500px;
}
/*.user_password .textbox:focus, .user_admin_password .textbox:focus {
background-color: #ff6666;
}*/
.profile_user_reason {
color: #ff6666;
font-weight: bold;
}
/*.user_name td, .user_name .textbox {
font-size: 13px;
padding: 4px;
}*/
.poll {
height: 12px;
border: 1px solid #bbb;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
.small {
font-size: 12px;
font-weight: normal;
}
.small2 {
font-size: 12px;
font-weight: normal;
color: #555;
}
.side-small {
font-size: 12px;
font-weight: normal;
color: #555;
}
.side-label {
color: #555;
background-color: #f1f1f1;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
/* PHP-Fusion Forum Classes
---------------------------------------- */
.forum_idx_table, .forum_table, .forum_thread_table {
border: 0px;
background-color: transparent;
}
.forum {
border-bottom: 5px solid #CCC;
}
.forum_breadcrumbs {
border-left: 5px solid #CCC;
background-color: #f1f1f1;
}
.forum_idx_table .tbl2, .forum_idx_table .tbl1, .forum_table .tbl2, .forum_table .tbl1 {
background-color: transparent;
}
.forum-caption {
font-size: 13px;
font-weight: bold;
color: #515151;
background-color: transparent;
border-bottom: 5px solid #CCC;
padding: 15px 6px 0 0;
margin-top: 15px;
}
.forum_thread_table .forum-caption {
border: 0px;
}
.forum_cat_name {
}
.forum_name {
font-weight: bold;
}
.forum_name .small {
font-size: 12px;
font-weight: normal;
}
.forum_thread_post_date, forum_thread_user_post, .forum_thread_userbar {
background-color: transparent;
}
.forum_thread_user_name, .forum_thread_post_date {
border-top: 5px solid #CCC;
}
.forum_thread_user_name, .forum_thread_user_info, .forum_thread_ip {
background-color: #f1f1f1;
border-right: 5px solid #CCC;
}
.forum_thread_ip, .forum_thread_userbar {
border-bottom: 5px solid #CCC;
/* border-top: 5px solid #CCC; */
}
.quote {
font-size: 12px;
color: #555;
background-color: #f8f8f8;
padding: 4px;
margin: 0px 20px 0px 20px;
border: 1px solid #bbb;
}
/* PHP-Fusion Vertical Navigation
---------------------------------------- */
#navigation h2 {
font-size: 12px;
font-weight: normal;
background-color: #f1f1f1;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li {
height: 1%;
}
#navigation a {
display: block;
color: #555;
padding: 2px;
text-decoration: none;
}
#navigation a:hover {
color: #fff;
background-color: #6699cc;
}
#navigation ul li.current-link a, #navigation ul li.current-link a:hover {
background-color: #66ABC5;
color: #fff;
}
/* PHP-Fusion Page Navigation
---------------------------------------- */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #fff;
background-color: #f6a504;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #555;
background-color: #f1f1f1;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #69C;
margin: 2px;
text-decoration: none;
}
/* PHP-Fusion Helpers
---------------------------------------- */
.clear {
clear: both;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
/* 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;
}
|