Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/themes/morpheus/archive.php
Error occurred
Назад
<?php get_header(); $ID = get_option('page_for_posts'); $content_columns = ot_get_option('coll_blog_sidebar') ? '9' : '12'; // thumbnail $outputT = ''; if (has_post_thumbnail($ID)) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($ID), 'full'); $outputT .= '<section class="background js-coll-page-section coll-page-section">'; $outputT .= '<div class="js-coll-parallax coll-section-background">'; $outputT .= '<img class="coll-bg-image js-coll-lazy" width="' . $thumb[1] . '" height="' . $thumb[2] . '" data-coll-src="' . $thumb[0] . '" alt="' . get_the_title($ID) . '" />'; $outputT .= '<div class="color-overlay"></div>'; $outputT .= '</div>'; $outputT .= '</section>'; } // title and subtitle /* Get author data */ $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); $post = $posts[0]; // Hack. Set $post so that the_date() works. /* If this is a category archive */ if (is_category()) { $title = single_cat_title('', false); $subtitle = __('Viewing posts from the ', 'framework') . single_cat_title('', false) . __(' category', 'framework'); /* If this is a tag archive */ } elseif (is_tag()) { $title = single_tag_title('', false); $subtitle = __('Viewing posts tagged ', 'framework') . single_tag_title('', false); /* If this is a daily archive */ } elseif (is_day()) { $title = get_the_time('F jS, Y'); $subtitle = __('Viewing posts from ', 'framework') . get_the_time('F jS, Y'); /* If this is a monthly archive */ } elseif (is_month()) { $title = get_the_time('F Y'); $subtitle = __('Viewing posts from ', 'framework') . get_the_time('F , Y'); /* If this is a yearly archive */ } elseif (is_year()) { $title = get_the_time('Y'); $subtitle = __('Viewing posts from ', 'framework') . get_the_time('Y'); /* If this is an author archive */ } elseif (is_author()) { $title = $curauth->display_name; $subtitle = __('Viewing posts created by ', 'framework') . $curauth->display_name; /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { $title = __('Archives ', 'framework'); } ?> <div class="wrapper common coll-single <?php if ( has_post_thumbnail( $ID ) ) { echo 'coll-parallax'; } ?>" id="skrollr-body"> <?php echo $outputT; ?> <section class="title-container js-coll-page-section coll-page-section"> <div class="row"> <div class="large-12 columns"> <div class="title-wrapper"> <h1 class="title-text"><?php echo $title; ?></h1> <h3 class="subtitle-text"><?php echo $subtitle; ?></h3> </div> </div> </div> </section> <section class="content-container js-coll-page-section coll-page-section"> <div class="row"> <div class="large-<?php echo $content_columns; ?> columns coll-post-list"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!--BEGIN .hentry --> <article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <div class="coll-section-divider title-divider"> <span class="text large-2 medium-2"><a class="no-border" href="<?php the_permalink(); ?>"><?php the_time('d M Y'); ?></a></span> <span class="line large-10 medium-10"><span class="color"></span></span> </div> <div class="wrapper large-10 large-offset-2 medium-10 medium-offset-2"> <h2 class="title"><a class="no-border" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="post-meta"> <div class="author-meta"> <div class="wrapper"> <div class="image"><?php echo get_avatar( get_the_author_meta( 'ID' ), 100 ); ?></div> <div class="text"> <span class="by-author"><?php _e( 'By ', 'framework' ); the_author(); ?></span> </div> </div> </div> </div> <?php $output = ''; if ( has_post_thumbnail() ) : $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); $output .= '<img class="image js-coll-lazy" width="' . $thumb[1] . '" height="' . $thumb[2] . '" data-coll-src="' . $thumb[0] . '" />'; ?> <div class="asset"> <a class="no-border" href="<?php the_permalink(); ?>"><?php echo $output; ?> </a> </div> <?php endif; ?> <div class="content clearfix"> <?php if (strpos($post->post_content, '<!--more-->')) { the_content(''); $post_url = get_the_permalink(); $post_url .= '#more-' . get_the_ID(); echo "<a href='" . $post_url . "' class='more-link coll-button coll-accent-color'>" . __('Read More', 'framework') . "</a>"; } else { the_content(''); } ?> </div> </div> </article> <?php endwhile; endif; ?> </div> <?php if ( ot_get_option( 'coll_blog_sidebar' ) ) : ?> <div class="large-3 columns coll-sidebar"> <div class="sidebar-container"> <?php if ( ! dynamic_sidebar() ) { dynamic_sidebar( 'coll-blog-sidebar' ); } ?> </div> </div> <?php endif; ?> </div> </section> <?php if ( get_previous_posts_link() || get_next_posts_link() ) : ?> <section class="navigation-container coll-blog-navi js-coll-page-section coll-page-section"> <div class="row"> <div class="large-<?php echo $content_columns; ?> columns"> <div class="coll-section-divider"> <span class="text large-2 medium-2"><?php _e( 'More Posts', 'framework' ); ?></span> <span class="line large-10 medium-10"><span class="color"></span></span> </div> <div class="large-10 medium-10 large-offset-2 medium-offset-2"> <div class="row"> <div class="previous large-6 columns"> <?php if ( get_previous_posts_link() ) : ?> <a class="arrow" href="<?php echo coll_get_url( get_previous_posts_link() ); ?>"> <div class="icon"><i class="fa fa-long-arrow-left"></i></div> <div class="info"> <h3 class="title-text"> <?php _e( 'Newer Posts', 'framework' ); ?></h3> </div> </a> <?php endif; ?> </div> <div class="next large-6 columns"> <?php if ( get_next_posts_link() ) : ?> <a class="arrow" href="<?php echo coll_get_url( get_next_posts_link() ); ?>"> <div class="icon"><i class="fa fa-long-arrow-right"></i></div> <div class="info"> <h3 class="title-text"> <?php _e( 'Older Posts', 'framework' ); ?></h3> </div> </a> <?php endif; ?> </div> </div> </div> </div> </div> </section> <?php endif; ?> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка