-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle-dial-a-ride.php
61 lines (52 loc) · 1.97 KB
/
single-dial-a-ride.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
61
<?php
/*
*/
get_header(); ?>
<?php the_breadcrumb() ?>
<div id="blue-top-divider"></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<header class="header-container">
<h1 id="route-page-title" class="over-blue col-sm-9" >
<?php the_title() ?>
</h1>
<div class="route-select-container" class="col-sm-3">
<?php darSelect(); ?>
</div><!-- end .route-select-container -->
</header><!-- class="header-container" -->
<div id="generic-wide-container" class="row-fluid">
<main id-"content">
<section id="dar-info-container" class="col-sm-4" >
<div id="dar-cities">
<?php the_field('cities'); ?>
</div><!-- end #dar-cities -->
<div id="dar-days-of-week">
<?php the_field('days_of_week'); ?>
</div><!-- end #dar-days-of-week -->
<div id="dar-times-of-day">
<?php the_field('times_of_day'); ?>
</div><!-- end #dar-times-of-day -->
<div id="dar-info">
<div class="fare-header">
<a href="/fares">Fares</a>
</div>
<?php fare_table(); ?>
</div><!-- end #dar-info -->
</section><!-- end #dar-info-container -->
<section id="dar-map-container" class="col-sm-8" style="padding: 0;" >
<div id='dar-map'>
<?php if (get_field('custom_imap_url')) : ?>
<iframe src="<?php wp_specialchars_decode(the_field('custom_imap_url')); ?>"></iframe>
<?php else : ?>
<iframe src="https://maps.trilliumtransit.com/map/feed/kerncounty-ca-us/routes/<?php echo get_post_meta( get_the_ID(), 'custom_id', true ); ?>?noui=true&page_embed=true"></iframe>
<?php endif; ?>
</div>
</section>
<section id="route-page-connections">
<?php the_content(); ?>
</section><!-- end #route-page-connections -->
<?php endwhile; ?>
<?php endif; ?>
</main>
</div><!-- end #generic-wide-container -->
<?php get_footer();
?>