Skip to content

Commit

Permalink
update page box component (facebook page plugin)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Gadiou authored and Alexandre Gadiou committed Feb 27, 2020
1 parent 1e6a3d7 commit 57b18a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/PageBox.php
Expand Up @@ -33,6 +33,12 @@ public function defineProperties()
'description' => 'Box height',
'type' => 'string'
],
'tabs' => [
'title' => 'Tabs',
'description' => 'You can have multiple tabs : timeline,events,messages',
'type' => 'string',
'default' => ''
],
'hide_cover_photo' => [
'title' => 'Hide cover photo',
'description' => 'Hide facebook page cover photo',
Expand Down
3 changes: 2 additions & 1 deletion components/pagebox/default.htm
Expand Up @@ -35,7 +35,8 @@
{% endif %}

{% if not (facebook_page_url is empty) %}
<div class="fb-page {{custom_css}}" data-href="{{facebook_page_url}}" data-width="{{width}}" {% if not (__SELF__.options['height'] is empty) %}data-height="{{__SELF__.options['height']}}"{% endif %} data-hide-cover="{{hide_cover_photo}}" data-show-facepile="{{show_friends_faces}}" data-show-posts="{{show_page_posts}}"><div class="fb-xfbml-parse-ignore"><blockquote cite="{{facebook_page_url}}"><a href="{{facebook_page_url}}">{{facebook_page_url}}</a></blockquote></div></div>
<div class="fb-page {{custom_css}}" data-href="{{facebook_page_url}}" data-width="{{width}}" {% if not (__SELF__.options['height'] is empty) %}data-height="{{__SELF__.options['height']}}"{% endif %} data-hide-cover="{{hide_cover_photo}}" data-show-facepile="{{show_friends_faces}}" data-show-posts="{{show_page_posts}}" {% if not (__SELF__.options['tabs'] is empty) %} data-tabs="{{__SELF__.options['tabs']}}" {% endif %} data-adapt-container-width="false"><blockquote class="fb-xfbml-parse-ignore" cite="{{facebook_page_url}}"><a href="{{facebook_page_url}}">{{facebook_page_url}}</a></blockquote></div>

{% else %}
<div style="text-align: center;">
<span style="color:red;font-weight: bold;">
Expand Down

0 comments on commit 57b18a9

Please sign in to comment.