Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
View Thread
Who is here? 1 guest(s)
 Print Thread
2Dark theme dropdown
metalblue
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 Smile
 
smokeman
Post the theme here - the hole map with the theme in.

What's the link to your site btw ?
 
http://www.phpfusion-tips.dk/
metalblue
www.newspaper.gal... is my site.


Download source  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," &middot;").newsopts($info," &middot;").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," &middot;").articleopts($info,"&middot;").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
smokeman wrote:

Post the theme here - the hole map with the theme in.

 
http://www.phpfusion-tips.dk/
metalblue
http://dox.bg/fil...3ea2d1828a
 
smokeman
Well, have you tried with this theme.php:
http://www.php-fu...ost_149613 ?

That should work for you too.
 
http://www.phpfusion-tips.dk/
metalblue
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...
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Theme info Themes Support 4 18-04-2014 16:34
Infused Theme Official releases [Themes] 5 05-04-2014 12:59
Omni Responsive Theme Official releases [Themes] 6 04-04-2014 16:28
theme maestro + header html5 Themes Support 3 30-03-2014 20:28
Tattoo Theme Official releases [Themes] 8 28-03-2014 05:38
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel fromVenue