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

styling
using enable_synchronization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.