-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlp-events-shorcode-view.php
More file actions
60 lines (54 loc) · 2.13 KB
/
lp-events-shorcode-view.php
File metadata and controls
60 lines (54 loc) · 2.13 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
57
58
59
60
<?php defined('ABSPATH') or die(); // Silence is golden
function lp_events_shortcode_html() {
global $lp_options;
if (!isset($lp_options[LP_SLUG . '_field_event_module_enabled']) ||
$lp_options[LP_SLUG . '_field_event_module_enabled'] == 0)
return '';
return <<<EOT
<div class="events-wrapper">
<div class="tabs">
<div id="tab-fri" class="tab-btn btn-success tab selected">
<small>4</small>
Friday
</div>
<div id="tab-sat" class="tab-btn btn-success tab">
<small>5</small>
Saturday
</div>
<div id="tab-sun" class="tab-btn btn-success tab">
<small>6</small>
Sunday
</div>
</div>
<div class="loading">
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>
<div>Loading...</div>
</div>
<div style="overflow:auto;">
<div id="cal-fri" class="calendar"></div>
<div id="cal-sat" class="calendar" style="display:none"></div>
<div id="cal-sun" class="calendar" style="display:none"></div>
</div>
<div style="clear:both"></div>
<ul id="track-key"></ul>
<div class="pdf-button-container"><a href class="button" onclick="renderSchedulePdf(EVENTS); return false;">Download as PDF</a></div>
</div>
EOT;
}
function lp_my_events_shortcode_html() {
global $lp_options;
if(!isset($lp_options[LP_SLUG . '_field_event_module_enabled']) ||
$lp_options[LP_SLUG . '_field_event_module_enabled'] == 0)
return '';
return <<<EOT
<div class="events-wrapper">
<div id="mysched" class="calendar" style="overflow:auto;"></div>
<div class="loading">
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>
<div>Loading...</div>
</div>
<div id="track-key-placeholder">Click on events on the left to add them to your custom schedule! Your schedule is saved per device and will be lost if you clear you cache/cookies.</div>
<div class="pdf-button-container"><a href class="button" onclick="renderMySchedulePdf(myEvents); return false;">Download as PDF</a></div>
</div>
EOT;
}