mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
More rel="noopener" and og: changes.
This commit is contained in:
@@ -331,7 +331,7 @@ class e_tohtml_linkwords
|
||||
if ($doSamePage || ($newLink != e_SELF.'?'.e_QUERY))
|
||||
{
|
||||
$linkwd = " href=\"".$newLink."\" ";
|
||||
if ($this->ext_list[$first]) { $linkrel[] = 'external'; } // Determine external links
|
||||
if ($this->ext_list[$first]) { $linkrel[] = 'noopener external'; } // Determine external links
|
||||
$lwClass[] = 'lw-link '.$this->customClass;
|
||||
}
|
||||
}
|
||||
|
@@ -703,10 +703,12 @@ class news_front
|
||||
|
||||
$url = e107::getUrl()->create('news/view/item', $news,'full=1');
|
||||
e107::meta('og:url',$url);
|
||||
e107::meta('og:updated_time', strtotime('10 minutes ago'));
|
||||
$modifiedTime = strtotime('30 minutes ago');
|
||||
e107::meta('og:updated_time', $modifiedTime);
|
||||
|
||||
e107::meta('article:section',$news['category_name']);
|
||||
e107::meta('article:modified_time', date('c', $news['news_datestamp']));
|
||||
e107::meta('article:section', $news['category_name']);
|
||||
e107::meta('article:published_time', date('c', $news['news_datestamp']));
|
||||
e107::meta('article:modified_time', date('c', $modifiedTime));
|
||||
|
||||
|
||||
if($news['news_meta_keywords'] && !defined('META_KEYWORDS'))
|
||||
|
@@ -372,7 +372,7 @@ class social_shortcodes extends e_shortcode
|
||||
$btnClass .= ' social-share-mobile';
|
||||
}
|
||||
|
||||
$opt[$k] = "<a class='".$btnClass." ".$tooltip." ".$butSize." social-share-".$k."' target='_blank' title='".$val["title"]."' href='".$shareUrl."'>".$tp->toIcon($val["icon"], array('fw'=>1))."</a>";
|
||||
$opt[$k] = "<a rel='noopener' class='".$btnClass." ".$tooltip." ".$butSize." social-share-".$k."' target='_blank' title='".$val["title"]."' href='".$shareUrl."'>".$tp->toIcon($val["icon"], array('fw'=>1))."</a>";
|
||||
}
|
||||
|
||||
// Show only Email, Facebook, Twitter and Google.
|
||||
|
Reference in New Issue
Block a user