aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/tours
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2014-07-05 15:22:55 +0000
committerflop25 <flop25@piwigo.org>2014-07-05 15:22:55 +0000
commitf140339c7dcac4c4670421b5619b80a84eac131e (patch)
treeed83a7de8eee2414fa61b63a38adf262903c1a5c /plugins/TakeATour/tours
parent0e562071c44ec55f72988bab48be9e9ddb35d1b0 (diff)
[take a tour]
empty language value with a space tour 2.7 : search page, select js tour privacy : wip git-svn-id: http://piwigo.org/svn/trunk@28951 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/TakeATour/tours/2_7_0/config_preparse.inc.php28
-rw-r--r--plugins/TakeATour/tours/2_7_0/tour.tpl13
-rw-r--r--plugins/TakeATour/tours/privacy/Text-1.txt88
-rw-r--r--plugins/TakeATour/tours/privacy/config.inc.php71
-rw-r--r--plugins/TakeATour/tours/privacy/config_preparse.inc.php59
-rw-r--r--plugins/TakeATour/tours/privacy/tour.tpl361
6 files changed, 617 insertions, 3 deletions
diff --git a/plugins/TakeATour/tours/2_7_0/config_preparse.inc.php b/plugins/TakeATour/tours/2_7_0/config_preparse.inc.php
index 7a0afce0b..87aa6227b 100644
--- a/plugins/TakeATour/tours/2_7_0/config_preparse.inc.php
+++ b/plugins/TakeATour/tours/2_7_0/config_preparse.inc.php
@@ -1,3 +1,31 @@
<?php
$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
index b9b5631e0..e62390f57 100644
--- a/plugins/TakeATour/tours/2_7_0/tour.tpl
+++ b/plugins/TakeATour/tours/2_7_0/tour.tpl
@@ -29,16 +29,23 @@ tour.addSteps([
content: "{/literal}{'2_7_0_stp3'|@translate|@escape:'javascript'}{literal}",
},
{
- path: "{/literal}{$TAT_path}{literal}admin.php?page=plugin-TakeATour",
+ 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=plugin-TakeATour",
+ 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=plugin-TakeATour",
+ 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}"
},
diff --git a/plugins/TakeATour/tours/privacy/Text-1.txt b/plugins/TakeATour/tours/privacy/Text-1.txt
new file mode 100644
index 000000000..e71dc91db
--- /dev/null
+++ b/plugins/TakeATour/tours/privacy/Text-1.txt
@@ -0,0 +1,88 @@
+$lang['privacy_descrp'] = 'This tour present you all the ways to protect your photo from the permission systems per album and per picture, and the image protection from copying';
+$lang['privacy_title1'] = 'Welcome in your Piwigo gallery';
+$lang['privacy_stp1'] = 'Hello! I will be your guide to discover Piwigo. Please follow my instructions, and click Next (or use the arrows of your keyboard) to navigate. If you go to an other page of the administration, you will be redirected to the current page of the Tour. If you are stuck and can\'t end the tour, going to <em>Plugins » Take A Tour</em> will end the tour.<br>Let\'s start by adding pictures!';
+$lang['privacy_title2'] = '';
+$lang['privacy_stp2'] = 'The link is here. Click Next to continue';
+$lang['privacy_title3'] = 'Add Photo Page';
+$lang['privacy_stp3'] = 'This first tab is where you add photos directly from your browser. The other tabs are about the other ways to upload photos';
+$lang['privacy_title4'] = 'Lets add photo!';
+$lang['privacy_stp4'] = 'First choose an album; create one if there is no album yet.';
+$lang['privacy_title5'] = '';
+$lang['privacy_stp5'] = 'Then click the button to select photos to send from your computer';
+$lang['privacy_title6'] = '';
+$lang['privacy_stp6'] = 'You see that photos are being listed. Add at least 2 pictures and when you\'re ready click the button Start Upload';
+$lang['privacy_title7'] = '';
+$lang['privacy_stp7'] = 'Here a summary of your uploaded pictures. See that Piwigo has generated itself the thumbnails. You can know add more photos with the link at the bottom, edit the properties of a picture by clicking on it, or click to manage all the uploaded pictures in the Batch Manager...';
+$lang['privacy_title8'] = '';
+$lang['privacy_stp8'] = 'Let\'s edit them! Click on the link. If you don\'t see it click Prev to add at least 2 photos.';
+$lang['privacy_title9'] = 'The Batch Manager';
+$lang['privacy_stp9'] = 'You are know in the Batch Manager, where you can batch edit multiple pictures. Here the Caddy is set as a filter because we comes from the upload result page.';
+$lang['privacy_title10'] = '';
+$lang['privacy_stp10'] = 'Here is the link to directly access to your caddy: that/s a tool for administrators to easily add pictures to a set in order to edit them in the Batch Manager. You can add photos to the caddy from the public picture page when logged as an admin, or using the action \"Add to caddy\" on the Batch Manager';
+$lang['privacy_title11'] = 'How to edit a photos';
+$lang['privacy_stp11'] = 'So you can select from here one or more photos';
+$lang['privacy_title12'] = '';
+$lang['privacy_stp12'] = 'then edit them using and action. But for instance, you can\'t -for now- batch edit descriptions since they are mostly unique';
+$lang['privacy_title13'] = '';
+$lang['privacy_stp13'] = 'You can edit descriptions and more from the batch manager in unit mode. But for now, let\'s stay in the global mode';
+$lang['privacy_title14'] = '';
+$lang['privacy_stp14'] = 'We will see now the edition page of one picture. That page is reachable from here but also from the public picture page when logged as an administrator. Click on Edit or go next';
+$lang['privacy_title15'] = 'The edition page of a picture';
+$lang['privacy_stp15'] = 'On that page you can edit all the properties of a photo, for instance...';
+$lang['privacy_title16'] = '';
+$lang['privacy_stp16'] = 'here to add or remove the photo from albums. The link is virtual, no photos will be physically moved ever.';
+$lang['privacy_title17'] = '';
+$lang['privacy_stp17'] = 'and here to set the photo as a picture representative of an album. So you can set as a representative of a public album, a photo in a private album, which is ideal to set custom thumbnails for albums but the user won\'t see those pictures inside those albums. Like setting a portrait of someone as representative, for an album which contains photos of nature; it would be weird to see that photo of the man/woman among trees or animals.';
+$lang['privacy_title18'] = 'Manage albums';
+$lang['privacy_stp18'] = 'That previous example was just a small overview of tricks and how powerful Piwigo is. So I\'ve told about private albums, but how can we manage albums? Click On album->Manage or hit Next';
+$lang['privacy_title19'] = 'Manage Albums';
+$lang['privacy_stp19'] = 'Here are listed all the \'top\' albums, the ones at the root of your gallery. If you see an album with a dashed background, it\'s an real physical album from a FTP synchronisation, which can\'t be moved or deleted from here. The others albums are called virtual albums.';
+$lang['privacy_stp19_b'] = 'All the albums are called \'virtual albums\'. Here are listed all the \'top\' albums, the ones at the root of your gallery.';
+$lang['privacy_title20'] = 'Manage Albums';
+$lang['privacy_stp20'] = 'When your mouse is hover a album, links and information appear. When you drag and drop an album -a rounded block-, you will change its position and then you can save or cancel your manual order.';
+$lang['privacy_title21'] = 'Other Tabs';
+$lang['privacy_stp21'] = 'The next tab is a page where you can move any virtual album.<br>The permalink tab is to set a particular url for an album, for technical reasons like to set a specific template or for just sending cool customized links.<br>But let\'s edit an album: click on Edit of a album';
+$lang['privacy_title22'] = 'Album Edition Page';
+$lang['privacy_stp22'] = 'Like for a picture, here you can edit the properties of an album';
+$lang['privacy_title23'] = '';
+$lang['privacy_stp23'] = 'Locking a album means only administrators will be able to see that album: it\'s usually used when an admin is managing the properties of an album or don\'t want to publish the album immediately';
+$lang['privacy_title24'] = '';
+$lang['privacy_stp24'] = 'Certainly, one of the most important page is the permission page of a private album. Click on the permission tab or click next';
+$lang['privacy_title25'] = 'Album Permission';
+$lang['privacy_stp25'] = 'As you can read in the Help of your Piwigo -link at the top right-, album permissions are set by groups and users. You can directly set private/public multiple albums using the Administration » Albums » Properties page.';
+$lang['privacy_title26'] = '';
+$lang['privacy_stp26'] = 'Here you can set the current album as private, then grant access to users and groups. By default, permissions are not recursive for sub albums, but upper-albums will be granted with the same permission in order to let the granted users browse to the album.';
+$lang['privacy_title27'] = '';
+$lang['privacy_stp27'] = 'Important fact: the webmasters and administrators are not omniscient when browsing the public part, but they can access to every album and photos on the admin part.';
+$lang['privacy_title28'] = 'Configuration';
+$lang['privacy_stp28'] = 'Now we will look at the options available to set Piwigo working your way. Click on Configuration->Options or just hit Next.';
+$lang['privacy_title29'] = 'Configuration->Options->General';
+$lang['privacy_stp29'] = 'Here, on that first page, you will set the essential and basic configuration of your gallery.';
+$lang['privacy_title30'] = '';
+$lang['privacy_stp30'] = 'Let\'s start by changing the tittle';
+$lang['privacy_title31'] = '';
+$lang['privacy_stp31'] = 'Then the banner, which will be displayed on top of every pages. As you can see, HTML tags are allowed here. You can also use the %gallery_title% tag to display the tittle you just typed above.';
+$lang['privacy_title32'] = '';
+$lang['privacy_stp32'] = 'Now save you changes';
+$lang['privacy_title33'] = 'Guest settings';
+$lang['privacy_stp33'] = 'Just a final word about the options, the \'Guest settings\' page is to set the preferences of unregistered visitors. Each time Piwigo refers to \'guest\' that means unregistered visitors.<br>Let\'s continue about Configuration: click on Configuration->Themes or just hit Next.';
+$lang['privacy_title34'] = 'Themes';
+$lang['privacy_stp34'] = 'Themes are one of the three way to customize your Piwigo, with Plugins and Templates. Themes installed are listed here.<br>More than one theme can be enabled: users can change their theme by choosing one among the one enabled here, if the option \'Allow user customization\' is checked on the Option page.';
+$lang['privacy_title35'] = 'Themes';
+$lang['privacy_stp35'] = 'Themes can also be set as Default, which means that\'s the theme for unregistered visitors (guests, you remember?) and any new registered user will be have this theme. But for any previously registered users, the theme won\'t change until you do it from the User Management page or you disable their theme: be careful, you might disturb your users by changing their whole display.';
+$lang['privacy_title36'] = 'Themes';
+$lang['privacy_stp36'] = 'Themes have a system of dependency: that\'s why some theme can\'t be deleted (a parent theme can\'t be deleted if a child theme is enabled) or others can\'t be enabled (a child theme need its parent theme). For instance, when you put you\'re mouse over a Delete link, if the theme can\'t be deleted, a information bubble will explain you why.';
+$lang['privacy_title37'] = 'Themes';
+$lang['privacy_stp37'] = 'To install new themes, you can directly download them from the tab \'Add a theme\'. Only the themes marked as compatible with your version of Piwigo are showed.<br>Let\'s discover the plugins now! Click on Plugin->Manage';
+$lang['privacy_title38'] = 'Plugins';
+$lang['privacy_stp38'] = 'Plugins are very easy ways to customize your Piwigo. They can do almost anything you can imagine from small text addition to complete features, like the Community plugin which allows non administrators users to upload without entering to the administration part.';
+$lang['privacy_title39'] = 'Plugins';
+$lang['privacy_stp39'] = 'On that first page, are listed the installed plugins. At the top, are listed the plugins activated, which are currently running. At the bottom, the plugins which are installed in the /plugins folder, but disabled. Deleting a plugin means that any trace of the plugin will be removed (files, options etc). For most of the plugins, disabling will keep the data registered by the plugins.';
+$lang['privacy_title40'] = '';
+$lang['privacy_stp40'] = 'Here it\'s me! Don\'t disable me now, but you can see you can Disable or Restore an activated plugin.';
+$lang['privacy_title41'] = '';
+$lang['privacy_stp41'] = 'You can see on the last tab all the plugins available for your version of Piwigo. Hundred of plugins are there!';
+$lang['privacy_title42'] = 'Languages';
+$lang['privacy_stp42'] = 'Piwigo is multilingual. By default, the language displayed by Piwigo change according to the language of the browser of the visitor. If the language of the visitor is not available, the language set by default is used.';
+$lang['privacy_title43'] = 'It\'s been a great time';
+$lang['privacy_stp43'] = 'This tour was quite long, but we only have seen a small part of how powerful Piwigo is. Everything has a end, this overview is finished.<br>You can discover much deeper the features of Piwigo by taking an other tour or reading our documentation, on the piwigo.org website.';
diff --git a/plugins/TakeATour/tours/privacy/config.inc.php b/plugins/TakeATour/tours/privacy/config.inc.php
new file mode 100644
index 000000000..74bad9eda
--- /dev/null
+++ b/plugins/TakeATour/tours/privacy/config.inc.php
@@ -0,0 +1,71 @@
+<?php
+if ( defined('IN_ADMIN') and IN_ADMIN )
+{
+/* first contact */
+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_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);
+}
+
+?> \ No newline at end of file
diff --git a/plugins/TakeATour/tours/privacy/config_preparse.inc.php b/plugins/TakeATour/tours/privacy/config_preparse.inc.php
new file mode 100644
index 000000000..711dfe349
--- /dev/null
+++ b/plugins/TakeATour/tours/privacy/config_preparse.inc.php
@@ -0,0 +1,59 @@
+<?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']);
+ }
+ //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
new file mode 100644
index 000000000..1a4c03b7f
--- /dev/null
+++ b/plugins/TakeATour/tours/privacy/tour.tpl
@@ -0,0 +1,361 @@
+{footer_script require='jquery.bootstrap-tour'}{literal}
+
+var tour = new Tour({
+ name: "privacy",
+ orphan: true,
+ onEnd: function (tour) {window.location = "admin.php?tour_ended=privacy";},
+ template: "<div class='popover tour'>
+ <div class='arrow'></div>
+ <h3 class='popover-title'></h3>
+ <div class='popover-content'></div>
+ <div class='popover-navigation'>
+ <button class='btn btn-default' data-role='prev'>« {/literal}{'Prev'|@translate|@escape:'javascript'}{literal}</button>
+ <span data-role='separator'>|</span>
+ <button class='btn btn-default' data-role='next'>{/literal}{'Next '|@translate|@escape:'javascript'}{literal} »</button>
+ </div>
+ <button class='btn btn-default' data-role='end'>{/literal}{'End tour'|@translate|@escape:'javascript'}{literal}</button>
+ </nav>
+</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",
+ placement: "right",
+ element: ".icon-plus-circled",
+ 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: "left",
+ 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: "#uploadify",
+ title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: /admin\.php\?page=photos_add/,
+ redirect:function (tour) {window.location = "admin.php?page=photos_add";},
+ placement: "left",
+ element: "#fileQueue",
+ title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}"
+ },
+ {
+ path: /admin\.php\?page=photos_add/,
+ redirect:function (tour) {window.location = "admin.php?page=photos_add";},
+ placement: "top",
+ element: "#photosAddContent legend",
+ title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}",
+ content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}",
+ prev:4
+ },
+ {
+ path: /admin\.php\?page=photos_add/,
+ redirect:function (tour) {window.location = "admin.php?page=photos_add";},
+ placement: "bottom",
+ 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_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: "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( "input[class='submit']" ).click(function() {
+ if (tour.getCurrentStep()==5)
+ {
+ tour.goTo(6);
+ }
+});
+{/literal}{/footer_script} \ No newline at end of file