????
Current Path : /home2/sarkar82/public_html/wp-content/themes/iconic-one-pro/ |
Current File : /home2/sarkar82/public_html/wp-content/themes/iconic-one-pro/content.php |
<?php /* * Content display template, used for both single and index/category/search pages. * Iconic One uses custom excerpts on search, home, category and tag pages. * * @since Iconic One Pro 1.0 */ ?> <?php $options = get_option('iconiconepro'); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_sticky() && is_home() && ! is_paged() ) : // for top sticky post with blue border ?> <div class="featured-post"> <?php _e( 'Featured Article', 'themonic' ); ?> </div> <?php endif; ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h2 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'themonic' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <?php endif; // is_single() ?> <?php if ( is_single() || ($options['iop_show_date_home'] == '1') ) : //for date on single page ?> <div class="clear"></div> <div class="below-title-meta"> <div class="adt"> <?php _e('By','themonic'); ?> <span class="vcard author"> <span class="fn"><?php echo the_author_posts_link(); ?></span> </span> <span class="meta-sep">|</span> <?php if ( get_theme_mod( 'iconic_one_pro_updated_date') != '1' ) { ?> <span class="date updated"><?php echo get_the_date(); ?></span> <?php } else { ?> <span class="date updated"><?php echo get_the_modified_date('F j, Y'); ?></span> <?php } ?> </div> <div class="adt-comment"> <span><a class="link-comments" href="<?php comments_link(); ?>"><?php comments_number(__('0 Comment','themonic'),__('1 Comment','themonic'),__('% Comments','themonic')); ?></a></span> </div> </div><!-- below title meta end --> <div class="clear"></div> <?php endif; // display meta-date on single page() ?> </header><!-- .entry-header --> <?php if ( is_single() ):?> <?php if($options['below_title_check'] == '1') { // display below title #AD1()?> <div class="themonic-ad1"><?php echo $options['below_title_hook']; ?></div> <?php } ?> <?php endif; ?> <?php if ( is_home() && ( get_theme_mod( 'iconic_one_pro_full_post', '1' ) == '1' ) ) : // Check Live Customizer for Full/Excerpts Post Settings ?> <?php iconic_one_pro_excerpts() ?> <?php elseif( is_search() || is_category() || is_tag() || is_author() || is_archive() ): ?> <?php iconic_one_pro_excerpts() ?> <?php else : ?> <div class="entry-content"> <?php if($options['io_pro_featured_single_post'] == '1') { ?> <?php the_post_thumbnail('post-thumbnail'); ?> <?php } ?> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'iconic-one' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'iconic-one' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <?php if( $options['themonic_social_share'] == '1') { // display social sharing buttons() ?> <?php if( is_single() || is_page() || $options['iop_social_share_home'] == '1') { // display social sharing buttons on home() ?> <div class="themonic-social-share"> <ul> <?php if($options['themonic_facebook'] == '1') { // display facebook like () ?> <li><iframe src="//www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>%2F&send=false&layout=button_count&width=107&show_faces=false&share=false&font=arial&colorscheme=light&action=like&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; max-width:128px; height:21px;" allowTransparency="true"></iframe></li> <?php } ?> <?php if($options['themonic_fshare'] == '1') { // display facebook share () ?> <li><iframe src="https://www.facebook.com/plugins/share_button.php?href=<?php the_permalink(); ?>&layout=button&size=small&width=89&height=20&appId" width="89" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe></li> <?php } ?> <?php if($options['themonic_twitter'] == '1') { // display twitter () ?> <li> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <a data-lang="en" data-via="" data-text="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>" class="twitter-share-button" href="https://twitter.com/share">tweet</a> </li> <?php } ?> <?php if($options['themonic_pin'] == '1') { // display pinterest () ?> <li> <a data-pin-config="none" data-pin-do="buttonBookmark" href="//pinterest.com/pin/create/button/"><img src="//assets.pinterest.com/images/PinExt.png" /></a> <script src="//assets.pinterest.com/js/pinit.js"></script> </li> <?php } ?> </ul> <div class="clear"></div> </div> <?php } ?> <?php } ?> <footer class="entry-meta"> <?php if ( is_home() &&( get_theme_mod( 'iconic_one_catg_home' , '1' ) == '1' ) ) : ?> <div class="categories"><?php the_category(' '); ?></div> <?php elseif( !is_home() ): ?> <div class="categories"><?php the_category(' '); ?></div> <?php endif; ?> <?php if ( is_home() &&( get_theme_mod( 'iconic_one_tag_home' , '1' ) == '1' ) ) : ?> <div class="tags"><?php the_tags('',' '); ?></div> <?php elseif( !is_home() ): ?> <div class="tags"><?php the_tags('',' '); ?></div> <?php endif; ?> <?php edit_post_link( __( 'Edit', 'themonic' ), '<span class="edit-link">', '</span>' ); ?> <?php if ( is_home() ):?> <?php if($options['themonic_home_author'] == '1') { // display author ID ?> <div class ="io-home-author-small" > <div class="io-home-avatar"><!-- .author-avatar --> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'themonic_author_bio_avatar_size', 24 ) ); ?> <div class="io-home-author-name"><span class="vcard author"><span class="fn"><?php printf( __( '%s', 'themonic' ), get_the_author() ); ?></span> </span></div> <div style="display: block; clear: both;"></div> </div> <!-- .author-name-home --> </div> <?php } ?> <?php endif; ?> <div class="clear"></div> <?php if ( is_singular() && get_the_author_meta( 'description' ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> <div class="author-info"> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'themonic_author_bio_avatar_size', 68 ) ); ?> </div><!-- .author-avatar --> <div class="author-description"> <?php printf( __( 'Author: %s', 'themonic' ), get_the_author() ); ?> <?php if ( get_the_author_meta( 'twitter' ) ) { ?> <a href="<?php the_author_meta( 'twitter' ); ?>"><i class="fa fa-twitter"></i></a> <?php } // End check for Twitter ?> <?php if ( get_the_author_meta( 'facebook' ) ) { ?> <a href="<?php the_author_meta( 'facebook' ); ?>"><i class="fa fa-facebook"></i></a> <?php } // End check for Facebook ?> <?php if ( get_the_author_meta( 'linkedin' ) ) { ?> <a href="<?php the_author_meta( 'linkedin' ); ?>?rel=author"><i class="fa fa-linkedin"></i></a> <?php } // End check for Linkedin ?> <?php if ( get_the_author_meta( 'instagram' ) ) { ?> <a href="<?php the_author_meta( 'instagram' ); ?>"><i class="fa fa-instagram"></i></a> <?php } // End check for Instagram ?> <p><?php the_author_meta( 'description' ); ?></p> </div><!-- .author-description --> </div><!-- .author-info --> <?php endif; ?> </footer><!-- .entry-meta --> </article><!-- #post --> <?php if ( is_single() ):?> <?php if($options['below_article_check'] == '1') { // display article title #AD4()?> <div class="themonic-ad4"><?php echo $options['below_article_hook']; ?></div> <?php } ?> <?php endif; ?>