![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Magefan/Blog/view/frontend/templates/ |
<?php /** * Copyright © Magefan ([email protected]). All rights reserved. * Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement). * * Glory to Ukraine! Glory to the heroes! */ ?> <?php /** * @var $block \Magefan\Blog\Block\Social\AddThi * @var $mfSecureRenderer \Magefan\Community\Api\SecureHtmlRendererInterface */ ?> <?php $script = " function mfShareWindowOpen(url, type) { function reverse(s){ return s.split('').reverse().join(''); } var u; switch (type) { case 'facebook': u = reverse('" . strrev('https://www.facebook.com/sharer/sharer.php?u=') . "') + url; break; case 'pinterest': u = reverse('" . strrev('https://pinterest.com/pin/create/button/?url=') . "') + url; break; case 'twitter': u =reverse('" . strrev('http://twitter.com/share?url=') . "') + url; break; case 'linkedin': u =reverse('" . strrev('https://www.linkedin.com/sharing/share-offsite/?url=') . "') + url; break; } if (u) { window.open (u, null, 'width=600,height=400'); } } "; ?> <?= /* @noEscape */ $mfSecureRenderer->renderTag('script', [], $script, false) ?>