git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@3 c22fe52d-42d7-ba4f-95f7-33effcf65713
15 lines
795 B
PHP
15 lines
795 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>
|