/* http://www.kriesi.at/archives/how-to-build-a-wordpress-post-pagination-without-plugin */
function tec_pagination($pages = '', $range = 2)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "
\n";
}
}
function time_ago( $type = 'post' ) {
$d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';
$hace = human_time_diff($d('U'), current_time('timestamp'));
$hace = 'Hace '.$hace;
return $hace;
} José Ángel Amat Vargas - Agrosol Export S.L.
José Ángel Amat Vargas
Director de Agrosol Export
¿Quieres conocer a más gente de nuestro equipo?