Created
January 10, 2017 18:57
-
-
Save CB9TOIIIA/34a0e9120a23e98ff68cd047b98a2605 to your computer and use it in GitHub Desktop.
шарить не айтемы
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$document = JFactory::getDocument(); | |
$zoo = App::getInstance('zoo'); | |
$task = $zoo->jbrequest->get('task'); | |
$jinput = JFactory::getApplication()->input->get('option',''); | |
if ($jinput == 'com_zoo') { | |
if ($task == 'category' || $task == NULL) { | |
$oggtitle = addslashes(htmlspecialchars(strip_tags($item->name))); | |
if (empty($oggtitle)) { | |
$oggtitle = $document->title; | |
} | |
$document->addCustomTag('<meta property="og:image" content="http://syasnews.ru/images/syasog.png" />'); | |
$document->addCustomTag('<link rel="image_src" href="http://syasnews.ru/images/syasog.png" />'); | |
$document->addCustomTag('<meta property="og:title" content="'.$oggtitle.' - SyasNews'.'" />'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment