Version Description
- Fix: Fixed an issue with the date not being hidden when unchecked in the Show/Hide section
- Fix: Fixed an issue with the date not being displayed below event posts when the date position was set to 'At the bottom of the post'
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Facebook Feed |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.1.1
- README.txt +5 -1
- css/cff-style.css +1 -1
- custom-facebook-feed.php +12 -4
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
|
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.0
|
6 |
-
Stable tag: 2.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -271,6 +271,10 @@ Credit iMarketing Factory - "The Importance of Facebook for Small Businesses"
|
|
271 |
9. It's super easy to display your Facebook feed in any page or post
|
272 |
|
273 |
== Changelog ==
|
|
|
|
|
|
|
|
|
274 |
= 2.1 =
|
275 |
* New: Added an option to preserve/save your plugin options after uninstalling the plugin. This makes manually updating the plugin much easier.
|
276 |
* New: Added a 'Settings' link to the plugin on the Plugins page
|
3 |
Tags: Facebook, Facebook feed, Facebook posts, Facebook wall, Facebook events, Facebook page, Facebook group, Facebook Like box, Customizable Facebook Feed, custom, customizable, seo, responsive, mobile, social media
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.0
|
6 |
+
Stable tag: 2.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
271 |
9. It's super easy to display your Facebook feed in any page or post
|
272 |
|
273 |
== Changelog ==
|
274 |
+
= 2.1.1 =
|
275 |
+
* Fix: Fixed an issue with the date not being hidden when unchecked in the Show/Hide section
|
276 |
+
* Fix: Fixed an issue with the date not being displayed below event posts when the date position was set to 'At the bottom of the post'
|
277 |
+
|
278 |
= 2.1 =
|
279 |
* New: Added an option to preserve/save your plugin options after uninstalling the plugin. This makes manually updating the plugin much easier.
|
280 |
* New: Added a 'Settings' link to the plugin on the Plugins page
|
css/cff-style.css
CHANGED
@@ -234,7 +234,7 @@
|
|
234 |
float: left;
|
235 |
clear: none;
|
236 |
width: 100%;
|
237 |
-
padding:
|
238 |
}
|
239 |
#cff .cff-details h5{
|
240 |
margin: 0 0 5px 0;
|
234 |
float: left;
|
235 |
clear: none;
|
236 |
width: 100%;
|
237 |
+
padding: 5px 0;
|
238 |
}
|
239 |
#cff .cff-details h5{
|
240 |
margin: 0 0 5px 0;
|
custom-facebook-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Facebook Feed
|
4 |
Plugin URI: http://smashballoon.com/custom-facebook-feed
|
5 |
Description: Add a completely customizable Facebook feed to your WordPress site
|
6 |
-
Version: 2.1
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
@@ -815,12 +815,14 @@ function display_cff($atts) {
|
|
815 |
|
816 |
//Author text
|
817 |
$cff_author .= '<a href="https://facebook.com/' . $news->from->id . '" '.$target.' title="'.$news->from->name.' on Facebook" '.$cff_author_styles.'><div class="cff-author-text">';
|
818 |
-
|
|
|
819 |
$cff_author .= '<p class="cff-page-name cff-author-date">'.$news->from->name.'</p>';
|
820 |
$cff_author .= $cff_date;
|
821 |
} else {
|
822 |
$cff_author .= '<span class="cff-page-name">'.$news->from->name.'</span>';
|
823 |
}
|
|
|
824 |
$cff_author .= '</div>';
|
825 |
|
826 |
//Author image
|
@@ -1160,9 +1162,15 @@ function display_cff($atts) {
|
|
1160 |
//LINK
|
1161 |
if($cff_show_shared_links) $cff_post_item .= $cff_shared_link;
|
1162 |
//DATE BELOW
|
1163 |
-
if ( (!$cff_show_author && $cff_date_position == 'author') || $cff_show_date && $cff_date_position == 'below')
|
|
|
|
|
1164 |
//EVENT
|
1165 |
if($cff_show_event_title || $cff_show_event_details) $cff_post_item .= $cff_event;
|
|
|
|
|
|
|
|
|
1166 |
//VIEW ON FACEBOOK LINK
|
1167 |
if($cff_show_link) $cff_post_item .= $cff_link;
|
1168 |
|
@@ -1611,7 +1619,7 @@ add_filter('widget_text', 'do_shortcode');
|
|
1611 |
add_action( 'wp_enqueue_scripts', 'cff_add_my_stylesheet' );
|
1612 |
function cff_add_my_stylesheet() {
|
1613 |
// Respects SSL, Style.css is relative to the current file
|
1614 |
-
wp_register_style( 'cff', plugins_url('css/cff-style.css?
|
1615 |
wp_enqueue_style( 'cff' );
|
1616 |
wp_enqueue_style( 'cff-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );
|
1617 |
}
|
3 |
Plugin Name: Custom Facebook Feed
|
4 |
Plugin URI: http://smashballoon.com/custom-facebook-feed
|
5 |
Description: Add a completely customizable Facebook feed to your WordPress site
|
6 |
+
Version: 2.1.1
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
815 |
|
816 |
//Author text
|
817 |
$cff_author .= '<a href="https://facebook.com/' . $news->from->id . '" '.$target.' title="'.$news->from->name.' on Facebook" '.$cff_author_styles.'><div class="cff-author-text">';
|
818 |
+
|
819 |
+
if($cff_show_date && $cff_date_position !== 'above' && $cff_date_position !== 'below'){
|
820 |
$cff_author .= '<p class="cff-page-name cff-author-date">'.$news->from->name.'</p>';
|
821 |
$cff_author .= $cff_date;
|
822 |
} else {
|
823 |
$cff_author .= '<span class="cff-page-name">'.$news->from->name.'</span>';
|
824 |
}
|
825 |
+
|
826 |
$cff_author .= '</div>';
|
827 |
|
828 |
//Author image
|
1162 |
//LINK
|
1163 |
if($cff_show_shared_links) $cff_post_item .= $cff_shared_link;
|
1164 |
//DATE BELOW
|
1165 |
+
if ( (!$cff_show_author && $cff_date_position == 'author') || $cff_show_date && $cff_date_position == 'below') {
|
1166 |
+
if($cff_show_date && $cff_post_type !== 'event') $cff_post_item .= $cff_date;
|
1167 |
+
}
|
1168 |
//EVENT
|
1169 |
if($cff_show_event_title || $cff_show_event_details) $cff_post_item .= $cff_event;
|
1170 |
+
//DATE BELOW (only for Event posts)
|
1171 |
+
if ( (!$cff_show_author && $cff_date_position == 'author') || $cff_show_date && $cff_date_position == 'below') {
|
1172 |
+
if($cff_show_date && $cff_post_type == 'event') $cff_post_item .= $cff_date;
|
1173 |
+
}
|
1174 |
//VIEW ON FACEBOOK LINK
|
1175 |
if($cff_show_link) $cff_post_item .= $cff_link;
|
1176 |
|
1619 |
add_action( 'wp_enqueue_scripts', 'cff_add_my_stylesheet' );
|
1620 |
function cff_add_my_stylesheet() {
|
1621 |
// Respects SSL, Style.css is relative to the current file
|
1622 |
+
wp_register_style( 'cff', plugins_url('css/cff-style.css?8', __FILE__) );
|
1623 |
wp_enqueue_style( 'cff' );
|
1624 |
wp_enqueue_style( 'cff-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );
|
1625 |
}
|