File Editor
Directories:
.. (Back)
ai-app
cloud
common
core
epanel
fonts
framework
images
includes
lang
scripts
Files:
changelog.txt
comments.php
footer.php
functions.php
header.php
home.php
index-content.php
index.php
module-ads.php
module-featured-posts-slider.php
module-posts-blog-feed-loop.php
module-posts-blog-feed.php
module-posts-carousel.php
module-posts-content.php
module-posts.php
module-tabbed-posts-tab.php
module-tabbed-posts.php
options_extra.php
page-template-authors.php
page-template-blog-feed.php
page-template-contact.php
page-template-fullwidth.php
page-template-member.php
page-template-portfolio.php
page-template-sitemap.php
page-template-timeline.php
page.php
post-top-content.php
post_thumbnails_extra.php
sidebar-footer.php
sidebar.php
single-et_pb_layout.php
single-post.php
single-project.php
single.php
style-cpt-rtl.min.css
style-cpt.min.css
style-rtl.min.css
style-static-cpt-rtl.min.css
style-static-cpt.min.css
style-static-rtl.min.css
style-static.min.css
style.css
style.min.css
theme-after-wrappers.php
theme-before-wrappers.php
theme-footer.php
theme-header.php
timeline-posts-content.php
Create New File
Create
Edit File: page-template-timeline.php
<?php /* Template Name: Timeline */ get_header(); ?> <div id="main-content"> <div class="container"> <div id="content-area" class="<?php extra_sidebar_class(); ?> clearfix"> <div class="et_pb_extra_column_main"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="et_pb_extra_column et_pb_extra_column_4_4"> <div class="timeline-container"> <div id="timeline-sticky-header" class="et_extra_other_module timeline-module"> <div class="module-head"> <h1 class="module-title-month"></h1> <span class="module-filter module-title-year"></span> </div> </div> <div id="timeline" class="timeline mobile"> <?php $timeline_posts = extra_get_timeline_posts_onload(); ?> <?php require locate_template( 'timeline-posts-content.php' ); ?> <div class="loader"> <?php extra_ajax_loader_img(); ?> </div> </div> <div class="timeline-nav"> <ul id="timeline-menu" class="timeline-menu"> <?php $month_groups = extra_get_timeline_menu_month_groups(); $current_year = ''; foreach ( $month_groups as $month_group ) { list( $month, $year ) = explode( '-', $month_group ); if ( $year != $current_year ) { printf( '<li class="year year-%1$d"><a href="#%1$d" data-year="%1$d">%1$d</a></li>', esc_attr( $year ) ); $current_year = $year; } printf( '<li class="month year-%1$d"><a href="#%2$s_%1$d" data-month="%2$s" data-year="%1$d">%3$s</a></li>', esc_attr( $year ), esc_attr( strtolower( $month ) ), esc_html( $month ) ); ?> <?php } ?> </ul> </div> </div><!-- /.timeline-container --> </div><!-- /.et_pb_extra_column_main --> <?php endwhile; else : ?> <h2><?php esc_html_e( 'Post not found', 'extra' ); ?></h2> <?php endif; wp_reset_query(); ?> </div><!-- /.et_pb_extra_column_main --> <?php get_sidebar(); ?> </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content --> <?php get_footer();
Save Changes
Rename File
Rename