Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $format = get_post_format(); ?>
- <?php if ( current_theme_supports( 'post-formats', $format ) ) : ?>
- <?php $formaticon = ''; ?>
- <?php if ( 'video' === $format ) { ?>
- <?php $formaticon = 'film'; ?>
- <?php } elseif ('gallery' === $format ) { ?>
- <?php $formaticon = 'picture'; ?>
- <?php } elseif ( 'audio' === $format ) { ?>
- <?php $formaticon = 'music'; ?>
- <?php } else { ?>
- <?php $formaticon = 'camera'; ?>
- <?php } ?>
- <div class="divina-format"><span class="glyphicon glyphicon-<?php echo esc_html( $formaticon ); ?>" aria-hidden="true"></span></div>
- <div class="divina-format-link">
- <a href="<?php echo esc_url( get_post_format_link( $format ) ); ?>"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span> <?php echo esc_html__( 'Публикации этой категории ', 'divina' ) . esc_html( $format ) . esc_html__( ' posts', 'divina' ); ?></a>
- </div><!-- .divina-format-link -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement