From d2964a354ba895d9263e92026e0ddcb252d6f09c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 7 Jan 2016 15:36:32 +0100 Subject: [PATCH] not used anywhere so delete it --- controller/header.php | 55 ------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 controller/header.php diff --git a/controller/header.php b/controller/header.php deleted file mode 100644 index 9e46d76..0000000 --- a/controller/header.php +++ /dev/null @@ -1,55 +0,0 @@ - -global $passInTitle; -$description = ''; -$image = ''; -$title = ''; -$url = get_bloginfo('wpurl'); -// - -// -if(isset($passInTitle)) { - $title = $passInTitle; -} -else { - $title = get_the_title(); -} - -if (strpos($title, 'Home') !== false) -{ - $title = ''; -} -else { - $title .= ' | '; -} -$title .= get_bloginfo(); -// - -// -$description = get_the_excerpt(); -if (empty($description)) { - - $content = get_field('subtemplate')[0]['content']; - if (!empty($content)) { - $description = substr(strip_tags($content),0,140)."..."; - - } -} -if (empty($description)) { - $description = get_bloginfo('description'); -} -// - -// -$image = get_field('header_image')['url']; -if (empty($image)) { - $image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png'; -} -//