Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Commit

Permalink
meta all author
Browse files Browse the repository at this point in the history
  • Loading branch information
diversen committed Mar 20, 2015
1 parent ae16afd commit 4ac52bd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion vendor/diversen/simple-php-classes/diversen/template/meta.php
Expand Up @@ -57,7 +57,13 @@ public static function setMeta($ary) {
* @param string $image image
* @param string $type og type
*/
public static function setMetaAll($title, $description ='', $keywords = '', $image = '', $type = '') {
public static function setMetaAll(
$title,
$description ='',
$keywords = '',
$image = '',
$type = '',
$author = '') {

// title
assets::setTitle(html::specialEncode($title));
Expand All @@ -83,6 +89,11 @@ public static function setMetaAll($title, $description ='', $keywords = '', $ima
array('description' => $desc));
}

if (!empty($author)) {
self::setMeta(
array('author' => $author));
}

// keywords
if (empty($keywords)) {
$keywords = config::getMainIni('meta_meywords');
Expand Down

0 comments on commit 4ac52bd

Please sign in to comment.