aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/tours
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TakeATour/tours')
-rw-r--r--plugins/TakeATour/tours/2_7_0/config.inc.php42
-rw-r--r--plugins/TakeATour/tours/2_7_0/tour.tpl98
-rw-r--r--plugins/TakeATour/tours/first_contact/config.inc.php175
-rw-r--r--plugins/TakeATour/tours/first_contact/tour.tpl310
-rw-r--r--plugins/TakeATour/tours/first_contact/tour.tpl.bak347
-rw-r--r--plugins/TakeATour/tours/privacy/config.inc.php71
-rw-r--r--plugins/TakeATour/tours/privacy/tour.tpl195
-rw-r--r--plugins/TakeATour/tours/scaling/scaling.tpl89
8 files changed, 0 insertions, 1327 deletions
diff --git a/plugins/TakeATour/tours/2_7_0/config.inc.php b/plugins/TakeATour/tours/2_7_0/config.inc.php
deleted file mode 100644
index 76b671632..000000000
--- a/plugins/TakeATour/tours/2_7_0/config.inc.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**********************************
- * REQUIRED PATH TO THE TPL FILE */
-
-$TOUR_PATH = PHPWG_PLUGINS_PATH.'TakeATour/tours/2_7_0/tour.tpl';
-
-/*********************************/
-
-
-/**********************
- * Preparse part *
- **********************/
- $template->assign('TAT_index', make_index_url(array('section' => 'categories')));
- $template->assign('TAT_search', get_root_url().'search.php');
-
- //picture id
- if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['image_id'] = $matches[1];
- }
- check_input_parameter('image_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
- {
- $template->assign('TAT_image_id', $_GET['image_id']);
- pwg_set_session_var('TAT_image_id', $_GET['image_id']);
- }
- elseif (is_numeric(pwg_get_session_var('TAT_image_id')))
- {
- $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id'));
- }
- else
- {
- $query = '
- SELECT id
- FROM '.IMAGES_TABLE.'
- ORDER BY RAND()
- LIMIT 1
- ;';
- $row = pwg_db_fetch_assoc(pwg_query($query));
- $template->assign('TAT_image_id', $row['id']);
- }
-?> \ No newline at end of file
diff --git a/plugins/TakeATour/tours/2_7_0/tour.tpl b/plugins/TakeATour/tours/2_7_0/tour.tpl
deleted file mode 100644
index 54e1bda3c..000000000
--- a/plugins/TakeATour/tours/2_7_0/tour.tpl
+++ /dev/null
@@ -1,98 +0,0 @@
-{footer_script require='jquery.bootstrap-tour'}{literal}
-
-var tour = new Tour({
- name: "2_7_0",
- orphan: true,
- onEnd: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}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'>&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>",
-});
-{/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}{literal}admin.php?page=photos_add",
- placement: "top",
- title: "{/literal}{'2_7_0_title2b'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'2_7_0_stp2b'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{$TAT_search}{literal}",
- placement: "left",
- element: "#content",
- title: "{/literal}{'2_7_0_title4'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'2_7_0_stp4'|@translate|@escape:'javascript'}{literal}"
- },
- {//5
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photo-{/literal}{$TAT_image_id}{literal}",
- placement: "top",
- element: ".icon-calendar",
- 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=photo-{/literal}{$TAT_image_id}{literal}",
- placement: "top",
- element: "#catModify > fieldset:nth-child(2) > p:nth-child(5) > strong",
- 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=cat_list",
- element: "#autoOrderOpen",
- onShown: function (tour) {jQuery("#autoOrderOpen").trigger("click");},
- title: "{/literal}{'2_7_0_title7'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'2_7_0_stp7'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager&filter=prefilter-caddie",
- element: "#empty_caddie",
- placement: "right",
- 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=batch_manager&filter=search-taken:2013..2015",
- element: "#filter_search input[name=q]",
- title: "{/literal}{'2_7_0_title9'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'2_7_0_stp9'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager&filter=filesize-1..5",
- element: "#filter_filesize",
- placement: "top",
- 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
diff --git a/plugins/TakeATour/tours/first_contact/config.inc.php b/plugins/TakeATour/tours/first_contact/config.inc.php
deleted file mode 100644
index dc1dfe2db..000000000
--- a/plugins/TakeATour/tours/first_contact/config.inc.php
+++ /dev/null
@@ -1,175 +0,0 @@
-<?php
-/**********************************
- * REQUIRED PATH TO THE TPL FILE */
-
-$TOUR_PATH = PHPWG_PLUGINS_PATH.'TakeATour/tours/first_contact/tour.tpl';
-
-/*********************************/
-
-if ( defined('IN_ADMIN') and IN_ADMIN )
-{
-/* first contact */
-add_event_handler('loc_end_photo_add_direct', 'TAT_FC_6');
-add_event_handler('loc_end_photo_add_direct', 'TAT_FC_7');
-add_event_handler('loc_end_element_set_global', 'TAT_FC_14');
-add_event_handler('loc_end_picture_modify', 'TAT_FC_16');
-add_event_handler('loc_end_picture_modify', 'TAT_FC_17');
-add_event_handler('loc_end_cat_modify', 'TAT_FC_23');
-add_event_handler('loc_end_themes_installed', 'TAT_FC_35');
-}
-
-function TAT_FC_7()
-{
- global $template;
- $template->set_prefilter('photos_add', 'TAT_FC_7_prefilter');
-}
-function TAT_FC_7_prefilter ($content, &$smarty)
-{
- $search = 'UploadComplete: function(up, files) {';
- $replacement = 'UploadComplete: function(up, files) {
- if (tour.getCurrentStep()==5)
- {
- tour.goTo(6);
- }
-';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_6()
-{
- global $template;
- $template->set_prefilter('photos_add', 'TAT_FC_6_prefilter');
-}
-function TAT_FC_6_prefilter ($content, &$smarty)
-{
- $search = 'BeforeUpload:';
- $replacement = 'FilesAdded: function() {
- if (tour.getCurrentStep()==4)
- {
- tour.goTo(5);
- }
-
- },
- BeforeUpload:';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_14()
-{
- global $template;
- $template->set_prefilter('batch_manager_global', 'TAT_FC_14_prefilter');
-}
-function TAT_FC_14_prefilter ($content, &$smarty)
-{
- $search = '<span class="wrap2';
- $replacement = '{counter print=false assign=TAT_FC_14}<span {if $TAT_FC_14==1}id="TAT_FC_14"{/if} class="wrap2';
- $content = str_replace($search, $replacement, $content);
- $search = 'target="_blank">{\'Edit\'';
- $replacement = '>{\'Edit\'';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_16()
-{
- global $template;
- $template->set_prefilter('picture_modify', 'TAT_FC_16_prefilter');
-}
-function TAT_FC_16_prefilter ($content, &$smarty)
-{
- $search = '<strong>{\'Linked albums\'|@translate}</strong>';
- $replacement = '<span id="TAT_FC_16"><strong>{\'Linked albums\'|@translate}</strong></span>';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_17()
-{
- global $template;
- $template->set_prefilter('picture_modify', 'TAT_FC_17_prefilter');
-}
-function TAT_FC_17_prefilter ($content, &$smarty)
-{
- $search = '<strong>{\'Representation of albums\'|@translate}</strong>';
- $replacement = '<span id="TAT_FC_17"><strong>{\'Representation of albums\'|@translate}</strong></span>';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_23()
-{
- global $template;
- $template->set_prefilter('album_properties', 'TAT_FC_23_prefilter');
-}
-function TAT_FC_23_prefilter ($content, &$smarty)
-{
- $search = '<strong>{\'Lock\'|@translate}</strong>';
- $replacement = '<span id="TAT_FC_23"><strong>{\'Lock\'|@translate}</strong></span>';
- return str_replace($search, $replacement, $content);
-}
-function TAT_FC_35()
-{
- global $template;
- $template->set_prefilter('themes', 'TAT_FC_35_prefilter');
-}
-function TAT_FC_35_prefilter ($content, &$smarty)
-{
- $search = '<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip"';
- $replacement = '{counter print=false assign=TAT_FC_35}<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip" {if $TAT_FC_35==1}id="TAT_FC_35"{/if}';
- return str_replace($search, $replacement, $content);
-}
-
-/**********************
- * Preparse part *
- **********************/
- //picture id
- if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['image_id'] = $matches[1];
- }
- check_input_parameter('image_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
- {
- $template->assign('TAT_image_id', $_GET['image_id']);
- pwg_set_session_var('TAT_image_id', $_GET['image_id']);
- }
- elseif (is_numeric(pwg_get_session_var('TAT_image_id')))
- {
- $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id'));
- }
- else
- {
- $query = '
- SELECT id
- FROM '.IMAGES_TABLE.'
- ORDER BY RAND()
- LIMIT 1
- ;';
- $row = pwg_db_fetch_assoc(pwg_query($query));
- $template->assign('TAT_image_id', $row['id']);
- }
- //album id
- if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['cat_id'] = $matches[1];
- }
- check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['cat_id']) and pwg_get_session_var('TAT_cat_id')==null)
- {
- $template->assign('TAT_cat_id', $_GET['cat_id']);
- pwg_set_session_var('TAT_cat_id', $_GET['cat_id']);
- }
- elseif (is_numeric(pwg_get_session_var('TAT_cat_id')))
- {
- $template->assign('TAT_cat_id', pwg_get_session_var('TAT_cat_id'));
- }
- else
- {
- $query = '
- SELECT id
- FROM '.CATEGORIES_TABLE.'
- ORDER BY RAND()
- LIMIT 1
- ;';
- $row = pwg_db_fetch_assoc(pwg_query($query));
- $template->assign('TAT_cat_id', $row['id']);
- }
- global $conf;
- if ( isset($conf['enable_synchronization']) )
- {
- $template->assign('TAT_FTP', $conf['enable_synchronization']);
- }
-
-?> \ No newline at end of file
diff --git a/plugins/TakeATour/tours/first_contact/tour.tpl b/plugins/TakeATour/tours/first_contact/tour.tpl
deleted file mode 100644
index bd3b2bc60..000000000
--- a/plugins/TakeATour/tours/first_contact/tour.tpl
+++ /dev/null
@@ -1,310 +0,0 @@
-{footer_script require='jquery.bootstrap-tour' load="async"}{literal}
-
-var tour = new Tour({
- name: "first_contact",
- orphan: true,
- onEnd: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}admin.php?page=plugin-TakeATour&tour_ended=first_contact"},
- 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>",
-});
-{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
-
-tour.addSteps([
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'first_contact_title1'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp1'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- placement: "right",
- element: "a[href='./admin.php?page=photos_add']",
- reflex:true,
- title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp2'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "bottom",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title3'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp3'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "right",
- element: "#albumSelection",
- title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp4'|@translate|@escape:'javascript'}{literal}"
- },
- {//5
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#addFiles",
- title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#startUpload",
- title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#afterUploadActions",
- title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}",
- prev:3,
- onPrev: function (tour) {window.location.reload()}
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: ".batchLink",
- reflex:true,
- title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp8'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|batch_manager&filter=prefilter-caddie)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "bottom",
- element: "#filter_prefilter select",
- title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}",
- prev:3,
- onPrev: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}admin.php?page=photos_add"}
- },
- {//10
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "right",
- element: "a[href='./admin.php?page=batch_manager&filter=prefilter-caddie']",
- title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "left",
- element: "#checkActions",
- title: "{/literal}{'first_contact_title11'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp11'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "top",
- element: "#action",
- title: "{/literal}{'first_contact_title12'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp12'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "bottom",
- element: "#tabsheet .normal_tab",
- title: "{/literal}{'first_contact_title13'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp13'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "top",
- element: "#TAT_FC_14",
- reflex:true,
- title: "{/literal}{'first_contact_title14'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp14'|@translate|@escape:'javascript'}{literal}",
- onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
- },
- {//15
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "bottom",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title15'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp15'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_16",
- title: "{/literal}{'first_contact_title16'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp16'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_17",
- title: "{/literal}{'first_contact_title17'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp17'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- title: "{/literal}{'first_contact_title18'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp18'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- title: "{/literal}{'first_contact_title19'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate|@escape:'javascript'}{else}{'first_contact_stp19_b'|@translate|@escape:'javascript'}{/if}{literal}",
- onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-
- },
- {//20
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "top",
- element: "#categoryOrdering",
- title: "{/literal}{'first_contact_title20'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp20'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "left",
- element: "#tabsheet:first-child",
- title: "{/literal}{'first_contact_title21'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp21'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+(|-properties)$/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "top",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title22'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp22'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+(|-properties)$/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_23",
- title: "{/literal}{'first_contact_title23'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp23'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+(|-properties)$/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "top",
- title: "{/literal}{'first_contact_title28'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp28'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp29'|@translate|@escape:'javascript'}{literal}"
- },
- {//30
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "right",
- element: "#gallery_title",
- title: "{/literal}{'first_contact_title30'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp30'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "right",
- element: "#page_banner",
- title: "{/literal}{'first_contact_title31'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp31'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- reflex: true,
- placement: "top",
- element: ".formButtons input",
- title: "{/literal}{'first_contact_title32'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp32'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "bottom",
- element: "li.normal_tab:nth-child(6) > a:nth-child(1)",
- title: "{/literal}{'first_contact_title33'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
- prev:30
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title34'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp34'|@translate|@escape:'javascript'}{literal}"
- },
- {//35
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "top",
- element: "#TAT_FC_35",
- title: "{/literal}{'first_contact_title35'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp35'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "right",
- element: ".tabsheet",
- title: "{/literal}{'first_contact_title37'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp37'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "left",
- element: "",
- title: "{/literal}{'first_contact_title38'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp38'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "left",
- element: "#content",
- title: "{/literal}{'first_contact_title39'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp39'|@translate|@escape:'javascript'}{literal}"
- },
- {//40
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "bottom",
- element: "#TakeATour",
- title: "{/literal}{'first_contact_title40'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp40'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "right",
- element: ".tabsheet",
- title: "{/literal}{'first_contact_title41'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp41'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}"
- }
-]);
-
-// Initialize the tour
-tour.init();
-
-// Start the tour
-tour.start();
-
-jQuery( "#menubar > dl:nth-child(3) > dd > ul > li:nth-child(1) > a" ).click(function() {
- if (tour.getCurrentStep()==17)
- {
- tour.goTo(18);
- }
-});
-jQuery( "p.albumActions > a:nth-child(1)" ).click(function() {
- if (tour.getCurrentStep()==20)
- {
- tour.goTo(21);
- }
-});
-
-
-{/literal}{/footer_script}
diff --git a/plugins/TakeATour/tours/first_contact/tour.tpl.bak b/plugins/TakeATour/tours/first_contact/tour.tpl.bak
deleted file mode 100644
index 6576d0037..000000000
--- a/plugins/TakeATour/tours/first_contact/tour.tpl.bak
+++ /dev/null
@@ -1,347 +0,0 @@
-{footer_script require='jquery.bootstrap-tour'}{literal}
-
-var tour = new Tour({
- name: "first_contact",
- orphan: true,
- onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=first_contact"},
- 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>",
-});
-{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
-
-tour.addSteps([
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'first_contact_title1'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp1'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- placement: "right",
- element: "a[href='./admin.php?page=photos_add']",
- reflex:true,
- title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp2'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "bottom",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title3'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp3'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "right",
- element: "#albumSelection",
- title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp4'|@translate|@escape:'javascript'}{literal}"
- },
- {//5
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: ".plupload_add",
- title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: ".plupload_start",
- title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#afterUploadActions",
- title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}",
- prev:4
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#batchLink",
- reflex:true,
- title: "{/literal}{'first_contact_title8'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp8'|@translate|@escape:'javascript'}{literal}",
- prev:4
- },
- {
- path: /admin\.php\?page=(photos_add|batch_manager&filter=prefilter-last_import|prefilter-caddie)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title9'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp9'|@translate|@escape:'javascript'}{literal}"
- },
- {//10
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "right",
- element: ".icon-flag",
- title: "{/literal}{'first_contact_title10'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp10'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "left",
- element: "#checkActions",
- title: "{/literal}{'first_contact_title11'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp11'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "top",
- element: "#action",
- title: "{/literal}{'first_contact_title12'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp12'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "bottom",
- element: "#tabsheet .normal_tab",
- title: "{/literal}{'first_contact_title13'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp13'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=batch_manager&filter=(prefilter-caddie|prefilter-last_import)/,
- redirect:function (tour) {window.location = "admin.php?page=batch_manager&filter=prefilter-last_import";},
- placement: "top",
- element: "#TAT_FC_14",
- reflex:true,
- title: "{/literal}{'first_contact_title14'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp14'|@translate|@escape:'javascript'}{literal}",
- onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
- },
- {//15
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "bottom",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title15'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp15'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_16",
- title: "{/literal}{'first_contact_title16'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp16'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_17",
- title: "{/literal}{'first_contact_title17'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp17'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=photo-/,
- redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
- placement: "top",
- title: "{/literal}{'first_contact_title18'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp18'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "left",
- element: "#content",
- title: "{/literal}{'first_contact_title19'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate|@escape:'javascript'}{else}{'first_contact_stp19_b'|@translate|@escape:'javascript'}{/if}{literal}",
- onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
-
- },
- {//20
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "top",
- element: "#categoryOrdering",
- title: "{/literal}{'first_contact_title20'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp20'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "left",
- element: "#tabsheet:first-child",
- title: "{/literal}{'first_contact_title21'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp21'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "top",
- element: ".selected_tab",
- title: "{/literal}{'first_contact_title22'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp22'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "top",
- element: "#TAT_FC_23",
- title: "{/literal}{'first_contact_title23'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp23'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "bottom",
- element: ".tabsheet",
- title: "{/literal}{'first_contact_title24'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp24'|@translate|@escape:'javascript'}{literal}"
- },
- {//25
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "left",
- element: "#content",
- title: "{/literal}{'first_contact_title25'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp25'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "top",
- element: "#selectStatus",
- title: "{/literal}{'first_contact_title26'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp26'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "top",
- element: "#selectStatus",
- title: "{/literal}{'first_contact_title27'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp27'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "top",
- title: "{/literal}{'first_contact_title28'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp28'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_title29'|@translate|@escape:'javascript'}{literal}"
- },
- {//30
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "right",
- element: "#gallery_title",
- title: "{/literal}{'first_contact_title30'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp30'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "right",
- element: "#page_banner",
- title: "{/literal}{'first_contact_title31'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp31'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- reflex: true,
- placement: "top",
- element: ".formButtons input",
- title: "{/literal}{'first_contact_title32'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp32'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
- placement: "top",
- title: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp33'|@translate|@escape:'javascript'}{literal}",
- prev:30
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title34'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp34'|@translate|@escape:'javascript'}{literal}"
- },
- {//35
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "top",
- element: "#TAT_FC_35",
- title: "{/literal}{'first_contact_title35'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp35'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title36'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp36'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=themes",
- placement: "right",
- element: ".tabsheet",
- title: "{/literal}{'first_contact_title37'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp37'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "left",
- element: "",
- title: "{/literal}{'first_contact_title38'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp38'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "left",
- element: "#content",
- title: "{/literal}{'first_contact_title39'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp39'|@translate|@escape:'javascript'}{literal}"
- },
- {//40
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "bottom",
- element: "#TakeATour",
- title: "{/literal}{'first_contact_title40'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp40'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
- placement: "right",
- element: ".tabsheet",
- title: "{/literal}{'first_contact_title41'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp41'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
- title: "{/literal}{'first_contact_title42'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp42'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
- placement: "top",
- element: "",
- title: "{/literal}{'first_contact_title43'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'first_contact_stp43'|@translate|@escape:'javascript'}{literal}"
- }
-]);
-
-// Initialize the tour
-tour.init();
-
-// Start the tour
-tour.start();
-
-jQuery( ".plupload_start" ).click(function() {
- if (tour.getCurrentStep()==5)
- {
- tour.goTo(6);
- }
-});
-{/literal}{/footer_script} \ No newline at end of file
diff --git a/plugins/TakeATour/tours/privacy/config.inc.php b/plugins/TakeATour/tours/privacy/config.inc.php
deleted file mode 100644
index 446e94f3f..000000000
--- a/plugins/TakeATour/tours/privacy/config.inc.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**********************************
- * REQUIRED PATH TO THE TPL FILE */
-
-$TOUR_PATH = PHPWG_PLUGINS_PATH.'TakeATour/tours/privacy/tour.tpl';
-
-/*********************************/
-
-
-
-/**********************
- * Preparse part *
- **********************/
- //picture id
- if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['image_id'] = $matches[1];
- }
- check_input_parameter('image_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['image_id']) and pwg_get_session_var('TAT_image_id')==null)
- {
- $template->assign('TAT_image_id', $_GET['image_id']);
- pwg_set_session_var('TAT_image_id', $_GET['image_id']);
- }
- elseif (is_numeric(pwg_get_session_var('TAT_image_id')))
- {
- $template->assign('TAT_image_id', pwg_get_session_var('TAT_image_id'));
- }
- else
- {
- $query = '
- SELECT id
- FROM '.IMAGES_TABLE.'
- ORDER BY RAND()
- LIMIT 1
- ;';
- $row = pwg_db_fetch_assoc(pwg_query($query));
- $template->assign('TAT_image_id', $row['id']);
- }
- //album id
- if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches))
- {
- $_GET['cat_id'] = $matches[1];
- }
- check_input_parameter('cat_id', $_GET, false, PATTERN_ID);
- if (isset($_GET['cat_id']) and pwg_get_session_var('TAT_cat_id')==null)
- {
- $template->assign('TAT_cat_id', $_GET['cat_id']);
- pwg_set_session_var('TAT_cat_id', $_GET['cat_id']);
- }
- elseif (is_numeric(pwg_get_session_var('TAT_cat_id')))
- {
- $template->assign('TAT_cat_id', pwg_get_session_var('TAT_cat_id'));
- }
- else
- {
- $query = '
- SELECT id
- FROM '.CATEGORIES_TABLE.'
- ORDER BY RAND()
- LIMIT 1
- ;';
- $row = pwg_db_fetch_assoc(pwg_query($query));
- $template->assign('TAT_cat_id', $row['id']);
- }
- global $conf;
- if ( isset($conf['enable_synchronization']) )
- {
- $template->assign('TAT_FTP', $conf['enable_synchronization']);
- }
-?> \ No newline at end of file
diff --git a/plugins/TakeATour/tours/privacy/tour.tpl b/plugins/TakeATour/tours/privacy/tour.tpl
deleted file mode 100644
index 4a1db98c3..000000000
--- a/plugins/TakeATour/tours/privacy/tour.tpl
+++ /dev/null
@@ -1,195 +0,0 @@
-{footer_script require='jquery.bootstrap-tour'}{literal}
-
-var tour = new Tour({
- name: "privacy",
- orphan: true,
- onEnd: function (tour) {window.location = "{/literal}{$ABS_U_ADMIN}{literal}admin.php?page=plugin-TakeATour&tour_ended=privacy"},
- 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>",
-});
-{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
-
-tour.addSteps([
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'privacy_title1'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp1'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- placement: "bottom",
- element: ".icon-help-circled",
- title: "{/literal}{'privacy_title2'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp2'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=help&section=permissions",
- placement: "top",
- element: "#helpContent",
- title: "{/literal}{'privacy_title3'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp3'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=help&section=permissions",
- title: "{/literal}{'privacy_title4'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp4'|@translate|@escape:'javascript'}{literal}"
- },
- {//5
- path: "{/literal}{$TAT_path}{literal}admin.php?page=help&section=groups",
- placement: "top",
- element: "#helpContent>p:first",
- title: "{/literal}{'privacy_title5'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp5'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add",
- placement: "top",
- element: "#showPermissions",
- title: "{/literal}{'privacy_title6'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp6'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager&filter=prefilter-last_import",
- placement: "top",
- element: "",
- title: "{/literal}{'privacy_title7'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp7'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager&filter=prefilter-last_import",
- placement: "top",
- element: ".thumbnails",
- title: "{/literal}{'privacy_title8'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp8'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager&filter=prefilter-last_import",
- placement: "top",
- element: "#action",
- title: "{/literal}{'privacy_title9'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp9'|@translate|@escape:'javascript'}{literal}"
- },
- {//10
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_list",
- placement: "top",
- title: "{/literal}{'privacy_title10'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp10'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}";},
- placement: "bottom",
- element: "#tabsheet > ul > li:nth-child(3) > a",
- reflex:true,
- title: "{/literal}{'privacy_title11'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp11'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "top",
- element: "#categoryPermissions",
- title: "{/literal}{'privacy_title12'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp12'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "bottom",
- element: "input[value='private']",
- reflex:true,
- title: "{/literal}{'privacy_title13'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp13'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- placement: "top",
- element: "#privateOptions",
- title: "{/literal}{'privacy_title14'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp14'|@translate|@escape:'javascript'}{literal}",
- },
- {
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- title: "{/literal}{'privacy_title14b'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp14b'|@translate|@escape:'javascript'}{literal}",
- },
- {//15
- path: /admin\.php\?page=album-[0-9]+-permissions/,
- redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
- element: "a[href='./admin.php?page=cat_options']",
- reflex:true,
- title: "{/literal}{'privacy_title15'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp15'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=cat_options",
- placement: "top",
- element: ".doubleSelect",
- title: "{/literal}{'privacy_title16'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp16'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=group_list",
- title: "{/literal}{'privacy_title17'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp17'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=group_list",
- placement: "right",
- element: "a[href='./admin.php?page=user_list']",
- title: "{/literal}{'privacy_title18'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp18'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=user_list",
- placement: "top",
- element: "#userList",
- title: "{/literal}{'privacy_title19'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp19'|@translate|@escape:'javascript'}{literal}",
-
- },
- {//20
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'privacy_title20'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp20'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'privacy_title21'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp21'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'privacy_title22'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp22'|@translate|@escape:'javascript'}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'privacy_title24'|@translate|@escape:'javascript'}{literal}",
- content: "{/literal}{'privacy_stp24'|@translate|@escape:'javascript'}{literal}"
- }
-]);
-
-// Initialize the tour
-tour.init();
-
-// Start the tour
-tour.start();
-
-jQuery( "p.albumActions a" ).click(function() {
- if (tour.getCurrentStep()==9)
- {
- tour.goTo(10);
- }
-});
-
-{/literal}{/footer_script}
-{html_style}
-#step-21 {
- max-width:476px;
-}
-#step-22 {
- max-width:376px;
-}
-{/html_style} \ No newline at end of file
diff --git a/plugins/TakeATour/tours/scaling/scaling.tpl b/plugins/TakeATour/tours/scaling/scaling.tpl
deleted file mode 100644
index b658e13df..000000000
--- a/plugins/TakeATour/tours/scaling/scaling.tpl
+++ /dev/null
@@ -1,89 +0,0 @@
-{footer_script require='jquery.bootstrap-tour'}{literal}
-// Instance the tour
-var tour = new Tour({
- name: "scaling",
- orphan: true,
- onEnd: function (tour) {window.location = "admin.php?page=plugin-TakeATour&tour_ended=scaling";},
-});
-{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
-// Add your steps. Not too many, you don't really want to get your users sleepy
-tour.addSteps([
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'Welcome on the /'Scaling/' Tour'|@translate}{literal}",
- content: "{/literal}{'This tour will show you how to configure your Piwigo according to your server resources. This tour is for beginners and for advanced user, so you can skip technical steps if you want.'|@translate}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'Servers'|@translate}{literal}",
- content: "{/literal}{'On free hosting and shared hosting, multiple websites are on the same physical server, so resources are shared. So your hosting provider may restrictions for CPU and memory consumptions.<br>For dedicated servers, you will be able to adjust the resource consumption of your Piwigo.'|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpSIZE",
- content: "{/literal}{'The main resource consumption is the generation of resized pictures. To lower that, you can disable some size. Size are for plugins and themes to display the best size according to the user screen, and for the users who can prefer lower resolution photos (bandwidth etc)'|@translate}{literal}"
- }
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.php?page=batch_manager",
- title: "{/literal}{'Resized picture generation'|@translate}{literal}",
- content: "{/literal}{'Piwigo generates on the demand and on the fly the resized pictures: so the first user browsing the gallery after an upload will trigger the generation of the thumbnails, for instance. At that moment the server ressources might be too hight for some hosting. Then those pictures generated are stored, so no further picture generation will be done again.<br>After a big upload, you might prefer to trigger the generation of those resized pictures yourself: instead of having a small long term resource consumption; the server will have a short peak of computation. According to your hosting, it might be better to generate once, quickly. Choose the /"Generate/" action in the Batch Manager to do so.<br>For advanced users, and if you have a FTP access, you can upload resized pictures
-generated on your computer in the _data/i folder: be careful when naming the files.'|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.php",
- title: "{/literal}{'Graphic library'|@translate}{literal}",
- content: "{/literal}{''|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpHISTORY",
- title: "{/literal}{'History'|@translate}{literal}",
- content: "{/literal}{'Some hosting has a limitation for how much data can be stored in the database. The history data can become huge if you record guest visits and don/'t purge the history. So you can disable it or disable for guests, but check before the available plugins!<br>So if you get an error about a "piwigo_history" "table", it/'s probably about a needed purge of the history.'|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpPLUGINS",
- title: "{/literal}{'Local Configuration'|@translate}{literal}",
- content: "{/literal}{'Please enable the Local Files Editor for the next step.'|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
- title: "{/literal}{'Local Configuration'|@translate}{literal}",
- content: "{/literal}{'Piwigo has a Local Configuration, which is in fact a list of variables not present in the Graphic Interface. The Default Configuration file has every variables available in it, the default values for them and an explicative text for each of them.<br>To set your own values, use that page which is a text editor for Local Configuration file: the values in the local config override the default config.<br>The workflow is quite simple...|@translate}{literal}"
- },
-
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
- placement: "left",
- element: "LIEN",
- title: "{/literal}{'Servers'|@translate}{literal}",
- content: "{/literal}{'Browse the default config, and when you have found some interesting variable, copy/paste here and change the value.'|@translate}{literal}"
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
- title: "{/literal}{'Local Configuration'|@translate}{literal}",
- content: "{/literal}{'Some variable you could change for scaling up or down your Piwigo:<ul><li>$conf['template_compile_check'] : This tells Smarty whether to check for recompiling or not. Recompiling does not need to happen unless a template is changed. false results in better performance.</li><li>$conf['compiled_template_cache_language'] : if true, some language strings are replaced during template compilation (instead of template output). This results in better performance. However any change in the language file will not be propagated until you purge the compiled templates from the admin / maintenance menu</li><li>$conf['template_combine_files'] : if true -defaukt value-, it activates merging of javascript / css files in order to reduce a lot the loading of the server due to multiple requests.</li><li>$conf['max_requests'] : maximum Ajax requests at once, for thumbnails on-the-fly generation. Increase that number (3 by default) if your server can handle the resource consumption due to the generation of the thumbnails, and if you want a better user experience.</li></ul>'|@translate}{literal}",
- },
- {
- path: "{/literal}{$TAT_path}{literal}admin.phpLFE",
- title: "{/literal}{'Finished'|@translate}{literal}",
- content: "{/literal}{'There are other variables you might tune, some features you could disable (ratings, comments etc), custom theme you could do to remove some information but the thing is Piwigo is already flexible and powerful. The only critical point which might be raised, is the generation of resized pictures: go back in this tour to remember what I told you.<br>Now you can end this tour, and I hope to see you soon.'|@translate}{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