VladD отреагировал на пост
Silence в Как заменить родной блок поделиться (твиттер и прочие) на Блок «Поделиться» от Яндекс
30 июня, 2017
Перейти forums > front > topics > post найти:
{{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
<h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
{template="sharelinks" group="global" app="core" params="$comment"}
{{endif}}
измени на :
<!--[if ]>
{{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
<h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
{template="sharelinks" group="global" app="core" params="$comment"}
{{endif}}
<![endif]-->
после его поставит ваш скрипт яндекса - пример:
<script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="//yastatic.net/share2/share.js"></script>
<div class="ya-share2" data-services="collections,vkontakte,facebook,odnoklassniki,moimir,gplus,twitter"></div>
резултат:
Перейти forums > front > topics > topic найти:
{template="sharelinks" app="core" group="global" params="$topic"}
изменит на :
<!--[if ]>
{template="sharelinks" app="core" group="global" params="$topic"}
<![endif]-->
после его поставит ваш скрипт яндекса - пример:
<script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="//yastatic.net/share2/share.js"></script>
<div class="ya-share2" data-services="collections,vkontakte,facebook,odnoklassniki,moimir,gplus,twitter"></div>
резултат: