Skip to content

Instantly share code, notes, and snippets.

View yickson's full-sized avatar

Yickson Ramirez yickson

View GitHub Profile
@yickson
yickson / email.php
Last active August 29, 2020 22:06
KumbiaPHP-Email
<?php
class Email {
/**
* Realiza el envio del correo.
*
* @param $destino correo receptor
*/
public static function enviar($destino){
@joanhey
joanhey / feed.phtml
Last active January 28, 2016 16:03
Kumbia Partial: show feed
<?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)): ?>
@joanhey
joanhey / sociable.phtml
Last active May 29, 2019 01:44
Kumbia Partial: enlaces para compartir en redes sociales
<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?>&amp;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)?>&amp;url=<?=$url?>&amp;via=KumbiaPHP" title="Twitter" target="_blank"></a>
</div>