Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created January 10, 2017 18:57
Show Gist options
  • Save CB9TOIIIA/34a0e9120a23e98ff68cd047b98a2605 to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/34a0e9120a23e98ff68cd047b98a2605 to your computer and use it in GitHub Desktop.
шарить не айтемы
$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