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
<?php | |
class Email { | |
/** | |
* Realiza el envio del correo. | |
* | |
* @param $destino correo receptor | |
*/ | |
public static function enviar($destino){ |
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
<?php | |
/** | |
* Visualizar feed RSS por Joanhey | |
* | |
* @param string $name Nombre | |
* @param string $url URL completa del feed | |
* @return html | |
*/ | |
if ($feed = simplexml_load_file($url)): ?> |
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> |