Александр Христич 11 Posted April 1, 2022 Report Share Posted April 1, 2022 Доброго времени. Из-за блокировок и т.п фейсбука и т.д изменил блок Поделиться на подобный блок от яндекса. Код нового блока shareButton.phtml <a href='#elShareItem_{$id}_menu' id='elShareItem_{$id}' data-ipsMenu class='ipsShareButton ipsButton ipsButton_{$size} ipsButton_{$type} {{if $type == 'link'}}ipsButton_link--light{{endif}}'> <span><i class='fa fa-share-alt'></i></span> {lang="share"} </a> <div class='ipsPadding ipsMenu ipsMenu_auto ipsHide' id='elShareItem_{$id}_menu' data-controller="core.front.core.sharelink"> <ul class='ipsList_inline'> <li> <div class="ya-share2" data-curtain data-services="messenger,vkontakte,odnoklassniki,telegram,twitter,viber,whatsapp,moimir"></div> </li> </ul> </div> Все бы ничего но не могу понять как передать data-description,data-image,data-url,как бы не пытался заканчивается ошибкой. Может кто-нибудь делал подобное? Обратиться Quote Link to comment Share on other sites More sharing options...
Александр Христич 11 Posted April 1, 2022 Author Report Share Posted April 1, 2022 забыл добавить,что data-description,data-image,data-url в каждой статье/посте. Обратиться Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.