🌍
English
dev:changes_in_2.11 [2020/12/01 13:36] plg Has Settings parameter |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Technical changes in Piwigo 2.11 ====== | ||
- | ===== [In Progress] "Multiple formats" for videos ==== | ||
- | |||
- | (pull-request #980) | ||
- | |||
- | When we upload a video (higher than HD) in Piwigo 2.10, it will generate the video in HD to help users to see videos in their gallery if they have a heavy file. | ||
- | To create this feature, we added a new trigger at the end of the upload process called : | ||
- | <code php> | ||
- | trigger_notify('upload_file_end', $example); | ||
- | </code> | ||
- | |||
- | The video is generate with ffmpeg in command line and stored in 'pwg_format'. | ||
- | |||
- | ===== tag combination title ==== | ||
- | |||
- | See https://github.com/Piwigo/Piwigo/issues/1179 and https://github.com/Piwigo/Piwigo/commit/5bf85c982b2b7f3e63fefb2d8cfea7a8bcc9e591 | ||
- | |||
- | ===== header.tpl : promote mobile app ===== | ||
- | |||
- | In the <code html><head></code> section of header.tpl, we have added : | ||
- | |||
- | <code html>{if $SHOW_MOBILE_APP_BANNER} | ||
- | <meta name="apple-itunes-app" content="app-id=472225196"> | ||
- | {/if}</code> | ||
- | |||
- | 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 main.inc.php file header. | ||
- | |||
- | You can replace: | ||
- | |||
- | <code php>add_event_handler('get_admin_plugin_menu_links', 'pshare_admin_menu'); | ||
- | function pshare_admin_menu($menu) | ||
- | { | ||
- | global $page; | ||
- | |||
- | array_push( | ||
- | $menu, | ||
- | array( | ||
- | 'NAME' => 'Private Share', | ||
- | 'URL' => get_root_url().'admin.php?page=plugin-private_share' | ||
- | ) | ||
- | ); | ||
- | |||
- | return $menu; | ||
- | }</code> | ||
- | |||
- | by the last line "Has Settings": | ||
- | |||
- | <code php><?php | ||
- | /* | ||
- | Plugin Name: Private Share | ||
- | Version: auto | ||
- | Description: Share a private photo, with a key instead of authentication | ||
- | Plugin URI: http://piwigo.org/ext/extension_view.php?eid= | ||
- | Author: plg | ||
- | Author URI: http://le-gall.net/pierrick | ||
- | Has Settings: true | ||
- | */</code> | ||
- | |||
- | This will obviously be only compatible with Piwigo 11+. So maybe you can keep both for a while. |