Changeset 28129
- Timestamp:
- Apr 8, 2014, 11:06:53 PM (10 years ago)
- Location:
- extensions/TakeATour
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/TakeATour/css/admin.css
r27998 r28129 1 # TAT_Content .TAT_description {1 #helpContent .TAT_description { 2 2 text-align: justify; 3 3 text-indent: 1em; 4 4 } 5 # TAT_Content form {5 #helpContent form { 6 6 text-align: center; 7 7 } 8 # TAT_Content form input {8 #helpContent form input { 9 9 width: 50%; 10 10 margin-top: 10px; 11 11 } 12 #helpContent P { 13 text-indent: 1em; 14 text-align: justify; 15 } -
extensions/TakeATour/language/en_UK/plugin.lang.php
r28100 r28129 4 4 $lang['Visit your Piwigo!'] = 'Visit your Piwigo!'; 5 5 $lang['Take a tour and discover the features of your Piwigo gallery » Go to the available tours'] = 'Take a tour and discover the features of your Piwigo gallery » Go to the available tours'; 6 $lang[''] = ''; 7 $lang[''] = ''; 8 $lang[''] = ''; 6 $lang['TAT_descrp'] = 'Welcome! Here are listed all the avalaible tours to discover the features of your Piwigo gallery.<br>Launch a tour below, then follow the instructions. Click Next/Prev (or use the arrows of your keyboard) to navigate during a tour. During a tour, 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.'; 7 $lang['takeatour_configpage'] = 'Take A Tour » List of Tours'; 9 8 $lang[''] = ''; 10 9 $lang[''] = ''; … … 16 15 $lang['first_contact_descrp'] = 'Recommended for beginners, this tour introduce you Piwigo, its basic features. It will start by adding pictures, then manage them. The tour continues with album management and permissions, and ends on the customization using the configuration, the themes and the plugins.'; 17 16 $lang['first_contact_title1'] = 'Welcome in your Piwigo gallery'; 18 $lang['first_contact_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 inan 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!';17 $lang['first_contact_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!'; 19 18 $lang['first_contact_title2'] = ''; 20 19 $lang['first_contact_stp2'] = 'The link is here. Click Next to continue'; … … 53 52 $lang['first_contact_title19'] = 'Manage Albums'; 54 53 $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 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.'; 54 $lang['first_contact_stp19_b'] = 'All the albums are called \'virtual albums\'. Here are listed all the \'top\' albums, the ones at the root of your gallery.'; 55 55 $lang['first_contact_title20'] = 'Manage Albums'; 56 56 $lang['first_contact_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.'; -
extensions/TakeATour/main.inc.php
r28100 r28129 33 33 elseif ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN) 34 34 { 35 global $conf; 36 if ((isset($conf['TakeATour_tour_ignored']) and !in_array(pwg_get_session_var('tour_to_launch'), $conf['TakeATour_tour_ignored'])) or !isset($conf['TakeATour_tour_ignored'])) 37 { 38 add_event_handler('init', 'TAT_add_js_css'); 39 include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php'); 40 } 35 add_event_handler('init', 'TAT_add_js_css'); 36 include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php'); 41 37 } 42 38 … … 99 95 100 96 $search = '<div class="bigButton"><a href="{$next_step_url}">{\'I want to add photos\'|@translate}</a></div>'; 101 $replacement = '<form class="bigButton" action="{$F_ACTION}" method="post">97 $replacement = '<form style="text-align:center" action="{$F_ACTION}" method="post"> 102 98 <input type="hidden" name="submited_tour" value="first_contact"> 103 99 <input type="hidden" name="pwg_token" value="{$pwg_token}"> … … 105 101 </form> 106 102 <div class="bigButton"><a href="{$next_step_url}">{\'I want to add photos\'|@translate}</a></div>'; 103 $content=str_replace($search, $replacement, $content); 104 $search = '</style>'; 105 $replacement = ' 106 form input[type="submit"] { 107 font-size: 25px; 108 letter-spacing: 2px; 109 margin: 0 5px; 110 padding: 20px; 111 border:none; 112 background-color:#666666; 113 color:#fff; 114 cursor:pointer; 115 } 116 form input[type="submit"]:hover { 117 background-color:#ff7700; 118 color:white; 119 } 120 </style>'; 107 121 return(str_replace($search, $replacement, $content)); 108 122 } -
extensions/TakeATour/tours/first_contact/config_preparse.inc.php
r28059 r28129 52 52 $template->assign('TAT_cat_id', $row['id']); 53 53 } 54 global $conf; 55 if ( isset($conf['enable_synchronization']) ) 56 { 57 $template->assign('TAT_FTP', $conf['enable_synchronization']); 58 } 54 59 ?> -
extensions/TakeATour/tours/first_contact/tour.tpl
r28097 r28129 156 156 element: "#content", 157 157 title: "{/literal}{'first_contact_title19'|@translate}{literal}", 158 content: "{/literal}{ 'first_contact_stp19'|@translate}{literal}",158 content: "{/literal}{if $TAT_FTP}{'first_contact_stp19'|@translate}{else}{'first_contact_stp19_b'|@translate}{/if}{literal}", 159 159 onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";}, 160 160 -
extensions/TakeATour/tpl/admin.tpl
r28100 r28129 2 2 <h2>{'takeatour_configpage'|@translate}</h2> 3 3 </div> 4 <div id="TAT_Content"> 4 <div id="helpContent"> 5 <p>{'TAT_descrp'|@translate}</p> 5 6 {if !isset($TAT_tour_ignored) or (isset($TAT_tour_ignored) and in_array(first_contact, $TAT_tour_ignored))} 6 7 <fieldset>
Note: See TracChangeset
for help on using the changeset viewer.