From 3258bfcb72d087c61c14cbc0f152786af9129980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Bakkeli?= Date: Sun, 31 Jul 2011 21:16:39 +0200 Subject: [PATCH 1/2] fixed warnings popping up --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index c7b4187..17e7339 100755 --- a/functions.php +++ b/functions.php @@ -173,7 +173,7 @@ function thumbnail_in_header($title) add_filter('the_title', 'thumbnail_in_header');*/ -function menu_links($items, $args) +function menu_links($items, $args = null) { foreach($items as &$item) if(in_array($item->object, array('page','post','category'))) From 738781710618694bb6d125539ffc8ad36985544f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Bakkeli?= Date: Sun, 31 Jul 2011 21:17:06 +0200 Subject: [PATCH 2/2] la til lightbox hook for evenet table --- header.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/header.php b/header.php index 538aabb..71bcd3a 100755 --- a/header.php +++ b/header.php @@ -113,7 +113,7 @@ $j(function() var modal_not_match = Array(/wp-admin/); -$j(".content .post,#header [href]").live('click',function(e) +$j(".content .post,#header [href],.event-table tr").live('click',function(e) { preModal = window.location.href; e.preventDefault(); @@ -123,6 +123,9 @@ $j(".content .post,#header [href]").live('click',function(e) else href = $j(this).find("[href]").attr('href'); + if(!href) + return; + for(var i = 0; i < modal_match.length; i++) if(href.match(modal_match[i])) break;