Technical changes in Piwigo 11

tag combination title

header.tpl : promote mobile app

In the


section of header.tpl, we have added :

<meta name="apple-itunes-app" content="app-id=472225196">

This feature will only work if the theme has it in its header.tpl file, if any.

plugin "Has Settings"

In Piwigo 11, plugins are no longer listed in the administration menu. Instead we have a “Settings” button in the box of the plugin. The button is activated by the old get_admin_plugin_menu_links trigger but can be replaced by the “Has Settings” in the file header.

You can replace:

add_event_handler('get_admin_plugin_menu_links', 'pshare_admin_menu');
function pshare_admin_menu($menu)
  global $page;
      'NAME' => 'Private Share',
      'URL'  => get_root_url().'admin.php?page=plugin-private_share'
  return $menu;

by the last line “Has Settings”:

Plugin Name: Private Share
Version: auto
Description: Share a private photo, with a key instead of authentication
Plugin URI:
Author: plg
Author URI:
Has Settings: true

This will obviously be only compatible with Piwigo 11+. So maybe you can keep both for a while.

You can write “Has Settings: webmaster” if you want only users with “webmaster” status to see the link.

Back to top
dev/changes_in_2.11.txt · Last modified: 2021/01/06 14:25 by plg
github twitter newsletter Donate © 2002-2023 · Contact