-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_helper.php
213 lines (150 loc) · 5.96 KB
/
view_helper.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
namespace SmartHistoryTourManager;
/**
* A simple static class that knows the paths to views and view related files.
*/
class ViewHelper {
public static function empty_view() {
return dirname(__FILE__) . '/views/empty_view.php';
}
public static function page_wrapper_view() {
return dirname(__FILE__) . '/views/page_wrapper.php';
}
public static function index_areas_view() {
return dirname(__FILE__) . '/views/area_index.php';
}
public static function new_area_view() {
return dirname(__FILE__) . '/views/area_edit_or_new.php';
}
public static function edit_area_view() {
return dirname(__FILE__) . '/views/area_edit_or_new.php';
}
public static function delete_area_view() {
return dirname(__FILE__) . '/views/area_delete.php';
}
public static function index_places_view() {
return dirname(__FILE__) . '/views/place_index.php';
}
public static function new_place_view() {
return dirname(__FILE__) . '/views/place_edit_or_new.php';
}
public static function edit_place_view() {
return dirname(__FILE__) . '/views/place_edit_or_new.php';
}
public static function delete_place_view() {
return dirname(__FILE__) . '/views/place_delete.php';
}
public static function index_tours_view() {
return dirname(__FILE__) . '/views/tour_index.php';
}
public static function tour_report_view() {
return dirname(__FILE__) . '/views/tour_report.php';
}
public static function new_tour_view() {
return dirname(__FILE__) . '/views/tour_new.php';
}
public static function edit_tour_view() {
return dirname(__FILE__) . '/views/tour_edit.php';
}
public static function edit_tour_track_view() {
return dirname(__FILE__) . '/views/tour_edit_track.php';
}
public static function edit_tour_track_indoor_view() {
return dirname(__FILE__) . '/views/tour_edit_track_indoor.php';
}
public static function edit_tour_stops_view() {
return dirname(__FILE__) . '/views/tour_edit_stops.php';
}
public static function edit_tour_stops_indoor_view() {
return dirname(__FILE__) . '/views/tour_edit_stops_indoor.php';
}
public static function delete_tour_view() {
return dirname(__FILE__) . '/views/tour_delete.php';
}
public static function new_mapstop_view() {
return dirname(__FILE__) . '/views/mapstop_new.php';
}
public static function edit_mapstop_view() {
return dirname(__FILE__) . '/views/mapstop_edit.php';
}
public static function delete_mapstop_view() {
return dirname(__FILE__) . '/views/mapstop_delete.php';
}
public static function new_scene_view() {
return dirname(__FILE__) . '/views/scene_new.php';
}
public static function delete_scene_view() {
return dirname(__FILE__) . '/views/scene_delete.php';
}
public static function add_scene_stop() {
return dirname(__FILE__) . '/views/scene_add_stop.php';
}
public static function save_scene_marker() {
return dirname(__FILE__) . '/views/scene_save_marker.php';
}
public static function index_tour_records_view() {
return dirname(__FILE__) . '/views/tour_record_index.php';
}
public static function tour_record_view() {
return dirname(__FILE__) . '/views/tour_record.php';
}
public static function new_tour_record_view() {
return dirname(__FILE__) . '/views/tour_record_new.php';
}
public static function choose_current_area_template() {
return dirname(__FILE__) . '/views/templates/choose_current_area.php';
}
public static function single_area_header_template() {
return dirname(__FILE__) . '/views/templates/single_area_header.php';
}
public static function single_place_header_template() {
return dirname(__FILE__) . '/views/templates/single_place_header.php';
}
public static function single_tour_header_template() {
return dirname(__FILE__) . '/views/templates/single_tour_header.php';
}
public static function single_mapstop_header_template() {
return dirname(__FILE__) . '/views/templates/single_mapstop_header.php';
}
public static function area_map_template() {
return dirname(__FILE__) . '/views/templates/area_map.php';
}
public static function place_map_template() {
return dirname(__FILE__) . '/views/templates/place_map.php';
}
public static function tour_map_template() {
return dirname(__FILE__) . '/views/templates/tour_map.php';
}
public static function coordinate_template() {
return dirname(__FILE__) . '/views/templates/coordinate.php';
}
public static function mapstop_simple_form_template() {
return dirname(__FILE__) . '/views/templates/mapstop_simple_form.php';
}
public static function area_selection_template() {
return dirname(__FILE__) . '/views/templates/area_selection.php';
}
public static function tour_report_yaml_template() {
return dirname(__FILE__) . '/views/templates/tour_report_yaml.php';
}
public static function tour_record_template() {
return dirname(__FILE__) . '/views/templates/tour_record.php';
}
public static function tooltip_template() {
return dirname(__FILE__) . '/views/templates/tooltip.php';
}
public static function map_util_js() {
return dirname(__FILE__) . '/views/js/map-util.js';
}
public static function coordinate_form_binding_js() {
return dirname(__FILE__) . '/views/js/coordinate-form-binding.js';
}
public static function place_edit_map_js() {
return dirname(__FILE__) . '/views/js/place-edit-map.js';
}
public static function image_url($image_file_name) {
// use wp function to get the plugin base path
return plugin_dir_url(__FILE__) . 'views/img/' . $image_file_name;
}
}
?>