Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 1f435b8

Browse files
author
claudiuvertistudio
committed
#428 Added template with no title
1 parent f00d4c6 commit 1f435b8

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

content-page-no-title.php

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* The template used for displaying page content in page.php
4+
*
5+
* @package parallax-one
6+
*/
7+
?>
8+
9+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
10+
<?php parallax_hook_page_top(); ?>
11+
12+
<div class="entry-content content-page <?php if ( empty( $page_title ) ) { echo 'parallax-one-top-margin-5px'; } ?>" itemprop="text">
13+
<?php the_content(); ?>
14+
<?php
15+
wp_link_pages( array(
16+
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'parallax-one' ),
17+
'after' => '</div>',
18+
) );
19+
?>
20+
</div><!-- .entry-content -->
21+
22+
<?php parallax_hook_page_bottom(); ?>
23+
</article><!-- #post-## -->

template-fullwidth-no-title.php

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
/**
3+
* The template for displaying full width pages.
4+
*
5+
* Template Name: Full width, no title (SiteOrigin Page builder Template)
6+
*
7+
*/
8+
9+
10+
get_header();
11+
?>
12+
13+
</div>
14+
<!-- /END COLOR OVER IMAGE -->
15+
<?php parallax_hook_header_bottom(); ?>
16+
</header>
17+
<!-- /END HOME / HEADER -->
18+
<?php parallax_hook_header_after(); ?>
19+
<div class="content-wrap">
20+
<div class="container">
21+
<?php
22+
$page_title = get_the_title(); ?>
23+
<div id="primary" class="content-area col-md-12 <?php if ( empty( $page_title ) ) { echo 'parallax-one-top-margin-5px'; } ?>">
24+
<main id="main" class="site-main" role="main">
25+
<?php parallax_hook_page_before();?>
26+
<?php while ( have_posts() ) : the_post(); ?>
27+
28+
<?php get_template_part( 'content', 'page-no-title' ); ?>
29+
30+
<?php
31+
// If comments are open or we have at least one comment, load up the comment template
32+
if ( comments_open() || get_comments_number() ) :
33+
comments_template();
34+
endif;
35+
?>
36+
37+
<?php endwhile; // end of the loop. ?>
38+
<?php parallax_hook_page_after();?>
39+
</main><!-- #main -->
40+
</div><!-- #primary -->
41+
42+
</div>
43+
</div><!-- .content-wrap -->
44+
45+
<?php get_footer(); ?>

0 commit comments

Comments
 (0)