Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="post-meta <?php if(get_theme_mod('alder_post_related')) : ?>norelated<?php endif; ?>">
- <?php if(!is_single()) : ?>
- <div class="read-more">
- <a href="<?php echo get_permalink() ?>"><?php esc_html_e( 'Continue Reading', 'alder' ); ?> <i class="fa fa-angle-right" aria-hidden="true"></i></a>
- </div>
- <?php else : ?>
- <?php if(!get_theme_mod('alder_post_share_author')) : ?>
- <div class="meta-author">
- <?php echo get_avatar( get_the_author_meta('email'), '60' ); ?><span class="by"><?php esc_html_e( 'by', 'alder' ); ?></span> <span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span>
- </div>
- <?php endif; ?>
- <?php endif; ?>
- <?php if(!get_theme_mod('alder_post_comment_link')) : ?>
- <div class="meta-comment">
- <a href="<?php comments_link(); ?>"><i class="fa fa-comment"></i> <?php comments_number( '0', '1', '%' ); ?></a>
- </div>
- <?php endif; ?>
- <?php if(!get_theme_mod('alder_post_share')) : ?>
- <div class="post-share">
- <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i class="fa fa-facebook"></i></a>
- <a target="_blank" href="https://twitter.com/intent/tweet?text=Check%20out%20this%20article:%20<?php print alder_social_title( get_the_title() ); ?>&url=<?php echo urlencode(the_permalink()); ?><?php if(get_theme_mod('alder_twitter')) : ?>&via=<?php echo esc_html(get_theme_mod('alder_twitter')); ?><?php endif; ?>"><i class="fa fa-twitter"></i></a>
- <?php $pin_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>
- <a data-pin-do="none" target="_blank" href="https://pinterest.com/pin/create/button/?url=<?php echo urlencode(the_permalink()); ?>&media=<?php echo esc_url($pin_image); ?>&description=<?php print alder_social_title( get_the_title() ); ?>"><i class="fa fa-pinterest"></i></a>
- <a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i class="fa fa-google-plus"></i></a>
- </div>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement