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
<h2>Gracias a todos los colaboradores</h2> | |
<?php | |
ini_set("user_agent", 'KumbiaPHP bot'); | |
$url = 'https://api.github.com/repos/KumbiaPHP/KumbiaPHP/contributors'; | |
$team = json_decode(file_get_contents($url)); | |
foreach($team as $user) :?> | |
<a href="https://github.com/<?= $user->login?>" title="@<?= $user->login?>"> | |
<img src="<?= $user->avatar_url ?>&s=60" width=60 height=60 alt="<?= $user->contributions?> contribuciones"></a> | |
<?php endforeach ?> |
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> |