1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
piwigo_ynh/sources/plugins/TakeATour/admin.php

36 lines
881 B
PHP
Raw Normal View History

2015-07-05 19:12:42 +02:00
<?php
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
global $template, $conf, $user, $page;
load_language('plugin.lang', PHPWG_PLUGINS_PATH .'TakeATour/');
2016-08-27 21:53:29 +02:00
$tat_28url = 'http://';
if (substr($user['language'],0,2) == 'fr')
{
$tat_28url.= 'fr.';
}
$tat_28url.= 'piwigo.org/releases/2.8.0';
2015-07-05 19:12:42 +02:00
$template->assign(
array(
'F_ACTION' => get_root_url().'admin.php',
2016-08-27 21:53:29 +02:00
'pwg_token' => get_pwg_token(),
'TAT_28URL' => $tat_28url,
2015-07-05 19:12:42 +02:00
)
);
$template->func_combine_css(array(
'path' => 'plugins/TakeATour/css/admin.css',
)
);
if (isset($conf['TakeATour_tour_ignored']) and is_array($conf['TakeATour_tour_ignored']))
{
$template->assign('TAT_tour_ignored', $conf['TakeATour_tour_ignored']);
}
$template->set_filename('plugin_admin_content', dirname(__FILE__) .'/tpl/admin.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
?>