From 933aa53330be751c2925fac9fc1c1e4433a12779 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Tue, 7 Oct 2014 17:02:23 +0300 Subject: [PATCH] hacks to show stuff properly --- functions.php | 4 ++++ header.php | 2 +- page.php | 15 ++++++++++++--- sidebar.php | 6 ------ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index 4fac8aa..c6af45e 100644 --- a/functions.php +++ b/functions.php @@ -218,6 +218,10 @@ function transportation_posttype() { ); } +function openfest_home_page() { + return !($wp->query_vars['pagename']=='home' || $wp->query_vars['pagename']=='home-2'); +} + add_action( 'init', 'transportation_posttype' ); pll_register_string('Schedule','Програма'); pll_register_string('Others','Други'); diff --git a/header.php b/header.php index 030fa7b..d17135b 100644 --- a/header.php +++ b/header.php @@ -31,7 +31,7 @@ query_vars['pagename']=='home' || $wp->query_vars['pagename']=='home-2'){ + if(openfest_home_page()){ echo ''; } ?> diff --git a/page.php b/page.php index 52f3a86..41a57d1 100644 --- a/page.php +++ b/page.php @@ -8,9 +8,18 @@ if ( $pagename == 'about' || wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) ); echo '
'; } + +if (openfest_home_page()) { + $coldiv1=''; + $coldiv2=''; +} else { + $coldiv1='
'; + $coldiv2='
'; +} + ?>
-
+

-
- + +
diff --git a/sidebar.php b/sidebar.php index 80212ef..01a28c7 100644 --- a/sidebar.php +++ b/sidebar.php @@ -1,6 +1,3 @@ -query_vars['pagename']!='home' && $wp->query_vars['pagename']!='home-2') { -?>


@@ -9,6 +6,3 @@ if ($wp->query_vars['pagename']!='home' && $wp->query_vars['pagename']!='home-2'
-