Changeset 28129


Ignore:
Timestamp:
Apr 8, 2014, 11:06:53 PM (10 years ago)
Author:
flop25
Message:

styling
using enable_synchronization

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 {
    22  text-align: justify;
    33  text-indent: 1em;
    44}
    5 #TAT_Content form {
     5#helpContent form {
    66  text-align: center;
    77}
    8 #TAT_Content form input {
     8#helpContent form input {
    99  width: 50%;
    1010  margin-top: 10px;
    1111}
     12#helpContent P {
     13  text-indent: 1em;
     14  text-align: justify;
     15}
  • extensions/TakeATour/language/en_UK/plugin.lang.php

    r28100 r28129  
    44$lang['Visit your Piwigo!'] = 'Visit your Piwigo!';
    55$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';
    98$lang[''] = '';
    109$lang[''] = '';
     
    1615$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.';
    1716$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 in 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!';
     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!';
    1918$lang['first_contact_title2'] = '';
    2019$lang['first_contact_stp2'] = 'The link is here. Click Next to continue';
     
    5352$lang['first_contact_title19'] = 'Manage Albums';
    5453$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.';
    5555$lang['first_contact_title20'] = 'Manage Albums';
    5656$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  
    3333elseif ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN)
    3434{
    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');
    4137}
    4238
     
    9995 
    10096  $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">
    10298  <input type="hidden" name="submited_tour" value="first_contact">
    10399  <input type="hidden" name="pwg_token" value="{$pwg_token}">
     
    105101</form>
    106102<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 = '
     106form 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}
     116form input[type="submit"]:hover {
     117  background-color:#ff7700;
     118  color:white;
     119}
     120</style>';
    107121  return(str_replace($search, $replacement, $content));
    108122}
  • extensions/TakeATour/tours/first_contact/config_preparse.inc.php

    r28059 r28129  
    5252    $template->assign('TAT_cat_id', $row['id']);
    5353  }
     54  global $conf;
     55  if ( isset($conf['enable_synchronization']) )
     56  {
     57    $template->assign('TAT_FTP', $conf['enable_synchronization']);
     58  }
    5459?>
  • extensions/TakeATour/tours/first_contact/tour.tpl

    r28097 r28129  
    156156    element: "#content",
    157157    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}",
    159159    onPrev: function (tour) {window.location = "admin.php?page=photo-{/literal}{$TAT_image_id}{literal}";},
    160160
  • extensions/TakeATour/tpl/admin.tpl

    r28100 r28129  
    22  <h2>{'takeatour_configpage'|@translate}</h2>
    33</div>
    4 <div id="TAT_Content">
     4<div id="helpContent">
     5  <p>{'TAT_descrp'|@translate}</p>
    56  {if !isset($TAT_tour_ignored) or (isset($TAT_tour_ignored) and in_array(first_contact, $TAT_tour_ignored))}
    67  <fieldset>
Note: See TracChangeset for help on using the changeset viewer.