mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 17:23:55 +01:00
not used anywhere so delete it
This commit is contained in:
parent
4534502960
commit
d2964a354b
@ -1,55 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: sarahetter
|
||||
* Date: 15-09-17
|
||||
* Time: 4:48 PM
|
||||
*/
|
||||
|
||||
//<editor-fold desc="Init">
|
||||
global $passInTitle;
|
||||
$description = '';
|
||||
$image = '';
|
||||
$title = '';
|
||||
$url = get_bloginfo('wpurl');
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Get Title">
|
||||
if(isset($passInTitle)) {
|
||||
$title = $passInTitle;
|
||||
}
|
||||
else {
|
||||
$title = get_the_title();
|
||||
}
|
||||
|
||||
if (strpos($title, 'Home') !== false)
|
||||
{
|
||||
$title = '';
|
||||
}
|
||||
else {
|
||||
$title .= ' | ';
|
||||
}
|
||||
$title .= get_bloginfo();
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Get Description">
|
||||
$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');
|
||||
}
|
||||
//</editor-fold>
|
||||
|
||||
//<editor-fold desc="Get Image">
|
||||
$image = get_field('header_image')['url'];
|
||||
if (empty($image)) {
|
||||
$image = WPTHEME_TEMPLATE_URL.'/images/ico/apple-touch-icon-152x152.png';
|
||||
}
|
||||
//</editor-fold>
|
Loading…
Reference in New Issue
Block a user