Перейти к содержимому


Фотография
- - - - -

meta только для com_content

jblank com_config

Лучший Ответ SmetDenis , 09 September 2016 - 11:07

Примерно как то так

  1. $option = JFactory::getApplication()->input->get('option', null, false);
  2.  
  3. if ($option === 'com_content') {
  4.     $tpl->meta('<meta property="relap:article" content="false">');
  5. }
  6.  
Перейти к сообщению


  • Закрытая тема Тема закрыта
В теме одно сообщение

#1 CB9TOIIIA

CB9TOIIIA

Отправлено 09 September 2016 - 06:57

Всем привет! Как можно в init добавить meta только для com_content?

  1. // add custom meta tags
  2. ->meta(array(
  3. // template customization
  4. '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>',
  5. '<script async type="text/javascript" src="//s.luxadv.com/t/common_3.js"></script>',
  6. '<meta http-equiv="X-UA-Compatible" content="IE=edge">',
  7. '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">',
  8.  
  9. // apple icons
  10. '<link rel="apple-touch-icon" sizes="57x57" href="' . $tpl->img . '/apple-touch-icon-57x57.png">',
  11.  
  12. // more
  13.  
  14. ));

нужно для com_content: 

  1. <meta property="relap:article" content="false">
  2.  

  • 0

#2 SmetDenis

SmetDenis

Отправлено 09 September 2016 - 11:07   Лучший Ответ

Примерно как то так

  1. $option = JFactory::getApplication()->input->get('option', null, false);
  2.  
  3. if ($option === 'com_content') {
  4.     $tpl->meta('<meta property="relap:article" content="false">');
  5. }
  6.  

  • 1
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.






Темы с аналогичным тегами jblank, com_config

Click to return to top of page in style!