source: trunk/plugins/TakeATour/tours/first_contact/tour.tpl @ 29433

Revision 29433, 16.2 KB checked in by plg, 6 years ago (diff)

Take a Tour: rephrase a few steps in tour "first contact"

Line 
1{footer_script require='jquery.bootstrap-tour'  load="async"}{literal}
2
3var tour = new Tour({
4  name: "first_contact",
5  orphan: true,
6  onEnd: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}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'>&laquo; {/literal}{'Prev'|@translate|@escape:'javascript'}{literal}</button>              <button class='btn btn-sm btn-default' data-role='next'>{/literal}{'Next '|@translate|@escape:'javascript'}{literal} &raquo;</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
11tour.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: "#addFiles",
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: "#startUpload",
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:3,
60    onPrev: function (tour) {window.location.reload()}
61  },
62  {
63    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
64    placement: "top",
65    element: ".batchLink",
66    reflex:true,
67    title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}",
68    content: "{/literal}{'first_contact_stp8'|@translate|@escape:'javascript'}{literal}",
69  },
70  {
71    path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|batch_manager&filter=prefilter-caddie)/,
72    redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
73    placement: "top",
74    element: "select[name='filter_prefilter']",
75    title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}",
76    content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}",
77    prev:3,
78    onPrev: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}admin.php?page=photos_add"}
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: "a[href='./admin.php?page=batch_manager&filter=prefilter-caddie']",
85    title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}",
86    content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
94    content: "{/literal}{'first_contact_stp11'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
102    content: "{/literal}{'first_contact_stp12'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
110    content: "{/literal}{'first_contact_stp13'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
119    content: "{/literal}{'first_contact_stp14'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
128    content: "{/literal}{'first_contact_stp15'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
136    content: "{/literal}{'first_contact_stp16'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
144    content: "{/literal}{'first_contact_stp17'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
151    content: "{/literal}{'first_contact_stp18'|@translate|@escape:'javascript'}{literal}"
152  },
153  {
154    path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
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-[0-9]+(|-properties)$/,
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-[0-9]+(|-properties)$/,
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-[0-9]+(|-properties)$/,
192    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
193    placement: "bottom",
194    element: "li.normal_tab:nth-child(3) > a:nth-child(1)",
195    reflex: true,
196    title: "{/literal}{'first_contact_title24'|@translate|@escape:'javascript'}{literal}",
197    content: "{/literal}{'first_contact_stp24'|@translate|@escape:'javascript'}{literal}"
198  },
199  {//25
200    path: /admin\.php\?page=album-[0-9]+-permissions/,
201    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
202    placement: "left",
203    element: "#content",
204    title: "{/literal}{'first_contact_title25'|@translate|@escape:'javascript'}{literal}",
205    content: "{/literal}{'first_contact_stp25'|@translate|@escape:'javascript'}{literal}"
206  },
207  {
208    path: /admin\.php\?page=album-[0-9]+-permissions/,
209    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
210    placement: "top",
211    element: "#selectStatus",
212    title: "{/literal}{'first_contact_title26'|@translate|@escape:'javascript'}{literal}",
213    content: "{/literal}{'first_contact_stp26'|@translate|@escape:'javascript'}{literal}"
214  },
215  {
216    path: /admin\.php\?page=album-[0-9]+-permissions/,
217    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
218    placement: "top",
219    element: "#selectStatus",
220    title: "{/literal}{'first_contact_title27'|@translate|@escape:'javascript'}{literal}",
221    content: "{/literal}{'first_contact_stp27'|@translate|@escape:'javascript'}{literal}"
222  },
223  {
224    path: /admin\.php\?page=album-[0-9]+-permissions/,
225    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
226    placement: "top",
227    title: "{/literal}{'first_contact_title28'|@translate|@escape:'javascript'}{literal}",
228    content: "{/literal}{'first_contact_stp28'|@translate|@escape:'javascript'}{literal}"
229  },
230  {
231    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
232    placement: "top",
233    element: "",
234    title: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}",
235    content: "{/literal}{'first_contact_stp29'|@translate|@escape:'javascript'}{literal}"
236  },
237  {//30
238    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
239    placement: "right",
240    element: "#gallery_title",
241    title: "{/literal}{'first_contact_title30'|@translate|@escape:'javascript'}{literal}",
242    content: "{/literal}{'first_contact_stp30'|@translate|@escape:'javascript'}{literal}"
243  },
244  {
245    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
246    placement: "right",
247    element: "#page_banner",
248    title: "{/literal}{'first_contact_title31'|@translate|@escape:'javascript'}{literal}",
249    content: "{/literal}{'first_contact_stp31'|@translate|@escape:'javascript'}{literal}"
250  },
251  {
252    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
253    reflex: true,
254    placement: "top",
255    element: ".formButtons input",
256    title: "{/literal}{'first_contact_title32'|@translate|@escape:'javascript'}{literal}",
257    content: "{/literal}{'first_contact_stp32'|@translate|@escape:'javascript'}{literal}"
258  },
259  {
260    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
261    placement: "bottom",
262    element: "li.normal_tab:nth-child(6) > a:nth-child(1)",
263    title: "{/literal}{'first_contact_title33'|@translate|@escape:'javascript'}{literal}",
264    content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
272    content: "{/literal}{'first_contact_stp34'|@translate|@escape:'javascript'}{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|@escape:'javascript'}{literal}",
279    content: "{/literal}{'first_contact_stp35'|@translate|@escape:'javascript'}{literal}"
280  },
281  {
282    path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
283    placement: "right",
284    element: ".tabsheet",
285    title: "{/literal}{'first_contact_title37'|@translate|@escape:'javascript'}{literal}",
286    content: "{/literal}{'first_contact_stp37'|@translate|@escape:'javascript'}{literal}"
287  },
288  {
289    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
290    placement: "left",
291    element: "",
292    title: "{/literal}{'first_contact_title38'|@translate|@escape:'javascript'}{literal}",
293    content: "{/literal}{'first_contact_stp38'|@translate|@escape:'javascript'}{literal}"
294  },
295  {
296    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
297    placement: "left",
298    element: "#content",
299    title: "{/literal}{'first_contact_title39'|@translate|@escape:'javascript'}{literal}",
300    content: "{/literal}{'first_contact_stp39'|@translate|@escape:'javascript'}{literal}"
301  },
302  {//40
303    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
304    placement: "bottom",
305    element: "#TakeATour",
306    title: "{/literal}{'first_contact_title40'|@translate|@escape:'javascript'}{literal}",
307    content: "{/literal}{'first_contact_stp40'|@translate|@escape:'javascript'}{literal}"
308  },
309  {
310    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
311    placement: "right",
312    element: ".tabsheet",
313    title: "{/literal}{'first_contact_title41'|@translate|@escape:'javascript'}{literal}",
314    content: "{/literal}{'first_contact_stp41'|@translate|@escape:'javascript'}{literal}"
315  },
316  {
317    path: "{/literal}{$TAT_path}{literal}admin.php",
318    title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}",
319    content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}"
320  }
321]);
322
323// Initialize the tour
324tour.init();
325
326// Start the tour
327tour.start();
328{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.