1 | {footer_script require='jquery.bootstrap-tour'}{literal}
|
---|
2 |
|
---|
3 | var tour = new Tour({
|
---|
4 | name: "first_contact",
|
---|
5 | orphan: true,
|
---|
6 | onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=first_contact"},
|
---|
7 | template: "<div class='popover'> <div class='arrow'></div> <h3 class='popover-title'></h3> <div class='popover-content'></div> <div class='popover-navigation'> <div class='btn-group'> <button class='btn btn-sm btn-default' data-role='prev'>« {/literal}{'Prev'|@translate|@escape:'javascript'}{literal}</button> <button class='btn btn-sm btn-default' data-role='next'>{/literal}{'Next '|@translate|@escape:'javascript'}{literal} »</button> </div> <button class='btn btn-sm btn-default' data-role='end'>{/literal}{'End tour'|@translate|@escape:'javascript'}{literal}</button> </div> </div>",
|
---|
8 | });
|
---|
9 | {/literal}{if $TAT_restart}tour.restart();{/if}{literal}
|
---|
10 |
|
---|
11 | tour.addSteps([
|
---|
12 | {
|
---|
13 | path: "{/literal}{$TAT_path}{literal}admin.php",
|
---|
14 | title: "{/literal}{'first_contact_title1'|@translate|@escape:'javascript'}{literal}",
|
---|
15 | content: "{/literal}{'first_contact_stp1'|@translate|@escape:'javascript'}{literal}"
|
---|
16 | },
|
---|
17 | {
|
---|
18 | path: "{/literal}{$TAT_path}{literal}admin.php",
|
---|
19 | placement: "right",
|
---|
20 | element: "a[href='./admin.php?page=photos_add']",
|
---|
21 | reflex:true,
|
---|
22 | title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}",
|
---|
23 | content: "{/literal}{'first_contact_stp2'|@translate|@escape:'javascript'}{literal}",
|
---|
24 | },
|
---|
25 | {
|
---|
26 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
27 | placement: "bottom",
|
---|
28 | element: ".selected_tab",
|
---|
29 | title: "{/literal}{'first_contact_title3'|@translate|@escape:'javascript'}{literal}",
|
---|
30 | content: "{/literal}{'first_contact_stp3'|@translate|@escape:'javascript'}{literal}",
|
---|
31 | },
|
---|
32 | {
|
---|
33 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
34 | placement: "right",
|
---|
35 | element: "#albumSelection",
|
---|
36 | title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}",
|
---|
37 | content: "{/literal}{'first_contact_stp4'|@translate|@escape:'javascript'}{literal}"
|
---|
38 | },
|
---|
39 | {//5
|
---|
40 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
41 | placement: "top",
|
---|
42 | element: ".plupload_add",
|
---|
43 | title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}",
|
---|
44 | content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}"
|
---|
45 | },
|
---|
46 | {
|
---|
47 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
48 | placement: "top",
|
---|
49 | element: ".plupload_start",
|
---|
50 | title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}",
|
---|
51 | content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}"
|
---|
52 | },
|
---|
53 | {
|
---|
54 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
55 | placement: "top",
|
---|
56 | element: "#afterUploadActions",
|
---|
57 | title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}",
|
---|
58 | content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}",
|
---|
59 | prev:4
|
---|
60 | },
|
---|
61 | {
|
---|
62 | path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
|
---|
63 | placement: "top",
|
---|
64 | element: "#batchLink",
|
---|
65 | reflex:true,
|
---|
66 | title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}",
|
---|
67 | content: "{/literal}{'first_contact_stp8'|@translate|@escape:'javascript'}{literal}",
|
---|
68 | prev:4
|
---|
69 | },
|
---|
70 | {
|
---|
71 | path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|prefilter-caddie)/,
|
---|
72 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
73 | placement: "top",
|
---|
74 | element: "",
|
---|
75 | title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}",
|
---|
76 | content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}"
|
---|
77 | },
|
---|
78 | {//10
|
---|
79 | path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
|
---|
80 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
81 | placement: "right",
|
---|
82 | element: ".icon-flag",
|
---|
83 | title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}",
|
---|
84 | content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{literal}"
|
---|
85 | },
|
---|
86 | {
|
---|
87 | path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
|
---|
88 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
89 | placement: "left",
|
---|
90 | element: "#checkActions",
|
---|
91 | title: "{/literal}{'first_contact_title11'|@translate|@escape:'javascript'}{literal}",
|
---|
92 | content: "{/literal}{'first_contact_stp11'|@translate|@escape:'javascript'}{literal}"
|
---|
93 | },
|
---|
94 | {
|
---|
95 | path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
|
---|
96 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
97 | placement: "top",
|
---|
98 | element: "#action",
|
---|
99 | title: "{/literal}{'first_contact_title12'|@translate|@escape:'javascript'}{literal}",
|
---|
100 | content: "{/literal}{'first_contact_stp12'|@translate|@escape:'javascript'}{literal}"
|
---|
101 | },
|
---|
102 | {
|
---|
103 | path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
|
---|
104 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
105 | placement: "bottom",
|
---|
106 | element: "#tabsheet .normal_tab",
|
---|
107 | title: "{/literal}{'first_contact_title13'|@translate|@escape:'javascript'}{literal}",
|
---|
108 | content: "{/literal}{'first_contact_stp13'|@translate|@escape:'javascript'}{literal}"
|
---|
109 | },
|
---|
110 | {
|
---|
111 | path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
|
---|
112 | redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
|
---|
113 | placement: "top",
|
---|
114 | element: "#TAT_FC_14",
|
---|
115 | reflex:true,
|
---|
116 | title: "{/literal}{'first_contact_title14'|@translate|@escape:'javascript'}{literal}",
|
---|
117 | content: "{/literal}{'first_contact_stp14'|@translate|@escape:'javascript'}{literal}",
|
---|
118 | onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
|
---|
119 | },
|
---|
120 | {//15
|
---|
121 | path: /admin\.php\?page=photo-/,
|
---|
122 | redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
|
---|
123 | placement: "bottom",
|
---|
124 | element: ".selected_tab",
|
---|
125 | title: "{/literal}{'first_contact_title15'|@translate|@escape:'javascript'}{literal}",
|
---|
126 | content: "{/literal}{'first_contact_stp15'|@translate|@escape:'javascript'}{literal}"
|
---|
127 | },
|
---|
128 | {
|
---|
129 | path: /admin\.php\?page=photo-/,
|
---|
130 | redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
|
---|
131 | placement: "top",
|
---|
132 | element: "#TAT_FC_16",
|
---|
133 | title: "{/literal}{'first_contact_title16'|@translate|@escape:'javascript'}{literal}",
|
---|
134 | content: "{/literal}{'first_contact_stp16'|@translate|@escape:'javascript'}{literal}"
|
---|
135 | },
|
---|
136 | {
|
---|
137 | path: /admin\.php\?page=photo-/,
|
---|
138 | redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
|
---|
139 | placement: "top",
|
---|
140 | element: "#TAT_FC_17",
|
---|
141 | title: "{/literal}{'first_contact_title17'|@translate|@escape:'javascript'}{literal}",
|
---|
142 | content: "{/literal}{'first_contact_stp17'|@translate|@escape:'javascript'}{literal}"
|
---|
143 | },
|
---|
144 | {
|
---|
145 | path: /admin\.php\?page=photo-/,
|
---|
146 | redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
|
---|
147 | placement: "top",
|
---|
148 | title: "{/literal}{'first_contact_title18'|@translate|@escape:'javascript'}{literal}",
|
---|
149 | content: "{/literal}{'first_contact_stp18'|@translate|@escape:'javascript'}{literal}"
|
---|
150 | },
|
---|
151 | {
|
---|
152 | path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
|
---|
153 | placement: "left",
|
---|
154 | element: "#content",
|
---|
155 | title: "{/literal}{'first_contact_title19'|@translate|@escape:'javascript'}{literal}",
|
---|
156 | content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate|@escape:'javascript'}{else}{'first_contact_stp19_b'|@translate|@escape:'javascript'}{/if}{literal}",
|
---|
157 | onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
|
---|
158 |
|
---|
159 | },
|
---|
160 | {//20
|
---|
161 | path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
|
---|
162 | placement: "top",
|
---|
163 | element: "#categoryOrdering",
|
---|
164 | title: "{/literal}{'first_contact_title20'|@translate|@escape:'javascript'}{literal}",
|
---|
165 | content: "{/literal}{'first_contact_stp20'|@translate|@escape:'javascript'}{literal}"
|
---|
166 | },
|
---|
167 | {
|
---|
168 | path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
|
---|
169 | placement: "left",
|
---|
170 | element: "#tabsheet:first-child",
|
---|
171 | title: "{/literal}{'first_contact_title21'|@translate|@escape:'javascript'}{literal}",
|
---|
172 | content: "{/literal}{'first_contact_stp21'|@translate|@escape:'javascript'}{literal}"
|
---|
173 | },
|
---|
174 | {
|
---|
175 | path: /admin\.php\?page=album-/,
|
---|
176 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
|
---|
177 | placement: "top",
|
---|
178 | element: ".selected_tab",
|
---|
179 | title: "{/literal}{'first_contact_title22'|@translate|@escape:'javascript'}{literal}",
|
---|
180 | content: "{/literal}{'first_contact_stp22'|@translate|@escape:'javascript'}{literal}"
|
---|
181 | },
|
---|
182 | {
|
---|
183 | path: /admin\.php\?page=album-/,
|
---|
184 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
|
---|
185 | placement: "top",
|
---|
186 | element: "#TAT_FC_23",
|
---|
187 | title: "{/literal}{'first_contact_title23'|@translate|@escape:'javascript'}{literal}",
|
---|
188 | content: "{/literal}{'first_contact_stp23'|@translate|@escape:'javascript'}{literal}"
|
---|
189 | },
|
---|
190 | {
|
---|
191 | path: /admin\.php\?page=album-/,
|
---|
192 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
|
---|
193 | placement: "bottom",
|
---|
194 | element: ".tabsheet",
|
---|
195 | title: "{/literal}{'first_contact_title24'|@translate|@escape:'javascript'}{literal}",
|
---|
196 | content: "{/literal}{'first_contact_stp24'|@translate|@escape:'javascript'}{literal}"
|
---|
197 | },
|
---|
198 | {//25
|
---|
199 | path: /admin\.php\?page=album-[0-9]+-permissions/,
|
---|
200 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
|
---|
201 | placement: "left",
|
---|
202 | element: "#content",
|
---|
203 | title: "{/literal}{'first_contact_title25'|@translate|@escape:'javascript'}{literal}",
|
---|
204 | content: "{/literal}{'first_contact_stp25'|@translate|@escape:'javascript'}{literal}"
|
---|
205 | },
|
---|
206 | {
|
---|
207 | path: /admin\.php\?page=album-[0-9]+-permissions/,
|
---|
208 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
|
---|
209 | placement: "top",
|
---|
210 | element: "#selectStatus",
|
---|
211 | title: "{/literal}{'first_contact_title26'|@translate|@escape:'javascript'}{literal}",
|
---|
212 | content: "{/literal}{'first_contact_stp26'|@translate|@escape:'javascript'}{literal}"
|
---|
213 | },
|
---|
214 | {
|
---|
215 | path: /admin\.php\?page=album-[0-9]+-permissions/,
|
---|
216 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
|
---|
217 | placement: "top",
|
---|
218 | element: "#selectStatus",
|
---|
219 | title: "{/literal}{'first_contact_title27'|@translate|@escape:'javascript'}{literal}",
|
---|
220 | content: "{/literal}{'first_contact_stp27'|@translate|@escape:'javascript'}{literal}"
|
---|
221 | },
|
---|
222 | {
|
---|
223 | path: /admin\.php\?page=album-[0-9]+-permissions/,
|
---|
224 | redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
|
---|
225 | placement: "top",
|
---|
226 | title: "{/literal}{'first_contact_title28'|@translate|@escape:'javascript'}{literal}",
|
---|
227 | content: "{/literal}{'first_contact_stp28'|@translate|@escape:'javascript'}{literal}"
|
---|
228 | },
|
---|
229 | {
|
---|
230 | path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
|
---|
231 | placement: "top",
|
---|
232 | element: "",
|
---|
233 | title: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}",
|
---|
234 | content: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}"
|
---|
235 | },
|
---|
236 | {//30
|
---|
237 | path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
|
---|
238 | placement: "right",
|
---|
239 | element: "#gallery_title",
|
---|
240 | title: "{/literal}{'first_contact_title30'|@translate|@escape:'javascript'}{literal}",
|
---|
241 | content: "{/literal}{'first_contact_stp30'|@translate|@escape:'javascript'}{literal}"
|
---|
242 | },
|
---|
243 | {
|
---|
244 | path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
|
---|
245 | placement: "right",
|
---|
246 | element: "#page_banner",
|
---|
247 | title: "{/literal}{'first_contact_title31'|@translate|@escape:'javascript'}{literal}",
|
---|
248 | content: "{/literal}{'first_contact_stp31'|@translate|@escape:'javascript'}{literal}"
|
---|
249 | },
|
---|
250 | {
|
---|
251 | path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
|
---|
252 | reflex: true,
|
---|
253 | placement: "top",
|
---|
254 | element: ".formButtons input",
|
---|
255 | title: "{/literal}{'first_contact_title32'|@translate|@escape:'javascript'}{literal}",
|
---|
256 | content: "{/literal}{'first_contact_stp32'|@translate|@escape:'javascript'}{literal}"
|
---|
257 | },
|
---|
258 | {
|
---|
259 | path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
|
---|
260 | placement: "top",
|
---|
261 | title: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
|
---|
262 | content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
|
---|
263 | prev:30
|
---|
264 | },
|
---|
265 | {
|
---|
266 | path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
|
---|
267 | placement: "top",
|
---|
268 | element: "",
|
---|
269 | title: "{/literal}{'first_contact_title34'|@translate|@escape:'javascript'}{literal}",
|
---|
270 | content: "{/literal}{'first_contact_stp34'|@translate|@escape:'javascript'}{literal}"
|
---|
271 | },
|
---|
272 | {//35
|
---|
273 | path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
|
---|
274 | placement: "top",
|
---|
275 | element: "#TAT_FC_35",
|
---|
276 | title: "{/literal}{'first_contact_title35'|@translate|@escape:'javascript'}{literal}",
|
---|
277 | content: "{/literal}{'first_contact_stp35'|@translate|@escape:'javascript'}{literal}"
|
---|
278 | },
|
---|
279 | {
|
---|
280 | path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
|
---|
281 | placement: "top",
|
---|
282 | element: "",
|
---|
283 | title: "{/literal}{'first_contact_title36'|@translate|@escape:'javascript'}{literal}",
|
---|
284 | content: "{/literal}{'first_contact_stp36'|@translate|@escape:'javascript'}{literal}"
|
---|
285 | },
|
---|
286 | {
|
---|
287 | path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
|
---|
288 | placement: "right",
|
---|
289 | element: ".tabsheet",
|
---|
290 | title: "{/literal}{'first_contact_title37'|@translate|@escape:'javascript'}{literal}",
|
---|
291 | content: "{/literal}{'first_contact_stp37'|@translate|@escape:'javascript'}{literal}"
|
---|
292 | },
|
---|
293 | {
|
---|
294 | path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
|
---|
295 | placement: "left",
|
---|
296 | element: "",
|
---|
297 | title: "{/literal}{'first_contact_title38'|@translate|@escape:'javascript'}{literal}",
|
---|
298 | content: "{/literal}{'first_contact_stp38'|@translate|@escape:'javascript'}{literal}"
|
---|
299 | },
|
---|
300 | {
|
---|
301 | path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
|
---|
302 | placement: "left",
|
---|
303 | element: "#content",
|
---|
304 | title: "{/literal}{'first_contact_title39'|@translate|@escape:'javascript'}{literal}",
|
---|
305 | content: "{/literal}{'first_contact_stp39'|@translate|@escape:'javascript'}{literal}"
|
---|
306 | },
|
---|
307 | {//40
|
---|
308 | path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
|
---|
309 | placement: "bottom",
|
---|
310 | element: "#TakeATour",
|
---|
311 | title: "{/literal}{'first_contact_title40'|@translate|@escape:'javascript'}{literal}",
|
---|
312 | content: "{/literal}{'first_contact_stp40'|@translate|@escape:'javascript'}{literal}"
|
---|
313 | },
|
---|
314 | {
|
---|
315 | path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
|
---|
316 | placement: "right",
|
---|
317 | element: ".tabsheet",
|
---|
318 | title: "{/literal}{'first_contact_title41'|@translate|@escape:'javascript'}{literal}",
|
---|
319 | content: "{/literal}{'first_contact_stp41'|@translate|@escape:'javascript'}{literal}"
|
---|
320 | },
|
---|
321 | {
|
---|
322 | path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
|
---|
323 | title: "{/literal}{'first_contact_title42'|@translate|@escape:'javascript'}{literal}",
|
---|
324 | content: "{/literal}{'first_contact_stp42'|@translate|@escape:'javascript'}{literal}"
|
---|
325 | },
|
---|
326 | {
|
---|
327 | path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
|
---|
328 | placement: "top",
|
---|
329 | element: "",
|
---|
330 | title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}",
|
---|
331 | content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}"
|
---|
332 | }
|
---|
333 | ]);
|
---|
334 |
|
---|
335 | // Initialize the tour
|
---|
336 | tour.init();
|
---|
337 |
|
---|
338 | // Start the tour
|
---|
339 | tour.start();
|
---|
340 |
|
---|
341 | jQuery( ".plupload_start" ).click(function() {
|
---|
342 | if (tour.getCurrentStep()==5)
|
---|
343 | {
|
---|
344 | tour.goTo(6);
|
---|
345 | }
|
---|
346 | });
|
---|
347 | {/literal}{/footer_script} |
---|