Changeset 5432 for extensions/akBookStyle
- Timestamp:
- Mar 28, 2010, 9:46:21 PM (14 years ago)
- Location:
- extensions/akBookStyle/trunk
- Files:
-
- 3 added
- 4 deleted
- 21 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/CHANGELOG
r3878 r5432 1 akBookStyle 0.2.0 - 2010-03-28 2 ================================ 3 * html select tag for applicable categories 4 * show selected thumbnail 5 * start simplification 6 * prepare localization for gettext 7 1 8 akBookStyle 0.1.0 - 2009-09-19 2 9 ================================ -
extensions/akBookStyle/trunk/MANIFEST
r3814 r5432 1 akBookStyle/MANIFEST 2 akBookStyle/css/ak_style.css 3 akBookStyle/css/ak_admin_style.css 4 akBookStyle/TODO 5 akBookStyle/COPYING 6 akBookStyle/template/ak_thumbnails.tpl 7 akBookStyle/template/admin.tpl 8 akBookStyle/template/ak_reloaded_image.tpl 9 akBookStyle/template/ak_vertical.tpl 10 akBookStyle/template/ak_horizontal.tpl 11 akBookStyle/language/fr_FR/plugin.lang.php 12 akBookStyle/language/it_IT/plugin.lang.php 13 akBookStyle/language/en_UK/plugin.lang.php 14 akBookStyle/default_values.inc.php 15 akBookStyle/admin.php 16 akBookStyle/public.php 17 akBookStyle/include/akContent.class.php 18 akBookStyle/include/akConfig.class.php 19 akBookStyle/maintain.inc.php 20 akBookStyle/ChangeLog.txt.php 21 akBookStyle/CHANGELOG 22 akBookStyle/js/ak_jquery-load.js 23 akBookStyle/init.php 24 akBookStyle/main.inc.php 1 ./MANIFEST 2 ./maintain.inc.php 3 ./rsync_exclude.txt 4 ./template/ak_thumbnails.tpl 5 ./template/ak_horizontal.tpl 6 ./template/ak_vertical.tpl 7 ./template/admin.tpl 8 ./template/ak_reloaded_image.tpl 9 ./js/ak_jquery-load.js 10 ./main.inc.php 11 ./default_values.inc.php 12 ./language/fr_FR/description.txt 13 ./language/fr_FR/plugin.lang.php 14 ./language/templates/plugin.lang.php 15 ./language/en_UK/plugin.lang.php 16 ./language/it_IT/plugin.lang.php 17 ./language/es_ES/description.txt 18 ./language/es_ES/plugin.lang.php 19 ./language/hu_HU/description.txt 20 ./language/hu_HU/plugin.lang.php 21 ./CHANGELOG 22 ./include/akContent.class.php 23 ./include/akConfig.class.php 24 ./admin.php 25 ./Makefile 26 ./COPYING 27 ./css/style.css 28 ./css/admin.css 29 ./init.php 30 ./public.php 31 ./TODO -
extensions/akBookStyle/trunk/admin.php
r3843 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ … … 25 25 } 26 26 27 $ThumbnailsLocations = array('top','left','bottom','right'); 28 $MouseEvents = array('click' => 'ak_event_click', 29 'mouseover' => 'ak_event_mouseover'); 30 31 load_language('plugin.lang', AK_PLUGIN_LANG); 27 $ThumbnailsLocations = array('top' => 'Top', 28 'left' => 'Left', 29 'bottom' => 'Bottom', 30 'right' => 'Right'); 31 $MouseEvents = array('click' => 'Click', 32 'mouseover' => 'Mouseover'); 32 33 33 34 $me = get_plugin_data($plugin_id); … … 37 38 if (!empty($_POST['ak_categories']) && $_POST['ak_categories']!=$me->ak_categories) { 38 39 $me->ak_categories = $_POST['ak_categories']; 39 if ( $_POST['ak_categories'] == '') $me->ak_categories = '<!--Book-->'; 40 array_push($GLOBALS['page']['infos'], $lang['ak_categories_changed']); 40 array_push($GLOBALS['page']['infos'], 41 l10n_dec('Applicable category has been updated', 42 'Applicable categories have been updated', 43 count($_POST['ak_categories']))); 41 44 $save_config = true; 42 45 } … … 44 47 if (!empty($_POST['ak_by_page']) && intval($_POST['ak_by_page'])!=$me->ak_by_page) { 45 48 $me->ak_by_page = intval($_POST['ak_by_page']); 46 array_push($GLOBALS['page']['infos'], $lang['ak_by_page_changed']);49 array_push($GLOBALS['page']['infos'], l10n('Thumbnails per page has been updated')); 47 50 $save_config = true; 48 51 } … … 50 53 if (!empty($_POST['ak_by_line']) && intval($_POST['ak_by_line'])!=$me->ak_by_line) { 51 54 $me->ak_by_line = intval($_POST['ak_by_line']); 52 array_push($GLOBALS['page']['infos'], $lang['ak_by_line_changed']);55 array_push($GLOBALS['page']['infos'], l10n('Number of column has been updated')); 53 56 $save_config = true; 54 57 } … … 56 59 if (!empty($_POST['ak_thumbnail_size']) && $_POST['ak_thumbnail_size']!=$me->ak_thumbnail_size) { 57 60 $me->ak_thumbnail_size = (int) $_POST['ak_thumbnail_size']; 58 array_push($GLOBALS['page']['infos'], $lang['ak_thumbnail_size_changed']);61 array_push($GLOBALS['page']['infos'], l10n('Thumbnail size has been updated')); 59 62 $save_config = true; 60 63 } 61 64 62 65 if (!empty($_POST['ak_mouse_event']) && $_POST['ak_mouse_event']!=$me->ak_mouse_event) { 63 $me->ak_mouse_event = isset($MouseEvents[$_POST['ak_mouse_event']])?$_POST['ak_mouse_event']:'click'; 64 array_push($GLOBALS['page']['infos'], $lang['ak_mouse_event_changed']); 66 if (isset($MouseEvents[$_POST['ak_mouse_event']])) { 67 $me->ak_mouse_event = $_POST['ak_mouse_event']; 68 } else { 69 $me->ak_mouse_event = 'click'; 70 } 71 array_push($GLOBALS['page']['infos'], l10n('Event to show medium picture has been updated.')); 65 72 $save_config = true; 66 73 } 67 74 68 75 if (!empty($_POST['ak_thumbnails_loc']) && $_POST['ak_thumbnails_loc']!=$me->ak_thumbnails_loc) { 69 $me->ak_thumbnails_loc = in_array($_POST['ak_thumbnails_loc'],$ThumbnailsLocations)?$_POST['ak_thumbnails_loc']:'left'; 70 array_push($GLOBALS['page']['infos'], $lang['ak_thumbnails_loc_changed']); 76 if (isset($ThumbnailsLocations[$_POST['ak_thumbnails_loc']])) { 77 $me->ak_thumbnails_loc = $_POST['ak_thumbnails_loc']; 78 } else { 79 $me->ak_thumbnails_loc = 'left'; } 80 array_push($GLOBALS['page']['infos'], l10n('Thumbnails location has been changed')); 71 81 $save_config = true; 72 82 } … … 76 86 } 77 87 } 88 89 $query = ' 90 SELECT id,name 91 FROM '.CATEGORIES_TABLE; 92 93 $all_categories = simple_hash_from_query($query, 'id', 'name'); 94 78 95 $GLOBALS['template']->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl')); 79 $GLOBALS['template']->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS); 96 $GLOBALS['template']->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS); 97 $GLOBALS['template']->assign('ALL_CATEGORIES', $all_categories); 80 98 $GLOBALS['template']->assign('AK_CATEGORIES', $me->ak_categories); 81 99 $GLOBALS['template']->assign('AK_BY_PAGE', $me->ak_by_page); … … 86 104 $GLOBALS['template']->assign('AK_EVENTS_LABELS', array_values($MouseEvents)); 87 105 $GLOBALS['template']->assign('AK_THUMBNAILS_LOC', $me->ak_thumbnails_loc); 88 $GLOBALS['template']->assign('AK_THUMBNAILS_LOCATIONS', $ThumbnailsLocations); 106 $GLOBALS['template']->assign('AK_THUMBNAILS_LOCATIONS_KEYS', array_keys($ThumbnailsLocations)); 107 $GLOBALS['template']->assign('AK_THUMBNAILS_LOCATIONS_VALUES', array_values($ThumbnailsLocations)); 89 108 $GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 90 109 ?> -
extensions/akBookStyle/trunk/css/style.css
r5000 r5432 24 24 width: 24px; 25 25 padding: 200px 0 0 0; 26 } 27 28 td.ncol { 29 padding: 2px; 30 } 31 32 td table.thumbnails tr td.selected, td table.thumbnails tr td.ncol:hover { 33 background-color: #FF0000; 34 } 35 36 td table.thumbnails tr td.selected img, td table.thumbnails tr td.ncol:hover img { 37 filter: alpha(opacity=100); 38 opacity: 1; 39 -moz-opacity: 1; 40 -khtml-opacity: 1; 26 41 } 27 42 -
extensions/akBookStyle/trunk/default_values.inc.php
r3843 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ -
extensions/akBookStyle/trunk/include/akConfig.class.php
r3802 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ -
extensions/akBookStyle/trunk/include/akContent.class.php
r3877 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ … … 42 42 global $page; 43 43 44 if ( isset($page['category'])) {45 $cat_filter = $this->plugin_config->ak_categories;46 $this->applicable = (stripos($page['category']['name'], $cat_filter) === false) ? false:true;47 if ( $this->applicable ) {44 if (!empty($page['category'])) { 45 if (in_array($page['category']['id'], $this->plugin_config->ak_categories)) 46 { 47 $this->applicable = true; 48 48 $page['nb_image_page'] = $this->plugin_config->ak_by_page; 49 49 } 50 else 51 { 52 $this->applicable = false; 53 } 50 54 } 51 55 } … … 53 57 public function loc_begin_index_thumbnails($images) { 54 58 global $template; 55 59 56 60 if ($this->applicable === false) return; 57 61 $this->category_url = make_index_url(array('section' => 'category', … … 65 69 66 70 $this->current_picture = $this->getPictureId($images); 67 68 71 $template->set_filenames(array('index_thumbnails'=> AK_PLUGIN_TEMPLATE . '/ak_thumbnails.tpl')); 69 72 $template->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS); … … 83 86 $template->assign('AK_NEXT', $this->getNextPicture($this->current_picture, $images)); 84 87 $template->assign('AK_PREVIOUS', $this->getPreviousPicture($this->current_picture, $images)); 85 } 86 88 if (empty($_SESSION['ak_previous_image'])) { 89 $_SESSION['ak_previous_image'] = $images[$this->current_picture]['id']; 90 } 91 } 92 87 93 public function loc_end_index_thumbnails($tpl_vars, $images) { 88 if ($this->applicable === false) return $tpl_vars; 94 if (!$this->applicable) { 95 return $tpl_vars; 96 } 97 98 $selected_one = false; 89 99 foreach ($tpl_vars as &$tpl_var) { 90 100 list($thumbnail_width, $thumbnail_height) = getimagesize($tpl_var['TN_SRC']); … … 95 105 $tpl_var['CLIP_BOTTOM'] = round($thumbnail_y_center + $this->plugin_config->ak_thumbnail_size/2); 96 106 $tpl_var['CLIP_LEFT'] = round($thumbnail_x_center - $this->plugin_config->ak_thumbnail_size/2); 107 108 if (!empty($_SESSION['ak_previous_image']) 109 && ($tpl_var['ID']==$_SESSION['ak_previous_image'])) { 110 $tpl_var['SELECTED'] = true; 111 $selected_one =true; 112 } 113 if (!$selected_one) { 114 $tpl_vars[0]['SELECTED'] = true; 115 } 97 116 } 98 117 … … 103 122 if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) 104 123 && ($_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')) { 105 header("Content-Type: application/json");106 124 107 125 $response = array(); … … 121 139 $response['AK_NEXT'] = $tpl_vars['next']['url']; 122 140 } 141 $_SESSION['ak_previous_image'] = $tpl_vars['current']['id']; 142 header("Content-Type: application/json"); 123 143 echo json_encode($response); 124 144 exit(); -
extensions/akBookStyle/trunk/init.php
r3787 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ -
extensions/akBookStyle/trunk/js/ak_jquery-load.js
r3876 r5432 2 2 $("a.load") 3 3 .bind(ak_mouse_event, function() { 4 $('table.thumbnails tr td.ncol').each(function() { 5 if ($(this).hasClass('selected')) { 6 $(this).removeClass('selected'); 7 } 8 }); 9 4 10 $a = $(this); 5 try { 6 $.get($a.attr('href'),{}, 7 function success(data) { 8 $('#akPicture') 9 .attr('src', data.AK_PIC_SRC) 10 .attr('alt', data.AK_PIC_ALT) 11 .attr('title', data.AK_PIC_TITLE); 11 next_thumbnail = $('table.thumbnails a[href='+$(this).attr('href')+']'); 12 if (next_thumbnail.length==0) { 13 if ($a.attr('id')=='akNextPicture') { 14 rel = 'next'; 15 } else { 16 rel = 'previous'; 17 } 18 next_link = $('table.thumbnails div.navbar a[rel='+rel+']'); 19 window.location = next_link.attr('href'); 20 } else { 21 next_thumbnail.parent().parent().parent().addClass('selected'); 22 try { 23 $.get($a.attr('href'),{}, 24 function success(data) { 25 $('#akPicture') 26 .attr('src', data.AK_PIC_SRC) 27 .attr('alt', data.AK_PIC_ALT) 28 .attr('title', data.AK_PIC_TITLE); 12 29 13 if (data.AK_PREVIOUS) { 14 $('#akPreviousPicture') 15 .removeClass('hide') 16 .attr('href', data.AK_PREVIOUS); 17 } else { 18 $('#akPreviousPicture').addClass('hide'); 19 } 20 if (data.AK_NEXT) { 21 $('#akNextPicture') 22 .removeClass('hide') 23 .attr('href', data.AK_NEXT); 24 } else { 25 $('#akNextPicture').addClass('hide'); 26 } 27 $a.click(function(e) { e.preventDefault();}); 28 }, 29 'json'); 30 } catch (e) { 31 // alert(e); 32 } 30 if (data.AK_PREVIOUS) { 31 $('#akPreviousPicture') 32 .removeClass('hide') 33 .attr('href', data.AK_PREVIOUS); 34 } else { 35 $('#akPreviousPicture').addClass('hide'); 36 } 37 if (data.AK_NEXT) { 38 $('#akNextPicture') 39 .removeClass('hide') 40 .attr('href', data.AK_NEXT); 41 } else { 42 $('#akNextPicture').addClass('hide'); 43 } 44 $a.click(function(e) { e.preventDefault();}); 45 }, 46 'json'); 47 } catch (e) {} 48 } 33 49 return false; 34 50 }); -
extensions/akBookStyle/trunk/language/en_UK/plugin.lang.php
r3842 r5432 1 1 <?php 2 /** admin **/ 3 $lang['ak_title'] = "ak Book Style"; 4 $lang['ak_intro'] = "That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails."; 5 $lang['ak_info'] = ""; 2 // +-----------------------------------------------------------------------+ 3 // | akBookStyle - a plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 // +-----------------------------------------------------------------------+ 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation | 11 // | | 12 // | This program is distributed in the hope that it will be useful, but | 13 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 14 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 // | General Public License for more details. | 16 // | | 17 // | You should have received a copy of the GNU General Public License | 18 // | along with this program; if not, write to the Free Software | 19 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 20 // | USA. | 21 // +-----------------------------------------------------------------------+ 6 22 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 13 $lang['ak_by_line'] = "Number of column"; 14 $lang['ak_by_line_changed'] = "Number of column has been updated"; 15 $lang['ak_thumbnail_size'] = "Thumbnail size"; 16 $lang['ak_by_line_changed'] = "Thumbnail size has been updated"; 17 18 $lang['ak_event_click'] = "click"; 19 $lang['ak_event_mouseover'] = "mouseover"; 20 $lang['ak_mouse_event'] = "Event to show medium picture."; 21 $lang['ak_mouse_event_changed'] = "Event to show medium picture has been updated."; 22 $lang['ak_thumbnails_loc'] = "Thumbnails location"; 23 $lang['ak_thumbnails_loc_changed'] = "Thumbnails location has been changed"; 24 $lang['top'] = "Top"; 25 $lang['left'] = "Left"; 26 $lang['bottom'] = "Bottom"; 27 $lang['right'] = "Right"; 28 $lang['ak_by_column'] = '(or number of lines for Top/Bottom)'; 29 23 $lang['That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.'] = "That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails."; 24 $lang['Main configuration'] = "Main configuration"; 25 $lang['Applicable categorie(s)'] = "Applicable categorie(s)"; 26 $lang['Applicable category has been updated'] = "Applicable category has been updated"; 27 $lang['Applicable categories have been updated'] = "Applicable categories have been updated"; 28 $lang['Number of thumbnails per page'] = "Number of thumbnails per page"; 29 $lang['Thumbnails per page has been updated'] = "Thumbnails per page has been updated"; 30 $lang['Number of column'] = "Number of column"; 31 $lang['Thumbnail size has been updated'] = "Thumbnail size has been updated"; 32 $lang['Thumbnail size'] = "Thumbnail size"; 33 $lang['click'] = "click"; 34 $lang['mouseover'] = "mouseover"; 35 $lang['Event to show medium picture.'] = "Event to show medium picture."; 36 $lang['Event to show medium picture has been updated.'] = "Event to show medium picture has been updated."; 37 $lang['Thumbnails location'] = "Thumbnails location"; 38 $lang['Thumbnails location has been changed'] = "Thumbnails location has been changed"; 39 $lang['Top'] = "Top"; 40 $lang['Left'] = "Left"; 41 $lang['Bottom'] = "Bottom"; 42 $lang['Right'] = "Right"; 43 $lang['or number of lines for Top/Bottom'] = "or number of lines for Top/Bottom"; 44 $lang['Next image'] = "Next image"; 45 $lang['Next page'] = "Next page"; 46 $lang['Previous image'] = "Previous image"; 47 $lang['Previous page'] = "Previous page"; 30 48 ?> -
extensions/akBookStyle/trunk/language/es_ES/plugin.lang.php
r3932 r5432 1 1 <?php 2 /** admin **/ 3 $lang['ak_title'] = "ak Book Style"; 4 $lang['ak_intro'] = "Este plugin permite administrar una presentación alternativa de su galería con las miniaturas sobre la misma página que una foto medium."; 5 $lang['ak_info'] = ""; 2 // +-----------------------------------------------------------------------+ 3 // | akBookStyle - a plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 // +-----------------------------------------------------------------------+ 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation | 11 // | | 12 // | This program is distributed in the hope that it will be useful, but | 13 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 14 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 // | General Public License for more details. | 16 // | | 17 // | You should have received a copy of the GNU General Public License | 18 // | along with this program; if not, write to the Free Software | 19 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 20 // | USA. | 21 // +-----------------------------------------------------------------------+ 6 22 7 $lang['ak_general_config'] = "Configuración general"; 8 $lang['ak_categories'] = "Máscara de selección sobre el nombre de las categorías (<!--Book--> par défaut)"; 9 $lang['ak_categories_changed'] = "La máscara de selección ha sido modificada."; 10 $lang['ak_by_page'] = "Número miniaturas por página"; 11 $lang['ak_by_page_changed'] = "El número de las miniaturas por página ha sido modificado."; 12 13 $lang['ak_by_line'] = "Número de columnas"; 14 $lang['ak_by_line_changed'] = "El número de columna ha sido modificado"; 15 $lang['ak_thumbnail_size'] = "Talla miniaturas"; 16 $lang['ak_thumbnail_size_changed'] = "La talla miniaturas ha sido modificado."; 17 18 $lang['ak_event_click'] = "clic"; 19 $lang['ak_event_mouseover'] = "sobrevuelo"; 20 $lang['ak_mouse_event'] = "Acontecimiento que pone en marcha la fijación de la imagen."; 21 $lang['ak_mouse_event_changed'] = "El modo de fijación de la imagen ha sido modificado."; 22 23 $lang['ak_thumbnails_loc'] = "Posición de las miniaturas"; 24 $lang['ak_thumbnails_loc_changed'] = "Posición modificada de las miniaturas."; 25 $lang['top'] = "encima"; 26 $lang['left'] = "a la izquierda"; 27 $lang['bottom'] = "abajo"; 28 $lang['right'] = "a la derecha"; 29 $lang['ak_by_column'] = '(o número de líneas, si arriba o abajo)'; 30 23 $lang['That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.'] = "Este plugin permite administrar una presentación alternativa de su galería con las miniaturas sobre la misma página que una foto medium."; 24 $lang['Main configuration'] = "Configuración general"; 25 $lang['Number of thumbnails per page'] = "Número miniaturas por página"; 26 $lang['Thumbnails per page has been updated'] = "El número de las miniaturas por página ha sido modificado."; 27 $lang['Number of column'] = "Número de columnas"; 28 $lang['Thumbnail size has been updated'] = "El número de columna ha sido modificado"; 29 $lang['Thumbnail size'] = "Talla miniaturas"; 30 $lang['click'] = "clic"; 31 $lang['mouseover'] = "sobrevuelo"; 32 $lang['Event to show medium picture.'] = "Acontecimiento que pone en marcha la fijación de la imagen."; 33 $lang['Event to show medium picture has been updated.'] = "El modo de fijación de la imagen ha sido modificado."; 34 $lang['Thumbnails location'] = "Posición de las miniaturas"; 35 $lang['Thumbnails location has been changed'] = "Posición modificada de las miniaturas."; 36 $lang['Top'] = "encima"; 37 $lang['Left'] = "a la izquierda"; 38 $lang['Bottom'] = "abajo"; 39 $lang['Right'] = "a la derecha"; 40 $lang['or number of lines for Top/Bottom'] = "o número de líneas, si arriba o abajo"; 31 41 ?> -
extensions/akBookStyle/trunk/language/fr_FR/plugin.lang.php
r3842 r5432 1 1 <?php 2 /** admin **/ 3 $lang['ak_title'] = "ak Book Style"; 4 $lang['ak_intro'] = "Ce plugin permet de gérer une présentation alternative de votre galerie avec les miniatures sur la même page qu'une photo medium."; 5 $lang['ak_info'] = ""; 2 // +-----------------------------------------------------------------------+ 3 // | akBookStyle - a plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 // +-----------------------------------------------------------------------+ 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation | 11 // | | 12 // | This program is distributed in the hope that it will be useful, but | 13 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 14 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 // | General Public License for more details. | 16 // | | 17 // | You should have received a copy of the GNU General Public License | 18 // | along with this program; if not, write to the Free Software | 19 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 20 // | USA. | 21 // +-----------------------------------------------------------------------+ 6 22 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 13 $lang['ak_by_line'] = "Nombre de colonnes"; 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é."; 17 18 $lang['ak_event_click'] = "clic"; 19 $lang['ak_event_mouseover'] = "survol"; 20 $lang['ak_mouse_event'] = "Evénement déclenchant l'affichage de l'image."; 21 $lang['ak_mouse_event_changed'] = "Le mode d'affichage de l'image a été modifié."; 22 23 $lang['ak_thumbnails_loc'] = "Position des miniatures"; 24 $lang['ak_thumbnails_loc_changed'] = "Position des miniatures modifiée."; 25 $lang['top'] = "au dessus"; 26 $lang['left'] = "à gauche"; 27 $lang['bottom'] = "en bas"; 28 $lang['right'] = "à droite"; 29 $lang['ak_by_column'] = '(ou nombre de lignes, si dessus ou en bas)'; 30 23 $lang['That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.'] = "Ce plugin permet de gérer une présentation alternative de votre galerie avec les miniatures sur la même page qu'une photo medium."; 24 $lang['Main configuration'] = "Configuration générale"; 25 $lang['Applicable categorie(s)'] = "Choix de catégorie(s)"; 26 $lang['Applicable category has been updated'] = "La catégorie sélectionnée a été mise à jour"; 27 $lang['Applicable categories has been updated'] = "Les catégories sélectionnées ont été mises à jour"; 28 $lang['Number of thumbnails per page'] = "Nombre des miniatures par page"; 29 $lang['Thumbnails per page has been updated'] = "Le nombre des miniatures par page a été modifié."; 30 $lang['Number of column'] = "Nombre de colonnes"; 31 $lang['Thumbnail size has been updated'] = "Le nombre de colonne a été modifié"; 32 $lang['Thumbnail size'] = "Taille des miniatures"; 33 $lang['click'] = "clic"; 34 $lang['mouseover'] = "survol"; 35 $lang['Event to show medium picture.'] = "Evénement déclenchant l'affichage de l'image."; 36 $lang['Event to show medium picture has been updated.'] = "Le mode d'affichage de l'image a été modifié."; 37 $lang['Thumbnails location'] = "Position des miniatures"; 38 $lang['Thumbnails location has been changed'] = "Position des miniatures modifiée."; 39 $lang['Top'] = "au dessus"; 40 $lang['Left'] = "à gauche"; 41 $lang['Bottom'] = "en bas"; 42 $lang['Right'] = "à droite"; 43 $lang['or number of lines for Top/Bottom'] = "ou nombre de lignes, si dessus ou en bas"; 44 $lang['Next image'] = "Image suivante"; 45 $lang['Next page'] = "Page suivante"; 46 $lang['Previous image'] = "Image précédente"; 47 $lang['Previous page'] = "Page précédente"; 31 48 ?> -
extensions/akBookStyle/trunk/language/hu_HU/plugin.lang.php
r5000 r5432 1 1 <?php 2 /** admin **/ 3 $lang['ak_title'] = "ak Book Style"; 4 $lang['ak_intro'] = "Ez a bővítmény egy változó bemutatót nyújt a galériáknak. Egész oldalon történő kép és bélyegkép bemutatás lehetőségét adja."; 5 $lang['ak_info'] = ""; 2 // +-----------------------------------------------------------------------+ 3 // | akBookStyle - a plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 // +-----------------------------------------------------------------------+ 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation | 11 // | | 12 // | This program is distributed in the hope that it will be useful, but | 13 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 14 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 // | General Public License for more details. | 16 // | | 17 // | You should have received a copy of the GNU General Public License | 18 // | along with this program; if not, write to the Free Software | 19 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 20 // | USA. | 21 // +-----------------------------------------------------------------------+ 6 22 7 $lang['ak_general_config'] = "Fő konfiguráció"; 8 $lang['ak_categories'] = "Kategória név maszk kiválasztás (<!--Book--> az alapértelmezett)"; 9 $lang['ak_categories_changed'] = "Maszk kiválasztása frissítve."; 10 $lang['ak_by_page'] = "Bélyegképek száma az oldalon"; 11 $lang['ak_by_page_changed'] = "Bélyegképek száma az oldalon frissítve."; 12 13 $lang['ak_by_line'] = "Oszlopok száma"; 14 $lang['ak_by_line_changed'] = "Oszlopok száma frissítve."; 15 $lang['ak_thumbnail_size'] = "Bélyegkép mérete"; 16 $lang['ak_by_line_changed'] = "Bélyegkép mérete frissítve."; 17 18 $lang['ak_event_click'] = "kattintásra"; 19 $lang['ak_event_mouseover'] = "kurzor a képen"; 20 $lang['ak_mouse_event'] = "Közepes kép mutatása."; 21 $lang['ak_mouse_event_changed'] = "Közepes kép megjelenítés módja frissítve."; 22 $lang['ak_thumbnails_loc'] = "Bélyegkép helye"; 23 $lang['ak_thumbnails_loc_changed'] = "Bélyegképek helye megváltozott."; 24 $lang['top'] = "Fent"; 25 $lang['left'] = "Lent"; 26 $lang['bottom'] = "Bal"; 27 $lang['right'] = "Jobb"; 28 $lang['ak_by_column'] = '(vagy a sorok száma ha Fent/Lent)'; 29 23 $lang['That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.'] = "Ez a bővítmény egy változó bemutatót nyújt a galériáknak. Egész oldalon történő kép és bélyegkép bemutatás lehetőségét adja."; 24 $lang['Main configuration'] = "Fő konfiguráció"; 25 $lang['Number of thumbnails per page'] = "Bélyegképek száma az oldalon"; 26 $lang['Thumbnails per page has been updated'] = "Bélyegképek száma az oldalon frissítve."; 27 $lang['Number of column'] = "Oszlopok száma"; 28 $lang['Thumbnail size has been updated'] = "Bélyegkép mérete frissítve."; 29 $lang['Thumbnail size'] = "Bélyegkép mérete"; 30 $lang['click'] = "kattintásra"; 31 $lang['mouseover'] = "kurzor a képen"; 32 $lang['Event to show medium picture.'] = "Közepes kép mutatása."; 33 $lang['Event to show medium picture has been updated.'] = "Közepes kép megjelenítés módja frissítve."; 34 $lang['Thumbnails location'] = "Bélyegkép helye"; 35 $lang['Thumbnails location has been changed'] = "Bélyegképek helye megváltozott."; 36 $lang['Top'] = "Fent"; 37 $lang['Left'] = "Lent"; 38 $lang['Bottom'] = "Bal"; 39 $lang['Right'] = "Jobb"; 40 $lang['or number of lines for Top/Bottom'] = "vagy a sorok száma ha Fent/Lent"; 30 41 ?> -
extensions/akBookStyle/trunk/language/it_IT/plugin.lang.php
r4339 r5432 1 1 <?php 2 /** admin **/ 3 $lang['ak_title'] = "ak Book Style"; 4 $lang['ak_intro'] = "Questo plugin permette di gestire una presentazione alternativa della vostra galleria con le miniature sulla stessa pagina di una foto media."; 5 $lang['ak_info'] = ""; 2 // +-----------------------------------------------------------------------+ 3 // | akBookStyle - a plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 // +-----------------------------------------------------------------------+ 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation | 11 // | | 12 // | This program is distributed in the hope that it will be useful, but | 13 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 14 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 // | General Public License for more details. | 16 // | | 17 // | You should have received a copy of the GNU General Public License | 18 // | along with this program; if not, write to the Free Software | 19 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 20 // | USA. | 21 // +-----------------------------------------------------------------------+ 6 22 7 $lang['ak_general_config'] = "Configurazione generale"; 8 $lang['ak_categories'] = "Maschera di selezione sul nome delle categorie (<!--Book--> di default)"; 9 $lang['ak_categories_changed'] = "La maschera di selezione è stata aggiornato."; 10 $lang['ak_by_page'] = "Numero di miniature per pagina"; 11 $lang['ak_by_page_changed'] = "Il numero di miniature per pagina è stato aggiornato."; 12 13 $lang['ak_by_line'] = "Numero di colonne"; 14 $lang['ak_by_line_changed'] = "Il numero di colonne è stato aggiornato"; 15 $lang['ak_thumbnail_size'] = "Dimenzioni delle miniature"; 16 $lang['ak_by_line_changed'] = "Le dimenzioni delle miniature sono state aggiornate"; 17 18 $lang['ak_event_click'] = "clic"; 19 $lang['ak_event_mouseover'] = "sorvolo"; 20 $lang['ak_mouse_event'] = "Eventi che attivano la visualizzazione di un'immagine."; 21 $lang['ak_mouse_event_changed'] = "Il modo di visualizzazione dell'immagine è stata modificata."; 22 23 $lang['ak_thumbnails_loc'] = "Posizione delle miniature"; 24 $lang['ak_thumbnails_loc_changed'] = "Posizione delle miniature modificate."; 25 $lang['top'] = "sopra"; 26 $lang['left'] = "a sinistra"; 27 $lang['bottom'] = "sotto"; 28 $lang['right'] = "a destra"; 29 $lang['ak_by_column'] = '(o numero di righe se sopra o sotto)'; 30 23 $lang['That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.'] = "Questo plugin permette di gestire una presentazione alternativa della vostra galleria con le miniature sulla stessa pagina di una foto media."; 24 $lang['Main configuration'] = "Configurazione generale"; 25 $lang['Number of thumbnails per page'] = "Numero di miniature per pagina"; 26 $lang['Thumbnails per page has been updated'] = "Il numero di miniature per pagina è stato aggiornato."; 27 $lang['Number of column'] = "Numero di colonne"; 28 $lang['Thumbnail size has been updated'] = "Le dimenzioni delle miniature sono state aggiornate"; 29 $lang['Thumbnail size'] = "Dimenzioni delle miniature"; 30 $lang['click'] = "clic"; 31 $lang['mouseover'] = "sorvolo"; 32 $lang['Event to show medium picture.'] = "Eventi che attivano la visualizzazione di un'immagine."; 33 $lang['Event to show medium picture has been updated.'] = "Il modo di visualizzazione dell'immagine è stata modificata."; 34 $lang['Thumbnails location'] = "Posizione delle miniature"; 35 $lang['Thumbnails location has been changed'] = "Posizione delle miniature modificate."; 36 $lang['Top'] = "sopra"; 37 $lang['Left'] = "a sinistra"; 38 $lang['Bottom'] = "sotto"; 39 $lang['Right'] = "a destra"; 40 $lang['or number of lines for Top/Bottom'] = "o numero di righe se sopra o sotto"; 31 41 ?> -
extensions/akBookStyle/trunk/main.inc.php
r3878 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ … … 23 23 /* 24 24 Plugin Name: akBookStyle 25 Version: 0. 1.025 Version: 0.2.0 26 26 Description: Book style for designers 27 Plugin URI: http:// fr.piwigo.org/ext/extension_links.php?eid=30727 Plugin URI: http://piwigo.org/ext/extension_links.php?eid=307 28 28 Author: nikrou,vdigital 29 29 Author URI: http://www.nikrou.net/ -
extensions/akBookStyle/trunk/maintain.inc.php
r3761 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 6 // | Copyright(C) 2009 vdigital TODO|5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ 8 8 // | This program is free software; you can redistribute it and/or modify | -
extensions/akBookStyle/trunk/public.php
r3876 r5432 3 3 // | akBookStyle - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009 5 // | Copyright(C) 2009-2010 Nicolas Roudaire http://www.nikrou.net | 6 6 // | Copyright(C) 2009 vdigital | 7 7 // +-----------------------------------------------------------------------+ … … 28 28 29 29 $public_content = new akContent($plugin_config); 30 /* Only on category request */ 30 31 31 add_event_handler('loc_begin_index_thumbnails', 32 32 array($public_content, 'loc_begin_index_thumbnails') -
extensions/akBookStyle/trunk/template/admin.tpl
r3842 r5432 1 {html_head} 2 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/admin.css"> 3 {/html_head} 4 1 5 <div class="titrePage"> 2 <h2>{'ak _title'|translate}</h2>6 <h2>{'ak Book Style'|translate}</h2> 3 7 </div> 4 5 <p>6 {'ak_intro'|translate}7 </p>8 9 <p>10 {'ak_info'|@translate}11 </p>12 8 13 9 <form method="post" action="" class="general"> 14 10 <fieldset> 15 <legend>{' ak_general_config'|translate}</legend>11 <legend>{'Main configuration'|translate}</legend> 16 12 <p class="field"> 17 <label>{'ak_categories'|translate} 18 <input type="text" name="ak_categories" value="{$AK_CATEGORIES}"> 13 <label>{'Applicable categorie(s)'|translate} 14 <select name="ak_categories[]" multiple="multiple" size="{$ak_categories|@count|@max:3}"> 15 <option value=""></option> 16 {html_options options=$ALL_CATEGORIES selected=$AK_CATEGORIES} 17 </select> 19 18 </label> 20 19 </p> 21 20 <p class="field"> 22 <label>{' ak_by_page'|translate}21 <label>{'Number of thumbnails per page'|translate} 23 22 <input type="text" name="ak_by_page" value="{$AK_BY_PAGE}"> 24 23 </label> 25 24 </p> 26 25 <p class="field"> 27 <label>{' ak_by_line'|translate}28 <input type="text" name="ak_by_line" value="{$AK_BY_LINE}"> {'ak_by_column'|translate}26 <label>{'Number of column'|translate} 27 <input type="text" name="ak_by_line" value="{$AK_BY_LINE}">({'or number of lines for Top/Bottom'|@translate}) 29 28 </label> 30 29 </p> 31 30 <p class="field"> 32 <label>{' ak_thumbnail_size'|translate}31 <label>{'Thumbnail size'|translate} 33 32 <input type="text" name="ak_thumbnail_size" value="{$AK_THUMBNAIL_SIZE}"> 34 33 </label> 35 34 </p> 36 35 <p class="field"> 37 <label>{' ak_mouse_event'|translate}38 {html_radios name='ak_mouse_event' values=$AK_AVAILABLE_EVENTS output=$AK_EVENTS_LABELS|translate selected=$AK_MOUSE_EVENT}36 <label>{'Event to show medium picture.'|translate} 37 {html_radios name='ak_mouse_event' values=$AK_AVAILABLE_EVENTS output=$AK_EVENTS_LABELS|translate selected=$AK_MOUSE_EVENT} 39 38 </label> 40 39 </p> 41 40 <p class="field"> 42 <label>{' ak_thumbnails_loc'|translate}43 {html_radios name='ak_thumbnails_loc' values=$AK_THUMBNAILS_LOCATIONS output=$AK_THUMBNAILS_LOCATIONS|translate selected=$AK_THUMBNAILS_LOC}41 <label>{'Thumbnails location'|translate} 42 {html_radios name="ak_thumbnails_loc" values=$AK_THUMBNAILS_LOCATIONS_KEYS output=$AK_THUMBNAILS_LOCATIONS_VALUES|translate selected="$AK_THUMBNAILS_LOC"} 44 43 </label> 45 44 </p> … … 48 47 <p><input class="submit" type="submit" name="submit" value="{'Submit'|translate}"></p> 49 48 </form> 50 51 {html_head}52 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_admin_style.css">53 {/html_head} -
extensions/akBookStyle/trunk/template/ak_horizontal.tpl
r3876 r5432 8 8 {/if} 9 9 {if ($smarty.foreach.tn.first) and !empty($navbar) and isset($navbar.URL_PREV)} 10 <td class="ncol"rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation *}10 <td rowspan="{$AK_BY_LINE}">{* Left thumbnail navigation *} 11 11 <div class="navbar fright"> 12 <a class="navButton" href="{$navbar.URL_PREV}" title="{'previous_page'|@translate}">13 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{' previous_page'|@translate}">12 <a rel="previous" class="navButton" href="{$navbar.URL_PREV}" title="{'Previous page'|@translate}"> 13 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous page'|@translate}"> 14 14 </a> 15 15 </div> 16 16 </td> 17 17 {/if} 18 <td class="ncol ">18 <td class="ncol{if ($smarty.foreach.tn.first)} selected{/if}"> 19 19 <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 20 20 <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> … … 28 28 {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )} 29 29 {assign var=done value=true} 30 <td class="ncol"rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *}30 <td rowspan="{$AK_BY_LINE}">{* Right thumbnail navigation *} 31 31 <div class="navbar fleft"> 32 <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}">33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{' next_page'|@translate}">32 <a rel="next" class="navButton" href="{$navbar.URL_NEXT}" title="{'Next page'|@translate}"> 33 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next page'|@translate}"> 34 34 </a> 35 35 </div> -
extensions/akBookStyle/trunk/template/ak_reloaded_image.tpl
r3876 r5432 4 4 <tr class="nline"> 5 5 <td class="ncol"> 6 <a id="akPreviousPicture" class=" {if empty($AK_PREVIOUS)}hide {/if}load navButton" href="{$AK_PREVIOUS}" title="{'previous_page'|@translate}{* : {$AK_PREVIOUS.TITLE}*}" rel="prev">7 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{' previous_page'|@translate}">6 <a id="akPreviousPicture" class="load navButton" href="{$AK_PREVIOUS}" title="{'Previous image'|@translate}{* : {$AK_PREVIOUS.TITLE}*}" rel="prev"> 7 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous image'|@translate}"> 8 8 </a> 9 9 </td> … … 13 13 </td> 14 14 <td class="ncol"> 15 <a id="akNextPicture" class=" {if empty($AK_NEXT)}hide {/if}load navButton" href="{$AK_NEXT}" title="{'next_page'|@translate}{* : {$AK_NEXT.TITLE}*}" rel="next">16 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{' next_page'|@translate}">15 <a id="akNextPicture" class="load navButton" href="{$AK_NEXT}" title="{'Next image'|@translate}{* : {$AK_NEXT.TITLE}*}" rel="next"> 16 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next image'|@translate}"> 17 17 </a> 18 18 </td> -
extensions/akBookStyle/trunk/template/ak_thumbnails.tpl
r3860 r5432 1 {* variables to be set 2 => by plugin: 3 $AK_BY_LINE : thumbnails columns 4 $thumbnails[*]['AK_URL']): additional url to reloader ./picloader.php?cat=xx/yyy 5 $AK_NAV_PREV (explode($NAV_BAR)): url to previous index (save it in session) 6 $AK_NAV_NEXT (explode($NAV_BAR)): url to next index (save it in session) 7 Save all current image ids in session to reduce the reloader workload. 8 9 => by plugin and reloader: 10 $AK_PIC_SRC : src of new current pic 11 $AK_PIC_ALT : alt of new current pic 12 $AK_PIC_TITLE : title of new current pic 13 14 $AK_PREVIOUS['U_PIC'] : additional url to reloader of previous pic 15 (or url to previous index, taken from session) 16 $AK_PREVIOUS['load'] = if reloadable 'load ' else '' 17 $AK_PREVIOUS['TITLE'] : title of previous pic 18 19 $AK_NEXT['U_PIC'] : additional url to reloader of next pic 20 (or url to next index, taken from session) 21 $AK_NEXT['load'] = if reloadable 'load ' else '' 22 $AK_NEXT['TITLE'] : title of next pic 23 24 $AK_THUMBNAILS_LOC : Thumbnails location 25 $AK_SHOW_OVER : hover or click 26 *} 1 {known_script id="jquery" src=$ROOT_URL|cat:"themes/default/js/jquery.packed.js"} 2 {html_head} 3 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/style.css"> 4 <script type="text/javascript"> 5 var dir_thumbnail = '{$AK_DIR_THUMBNAIL}'; 6 var prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}'; 7 var ak_mouse_event = '{$AK_MOUSE_EVENT}'; 8 </script> 9 <script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script> 10 {/html_head} 27 11 28 12 {assign var=temp value=$TITLE|@strripos:'<a href='} … … 33 17 {assign var=akUP value=$akUP|@substr:0:$temp} 34 18 {assign var=akUP value=$akUP|@substr:9} 19 35 20 <div id="akBack"> 36 21 <a id="akHome" class="navButton" href="{$SCRIPT_NAME}" 37 title="{' home'|@translate}"22 title="{'Home'|@translate}" 38 23 rel="start"> 39 24 <img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" 40 class="button" alt="{' home'|@translate}">25 class="button" alt="{'Home'|@translate}"> 41 26 </a> 42 27 {if !empty($akUP)} 43 28 <a id="akUp" class="navButton" href="{$akUP}" 44 title="{' thumbnails'|@translate}"29 title="{'Thumbnails'|@translate}" 45 30 rel="up"> 46 31 <img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" 47 class="button" alt="{' thumbnails'|@translate}">32 class="button" alt="{'Thumbnails'|@translate}"> 48 33 </a> 49 34 {/if} … … 79 64 {/if} 80 65 81 {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"}82 {html_head}83 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css">84 <script type="text/javascript">85 var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}';var ak_mouse_event = '{$AK_MOUSE_EVENT}';86 </script>87 <script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script>88 {/html_head} -
extensions/akBookStyle/trunk/template/ak_vertical.tpl
r3876 r5432 2 2 <table class="thumbnails"> 3 3 <tr class="nline"> {* Top thumbnail navigation *} 4 <td c lass="ncol" colspan="{$AK_BY_LINE}">4 <td colspan="{$AK_BY_LINE}"> 5 5 {if !empty($navbar) and isset($navbar.URL_PREV)} 6 6 <div class="navbar fleft"> 7 <a class="navButton" href="{$navbar.URL_PREV}" title="{'previous_page'|@translate}">8 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{' previous_page'|@translate}">7 <a rel="previous" class="navButton" href="{$navbar.URL_PREV}" title="{'Previous page'|@translate}"> 8 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous page'|@translate}"> 9 9 </a> 10 10 </div> … … 12 12 {if !empty($navbar) and isset($navbar.URL_NEXT)} 13 13 <div class="navbar fright"> 14 <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}">15 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{' next_page'|@translate}">14 <a rel="next" class="navButton" href="{$navbar.URL_NEXT}" title="{'Next page'|@translate}"> 15 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next page'|@translate}"> 16 16 </a> 17 17 </div> … … 23 23 <tr class="nline"> 24 24 {/if} 25 <td class="ncol ">25 <td class="ncol{if ($smarty.foreach.tn.first)} selected{/if}"> 26 26 <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 27 27 <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> … … 37 37 {/foreach} 38 38 <tr class="nline"> {* Bottom thumbnail navigation *} 39 <td c lass="ncol" colspan="{$AK_BY_LINE}">39 <td colspan="{$AK_BY_LINE}"> 40 40 {if !empty($navbar) and isset($navbar.URL_PREV)} 41 41 <div class="navbar fleft"> 42 <a class="navButton" href="{$navbar.URL_PREV}" title="{'previous_page'|@translate}">43 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{' previous_page'|@translate}">42 <a rel="previous" class="navButton" href="{$navbar.URL_PREV}" title="{'Previous page'|@translate}"> 43 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous page'|@translate}"> 44 44 </a> 45 45 </div> … … 47 47 {if !empty($navbar) and isset($navbar.URL_NEXT)} 48 48 <div class="navbar fright"> 49 <a class="navButton" href="{$navbar.URL_NEXT}" title="{'next_page'|@translate}">50 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{' next_page'|@translate}">49 <a rel="next" class="navButton" href="{$navbar.URL_NEXT}" title="{'Next page'|@translate}"> 50 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next page'|@translate}"> 51 51 </a> 52 52 </div>
Note: See TracChangeset
for help on using the changeset viewer.