Changeset 29078 for trunk/plugins/TakeATour/tours
- Timestamp:
- Jul 26, 2014, 7:42:07 PM (10 years ago)
- Location:
- trunk/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins
- Property svn:ignore
-
old new 1 * 1 AMetaData 2 AdditionalPages 3 Autosize 4 Comments_on_Albums 5 ExtendedDescription 6 GMaps 7 GThumb 8 GrumPluginClasses 9 PWG_Stuffs 10 Panoramas 11 PersonalPlugin 12 SmartAlbums 13 automatic_size 14 dynareceperio 15 event_cats 16 lightbox 17 meta 18 piclens 19 rv_menutree 20 trash 21 user_tags
-
- Property svn:ignore
-
trunk/plugins/TakeATour/tours/first_contact/config.inc.php
r29046 r29078 10 10 { 11 11 /* first contact */ 12 add_event_handler('loc_end_photo_add_direct', 'TAT_FC_6'); 13 add_event_handler('loc_end_photo_add_direct', 'TAT_FC_7'); 12 14 add_event_handler('loc_end_element_set_global', 'TAT_FC_14'); 13 15 add_event_handler('loc_end_picture_modify', 'TAT_FC_16'); … … 16 18 add_event_handler('loc_end_themes_installed', 'TAT_FC_35'); 17 19 } 18 20 21 function TAT_FC_7() 22 { 23 global $template; 24 $template->set_prefilter('photos_add', 'TAT_FC_7_prefilter'); 25 } 26 function TAT_FC_7_prefilter ($content, &$smarty) 27 { 28 $search = 'UploadComplete: function(up, files) {'; 29 $replacement = 'UploadComplete: function(up, files) { 30 if (tour.getCurrentStep()==5) 31 { 32 tour.goTo(6); 33 } 34 '; 35 return str_replace($search, $replacement, $content); 36 } 37 function TAT_FC_6() 38 { 39 global $template; 40 $template->set_prefilter('photos_add', 'TAT_FC_6_prefilter'); 41 } 42 function TAT_FC_6_prefilter ($content, &$smarty) 43 { 44 $search = 'BeforeUpload:'; 45 $replacement = 'FilesAdded: function() { 46 if (tour.getCurrentStep()==4) 47 { 48 tour.goTo(5); 49 } 50 51 }, 52 BeforeUpload:'; 53 return str_replace($search, $replacement, $content); 54 } 19 55 function TAT_FC_14() 20 56 { -
trunk/plugins/TakeATour/tours/first_contact/tour.tpl
r29046 r29078 1 {footer_script require='jquery.bootstrap-tour' }{literal}1 {footer_script require='jquery.bootstrap-tour' load="async"}{literal} 2 2 3 3 var tour = new Tour({ … … 57 57 title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}", 58 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", 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", 65 66 reflex:true, 66 67 title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}", 67 68 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: "", 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 75 title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}", 76 content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}" 77 }, 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 }, 78 80 {//10 79 81 path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/, 80 82 redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";}, 81 83 placement: "right", 82 element: " .icon-flag",84 element: "a[href='./admin.php?page=batch_manager&filter=prefilter-caddie']", 83 85 title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}", 84 86 content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{literal}" … … 151 153 { 152 154 path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list", 153 placement: "left",154 element: "#content",155 155 title: "{/literal}{'first_contact_title19'|@translate|@escape:'javascript'}{literal}", 156 156 content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate|@escape:'javascript'}{else}{'first_contact_stp19_b'|@translate|@escape:'javascript'}{/if}{literal}", … … 173 173 }, 174 174 { 175 path: /admin\.php\?page=album- /,175 path: /admin\.php\?page=album-[0-9]+(|-properties)$/, 176 176 redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";}, 177 177 placement: "top", … … 181 181 }, 182 182 { 183 path: /admin\.php\?page=album- /,183 path: /admin\.php\?page=album-[0-9]+(|-properties)$/, 184 184 redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";}, 185 185 placement: "top", … … 189 189 }, 190 190 { 191 path: /admin\.php\?page=album- /,191 path: /admin\.php\?page=album-[0-9]+(|-properties)$/, 192 192 redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";}, 193 193 placement: "bottom", 194 element: ".tabsheet", 194 element: "li.normal_tab:nth-child(3) > a:nth-child(1)", 195 reflex: true, 195 196 title: "{/literal}{'first_contact_title24'|@translate|@escape:'javascript'}{literal}", 196 197 content: "{/literal}{'first_contact_stp24'|@translate|@escape:'javascript'}{literal}" … … 258 259 { 259 260 path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration", 260 placement: "top", 261 title: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}", 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}", 262 264 content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}", 263 265 prev:30 … … 325 327 }, 326 328 { 327 path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour", 328 placement: "top", 329 element: "", 329 path: "{/literal}{$TAT_path}{literal}admin.php", 330 330 title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}", 331 331 content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}" … … 338 338 // Start the tour 339 339 tour.start(); 340 341 jQuery( ".plupload_start" ).click(function() {342 if (tour.getCurrentStep()==5)343 {344 tour.goTo(6);345 }346 });347 340 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.