EstudioJuridicoAlmagro_Web/www/wpv_common/widgets/tpl/post-formats-widget.php
david f72df580c3 - Importación inicial
- Ticket 1166 -> Orden de los idiomas ES FR EN RU

git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@2 c22fe52d-42d7-ba4f-95f7-33effcf65713
2013-02-27 15:39:05 +00:00

15 lines
781 B
PHP

<ul class="clearfix">
<li class="post-format-pad"><a title="<?php _e('Standard')?>" href="<?php echo add_query_arg( 'format_filter','standard',home_url()) ?>" class="standard"> <?php _e('Standard')?></a></li>
<?php
$tooltip = empty( $instance['tooltip'] ) ? __( 'View all %format posts' ) : esc_attr($instance['tooltip']);
foreach ( get_post_format_strings() as $slug => $string ) {
if ( get_post_format_link($slug) ) {
$post_format = get_term_by( 'slug', 'post-format-' . $slug, 'post_format' );
if ( $post_format->count > 0 ) {
echo '<li class="post-format-pad"><a title="' . str_replace('%format', $string, $tooltip) . '" href="' . add_query_arg( 'format_filter',$slug,home_url()) . '" class="'.$slug.'">' . $string . '</a></li>';
}
}
}
?>
</ul>