Ignore:
Timestamp:
Sep 13, 2009, 1:30:09 PM (15 years ago)
Author:
vdigital
Message:

Add config values.
'ak_by_page' is operational. (bug 1162)
'ak_categories' is not active currently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/admin.php

    r3806 r3842  
    3535
    3636if (!empty($_POST['submit'])) {
     37  if (!empty($_POST['ak_categories']) && $_POST['ak_categories']!=$me->ak_categories) {
     38    $me->ak_categories = $_POST['ak_categories'];
     39    array_push($GLOBALS['page']['infos'], $lang['ak_categories_changed']);
     40    $save_config = true;
     41  }
     42
     43  if (!empty($_POST['ak_by_page']) && intval($_POST['ak_by_page'])!=$me->ak_by_page) {
     44    $me->ak_by_page = intval($_POST['ak_by_page']);
     45    array_push($GLOBALS['page']['infos'], $lang['ak_by_page_changed']);
     46    $save_config = true;
     47  }
     48
    3749  if (!empty($_POST['ak_by_line']) && intval($_POST['ak_by_line'])!=$me->ak_by_line) {
    3850    $me->ak_by_line = intval($_POST['ak_by_line']);
     
    6577$GLOBALS['template']->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl'));
    6678$GLOBALS['template']->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS);
     79$GLOBALS['template']->assign('AK_CATEGORIES', $me->ak_categories);
     80$GLOBALS['template']->assign('AK_BY_PAGE', $me->ak_by_page);
    6781$GLOBALS['template']->assign('AK_BY_LINE', $me->ak_by_line);
    6882$GLOBALS['template']->assign('AK_THUMBNAIL_SIZE', $me->ak_thumbnail_size);
Note: See TracChangeset for help on using the changeset viewer.