Version Description
- Added: Ask a question button.
Download this release
Release Info
| Developer | 10web |
| Plugin | |
| Version | 1.1.15 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.14 to 1.1.15
- admin/views/FFWDViewInfo_ffwd.php +6 -61
- admin/views/FFWDViewOptions_ffwd.php +1 -35
- admin/views/FFWDViewThemes_ffwd.php +3 -27
- css/images/help.svg +1 -0
- css/topbar.css +179 -0
- facebook-feed-wd.php +34 -6
- framework/WDW_FFWD_Library.php +104 -6
- js/ffwd.js +4 -0
- readme.txt +5 -2
admin/views/FFWDViewInfo_ffwd.php
CHANGED
|
@@ -21,6 +21,7 @@ class FFWDViewInfo_ffwd
|
|
| 21 |
{
|
| 22 |
$this->model = $model;
|
| 23 |
}
|
|
|
|
| 24 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 25 |
// Public Methods //
|
| 26 |
////////////////////////////////////////////////////////////////////////////////////////
|
|
@@ -38,40 +39,9 @@ class FFWDViewInfo_ffwd
|
|
| 38 |
$ids_string = '';
|
| 39 |
$per_page = $this->model->per_page();
|
| 40 |
$pager = 0;
|
| 41 |
-
?>
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
<div class="wrap">
|
| 47 |
-
<div class="ffwd_upgrade wd-clear" >
|
| 48 |
-
<div class="ffwd-left">
|
| 49 |
-
|
| 50 |
-
<div style="font-size: 14px; ">
|
| 51 |
-
<?php _e(" This section allows you to create, edit and delete Facebook Feed by 10Web.","ffwd");?>
|
| 52 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017959512-Getting-Facebook-Access-Token?utm_source=facebook_feed&utm_medium=free_plugin"><?php _e("Read More in User Manual.","ffwd");?></a>
|
| 53 |
-
</div>
|
| 54 |
-
|
| 55 |
-
</div>
|
| 56 |
-
<div class="ffwd-right">
|
| 57 |
-
<div class="wd-table">
|
| 58 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 59 |
-
<a href="https://wordpress.org/support/plugin/wd-facebook-feed" target="_blank">
|
| 60 |
-
<img src="<?php echo WD_FFWD_URL; ?>/images/i_support.png" >
|
| 61 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
| 62 |
-
</a>
|
| 63 |
-
</div>
|
| 64 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 65 |
-
<a href="https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin" target="_blank">
|
| 66 |
-
<?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
|
| 67 |
-
</a>
|
| 68 |
-
</div>
|
| 69 |
-
</div>
|
| 70 |
-
</div>
|
| 71 |
-
</div>
|
| 72 |
-
</div>
|
| 73 |
-
|
| 74 |
|
|
|
|
|
|
|
| 75 |
|
| 76 |
<form class="wrap" id="ffwd_info_form" method="post" action="admin.php?page=info_ffwd" style="width:99%;">
|
| 77 |
|
|
@@ -568,34 +538,9 @@ class FFWDViewInfo_ffwd
|
|
| 568 |
|
| 569 |
<div id="message_div" class="updated" style="display: none;"></div>
|
| 570 |
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
<div style="font-size: 14px; ">
|
| 576 |
-
<?php _e("This section allows you to add/edit Facebook Feed by 10Web","ffwd");?>
|
| 577 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017959512-Getting-Facebook-Access-Token?utm_source=facebook_feed&utm_medium=free_plugin"><?php _e("Read More in User Manual.","ffwd");?></a>
|
| 578 |
-
</div>
|
| 579 |
-
|
| 580 |
-
</div>
|
| 581 |
-
<div class="ffwd-right">
|
| 582 |
-
<div class="wd-table">
|
| 583 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 584 |
-
<a href="https://wordpress.org/support/plugin/wd-facebook-feed" target="_blank">
|
| 585 |
-
<img src="<?php echo WD_FFWD_URL; ?>/images/i_support.png" >
|
| 586 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
| 587 |
-
</a>
|
| 588 |
-
</div>
|
| 589 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 590 |
-
<a href="https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin" target="_blank">
|
| 591 |
-
<?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
|
| 592 |
-
</a>
|
| 593 |
-
</div>
|
| 594 |
-
</div>
|
| 595 |
-
</div>
|
| 596 |
-
</div>
|
| 597 |
-
</div>
|
| 598 |
-
|
| 599 |
|
| 600 |
<form class="wrap" method="post" id="ffwd_info_form" action="admin.php?page=info_ffwd" style="width:99%;">
|
| 601 |
<h2></h2>
|
| 21 |
{
|
| 22 |
$this->model = $model;
|
| 23 |
}
|
| 24 |
+
|
| 25 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 26 |
// Public Methods //
|
| 27 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 39 |
$ids_string = '';
|
| 40 |
$per_page = $this->model->per_page();
|
| 41 |
$pager = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
WDW_FFWD_Library::topbar();
|
| 44 |
+
?>
|
| 45 |
|
| 46 |
<form class="wrap" id="ffwd_info_form" method="post" action="admin.php?page=info_ffwd" style="width:99%;">
|
| 47 |
|
| 538 |
|
| 539 |
<div id="message_div" class="updated" style="display: none;"></div>
|
| 540 |
|
| 541 |
+
<?php
|
| 542 |
+
WDW_FFWD_Library::topbar();
|
| 543 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
|
| 545 |
<form class="wrap" method="post" id="ffwd_info_form" action="admin.php?page=info_ffwd" style="width:99%;">
|
| 546 |
<h2></h2>
|
admin/views/FFWDViewOptions_ffwd.php
CHANGED
|
@@ -28,41 +28,7 @@ class FFWDViewOptions_ffwd
|
|
| 28 |
{
|
| 29 |
global $WD_BWG_UPLOAD_DIR;
|
| 30 |
|
| 31 |
-
|
| 32 |
-
?>
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
<div class="wrap">
|
| 36 |
-
<div class="ffwd_upgrade wd-clear" >
|
| 37 |
-
<div class="ffwd-left">
|
| 38 |
-
|
| 39 |
-
<div style="font-size: 14px; ">
|
| 40 |
-
<?php _e("This section allows you to change settings for different views and general options.","ffwd");?>
|
| 41 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://help.10web.io/hc/en-us/articles/360017960312-Other-Settings?utm_source=facebook_feed&utm_medium=free_plugin"><?php _e("Read More in User Manual.","ffwd");?></a>
|
| 42 |
-
</div>
|
| 43 |
-
|
| 44 |
-
</div>
|
| 45 |
-
<div class="ffwd-right">
|
| 46 |
-
<div class="wd-table">
|
| 47 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 48 |
-
<a href="https://wordpress.org/support/plugin/wd-facebook-feed" target="_blank">
|
| 49 |
-
<img src="<?php echo WD_FFWD_URL; ?>/images/i_support.png" >
|
| 50 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
| 51 |
-
</a>
|
| 52 |
-
</div>
|
| 53 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 54 |
-
<a href="https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin" target="_blank">
|
| 55 |
-
<?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
|
| 56 |
-
</a>
|
| 57 |
-
</div>
|
| 58 |
-
</div>
|
| 59 |
-
</div>
|
| 60 |
-
</div>
|
| 61 |
-
</div>
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
<?php
|
| 66 |
$row = $this->model->get_row_data($reset);
|
| 67 |
?>
|
| 68 |
<script>
|
| 28 |
{
|
| 29 |
global $WD_BWG_UPLOAD_DIR;
|
| 30 |
|
| 31 |
+
WDW_FFWD_Library::topbar();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
$row = $this->model->get_row_data($reset);
|
| 33 |
?>
|
| 34 |
<script>
|
admin/views/FFWDViewThemes_ffwd.php
CHANGED
|
@@ -28,29 +28,8 @@ class FFWDViewThemes_ffwd
|
|
| 28 |
{
|
| 29 |
?>
|
| 30 |
<div class="wrap">
|
| 31 |
-
<div class="ffwd_upgrade wd-clear" >
|
| 32 |
-
<div class="ffwd-left">
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
</div>
|
| 37 |
-
<div class="ffwd-right">
|
| 38 |
-
<div class="wd-table">
|
| 39 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 40 |
-
<a href="https://wordpress.org/support/plugin/wd-facebook-feed" target="_blank">
|
| 41 |
-
<img src="<?php echo WD_FFWD_URL; ?>/images/i_support.png" >
|
| 42 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
| 43 |
-
</a>
|
| 44 |
-
</div>
|
| 45 |
-
<div class="wd-cell wd-cell-valign-middle">
|
| 46 |
-
<a href="https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin" target="_blank">
|
| 47 |
-
<?php _e("UPGRADE TO PAID VERSION", "gmwd"); ?>
|
| 48 |
-
</a>
|
| 49 |
-
</div>
|
| 50 |
-
</div>
|
| 51 |
-
</div>
|
| 52 |
-
</div>
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
<div style="clear: both;float: right;color: #15699F; font-size: 20px; margin-top:10px; padding:8px 15px;">
|
| 56 |
This is FREE version, Customizing themes is available only in the PAID version.
|
|
@@ -144,12 +123,9 @@ class FFWDViewThemes_ffwd
|
|
| 144 |
'heart' => 'Heart',
|
| 145 |
'square' => 'Square',
|
| 146 |
);
|
|
|
|
|
|
|
| 147 |
?>
|
| 148 |
-
<div style="font-size: 14px; font-weight: bold;">
|
| 149 |
-
This section allows you to add/edit theme.
|
| 150 |
-
<a style="color: blue; text-decoration: none;" target="_blank"
|
| 151 |
-
href="https://help.10web.io/hc/en-us/articles/360017960352--Facebook-Feed-WD-Themes?utm_source=facebook_feed&utm_medium=free_plugin">Read More in User Manual</a>
|
| 152 |
-
</div>
|
| 153 |
<form class="wrap" method="post" id="themes_form" action="admin.php?page=themes_ffwd" style="width:99%;">
|
| 154 |
<?php wp_nonce_field('themes_ffwd', 'ffwd_nonce'); ?>
|
| 155 |
<h2></h2>
|
| 28 |
{
|
| 29 |
?>
|
| 30 |
<div class="wrap">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
<?php WDW_FFWD_Library::topbar(); ?>
|
| 33 |
|
| 34 |
<div style="clear: both;float: right;color: #15699F; font-size: 20px; margin-top:10px; padding:8px 15px;">
|
| 35 |
This is FREE version, Customizing themes is available only in the PAID version.
|
| 123 |
'heart' => 'Heart',
|
| 124 |
'square' => 'Square',
|
| 125 |
);
|
| 126 |
+
|
| 127 |
+
WDW_FFWD_Library::topbar();
|
| 128 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
<form class="wrap" method="post" id="themes_form" action="admin.php?page=themes_ffwd" style="width:99%;">
|
| 130 |
<?php wp_nonce_field('themes_ffwd', 'ffwd_nonce'); ?>
|
| 131 |
<h2></h2>
|
css/images/help.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
| 1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-64 -64)"><path class="a" d="M73.5,64A9.5,9.5,0,1,0,83,73.5,9.5,9.5,0,0,0,73.5,64Zm0,17.388A7.888,7.888,0,1,1,81.388,73.5,7.89,7.89,0,0,1,73.5,81.388Z"/><path class="a" d="M357.759,276.863a3.676,3.676,0,0,0-4.733,0A2.891,2.891,0,0,0,352,279.054v.161a.17.17,0,0,0,.17.17h1.018a.17.17,0,0,0,.17-.17v-.161a2.07,2.07,0,0,1,4.071,0,1.716,1.716,0,0,1-1.19,1.542,2.37,2.37,0,0,0-1.1.867,2.427,2.427,0,0,0-.422,1.376v.456a.17.17,0,0,0,.17.17H355.9a.17.17,0,0,0,.17-.17v-.481a1.025,1.025,0,0,1,.655-.95,3.061,3.061,0,0,0,2.059-2.81,2.882,2.882,0,0,0-1.024-2.191Zm-3.215,8.807a.848.848,0,1,0,.848-.848A.848.848,0,0,0,354.545,285.67Z" transform="translate(-281.893 -207.504)"/></g></svg>
|
css/topbar.css
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.wrap h1.head-notice {
|
| 2 |
+
height: 0;
|
| 3 |
+
padding: 0;
|
| 4 |
+
visibility: hidden;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Top bar start */
|
| 8 |
+
.topbar-container * {
|
| 9 |
+
font-family: Roboto;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
.topbar-container {
|
| 13 |
+
display: flex;
|
| 14 |
+
flex-direction: row;
|
| 15 |
+
justify-content: flex-end;
|
| 16 |
+
margin: 20px 0 20px 0;
|
| 17 |
+
font-family: Roboto;
|
| 18 |
+
}
|
| 19 |
+
.topbar-container * {
|
| 20 |
+
box-sizing: border-box;
|
| 21 |
+
}
|
| 22 |
+
.topbar-container .topbar {
|
| 23 |
+
background-color: #FFFFFF;
|
| 24 |
+
border: 1px solid #D0D0D080;
|
| 25 |
+
border-radius: 7px;
|
| 26 |
+
color: #000000;
|
| 27 |
+
padding: 10px;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.topbar_cont {
|
| 31 |
+
display: flex;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.topbar-container .topbar.topbar_support_forum {
|
| 35 |
+
background-color: #4786FF;
|
| 36 |
+
margin-left: 20px;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.topbar-container .topbar.topbar_support_forum:hover {
|
| 40 |
+
background-color: #3077FF;
|
| 41 |
+
opacity:1
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.topbar-content {
|
| 45 |
+
display: flex;
|
| 46 |
+
justify-content: space-between;
|
| 47 |
+
flex: auto;
|
| 48 |
+
margin: 0 20px 0 0;
|
| 49 |
+
padding: 10px 15px;
|
| 50 |
+
height: 60px;
|
| 51 |
+
}
|
| 52 |
+
.topbar-links {
|
| 53 |
+
color: #000000;
|
| 54 |
+
display: flex;
|
| 55 |
+
flex-direction: column;
|
| 56 |
+
justify-content: space-around;
|
| 57 |
+
font-size: 18px;
|
| 58 |
+
font-weight: 300;
|
| 59 |
+
margin: 0 0 0 2px;
|
| 60 |
+
height: 60px;
|
| 61 |
+
}
|
| 62 |
+
.topbar-links-container {
|
| 63 |
+
display: flex;
|
| 64 |
+
justify-content: space-around;
|
| 65 |
+
height: 80%;
|
| 66 |
+
}
|
| 67 |
+
.topbar-links-item {
|
| 68 |
+
display: flex;
|
| 69 |
+
flex: 1;
|
| 70 |
+
align-self: center;
|
| 71 |
+
justify-content: center;
|
| 72 |
+
width: 170px;
|
| 73 |
+
line-height: 50px;
|
| 74 |
+
}
|
| 75 |
+
.topbar-links * {
|
| 76 |
+
font-size: 18px;
|
| 77 |
+
}
|
| 78 |
+
.topbar-links a,
|
| 79 |
+
.topbar-links a:focus {
|
| 80 |
+
align-self: center;
|
| 81 |
+
box-shadow: none;
|
| 82 |
+
color: #000000;
|
| 83 |
+
text-decoration: none;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.topbar-links a.topbar_support_forum {
|
| 87 |
+
color: #fff;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.topbar-links a.topbar_support_forum .help_icon {
|
| 91 |
+
margin-right: 10px;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.topbar-links a:hover {
|
| 95 |
+
opacity: 0.5;
|
| 96 |
+
text-decoration: none;
|
| 97 |
+
}
|
| 98 |
+
.topbar-separator {
|
| 99 |
+
background-color: #C2C2C280;
|
| 100 |
+
width: 1px;
|
| 101 |
+
height: 100%;
|
| 102 |
+
}
|
| 103 |
+
.topbar-content-title {
|
| 104 |
+
color: #0C4D68;
|
| 105 |
+
font-size: 16px;
|
| 106 |
+
font-weight: 700;
|
| 107 |
+
line-height: 22px;
|
| 108 |
+
text-transform: uppercase;
|
| 109 |
+
}
|
| 110 |
+
.topbar-content-body {
|
| 111 |
+
font-size: 15px;
|
| 112 |
+
font-weight: 300;
|
| 113 |
+
line-height: 20px;
|
| 114 |
+
}
|
| 115 |
+
.topbar-content-container {
|
| 116 |
+
display: flex;
|
| 117 |
+
flex-direction: column;
|
| 118 |
+
}
|
| 119 |
+
.topbar-content-button-container,
|
| 120 |
+
.free-message-button-container {
|
| 121 |
+
align-self: center;
|
| 122 |
+
}
|
| 123 |
+
.topbar-upgrade-button,
|
| 124 |
+
.topbar-upgrade-button:focus {
|
| 125 |
+
background-color: #29B311;
|
| 126 |
+
border-radius: 20px;
|
| 127 |
+
box-shadow: none;
|
| 128 |
+
color: #FFFFFF;
|
| 129 |
+
font-size: 14px;
|
| 130 |
+
padding: 5px 44px;
|
| 131 |
+
text-decoration: none;
|
| 132 |
+
text-transform: uppercase;
|
| 133 |
+
}
|
| 134 |
+
.topbar-upgrade-button:hover {
|
| 135 |
+
text-decoration: none;
|
| 136 |
+
color: #FFFFFFCC;
|
| 137 |
+
}
|
| 138 |
+
@media screen and (max-width: 1366px) {
|
| 139 |
+
.topbar-links {
|
| 140 |
+
font-size: 15px;
|
| 141 |
+
}
|
| 142 |
+
.topbar-content-title {
|
| 143 |
+
font-size: 15px;
|
| 144 |
+
}
|
| 145 |
+
.topbar-content-body {
|
| 146 |
+
font-size: 13px;
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
@media screen and (max-width: 1285px) {
|
| 150 |
+
.topbar-container {
|
| 151 |
+
flex-direction: column;
|
| 152 |
+
}
|
| 153 |
+
.topbar-links,
|
| 154 |
+
.topbar-content {
|
| 155 |
+
margin: 0 0 10px 0;
|
| 156 |
+
width: 100%;
|
| 157 |
+
}
|
| 158 |
+
.topbar-content {
|
| 159 |
+
flex-direction: column;
|
| 160 |
+
height: auto;
|
| 161 |
+
}
|
| 162 |
+
.topbar-content-container,
|
| 163 |
+
.topbar-content-container * {
|
| 164 |
+
align-self: center;
|
| 165 |
+
padding-bottom: 4px;
|
| 166 |
+
}
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
@media screen and (max-width: 450px) {
|
| 170 |
+
.topbar_cont {
|
| 171 |
+
display: block;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
.topbar-container .topbar.topbar_support_forum {
|
| 175 |
+
margin-left: 0px;
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/* Top bar end */
|
facebook-feed-wd.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin Name: 10Web Social Feed
|
| 5 |
* Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
|
| 6 |
* Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
-
* Version: 1.1.
|
| 8 |
* Author: 10Web
|
| 9 |
* Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -15,7 +15,7 @@ define( 'WD_FFWD_URL', plugins_url( plugin_basename( dirname( __FILE__ ) ) ) );
|
|
| 15 |
define( 'WD_FB_PREFIX', 'ffwd' );
|
| 16 |
define( 'WD_FB_IS_FREE', TRUE );
|
| 17 |
if (! defined( 'FFWD_VERSION' ) ){
|
| 18 |
-
define ('FFWD_VERSION',"1.1.
|
| 19 |
}
|
| 20 |
|
| 21 |
add_action('admin_notices', 'ffwd_login_notice');
|
|
@@ -131,10 +131,20 @@ function ffwd_menu_panel() {
|
|
| 131 |
// }
|
| 132 |
$licensing_page = add_submenu_page( $parent_slug, 'Get Premium', 'Get Premium', 'manage_options', 'ffwd_licensing', 'ffwd_licensing_page' );
|
| 133 |
add_action( 'admin_print_styles-' . $licensing_page, 'ffwd_styles' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
}
|
| 135 |
$uninstall_page = add_submenu_page( '', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_ffwd', 'ffwd_menu' );
|
| 136 |
add_action( 'admin_print_styles-' . $uninstall_page, 'ffwd_styles' );
|
| 137 |
add_action( 'admin_print_scripts-' . $uninstall_page, 'ffwd_admin_scripts' );
|
|
|
|
| 138 |
}
|
| 139 |
|
| 140 |
|
|
@@ -875,10 +885,10 @@ if ( ! isset( $_GET['action'] ) || sanitize_text_field($_GET['action']) != 'deac
|
|
| 875 |
|
| 876 |
// Plugin styles.
|
| 877 |
function ffwd_styles() {
|
| 878 |
-
|
| 879 |
wp_admin_css( 'thickbox' );
|
| 880 |
wp_enqueue_style( 'ffwd_tables', WD_FFWD_URL . '/css/ffwd_tables.css', array(), ffwd_get_version() );
|
| 881 |
-
|
|
|
|
| 882 |
}
|
| 883 |
|
| 884 |
// Plugin scripts.
|
|
@@ -1140,7 +1150,7 @@ function ffwd_add_plugin_meta_links($meta_fields, $file) {
|
|
| 1140 |
if ( plugin_basename(__FILE__) == $file ) {
|
| 1141 |
$plugin_url = "https://wordpress.org/support/plugin/wd-facebook-feed";
|
| 1142 |
$prefix = 'ffwd';
|
| 1143 |
-
$meta_fields[] = "<a href='
|
| 1144 |
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
| 1145 |
<i class='wdi-rate-stars'>"
|
| 1146 |
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
|
@@ -1199,4 +1209,22 @@ if ( WD_FB_IS_FREE ) {
|
|
| 1199 |
'page_url' => admin_url('admin.php?page=tenweb_menu'), // Redirect to URL after activating the plugin.
|
| 1200 |
);
|
| 1201 |
new TWBanner($tw_banner_params);
|
| 1202 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
* Plugin Name: 10Web Social Feed
|
| 5 |
* Plugin URI: https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin
|
| 6 |
* Description: 10Web Social Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
|
| 7 |
+
* Version: 1.1.15
|
| 8 |
* Author: 10Web
|
| 9 |
* Author URI: https://10web.io/plugins/?utm_source=facebook_feed&utm_medium=free_plugin
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 15 |
define( 'WD_FB_PREFIX', 'ffwd' );
|
| 16 |
define( 'WD_FB_IS_FREE', TRUE );
|
| 17 |
if (! defined( 'FFWD_VERSION' ) ){
|
| 18 |
+
define ('FFWD_VERSION',"1.1.15");
|
| 19 |
}
|
| 20 |
|
| 21 |
add_action('admin_notices', 'ffwd_login_notice');
|
| 131 |
// }
|
| 132 |
$licensing_page = add_submenu_page( $parent_slug, 'Get Premium', 'Get Premium', 'manage_options', 'ffwd_licensing', 'ffwd_licensing_page' );
|
| 133 |
add_action( 'admin_print_styles-' . $licensing_page, 'ffwd_styles' );
|
| 134 |
+
|
| 135 |
+
/* Custom link to wordpress.org*/
|
| 136 |
+
global $submenu;
|
| 137 |
+
$url = 'https://wordpress.org/support/plugin/wd-facebook-feed/#new-post';
|
| 138 |
+
$submenu[$parent_slug][] = array(
|
| 139 |
+
'<div id="ffwd_ask_question">' . __('Ask a question', 'ffwd_menu') . '</div>',
|
| 140 |
+
'manage_options',
|
| 141 |
+
$url
|
| 142 |
+
);
|
| 143 |
}
|
| 144 |
$uninstall_page = add_submenu_page( '', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_ffwd', 'ffwd_menu' );
|
| 145 |
add_action( 'admin_print_styles-' . $uninstall_page, 'ffwd_styles' );
|
| 146 |
add_action( 'admin_print_scripts-' . $uninstall_page, 'ffwd_admin_scripts' );
|
| 147 |
+
|
| 148 |
}
|
| 149 |
|
| 150 |
|
| 885 |
|
| 886 |
// Plugin styles.
|
| 887 |
function ffwd_styles() {
|
|
|
|
| 888 |
wp_admin_css( 'thickbox' );
|
| 889 |
wp_enqueue_style( 'ffwd_tables', WD_FFWD_URL . '/css/ffwd_tables.css', array(), ffwd_get_version() );
|
| 890 |
+
wp_register_style('ffwd_topbar', WD_FFWD_URL . '/css/topbar.css', array(), ffwd_get_version());
|
| 891 |
+
wp_register_style('ffwd_roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
|
| 892 |
}
|
| 893 |
|
| 894 |
// Plugin scripts.
|
| 1150 |
if ( plugin_basename(__FILE__) == $file ) {
|
| 1151 |
$plugin_url = "https://wordpress.org/support/plugin/wd-facebook-feed";
|
| 1152 |
$prefix = 'ffwd';
|
| 1153 |
+
$meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-facebook-feed/#new-post' target='_blank'>" . __('Ask a question', $prefix) . "</a>";
|
| 1154 |
$meta_fields[] = "<a href='" . $plugin_url . "/reviews#new-post' target='_blank' title='" . __('Rate', $prefix) . "'>
|
| 1155 |
<i class='wdi-rate-stars'>"
|
| 1156 |
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
| 1209 |
'page_url' => admin_url('admin.php?page=tenweb_menu'), // Redirect to URL after activating the plugin.
|
| 1210 |
);
|
| 1211 |
new TWBanner($tw_banner_params);
|
| 1212 |
+
}
|
| 1213 |
+
|
| 1214 |
+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'ffwd_add_ask_question_links');
|
| 1215 |
+
|
| 1216 |
+
/**
|
| 1217 |
+
* Add plugin action links.
|
| 1218 |
+
*
|
| 1219 |
+
* Add a link to the settings page on the plugins.php page.
|
| 1220 |
+
*
|
| 1221 |
+
* @since 1.0.0
|
| 1222 |
+
*
|
| 1223 |
+
* @param array $links List of existing plugin action links.
|
| 1224 |
+
* @return array List of modified plugin action links.
|
| 1225 |
+
*/
|
| 1226 |
+
function ffwd_add_ask_question_links ( $links ) {
|
| 1227 |
+
$url = 'https://wordpress.org/support/plugin/wd-facebook-feed/#new-post';
|
| 1228 |
+
$fm_ask_question_link = array('<a href="' . $url . '" target="_blank">' . __('Help', WD_FB_PREFIX) . '</a>');
|
| 1229 |
+
return array_merge( $links, $fm_ask_question_link );
|
| 1230 |
+
}
|
framework/WDW_FFWD_Library.php
CHANGED
|
@@ -995,10 +995,108 @@ class WDW_FFWD_Library {
|
|
| 995 |
$return_data = sanitize_text_field($data);
|
| 996 |
return $return_data;
|
| 997 |
}
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1004 |
}
|
| 995 |
$return_data = sanitize_text_field($data);
|
| 996 |
return $return_data;
|
| 997 |
}
|
| 998 |
+
|
| 999 |
+
|
| 1000 |
+
/**
|
| 1001 |
+
* Generate top bar.
|
| 1002 |
+
*
|
| 1003 |
+
* @return string Top bar html.
|
| 1004 |
+
*/
|
| 1005 |
+
public static function topbar() {
|
| 1006 |
+
$page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
|
| 1007 |
+
$user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
|
| 1008 |
+
$show_guide_link = true;
|
| 1009 |
+
$description = '';
|
| 1010 |
+
switch ( $page ) {
|
| 1011 |
+
case 'info_ffwd':
|
| 1012 |
+
{
|
| 1013 |
+
$user_guide_link .= '360017959512-Getting-Facebook-Access-Token';
|
| 1014 |
+
$description .= __('This section allows you to create, edit and delete Facebook Feed by 10Web.', WD_FB_PREFIX);
|
| 1015 |
+
break;
|
| 1016 |
+
}
|
| 1017 |
+
case 'options_ffwd':
|
| 1018 |
+
{
|
| 1019 |
+
$user_guide_link .= '360017960312-Other-Settings';
|
| 1020 |
+
$description .= __('This section allows you to change settings for different views and general options.', WD_FB_PREFIX);
|
| 1021 |
+
|
| 1022 |
+
break;
|
| 1023 |
+
}
|
| 1024 |
+
case 'themes_ffwd':
|
| 1025 |
+
{
|
| 1026 |
+
$user_guide_link .= '360017960352--Facebook-Feed-Themes';
|
| 1027 |
+
$description .= __('This section allows you to add/edit theme.', WD_FB_PREFIX);
|
| 1028 |
+
|
| 1029 |
+
break;
|
| 1030 |
+
}
|
| 1031 |
+
default:
|
| 1032 |
+
{
|
| 1033 |
+
return '';
|
| 1034 |
+
break;
|
| 1035 |
+
}
|
| 1036 |
+
}
|
| 1037 |
+
|
| 1038 |
+
$support_forum_link = 'https://wordpress.org/support/plugin/wd-facebook-feed/#new-post';
|
| 1039 |
+
$premium_link = 'https://10web.io/plugins/wordpress-facebook-feed/?utm_source=facebook_feed&utm_medium=free_plugin';
|
| 1040 |
+
wp_enqueue_style('ffwd_roboto');
|
| 1041 |
+
wp_enqueue_style('ffwd_topbar');
|
| 1042 |
+
ob_start();
|
| 1043 |
+
?>
|
| 1044 |
+
<div class="wrap">
|
| 1045 |
+
<h1 class="head-notice"> </h1>
|
| 1046 |
+
<div class="topbar-container">
|
| 1047 |
+
<?php
|
| 1048 |
+
if ( WD_FB_IS_FREE ) {
|
| 1049 |
+
?>
|
| 1050 |
+
<div class="topbar topbar-content">
|
| 1051 |
+
<div class="topbar-content-container">
|
| 1052 |
+
<div class="topbar-content-title">
|
| 1053 |
+
<?php _e('Facebook Feed Premium', WD_FB_PREFIX); ?>
|
| 1054 |
+
</div>
|
| 1055 |
+
<div class="topbar-content-body">
|
| 1056 |
+
<?php echo $description; ?>
|
| 1057 |
+
</div>
|
| 1058 |
+
</div>
|
| 1059 |
+
<div class="topbar-content-button-container">
|
| 1060 |
+
<a href="<?php echo $premium_link; ?>" target="_blank" class="topbar-upgrade-button"><?php _e( 'Upgrade', WD_FB_PREFIX ); ?></a>
|
| 1061 |
+
</div>
|
| 1062 |
+
</div>
|
| 1063 |
+
<?php
|
| 1064 |
+
}
|
| 1065 |
+
?>
|
| 1066 |
+
<div class="topbar_cont">
|
| 1067 |
+
<?php
|
| 1068 |
+
if ( $show_guide_link ) {
|
| 1069 |
+
?>
|
| 1070 |
+
<div class="topbar topbar-links">
|
| 1071 |
+
<div class="topbar-links-container">
|
| 1072 |
+
<a href="<?php echo $user_guide_link; ?>" target="_blank" class="topbar_user_guid">
|
| 1073 |
+
<div class="topbar-links-item">
|
| 1074 |
+
<?php _e('User guide', WD_FB_PREFIX); ?>
|
| 1075 |
+
</div>
|
| 1076 |
+
</a>
|
| 1077 |
+
</div>
|
| 1078 |
+
</div>
|
| 1079 |
+
<?php
|
| 1080 |
+
}
|
| 1081 |
+
if (WD_FB_IS_FREE) {
|
| 1082 |
+
?>
|
| 1083 |
+
<div class="topbar topbar-links topbar_support_forum">
|
| 1084 |
+
<div class="topbar-links-container">
|
| 1085 |
+
<a href="<?php echo $support_forum_link; ?>" target="_blank" class="topbar_support_forum">
|
| 1086 |
+
<div class="topbar-links-item">
|
| 1087 |
+
<img src="<?php echo WD_FFWD_URL . '/css/images/help.svg'; ?>" class="help_icon" />
|
| 1088 |
+
<?php _e('Ask a question', WD_FB_PREFIX); ?>
|
| 1089 |
+
</div>
|
| 1090 |
+
</a>
|
| 1091 |
+
</div>
|
| 1092 |
+
</div>
|
| 1093 |
+
<?php
|
| 1094 |
+
}
|
| 1095 |
+
?>
|
| 1096 |
+
</div>
|
| 1097 |
+
</div>
|
| 1098 |
+
</div>
|
| 1099 |
+
<?php
|
| 1100 |
+
echo ob_get_clean();
|
| 1101 |
+
}
|
| 1102 |
}
|
js/ffwd.js
CHANGED
|
@@ -970,4 +970,8 @@ jQuery(document).ready(function () {
|
|
| 970 |
}
|
| 971 |
|
| 972 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 973 |
});
|
| 970 |
}
|
| 971 |
|
| 972 |
|
| 973 |
+
jQuery('#ffwd_ask_question').parent().attr('target','_blank');
|
| 974 |
+
|
| 975 |
+
|
| 976 |
+
|
| 977 |
});
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: customizable facebook feed, facebook, facebook feed, facebook group, faceb
|
|
| 4 |
Requires at least: 3.4
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 5.2
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -105,8 +105,11 @@ The plugin uses Facebook API to get public data from Facebook. All the received
|
|
| 105 |
|
| 106 |
== Changelog ==
|
| 107 |
|
|
|
|
|
|
|
|
|
|
| 108 |
= 1.1.14 =
|
| 109 |
-
* Fixed: Minor bug
|
| 110 |
|
| 111 |
= 1.1.13 =
|
| 112 |
* Fixed: Security issues
|
| 4 |
Requires at least: 3.4
|
| 5 |
Requires PHP: 5.2
|
| 6 |
Tested up to: 5.2
|
| 7 |
+
Stable tag: 1.1.15
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 105 |
|
| 106 |
== Changelog ==
|
| 107 |
|
| 108 |
+
= 1.1.15 =
|
| 109 |
+
* Added: Ask a question button.
|
| 110 |
+
|
| 111 |
= 1.1.14 =
|
| 112 |
+
* Fixed: Minor bug
|
| 113 |
|
| 114 |
= 1.1.13 =
|
| 115 |
* Fixed: Security issues
|
