This commit is contained in:
Filip Penkava
2017-04-12 10:43:22 +02:00
parent 0f53f42a66
commit dfc39c44ca
2 changed files with 16 additions and 0 deletions

View File

@@ -16,6 +16,12 @@ if ($obj['type'] == 'text') {
if ($obj['pubstatus'] == 'usable') {
$content = $obj['description_html'] . "<!--more-->" . $obj['body_html'];
if (!empty($obj['located'])) {
$content = substr($obj['description_html'], strpos($obj['description_html'], '>') + 1, strlen($obj['description_html'])) . "<!--more-->" . $obj['body_html'];
$content = '<p>' . wp_strip_all_tags($obj['located']) . $settings['separator-located'] . $content;
}
if ($settings['display-copyright'] == "on" && isset($obj['associations']['featuremedia']['copyrightnotice'])) {
$content.= "<p>" . wp_strip_all_tags($obj['associations']['featuremedia']['copyrightnotice']) . "</p>";
}