Changeset 5432


Ignore:
Timestamp:
03/28/10 21:46:21 (10 years ago)
Author:
nikrou
Message:

html select tag for applicable categories
show selected thumbnail
prepare localization for gettext

Location:
extensions/akBookStyle/trunk
Files:
3 added
4 deleted
21 edited
2 moved

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/CHANGELOG

    r3878 r5432  
     1akBookStyle 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 
    18akBookStyle 0.1.0 - 2009-09-19 
    29================================ 
  • 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  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
     
    2525} 
    2626 
    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'); 
    3233 
    3334$me = get_plugin_data($plugin_id); 
     
    3738  if (!empty($_POST['ak_categories']) && $_POST['ak_categories']!=$me->ak_categories) { 
    3839    $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']))); 
    4144    $save_config = true; 
    4245  } 
     
    4447  if (!empty($_POST['ak_by_page']) && intval($_POST['ak_by_page'])!=$me->ak_by_page) { 
    4548    $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')); 
    4750    $save_config = true; 
    4851  } 
     
    5053  if (!empty($_POST['ak_by_line']) && intval($_POST['ak_by_line'])!=$me->ak_by_line) { 
    5154    $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')); 
    5356    $save_config = true; 
    5457  } 
     
    5659  if (!empty($_POST['ak_thumbnail_size']) && $_POST['ak_thumbnail_size']!=$me->ak_thumbnail_size) { 
    5760    $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')); 
    5962    $save_config = true; 
    6063  } 
    6164 
    6265  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.')); 
    6572    $save_config = true; 
    6673  } 
    6774 
    6875  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')); 
    7181    $save_config = true; 
    7282  } 
     
    7686  } 
    7787} 
     88 
     89$query = ' 
     90SELECT id,name 
     91  FROM '.CATEGORIES_TABLE; 
     92 
     93$all_categories = simple_hash_from_query($query, 'id', 'name'); 
     94 
    7895$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);  
    8098$GLOBALS['template']->assign('AK_CATEGORIES', $me->ak_categories);  
    8199$GLOBALS['template']->assign('AK_BY_PAGE', $me->ak_by_page);  
     
    86104$GLOBALS['template']->assign('AK_EVENTS_LABELS', array_values($MouseEvents));  
    87105$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));  
    89108$GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 
    90109?> 
  • extensions/akBookStyle/trunk/css/style.css

    r5000 r5432  
    2424  width: 24px; 
    2525  padding: 200px 0 0 0; 
     26} 
     27 
     28td.ncol {  
     29  padding: 2px; 
     30} 
     31 
     32td table.thumbnails tr td.selected, td table.thumbnails tr td.ncol:hover {  
     33  background-color: #FF0000; 
     34} 
     35 
     36td 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; 
    2641} 
    2742 
  • extensions/akBookStyle/trunk/default_values.inc.php

    r3843 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
  • extensions/akBookStyle/trunk/include/akConfig.class.php

    r3802 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
  • extensions/akBookStyle/trunk/include/akContent.class.php

    r3877 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
     
    4242    global $page; 
    4343 
    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; 
    4848        $page['nb_image_page'] = $this->plugin_config->ak_by_page; 
    4949      } 
     50      else 
     51      { 
     52        $this->applicable = false; 
     53      }       
    5054    } 
    5155  } 
     
    5357  public function loc_begin_index_thumbnails($images) { 
    5458    global $template; 
    55  
     59     
    5660    if ($this->applicable === false) return; 
    5761    $this->category_url = make_index_url(array('section' => 'category', 
     
    6569                                      
    6670    $this->current_picture = $this->getPictureId($images); 
    67  
    6871    $template->set_filenames(array('index_thumbnails'=> AK_PLUGIN_TEMPLATE . '/ak_thumbnails.tpl')); 
    6972    $template->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS); 
     
    8386    $template->assign('AK_NEXT', $this->getNextPicture($this->current_picture, $images)); 
    8487    $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     
    8793  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; 
    8999    foreach ($tpl_vars as &$tpl_var) { 
    90100      list($thumbnail_width, $thumbnail_height) = getimagesize($tpl_var['TN_SRC']); 
     
    95105      $tpl_var['CLIP_BOTTOM'] = round($thumbnail_y_center + $this->plugin_config->ak_thumbnail_size/2); 
    96106      $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      } 
    97116    } 
    98117 
     
    103122    if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])  
    104123        && ($_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')) {       
    105       header("Content-Type: application/json"); 
    106124 
    107125      $response = array(); 
     
    121139        $response['AK_NEXT'] = $tpl_vars['next']['url']; 
    122140      } 
     141      $_SESSION['ak_previous_image'] = $tpl_vars['current']['id']; 
     142      header("Content-Type: application/json"); 
    123143      echo json_encode($response); 
    124144      exit(); 
  • extensions/akBookStyle/trunk/init.php

    r3787 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
  • extensions/akBookStyle/trunk/js/ak_jquery-load.js

    r3876 r5432  
    22    $("a.load") 
    33      .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 
    410          $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); 
    1229 
    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          } 
    3349          return false; 
    3450        }); 
  • extensions/akBookStyle/trunk/language/en_UK/plugin.lang.php

    r3842 r5432  
    11<?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// +-----------------------------------------------------------------------+ 
    622 
    7 $lang['ak_general_config'] = "Main configuration"; 
    8 $lang['ak_categories'] = "Category name selection mask (&lt;!--Book--&gt; 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"; 
    3048?> 
  • extensions/akBookStyle/trunk/language/es_ES/plugin.lang.php

    r3932 r5432  
    11<?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// +-----------------------------------------------------------------------+ 
    622 
    7 $lang['ak_general_config'] = "Configuración general"; 
    8 $lang['ak_categories'] = "Máscara de selección sobre el nombre de las categorías (&lt;!--Book--&gt; 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"; 
    3141?> 
  • extensions/akBookStyle/trunk/language/fr_FR/plugin.lang.php

    r3842 r5432  
    11<?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// +-----------------------------------------------------------------------+ 
    622 
    7 $lang['ak_general_config'] = "Configuration générale"; 
    8 $lang['ak_categories'] = "Masque de sélection sur le nom des catégories (&lt;!--Book--&gt; 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"; 
    3148?> 
  • extensions/akBookStyle/trunk/language/hu_HU/plugin.lang.php

    r5000 r5432  
    11<?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// +-----------------------------------------------------------------------+ 
    622 
    7 $lang['ak_general_config'] = "Fő konfiguráció"; 
    8 $lang['ak_categories'] = "Kategória név maszk kiválasztás (&lt;!--Book--&gt; 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"; 
    3041?> 
  • extensions/akBookStyle/trunk/language/it_IT/plugin.lang.php

    r4339 r5432  
    11<?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// +-----------------------------------------------------------------------+ 
    622 
    7 $lang['ak_general_config'] = "Configurazione generale"; 
    8 $lang['ak_categories'] = "Maschera di selezione sul nome delle categorie (&lt;!--Book--&gt; 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"; 
    3141?> 
  • extensions/akBookStyle/trunk/main.inc.php

    r3878 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
     
    2323/* 
    2424Plugin Name: akBookStyle 
    25 Version: 0.1.0 
     25Version: 0.2.0 
    2626Description: Book style for designers 
    27 Plugin URI: http://fr.piwigo.org/ext/extension_links.php?eid=307 
     27Plugin URI: http://piwigo.org/ext/extension_links.php?eid=307 
    2828Author: nikrou,vdigital 
    2929Author URI: http://www.nikrou.net/ 
  • extensions/akBookStyle/trunk/maintain.inc.php

    r3761 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
    6 // | Copyright(C) 2009      vdigital    TODO                               | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
     6// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
    88// | This program is free software; you can redistribute it and/or modify  | 
  • extensions/akBookStyle/trunk/public.php

    r3876 r5432  
    33// | akBookStyle  - a plugin for Piwigo                                    | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2009      Nicolas Roudaire        http://www.nikrou.net  | 
     5// | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  | 
    66// | Copyright(C) 2009      vdigital                                       | 
    77// +-----------------------------------------------------------------------+ 
     
    2828 
    2929$public_content = new akContent($plugin_config); 
    30 /* Only on category request */ 
     30 
    3131add_event_handler('loc_begin_index_thumbnails',  
    3232                  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 
    15<div class="titrePage"> 
    2   <h2>{'ak_title'|translate}</h2> 
     6  <h2>{'ak Book Style'|translate}</h2> 
    37</div> 
    4  
    5 <p> 
    6 {'ak_intro'|translate} 
    7 </p> 
    8  
    9 <p> 
    10 {'ak_info'|@translate} 
    11 </p> 
    128 
    139<form method="post" action="" class="general"> 
    1410<fieldset> 
    15   <legend>{'ak_general_config'|translate}</legend> 
     11  <legend>{'Main configuration'|translate}</legend> 
    1612  <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> 
    1918    </label> 
    2019  </p> 
    2120  <p class="field"> 
    22     <label>{'ak_by_page'|translate} 
     21    <label>{'Number of thumbnails per page'|translate} 
    2322      <input type="text" name="ak_by_page" value="{$AK_BY_PAGE}">  
    2423    </label> 
    2524  </p> 
    2625  <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}) 
    2928    </label> 
    3029  </p> 
    3130  <p class="field"> 
    32     <label>{'ak_thumbnail_size'|translate} 
     31    <label>{'Thumbnail size'|translate} 
    3332      <input type="text" name="ak_thumbnail_size" value="{$AK_THUMBNAIL_SIZE}"> 
    3433    </label> 
    3534  </p> 
    3635  <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} 
    3938    </label> 
    4039  </p> 
    4140  <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"} 
    4443    </label> 
    4544  </p> 
     
    4847<p><input class="submit" type="submit" name="submit" value="{'Submit'|translate}"></p> 
    4948</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  
    88      {/if} 
    99      {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 *} 
    1111            <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}"> 
    1414              </a>        
    1515            </div>  
    1616          </td> 
    1717      {/if} 
    18       <td class="ncol"> 
     18      <td class="ncol{if ($smarty.foreach.tn.first)} selected{/if}"> 
    1919        <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 
    2020          <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"> 
     
    2828      {if ( !empty($navbar) and isset($navbar.URL_NEXT) and !isset($done) )} 
    2929      {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 *} 
    3131        <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}"> 
    3434          </a>  
    3535        </div>  
  • extensions/akBookStyle/trunk/template/ak_reloaded_image.tpl

    r3876 r5432  
    44    <tr class="nline"> 
    55      <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}"> 
    88        </a> 
    99      </td> 
     
    1313      </td> 
    1414      <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}"> 
    1717        </a> 
    1818      </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"> 
     5var dir_thumbnail = '{$AK_DIR_THUMBNAIL}'; 
     6var prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}'; 
     7var 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} 
    2711 
    2812{assign var=temp value=$TITLE|@strripos:'<a href='} 
     
    3317{assign var=akUP value=$akUP|@substr:0:$temp} 
    3418{assign var=akUP value=$akUP|@substr:9} 
     19 
    3520<div id="akBack"> 
    3621  <a id="akHome" class="navButton" href="{$SCRIPT_NAME}"  
    37    title="{'home'|@translate}"  
     22   title="{'Home'|@translate}"  
    3823   rel="start"> 
    3924  <img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png"  
    40        class="button" alt="{'home'|@translate}"> 
     25       class="button" alt="{'Home'|@translate}"> 
    4126  </a> 
    4227  {if !empty($akUP)} 
    4328  <a id="akUp" class="navButton" href="{$akUP}"  
    44    title="{'thumbnails'|@translate}"  
     29   title="{'Thumbnails'|@translate}"  
    4530   rel="up"> 
    4631  <img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png"  
    47        class="button" alt="{'thumbnails'|@translate}"> 
     32       class="button" alt="{'Thumbnails'|@translate}"> 
    4833  </a> 
    4934  {/if} 
     
    7964{/if} 
    8065 
    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  
    22      <table class="thumbnails"> 
    33        <tr class="nline"> {* Top thumbnail navigation *} 
    4           <td class="ncol" colspan="{$AK_BY_LINE}"> 
     4          <td colspan="{$AK_BY_LINE}"> 
    55          {if !empty($navbar) and isset($navbar.URL_PREV)} 
    66            <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}"> 
    99              </a>        
    1010            </div>  
     
    1212          {if !empty($navbar) and isset($navbar.URL_NEXT)} 
    1313            <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}"> 
    1616              </a>  
    1717            </div>  
     
    2323        <tr class="nline"> 
    2424          {/if} 
    25           <td class="ncol"> 
     25          <td class="ncol{if ($smarty.foreach.tn.first)} selected{/if}"> 
    2626            <div class="clipwrapper" style="width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> 
    2727              <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"> 
     
    3737        {/foreach} 
    3838        <tr class="nline">  {* Bottom thumbnail navigation *} 
    39           <td class="ncol" colspan="{$AK_BY_LINE}"> 
     39          <td colspan="{$AK_BY_LINE}"> 
    4040          {if !empty($navbar) and isset($navbar.URL_PREV)} 
    4141            <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}"> 
    4444              </a>        
    4545            </div>  
     
    4747          {if !empty($navbar) and isset($navbar.URL_NEXT)} 
    4848            <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}"> 
    5151              </a>  
    5252            </div>  
Note: See TracChangeset for help on using the changeset viewer.