{"id":233173,"date":"2025-05-26T10:46:57","date_gmt":"2025-05-26T10:46:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/monbillet-embed\/"},"modified":"2026-02-05T07:05:15","modified_gmt":"2026-02-05T07:05:15","slug":"monbillet-embed","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/monbillet-embed\/","author":23290347,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.4","stable_tag":"1.4","tested":"6.8.5","requires":"4.6","requires_php":"8.1","requires_plugins":null,"header_name":"Monbillet Embed","header_author":"","header_description":"Embed events and event-groups data directly in your WordPress.","assets_banners_color":"","last_updated":"2026-02-05 07:05:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":578,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":{"1.1":{"tag":"1.1","author":"monbilletch","date":"2025-05-27 06:09:27"},"1.2":{"tag":"1.2","author":"monbilletch","date":"2025-07-14 06:30:22"},"1.2.1":{"tag":"1.2.1","author":"monbilletch","date":"2025-07-14 13:06:53"},"1.3":{"tag":"1.3","author":"monbilletch","date":"2025-08-13 07:56:41"},"1.4":{"tag":"1.4","author":"monbilletch","date":"2026-02-05 07:05:15"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3300607,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.2.1","1.3","1.4"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[242878,242879],"plugin_category":[],"plugin_contributors":[242880],"plugin_business_model":[],"class_list":["post-233173","plugin","type-plugin","status-publish","hentry","plugin_tags-monbillet","plugin_tags-monbillet-ch","plugin_contributors-monbilletch","plugin_committers-monbilletch"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/monbillet-embed\/assets\/icon.svg?rev=3300607","icon":"https:\/\/ps.w.org\/monbillet-embed\/assets\/icon.svg?rev=3300607","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin lets you embed events and event-groups data directly in your WordPress.<\/p>\n\n<h3>Setup<\/h3>\n\n<ul>\n<li>Add your API token in the settings (please contact monbillet.ch to obtain a token)<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<p>In Gutenberg, use either the \"HTML\" or the \"Shortcode\" block. In the Classic Editor, you can simply add the shortcode to your content.<\/p>\n\n<h3>Template Shortcode<\/h3>\n\n<p>Required attributes:\n- <code>entity-type<\/code>: <code>events<\/code>, <code>event<\/code>, <code>event-groups<\/code> or <code>event-group<\/code>\n- <code>entity-id<\/code>: number (mandatory if <code>entity-type<\/code>= <code>event<\/code> or <code>event-group<\/code>)<\/p>\n\n<p>Optional attributes:\n- <code>with-details<\/code>: <code>true<\/code> (default: no event details are retrieved, see <a href=\"https:\/\/monbillet.ch\/api\/v1\/doc#api-objects\">Objects API<\/a> to find out which fields are retrieved.  )<\/p>\n\n<p>The <code>data<\/code> variable contains the content from the API (without the first level field <code>event<\/code>, <code>events<\/code>, <code>event-groups<\/code>).\nSee the <a href=\"https:\/\/monbillet.ch\/api\/v1\/doc\">API doc<\/a>, to get a list of supported properties.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>[monbillet-embed-template entity-type=\"event-groups\"]\n&lt;section&gt;\n    {% for eventGroup in data %}\n        &lt;ul&gt;\n            &lt;li&gt;{{ eventGroup.title }}&lt;\/li&gt;\n            &lt;ul&gt;\n                {% for event in eventGroup.events %}\n                    &lt;li class=\"event-title\"&gt;{{ event.title }}&lt;\/li&gt;\n                {% endfor %}\n            &lt;\/ul&gt;\n        &lt;\/ul&gt;\n    {% endfor %}\n&lt;\/section&gt;\n[\/monbillet-embed-template]\n<\/code><\/pre>\n\nStyling the shortcode\n\n<p>You are in full control here. Add CSS either in your theme or with an \"HTML\" block. You can as well add a <code>&lt;style&gt;&lt;\/style&gt;<\/code> markup inside the \"Shortcode\" block.<\/p>\n\nSandboxed Twig\n\n<p>By default, Twig is restricted to some functions. You can disable this feature in the plugin settings.<\/p>\n\n<p>Tags allowed: <code>apply<\/code>, <code>if<\/code>, <code>for<\/code>, <code>set<\/code><\/p>\n\n<p>Filters allowed: <code>abs<\/code>, <code>batch<\/code>, <code>capitalize<\/code>, <code>column<\/code>, <code>convert_encoding<\/code>, <code>data_uri<\/code>, <code>date<\/code>, <code>date_modify<\/code>, <code>default<\/code>, <code>escape<\/code>, <code>filter<\/code>, <code>find<\/code>, <code>first<\/code>, <code>format<\/code>, <code>format_date<\/code>, <code>format_datetime<\/code>, <code>format_time<\/code>, <code>join<\/code>, <code>json_encode<\/code>, <code>keys<\/code>, <code>last<\/code>, <code>length<\/code>, <code>lower<\/code>, <code>map<\/code>, <code>merge<\/code>, <code>plural<\/code>, <code>reduce<\/code>, <code>replace<\/code>, <code>reverse<\/code>, <code>round<\/code>, <code>shuffle<\/code>, <code>singular<\/code>, <code>slice<\/code>, <code>slug<\/code>, <code>sort<\/code>, <code>spaceless<\/code>, <code>split<\/code>, <code>striptags<\/code>, <code>trim<\/code>, <code>title<\/code>, <code>u<\/code>, <code>upper<\/code>, <code>url_encode<\/code><\/p>\n\n<p>Functions allowed: <code>html_classes<\/code>, <code>cycle<\/code>, <code>date<\/code>, <code>max<\/code>, <code>min<\/code>, <code>range<\/code>, <code>random<\/code>, <code>html_cva<\/code><\/p>\n\n<!--section=changelog-->\n<h4>1.4 - February 5, 2026<\/h4>\n\n<ul>\n<li>Remove support for attribute <code>show-past-events<\/code><\/li>\n<\/ul>\n\n<h4>1.3 - August 13, 2025<\/h4>\n\n<ul>\n<li>Change minimal version of PHP to 8.1 and match in composer config<\/li>\n<\/ul>\n\n<h4>1.2.1 - July 14, 2025<\/h4>\n\n<ul>\n<li>Support new attribute <code>with-details<\/code><\/li>\n<\/ul>\n\n<h4>1.2.0 - July 03, 2025<\/h4>\n\n<ul>\n<li>Update client API monbillet to 1.2.5<\/li>\n<\/ul>\n\n<h4>1.1.0 - May 08, 2025<\/h4>\n\n<ul>\n<li>Support new attribute <code>show-past-events<\/code><\/li>\n<li>Handle errors in API client<\/li>\n<\/ul>\n\n<h4>1.0.0 - May 06, 2025<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"Embed events and event-groups data directly in your WordPress using a shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/233173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=233173"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/monbilletch"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=233173"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=233173"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=233173"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=233173"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=233173"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=233173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}