Jump to content

Блок Поделиться от Яндекс


 Share

Recommended Posts

Доброго времени. Из-за блокировок и т.п фейсбука и т.д изменил блок Поделиться на подобный блок от яндекса.

2120483677_2022-04-0117-15-19.png.b26c3ea93da99f4071e8c1b8e6109071.png

2033796949_2022-04-0117-15-55.png.74c8bcba0208b248b9faf13da6e8cf11.png

Код нового блока 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> &nbsp;{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,как бы не пытался заканчивается ошибкой. Может кто-нибудь делал подобное?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using our site you agree to our Privacy Policy