Ignore:
Timestamp:
Apr 6, 2014, 3:51:22 PM (10 years ago)
Author:
flop25
Message:

every steps move to lang file
script debugged/enhanced

Location:
extensions/TakeATour/tours
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/TakeATour/tours/first_contact/tour.tpl

    r28059 r28097  
    11{footer_script require='jquery.bootstrap-tour'}{literal}
    2 // Instance the tour
     2
    33var tour = new Tour({
    44  name: "first_contact",
     
    77});
    88{/literal}{if $TAT_restart}tour.restart();{/if}{literal}
    9 // Add your steps. Not too many, you don't really want to get your users sleepy
     9
    1010tour.addSteps([
    1111  {
    1212    path: "{/literal}{$TAT_path}{literal}admin.php",
    13     title: "{/literal}{'Welcome in your Piwigo gallery'|@translate}{literal}",
    14     content: "{/literal}{'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 in an other page of the administration, you will be redirected to the current page of the Tour.<br>Let\'s start by adding pictures!'|@translate}{literal}"
     13    title: "{/literal}{'first_contact_title1'|@translate}{literal}",
     14    content: "{/literal}{'first_contact_stp1'|@translate}{literal}"
    1515  },
    1616  {
     
    1919    element: ".icon-plus-circled",
    2020    reflex:true,
    21     content: "{/literal}{'The link is here. Click Next to continue'|@translate}{literal}",
     21    title: "{/literal}{'first_contact_title2'|@translate}{literal}",
     22    content: "{/literal}{'first_contact_stp2'|@translate}{literal}",
    2223  },
    2324  {
     
    2526    placement: "bottom",
    2627    element: ".selected_tab",
    27     title: "{/literal}{'Add Photo Page'|@translate}{literal}",
    28     content: "{/literal}{'First tab to add photos from your browser, other tabs to add from a software, mobile or FTP'|@translate}{literal}",
     28    title: "{/literal}{'first_contact_title3'|@translate}{literal}",
     29    content: "{/literal}{'first_contact_stp3'|@translate}{literal}",
    2930  },
    3031  {
     
    3233    placement: "left",
    3334    element: "#albumSelection",
    34     title: "{/literal}{'Lets add photo!'|@translate}{literal}",
    35     content: "{/literal}{'First choose an album; create one if there is no album yet.'|@translate}{literal}"
     35    title: "{/literal}{'first_contact_title4'|@translate}{literal}",
     36    content: "{/literal}{'first_contact_stp4'|@translate}{literal}"
    3637  },
    3738  {//5
     
    3940    placement: "top",
    4041    element: "#uploadify",
    41     content: "{/literal}{'Then click the button to select photos to send from your computer'|@translate}{literal}"
     42    title: "{/literal}{'first_contact_title5'|@translate}{literal}",
     43    content: "{/literal}{'first_contact_stp5'|@translate}{literal}"
    4244  },
    4345  {
    4446    path: /admin\.php\?page=photos_add/,
    45     redirect:function (tour) {tour.goTo(4);},
     47    redirect:function (tour) {window.location = "admin.php?page=photos_add";},
    4648    placement: "left",
    4749    element: "#fileQueue",
    48     title: "{/literal}{''|@translate}{literal}",
    49     content: "{/literal}{'You see that photos are being listed. Add at least 2 pictures and when you\'re ready click the button Start Upload'|@translate}{literal}"
     50    title: "{/literal}{'first_contact_title6'|@translate}{literal}",
     51    content: "{/literal}{'first_contact_stp6'|@translate}{literal}"
    5052  },
    5153  {
    5254    path: /admin\.php\?page=photos_add/,
    53     redirect:function (tour) {tour.goTo(4);},
     55    redirect:function (tour) {window.location = "admin.php?page=photos_add";},
    5456    placement: "top",
    5557    element: "#photosAddContent legend",
    56     content: "{/literal}{'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 cliking on it, or click to manage all the uploaded pictures in the Batch Manager...'|@translate}{literal}",
    57     onPrev:function (tour) {tour.goTo(4);}
     58    title: "{/literal}{'first_contact_title7'|@translate}{literal}",
     59    content: "{/literal}{'first_contact_stp7'|@translate}{literal}",
     60    prev:4
    5861  },
    5962  {
    6063    path: /admin\.php\?page=photos_add/,
    61     redirect:function (tour) {tour.goTo(4);},
     64    redirect:function (tour) {window.location = "admin.php?page=photos_add";},
    6265    placement: "bottom",
    6366    element: "#batchLink",
    6467    reflex:true,
    65     content: "{/literal}{'Let\'s edit them! Click on the link. If you don\'t see it click Prev to add at least 2 photos.'|@translate}{literal}",
    66     onPrev:function (tour) {tour.goTo(4);}
     68    title: "{/literal}{'first_contact_title8'|@translate}{literal}",
     69    content: "{/literal}{'first_contact_stp8'|@translate}{literal}",
     70    prev:4
    6771  },
    6872  {
     
    7175    placement: "top",
    7276    element: "",
    73     title: "{/literal}{'The Batch Manager'|@translate}{literal}",
    74     content: "{/literal}{'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.'|@translate}{literal}"
     77    title: "{/literal}{'first_contact_title9'|@translate}{literal}",
     78    content: "{/literal}{'first_contact_stp9'|@translate}{literal}"
    7579  },
    7680  {//10
     
    7983    placement: "right",
    8084    element: ".icon-flag",
    81     content: "{/literal}{'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'|@translate}{literal}"
     85    title: "{/literal}{'first_contact_title10'|@translate}{literal}",
     86    content: "{/literal}{'first_contact_stp10'|@translate}{literal}"
    8287  },
    8388  {
     
    8691    placement: "left",
    8792    element: "#checkActions",
    88     title: "{/literal}{'How to edit a photos'|@translate}{literal}",
    89     content: "{/literal}{'So you can select from here one or more photos'|@translate}{literal}"
     93    title: "{/literal}{'first_contact_title11'|@translate}{literal}",
     94    content: "{/literal}{'first_contact_stp11'|@translate}{literal}"
    9095  },
    9196  {
     
    9499    placement: "top",
    95100    element: "#action",
    96     content: "{/literal}{'then edit them using and action. But for instance, you can\'t -for now- batch edit descriptions since they are mostly unique'|@translate}{literal}"
     101    title: "{/literal}{'first_contact_title12'|@translate}{literal}",
     102    content: "{/literal}{'first_contact_stp12'|@translate}{literal}"
    97103  },
    98104  {
     
    101107    placement: "bottom",
    102108    element: "#tabsheet .normal_tab",
    103     content: "{/literal}{'You can edit descriptions and more from the batch manager in unit mode. But for now, let\'s stay in the global mode'|@translate}{literal}"
     109    title: "{/literal}{'first_contact_title13'|@translate}{literal}",
     110    content: "{/literal}{'first_contact_stp13'|@translate}{literal}"
    104111  },
    105112  {
     
    109116    element: "#TAT_FC_14",
    110117    reflex:true,
    111     content: "{/literal}{'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'|@translate}{literal}",
     118    title: "{/literal}{'first_contact_title14'|@translate}{literal}",
     119    content: "{/literal}{'first_contact_stp14'|@translate}{literal}",
    112120    onNext:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}
    113121  },
     
    117125    placement: "bottom",
    118126    element: ".selected_tab",
    119     title: "{/literal}{'The edition page of a picture'|@translate}{literal}",
    120     content: "{/literal}{'On that page you can edit all the properties of a photo, for instance...'|@translate}{literal}"
     127    title: "{/literal}{'first_contact_title15'|@translate}{literal}",
     128    content: "{/literal}{'first_contact_stp15'|@translate}{literal}"
    121129  },
    122130  {
     
    125133    placement: "top",
    126134    element: "#TAT_FC_16",
    127     content: "{/literal}{'here to add or remove the photo from albums. The link is virtual, no photos will be physcally moved ever.'|@translate}{literal}"
     135    title: "{/literal}{'first_contact_title16'|@translate}{literal}",
     136    content: "{/literal}{'first_contact_stp16'|@translate}{literal}"
    128137  },
    129138  {
     
    132141    placement: "top",
    133142    element: "#TAT_FC_17",
    134     content: "{/literal}{'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.'|@translate}{literal}"
     143    title: "{/literal}{'first_contact_title17'|@translate}{literal}",
     144    content: "{/literal}{'first_contact_stp17'|@translate}{literal}"
    135145  },
    136146  {
     
    138148    redirect:function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
    139149    placement: "top",
    140     title: "{/literal}{'Manage albums'|@translate}{literal}",
    141     content: "{/literal}{'That previous example was just a small overview of tricks and how powerfull Piwigo is. So I\'ve told about private albums, but how can we manage albums? Click On album->Manage or hit Next'|@translate}{literal}"
     150    title: "{/literal}{'first_contact_title18'|@translate}{literal}",
     151    content: "{/literal}{'first_contact_stp18'|@translate}{literal}"
    142152  },
    143153  {
     
    145155    placement: "left",
    146156    element: "#content",
    147     title: "{/literal}{'Manage Albums'|@translate}{literal}",
    148     content: "{/literal}{'Here are listed all the \'top\' albums, the ones at the root of your gallery. If you see an album with a dashed backgroung, it\'s an real physical album from a FTP synchro, which can\'t be moved or deleted from here. The others albums are called virtual albums.'|@translate}{literal}",
     157    title: "{/literal}{'first_contact_title19'|@translate}{literal}",
     158    content: "{/literal}{'first_contact_stp19'|@translate}{literal}",
    149159    onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
    150160
     
    154164    placement: "top",
    155165    element: "#categoryOrdering",
    156     title: "{/literal}{'Manage Albums'|@translate}{literal}",
    157     content: "{/literal}{'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.'|@translate}{literal}"
     166    title: "{/literal}{'first_contact_title20'|@translate}{literal}",
     167    content: "{/literal}{'first_contact_stp20'|@translate}{literal}"
    158168  },
    159169  {
     
    161171    placement: "left",
    162172    element: "#tabsheet:first-child",
    163     title: "{/literal}{'Other Tabs'|@translate}{literal}",
    164     content: "{/literal}{'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 tecnhical 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'|@translate}{literal}"
     173    title: "{/literal}{'first_contact_title21'|@translate}{literal}",
     174    content: "{/literal}{'first_contact_stp21'|@translate}{literal}"
    165175  },
    166176  {
     
    169179    placement: "top",
    170180    element: ".selected_tab",
    171     title: "{/literal}{'Album Edition Page'|@translate}{literal}",
    172     content: "{/literal}{'Like for a picture, here you can edit the properties of an album'|@translate}{literal}"
     181    title: "{/literal}{'first_contact_title22'|@translate}{literal}",
     182    content: "{/literal}{'first_contact_stp22'|@translate}{literal}"
    173183  },
    174184  {
     
    177187    placement: "top",
    178188    element: "#TAT_FC_23",
    179     content: "{/literal}{'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 immediatly'|@translate}{literal}"
     189    title: "{/literal}{'first_contact_title23'|@translate}{literal}",
     190    content: "{/literal}{'first_contact_stp23'|@translate}{literal}"
    180191  },
    181192  {
     
    184195    placement: "bottom",
    185196    element: ".tabsheet",
    186     content: "{/literal}{'Certainly, one of the most important page in the permission page of an album. Click on the permission tab or click next'|@translate}{literal}"
     197    title: "{/literal}{'first_contact_title24'|@translate}{literal}",
     198    content: "{/literal}{'first_contact_stp24'|@translate}{literal}"
    187199  },
    188200  {//25
     
    191203    placement: "left",
    192204    element: "#content",
    193     title: "{/literal}{'Album Permission'|@translate}{literal}",
    194     content: "{/literal}{'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.'|@translate}{literal}"
     205    title: "{/literal}{'first_contact_title25'|@translate}{literal}",
     206    content: "{/literal}{'first_contact_stp25'|@translate}{literal}"
    195207  },
    196208  {
     
    199211    placement: "top",
    200212    element: "#selectStatus",
    201     content: "{/literal}{'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.'|@translate}{literal}"
     213    title: "{/literal}{'first_contact_title26'|@translate}{literal}",
     214    content: "{/literal}{'first_contact_stp26'|@translate}{literal}"
    202215  },
    203216  {
     
    206219    placement: "top",
    207220    element: "#selectStatus",
    208     content: "{/literal}{'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.'|@translate}{literal}"
     221    title: "{/literal}{'first_contact_title27'|@translate}{literal}",
     222    content: "{/literal}{'first_contact_stp27'|@translate}{literal}"
    209223  },
    210224  {
     
    212226    redirect:function (tour) {window.location = "admin.php?page=album-{/literal}{$TAT_cat_id}{literal}-permissions";},
    213227    placement: "top",
    214     title: "{/literal}{'Configuration'|@translate}{literal}",
    215     content: "{/literal}{'Now we will look at the options available to set Piwigo working your way. Click on Configuration->Options or just hit Next.'|@translate}{literal}"
    216   },
    217   {
    218     path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
    219     placement: "top",
    220     element: "",
    221     title: "{/literal}{'Configuration->Options->General'|@translate}{literal}",
    222     content: "{/literal}{'Here, on that first page, you will set the essential and basic configuration of your gallery.'|@translate}{literal}"
     228    title: "{/literal}{'first_contact_title28'|@translate}{literal}",
     229    content: "{/literal}{'first_contact_stp28'|@translate}{literal}"
     230  },
     231  {
     232    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
     233    placement: "top",
     234    element: "",
     235    title: "{/literal}{'first_contact_title29'|@translate}{literal}",
     236    content: "{/literal}{'first_contact_stp29'|@translate}{literal}"
    223237  },
    224238  {//30
     
    226240    placement: "right",
    227241    element: "#gallery_title",
    228     content: "{/literal}{'Let\'s start by changing the tittle'|@translate}{literal}"
     242    title: "{/literal}{'first_contact_title30'|@translate}{literal}",
     243    content: "{/literal}{'first_contact_stp30'|@translate}{literal}"
    229244  },
    230245  {
     
    232247    placement: "right",
    233248    element: "#page_banner",
    234     content: "{/literal}{'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.'|@translate}{literal}"
     249    title: "{/literal}{'first_contact_title31'|@translate}{literal}",
     250    content: "{/literal}{'first_contact_stp31'|@translate}{literal}"
    235251  },
    236252  {
     
    239255    placement: "top",
    240256    element: ".formButtons input",
    241     content: "{/literal}{'Now save you changes'|@translate}{literal}"
    242   },
    243   {
    244     path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
    245     placement: "top",
    246     title: "{/literal}{'Guest settings'|@translate}{literal}",
    247     content: "{/literal}{'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.'|@translate}{literal}",
    248     onPrev:function (tour) {tour.goTo(30);}
     257    title: "{/literal}{'first_contact_title32'|@translate}{literal}",
     258    content: "{/literal}{'first_contact_stp32'|@translate}{literal}"
     259  },
     260  {
     261    path: "{/literal}{$TAT_path}{literal}admin.php?page=configuration",
     262    placement: "top",
     263    title: "{/literal}{'first_contact_stp33'|@translate}{literal}",
     264    content: "{/literal}{'first_contact_stp33'|@translate}{literal}",
     265    prev:30
    249266  },
    250267  {
     
    252269    placement: "top",
    253270    element: "",
    254     title: "{/literal}{'Themes'|@translate}{literal}",
    255     content: "{/literal}{'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.'|@translate}{literal}"
     271    title: "{/literal}{'first_contact_title34'|@translate}{literal}",
     272    content: "{/literal}{'first_contact_stp34'|@translate}{literal}"
    256273  },
    257274  {//35
     
    259276    placement: "top",
    260277    element: "#TAT_FC_35",
    261     title: "{/literal}{'Themes'|@translate}{literal}",
    262     content: "{/literal}{'Themes can also be set as Default, which means that\'s the theme for unregistred visitors (guests, you remember?) and any new registred user will be have this theme. But for any previously registred users, the theme won\'t change until you do it from the User Management page or you disable their theme: be carefull, you might disturb your users by changing their whole display.'|@translate}{literal}"
     278    title: "{/literal}{'first_contact_title35'|@translate}{literal}",
     279    content: "{/literal}{'first_contact_stp35'|@translate}{literal}"
    263280  },
    264281  {
     
    266283    placement: "top",
    267284    element: "",
    268     title: "{/literal}{'Themes'|@translate}{literal}",
    269     content: "{/literal}{'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.'|@translate}{literal}"
     285    title: "{/literal}{'first_contact_title36'|@translate}{literal}",
     286    content: "{/literal}{'first_contact_stp36'|@translate}{literal}"
    270287  },
    271288  {
     
    273290    placement: "right",
    274291    element: ".tabsheet",
    275     title: "{/literal}{'Themes'|@translate}{literal}",
    276     content: "{/literal}{'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'|@translate}{literal}"
     292    title: "{/literal}{'first_contact_title37'|@translate}{literal}",
     293    content: "{/literal}{'first_contact_stp37'|@translate}{literal}"
    277294  },
    278295  {
     
    280297    placement: "left",
    281298    element: "",
    282     title: "{/literal}{'Plugins'|@translate}{literal}",
    283     content: "{/literal}{'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 admistrators users to upload without entering to the administration part.'|@translate}{literal}"
     299    title: "{/literal}{'first_contact_title38'|@translate}{literal}",
     300    content: "{/literal}{'first_contact_stp38'|@translate}{literal}"
    284301  },
    285302  {
     
    287304    placement: "left",
    288305    element: "#content",
    289     title: "{/literal}{'Plugins'|@translate}{literal}",
    290     content: "{/literal}{'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.'|@translate}{literal}"
    291   },
    292   {
     306    title: "{/literal}{'first_contact_title39'|@translate}{literal}",
     307    content: "{/literal}{'first_contact_stp39'|@translate}{literal}"
     308  },
     309  {//40
    293310    path: "{/literal}{$TAT_path}{literal}admin.php?page=plugins",
    294311    placement: "bottom",
    295312    element: "#TakeATour",
    296     content: "{/literal}{'Here it\'s me! Don\'t disable me now, but you can see you can Disable or Restore an activated plugin.'|@translate}{literal}"
     313    title: "{/literal}{'first_contact_title40'|@translate}{literal}",
     314    content: "{/literal}{'first_contact_stp40'|@translate}{literal}"
    297315  },
    298316  {
     
    300318    placement: "right",
    301319    element: ".tabsheet",
    302     content: "{/literal}{'You can see on the last tab all the plugins available for your version of Piwigo. Hundred of plugins are there!'|@translate}{literal}"
     320    title: "{/literal}{'first_contact_title41'|@translate}{literal}",
     321    content: "{/literal}{'first_contact_stp41'|@translate}{literal}"
    303322  },
    304323  {
    305324    path: "{/literal}{$TAT_path}{literal}admin.php?page=languages",
    306     title: "{/literal}{'Languages'|@translate}{literal}",
    307     content: "{/literal}{'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 availble, the language set by default is used.'|@translate}{literal}"
     325    title: "{/literal}{'first_contact_title42'|@translate}{literal}",
     326    content: "{/literal}{'first_contact_stp42'|@translate}{literal}"
    308327  },
    309328  {
     
    311330    placement: "top",
    312331    element: "",
    313     title: "{/literal}{'It\'s been a great time'|@translate}{literal}",
    314     content: "{/literal}{'This tour was quite long, but we only have seen a small part of how powerfull 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'|@translate}{literal}"
     332    title: "{/literal}{'first_contact_title43'|@translate}{literal}",
     333    content: "{/literal}{'first_contact_stp43'|@translate}{literal}"
    315334  }
    316335]);
Note: See TracChangeset for help on using the changeset viewer.