Ignore:
Timestamp:
Oct 6, 2011, 1:45:36 PM (13 years ago)
Author:
mistic100
Message:

remove a prefilter for a better integration, add an option to display a mark on thumbnails list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/admin.php

    r11219 r12361  
    1111if (isset($_POST['submit']))
    1212{
    13         $conf['back2front'] = array(
     13  $conf['back2front'] = array(
    1414    $conf['back2front'][0],
    1515    $_POST['switch_mode'],
     
    1717    $_POST['position'],
    1818    serialize(stripslashes_deep(str_replace(array("'",'"',','), null, $_POST['link_name']))),
     19    isset($_POST['show_thumbnail']),
    1920  );
    20        
     21 
    2122  conf_update_param('back2front', implode (',', $conf['back2front']));
    22         array_push($page['infos'], l10n('Information data registered in database'));
     23  array_push($page['infos'], l10n('Information data registered in database'));
    2324}
    2425
     
    3334foreach (get_languages() as $language_code => $language_name)
    3435{
    35         $template->append('link_name', array(
     36  $template->append('link_name', array(
    3637    'LANGUAGE_NAME' => $language_name,
    3738    'LANGUAGE_CODE' => $language_code,
     
    4344$template->assign(array(
    4445  'B2F_PATH' => B2F_PATH,
    45         'SWITCH_MODE' => $conf['back2front'][1],
    46         'TRANSITION' => $conf['back2front'][2],
     46  'SWITCH_MODE' => $conf['back2front'][1],
     47  'TRANSITION' => $conf['back2front'][2],
    4748  'POSITION' => $conf['back2front'][3],
     49  'SHOW_THUMBNAIL' => $conf['back2front'][5],
    4850));
    49        
     51 
    5052$template->set_filename('back2front_conf', dirname(__FILE__).'/template/admin.tpl');
    5153$template->assign_var_from_handle('ADMIN_CONTENT', 'back2front_conf');
Note: See TracChangeset for help on using the changeset viewer.