Logo jako logo i slider w skórce Blue Mods Theme
|
kura100214 |
Dodany dnia 22.10.2013 12:38:40
|
Przedszkolak
Postów: 60 Pomógł: 1 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 21.11.2010 11:53
|
Witam Chciałbym prosić o pomoc w zrobieniu małej modyfikacji logo w skórce o nazwie "Blue Mods Theme" Link -->http://www.phpfus...oad_id=273. Otóż chciałbym osiągnąć taki oto efekt jak na tym zdjęciu :
Chodzi mi tylko żeby podzielić to na dwa divy lewy i prawy żeby w pierwszym było miejsce na logo a w drugim slider ze zdjęciami który dodam już sobie sam jakoś
Z góry dziękuję za pomoc
PW od moderatora:
- Zmiana nazwy tematu - khaman 22.10.2013 14:24
- Ogólna uwaga - khaman 22.10.2013 14:25
Edytowane przez khaman dnia 22.10.2013 15:29:03
|
|
|
|
Wścibski Gość |
Dodany dnia 24.11.2024 20:03:56
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Vanko |
Dodany dnia 22.10.2013 15:33:58
|
Początkujący
Postów: 228 Pomógł: 28
v7.02.07 Data rejestracji: 04.11.2012 15:54
|
Cześć, podaj kod pliku theme.php twojego szablonu.
Edytowane przez Vanko dnia 22.10.2013 15:42:22
|
|
|
|
kura100214 |
Dodany dnia 22.10.2013 15:46:15
|
Przedszkolak
Postów: 60 Pomógł: 1 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 21.11.2010 11:53
|
Proszę :)
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Blue Mods Theme
| Filename: theme.php
| Author: PHP-Fusion Mods UK
| Version: v1.00
| Developers: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| Edit theme: PawelK
| Version: v1.02
| Na potrzeby Parafii GK
| Site: #
+--------------------------------------------------------+
| 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")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "1000px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' class='theme-bullet'/>");
set_image("author", THEME."images/author.png");
set_image("date", THEME."images/date.png");
set_image("reads", THEME."images/reads.png");
set_image("comments", THEME."images/comments.png");
set_image("readmore", THEME."images/readmore.png");
set_image("edit", THEME."images/edit.png");
set_image("print", THEME."images/printer.png");
set_image("sticky", THEME."images/sticky.png");
set_image("new", THEME."images/new.png");
set_image("facebook", THEME."images/facebook.png");
set_image("google+", THEME."images/google.png");
set_image("twitter", THEME."images/twitter.png");
function render_page($license=false) {
global $settings, $locale, $main_style, $mysql_queries_time, $aidlink, $userdata;
echo "<div class='outer-container'>\n";
echo"<div id='middle_box'><div style='padding-top: 7px; padding-left: 10px;'>".showbanners()."</div>
</div>\n";
echo "<div class='sub-header clearfix'>\n
<div class='float-left'>";
require_once THEME."includes/menu/functions.php";
echo navigation();
echo"</div>\n
<div class='float-right sub-date'>".showsubdate()."</div>\n
</div>\n";
echo "<div class='container clearfix $main_style'>\n";
if (LEFT || RIGHT) { echo "<div class='side-border-left'>".LEFT."".RIGHT."</div>\n"; }
echo "<div class='main-content'><div class='main-container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
echo"</div> <div id='footer'>";
echo" <div class='copyright'>";
/* tresc nad stopka */
echo showcopyright();
echo"<br /><span style='font-size: 11px;'> ".stripslashes($settings['footer'])." </span></div></div></div>\n";
}
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
if ($c_info['admin_link'] !== false) {
echo "<div class='floatfix'>\n
<div class='comment_admin'>".$c_info['admin_link']."</div>\n
</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='comment-main spacer'>
<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
<span class='comment-name small'>".$data['comment_name']."</span>\n
<span class='small'>".$data['comment_datestamp']."</span> \n";
if ($data['edit_dell'] !== false) { echo "<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "\n<div class='tbl2 comment_message'>".$data['comment_message']."</div>\n";
echo "</div>\n</div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
closetable();
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
$parameter= $settings['siteurl']."news.php?readmore=".$info['news_id'];
$title= $settings['sitename'].$locale['global_200'].$locale['global_077'].$locale['global_201'].$info['news_subject']."".$locale['global_200'];
$breaking_news = 7200; //Breaking News Time (1 Hour/60 Mins/3600 Seconds)
opentable($subject.(time()-$info['news_date'] < $breaking_news ? " <img class='breaking-news' src='".get_image("new")."' title='New News Item' alt='New News Item'/>" :
($info['news_sticky'] == 1 ? "<img class='sticky-news' src='".get_image("sticky")."' title='Sticky News Item' alt='Sticky News Item'/>" : "")));
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."' alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['news_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."\n
<img src='".get_image("reads")."' alt='".$info['news_reads']." ".$locale['global_074']."' title='".$info['news_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['news_reads']." ".$locale['global_074']."";
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("N")) {
echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n";
echo"</div>\n";
echo "<div class='news-body floatfix'>".$info['cat_image'].$news."</div>\n";
if ($info['news_ext'] == "y") { echo" <div class='news-infob'>";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";
echo"</div>\n";
}
echo"<div class='share'><a class='fpst_bookmark' onclick=\"window.open('http://www.facebook.com/share.php?u=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("facebook")."' alt='Share on Facebook' title='Share on Facebook' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('http://twitter.com/share?url=".$parameter."&text=$title','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("twitter")."' alt='Share on Twitter' title='Share on Twitter' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('https://plus.google.com/share?url=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("google+")."' alt='Share on Google+' title='Share on google+' style='border: 0px; vertical-align:middle;' /></a></div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
opentable($subject);
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."'alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['article_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."\n
<img src='".get_image("reads")."' alt='".$info['article_reads']." ".$locale['global_074']."' title='".$info['article_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['article_reads']." ".$locale['global_074']."";
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale[ 'global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("A")) {
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n</div>\n
<div class='news-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n
<div class='news-infob'>";
echo"</div>\n";
closetable();
}
function opentable($title) {
echo "<div class='capmain-top'></div>\n";
echo "<div class='cap-main'>$title</div>\n
<div class='main-border'>\n";
}
function closetable() { echo "</div>\n"; }
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain-top'></div>\n";
echo "<div class='scap-main'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='panelbutton'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }else{
echo "</div>\n\n";
}
}
?>
|
|
|
|
Vanko |
Dodany dnia 22.10.2013 15:50:24
|
Początkujący
Postów: 228 Pomógł: 28
v7.02.07 Data rejestracji: 04.11.2012 15:54
|
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Blue Mods Theme
| Filename: theme.php
| Author: PHP-Fusion Mods UK
| Version: v1.00
| Developers: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| Edit theme: PawelK
| Version: v1.02
| Na potrzeby Parafii GK
| Site: #
+--------------------------------------------------------+
| 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")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "1000px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' class='theme-bullet'/>");
set_image("author", THEME."images/author.png");
set_image("date", THEME."images/date.png");
set_image("reads", THEME."images/reads.png");
set_image("comments", THEME."images/comments.png");
set_image("readmore", THEME."images/readmore.png");
set_image("edit", THEME."images/edit.png");
set_image("print", THEME."images/printer.png");
set_image("sticky", THEME."images/sticky.png");
set_image("new", THEME."images/new.png");
set_image("facebook", THEME."images/facebook.png");
set_image("google+", THEME."images/google.png");
set_image("twitter", THEME."images/twitter.png");
function render_page($license=false) {
global $settings, $locale, $main_style, $mysql_queries_time, $aidlink, $userdata;
echo "<div class='outer-container'>\n";
echo"<div id='middle_box'> <table width='100%' align='center'><tr><td width='50%'>
<div style='padding-top: 7px; padding-left: 10px;'>".showbanners()."</div>
</td><td width='50%'> </ TUTAJ UMIESZCZASZ KO DRUGIEGO POLA \>
</td></tr></table>
</div>\n";
echo "<div class='sub-header clearfix'>\n
<div class='float-left'>";
require_once THEME."includes/menu/functions.php";
echo navigation();
echo"</div>\n
<div class='float-right sub-date'>".showsubdate()."</div>\n
</div>\n";
echo "<div class='container clearfix $main_style'>\n";
if (LEFT || RIGHT) { echo "<div class='side-border-left'>".LEFT."".RIGHT."</div>\n"; }
echo "<div class='main-content'><div class='main-container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
echo"</div> <div id='footer'>";
echo" <div class='copyright'>";
/* tresc nad stopka */
echo showcopyright();
echo"<br /><span style='font-size: 11px;'> ".stripslashes($settings['footer'])." </span></div></div></div>\n";
}
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
if ($c_info['admin_link'] !== false) {
echo "<div class='floatfix'>\n
<div class='comment_admin'>".$c_info['admin_link']."</div>\n
</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='comment-main spacer'>
<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
<span class='comment-name small'>".$data['comment_name']."</span>\n
<span class='small'>".$data['comment_datestamp']."</span> \n";
if ($data['edit_dell'] !== false) { echo "<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "\n<div class='tbl2 comment_message'>".$data['comment_message']."</div>\n";
echo "</div>\n</div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
closetable();
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
$parameter= $settings['siteurl']."news.php?readmore=".$info['news_id'];
$title= $settings['sitename'].$locale['global_200'].$locale['global_077'].$locale['global_201'].$info['news_subject']."".$locale['global_200'];
$breaking_news = 7200; //Breaking News Time (1 Hour/60 Mins/3600 Seconds)
opentable($subject.(time()-$info['news_date'] < $breaking_news ? " <img class='breaking-news' src='".get_image("new")."' title='New News Item' alt='New News Item'/>" :
($info['news_sticky'] == 1 ? "<img class='sticky-news' src='".get_image("sticky")."' title='Sticky News Item' alt='Sticky News Item'/>" : "")));
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."' alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['news_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."\n
<img src='".get_image("reads")."' alt='".$info['news_reads']." ".$locale['global_074']."' title='".$info['news_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['news_reads']." ".$locale['global_074']."";
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("N")) {
echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n";
echo"</div>\n";
echo "<div class='news-body floatfix'>".$info['cat_image'].$news."</div>\n";
if ($info['news_ext'] == "y") { echo" <div class='news-infob'>";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";
echo"</div>\n";
}
echo"<div class='share'><a class='fpst_bookmark' onclick=\"window.open('http://www.facebook.com/share.php?u=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("facebook")."' alt='Share on Facebook' title='Share on Facebook' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('http://twitter.com/share?url=".$parameter."&text=$title','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("twitter")."' alt='Share on Twitter' title='Share on Twitter' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('https://plus.google.com/share?url=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("google+")."' alt='Share on Google+' title='Share on google+' style='border: 0px; vertical-align:middle;' /></a></div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
opentable($subject);
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."'alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['article_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."\n
<img src='".get_image("reads")."' alt='".$info['article_reads']." ".$locale['global_074']."' title='".$info['article_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['article_reads']." ".$locale['global_074']."";
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale[ 'global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("A")) {
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n</div>\n
<div class='news-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n
<div class='news-infob'>";
echo"</div>\n";
closetable();
}
function opentable($title) {
echo "<div class='capmain-top'></div>\n";
echo "<div class='cap-main'>$title</div>\n
<div class='main-border'>\n";
}
function closetable() { echo "</div>\n"; }
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain-top'></div>\n";
echo "<div class='scap-main'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='panelbutton'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }else{
echo "</div>\n\n";
}
}
?> jest dobrze?. |
|
|
|
kura100214 |
Dodany dnia 22.10.2013 15:55:53
|
Przedszkolak
Postów: 60 Pomógł: 1 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 21.11.2010 11:53
|
Oooo wielkie dzięki działa działa teraz muszę to sobie skonfigurować po swojemu i będzie git
Połączony z 22 październik 2013 18:19:
No dobra jednak mi się coś nie udaje może pomógłby mi ktoś z wstawieniem i dostosowaniem tam tego http://dev7studio...vo-slider/ jest to Nivo Slider po prawej stronie obok logo żeby to wyglądało tak :
Edytowane przez kura100214 dnia 22.10.2013 18:19:48
|
|
|
|
Vanko |
Dodany dnia 22.10.2013 19:55:13
|
Początkujący
Postów: 228 Pomógł: 28
v7.02.07 Data rejestracji: 04.11.2012 15:54
|
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Blue Mods Theme
| Filename: theme.php
| Author: PHP-Fusion Mods UK
| Version: v1.00
| Developers: Craig
| Site: http://www.phpfusionmods.co.uk
+--------------------------------------------------------+
| Edit theme: PawelK
| Version: v1.02
| Na potrzeby Parafii GK
| Site: #
+--------------------------------------------------------+
| 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")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "1000px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.png' alt='' class='theme-bullet'/>");
set_image("author", THEME."images/author.png");
set_image("date", THEME."images/date.png");
set_image("reads", THEME."images/reads.png");
set_image("comments", THEME."images/comments.png");
set_image("readmore", THEME."images/readmore.png");
set_image("edit", THEME."images/edit.png");
set_image("print", THEME."images/printer.png");
set_image("sticky", THEME."images/sticky.png");
set_image("new", THEME."images/new.png");
set_image("facebook", THEME."images/facebook.png");
set_image("google+", THEME."images/google.png");
set_image("twitter", THEME."images/twitter.png");
function render_page($license=false) {
global $settings, $locale, $main_style, $mysql_queries_time, $aidlink, $userdata;
echo " <link rel='stylesheet' href='".THEME."st/default/default.css' type='text/css' media='screen' />
<link rel='stylesheet' href='".THEME."st/light/light.css' type='text/css' media='screen' />
<link rel='stylesheet' href='".THEME."st/dark/dark.css' type='text/css' media='screen' />
<link rel='stylesheet' href='".THEME."st/bar/bar/bar.css' type='text/css' media='screen' />
<link rel='stylesheet' href='".THEME."st/nivo-slider.css' type='text/css' media='screen' />
<link rel='stylesheet' href='style.css' type='text/css' media='screen' />
<script type='text/javascript' src='".THEME."st/jquery-1.9.0.min.js'></script>
<script type='text/javascript' src='".THEME."st/jquery.nivo.slider.js'></script>
<script type='text/javascript'>
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>";
// ===============================USTAWIENIA SLIDERA==
$slider = "
<img src='img/toystory.jpg' data-thumb='images/toystory.jpg' alt='' />
<img src='img/up.jpg' data-thumb='images/up.jpg' alt='' title='This is an example of a caption' />
<img src='img/walle.jpg' data-thumb='images/walle.jpg' alt='' data-transition='slideInLeft' />
<img src='img/nemo.jpg' data-thumb='images/nemo.jpg' alt='' title='#htmlcaption' />
";
////////////////////////////////////////////////////////////////////////////////////////////////
// <img src=' obrazek ' data-thumb=' obrazek' alt='' title=' TEKST W CZARNYM POLU ' /> | PAMIĘTAJ MUSISZ DWA RAZY PODAC ADRES DO OBRAZKA.
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
echo "<div class='outer-container'>\n";
echo"<div id='middle_box'> <table width='100%' align='center'><tr><td width='50%'>\n
<div style='padding-top: 7px; padding-left: 10px;'>".showbanners()."</div>\n
</td><td width='50%'> <div class=' theme-default' style='max-width:500px !important; max-height:400px !important;'>
<div id='slider' class='nivoSlider'>{$slider}</div></div> </td></tr></table>\n
</div>\n";
echo "<div class='sub-header clearfix'>\n
<div class='float-left'>";
require_once THEME."includes/menu/functions.php";
echo navigation();
echo"</div>\n
<div class='float-right sub-date'>".showsubdate()."</div>\n
</div>\n";
echo "<div class='container clearfix $main_style'>\n";
if (LEFT || RIGHT) { echo "<div class='side-border-left'>".LEFT."".RIGHT."</div>\n"; }
echo "<div class='main-content'><div class='main-container'>".U_CENTER.CONTENT.L_CENTER."</div></div>\n";
echo"</div> <div id='footer'>";
echo" <div class='copyright'>";
/* tresc nad stopka */
echo showcopyright();
echo"<br /><span style='font-size: 11px;'> ".stripslashes($settings['footer'])." </span></div></div></div>\n";
}
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
if ($c_info['admin_link'] !== false) {
echo "<div class='floatfix'>\n
<div class='comment_admin'>".$c_info['admin_link']."</div>\n
</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='comment-main spacer'>
<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
<span class='comment-name small'>".$data['comment_name']."</span>\n
<span class='small'>".$data['comment_datestamp']."</span> \n";
if ($data['edit_dell'] !== false) { echo "<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "\n<div class='tbl2 comment_message'>".$data['comment_message']."</div>\n";
echo "</div>\n</div>\n";
}
echo "</div>\n";
} else {
echo "<div class='nocomments-message spacer'>".$locale['c101']."</div>\n";
}
closetable();
}
function render_news($subject, $news, $info) {
global $locale, $settings, $aidlink;
$parameter= $settings['siteurl']."news.php?readmore=".$info['news_id'];
$title= $settings['sitename'].$locale['global_200'].$locale['global_077'].$locale['global_201'].$info['news_subject']."".$locale['global_200'];
$breaking_news = 7200; //Breaking News Time (1 Hour/60 Mins/3600 Seconds)
opentable($subject.(time()-$info['news_date'] < $breaking_news ? " <img class='breaking-news' src='".get_image("new")."' title='New News Item' alt='New News Item'/>" :
($info['news_sticky'] == 1 ? "<img class='sticky-news' src='".get_image("sticky")."' title='Sticky News Item' alt='Sticky News Item'/>" : "")));
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."' alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['news_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['news_date'])."\n
<img src='".get_image("reads")."' alt='".$info['news_reads']." ".$locale['global_074']."' title='".$info['news_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['news_reads']." ".$locale['global_074']."";
if ($info['news_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."#comments'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=N&item_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("N")) {
echo " <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n";
echo"</div>\n";
echo "<div class='news-body floatfix'>".$info['cat_image'].$news."</div>\n";
if ($info['news_ext'] == "y") { echo" <div class='news-infob'>";
echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' class='button'><span class='rightarrow icon'></span>".$locale['global_072']."</a>\n";
echo"</div>\n";
}
echo"<div class='share'><a class='fpst_bookmark' onclick=\"window.open('http://www.facebook.com/share.php?u=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("facebook")."' alt='Share on Facebook' title='Share on Facebook' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('http://twitter.com/share?url=".$parameter."&text=$title','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("twitter")."' alt='Share on Twitter' title='Share on Twitter' style='border:0px; vertical-align: middle;'/></a>\n
<a class='fpst_bookmark' onclick=\"window.open('https://plus.google.com/share?url=".$parameter."','','location=no,scrollbars=yes,width=550,height=400,left='+(screen.availWidth/2-200)+',top='+(screen.availHeight/2-200)+'');return false;\"><img src='".get_image("google+")."' alt='Share on Google+' title='Share on google+' style='border: 0px; vertical-align:middle;' /></a></div>\n";
closetable();
}
function render_article($subject, $article, $info) {
global $locale, $settings, $aidlink;
opentable($subject);
echo" <div class='news-info'><img src='".get_image("author")."' alt='".$locale['global_070']." ".$info['user_name']."' title='".$locale['global_070'].$info['user_name']."' class='news-icons' /> ".profile_link($info['user_id'], $info['user_name'], $info['user_status']);
echo " <img src='".get_image("date")."'alt='".$locale['global_049']."".$locale['global_071']." ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."' title='".$locale['global_049']." ".$locale['global_071'].showdate("%d-%m-%Y %H:%M", $info['article_date'])."' class='news-icons' /> ".showdate("%d-%m-%Y %H:%M", $info['article_date'])."\n
<img src='".get_image("reads")."' alt='".$info['article_reads']." ".$locale['global_074']."' title='".$info['article_reads']." ".$locale['global_074']."' class='news-icons' /> ".$info['article_reads']." ".$locale['global_074']."";
if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { echo " <img src='".get_image("comments")."' alt='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' title='".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."' class='news-icons' /> <a href='".BASEDIR."articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale[ 'global_073b'] : $locale['global_073'])."</a>\n"; }
echo "<div class='float-right clearfix'>\n
<a href='".BASEDIR."print.php?type=A&item_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("print")."' title='Print' alt='printer' /></a>\n";
if (iADMIN && checkrights("A")) {
echo "<a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$info['article_id']."'><img class='news-iconsb' src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}
echo "</div>\n</div>\n
<div class='news-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n
<div class='news-infob'>";
echo"</div>\n";
closetable();
}
function opentable($title) {
echo "<div class='capmain-top'></div>\n";
echo "<div class='cap-main'>$title</div>\n
<div class='main-border'>\n";
}
function closetable() { echo "</div>\n"; }
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='scapmain-top'></div>\n";
echo "<div class='scap-main'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='panelbutton'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }else{
echo "</div>\n\n";
}
}
?> Podmień kod w pliku theme.php, następnie wrzuć foldery st i img do katalogu swojego thema. Powinno zadziałać.
SLIDER.ZIP
Edytowane przez Vanko dnia 23.10.2013 13:40:28
|
|
|
|
kura100214 |
Dodany dnia 22.10.2013 21:21:13
|
Przedszkolak
Postów: 60 Pomógł: 1 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 21.11.2010 11:53
|
Niestety dzieję się coś takiego http://serwer1309...l/news.php
PROSZĘ O SZYBKĄ POMOC |
|
|
|
jantom |
Dodany dnia 22.10.2013 21:53:34
|
Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Zabrakło ograniczenia wysokości elementu - kod już usunąłeś, mi wypadło, którą klasę poprawiałem, więc więcej nie jestem w stanie powiedzieć.
Druga rada - nie szalej tak z dodatkami albo przejrzyj je trochę - na stronie 3 razy ładujesz bibliotekę jQuery, w różnych wersjach nawet - to trochę za dużo szczęścia na raz |
|
|
|
kura100214 |
Dodany dnia 22.10.2013 21:54:51
|
Przedszkolak
Postów: 60 Pomógł: 1 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 21.11.2010 11:53
|
W sensie co mam zrobić by to poprawić ? |
|
|