-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-subheader.php
More file actions
56 lines (40 loc) · 1.7 KB
/
Copy pathcontent-subheader.php
File metadata and controls
56 lines (40 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @package upTown
*/
$default = '<div class="hero-title">Important Headline</div>' . "\n\n";
$default .= '<div class="hero-text">' . "\n";
$default .= "\t" . '<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Donec sed odio dui. Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. <a href="#">Duis mollis</a>, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui. Donec sed odio dui. Cras mattis consectetur purus sit amet fermentum.</p>' . "\n";
$default .= '</div>' . "\n\n";
$default .= '<div class="hero-button">' . "\n";
$default .= "\t" . '<a href="#" class="button">Call To Action</a>' . "\n";
$default .= '</div>';
if( !function_exists( 'is_plugin_active' ) ) {
include_once(ABSPATH .'wp-admin/includes/plugin.php');
}
if ( is_plugin_active( 'wpcasa/wpcasa.php' ) ) {
$default = '[wpsight_listings_search]';
}
// Get subheader content
$subheader = wp_kses_post( get_option( 'subheader', $default ) );
if( ! empty( $subheader ) ) {
/**
* Uncomment the following line
* to only show the subheader
* on the front page (at bottom too!).
*/
// if( is_front_page() ) { ?>
<div id="subheader-wrap" class="site-subheader-wrap wrap">
<div id="subheader" class="site-subheader">
<div class="hero">
<?php echo do_shortcode( $subheader ); ?>
</div>
</div><!-- #subheader -->
</div><!-- #subheader-wrap --><?php
/**
* Uncomment the following line
* to only show the subheader
* on the front page.
*/
// } // endif is_front_page
} // endif $subheader ?>