Файловый менеджер - Редактировать - /home/www/hallgroupsolutions.com/wordpress/wp-content/themes/singl/content-single.php
Назад
<?php /** * @package Singl */ $format = get_post_format(); // Access global variable directly to adjust the content width for video post format if ( has_post_format( 'video' ) && isset( $GLOBALS['content_width'] ) ) { $GLOBALS['content_width'] = 768; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( '' != get_the_post_thumbnail() && '' == $format ) : ?> <div class="entry-thumbnail"> <?php the_post_thumbnail( 'featured-image' ); ?> </div><!-- .entry-thumbnail --> <?php endif; ?> <header class="entry-header"> <?php if ( 'link' == $format ) : the_title( '<h1 class="entry-title"><a href="' . esc_url( singl_get_link_url() ) . '" rel="bookmark">', '</a></h1>' ); else : the_title( '<h1 class="entry-title">', '</h1>' ); endif; ?> <div class="entry-meta"> <a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" title="<?php the_time(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a> <?php if( has_post_format() ) : ?> <span class="entry-format">— <a href="<?php echo esc_url( get_post_format_link( $format ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'singl' ), get_post_format_string( $format ) ) ); ?>"><?php echo get_post_format_string( $format ); ?></a></span> <?php endif; ?> <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> <span class="comments-link">— <?php comments_popup_link( __( 'Leave a comment', 'singl' ), __( '1 Comment', 'singl' ), __( '% Comments', 'singl' ) ); ?></span> <?php endif; ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'pagelink' => '<span class="page-link">%</span>', ) ); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for single attachments ?> <?php /* translators: used between list items, there is a space after the comma */ $category_list = get_the_category_list( __( ', ', 'singl' ) ); /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'singl' ) ); if ( ! singl_categorized_blog() ) { // This blog only has 1 category so we just need to worry about tags in the meta text if ( '' != $tag_list ) { $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'singl' ); } else { $meta_text = __( 'Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'singl' ); } } else { // But this blog has loads of categories so we should probably display them here if ( '' != $tag_list ) { $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'singl' ); } else { $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'singl' ); } } // end check for categories on this blog printf( $meta_text, $category_list, $tag_list, get_permalink() ); ?> <?php endif; ?> <?php edit_post_link( __( 'Edit', 'singl' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-meta --> </article><!-- #post-## -->
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка