Changeset 3842
- Timestamp:
- Sep 13, 2009, 1:30:09 PM (15 years ago)
- Location:
- extensions/akBookStyle/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/admin.php
r3806 r3842 35 35 36 36 if (!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 37 49 if (!empty($_POST['ak_by_line']) && intval($_POST['ak_by_line'])!=$me->ak_by_line) { 38 50 $me->ak_by_line = intval($_POST['ak_by_line']); … … 65 77 $GLOBALS['template']->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl')); 66 78 $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); 67 81 $GLOBALS['template']->assign('AK_BY_LINE', $me->ak_by_line); 68 82 $GLOBALS['template']->assign('AK_THUMBNAIL_SIZE', $me->ak_thumbnail_size); -
extensions/akBookStyle/trunk/default_values.inc.php
r3806 r3842 24 24 die('Hacking attempt!'); 25 25 } 26 26 $default_values['ak_categories'] = '<!--Book-->'; 27 $default_values['ak_by_page'] = 10; 27 28 $default_values['ak_by_line'] = 2; 28 29 $default_values['ak_thumbnail_size'] = 100; -
extensions/akBookStyle/trunk/include/akContent.class.php
r3838 r3842 36 36 } 37 37 38 public function user_force() { 39 $GLOBALS['user']['nb_image_page'] = $this->plugin_config->ak_by_page; 40 } 41 38 42 public function loc_begin_index_thumbnails($images) { 39 global $template, $page; 40 43 global $template; 41 44 $this->category_url = make_index_url(array('section' => 'category', 42 45 'category' => $GLOBALS['page']['category'], -
extensions/akBookStyle/trunk/language/en_UK/plugin.lang.php
r3806 r3842 6 6 7 7 $lang['ak_general_config'] = "Main configuration"; 8 $lang['ak_categories'] = "Category name selection mask (<!--Book--> by default)"; 9 $lang['ak_categories_changed'] = "Selection mask has been updated"; 10 $lang['ak_by_page'] = "Number of thumbnails per page"; 11 $lang['ak_by_page_changed'] = "Thumbnails per page has been updated"; 12 8 13 $lang['ak_by_line'] = "Number of column"; 9 14 $lang['ak_by_line_changed'] = "Number of column has been updated"; -
extensions/akBookStyle/trunk/language/fr_FR/plugin.lang.php
r3811 r3842 6 6 7 7 $lang['ak_general_config'] = "Configuration générale"; 8 $lang['ak_categories'] = "Masque de sélection sur le nom des catégories (<!--Book--> par défaut)"; 9 $lang['ak_categories_changed'] = "Le masque de sélection a été modifié."; 10 $lang['ak_by_page'] = "Nombre des miniatures par page"; 11 $lang['ak_by_page_changed'] = "Le nombre des miniatures par page a été modifié."; 12 8 13 $lang['ak_by_line'] = "Nombre de colonnes"; 9 $lang['ak_by_line_changed'] = "Le nombre de colonne a été m is à jour";10 $lang['ak_thumbnail_size'] = "Taille des imagettes";11 $lang['ak_thumbnail_size_changed'] = "La taille des imagette a été mis à jour";14 $lang['ak_by_line_changed'] = "Le nombre de colonne a été modifié"; 15 $lang['ak_thumbnail_size'] = "Taille des miniatures"; 16 $lang['ak_thumbnail_size_changed'] = "La taille des miniatures a été modifié."; 12 17 13 18 $lang['ak_event_click'] = "clic"; -
extensions/akBookStyle/trunk/public.php
r3813 r3842 37 37 2 38 38 ); 39 add_event_handler('init', 40 array($public_content, 'user_force') 41 ); 39 42 ?> -
extensions/akBookStyle/trunk/template/admin.tpl
r3806 r3842 14 14 <fieldset> 15 15 <legend>{'ak_general_config'|translate}</legend> 16 <p class="field"> 17 <label>{'ak_categories'|translate} 18 <input type="text" name="ak_categories" value="{$AK_CATEGORIES}"> 19 </label> 20 </p> 21 <p class="field"> 22 <label>{'ak_by_page'|translate} 23 <input type="text" name="ak_by_page" value="{$AK_BY_PAGE}"> 24 </label> 25 </p> 16 26 <p class="field"> 17 27 <label>{'ak_by_line'|translate}
Note: See TracChangeset
for help on using the changeset viewer.