Process main page (linklist) through Slim controller
Including a bunch of improvements on the container, and helper used across new controllers.
This commit is contained in:
parent
6132d64748
commit
1a8ac737e5
44 changed files with 1459 additions and 747 deletions
plugins/qrcode
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
use Shaarli\Plugin\PluginManager;
|
||||
use Shaarli\Router;
|
||||
use Shaarli\Render\TemplatePage;
|
||||
|
||||
/**
|
||||
* Add qrcode icon to link_plugin when rendering linklist.
|
||||
|
@ -40,7 +40,7 @@ function hook_qrcode_render_linklist($data)
|
|||
*/
|
||||
function hook_qrcode_render_footer($data)
|
||||
{
|
||||
if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) {
|
||||
if ($data['_PAGE_'] == TemplatePage::LINKLIST) {
|
||||
$data['js_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/shaarli-qrcode.js';
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ function hook_qrcode_render_footer($data)
|
|||
*/
|
||||
function hook_qrcode_render_includes($data)
|
||||
{
|
||||
if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) {
|
||||
if ($data['_PAGE_'] == TemplatePage::LINKLIST) {
|
||||
$data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue