1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00
This commit is contained in:
Daniel Waxweiler
2022-06-04 10:51:18 +02:00
parent 398416ab1b
commit 513ee84d48
10 changed files with 83 additions and 54 deletions

View File

@ -2,24 +2,19 @@ const { __ } = wp.i18n
const NAME = '<wordpress-name>'
const URL = 'https://mobilizon.fr' // TODO
const LOCALE = 'en-GB' // TODO
const TIMEZONE = 'Europe/Rome' // TODO
const isShortOffsetNameShown = true // eslint-disable-line no-unused-vars
export default ({ attributes }) => {
return (
<ul
className={NAME + '_events-list'}
data-url={URL}
data-locale={LOCALE}
data-maximum={attributes.eventsCount}
data-group-name={attributes.groupName}
data-time-zone={TIMEZONE}
>
<li style="display: none;">
{__('The events could not be loaded!', '<wordpress-name>')}
</li>
<li style="display: none;">
{__('The group could not be found!', '<wordpress-name>')}
</li>
</ul>
)
}