Changeset 28775
- Timestamp:
- Jun 23, 2014, 10:08:45 PM (10 years ago)
- 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
-
Property
svn:ignore
set to
-
trunk/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js
r28169 r28775 1 1 /* =========================================================== 2 # bootstrap-tour - v0.9. 02 # bootstrap-tour - v0.9.3 3 3 # http://bootstraptour.com 4 4 # ============================================================== … … 18 18 */ 19 19 /* ======================================================================== 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 21 70 * http://getbootstrap.com/javascript/#tooltip 22 71 * Inspired by the original jQuery.tipsy by Jason Frame … … 418 467 419 468 /* ======================================================================== 420 * Bootstrap: popover.js v3.1. 0469 * Bootstrap: popover.js v3.1.1 421 470 * http://getbootstrap.com/javascript/#popovers 422 471 * ======================================================================== … … 533 582 Tour = (function() { 534 583 function Tour(options) { 584 var storage; 585 try { 586 storage = window.localStorage; 587 } catch (_error) { 588 storage = false; 589 } 535 590 this._options = $.extend({ 536 591 name: "tour", … … 538 593 container: "body", 539 594 keyboard: true, 540 storage: window.localStorage,595 storage: storage, 541 596 debug: false, 542 597 backdrop: false, … … 696 751 this._removeState("current_step"); 697 752 this._removeState("end"); 698 this.setCurrentStep(0);699 753 return this.start(); 700 754 }; … … 831 885 } 832 886 _this._scrollIntoView(step.element, function() { 887 if (_this.getCurrentStep() !== i) { 888 return; 889 } 833 890 if ((step.element != null) && step.backdrop) { 834 891 _this._showOverlayElement(step.element); … … 968 1025 Tour.prototype._showPopover = function(step, i) { 969 1026 var $element, $navigation, $template, $tip, isOrphan, options; 1027 $(".tour-" + this._options.name).remove(); 970 1028 options = $.extend({}, this._options); 971 1029 $template = $.isFunction(step.template) ? $(step.template(i, step)) : $(step.template); … … 983 1041 $.extend(options, step.options); 984 1042 } 985 if (step.reflex & !isOrphan) {1043 if (step.reflex && !isOrphan) { 986 1044 $element.css("cursor", "pointer").on("click.tour-" + this._options.name, (function(_this) { 987 1045 return function() { … … 1195 1253 1196 1254 Tour.prototype._hideBackground = function() { 1255 if (this.backdrop) { 1197 1256 this.backdrop.remove(); 1198 1257 this.backdrop.overlay = null; 1199 1258 return this.backdrop.backgroundShown = false; 1259 } 1200 1260 }; 1201 1261 -
trunk/plugins/TakeATour/language/en_UK/plugin.lang.php
r28393 r28775 19 19 $lang['first_contact_stp4'] = 'First choose an album; create one if there is no album yet.'; 20 20 $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.'; 22 22 $lang['first_contact_title6'] = ''; 23 $lang['first_contact_stp6'] = 'You see that photos are being listed. Add at least 2pictures 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'; 24 24 $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...'; 26 26 $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.'; 28 28 $lang['first_contact_title9'] = 'The Batch Manager'; 29 29 $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.'; … … 45 45 $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.'; 46 46 $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->Manageor 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'; 48 48 $lang['first_contact_title19'] = 'Manage Albums'; 49 49 $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.'; … … 60 60 $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'; 61 61 $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 » Propertiespage.';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.'; 63 63 $lang['first_contact_title26'] = ''; 64 64 $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.'; … … 67 67 $lang['first_contact_title28'] = 'Configuration'; 68 68 $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>'; 70 70 $lang['first_contact_stp29'] = 'Here, on that first page, you will set the essential and basic configuration of your gallery.'; 71 71 $lang['first_contact_title30'] = ''; … … 76 76 $lang['first_contact_stp32'] = 'Now save you changes'; 77 77 $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->Themesor 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.'; 79 79 $lang['first_contact_title34'] = 'Themes'; 80 80 $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.'; … … 84 84 $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.'; 85 85 $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>'; 87 87 $lang['first_contact_title38'] = 'Plugins'; 88 88 $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 18 18 path: "{/literal}{$TAT_path}{literal}admin.php", 19 19 placement: "right", 20 element: " .icon-plus-circled",20 element: "a[href='./admin.php?page=photos_add']", 21 21 reflex:true, 22 22 title: "{/literal}{'first_contact_title2'|@translate|@escape:'javascript'}{literal}", … … 32 32 { 33 33 path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 34 placement: " left",34 placement: "right", 35 35 element: "#albumSelection", 36 36 title: "{/literal}{'first_contact_title4'|@translate|@escape:'javascript'}{literal}", … … 40 40 path: "{/literal}{$TAT_path}{literal}admin.php?page=photos_add", 41 41 placement: "top", 42 element: " #uploadify",42 element: ".plupload_add", 43 43 title: "{/literal}{'first_contact_title5'|@translate|@escape:'javascript'}{literal}", 44 44 content: "{/literal}{'first_contact_stp5'|@translate|@escape:'javascript'}{literal}" 45 45 }, 46 46 { 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", 51 50 title: "{/literal}{'first_contact_title6'|@translate|@escape:'javascript'}{literal}", 52 51 content: "{/literal}{'first_contact_stp6'|@translate|@escape:'javascript'}{literal}" 53 52 }, 54 53 { 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", 59 57 title: "{/literal}{'first_contact_title7'|@translate|@escape:'javascript'}{literal}", 60 58 content: "{/literal}{'first_contact_stp7'|@translate|@escape:'javascript'}{literal}", … … 62 60 }, 63 61 { 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", 67 64 element: "#batchLink", 68 65 reflex:true, … … 342 339 tour.start(); 343 340 344 jQuery( " input[class='submit']" ).click(function() {341 jQuery( ".plupload_start" ).click(function() { 345 342 if (tour.getCurrentStep()==5) 346 343 {
Note: See TracChangeset
for help on using the changeset viewer.