Changeset 11599
- Timestamp:
- Jul 2, 2011, 1:02:53 PM (13 years ago)
- Location:
- extensions/Back2Front
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/Back2Front.php
r11219 r11599 152 152 if (!picture_exists($_POST['b2f_front_id'])) 153 153 { 154 array_push($page['errors'], l10n_args(get_l10n_args('Unknown id %d for frontside picture', $_POST['b2f_front_id']))); 154 array_push( 155 $page['errors'], 156 sprintf( 157 l10n('Unknown id %d for frontside picture'), 158 $_POST['b2f_front_id'] 159 ) 160 ); 155 161 } 156 162 /* verso same as recto */ … … 164 170 $recto_current_verso['id'] = $all_recto_verso[$_POST['b2f_front_id']]; 165 171 $recto_current_verso['link'] = get_root_url().'admin.php?page=picture_modify&image_id='.$recto_current_verso['id']; 166 array_push($page['errors'], 167 l10n_args(get_l10n_args('The picture n°%d has already a backside : %s', 168 array($_POST['b2f_front_id'], '<a href="'.$recto_current_verso['link'].'">'.$recto_current_verso['id'].'</a>') 169 )) 170 ); 172 array_push( 173 $page['errors'], 174 sprintf( 175 l10n('The picture n°%d has already a backside : %s'), 176 $_POST['b2f_front_id'], 177 '<a href="'.$recto_current_verso['link'].'">'.$recto_current_verso['id'].'</a>' 178 ) 179 ); 171 180 } 172 181 /* recto is already a verso */ … … 175 184 $recto_is_verso['id'] = $_POST['b2f_front_id']; 176 185 $recto_is_verso['link'] = get_root_url().'admin.php?page=picture_modify&image_id='.$recto_is_verso['id']; 177 array_push($page['errors'], l10n_args(get_l10n_args('The picture n°%s is already a backside', '<a href="'.$recto_is_verso['link'].'">'.$recto_is_verso['id'].'</a>'))); 186 array_push( 187 $page['errors'], 188 sprintf( 189 l10n('The picture n°%s is already a backside'), 190 '<a href="'.$recto_is_verso['link'].'">'.$recto_is_verso['id'].'</a>' 191 ) 192 ); 178 193 } 179 194 /* everything is fine */ -
extensions/Back2Front/template/picture_content.tpl
r11219 r11599 97 97 98 98 {if $b2f_position != 'toolbar'}<div>{/if} 99 <a class="reverse" rel="front" {if $b2f_position == 'toolbar'}style="border:none !important;"{/if} {if $b2f_switch_mode == 'hover'}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}> 99 <a class="reverse" rel="front" {if $b2f_position == 'toolbar'}style="border:none !important;"{/if} 100 {if $b2f_switch_mode == 'hover' and isset($VERSO_HD)}href="javascript:phpWGOpenWindow('{$VERSO_HD}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"{/if}> 100 101 <img src="{$B2F_PATH}template/rotate_1.png"/> {$b2f_see_back} 101 102 </a>
Note: See TracChangeset
for help on using the changeset viewer.