Changeset 28775


Ignore:
Timestamp:
06/23/14 22:08:45 (5 years ago)
Author:
flop25
Message:

adjustments for 2.7
js updated to 9.0.3

Location:
trunk/plugins/TakeATour
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TakeATour/js

    • Property svn:ignore set to
      900.js
      903.js
      custom-bootstrap-tour-standalone.js.bak
  • trunk/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js

    r28169 r28775  
    11/* =========================================================== 
    2 # bootstrap-tour - v0.9.0 
     2# bootstrap-tour - v0.9.3 
    33# http://bootstraptour.com 
    44# ============================================================== 
     
    1818*/ 
    1919/* ======================================================================== 
    20  * Bootstrap: tooltip.js v3.1.0 
     20 * Bootstrap: transition.js v3.1.1 
     21 * http://getbootstrap.com/javascript/#transitions 
     22 * ======================================================================== 
     23 * Copyright 2011-2014 Twitter, Inc. 
     24 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 
     25 * ======================================================================== */ 
     26 
     27 
     28+function ($) { 
     29  'use strict'; 
     30 
     31  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) 
     32  // ============================================================ 
     33 
     34  function transitionEnd() { 
     35    var el = document.createElement('bootstrap') 
     36 
     37    var transEndEventNames = { 
     38      'WebkitTransition' : 'webkitTransitionEnd', 
     39      'MozTransition'    : 'transitionend', 
     40      'OTransition'      : 'oTransitionEnd otransitionend', 
     41      'transition'       : 'transitionend' 
     42    } 
     43 
     44    for (var name in transEndEventNames) { 
     45      if (el.style[name] !== undefined) { 
     46        return { end: transEndEventNames[name] } 
     47      } 
     48    } 
     49 
     50    return false // explicit for ie8 (  ._.) 
     51  } 
     52 
     53  // http://blog.alexmaccaw.com/css-transitions 
     54  $.fn.emulateTransitionEnd = function (duration) { 
     55    var called = false, $el = this 
     56    $(this).one($.support.transition.end, function () { called = true }) 
     57    var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 
     58    setTimeout(callback, duration) 
     59    return this 
     60  } 
     61 
     62  $(function () { 
     63    $.support.transition = transitionEnd() 
     64  }) 
     65 
     66}(jQuery); 
     67 
     68/* ======================================================================== 
     69 * Bootstrap: tooltip.js v3.1.1 
    2170 * http://getbootstrap.com/javascript/#tooltip 
    2271 * Inspired by the original jQuery.tipsy by Jason Frame 
     
    418467 
    419468/* ======================================================================== 
    420  * Bootstrap: popover.js v3.1.0 
     469 * Bootstrap: popover.js v3.1.1 
    421470 * http://getbootstrap.com/javascript/#popovers 
    422471 * ======================================================================== 
     
    533582  Tour = (function() { 
    534583    function Tour(options) { 
     584      var storage; 
     585      try { 
     586        storage = window.localStorage; 
     587      } catch (_error) { 
     588        storage = false; 
     589      } 
    535590      this._options = $.extend({ 
    536591        name: "tour", 
     
    538593        container: "body", 
    539594        keyboard: true, 
    540         storage: window.localStorage, 
     595        storage: storage, 
    541596        debug: false, 
    542597        backdrop: false, 
     
    696751      this._removeState("current_step"); 
    697752      this._removeState("end"); 
    698       this.setCurrentStep(0); 
    699753      return this.start(); 
    700754    }; 
     
    831885        } 
    832886        _this._scrollIntoView(step.element, function() { 
     887            if (_this.getCurrentStep() !== i) { 
     888              return; 
     889            } 
    833890          if ((step.element != null) && step.backdrop) { 
    834891            _this._showOverlayElement(step.element); 
     
    9681025    Tour.prototype._showPopover = function(step, i) { 
    9691026      var $element, $navigation, $template, $tip, isOrphan, options; 
     1027      $(".tour-" + this._options.name).remove(); 
    9701028      options = $.extend({}, this._options); 
    9711029      $template = $.isFunction(step.template) ? $(step.template(i, step)) : $(step.template); 
     
    9831041        $.extend(options, step.options); 
    9841042      } 
    985       if (step.reflex & !isOrphan) { 
     1043      if (step.reflex && !isOrphan) { 
    9861044        $element.css("cursor", "pointer").on("click.tour-" + this._options.name, (function(_this) { 
    9871045          return function() { 
     
    11951253 
    11961254    Tour.prototype._hideBackground = function() { 
     1255      if (this.backdrop) { 
    11971256      this.backdrop.remove(); 
    11981257      this.backdrop.overlay = null; 
    11991258      return this.backdrop.backgroundShown = false; 
     1259      } 
    12001260    }; 
    12011261 
  • trunk/plugins/TakeATour/language/en_UK/plugin.lang.php

    r28393 r28775  
    1919$lang['first_contact_stp4'] = 'First choose an album; create one if there is no album yet.'; 
    2020$lang['first_contact_title5'] = ''; 
    21 $lang['first_contact_stp5'] = 'Then click the button to select photos to send from your computer'; 
     21$lang['first_contact_stp5'] = 'Then click the button to select photos to send from your computer, or just drag and drop files in the zone above.'; 
    2222$lang['first_contact_title6'] = ''; 
    23 $lang['first_contact_stp6'] = 'You see that photos are being listed. Add at least 2 pictures and when you\'re ready click the button Start Upload'; 
     23$lang['first_contact_stp6'] = 'You see that photos are being listed. Add pictures and when you\'re ready click the button Start Upload'; 
    2424$lang['first_contact_title7'] = ''; 
    25 $lang['first_contact_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...'; 
     25$lang['first_contact_stp7'] = 'Here a summary of your uploaded pictures. See that Piwigo has generated itself the thumbnails. You can now click to manage all the uploaded pictures in the Batch Manager, edit the properties of a picture by clicking on it or add more photos...'; 
    2626$lang['first_contact_title8'] = ''; 
    27 $lang['first_contact_stp8'] = 'Let\'s edit them! Click on the link. If you don\'t see it click Prev to add at least 2 photos.'; 
     27$lang['first_contact_stp8'] = 'Let\'s edit them! Click on the link.'; 
    2828$lang['first_contact_title9'] = 'The Batch Manager'; 
    2929$lang['first_contact_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.'; 
     
    4545$lang['first_contact_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.'; 
    4646$lang['first_contact_title18'] = 'Manage albums'; 
    47 $lang['first_contact_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'; 
     47$lang['first_contact_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 <em>On album » Manage</em> or hit Next'; 
    4848$lang['first_contact_title19'] = 'Manage Albums'; 
    4949$lang['first_contact_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.'; 
     
    6060$lang['first_contact_stp24'] = 'Certainly, one of the most important page is the permission page of a private album. Click on the permission tab or click next'; 
    6161$lang['first_contact_title25'] = 'Album Permission'; 
    62 $lang['first_contact_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.'; 
     62$lang['first_contact_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 <em>Administration » Albums » Properties</em> page.'; 
    6363$lang['first_contact_title26'] = ''; 
    6464$lang['first_contact_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.'; 
     
    6767$lang['first_contact_title28'] = 'Configuration'; 
    6868$lang['first_contact_stp28'] = 'Now we will look at the options available to set Piwigo working your way. Click on Configuration->Options or just hit Next.'; 
    69 $lang['first_contact_title29'] = 'Configuration->Options->General'; 
     69$lang['first_contact_title29'] = '<em>Configuration » Options » General</em>'; 
    7070$lang['first_contact_stp29'] = 'Here, on that first page, you will set the essential and basic configuration of your gallery.'; 
    7171$lang['first_contact_title30'] = ''; 
     
    7676$lang['first_contact_stp32'] = 'Now save you changes'; 
    7777$lang['first_contact_title33'] = 'Guest settings'; 
    78 $lang['first_contact_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.'; 
     78$lang['first_contact_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 <em>Configuration » Themes</em> or just hit Next.'; 
    7979$lang['first_contact_title34'] = 'Themes'; 
    8080$lang['first_contact_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.'; 
     
    8484$lang['first_contact_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.'; 
    8585$lang['first_contact_title37'] = 'Themes'; 
    86 $lang['first_contact_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'; 
     86$lang['first_contact_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 <em>Plugin » Manage</em>'; 
    8787$lang['first_contact_title38'] = 'Plugins'; 
    8888$lang['first_contact_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.'; 
  • trunk/plugins/TakeATour/tours/first_contact/tour.tpl

    r28347 r28775  
    1818    path: "{/literal}{$TAT_path}{literal}admin.php", 
    1919    placement: "right", 
    20     element: ".icon-plus-circled", 
     20    element: "a[href='./admin.php?page=photos_add']", 
    2121    reflex:true, 
    2222    title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}", 
     
    3232  { 
    3333    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 
    34     placement: "left", 
     34    placement: "right", 
    3535    element: "#albumSelection", 
    3636    title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}", 
     
    4040    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 
    4141    placement: "top", 
    42     element: "#uploadify", 
     42    element: ".plupload_add", 
    4343    title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}", 
    4444    content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}" 
    4545  }, 
    4646  { 
    47     path: /admin\.php\?page=photos_add/, 
    48     redirect:function (tour) {window.location = "admin.php?page=photos_add";}, 
    49     placement: "left", 
    50     element: "#fileQueue", 
     47    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 
     48    placement: "top", 
     49    element: ".plupload_start", 
    5150    title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}", 
    5251    content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}" 
    5352  }, 
    5453  { 
    55     path: /admin\.php\?page=photos_add/, 
    56     redirect:function (tour) {window.location = "admin.php?page=photos_add";}, 
    57     placement: "top", 
    58     element: "#photosAddContent legend", 
     54    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 
     55    placement: "top", 
     56    element: "#afterUploadActions", 
    5957    title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}", 
    6058    content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}", 
     
    6260  }, 
    6361  { 
    64     path: /admin\.php\?page=photos_add/, 
    65     redirect:function (tour) {window.location = "admin.php?page=photos_add";}, 
    66     placement: "bottom", 
     62    path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 
     63    placement: "top", 
    6764    element: "#batchLink", 
    6865    reflex:true, 
     
    342339tour.start(); 
    343340 
    344 jQuery( "input[class='submit']" ).click(function() { 
     341jQuery( ".plupload_start" ).click(function() { 
    345342  if (tour.getCurrentStep()==5) 
    346343  { 
Note: See TracChangeset for help on using the changeset viewer.