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