1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 10:34:23 +02:00

More rel="noopener" and og: changes.

This commit is contained in:
Cameron
2021-09-25 09:57:18 -07:00
parent 5d0db673e3
commit af0b5dcb84
3 changed files with 7 additions and 5 deletions

View File

@@ -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;
}
}

View File

@@ -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:published_time', date('c', $news['news_datestamp']));
e107::meta('article:modified_time', date('c', $modifiedTime));
if($news['news_meta_keywords'] && !defined('META_KEYWORDS'))

View File

@@ -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.