1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

Add show more events button below the events list #22 (#24)

This commit is contained in:
Daniel Waxweiler
2025-05-23 16:48:19 +02:00
committed by GitHub
parent 778c4e3b92
commit 3430b98f94
7 changed files with 26 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ final class Mobilizon_Connector {
$settings = array(
'isShortOffsetNameShown' => MobilizonConnector\Settings::isShortOffsetNameShown(),
'locale' => str_replace('_', '-', get_locale()),
'timeZone' => wp_timezone_string()
'timeZone' => wp_timezone_string(),
'url' => MobilizonConnector\Settings::getUrl()
);
wp_add_inline_script($scriptName, 'var MOBILIZON_CONNECTOR = ' . json_encode($settings), 'before');
}