1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +02:00

Issue #4783 Added new field for meta-news-title. New prefs added for SEO Title and Description character limits.

This commit is contained in:
Cameron
2022-06-06 17:28:23 -07:00
parent fb529a536d
commit 94bf1efda2
13 changed files with 150 additions and 40 deletions

View File

@@ -653,13 +653,18 @@ class news_front
e107::meta('robots', $news['news_meta_robots']);
}
if($news['news_title'])
if(!empty($news['news_title']))
{
e107::title($news['news_title']);
e107::meta('og:type','article');
e107::meta('twitter:card', 'summary');
}
if(!empty($news['news_meta_title'])) // override title with meta title.
{
e107::title($news['news_meta_title']);
}
if($news['news_meta_description'] && !defined('META_DESCRIPTION'))
{
e107::meta('description',$news['news_meta_description']);

View File

@@ -94,7 +94,7 @@ class social_admin
<div class="well social-plugin" style="width:450px">
<div class="media">
<div class="media-left">'.$tp->toImage($data['news_thumbnail'][0], array('w'=>100, 'h'=>100, 'crop'=>1, 'class'=>'media-object')).'</div>
<div class="media-left"><a target="_blank" href="'.$shareData['url'].'" title="'.LAN_EFORM_010.'">'.$tp->toImage($data['news_thumbnail'][0], array('w'=>100, 'h'=>100, 'crop'=>1, 'class'=>'media-object')).'</a></div>
<div class="media-body">
<h4 class="media-header">'.$tp->post_toHTML($data['news_title']).'</h4>
<p><small>'.$tp->post_toHTML($data['news_meta_description'])."</small></p>".$this->share($shareData).'