diff options
author | flop25 <flop25@piwigo.org> | 2014-05-09 14:51:31 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2014-05-09 14:51:31 +0000 |
commit | c323508852be181da2daadca7d6ce8c34f63fa13 (patch) | |
tree | 61ad81e324340b2f372e2e8a1b176166be294141 /plugins/TakeATour/tours/2_7_0/tour.tpl | |
parent | 414c9fe04968094b72b9650d3b8addf0436f9f85 (diff) |
[TakeATour]
adding 2.7 tour
git-svn-id: http://piwigo.org/svn/trunk@28393 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/TakeATour/tours/2_7_0/tour.tpl')
-rw-r--r-- | plugins/TakeATour/tours/2_7_0/tour.tpl | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/plugins/TakeATour/tours/2_7_0/tour.tpl b/plugins/TakeATour/tours/2_7_0/tour.tpl new file mode 100644 index 000000000..b9b5631e0 --- /dev/null +++ b/plugins/TakeATour/tours/2_7_0/tour.tpl @@ -0,0 +1,86 @@ +{footer_script require='jquery.bootstrap-tour'}{literal}
+
+var tour = new Tour({
+ name: "2_7_0",
+ orphan: true,
+ onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=2_7_0"},
+ 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>",
+});
+{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
+
+tour.addSteps([
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php",
+ title: "{/literal}{'2_7_0_title1'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp1'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ placement: "left",
+ element: "#content",
+ title: "{/literal}{'2_7_0_title2'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp2'|@translate|@escape:'javascript'}{literal}",
+ },
+ {
+ path: "{/literal}{$TAT_path}{$TAT_index}{literal}",
+ placement: "right",
+ element: "#qsearchInput",
+ title: "{/literal}{'2_7_0_title3'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp3'|@translate|@escape:'javascript'}{literal}",
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ content: "{/literal}{'2_7_0_stp4'|@translate|@escape:'javascript'}{literal}"
+ },
+ {//5
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title5'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp5'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title6'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp6'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title7'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp7'|@translate|@escape:'javascript'}{literal}",
+ prev:4
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title8'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp8'|@translate|@escape:'javascript'}{literal}",
+ prev:4
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title9'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp9'|@translate|@escape:'javascript'}{literal}"
+ },
+ {//10
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title10'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp10'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ title: "{/literal}{'2_7_0_title11'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'2_7_0_stp11'|@translate|@escape:'javascript'}{literal}"
+ }
+]);
+
+// Initialize the tour
+tour.init();
+
+// Start the tour
+tour.start();
+
+jQuery( "input[class='submit']" ).click(function() {
+ if (tour.getCurrentStep()==5)
+ {
+ tour.goTo(6);
+ }
+});
+{/literal}{/footer_script}
\ No newline at end of file |