MessagesReplacement version 2024-04-10new
DebugMessages version 2024-01-14
Testing the Cookbook:EmbedFacebook recipe, see EmbedFacebook
Test
Test the pathological cases.
(:embedfacebook :)
|
EmbedFacebook parameters are name= tabs={timeline,events,messages} width=340 height=500 header={true|false} cover={true|false}
|
(:embedfacebook name="Wellington-Caving-Group-298487000234415" cover=true:)
|
|
(:embedfacebook name="TararuaTrampingClub" tabs=timeline,events,messages:)
|
|
(:embedfacebook name="tararualodge" header=true:)
|
|
Messages
embedfacebooknew.php
D:\Home\KiwiWiki\pmwiki\cookbook\embedfacebooknew.php: '2024-04-10new'
embedfacebooknew\embedfacebook_parse()
opt: ak:
Array
(
)
opt: ak: #, name, cover
Array
(
[#] => Array
(
[0] => name
[1] => wellington-caving-group-298487000234415
[2] => cover
[3] => true
)
[name] => wellington-caving-group-298487000234415
[cover] => true
)
retval: '<:block><section class="embedfacebook":>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fwellington-caving-group-298487000234415%2F&tabs=timeline&width=340&height=500&adapt_container_width=true&show_facepile=false&small_header=true&hide_cover=&hide_cta=true&lazy=true" width=340 height=500 style="border:none;overflow:hidden" allow="clipboard-write; encrypted-media;" allowfullscreen="true" loading="lazy"></iframe>
</section>
'
opt: ak: #, name, tabs
Array
(
[#] => Array
(
[0] => name
[1] => tararuatrampingclub
[2] => tabs
[3] => timeline,events,messages
)
[name] => tararuatrampingclub
[tabs] => timeline,events,messages
)
retval: '<:block><section class="embedfacebook":>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Ftararuatrampingclub%2F&tabs=timeline,events,messages&width=340&height=500&adapt_container_width=true&show_facepile=false&small_header=true&hide_cover=true&hide_cta=true&lazy=true" width=340 height=500 style="border:none;overflow:hidden" allow="clipboard-write; encrypted-media;" allowfullscreen="true" loading="lazy"></iframe>
</section>
'
opt: ak: #, name, header
Array
(
[#] => Array
(
[0] => name
[1] => tararualodge
[2] => header
[3] => true
)
[name] => tararualodge
[header] => true
)
retval: '<:block><section class="embedfacebook":>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Ftararualodge%2F&tabs=timeline&width=340&height=500&adapt_container_width=true&show_facepile=false&small_header=&hide_cover=true&hide_cta=true&lazy=true" width=340 height=500 style="border:none;overflow:hidden" allow="clipboard-write; encrypted-media;" allowfullscreen="true" loading="lazy"></iframe>
</section>
'