File manager - Edit - /home/contenidosenred/public_html/OD/wp-content/themes/streamit/template-parts/post/content.php
Back
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="iq-blog-box"> <?php $streamit_options = get_option('streamit_options'); if (isset($streamit_options['streamit_display_image'])) { $options = $streamit_options['streamit_display_image']; if ($options == "yes") { ?> <div class="iq-blog-image"> <?php if (has_post_thumbnail()) { the_post_thumbnail(); } ?> </div> <?php } } else { ?> <div class="iq-blog-image"> <?php the_post_thumbnail(); ?> </div> <?php } ?> <div class="iq-blog-detail"> <div class="iq-blog-meta"> <ul class="list-inline"> <li class="list-inline-item"> <a href="<?php echo sprintf("%s", get_author_posts_url(get_the_author_meta('ID'), get_the_author_meta('user_nicename')), 'streamit'); ?>" class="iq-user"> <i class="fa fa-user-o mr-1" aria-hidden="true"></i> <?php echo sprintf("%s ", get_the_author(), 'streamit'); ?> </a> </li> <?php //post date $archive_year = get_the_time('Y', $post->post_id); $archive_month = get_the_time('m', $post->post_id); $archive_day = get_the_time('d', $post->post_id); $date = date_create($post->post_date); ?> <li class="list-inline-item"> <i class="fa fa-calendar mr-1" aria-hidden="true"></i> <?php echo streamit_time_link(); ?> </li> </ul> </div> <?php if (!is_single()) { ?> <div class="blog-title"> <h3 class="entry-title"> <a href="<?php echo esc_url(get_permalink($post->ID)); ?>"> <?php the_title(); ?> </a> </h3> </div> <?php } ?> <div class="blog-content"> <?php if (is_single()) { the_content(); } else { if($post->post_excerpt) { the_excerpt(); } else { the_content( '', TRUE ); } } wp_link_pages(array( 'before' => '<div class="page-links">' . esc_html__('Pages:', 'streamit'), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', )); ?> </div> <?php if (!is_single()) { ?> <div class="blog-button"> <?php if (!empty($streamit_options['blog_btn'])) { ?> <a class="button-link" href="<?php the_permalink(); ?>"><?php echo esc_html($streamit_options['blog_btn']); ?><i class="fa fa-angle-right" aria-hidden="true"></i></a> <?php } else { ?> <a class="button-link" href="<?php the_permalink(); ?>"><?php echo esc_html__('Read More', 'streamit'); ?><i class="fa fa-angle-right" aria-hidden="true"></i></a> <?php } ?> </div> <ul class="iq-blogcat"> <li class="iq-tag-title"> <i class="fa fa-film" aria-hidden="true"></i> <?php echo __('Categories:','streamit'); ?> </li> <?php $postcat = get_the_category(); if ($postcat) { foreach ($postcat as $cat) { ?> <li><a href="<?php echo get_category_link($cat->cat_ID) ?>"><?php echo esc_html($cat->name,'streamit'); ?></a></li> <?php } } ?> </ul> <?php $post_tag = get_the_tags(); if ($post_tag) { ?> <ul class="iq-blogtag"> <li class="iq-tag-title"> <i class="fa fa-tags" aria-hidden="true"></i> <?php echo __('Tags:','streamit'); ?> </li> <?php foreach ($post_tag as $tag) { ?> <li><a href="<?php echo get_category_link($cat->cat_ID) ?>"><?php echo esc_html($tag->name,'streamit'); ?></a></li> <?php } ?> </ul> <?php } ?> <?php } ?> </div> </div> <?php $streamit_options = get_option('streamit_options'); if (isset($streamit_options['streamit_display_comment'])) { $options = $streamit_options['streamit_display_comment']; if ($options == "yes") { if (is_single()) { // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()) : comments_template(); endif; streamit_pagination(); } } } else { if (is_single()) { // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()) : comments_template(); endif; streamit_pagination(); } } ?> </article><!-- #post-## -->
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings