in der Datei /include/inc_front/content.func.inc.php gibt es diesen Teil:
Code: Select all
// Built-in Open Graph rendering
if($content['opengraph']['render']) {
set_meta('og:type', $content['opengraph']['type'], 'property');
set_meta('og:title', sanitize_replacement_tags($content['opengraph']['title']), 'property');
if(empty($content['opengraph']['url'])) {
set_meta('og:url', abs_url(array(), array('phpwcms_output_action', 'print', 'phpwcms-preview', 'unsubscribe', 'subscribe')), 'property');
} else {
set_meta('og:url', $content['opengraph']['url'], 'property');
}
if(!empty($content['opengraph']['description'])) {
set_meta('og:description', sanitize_replacement_tags($content['opengraph']['description']), 'property');
}
$content['opengraph']['has_image'] = false;
if(isset($content['images']['shop']) && count($content['images']['shop'])) {
foreach($content['images']['shop'] as $og_img) {
$content['opengraph']['has_image'] = true;
set_meta('og:image', PHPWCMS_URL . 'img/cmsimage.php/500x500x0/'.$og_img['hash'].'.'.$og_img['ext'], 'property', false, true);
}
}
if(isset($content['images']['news']) && count($content['images']['news'])) {
foreach($content['images']['news'] as $og_img) {
$content['opengraph']['has_image'] = true;
set_meta('og:image', PHPWCMS_URL . 'img/cmsimage.php/500x500x0/'.$og_img['id'].'.'.$og_img['ext'], 'property', false, true);
}
}
if(isset($content['images']['article']['image'])) {
$content['opengraph']['has_image'] = true;
set_meta('og:image', PHPWCMS_URL . 'img/cmsimage.php/500x500x0/'.$content['images']['article']['hash'].'.'.$content['images']['article']['ext'], 'property');
}
if(!$content['opengraph']['has_image'] && is_file(PHPWCMS_TEMPLATE.'img/opengraph-default.png')) {
set_meta('og:image', PHPWCMS_URL.TEMPLATE_PATH.'img/opengraph-default.png', 'property');
}
}
kann ich dann in der /config/phpwcms/conf.template_default.inc.php folgendes zum ausschalten schreiben?
Code: Select all
$content['opengraph']['render'] = '';
oder:
Code: Select all
$content['opengraph']['render'] = false;