mirror of
https://github.com/Piwigo/Piwigo-Social-Buttons.git
synced 2026-03-28 17:42:48 +01:00
compatibility PHP 8
This commit is contained in:
@@ -54,11 +54,13 @@ if (isset($_POST['submit']))
|
||||
$template->delete_compiled_templates();
|
||||
}
|
||||
|
||||
$img_sizes = array_merge(ImageStdParams::get_all_types(), array('Original'));
|
||||
|
||||
$template->assign($conf['SocialButtons']);
|
||||
$template->assign(array(
|
||||
'SOCIALBUTT_PATH' => SOCIALBUTT_PATH,
|
||||
'img_sizes' => array_merge(ImageStdParams::get_all_types(), array('Original')),
|
||||
'img_sizes' => $img_sizes,
|
||||
'img_sizes_labels' => array_map('l10n', $img_sizes),
|
||||
));
|
||||
|
||||
$template->set_filename('socialbutt_content', realpath(SOCIALBUTT_PATH . 'template/admin.tpl'));
|
||||
|
||||
@@ -15,4 +15,8 @@ $lang['only on photo'] = 'only on photo';
|
||||
$lang['Community'] = 'Community';
|
||||
$lang['Light mode'] = 'Light mode';
|
||||
$lang['When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.'] = 'When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.';
|
||||
$lang['Disable'] = 'Disable';
|
||||
$lang['Enable'] = 'Enable';
|
||||
$lang['Via'] = 'Via';
|
||||
$lang['Shared picture size'] = 'Shared picture size';
|
||||
?>
|
||||
@@ -78,7 +78,7 @@ jQuery(".showInfo").tipTip({
|
||||
{'Shared picture size'|translate}
|
||||
</td>
|
||||
<td>
|
||||
{html_options name="img_size" values=$img_sizes output=$img_sizes|translate selected=$img_size}
|
||||
{html_options name="img_size" values=$img_sizes output=$img_sizes_labels selected=$img_size}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="property">
|
||||
|
||||
Reference in New Issue
Block a user