Deleted: web/php/trunk/images/shade.png =================================================================== (Binary files differ) Modified: web/php/trunk/include/header.inc =================================================================== --- web/php/trunk/include/header.inc 2010-12-29 00:23:33 UTC (rev 306810) +++ web/php/trunk/include/header.inc 2010-12-29 07:25:58 UTC (rev 306811) @@ -21,7 +21,6 @@ - " /> @@ -58,7 +57,8 @@
  • "> Community
    - + +
    PHP Wiki
    Write a RFC
    @@ -88,23 +88,25 @@
  • "> Help
    +
    + +
    +
    array( "title" => "News", "link" => "/archive/", "children" => print_news($NEWS_ENTRIES, "frontpage", 3, null, true), ), - array( + "conferences" => array( "title" => "Conferences", "link" => "/conferences/", "children" => print_news($NEWS_ENTRIES, "conferences", 3, null, true), ), - array( + "papers" => array( "title" => "Call for Papers", "link" => "/conferences/", "children" => print_news($NEWS_ENTRIES, "cfp", 3, null, true), @@ -848,7 +848,13 @@ ); echo "
    \n"; - foreach($items as $menu) { + foreach($items as $section => $menu) { + + // only print requested sections. + if (is_array($sections) && !in_array($section, $sections)) { + continue; + } + echo "
    {$menu["title"]}
    \n"; foreach($menu["children"] as $child) { echo "
    {$child["title"]}
    \n"; Modified: web/php/trunk/js/common.js =================================================================== --- web/php/trunk/js/common.js 2010-12-29 00:23:33 UTC (rev 306810) +++ web/php/trunk/js/common.js 2010-12-29 07:25:58 UTC (rev 306811) @@ -1,11 +1,35 @@ $(document).ready(function() { - // fade in/out mega drop-downs. - $("#headmenu li:has(div.children)").hoverIntent({ - interval: 100, - timeout: 200, - over: function(){$(this).find("div.children").fadeIn(250);}, - out: function(){$(this).find("div.children").fadeOut(250);} + // slide mega drop-downs up/down. + $("#headmenu li:has(div.children)").click(function(event) { + // don't follow link. + event.preventDefault(); + + var clickedMenu = $(this); + var activeMenu = $('#headmenu li.current'); + var container = $('#mega-drop-down #menu-container'); + + // function to activate the clicked menu. + var activate = function(){ + clickedMenu.addClass('current'); + clickedMenu.find("div.children").appendTo(container); + container.find("div.children").slideUp(0).slideDown("fast"); + }; + + // if there is an active menu, deactivate it first. + if (activeMenu.length) { + activeMenu.removeClass('current'); + var children = container.find("div.children"); + if (children) { + children.slideUp('fast', function(){ + children.appendTo(activeMenu); + if (activeMenu[0] != clickedMenu[0]) + activate(); + }); + } + } else { + activate(); + } }); // remove default search text on focus. Deleted: web/php/trunk/js/jquery.hoverIntent.minified.js =================================================================== --- web/php/trunk/js/jquery.hoverIntent.minified.js 2010-12-29 00:23:33 UTC (rev 306810) +++ web/php/trunk/js/jquery.hoverIntent.minified.js 2010-12-29 07:25:58 UTC (rev 306811) @@ -1,9 +0,0 @@ -/** -* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ -* -* -* @param f onMouseOver function || An object with configuration options -* @param g onMouseOut function || Nothing (use configuration options object) -* @author Brian Cherne -*/ -(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))