|
2Dark theme dropdown
|
| metalblue |
Posted on 24-02-2012 10:43
|

Newbie

Posts: 4
Joined: 24/02/2012
|
Hello! Sorry for my bad english. I tried to install the infusion - CSS DROPDOWN MENU V1.0E by Smokeman. I put the php code into the banner section, but nothing happened. Then i read the thread for 2Dark theme and css dropdown menu where was wrote some code for theme.php [ to include ".showbanners()". I include it but nothing happened... can somebody give me php code that i can insert css dropdown menu into 2dark theme ? PM me if you need another information  |
| |
|
|
| smokeman |
Posted on 24-02-2012 11:10
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
Post the theme here - the hole map with the theme in.
What's the link to your site btw ?
|
| |
|
|
| metalblue |
Posted on 24-02-2012 11:40
|

Newbie

Posts: 4
Joined: 24/02/2012
|
www.newspaper.gal... is my site.
Code<?php
/*******************************************************************************
Theme for PHP-Fusion V7.01
Theme Name: 2Dark
Description: Very minimal design, to bring out the content on the page.
Version: 1.0
Tags: dark, two-columns, fixed-width.
Modification: instructions are inside of README file.
Author: SimpleVision
email:
site: http://simplevisi...
Copyright (c) 2010 SimpleVision.dk
Licences: AGPLv3
******************************************************************************/
/// Theme general
define("THEME_BULLET", "");
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
function get_head_tags(){
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style,$fusion_page_title;
echo "<div class='wrapper'>
<div id='header'>
<div id='menu'> <div id='tools'>
<div id='logo'></div>
<ul id='user-nav'>";
if(iMEMBER){
echo "
<li><a href='".BASEDIR."edit_profile.php'>".$locale['global_120']."</a> </li>
<li><a href='".BASEDIR."messages.php'>".$locale['global_121']."</a></li>
".(iADMIN ? "<li><a href='".ADMIN."index.php".$aidlink."' >".$locale['global_123']."</a></li>" : "")."
<li><a href='".BASEDIR."setuser.php?logout=yes'>".$locale['global_124']."</a></li>\n";
}else{
echo "
<li><a href='".BASEDIR."login.php'>".$locale['global_104']."</a></li>
".($settings['enable_registration'] ? "
<li><a href='".BASEDIR."register.php'>".$locale['global_107']."</a></li>" : "");
}
echo "
</ul>
</div>
<div id='container'> ".
preg_replace(
"^(href='(\.\./)*".(
preg_match("(forum)",cleanurl($_SERVER['PHP_SELF']))
? "forum/index.php" : preg_quote(FUSION_SELF)
)."')^i",
"\\1 class='current'",
showsublinks("")
);
// echo render_search();
echo "
</div>
</div>
</div>
<div id='banner'>
<h1>".$fusion_page_title."</h1>
<div id='bannerdump'>
</div>
</div>
<div class='content'>
<div id='main' ".((LEFT || RIGHT) ? "": "style='width:100%'").">
".U_CENTER.CONTENT.
L_CENTER."
</div>
".((LEFT || RIGHT) ? "<div id='side'>".RIGHT.LEFT."</div>" : "")."
</div>
<div id='footer'>
<div class='right'><ul><li>".showcounter()."</li>
<li>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</li></ul></div>
".(!$license ? "<div>".showcopyright()."<br />Theme <b>2Dark</b> created by <a href='http://simplevision.dk/php-fusion/' lang='en' title='php-fusion themes'>simplevision</a> and funded by <a href='http://live-koncerter.dk' title='Koncerter i Danmark' lang='da'>koncerter i danmark</a></div>" : "").stripslashes($settings['footer'])."
</div> </div>
<script type='text/javascript' src='".THEME."js/fusion.js' ></script>
<script type='text/javascript'>
$().ready(function() {
$('body').MakeFusion({
thumbsPerRow:".$settings['thumbs_per_row']."
});
});
</script>
";
}
function render_news($subject, $news, $info) {
global $locale;
opentable(isset($_GET['readmore'])?$subject: "");
echo (isset($_GET['readmore'])? "": "<a href='news.php?readmore=".$info['news_id']."'><h2 class='panelcap'>".$info['news_subject']."</h2></a>");
echo "<div class='item'>".$news."</div>
<div class='item-footer'>
".newsposter($info," ·").newsopts($info," ·").itemoptions("N",$info['news_id'])."</div>";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='item'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='item-footer'>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>";
closetable();
}
function opentable($title) {
global $locale;
$fileName=basename(FUSION_SELF, ".php");
$id = array_search($title, $locale);
$css= $fileName." css".$id;
echo "<div ".(preg_match("[^0-9]",$id)? "id='{$id}'":"")." class='panelbody $css'>".(!empty($title) ? "<h2 class='panelcap'>$title </h2>" : "");
}
function closetable() {
echo "</div>";
}
$panel_collapse = false;
function openside($title, $collapse = false, $state = "on") {
static $box_id = 0; $box_id++;
global $panel_collapse, $p_data; $panel_collapse = $collapse;
if($p_data['panel_filename'] == "css_navigation_panel") $title = "";
opentable(($collapse ? panelbutton($state,$box_id) : "").$title);
echo ($collapse ? panelstate($state, $box_id) : "");
}
function closeside() {
global $panel_collapse, $p_data;
echo ($panel_collapse ? "</div>" : "");
closetable();
}
?>
|
| |
|
|
| smokeman |
Posted on 24-02-2012 11:44
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
|
| |
|
|
| metalblue |
Posted on 24-02-2012 12:06
|

Newbie

Posts: 4
Joined: 24/02/2012
|
http://dox.bg/fil...3ea2d1828a |
| |
|
|
| smokeman |
Posted on 24-02-2012 12:35
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
Well, have you tried with this theme.php:
http://www.php-fu...ost_149613 ?
That should work for you too.
|
| |
|
|
| metalblue |
Posted on 24-02-2012 12:49
|

Newbie

Posts: 4
Joined: 24/02/2012
|
I tried but it doesn't work... when i replace theme.php with newer i refresh my site and it gives error : www.newspaper.gal... |
| |
|