-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-location-header.php
60 lines (45 loc) · 1.52 KB
/
content-location-header.php
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
57
58
59
60
<?php
/**
* Post Header Meta (Full and Short)
*/
// No direct access
if ( ! defined( 'ABSPATH' ) ) exit;
// Get data
// $address, $show_directions_link, $directions_url, $phone, $times, $map_lat, $map_lng, $map_type, $map_zoom
extract( ctfw_location_data() );
?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="uplifted-entry-image">
<?php uplifted_post_image(); ?>
</div>
<?php endif; ?>
<div class="uplifted-content-meta">
<header class="uplifted-entry-header clearfix">
<div class="uplifted-entry-title-meta">
<?php if ( ctfw_has_title() ) : ?>
<h1 class="uplifted-entry-title<?php if ( is_singular( get_post_type() ) ) : ?> uplifted-main-title<?php endif; ?>">
<?php uplifted_post_title(); // will be linked on short ?>
</h1>
<?php endif; ?>
<ul class="uplifted-entry-meta">
<?php if ( $address ) : ?>
<li class="uplifted-location-address">
<i class="genericon genericon-location"></i>
<?php echo nl2br( wptexturize( $address ) ); ?>
</li>
<?php endif; ?>
<?php if ( $phone ) : ?>
<li class="uplifted-location-phone">
<i class="genericon genericon-phone"></i>
<?php echo esc_html( $phone ); ?>
</li>
<?php endif; ?>
<?php if ( $times ) : ?>
<li class="uplifted-location-times">
<i class="genericon genericon-time"></i>
<?php echo nl2br( wptexturize( $times ) ); ?>
</li>
<?php endif; ?>
</ul>
</div> <!-- /uplifted-entry-title-meta -->
</header>