Ignore:
Timestamp:
Jan 6, 2013, 2:56:47 PM (11 years ago)
Author:
nikrou
Message:

Make plugin compatible with piwigo 2.4
Improve selection of albums (auto-complete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/photoWidget/admin.php

    r10988 r19908  
    33// | photoWidget  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
     5// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License as published by  |
    9 // | the Free Software Foundation                                          |
     8// | it under the terms of the GNU General Public License version 2 as     |
     9// | published by the Free Software Foundation                             |
    1010// |                                                                       |
    1111// | This program is distributed in the hope that it will be useful, but   |
     
    1717// | along with this program; if not, write to the Free Software           |
    1818// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
    19 // | MA 02110-1301 USA.                                                    |
     19// | MA 02110-1301 USA                                                     |
    2020// +-----------------------------------------------------------------------+
    2121
     
    8080
    8181$query = '
    82 SELECT id,name
     82SELECT id,name,global_rank,uppercats
    8383  FROM '.CATEGORIES_TABLE;
    8484
    85 $all_categories = simple_hash_from_query($query, 'id', 'name');
     85display_select_cat_wrapper($query, $me->pw_categories, 'all_categories');
    8686
    8787$template->set_filenames(array('plugin_admin_content' => PW_TEMPLATE . '/admin.tpl'));
    8888$template->assign('PW_CAT_CHOICES', array(1 => l10n('Yes'), 0 => l10n('No')));
    89 $template->assign('ALL_CATEGORIES', $all_categories);
    90 $template->assign('PW_CATEGORIES', $me->pw_categories);
    9189$template->assign('PW_ALL_CATEGORIES', $me->pw_all_categories);
    9290$template->assign('PWG_PHOTO_WIDGET_PLUGIN_CSS', PW_CSS);
Note: See TracChangeset for help on using the changeset viewer.