Skip to content

Commit e001fde

Browse files
committed
All: Add support for banner-secondary to regular Markdown pages
This is currently limited to pages that use page-fullwidth.php. The default page.php, which includes a sidebar, does not support it, which means that pages such as those on brand.jquery.org that currently place banner-secondary into their HTML content, are not able to switch to Markdown unless they keep hardcoding the HTML, or switch to a sidebar-less template.
1 parent 3a99309 commit e001fde

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

themes/jquery/page-fullwidth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="content-full full-width twelve columns">
1111
<div id="content">
1212
<?php if ( get_post_meta( $post->ID, "subtitle" ) ) : ?>
13-
<div id="banner-secondary" class="large-banner entry-header">
13+
<div id="banner-secondary" class="large-banner">
1414
<h1 class="entry-title"><?php the_title(); ?></h1>
1515
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
1616
</div>

themes/jquery/page.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
<div class="content-right twelve columns">
66
<div id="content">
7-
<?php if ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
7+
<?php if ( get_post_meta( $post->ID, "subtitle" ) ) : ?>
8+
<div id="banner-secondary" class="large-banner">
9+
<h1 class="entry-title"><?php the_title(); ?></h1>
10+
<p><?php echo get_post_meta( $post->ID, "subtitle", true ); ?></p>
11+
</div>
12+
<?php elseif ( !count( get_post_meta( $post->ID, "hide_title" ) ) ) : ?>
813
<h1 class="entry-title"><?php the_title(); ?></h1>
914
<hr>
1015
<?php endif; ?>

0 commit comments

Comments
 (0)