Last active
May 29, 2019 01:44
-
-
Save joanhey/ff20a0bd691df8a87abb to your computer and use it in GitHub Desktop.
Kumbia Partial: enlaces para compartir en redes sociales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="social"> | |
<p>¡Compártelo!</p> | |
<?php $url = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]; | |
$titulo = View::getVar('page_title'); //Necesita el título de página ?> | |
<a class="social facebook" rel="nofollow noopener noreferrer" href="https://www.facebook.com/share.php?u=<?=$url?>&t=<?= urlencode($titulo)?>" title="Facebook" target="_blank"></a> | |
<a class="social twitter" rel="nofollow noopener noreferrer" href="https://twitter.com/intent/tweet?text=<?= urlencode($titulo)?>&url=<?=$url?>&via=KumbiaPHP" title="Twitter" target="_blank"></a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment