Changeset 10975


Ignore:
Timestamp:
May 21, 2011, 3:19:26 PM (10 years ago)
Author:
nikrou
Message:

Update to make plugin compatible with piwigo 2.2

Location:
extensions/akBookStyle/trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/CHANGELOG

    r9287 r10975  
     1akBookStyle 0.4.0 - 2011-05-21
     2================================
     3* Make plugin compatibile with piwigo 2.2
     4
    15akBookStyle 0.3.1 - 2011-02-19
    26================================
  • extensions/akBookStyle/trunk/MANIFEST

    r9285 r10975  
     1akBookStyle/js/ak_jquery-load.js
     2akBookStyle/include/akConfig.class.php
     3akBookStyle/include/akContent.class.php
     4akBookStyle/maintain.inc.php
    15akBookStyle/MANIFEST
    2 akBookStyle/maintain.inc.php
    3 akBookStyle/rsync_exclude.txt
    4 akBookStyle/template/ak_thumbnails.tpl
    5 akBookStyle/template/ak_horizontal.tpl
    6 akBookStyle/template/ak_vertical.tpl
    7 akBookStyle/template/admin.tpl
    8 akBookStyle/template/ak_reloaded_image.tpl
    9 akBookStyle/js/ak_jquery-load.js
     6akBookStyle/init.php
    107akBookStyle/main.inc.php
    11 akBookStyle/default_values.inc.php
     8akBookStyle/COPYING
     9akBookStyle/language/es_ES/plugin.lang.php
     10akBookStyle/language/es_ES/index.php
     11akBookStyle/language/es_ES/description.txt
     12akBookStyle/language/en_UK/plugin.lang.php
     13akBookStyle/language/en_UK/index.php
     14akBookStyle/language/de_DE/plugin.lang.php
     15akBookStyle/language/de_DE/index.php
     16akBookStyle/language/de_DE/description.txt
     17akBookStyle/language/lv_LV/plugin.lang.php
     18akBookStyle/language/lv_LV/description.txt
     19akBookStyle/language/cs_CZ/plugin.lang.php
     20akBookStyle/language/no_NO/plugin.lang.php
     21akBookStyle/language/no_NO/index.php
     22akBookStyle/language/no_NO/description.txt
     23akBookStyle/language/it_IT/plugin.lang.php
     24akBookStyle/language/it_IT/index.php
     25akBookStyle/language/it_IT/description.txt
     26akBookStyle/language/hu_HU/plugin.lang.php
     27akBookStyle/language/hu_HU/index.php
     28akBookStyle/language/hu_HU/description.txt
     29akBookStyle/language/fr_FR/plugin.lang.php
    1230akBookStyle/language/fr_FR/index.php
    1331akBookStyle/language/fr_FR/description.txt
    14 akBookStyle/language/fr_FR/plugin.lang.php
    15 akBookStyle/language/de_DE/index.php
    16 akBookStyle/language/de_DE/description.txt
    17 akBookStyle/language/de_DE/plugin.lang.php
    18 akBookStyle/language/no_NO/index.php
    19 akBookStyle/language/no_NO/description.txt
    20 akBookStyle/language/no_NO/plugin.lang.php
     32akBookStyle/language/templates/plugin.lang.php
    2133akBookStyle/language/templates/index.php
    22 akBookStyle/language/templates/plugin.lang.php
    23 akBookStyle/language/en_UK/index.php
    24 akBookStyle/language/en_UK/plugin.lang.php
    25 akBookStyle/language/lv_LV/description.txt
    26 akBookStyle/language/lv_LV/plugin.lang.php
    27 akBookStyle/language/it_IT/index.php
    28 akBookStyle/language/it_IT/description.txt
    29 akBookStyle/language/it_IT/plugin.lang.php
    30 akBookStyle/language/es_ES/index.php
    31 akBookStyle/language/es_ES/description.txt
    32 akBookStyle/language/es_ES/plugin.lang.php
    33 akBookStyle/language/cs_CZ/plugin.lang.php
    34 akBookStyle/language/hu_HU/index.php
    35 akBookStyle/language/hu_HU/description.txt
    36 akBookStyle/language/hu_HU/plugin.lang.php
     34akBookStyle/css/admin.css
     35akBookStyle/css/style.css
     36akBookStyle/public.php
     37akBookStyle/admin.php
    3738akBookStyle/CHANGELOG
    38 akBookStyle/include/akContent.class.php
    39 akBookStyle/include/akConfig.class.php
    40 akBookStyle/admin.php
    41 akBookStyle/Makefile
    42 akBookStyle/COPYING
    43 akBookStyle/css/style.css
    44 akBookStyle/css/admin.css
    45 akBookStyle/init.php
    46 akBookStyle/public.php
     39akBookStyle/default_values.inc.php
     40akBookStyle/template/admin.tpl
     41akBookStyle/template/ak_horizontal.tpl
     42akBookStyle/template/ak_reloaded_image.tpl
     43akBookStyle/template/ak_vertical.tpl
     44akBookStyle/template/ak_thumbnails.tpl
  • extensions/akBookStyle/trunk/admin.php

    r9271 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2727load_language('plugin.lang', AK_PLUGIN_LANG);
    2828
    29 $ThumbnailsLocations = array('top' => 'Top',
    30                              'left' => 'Left',
    31                              'bottom' => 'Bottom',
    32                              'right' => 'Right');
    33 $MouseEvents = array('click' => 'Click',
    34                      'mouseover' => 'Mouseover');
     29$ThumbnailsLocations = array('top' => l10n('Top'),
     30                             'left' => l10n('Left'),
     31                             'bottom' => l10n('Bottom'),
     32                             'right' => l10n('Right')
     33                             );
     34$MouseEvents = array('click' => l10n('Click'),
     35                     'mouseover' => l10n('Mouseover')
     36                     );
    3537
    3638$me = get_plugin_data($plugin_id);
     
    4042  if (!empty($_POST['ak_categories']) && $_POST['ak_categories']!=$me->ak_categories) {
    4143    $me->ak_categories = $_POST['ak_categories'];
    42     array_push($GLOBALS['page']['infos'],
    43                l10n_dec('Applicable category has been updated',
    44                         'Applicable categories have been updated',
    45                         count($_POST['ak_categories'])));
     44    $page['infos'][] = l10n_dec('Applicable category has been updated',
     45                                'Applicable categories have been updated',
     46                                count($_POST['ak_categories'])
     47                                );
    4648    $save_config = true;
    4749  }
     
    4951  if (!empty($_POST['ak_by_page']) && intval($_POST['ak_by_page'])!=$me->ak_by_page) {
    5052    $me->ak_by_page = intval($_POST['ak_by_page']);
    51     array_push($GLOBALS['page']['infos'], l10n('Thumbnails per page has been updated'));
     53    $page['infos'][] = l10n('Thumbnails per page has been updated');
    5254    $save_config = true;
    5355  }
     
    5557  if (!empty($_POST['ak_by_line']) && intval($_POST['ak_by_line'])!=$me->ak_by_line) {
    5658    $me->ak_by_line = intval($_POST['ak_by_line']);
    57     array_push($GLOBALS['page']['infos'], l10n('Number of column has been updated'));
     59    $page['infos'][] = l10n('Number of column has been updated');
    5860    $save_config = true;
    5961  }
     
    6163  if (!empty($_POST['ak_thumbnail_size']) && $_POST['ak_thumbnail_size']!=$me->ak_thumbnail_size) {
    6264    $me->ak_thumbnail_size = (int) $_POST['ak_thumbnail_size'];
    63     array_push($GLOBALS['page']['infos'], l10n('Thumbnail size has been updated'));
     65    $page['infos'][] = l10n('Thumbnail size has been updated');
    6466    $save_config = true;
    6567  }
     
    7173      $me->ak_mouse_event = 'click';
    7274    }
    73     array_push($GLOBALS['page']['infos'], l10n('Event to show medium picture has been updated.'));
     75    $page['infos'][] = l10n('Event to show medium picture has been updated.');
    7476    $save_config = true;
    7577  }
     
    8082    } else {
    8183      $me->ak_thumbnails_loc = 'left';    }
    82     array_push($GLOBALS['page']['infos'], l10n('Thumbnails location has been changed'));
     84    $page['infos'][] = l10n('Thumbnails location has been changed');
    8385    $save_config = true;
    8486  }
     
    9597$all_categories = simple_hash_from_query($query, 'id', 'name');
    9698
    97 $GLOBALS['template']->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl'));
    98 $GLOBALS['template']->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS);
    99 $GLOBALS['template']->assign('ALL_CATEGORIES', $all_categories);
    100 $GLOBALS['template']->assign('AK_CATEGORIES', $me->ak_categories);
    101 $GLOBALS['template']->assign('AK_BY_PAGE', $me->ak_by_page);
    102 $GLOBALS['template']->assign('AK_BY_LINE', $me->ak_by_line);
    103 $GLOBALS['template']->assign('AK_THUMBNAIL_SIZE', $me->ak_thumbnail_size);
    104 $GLOBALS['template']->assign('AK_MOUSE_EVENT', $me->ak_mouse_event);
    105 $GLOBALS['template']->assign('AK_AVAILABLE_EVENTS', array_keys($MouseEvents));
    106 $GLOBALS['template']->assign('AK_EVENTS_LABELS', array_values($MouseEvents));
    107 $GLOBALS['template']->assign('AK_THUMBNAILS_LOC', $me->ak_thumbnails_loc);
    108 $GLOBALS['template']->assign('AK_THUMBNAILS_LOCATIONS_KEYS', array_keys($ThumbnailsLocations));
    109 $GLOBALS['template']->assign('AK_THUMBNAILS_LOCATIONS_VALUES', array_values($ThumbnailsLocations));
    110 $GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     99$template->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl'));
     100$template->assign('AK_PLUGIN_CSS', AK_PLUGIN_CSS);
     101$template->assign('ALL_CATEGORIES', $all_categories);
     102$template->assign('AK_CATEGORIES', $me->ak_categories);
     103$template->assign('AK_BY_PAGE', $me->ak_by_page);
     104$template->assign('AK_BY_LINE', $me->ak_by_line);
     105$template->assign('AK_THUMBNAIL_SIZE', $me->ak_thumbnail_size);
     106$template->assign('AK_EVENT', $me->ak_mouse_event);
     107$template->assign('AK_EVENTS', $MouseEvents);
     108$template->assign('AK_THUMBNAILS_LOC', $me->ak_thumbnails_loc);
     109$template->assign('AK_THUMBNAILS_LOCATIONS', $ThumbnailsLocations);
     110$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    111111?>
  • extensions/akBookStyle/trunk/include/akContent.class.php

    r10863 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    8989    $template->assign('AK_THUMBNAILS_LOC', $this->plugin_config->ak_thumbnails_loc);
    9090    $template->assign('AK_PIC_SRC', get_image_url($images[$this->current_picture]));
    91 
    9291    $template->assign('AK_NEXT', $this->getNextPicture($this->current_picture, $images));
    9392    $template->assign('AK_PREVIOUS', $this->getPreviousPicture($this->current_picture, $images));
     
    103102
    104103    $selected_one = false;
    105     foreach ($tpl_vars as &$tpl_var) {
    106       list($thumbnail_width, $thumbnail_height) = getimagesize($tpl_var['TN_SRC']);
     104    foreach ($tpl_vars as $i => &$tpl_var) {
     105      list($thumbnail_width, $thumbnail_height) = getimagesize(get_thumbnail_path($images[$i]));
    107106      $thumbnail_x_center = $thumbnail_width/2;
    108107      $thumbnail_y_center = $thumbnail_height/2;
     
    164163  private function getPictureId($images) {
    165164    if ($GLOBALS['conf']['question_mark_in_urls']==false and
    166       isset($_SERVER["PATH_INFO"]) and !empty($_SERVER["PATH_INFO"]) ) {
    167       $rewritten = $_SERVER["PATH_INFO"];
     165      isset($_SERVER['PATH_INFO']) and !empty($_SERVER['PATH_INFO']) ) {
     166      $rewritten = $_SERVER['PATH_INFO'];
    168167      $rewritten = str_replace('//', '/', $rewritten);
    169168    } else {
  • extensions/akBookStyle/trunk/js/ak_jquery-load.js

    r10863 r10975  
    1818
    1919          $a = $(this);
    20           next_thumbnail = $('table.thumbnails a[href='+$(this).attr('href')+']');         
     20          next_thumbnail = $('table.thumbnails a[href="'+$(this).attr('href')+'"]');
    2121          if (next_thumbnail.length==0) {
    2222            if ($a.attr('id')=='akNextPicture') {
     
    3131          } else {
    3232            next_thumbnail.parent().parent().parent().addClass('selected');
    33             try {
    34               $.get($a.attr('href'),{},
    35                     function success(data) {               
    36                       $('#akPicture')
    37                         .attr('src', data.AK_PIC_SRC)
    38                         .attr('alt', data.AK_PIC_ALT)
    39                         .attr('title', data.AK_PIC_TITLE);
    40 
    41                       if (data.AK_PREVIOUS) {
    42                         $('#akPreviousPicture')
    43                           .removeClass('hide')
    44                           .attr('href', data.AK_PREVIOUS);
    45                       } else {
    46                         $('#akPreviousPicture').addClass('hide');
    47                       }
    48                       if (data.AK_NEXT) {
    49                         $('#akNextPicture')
    50                           .removeClass('hide')
    51                           .attr('href', data.AK_NEXT);
    52                       } else {
    53                         $('#akNextPicture').addClass('hide');
    54                       }
    55                       $a.click(function(e) { e.preventDefault();});
    56                     },
    57                     'json');       
    58             } catch (e) {}
     33            $.get($a.attr('href'),{},
     34                  function success(data) {
     35                    $('#akPicture')
     36                      .attr('src', data.AK_PIC_SRC)
     37                      .attr('alt', data.AK_PIC_ALT)
     38                      .attr('title', data.AK_PIC_TITLE);
     39                   
     40                    if (data.AK_PREVIOUS) {
     41                      $('#akPreviousPicture')
     42                        .removeClass('hide')
     43                        .attr('href', data.AK_PREVIOUS);
     44                    } else {
     45                      $('#akPreviousPicture').addClass('hide');
     46                    }
     47                    if (data.AK_NEXT) {
     48                      $('#akNextPicture')
     49                        .removeClass('hide')
     50                        .attr('href', data.AK_NEXT);
     51                    } else {
     52                      $('#akNextPicture').addClass('hide');
     53                    }
     54                    $a.click(function(e) { e.preventDefault();});
     55                  },
     56                  'json');         
    5957          }
    6058          return false;
  • extensions/akBookStyle/trunk/language/cs_CZ/plugin.lang.php

    r9271 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    3131$lang['Thumbnail size has been updated'] = "Velikost náhledù byla aktualizována";
    3232$lang['Thumbnail size'] = "Velikost náhledù";
    33 $lang['click'] = "klik";
    34 $lang['mouseover'] = "pøejetí myší";
     33$lang['Click'] = "klik";
     34$lang['Mouseover'] = "pøejetí myší";
    3535$lang['Event to show medium picture.'] = "Událost pro zobrazení fotografie.";
    3636$lang['Event to show medium picture has been updated.'] = "Událost pro zobrazení fotografie byla aktualizována.";
  • extensions/akBookStyle/trunk/language/de_DE/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2525$lang['Applicable categorie(s)'] = "Kategorieauswahl";
    2626$lang['Applicable category has been updated'] = "Die Ansicht wurde für die gewählte Kategorie angepasst";
    27 $lang['Applicable categories has been updated'] = "Die Ansicht wurde für die gewählten Kategorien angepasstn";
     27$lang['Applicable categories have been updated'] = "Die Ansicht wurde für die gewählten Kategorien angepasstn";
    2828$lang['Number of thumbnails per page'] = "Anzahl der Vorschaubilder pro Seite";
    2929$lang['Thumbnails per page has been updated'] = "Die Anzahl der Vorschaubilder wurde angepasst";
     
    3131$lang['Thumbnail size has been updated'] = "Die Anzahl der Spalten wurde angepasst";
    3232$lang['Thumbnail size'] = "Größe der Vorschaubilder";
    33 $lang['click'] = "Klick";
    34 $lang['mouseover'] = "Mit dem Mauszeiger berühren";
     33$lang['Click'] = "Klick";
     34$lang['Mouseover'] = "Mit dem Mauszeiger berühren";
    3535$lang['Event to show medium picture.'] = "Bei welchem Ereignis soll das Bild mittlerer Größe angezeigt werden.";
    3636$lang['Event to show medium picture has been updated.'] = "Die Ereignisauswahl wurde angepasst.";
  • extensions/akBookStyle/trunk/language/en_UK/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2121// +-----------------------------------------------------------------------+
    2222
    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";
     23/*
     24 * The purpose of that file is to provide a way to overwrite
     25 * default translation.
     26 * See language/templates/plugin.lang.php for available keys
     27 */
    4828?>
  • extensions/akBookStyle/trunk/language/es_ES/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2424$lang['Main configuration'] = "Configuración general";
    2525$lang['Number of thumbnails per page'] = "Número de miniaturas por página";
    26 $lang['Thumbnails per page has been updated'] = "El número de las miniaturas por página ha sido modificado.";
     26$lang['Thumbnails per page have been updated'] = "El número de las miniaturas por página ha sido modificado.";
    2727$lang['Number of column'] = "Número de columnas";
    2828$lang['Thumbnail size has been updated'] = "El número de columna ha sido modificado";
    2929$lang['Thumbnail size'] = "Tamaño de las miniaturas";
    30 $lang['click'] = "clic";
    31 $lang['mouseover'] = "sobrevuelo";
     30$lang['Click'] = "clic";
     31$lang['Mouseover'] = "sobrevuelo";
    3232$lang['Event to show medium picture.'] = "Acontecimiento que pone en marcha la visualización de la imagen.";
    3333$lang['Event to show medium picture has been updated.'] = "El modo de visualización de la imagen ha sido modificado.";
  • extensions/akBookStyle/trunk/language/fr_FR/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2525$lang['Applicable categorie(s)'] = "Choix de catégorie(s)";
    2626$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";
     27$lang['Applicable categories have been updated'] = "Les catégories sélectionnées ont été mises à jour";
    2828$lang['Number of thumbnails per page'] = "Nombre des miniatures par page";
    2929$lang['Thumbnails per page has been updated'] = "Le nombre des miniatures par page a été modifié.";
     
    3131$lang['Thumbnail size has been updated'] = "Le nombre de colonne a été modifié";
    3232$lang['Thumbnail size'] = "Taille des miniatures";
    33 $lang['click'] = "clic";
    34 $lang['mouseover'] = "survol";
     33$lang['Click'] = "clic";
     34$lang['Mouseover'] = "survol";
    3535$lang['Event to show medium picture.'] = "Evénement déclenchant l'affichage de l'image.";
    3636$lang['Event to show medium picture has been updated.'] = "Le mode d'affichage de l'image a été modifié.";
  • extensions/akBookStyle/trunk/language/hu_HU/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2424$lang['Main configuration'] = "Fő konfiguráció";
    2525$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.";
     26$lang['Thumbnails per page have been updated'] = "Bélyegképek száma az oldalon frissítve.";
    2727$lang['Number of column'] = "Oszlopok száma";
    2828$lang['Thumbnail size has been updated'] = "Bélyegkép mérete frissítve.";
    2929$lang['Thumbnail size'] = "Bélyegkép mérete";
    30 $lang['click'] = "kattintásra";
    31 $lang['mouseover'] = "kurzor a képen";
     30$lang['Click'] = "kattintásra";
     31$lang['Mouseover'] = "kurzor a képen";
    3232$lang['Event to show medium picture.'] = "Közepes kép mutatása.";
    3333$lang['Event to show medium picture has been updated.'] = "Közepes kép megjelenítés módja frissítve.";
  • extensions/akBookStyle/trunk/language/it_IT/plugin.lang.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2424$lang['Main configuration'] = "Configurazione generale";
    2525$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.";
     26$lang['Thumbnails per page have been updated'] = "Il numero di miniature per pagina è stato aggiornato.";
    2727$lang['Number of column'] = "Numero di colonne";
    2828$lang['Thumbnail size has been updated'] = "Le dimenzioni delle miniature sono state aggiornate";
    2929$lang['Thumbnail size'] = "Dimenzioni delle miniature";
    30 $lang['click'] = "clic";
    31 $lang['mouseover'] = "sorvolo";
     30$lang['Click'] = "clic";
     31$lang['Mouseover'] = "sorvolo";
    3232$lang['Event to show medium picture.'] = "Eventi che attivano la visualizzazione di un'immagine.";
    3333$lang['Event to show medium picture has been updated.'] = "Il modo di visualizzazione dell'immagine è stata modificata.";
  • extensions/akBookStyle/trunk/language/lv_LV/plugin.lang.php

    r7970 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2727$lang['Applicable categories have been updated'] = "Pielietojamās kategorijas ir atjauninātas";
    2828$lang['Number of thumbnails per page'] = "Sīkbilžu skaits lapā";
    29 $lang['Thumbnails per page has been updated'] = "Sīkbilžu skaits lapā ir atjaunināts";
     29$lang['Thumbnails per page have been updated'] = "Sīkbilžu skaits lapā ir atjaunināts";
    3030$lang['Number of column'] = "Kolonu skaits";
    3131$lang['Thumbnail size has been updated'] = "Sīkbildes izmēri ir atjaunināti";
    3232$lang['Thumbnail size'] = "Sīkbildes izmērs";
    33 $lang['click'] = "klikšķināt";
    34 $lang['mouseover'] = "pārvilkt ar peli";
     33$lang['Click'] = "klikšķināt";
     34$lang['Mouseover'] = "pārvilkt ar peli";
    3535$lang['Event to show medium picture.'] = "Pasākums, lai parādītu vidēja izmēra attēlu.";
    3636$lang['Event to show medium picture has been updated.'] = " Pasākums, lai parādītu vidēja izmēra attēlu ir atjaunināts.";
  • extensions/akBookStyle/trunk/language/no_NO/plugin.lang.php

    r9271 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    3131$lang['Thumbnail size has been updated'] = "Miniatyr bilde størrelse har blitt oppdatert";
    3232$lang['Thumbnail size'] = "Miniatyr størrelse";
    33 $lang['click'] = "Klikk";
    34 $lang['mouseover'] = "mus-over";
     33$lang['Click'] = "Klikk";
     34$lang['Mouseover'] = "mus-over";
    3535$lang['Event to show medium picture.'] = "Hendelse å vise medium bilde.";
    3636$lang['Event to show medium picture has been updated.'] = "Hendelse å vise mediuum bilde er oppdatert.";
  • extensions/akBookStyle/trunk/language/templates/plugin.lang.php

    r5432 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    2121// +-----------------------------------------------------------------------+
    2222
    23 $lang['ak_intro'] = "That plugin give an alternate presentation for galleries. It gives you in a whole page access to medium image and thumbnails.";
    24 $lang['ak_general_config'] = "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['ak_by_page'] = "Number of thumbnails per page";
    29 $lang['ak_by_page_changed'] = "Thumbnails per page has been updated";
    30 $lang['ak_by_line'] = "Number of column";
    31 $lang['ak_by_line_changed'] = "Number of column has been updated";
    32 $lang['ak_thumbnail_size'] = "Thumbnail size";
    33 $lang['ak_by_line_changed'] = "Thumbnail size has been updated";
    34 $lang['ak_event_click'] = "click";
    35 $lang['ak_event_mouseover'] = "mouseover";
    36 $lang['ak_mouse_event'] = "Event to show medium picture.";
    37 $lang['ak_mouse_event_changed'] = "Event to show medium picture has been updated.";
    38 $lang['ak_thumbnails_loc'] = "Thumbnails location";
    39 $lang['ak_thumbnails_loc_changed'] = "Thumbnails location has been changed";
    40 $lang['top'] = "Top";
    41 $lang['left'] = "Left";
    42 $lang['bottom'] = "Bottom";
    43 $lang['right'] = "Right";
    44 $lang['ak_by_column'] = 'or number of lines for Top/Bottom';
     23// admin
     24$lang['ak Book Style'] = '';
     25$lang['Applicable categorie(s)'] = '';
     26$lang['Applicable categories have been updated'] = '';
     27$lang['Applicable category has been updated'] = '';
     28$lang['Bottom'] = '';
     29$lang['Click'] = '';
     30$lang['Event to show medium picture.'] = '';
     31$lang['Event to show medium picture has been updated.'] = '';
     32$lang['Left'] = '';
     33$lang['Main configuration'] = '';
     34$lang['Mouseover'] = '';
     35$lang['Number of column'] = '';
     36$lang['Number of column has been updated'] = '';
     37$lang['Number of thumbnails per page'] = '';
     38$lang['or number of lines for Top/Bottom'] = '';
     39$lang['Right'] = '';
     40$lang['Submit'] = '';
     41$lang['Thumbnail size'] = '';
     42$lang['Thumbnail size has been updated'] = '';
     43$lang['Thumbnails location'] = '';
     44$lang['Thumbnails location has been changed'] = '';
     45$lang['Thumbnails per page has been updated'] = '';
     46$lang['Top'] = '';
    4547
    46 $lang['Next image'] = 'Next image';
    47 $lang['Next page'] = 'Next page';
    48 $lang['Previous image'] = 'Previous image';
    49 $lang['Previous page'] = 'Previous page';
     48// public
     49$lang['Home'] = '';
     50$lang['Next image'] = '';
     51$lang['Next page'] = '';
     52$lang['Previous image'] = '';
     53$lang['Previous page'] = '';
     54$lang['Thumbnails'] = '';
    5055?>
  • extensions/akBookStyle/trunk/main.inc.php

    r10863 r10975  
    2323/*
    2424Plugin Name: akBookStyle
    25 Version: 0.3.1
     25Version: 0.4.0
    2626Description: Book style for designers
    2727Plugin URI: http://piwigo.org/ext/extension_view.php?eid=307
  • extensions/akBookStyle/trunk/maintain.inc.php

    r6852 r10975  
    33// | akBookStyle  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2009-2010 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2009-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// | Copyright(C) 2009      vdigital                                       |
    77// +-----------------------------------------------------------------------+
     
    3737  $config_file = $GLOBALS['conf']['local_data_dir'].'/plugins/';
    3838  $config_file .= basename(dirname(__FILE__)).'.dat';
    39   unlink($config_file);
     39  if (file_exists($config_file)) {
     40    unlink($config_file);
     41  }
    4042}
    4143?>
  • extensions/akBookStyle/trunk/template/admin.tpl

    r10863 r10975  
    44
    55<div class="titrePage">
    6   <h2>{'ak Book Style'|translate}</h2>
     6  <h2>{'ak Book Style'|@translate}</h2>
    77</div>
    88
    99<form method="post" action="" class="general">
    1010<fieldset>
    11   <legend>{'Main configuration'|translate}</legend>
     11  <legend>{'Main configuration'|@translate}</legend>
    1212  <p class="field">
    13     <label>{'Applicable categorie(s)'|translate}
     13    <label>{'Applicable categorie(s)'|@translate}
    1414      <select name="ak_categories[]" multiple="multiple" size="{$ak_categories|@count|@max:3}">
    1515        <option value=""></option>
     
    1919  </p>
    2020  <p class="field">
    21     <label>{'Number of thumbnails per page'|translate}
     21    <label>{'Number of thumbnails per page'|@translate}
    2222      <input type="text" name="ak_by_page" value="{$AK_BY_PAGE}">
    2323    </label>
    2424  </p>
    2525  <p class="field">
    26     <label>{'Number of column'|translate}
     26    <label>{'Number of column'|@translate}
    2727      <input type="text" name="ak_by_line" value="{$AK_BY_LINE}">({'or number of lines for Top/Bottom'|@translate})
    2828    </label>
    2929  </p>
    3030  <p class="field">
    31     <label>{'Thumbnail size'|translate}
     31    <label>{'Thumbnail size'|@translate}
    3232      <input type="text" name="ak_thumbnail_size" value="{$AK_THUMBNAIL_SIZE}">
    3333    </label>
    3434  </p>
    3535  <p class="field">
    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}
     36    <label>{'Event to show medium picture.'|@translate}
     37      {html_radios name="ak_mouse_event" options=$AK_EVENTS selected=$AK_EVENT}
    3838    </label>
    3939  </p>
    4040  <p class="field">
    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"}
     41    <label>{'Thumbnails location'|@translate}
     42      {html_radios name="ak_thumbnails_loc" options=$AK_THUMBNAILS_LOCATIONS selected="$AK_THUMBNAILS_LOC"}
    4343    </label>
    4444  </p>
    4545</fieldset>
    4646
    47 <p><input class="submit" type="submit" name="submit" value="{'Submit'|translate}"></p>
     47<p><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p>
    4848</form>
  • extensions/akBookStyle/trunk/template/ak_thumbnails.tpl

    r10863 r10975  
    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">
     1{combine_css path="$AK_PLUGIN_CSS/style.css"}
     2{combine_script id="ak_jquery_load" require="jquery" path="$AK_PLUGIN_JS/ak_jquery-load.js"}
     3
     4{footer_script require="ak_jquery_load"}
    55var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';
    66var prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}';
    77var 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}
     8{/footer_script}
    119
    1210{assign var=temp value=$TITLE|@strripos:'<a href='}
Note: See TracChangeset for help on using the changeset viewer.