Changeset 28129 for extensions/TakeATour/main.inc.php
- Timestamp:
- Apr 8, 2014, 11:06:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.