Version Description
- Improved: fb.js no longer depends on jQuery
- Improved: Templates CSS (completely rewritten)
- Improved: Custom embed responsiveness
- Improved: Album thumbnails look
- Fixed: Adaptive embed script
- Added: [embedfb] shortcode just in case [facebook] shortcode is being used by another plugin
- Updated: Deprecate Facebook SDK version 2.3 force to 2.4
Download this release
Release Info
Developer | poxtron |
Plugin | WP Embed Facebook |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.15 to 2.2.0
- lang/wp-embed-facebook-es_AR.po +2 -2
- lang/wp-embed-facebook-es_CL.po +2 -2
- lang/wp-embed-facebook-es_ES.po +2 -2
- lang/wp-embed-facebook-es_GT.po +2 -2
- lang/wp-embed-facebook-es_MX.po +2 -2
- lang/wp-embed-facebook-es_PE.po +2 -2
- lang/wp-embed-facebook-es_VE.po +2 -2
- lang/wp-embed-facebook.pot +3 -3
- lib/class-wef-magic-embeds.php +4 -8
- lib/class-wef-social-plugins.php +4 -93
- lib/class-wp-embed-fb-plugin.php +5 -5
- lib/class-wp-embed-fb.php +6 -2
- lib/js/fb.js +48 -18
- lib/js/fb.min.js +1 -1
- lib/js/wpembedfb.js +4 -4
- lib/js/wpembedfb.min.js +1 -1
- readme.txt +13 -4
- templates/classic/album.php +9 -9
- templates/classic/classic.css +1 -1
- templates/classic/classic.css.map +1 -1
- templates/classic/classic.sass +75 -89
- templates/classic/com-page.php +4 -4
- templates/classic/event.php +4 -4
- templates/classic/page.php +7 -7
- templates/classic/photo.php +1 -1
- templates/classic/post.php +3 -3
- templates/classic/profile.php +4 -4
- templates/classic/single-post.php +15 -15
- templates/classic/video.php +1 -1
- templates/default/album.php +9 -11
- templates/default/com-page.php +4 -4
- templates/default/default.css +1 -1
- templates/default/default.css.map +1 -1
- templates/default/default.sass +74 -89
- templates/default/event.php +4 -4
- templates/default/page.php +7 -7
- templates/default/photo.php +1 -1
- templates/default/post.php +14 -7
- templates/default/profile.php +4 -4
- templates/default/single-post.php +15 -15
- templates/default/video.php +1 -1
- wp-embed-facebook.php +1 -1
lang/wp-embed-facebook-es_AR.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_CL.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_ES.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_GT.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_MX.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_PE.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook-es_VE.po
CHANGED
@@ -37,7 +37,7 @@ msgstr "Código final:"
|
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
-
#: lib/class-wef-social-plugins.php:
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
@@ -610,7 +610,7 @@ msgstr ""
|
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
-
#: templates/default/page.php:34
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
37 |
msgid "More information:"
|
38 |
msgstr "Más información:"
|
39 |
|
40 |
+
#: lib/class-wef-social-plugins.php:504
|
41 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
42 |
msgstr ""
|
43 |
"Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
|
610 |
|
611 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
612 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
613 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
614 |
msgid "%d people like this."
|
615 |
msgstr "a %d les gusta esto."
|
616 |
|
lang/wp-embed-facebook.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the WP Embed Facebook package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Embed Facebook 2.1.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-embed-facebook\n"
|
8 |
"POT-Creation-Date: 2016-10-06 11:26-0500\n"
|
@@ -39,7 +39,7 @@ msgstr ""
|
|
39 |
msgid "More information:"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: lib/class-wef-social-plugins.php:
|
43 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
44 |
msgstr ""
|
45 |
|
@@ -568,7 +568,7 @@ msgstr ""
|
|
568 |
|
569 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
570 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
571 |
-
#: templates/default/page.php:34
|
572 |
msgid "%d people like this."
|
573 |
msgstr ""
|
574 |
|
2 |
# This file is distributed under the same license as the WP Embed Facebook package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Embed Facebook 2.1.15\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-embed-facebook\n"
|
8 |
"POT-Creation-Date: 2016-10-06 11:26-0500\n"
|
39 |
msgid "More information:"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: lib/class-wef-social-plugins.php:504
|
43 |
msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
|
44 |
msgstr ""
|
45 |
|
568 |
|
569 |
#: templates/classic/com-page.php:20 templates/classic/page.php:34
|
570 |
#: templates/classic/post.php:21 templates/default/com-page.php:20
|
571 |
+
#: templates/default/page.php:34 templates/default/post.php:21
|
572 |
msgid "%d people like this."
|
573 |
msgstr ""
|
574 |
|
lib/class-wef-magic-embeds.php
CHANGED
@@ -20,6 +20,7 @@ class WEF_Magic_Embeds extends WP_Embed_FB_Plugin {
|
|
20 |
|
21 |
/** @see WP_Embed_FB::shortcode */
|
22 |
add_shortcode( 'facebook', 'WP_Embed_FB::shortcode' );
|
|
|
23 |
|
24 |
/** @see WEF_Social_Plugins::shortcode */
|
25 |
add_shortcode( 'fb_plugin', 'WEF_Social_Plugins::shortcode' );
|
@@ -31,7 +32,6 @@ class WEF_Magic_Embeds extends WP_Embed_FB_Plugin {
|
|
31 |
/** @see WEF_Social_Plugins::shortcode */
|
32 |
add_filter( 'wef_sp_defaults', __CLASS__ . '::wef_sp_defaults', 10, 2 );
|
33 |
add_filter( 'wef_sp_shortcode_filter', __CLASS__ . '::wef_sp_shortcode_filter',10,4 );
|
34 |
-
add_action( 'wef_sp_shortcode_action', __CLASS__ . '::wef_sp_shortcode_action' );
|
35 |
//wef_sp_embed
|
36 |
}
|
37 |
|
@@ -104,10 +104,10 @@ class WEF_Magic_Embeds extends WP_Embed_FB_Plugin {
|
|
104 |
$default_width = $defaults[ $type ]['width'];
|
105 |
if ( isset( $atts['adaptive'] ) ) {
|
106 |
if ( $atts['adaptive'] == 'true' ) {
|
107 |
-
$ret
|
108 |
}
|
109 |
} elseif ( self::get_option( 'adaptive_fb_plugin' ) == 'true' ) {
|
110 |
-
$ret
|
111 |
}
|
112 |
}
|
113 |
if ( isset( $atts['debug'] ) ) {
|
@@ -138,11 +138,7 @@ class WEF_Magic_Embeds extends WP_Embed_FB_Plugin {
|
|
138 |
}
|
139 |
return $ret;
|
140 |
}
|
141 |
-
|
142 |
-
if ( ( self::get_option( 'enq_when_needed' ) == 'true' ) && ( self::get_option( 'enq_fbjs' ) == 'true' ) ) {
|
143 |
-
wp_enqueue_script( 'wpemfb-fbjs' );
|
144 |
-
}
|
145 |
-
}
|
146 |
|
147 |
private static function add_adaptive( $default_width, $atts ) {
|
148 |
$width = isset( $atts['width'] ) ? $atts['width'] : $default_width;
|
20 |
|
21 |
/** @see WP_Embed_FB::shortcode */
|
22 |
add_shortcode( 'facebook', 'WP_Embed_FB::shortcode' );
|
23 |
+
add_shortcode( 'embedfb', 'WP_Embed_FB::shortcode' );
|
24 |
|
25 |
/** @see WEF_Social_Plugins::shortcode */
|
26 |
add_shortcode( 'fb_plugin', 'WEF_Social_Plugins::shortcode' );
|
32 |
/** @see WEF_Social_Plugins::shortcode */
|
33 |
add_filter( 'wef_sp_defaults', __CLASS__ . '::wef_sp_defaults', 10, 2 );
|
34 |
add_filter( 'wef_sp_shortcode_filter', __CLASS__ . '::wef_sp_shortcode_filter',10,4 );
|
|
|
35 |
//wef_sp_embed
|
36 |
}
|
37 |
|
104 |
$default_width = $defaults[ $type ]['width'];
|
105 |
if ( isset( $atts['adaptive'] ) ) {
|
106 |
if ( $atts['adaptive'] == 'true' ) {
|
107 |
+
$ret = self::add_adaptive( $default_width, $atts ).$ret;
|
108 |
}
|
109 |
} elseif ( self::get_option( 'adaptive_fb_plugin' ) == 'true' ) {
|
110 |
+
$ret = self::add_adaptive( $default_width, $atts ).$ret;
|
111 |
}
|
112 |
}
|
113 |
if ( isset( $atts['debug'] ) ) {
|
138 |
}
|
139 |
return $ret;
|
140 |
}
|
141 |
+
|
|
|
|
|
|
|
|
|
142 |
|
143 |
private static function add_adaptive( $default_width, $atts ) {
|
144 |
$width = isset( $atts['width'] ) ? $atts['width'] : $default_width;
|
lib/class-wef-social-plugins.php
CHANGED
@@ -492,6 +492,10 @@ class WEF_Social_Plugins {
|
|
492 |
|
493 |
$ret = self::get( $type, $data );
|
494 |
|
|
|
|
|
|
|
|
|
495 |
do_action( 'wef_sp_shortcode_action' );
|
496 |
|
497 |
return apply_filters( 'wef_sp_shortcode_filter', $ret, $type, $atts, $defaults );
|
@@ -500,97 +504,4 @@ class WEF_Social_Plugins {
|
|
500 |
return __( 'Invalid Facebook plugin type use it like this: [fb_plugin like]', 'wp-embed-facebook' );
|
501 |
}
|
502 |
|
503 |
-
/* DEPRECATED FUNCTIONS TO BE REMOVED ON v2.2 */
|
504 |
-
|
505 |
-
/**
|
506 |
-
* @param string $href
|
507 |
-
* @param $options array colorscheme | share | layout | show_faces
|
508 |
-
*
|
509 |
-
* @return string
|
510 |
-
*
|
511 |
-
* @deprecated
|
512 |
-
*
|
513 |
-
* @see WEF_Social_Plugins::get()
|
514 |
-
*/
|
515 |
-
static function like_btn( $href, $options = array() ) {
|
516 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'like\')' );
|
517 |
-
|
518 |
-
return self::get( 'like', array( 'href' => $href ) + $options );
|
519 |
-
}
|
520 |
-
|
521 |
-
/**
|
522 |
-
* @param $href
|
523 |
-
* @param array $options
|
524 |
-
*
|
525 |
-
* @return string
|
526 |
-
*
|
527 |
-
* @deprecated
|
528 |
-
* @see WEF_Social_Plugins::get()
|
529 |
-
*/
|
530 |
-
static function follow_btn( $href, $options = array() ) {
|
531 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'follow\')' );
|
532 |
-
|
533 |
-
return self::get( 'follow', array( 'href' => $href ) + $options );
|
534 |
-
}
|
535 |
-
|
536 |
-
/**
|
537 |
-
* @param string $href
|
538 |
-
* @param string $layout Can be one of "box_count", "button_count", "button", "link", "icon_link", or "icon".
|
539 |
-
*
|
540 |
-
* @return string
|
541 |
-
*
|
542 |
-
* @deprecated
|
543 |
-
* @see WEF_Social_Plugins::get()
|
544 |
-
*/
|
545 |
-
static function share_btn( $href, $layout = 'icon_link' ) {
|
546 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'share\')' );
|
547 |
-
|
548 |
-
return self::get( 'share', array( 'href' => $href, 'layout' => $layout ) );
|
549 |
-
}
|
550 |
-
|
551 |
-
/**
|
552 |
-
* @param string $href
|
553 |
-
* @param int $width
|
554 |
-
* @param array $options hide_cover,show_facepile,show_posts,small_header,height
|
555 |
-
*
|
556 |
-
* @return string
|
557 |
-
*
|
558 |
-
* @deprecated
|
559 |
-
* @see WEF_Social_Plugins::get()
|
560 |
-
*/
|
561 |
-
static function page_plugin( $href, $width, $options = array() ) {
|
562 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'page\')' );
|
563 |
-
|
564 |
-
return self::get( 'page', array( 'href' => $href, 'width' => $width ) + $options );
|
565 |
-
}
|
566 |
-
|
567 |
-
/**
|
568 |
-
* @param string $href
|
569 |
-
* @param int $width
|
570 |
-
*
|
571 |
-
* @return string
|
572 |
-
*
|
573 |
-
* @deprecated
|
574 |
-
* @see WEF_Social_Plugins::get()
|
575 |
-
*/
|
576 |
-
static function embedded_post( $href, $width ) {
|
577 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'post\')' );
|
578 |
-
|
579 |
-
return self::get( 'post', array( 'href' => $href, 'width' => $width ) );
|
580 |
-
}
|
581 |
-
|
582 |
-
/**
|
583 |
-
* @param string $href
|
584 |
-
* @param int $width
|
585 |
-
*
|
586 |
-
* @return string
|
587 |
-
*
|
588 |
-
* @deprecated
|
589 |
-
* @see WEF_Social_Plugins::get()
|
590 |
-
*/
|
591 |
-
static function embedded_video( $href, $width ) {
|
592 |
-
_deprecated_function( __CLASS__ . '::' . __FUNCTION__ . '()', '2.1.1', __CLASS__ . '::' . 'get(\'video\')' );
|
593 |
-
|
594 |
-
return self::get( 'video', array( 'href' => $href, 'width' => $width ) );
|
595 |
-
}
|
596 |
}
|
492 |
|
493 |
$ret = self::get( $type, $data );
|
494 |
|
495 |
+
if ( ( WP_Embed_FB_Plugin::get_option( 'enq_when_needed' ) == 'true' ) && ( WP_Embed_FB_Plugin::get_option( 'enq_fbjs' ) == 'true' ) ) {
|
496 |
+
wp_enqueue_script( 'wpemfb-fbjs' );
|
497 |
+
}
|
498 |
+
|
499 |
do_action( 'wef_sp_shortcode_action' );
|
500 |
|
501 |
return apply_filters( 'wef_sp_shortcode_filter', $ret, $type, $atts, $defaults );
|
504 |
return __( 'Invalid Facebook plugin type use it like this: [fb_plugin like]', 'wp-embed-facebook' );
|
505 |
}
|
506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
}
|
lib/class-wp-embed-fb-plugin.php
CHANGED
@@ -230,9 +230,9 @@ class WP_Embed_FB_Plugin {
|
|
230 |
} elseif ( session_status() == PHP_SESSION_NONE ) {
|
231 |
session_start();
|
232 |
}
|
233 |
-
if ( (float) substr( WP_Embed_FB_Plugin::get_option( 'sdk_version' ), 1 ) <= 2.
|
234 |
$options = WP_Embed_FB_Plugin::get_option();
|
235 |
-
$options['sdk_version'] = 'v2.
|
236 |
WP_Embed_FB_Plugin::set_options( $options );
|
237 |
}
|
238 |
}
|
@@ -258,7 +258,7 @@ class WP_Embed_FB_Plugin {
|
|
258 |
$true_path = get_stylesheet_directory_uri() . "/plugins/wp-embed-facebook/$theme/$theme.css";
|
259 |
}
|
260 |
|
261 |
-
wp_register_style( 'wpemfb-' . $theme, $true_path, array(), '1.
|
262 |
}
|
263 |
wp_register_style( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/css/lightbox.css', array( ), '1.0' );
|
264 |
wp_register_script( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/js/lightbox.min.js', array( 'jquery' ), '1.0' );
|
@@ -274,9 +274,9 @@ class WP_Embed_FB_Plugin {
|
|
274 |
//TODO use something like wp_add_inline_script('wpemfb-lightbox','new Lightbox(WEF_LB)') for LightBox options
|
275 |
wp_localize_script( 'wpemfb-lightbox', 'WEF_LB', $translation_array );
|
276 |
}
|
277 |
-
wp_register_script( 'wpemfb', self::url() . 'lib/js/wpembedfb.min.js', array( 'jquery' ), '1.0' );
|
278 |
|
279 |
-
wp_register_script( 'wpemfb-fbjs', self::url() . 'lib/js/fb.min.js', array(
|
280 |
$translation_array = array(
|
281 |
'local' => $options['sdk_lang'],
|
282 |
'version' => $options['sdk_version'],
|
230 |
} elseif ( session_status() == PHP_SESSION_NONE ) {
|
231 |
session_start();
|
232 |
}
|
233 |
+
if ( (float) substr( WP_Embed_FB_Plugin::get_option( 'sdk_version' ), 1 ) <= 2.3 ) {
|
234 |
$options = WP_Embed_FB_Plugin::get_option();
|
235 |
+
$options['sdk_version'] = 'v2.4';
|
236 |
WP_Embed_FB_Plugin::set_options( $options );
|
237 |
}
|
238 |
}
|
258 |
$true_path = get_stylesheet_directory_uri() . "/plugins/wp-embed-facebook/$theme/$theme.css";
|
259 |
}
|
260 |
|
261 |
+
wp_register_style( 'wpemfb-' . $theme, $true_path, array(), '1.1' );
|
262 |
}
|
263 |
wp_register_style( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/css/lightbox.css', array( ), '1.0' );
|
264 |
wp_register_script( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/js/lightbox.min.js', array( 'jquery' ), '1.0' );
|
274 |
//TODO use something like wp_add_inline_script('wpemfb-lightbox','new Lightbox(WEF_LB)') for LightBox options
|
275 |
wp_localize_script( 'wpemfb-lightbox', 'WEF_LB', $translation_array );
|
276 |
}
|
277 |
+
wp_register_script( 'wpemfb', self::url() . 'lib/js/wpembedfb.min.js', array( 'jquery' ), '1.0',true );
|
278 |
|
279 |
+
wp_register_script( 'wpemfb-fbjs', self::url() . 'lib/js/fb.min.js', array( ), '1.1' );
|
280 |
$translation_array = array(
|
281 |
'local' => $options['sdk_lang'],
|
282 |
'version' => $options['sdk_version'],
|
lib/class-wp-embed-fb.php
CHANGED
@@ -364,7 +364,7 @@ class WP_Embed_FB {
|
|
364 |
$num_posts = is_numeric( self::$num_posts ) ? self::$num_posts : WP_Embed_FB_Plugin::get_option( 'max_posts' );
|
365 |
$api_string = $fb_id . '?fields=name,picture,is_community_page,link,id,cover,category,website,genre,fan_count';
|
366 |
if ( intval( $num_posts ) > 0 ) {
|
367 |
-
$api_string .= ',
|
368 |
}
|
369 |
break;
|
370 |
case 'video' :
|
@@ -456,13 +456,17 @@ class WP_Embed_FB {
|
|
456 |
self::$raw = false;
|
457 |
}
|
458 |
}
|
459 |
-
|
|
|
|
|
|
|
460 |
if ( $atts['social_plugin'] == 'true' ) {
|
461 |
self::$raw = false;
|
462 |
} else {
|
463 |
self::$raw = true;
|
464 |
}
|
465 |
}
|
|
|
466 |
if ( isset( $atts['theme'] ) ) {
|
467 |
self::$theme = $atts['theme'];
|
468 |
}
|
364 |
$num_posts = is_numeric( self::$num_posts ) ? self::$num_posts : WP_Embed_FB_Plugin::get_option( 'max_posts' );
|
365 |
$api_string = $fb_id . '?fields=name,picture,is_community_page,link,id,cover,category,website,genre,fan_count';
|
366 |
if ( intval( $num_posts ) > 0 ) {
|
367 |
+
$api_string .= ',posts.limit(' . $num_posts . '){id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)}';
|
368 |
}
|
369 |
break;
|
370 |
case 'video' :
|
456 |
self::$raw = false;
|
457 |
}
|
458 |
}
|
459 |
+
|
460 |
+
if ( isset( $atts['custom_embed'] ) ) {
|
461 |
+
self::$raw = true;
|
462 |
+
} elseif ( isset( $atts['social_plugin'] ) ) {
|
463 |
if ( $atts['social_plugin'] == 'true' ) {
|
464 |
self::$raw = false;
|
465 |
} else {
|
466 |
self::$raw = true;
|
467 |
}
|
468 |
}
|
469 |
+
|
470 |
if ( isset( $atts['theme'] ) ) {
|
471 |
self::$theme = $atts['theme'];
|
472 |
}
|
lib/js/fb.js
CHANGED
@@ -1,24 +1,54 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
|
|
|
|
|
|
14 |
|
15 |
-
});
|
16 |
-
});
|
17 |
var wef_comment_callback = function(response) {
|
18 |
|
19 |
-
var
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
|
|
|
|
|
|
24 |
};
|
1 |
+
window.fbAsyncInit = function() {
|
2 |
+
FB.init({
|
3 |
+
appId: WEF.fb_id,
|
4 |
+
version: WEF.version,
|
5 |
+
xfbml: true
|
6 |
+
});
|
7 |
+
if(!(typeof WEF.ajaxurl === "undefined")){
|
8 |
+
FB.Event.subscribe('comment.create', wef_comment_callback);
|
9 |
+
FB.Event.subscribe('comment.remove', wef_comment_callback);
|
10 |
+
}
|
11 |
+
|
12 |
+
};
|
13 |
+
|
14 |
+
(function (d, s, id) {
|
15 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
16 |
+
if (d.getElementById(id)) return;
|
17 |
+
js = d.createElement(s);
|
18 |
+
js.id = id;
|
19 |
+
// js.async = true;
|
20 |
+
js.src = "//connect.facebook.net/" + WEF.local + "/sdk.js";
|
21 |
+
fjs.parentNode.insertBefore(js, fjs);
|
22 |
+
}(document, 'script', 'facebook-jssdk'));
|
23 |
+
|
24 |
+
var wef_serialize = function(obj, prefix) {
|
25 |
+
var str = [], p;
|
26 |
+
for(p in obj) {
|
27 |
+
if (obj.hasOwnProperty(p)) {
|
28 |
+
var k = prefix ? prefix + "[" + p + "]" : p, v = obj[p];
|
29 |
+
str.push((v !== null && typeof v === "object") ?
|
30 |
+
wef_serialize(v, k) :
|
31 |
+
encodeURIComponent(k) + "=" + encodeURIComponent(v));
|
32 |
}
|
33 |
+
}
|
34 |
+
return str.join("&");
|
35 |
+
};
|
36 |
|
|
|
|
|
37 |
var wef_comment_callback = function(response) {
|
38 |
|
39 |
+
var wef_ajax = new XMLHttpRequest();
|
40 |
+
|
41 |
+
// wef_ajax.onreadystatechange = function()
|
42 |
+
// {
|
43 |
+
// if(wef_ajax.readyState === 4 && wef_ajax.status === 200)
|
44 |
+
// {
|
45 |
+
// alert(wef_ajax.responseText);
|
46 |
+
// }
|
47 |
+
// };
|
48 |
+
|
49 |
+
var data = wef_serialize({ action : 'wpemfb_comments', response : response });
|
50 |
|
51 |
+
wef_ajax.open("POST", WEF.ajaxurl, true);
|
52 |
+
wef_ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
53 |
+
wef_ajax.send(data);
|
54 |
};
|
lib/js/fb.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
window.fbAsyncInit=function(){FB.init({appId:WEF.fb_id,version:WEF.version,xfbml:!0}),"undefined"!=typeof WEF.ajaxurl&&(FB.Event.subscribe("comment.create",wef_comment_callback),FB.Event.subscribe("comment.remove",wef_comment_callback))},function(a,b,c){var d,e=a.getElementsByTagName(b)[0];a.getElementById(c)||(d=a.createElement(b),d.id=c,d.src="//connect.facebook.net/"+WEF.local+"/sdk.js",e.parentNode.insertBefore(d,e))}(document,"script","facebook-jssdk");var wef_serialize=function(a,b){var c,d=[];for(c in a)if(a.hasOwnProperty(c)){var e=b?b+"["+c+"]":c,f=a[c];d.push(null!==f&&"object"==typeof f?wef_serialize(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return d.join("&")},wef_comment_callback=function(a){var b=new XMLHttpRequest,c=wef_serialize({action:"wpemfb_comments",response:a});b.open("POST",WEF.ajaxurl,!0),b.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.send(c)};
|
lib/js/wpembedfb.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
})
|
5 |
-
});
|
1 |
+
(function ($) {
|
2 |
+
$(".wef-measure").each(function () {
|
3 |
+
$(this).next().attr("data-width", $(this).outerWidth() + "px")
|
4 |
})
|
5 |
+
})(jQuery);
|
lib/js/wpembedfb.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
!function(a){a(".wef-measure").each(function(){a(this).next().attr("data-width",a(this).outerWidth()+"px")})}(jQuery);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -141,8 +141,17 @@ Buying the premium extensions helps to keep this project alive.
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
= 2.1.14 =
|
145 |
-
* Compatibility for PHP 5.3 0..o
|
146 |
|
147 |
= 2.1.13 =
|
148 |
* Fixed: website page url @sabrina_b
|
@@ -456,5 +465,5 @@ Buying the premium extensions helps to keep this project alive.
|
|
456 |
|
457 |
== Upgrade Notice ==
|
458 |
|
459 |
-
= 2.
|
460 |
-
|
4 |
Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 2.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
+
= 2.2.0 =
|
145 |
+
* Improved: fb.js no longer depends on jQuery
|
146 |
+
* Improved: Templates CSS (completely rewritten)
|
147 |
+
* Improved: Custom embed responsiveness
|
148 |
+
* Improved: Album thumbnails look
|
149 |
+
* Fixed: Adaptive embed script
|
150 |
+
* Added: [embedfb] shortcode just in case [facebook] shortcode is being used by another plugin
|
151 |
+
* Updated: Deprecate Facebook SDK version 2.3 force to 2.4
|
152 |
+
|
153 |
= 2.1.14 =
|
154 |
+
* Added: Compatibility for PHP 5.3 0..o
|
155 |
|
156 |
= 2.1.13 =
|
157 |
* Fixed: website page url @sabrina_b
|
465 |
|
466 |
== Upgrade Notice ==
|
467 |
|
468 |
+
= 2.2.0 =
|
469 |
+
Better responsiveness and theme compatibility with custom embeds also adaptive script works again.
|
templates/classic/album.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
11 |
-
<span class="title"><?php echo $fb_data['from']['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<?php if(isset($fb_data['from']['category'])) : ?>
|
@@ -17,17 +17,17 @@
|
|
17 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow"><?php echo $fb_data['name'] ?></a>
|
18 |
</div>
|
19 |
</div>
|
20 |
-
<hr>
|
21 |
-
<div class="row">
|
22 |
-
<div class="col-12 text-center">
|
23 |
-
<div class="text-center album-thumbs">
|
24 |
<?php
|
25 |
if(isset($fb_data['photos']))
|
26 |
foreach ($fb_data['photos']['data'] as $pic) {
|
27 |
$data_title = isset($pic['name']) ? $pic['name'] : '';
|
28 |
?>
|
29 |
<a href="<?php echo $pic['source'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo !empty($data_title) ? WP_Embed_FB_Plugin::lightbox_title($data_title) : '' ?> >
|
30 |
-
<img class="thumbnail" src="<?php echo $pic['picture'] ?>" />
|
31 |
</a>
|
32 |
<?php
|
33 |
}
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
11 |
+
<span class="wef-title"><?php echo $fb_data['from']['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<?php if(isset($fb_data['from']['category'])) : ?>
|
17 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow"><?php echo $fb_data['name'] ?></a>
|
18 |
</div>
|
19 |
</div>
|
20 |
+
<hr class="wef-hr">
|
21 |
+
<div class="wef-row">
|
22 |
+
<div class="wef-col-12 wef-text-center">
|
23 |
+
<div class="wef-text-center wef-album-thumbs">
|
24 |
<?php
|
25 |
if(isset($fb_data['photos']))
|
26 |
foreach ($fb_data['photos']['data'] as $pic) {
|
27 |
$data_title = isset($pic['name']) ? $pic['name'] : '';
|
28 |
?>
|
29 |
<a href="<?php echo $pic['source'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo !empty($data_title) ? WP_Embed_FB_Plugin::lightbox_title($data_title) : '' ?> >
|
30 |
+
<img class="wef-thumbnail" src="<?php echo $pic['picture'] ?>" />
|
31 |
</a>
|
32 |
<?php
|
33 |
}
|
templates/classic/classic.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.wef-classic{font:300 14px/20px Helvetica;padding:10px;display:
|
2 |
/*# sourceMappingURL=classic.css.map */
|
1 |
+
.wef-classic{font:300 14px/20px Helvetica;padding:10px;display:table;margin:10px auto;border-width:1px;border-style:solid;border-color:#23487F;box-shadow:1px 1px 2px #23487F;width:100%;background-color:#fff;color:#0f0f0f}@media (min-width: 30em){.wef-classic .row{width:100%;display:table-row;table-layout:fixed;float:left}.wef-classic .wef-col-1,.wef-classic .wef-col-2,.wef-classic .wef-col-3,.wef-classic .wef-col-4,.wef-classic .wef-col-5,.wef-classic .wef-col-6,.wef-classic .wef-col-7,.wef-classic .wef-col-8,.wef-classic .wef-col-9,.wef-classic .wef-col-10,.wef-classic .wef-col-11,.wef-classic .wef-col-12{display:table-cell;float:left}.wef-classic .wef-col-12{width:100%}.wef-classic .wef-col-11{width:91.66667%}.wef-classic .wef-col-10{width:83.33333%}.wef-classic .wef-col-9{width:75%}.wef-classic .wef-col-8{width:66.66667%}.wef-classic .wef-col-7{width:58.33333%}.wef-classic .wef-col-6{width:50%}.wef-classic .wef-col-5{width:41.66667%}.wef-classic .wef-col-4{width:33.33333%}.wef-classic .wef-col-3{width:25%}.wef-classic .wef-col-2{width:16.66667%}.wef-classic .wef-col-1{width:8.33333%}}.wef-classic hr.wef-hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:left !important;border-top:1px;border-style:solid;border-color:#23487F;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-classic img.wef-icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-classic img.wef-thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:2px 4px;padding:0;width:60px !important}.wef-classic .wef-album-thumbs{display:inline-block}.wef-classic a.wef-button{padding:5px 9px !important;text-align:center;text-decoration:none !important;display:inline-block;font-size:15px;-webkit-transition-duration:.1s;transition-duration:.1s;cursor:pointer;background-color:#fff;color:#000 !important;border:2px solid #23487F !important;border-radius:4px}.wef-classic a.wef-button:hover,.wef-classic a.wef-button:focus{background-color:#23487F !important;color:#fff !important;text-decoration:none !important}.wef-classic a{font:300 14px/20px Helvetica;color:#23487F !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important;box-shadow:none !important}.wef-classic a:focus,.wef-classic a:hover{color:#23487F;text-decoration:underline !important}.wef-classic a.wef-post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-classic a.road-trip{width:0 !important;height:0 !important}.wef-classic a img{display:inline-block !important;margin:0 !important;padding:0 !important;box-shadow:none !important}.wef-classic p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-classic p.wef-post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-classic p.caption-link{text-align:right;word-break:break-all}.wef-classic p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-classic p.caption-title{text-align:left}.wef-classic p.caption-title a{font-size:12px;font-weight:bold}.wef-classic iframe,.wef-classic embed,.wef-classic object,.wef-classic video,.wef-classic audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-classic .wef-post-link{border-width:1px;border-style:solid;border-color:#d0d0d0;box-shadow:1px 1px 2px #b3b3b3}.wef-classic .wef-post-link p{padding-left:10px !important;padding-right:10px !important}.wef-classic .wef-text-center{text-align:center}.wef-classic .wef-pl-none{padding-left:0 !important;word-break:break-all}.wef-classic .wef-title{font-size:20px !important;font-weight:bold !important;word-break:break-all;display:inherit !important;height:100% !important;background-color:transparent !important;padding-top:5px !important}.wef-classic .wef-pad-top{padding-top:5px}.wef-classic .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-classic .wef-measure{width:100%}.wef-classic .wef-event_address{color:#565656;font-size:12px}.wef-classic .wef-relative-container{position:relative;display:block;height:0;overflow:hidden}.wef-classic .wef-relative-container .wef-relative,.wef-classic .wef-relative-container .wef-video iframe,.wef-classic .wef-video .wef-relative-container iframe,.wef-classic .wef-relative-container .wef-video embed,.wef-classic .wef-video .wef-relative-container embed,.wef-classic .wef-relative-container .wef-video object,.wef-classic .wef-video .wef-relative-container object,.wef-classic .wef-relative-container .wef-video video,.wef-classic .wef-video .wef-relative-container video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-classic .wef-video{padding:0 0 56.25%}.wef-classic .wef-fbpost-image{padding:0 0 75%}.wef-classic .wef-fbpost-image div{cursor:pointer;background-size:cover;background-position:50% 50%}.wef-classic .wef-cover{padding:0 0 36.86%}.wef-classic .wef-cover div{background-size:100% !important;background-position-x:0;cursor:pointer}.wef-classic div.wef-album-thumb{height:65px !important;margin:1px;padding:2px;width:65px !important;float:left;background-size:cover}.wef-classic .wef-text-right{text-align:right}.wef-classic .event_address{color:#404040;font-style:italic}
|
2 |
/*# sourceMappingURL=classic.css.map */
|
templates/classic/classic.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": "AAAA,YAAY,CACV,IAAI,CAAE,uBAAuB,CAC7B,OAAO,CAAE,IAAI,CACb,OAAO,CAAE,KAAK,
|
4 |
"sources": ["classic.sass"],
|
5 |
"names": [],
|
6 |
"file": "classic.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": "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",
|
4 |
"sources": ["classic.sass"],
|
5 |
"names": [],
|
6 |
"file": "classic.css"
|
templates/classic/classic.sass
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
.wef-classic
|
2 |
font: 300 14px/20px Helvetica
|
3 |
padding: 10px
|
4 |
-
display:
|
|
|
5 |
border:
|
6 |
width: 1px
|
7 |
style: solid
|
@@ -10,53 +11,46 @@
|
|
10 |
width: 100%
|
11 |
background-color: #FFFFFF
|
12 |
color: #0f0f0f
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
.col-3
|
48 |
-
width: 25%
|
49 |
-
.col-2
|
50 |
-
width: 16.66666667%
|
51 |
-
.col-1
|
52 |
-
width: 8.33333333%
|
53 |
-
hr
|
54 |
margin:
|
55 |
top: 10px !important
|
56 |
bottom: 10px !important
|
57 |
left: 0 !important
|
58 |
right: 0 !important
|
59 |
-
float:
|
60 |
border:
|
61 |
top: 1px
|
62 |
style: solid
|
@@ -66,38 +60,36 @@
|
|
66 |
box-sizing: content-box
|
67 |
height: 0 !important
|
68 |
width: 100% !important
|
69 |
-
img.icon
|
70 |
float: right
|
71 |
box-shadow: none
|
72 |
margin: 0
|
73 |
padding: 0
|
74 |
display: block
|
75 |
-
img.thumbnail
|
76 |
border: 1px solid #808080
|
77 |
border-radius: 2px
|
78 |
height: 60px !important
|
79 |
-
margin:
|
80 |
-
padding:
|
81 |
width: 60px !important
|
82 |
-
.album-thumbs
|
83 |
-
|
84 |
-
//padding-left: 5.3% !important
|
85 |
a.wef-button
|
86 |
padding: 5px 9px !important
|
87 |
text-align: center
|
88 |
text-decoration: none !important
|
89 |
display: inline-block
|
90 |
font-size: 15px
|
91 |
-
|
92 |
-
|
93 |
-
transition-duration: .2s
|
94 |
cursor: pointer
|
95 |
background-color: #fff
|
96 |
color: #000 !important
|
97 |
border: 2px solid #23487F !important
|
98 |
border-radius: 4px
|
99 |
&:hover, &:focus
|
100 |
-
background-color: #
|
101 |
color: white !important
|
102 |
text-decoration: none !important
|
103 |
a
|
@@ -111,7 +103,7 @@
|
|
111 |
&:focus, &:hover
|
112 |
color: #23487F
|
113 |
text-decoration: underline !important
|
114 |
-
&.post-likes
|
115 |
color: #6d84b4 !important
|
116 |
font-size: 12px !important
|
117 |
&.road-trip
|
@@ -119,13 +111,14 @@
|
|
119 |
height: 0 !important
|
120 |
img
|
121 |
display: inline-block !important
|
122 |
-
margin: 0
|
123 |
-
padding: 0
|
|
|
124 |
p
|
125 |
font: 300 14px/20px Helvetica
|
126 |
padding: 0 !important
|
127 |
margin: 0 !important
|
128 |
-
&.post-time
|
129 |
font-style: italic
|
130 |
color: #8e8c8d
|
131 |
font-size: 12px
|
@@ -146,7 +139,7 @@
|
|
146 |
border: 0 !important
|
147 |
margin: 0 !important
|
148 |
padding: 0 !important
|
149 |
-
.post-link
|
150 |
border:
|
151 |
width: 1px
|
152 |
style: solid
|
@@ -156,16 +149,12 @@
|
|
156 |
padding:
|
157 |
left: 10px !important
|
158 |
right: 10px !important
|
159 |
-
.text-center
|
160 |
text-align: center
|
161 |
-
.pl-none
|
162 |
padding-left: 0 !important
|
163 |
word-break: break-all
|
164 |
-
.
|
165 |
-
color: #23487F
|
166 |
-
.bold
|
167 |
-
font-weight: bold !important
|
168 |
-
.title
|
169 |
font-size: 20px !important
|
170 |
font-weight: bold !important
|
171 |
word-break: break-all
|
@@ -173,28 +162,24 @@
|
|
173 |
height: 100% !important
|
174 |
background-color: transparent !important
|
175 |
padding-top: 5px !important
|
176 |
-
.pad-top
|
177 |
padding:
|
178 |
top: 5px
|
179 |
-
.page-post
|
180 |
-
left: 2.6% !important
|
181 |
.caption-description p
|
182 |
color: #8e8c8d !important
|
183 |
font-style: italic !important
|
184 |
font-size: 12px !important
|
185 |
.wef-measure
|
186 |
width: 100%
|
187 |
-
.
|
188 |
-
word-break: break-all
|
189 |
-
.event_address
|
190 |
color: #565656
|
191 |
font-size: 12px
|
192 |
-
.relative-container
|
193 |
position: relative
|
194 |
display: block
|
195 |
height: 0
|
196 |
overflow: hidden
|
197 |
-
.relative
|
198 |
position: absolute
|
199 |
top: 0
|
200 |
left: 0
|
@@ -204,31 +189,32 @@
|
|
204 |
border: 0
|
205 |
margin: 0
|
206 |
padding: 0
|
207 |
-
.video
|
208 |
padding: 0 0 56.25%
|
209 |
iframe, embed, object, video
|
210 |
-
@extend .relative
|
211 |
-
.fbpost-image
|
212 |
padding: 0 0 75%
|
213 |
div
|
214 |
cursor: pointer
|
215 |
background:
|
216 |
size: cover
|
217 |
position: 50% 50%
|
218 |
-
.cover
|
219 |
padding: 0 0 36.86%
|
220 |
div
|
221 |
background-size: 100% !important
|
222 |
background-position-x: 0
|
223 |
cursor: pointer
|
224 |
-
.wef-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
|
1 |
.wef-classic
|
2 |
font: 300 14px/20px Helvetica
|
3 |
padding: 10px
|
4 |
+
display: table
|
5 |
+
margin: 10px auto
|
6 |
border:
|
7 |
width: 1px
|
8 |
style: solid
|
11 |
width: 100%
|
12 |
background-color: #FFFFFF
|
13 |
color: #0f0f0f
|
14 |
+
@media (min-width: 30em)
|
15 |
+
.row
|
16 |
+
width: 100%
|
17 |
+
display: table-row
|
18 |
+
table-layout: fixed
|
19 |
+
float: left
|
20 |
+
.wef-col-1, .wef-col-2, .wef-col-3, .wef-col-4, .wef-col-5, .wef-col-6, .wef-col-7, .wef-col-8, .wef-col-9, .wef-col-10, .wef-col-11, .wef-col-12
|
21 |
+
display: table-cell
|
22 |
+
float: left
|
23 |
+
.wef-col-12
|
24 |
+
width: 100%
|
25 |
+
.wef-col-11
|
26 |
+
width: 91.66666667%
|
27 |
+
.wef-col-10
|
28 |
+
width: 83.33333333%
|
29 |
+
.wef-col-9
|
30 |
+
width: 75%
|
31 |
+
.wef-col-8
|
32 |
+
width: 66.66666667%
|
33 |
+
.wef-col-7
|
34 |
+
width: 58.33333333%
|
35 |
+
.wef-col-6
|
36 |
+
width: 50%
|
37 |
+
.wef-col-5
|
38 |
+
width: 41.66666667%
|
39 |
+
.wef-col-4
|
40 |
+
width: 33.33333333%
|
41 |
+
.wef-col-3
|
42 |
+
width: 25%
|
43 |
+
.wef-col-2
|
44 |
+
width: 16.66666667%
|
45 |
+
.wef-col-1
|
46 |
+
width: 8.33333333%
|
47 |
+
hr.wef-hr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
margin:
|
49 |
top: 10px !important
|
50 |
bottom: 10px !important
|
51 |
left: 0 !important
|
52 |
right: 0 !important
|
53 |
+
float: left !important
|
54 |
border:
|
55 |
top: 1px
|
56 |
style: solid
|
60 |
box-sizing: content-box
|
61 |
height: 0 !important
|
62 |
width: 100% !important
|
63 |
+
img.wef-icon
|
64 |
float: right
|
65 |
box-shadow: none
|
66 |
margin: 0
|
67 |
padding: 0
|
68 |
display: block
|
69 |
+
img.wef-thumbnail
|
70 |
border: 1px solid #808080
|
71 |
border-radius: 2px
|
72 |
height: 60px !important
|
73 |
+
margin: 2px 4px
|
74 |
+
padding: 0
|
75 |
width: 60px !important
|
76 |
+
.wef-album-thumbs
|
77 |
+
display: inline-block
|
|
|
78 |
a.wef-button
|
79 |
padding: 5px 9px !important
|
80 |
text-align: center
|
81 |
text-decoration: none !important
|
82 |
display: inline-block
|
83 |
font-size: 15px
|
84 |
+
-webkit-transition-duration: .1s
|
85 |
+
transition-duration: .1s
|
|
|
86 |
cursor: pointer
|
87 |
background-color: #fff
|
88 |
color: #000 !important
|
89 |
border: 2px solid #23487F !important
|
90 |
border-radius: 4px
|
91 |
&:hover, &:focus
|
92 |
+
background-color: #23487F !important
|
93 |
color: white !important
|
94 |
text-decoration: none !important
|
95 |
a
|
103 |
&:focus, &:hover
|
104 |
color: #23487F
|
105 |
text-decoration: underline !important
|
106 |
+
&.wef-post-likes
|
107 |
color: #6d84b4 !important
|
108 |
font-size: 12px !important
|
109 |
&.road-trip
|
111 |
height: 0 !important
|
112 |
img
|
113 |
display: inline-block !important
|
114 |
+
margin: 0 !important
|
115 |
+
padding: 0 !important
|
116 |
+
box-shadow: none !important
|
117 |
p
|
118 |
font: 300 14px/20px Helvetica
|
119 |
padding: 0 !important
|
120 |
margin: 0 !important
|
121 |
+
&.wef-post-time
|
122 |
font-style: italic
|
123 |
color: #8e8c8d
|
124 |
font-size: 12px
|
139 |
border: 0 !important
|
140 |
margin: 0 !important
|
141 |
padding: 0 !important
|
142 |
+
.wef-post-link
|
143 |
border:
|
144 |
width: 1px
|
145 |
style: solid
|
149 |
padding:
|
150 |
left: 10px !important
|
151 |
right: 10px !important
|
152 |
+
.wef-text-center
|
153 |
text-align: center
|
154 |
+
.wef-pl-none
|
155 |
padding-left: 0 !important
|
156 |
word-break: break-all
|
157 |
+
.wef-title
|
|
|
|
|
|
|
|
|
158 |
font-size: 20px !important
|
159 |
font-weight: bold !important
|
160 |
word-break: break-all
|
162 |
height: 100% !important
|
163 |
background-color: transparent !important
|
164 |
padding-top: 5px !important
|
165 |
+
.wef-pad-top
|
166 |
padding:
|
167 |
top: 5px
|
|
|
|
|
168 |
.caption-description p
|
169 |
color: #8e8c8d !important
|
170 |
font-style: italic !important
|
171 |
font-size: 12px !important
|
172 |
.wef-measure
|
173 |
width: 100%
|
174 |
+
.wef-event_address
|
|
|
|
|
175 |
color: #565656
|
176 |
font-size: 12px
|
177 |
+
.wef-relative-container
|
178 |
position: relative
|
179 |
display: block
|
180 |
height: 0
|
181 |
overflow: hidden
|
182 |
+
.wef-relative
|
183 |
position: absolute
|
184 |
top: 0
|
185 |
left: 0
|
189 |
border: 0
|
190 |
margin: 0
|
191 |
padding: 0
|
192 |
+
.wef-video
|
193 |
padding: 0 0 56.25%
|
194 |
iframe, embed, object, video
|
195 |
+
@extend .wef-relative
|
196 |
+
.wef-fbpost-image
|
197 |
padding: 0 0 75%
|
198 |
div
|
199 |
cursor: pointer
|
200 |
background:
|
201 |
size: cover
|
202 |
position: 50% 50%
|
203 |
+
.wef-cover
|
204 |
padding: 0 0 36.86%
|
205 |
div
|
206 |
background-size: 100% !important
|
207 |
background-position-x: 0
|
208 |
cursor: pointer
|
209 |
+
div.wef-album-thumb
|
210 |
+
height: 65px !important
|
211 |
+
margin: 1px
|
212 |
+
padding: 2px
|
213 |
+
width: 65px !important
|
214 |
+
float: left
|
215 |
+
background-size: cover
|
216 |
+
.wef-text-right
|
217 |
+
text-align: right
|
218 |
+
.event_address
|
219 |
+
color: #404040
|
220 |
+
font-style: italic
|
templates/classic/com-page.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
11 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<div>
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
11 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<div>
|
templates/classic/event.php
CHANGED
@@ -13,12 +13,12 @@ date_default_timezone_set( $old_time_zone );
|
|
13 |
?>
|
14 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
15 |
<?php if(isset($fb_data['cover'])) : ?>
|
16 |
-
<div class="relative-container cover"><div class="relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
17 |
<?php endif; ?>
|
18 |
-
<div class="row pad-top">
|
19 |
-
<div class="col-12">
|
20 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
21 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
22 |
</a>
|
23 |
<p><?php echo $start_time ?></p>
|
24 |
<p>
|
13 |
?>
|
14 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
15 |
<?php if(isset($fb_data['cover'])) : ?>
|
16 |
+
<div class="wef-relative-container wef-cover"><div class="wef-relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
17 |
<?php endif; ?>
|
18 |
+
<div class="wef-row wef-pad-top">
|
19 |
+
<div class="wef-col-12">
|
20 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
21 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
22 |
</a>
|
23 |
<p><?php echo $start_time ?></p>
|
24 |
<p>
|
templates/classic/page.php
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px" >
|
2 |
<?php if(isset($fb_data['cover'])) : ?>
|
3 |
-
<div class="relative-container cover"><div class="relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
4 |
<?php endif; ?>
|
5 |
-
<div class="row pad-top">
|
6 |
-
<div class="col-2 text-center">
|
7 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
8 |
<img src="<?php echo $fb_data['picture']['data']['url'] ?>" width="50px" height="50px" />
|
9 |
</a>
|
10 |
</div>
|
11 |
-
<div class="col-10 pl-none">
|
12 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
13 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
14 |
</a>
|
15 |
<br>
|
16 |
<?php
|
@@ -37,8 +37,8 @@
|
|
37 |
</div>
|
38 |
</div>
|
39 |
</div>
|
40 |
-
<?php if(isset($fb_data['
|
41 |
-
<?php foreach($fb_data['
|
42 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
43 |
<?php include('single-post.php') ?>
|
44 |
<?php endif; ?>
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px" >
|
2 |
<?php if(isset($fb_data['cover'])) : ?>
|
3 |
+
<div class="wef-relative-container wef-cover"><div class="wef-relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
4 |
<?php endif; ?>
|
5 |
+
<div class="wef-row wef-pad-top">
|
6 |
+
<div class="wef-col-2 wef-text-center">
|
7 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
8 |
<img src="<?php echo $fb_data['picture']['data']['url'] ?>" width="50px" height="50px" />
|
9 |
</a>
|
10 |
</div>
|
11 |
+
<div class="wef-col-10 wef-pl-none">
|
12 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
13 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
14 |
</a>
|
15 |
<br>
|
16 |
<?php
|
37 |
</div>
|
38 |
</div>
|
39 |
</div>
|
40 |
+
<?php if(isset($fb_data['posts'])) : global $wp_embed; ?>
|
41 |
+
<?php foreach($fb_data['posts']['data'] as $fb_post) : ?>
|
42 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
43 |
<?php include('single-post.php') ?>
|
44 |
<?php endif; ?>
|
templates/classic/photo.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
4 |
<img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
|
5 |
</a>
|
6 |
-
<a class="post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
|
7 |
<?php echo isset($fb_data['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
|
8 |
<?php echo isset($fb_data['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
|
9 |
</a>
|
3 |
echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
4 |
<img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
|
5 |
</a>
|
6 |
+
<a class="wef-post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
|
7 |
<?php echo isset($fb_data['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
|
8 |
<?php echo isset($fb_data['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
|
9 |
</a>
|
templates/classic/post.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php $fb_post = /** @noinspection PhpUndefinedVariableInspection */
|
2 |
$fb_data ?>
|
3 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px" >
|
4 |
-
<div class="col-3 text-center">
|
5 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
12 |
-
<span class="title"><?php echo $fb_post['from']['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
1 |
<?php $fb_post = /** @noinspection PhpUndefinedVariableInspection */
|
2 |
$fb_data ?>
|
3 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px" >
|
4 |
+
<div class="wef-col-3 wef-text-center">
|
5 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
12 |
+
<span class="wef-title"><?php echo $fb_post['from']['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
templates/classic/profile.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
12 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
1 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
12 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
templates/classic/single-post.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
$story = isset($fb_post['story']) ? '<p>' . $fb_post['story'] . '</p>' : '';
|
5 |
|
6 |
-
$icon = isset($fb_post["icon"]) ? '<img class="icon" title="Facebook ' . $fb_post["type"] . '" src="' . $fb_post["icon"] . '">' : '';
|
7 |
|
8 |
$old_time_zone = date_default_timezone_get();
|
9 |
date_default_timezone_set(WP_Embed_FB_Plugin::get_timezone());
|
@@ -37,12 +37,12 @@ $caption = empty($caption) ? '' : "<p class=\"caption-link\"><a href=\"$link\" t
|
|
37 |
|
38 |
$link_info = $name . $description . $caption;
|
39 |
?>
|
40 |
-
<hr>
|
41 |
-
<div class="row">
|
42 |
-
<div class="col-12
|
43 |
<?php //echo '<pre>'.wpautop(print_r($fb_post,true)).'</pre>'; ?>
|
44 |
<?php echo $story ?>
|
45 |
-
<p class="post-time"><?php echo $time ?></p>
|
46 |
<?php
|
47 |
echo $message ? '<p>' . $message . '</p>' : '';
|
48 |
switch ($fb_post["type"]) :
|
@@ -58,8 +58,8 @@ $link_info = $name . $description . $caption;
|
|
58 |
echo $link_info;
|
59 |
} else {
|
60 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
61 |
-
echo '<div class="post-link">';
|
62 |
-
echo $use_ratio ? '<div class="video">' : '';
|
63 |
echo $wp_embed->shortcode(array('src' => $link, 'width' => $width - 20));
|
64 |
echo $use_ratio ? '</div>' : '';
|
65 |
echo $link_info;
|
@@ -75,8 +75,8 @@ $link_info = $name . $description . $caption;
|
|
75 |
?>
|
76 |
|
77 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
78 |
-
<div class="relative-container fbpost-image">
|
79 |
-
<div class="relative"
|
80 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
81 |
</div>
|
82 |
</a>
|
@@ -86,10 +86,10 @@ $link_info = $name . $description . $caption;
|
|
86 |
case 'music':
|
87 |
case 'link':
|
88 |
?>
|
89 |
-
<div class="post-link" style="max-width: <?php echo $width ?>px;">
|
90 |
<?php if (isset($fb_post['full_picture']) && !empty($fb_post['full_picture'])) : ?>
|
91 |
-
<div class="relative-container fbpost-image">
|
92 |
-
<div class="relative"
|
93 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"
|
94 |
onclick="window.open('<?php echo $link ?>', '_blank')"></div>
|
95 |
</div>
|
@@ -110,8 +110,8 @@ $link_info = $name . $description . $caption;
|
|
110 |
?>
|
111 |
<?php if (isset($fb_post['full_picture'], $link) && !empty($fb_post['full_picture']) && !empty($link)) : ?>
|
112 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
113 |
-
<div class="relative-container fbpost-image">
|
114 |
-
<div class="relative"
|
115 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
116 |
</div>
|
117 |
</a>
|
@@ -131,7 +131,7 @@ $link_info = $name . $description . $caption;
|
|
131 |
$title_count .= $fb_post['shares']['count'] . ' ' . __('shares', 'wp-embed-facebook') . ' ';
|
132 |
}
|
133 |
?><br>
|
134 |
-
<a class="post-likes"
|
135 |
href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
|
136 |
target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
|
137 |
<?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
|
3 |
|
4 |
$story = isset($fb_post['story']) ? '<p>' . $fb_post['story'] . '</p>' : '';
|
5 |
|
6 |
+
$icon = isset($fb_post["icon"]) ? '<img class="wef-icon" title="Facebook ' . $fb_post["type"] . '" src="' . $fb_post["icon"] . '">' : '';
|
7 |
|
8 |
$old_time_zone = date_default_timezone_get();
|
9 |
date_default_timezone_set(WP_Embed_FB_Plugin::get_timezone());
|
37 |
|
38 |
$link_info = $name . $description . $caption;
|
39 |
?>
|
40 |
+
<hr class="wef-hr">
|
41 |
+
<div class="wef-row">
|
42 |
+
<div class="wef-col-12">
|
43 |
<?php //echo '<pre>'.wpautop(print_r($fb_post,true)).'</pre>'; ?>
|
44 |
<?php echo $story ?>
|
45 |
+
<p class="wef-post-time"><?php echo $time ?></p>
|
46 |
<?php
|
47 |
echo $message ? '<p>' . $message . '</p>' : '';
|
48 |
switch ($fb_post["type"]) :
|
58 |
echo $link_info;
|
59 |
} else {
|
60 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
61 |
+
echo '<div class="wef-post-link">';
|
62 |
+
echo $use_ratio ? '<div class="wef-video">' : '';
|
63 |
echo $wp_embed->shortcode(array('src' => $link, 'width' => $width - 20));
|
64 |
echo $use_ratio ? '</div>' : '';
|
65 |
echo $link_info;
|
75 |
?>
|
76 |
|
77 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
78 |
+
<div class="wef-relative-container wef-fbpost-image">
|
79 |
+
<div class="wef-relative"
|
80 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
81 |
</div>
|
82 |
</a>
|
86 |
case 'music':
|
87 |
case 'link':
|
88 |
?>
|
89 |
+
<div class="wef-post-link" style="max-width: <?php echo $width ?>px;">
|
90 |
<?php if (isset($fb_post['full_picture']) && !empty($fb_post['full_picture'])) : ?>
|
91 |
+
<div class="wef-relative-container wef-fbpost-image">
|
92 |
+
<div class="wef-relative"
|
93 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"
|
94 |
onclick="window.open('<?php echo $link ?>', '_blank')"></div>
|
95 |
</div>
|
110 |
?>
|
111 |
<?php if (isset($fb_post['full_picture'], $link) && !empty($fb_post['full_picture']) && !empty($link)) : ?>
|
112 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
113 |
+
<div class="wef-relative-container wef-fbpost-image">
|
114 |
+
<div class="wef-relative"
|
115 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
116 |
</div>
|
117 |
</a>
|
131 |
$title_count .= $fb_post['shares']['count'] . ' ' . __('shares', 'wp-embed-facebook') . ' ';
|
132 |
}
|
133 |
?><br>
|
134 |
+
<a class="wef-post-likes"
|
135 |
href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
|
136 |
target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
|
137 |
<?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
|
templates/classic/video.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
3 |
?>
|
4 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
5 |
-
<?php echo $use_ratio ? '<div class="relative-container video">' : '' ?>
|
6 |
<?php
|
7 |
/** @noinspection PhpUndefinedVariableInspection */
|
8 |
$url = $fb_data['source'];
|
2 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
3 |
?>
|
4 |
<div class="wef-classic aligncenter" style="max-width: <?php echo $width ?>px">
|
5 |
+
<?php echo $use_ratio ? '<div class="wef-relative-container wef-video">' : '' ?>
|
6 |
<?php
|
7 |
/** @noinspection PhpUndefinedVariableInspection */
|
8 |
$url = $fb_data['source'];
|
templates/default/album.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
11 |
-
<span class="title"><?php echo $fb_data['from']['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<?php if(isset($fb_data['from']['category'])) : ?>
|
@@ -17,22 +17,20 @@
|
|
17 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow"><?php echo $fb_data['name'] ?></a>
|
18 |
</div>
|
19 |
</div>
|
20 |
-
<hr>
|
21 |
-
<div class="row">
|
22 |
-
<div class="col-12 text-center">
|
23 |
-
<div class="text-center album-thumbs">
|
24 |
<?php
|
25 |
if(isset($fb_data['photos']))
|
26 |
foreach ($fb_data['photos']['data'] as $pic) {
|
27 |
$data_title = isset($pic['name']) ? $pic['name'] : '';
|
28 |
?>
|
29 |
-
<a href="<?php echo $pic['source'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo !empty($data_title) ? WP_Embed_FB_Plugin::lightbox_title($data_title) : '' ?> >
|
30 |
-
<
|
31 |
</a>
|
32 |
<?php
|
33 |
}
|
34 |
?>
|
35 |
</div>
|
36 |
-
</div>
|
37 |
</div>
|
38 |
</div>
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['from']['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<a href="https://facebook.com/<?php echo $fb_data['from']['id'] ?>" target="_blank" rel="nofollow">
|
11 |
+
<span class="wef-title"><?php echo $fb_data['from']['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<?php if(isset($fb_data['from']['category'])) : ?>
|
17 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow"><?php echo $fb_data['name'] ?></a>
|
18 |
</div>
|
19 |
</div>
|
20 |
+
<hr class="wef-hr">
|
21 |
+
<div class="wef-row">
|
22 |
+
<div class="wef-col-12 wef-text-center">
|
|
|
23 |
<?php
|
24 |
if(isset($fb_data['photos']))
|
25 |
foreach ($fb_data['photos']['data'] as $pic) {
|
26 |
$data_title = isset($pic['name']) ? $pic['name'] : '';
|
27 |
?>
|
28 |
+
<a class="wef-album-thumbs" href="<?php echo $pic['source'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo !empty($data_title) ? WP_Embed_FB_Plugin::lightbox_title($data_title) : '' ?> >
|
29 |
+
<div class="wef-album-thumb" style="background-image: url('<?php echo $pic['picture'] ?>')"></div>
|
30 |
</a>
|
31 |
<?php
|
32 |
}
|
33 |
?>
|
34 |
</div>
|
|
|
35 |
</div>
|
36 |
</div>
|
templates/default/com-page.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
11 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<div>
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
11 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
12 |
</a>
|
13 |
<br>
|
14 |
<div>
|
templates/default/default.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
.wef-default{font:300 14px/20px Helvetica;padding:10px;display:
|
2 |
/*# sourceMappingURL=default.css.map */
|
1 |
+
.wef-default{font:300 14px/20px Helvetica;padding:10px;display:table;border-width:1px;border-style:solid;border-color:#DEDEDE;border-radius:2px;width:100%;background-color:#fff}@media (min-width: 30em){.wef-default .row{width:100%;display:table-row;table-layout:fixed;float:left}.wef-default .wef-col-1,.wef-default .wef-col-2,.wef-default .wef-col-3,.wef-default .wef-col-4,.wef-default .wef-col-5,.wef-default .wef-col-6,.wef-default .wef-col-7,.wef-default .wef-col-8,.wef-default .wef-col-9,.wef-default .wef-col-10,.wef-default .wef-col-11,.wef-default .wef-col-12{display:table-cell;float:left}.wef-default .wef-col-12{width:100%}.wef-default .wef-col-11{width:91.66667%}.wef-default .wef-col-10{width:83.33333%}.wef-default .wef-col-9{width:75%}.wef-default .wef-col-8{width:66.66667%}.wef-default .wef-col-7{width:58.33333%}.wef-default .wef-col-6{width:50%}.wef-default .wef-col-5{width:41.66667%}.wef-default .wef-col-4{width:33.33333%}.wef-default .wef-col-3{width:25%}.wef-default .wef-col-2{width:16.66667%}.wef-default .wef-col-1{width:8.33333%}}.wef-default hr.wef-hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:left !important;border-top:1px;border-style:solid;border-color:#DEDEDE;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0 !important;width:100% !important}.wef-default img.wef-icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-default img.wef-thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:2px 4px;padding:0;width:60px !important}.wef-default .wef-album-thumbs{display:inline-block}.wef-default a.wef-button{padding:5px 9px !important;text-align:center;text-decoration:none !important;display:inline-block;font-size:15px;-webkit-transition-duration:.1s;transition-duration:.1s;cursor:pointer;background-color:#fff;color:#000 !important;border:2px solid #23487F !important;border-radius:4px}.wef-default a.wef-button:hover,.wef-default a.wef-button:focus{background-color:#23487F !important;color:#fff !important;text-decoration:none !important}.wef-default a{font:300 14px/20px Helvetica;color:#23487F !important;text-decoration:none !important;border:0 !important;margin:0 !important;padding:0 !important;box-shadow:none !important}.wef-default a:focus,.wef-default a:hover{color:#23487F;text-decoration:underline !important}.wef-default a.wef-post-likes{color:#6d84b4 !important;font-size:12px !important}.wef-default a.road-trip{width:0 !important;height:0 !important}.wef-default a img{display:inline-block !important;margin:0 !important;padding:0 !important;box-shadow:none !important}.wef-default p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-default p.wef-post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-default p.caption-link{text-align:right;word-break:break-all}.wef-default p.caption-link a{font-size:12px;color:#8e8c8d !important;text-transform:uppercase}.wef-default p.caption-title{text-align:left}.wef-default p.caption-title a{font-size:12px;font-weight:bold}.wef-default iframe,.wef-default embed,.wef-default object,.wef-default video,.wef-default audio{width:100% !important;border:0 !important;margin:0 !important;padding:0 !important}.wef-default .wef-post-link{border-width:1px;border-style:solid;border-color:#d0d0d0;box-shadow:1px 1px 2px #b3b3b3}.wef-default .wef-post-link p{padding-left:10px !important;padding-right:10px !important}.wef-default .wef-text-center{text-align:center}.wef-default .wef-pl-none{padding-left:0 !important;word-break:break-all}.wef-default .wef-title{font-size:20px !important;font-weight:bold !important;word-break:break-all;display:inherit !important;height:100% !important;background-color:transparent !important;padding-top:5px !important}.wef-default .wef-pad-top{padding-top:5px}.wef-default .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-default .wef-measure{width:100%}.wef-default .wef-event_address{color:#565656;font-size:12px}.wef-default .wef-relative-container{position:relative;display:block;height:0;overflow:hidden}.wef-default .wef-relative-container .wef-relative,.wef-default .wef-relative-container .wef-video iframe,.wef-default .wef-video .wef-relative-container iframe,.wef-default .wef-relative-container .wef-video embed,.wef-default .wef-video .wef-relative-container embed,.wef-default .wef-relative-container .wef-video object,.wef-default .wef-video .wef-relative-container object,.wef-default .wef-relative-container .wef-video video,.wef-default .wef-video .wef-relative-container video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-default .wef-video{padding:0 0 56.25%}.wef-default .wef-fbpost-image{padding:0 0 75%}.wef-default .wef-fbpost-image div{cursor:pointer;background-size:cover;background-position:50% 50%}.wef-default .wef-cover{padding:0 0 36.86%}.wef-default .wef-cover div{background-size:100% !important;background-position-x:0;cursor:pointer}.wef-default div.wef-album-thumb{height:65px !important;margin:1px;padding:2px;width:65px !important;float:left;background-size:cover}.wef-default .wef-text-right{text-align:right}.wef-default .event_address{color:#404040;font-style:italic}
|
2 |
/*# sourceMappingURL=default.css.map */
|
templates/default/default.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"version": 3,
|
3 |
-
"mappings": "AAAA,YAAY,CACV,IAAI,CAAE,uBAAuB,CAC7B,OAAO,CAAE,IAAI,CACb,OAAO,CAAE,
|
4 |
"sources": ["default.sass"],
|
5 |
"names": [],
|
6 |
"file": "default.css"
|
1 |
{
|
2 |
"version": 3,
|
3 |
+
"mappings": "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",
|
4 |
"sources": ["default.sass"],
|
5 |
"names": [],
|
6 |
"file": "default.css"
|
templates/default/default.sass
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
.wef-default
|
2 |
font: 300 14px/20px Helvetica
|
3 |
padding: 10px
|
4 |
-
display:
|
5 |
border:
|
6 |
width: 1px
|
7 |
style: solid
|
@@ -9,53 +9,46 @@
|
|
9 |
radius: 2px
|
10 |
width: 100%
|
11 |
background-color: #FFFFFF
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
.col-3
|
47 |
-
width: 25%
|
48 |
-
.col-2
|
49 |
-
width: 16.66666667%
|
50 |
-
.col-1
|
51 |
-
width: 8.33333333%
|
52 |
-
hr
|
53 |
margin:
|
54 |
top: 10px !important
|
55 |
bottom: 10px !important
|
56 |
left: 0 !important
|
57 |
right: 0 !important
|
58 |
-
float:
|
59 |
border:
|
60 |
top: 1px
|
61 |
style: solid
|
@@ -65,38 +58,36 @@
|
|
65 |
box-sizing: content-box
|
66 |
height: 0 !important
|
67 |
width: 100% !important
|
68 |
-
img.icon
|
69 |
float: right
|
70 |
box-shadow: none
|
71 |
margin: 0
|
72 |
padding: 0
|
73 |
display: block
|
74 |
-
img.thumbnail
|
75 |
border: 1px solid #808080
|
76 |
border-radius: 2px
|
77 |
height: 60px !important
|
78 |
-
margin:
|
79 |
-
padding:
|
80 |
width: 60px !important
|
81 |
-
.album-thumbs
|
82 |
-
|
83 |
-
//padding-left: 5.3% !important
|
84 |
a.wef-button
|
85 |
padding: 5px 9px !important
|
86 |
text-align: center
|
87 |
text-decoration: none !important
|
88 |
display: inline-block
|
89 |
font-size: 15px
|
90 |
-
|
91 |
-
|
92 |
-
transition-duration: .2s
|
93 |
cursor: pointer
|
94 |
background-color: #fff
|
95 |
color: #000 !important
|
96 |
border: 2px solid #23487F !important
|
97 |
border-radius: 4px
|
98 |
&:hover, &:focus
|
99 |
-
background-color: #
|
100 |
color: white !important
|
101 |
text-decoration: none !important
|
102 |
a
|
@@ -110,7 +101,7 @@
|
|
110 |
&:focus, &:hover
|
111 |
color: #23487F
|
112 |
text-decoration: underline !important
|
113 |
-
&.post-likes
|
114 |
color: #6d84b4 !important
|
115 |
font-size: 12px !important
|
116 |
&.road-trip
|
@@ -118,13 +109,14 @@
|
|
118 |
height: 0 !important
|
119 |
img
|
120 |
display: inline-block !important
|
121 |
-
margin: 0
|
122 |
-
padding: 0
|
|
|
123 |
p
|
124 |
font: 300 14px/20px Helvetica
|
125 |
padding: 0 !important
|
126 |
margin: 0 !important
|
127 |
-
&.post-time
|
128 |
font-style: italic
|
129 |
color: #8e8c8d
|
130 |
font-size: 12px
|
@@ -145,7 +137,7 @@
|
|
145 |
border: 0 !important
|
146 |
margin: 0 !important
|
147 |
padding: 0 !important
|
148 |
-
.post-link
|
149 |
border:
|
150 |
width: 1px
|
151 |
style: solid
|
@@ -155,16 +147,12 @@
|
|
155 |
padding:
|
156 |
left: 10px !important
|
157 |
right: 10px !important
|
158 |
-
.text-center
|
159 |
text-align: center
|
160 |
-
.pl-none
|
161 |
padding-left: 0 !important
|
162 |
word-break: break-all
|
163 |
-
.
|
164 |
-
color: #23487F
|
165 |
-
.bold
|
166 |
-
font-weight: bold !important
|
167 |
-
.title
|
168 |
font-size: 20px !important
|
169 |
font-weight: bold !important
|
170 |
word-break: break-all
|
@@ -172,28 +160,24 @@
|
|
172 |
height: 100% !important
|
173 |
background-color: transparent !important
|
174 |
padding-top: 5px !important
|
175 |
-
.pad-top
|
176 |
padding:
|
177 |
top: 5px
|
178 |
-
.page-post
|
179 |
-
left: 2.6% !important
|
180 |
.caption-description p
|
181 |
color: #8e8c8d !important
|
182 |
font-style: italic !important
|
183 |
font-size: 12px !important
|
184 |
.wef-measure
|
185 |
width: 100%
|
186 |
-
.
|
187 |
-
word-break: break-all
|
188 |
-
.event_address
|
189 |
color: #565656
|
190 |
font-size: 12px
|
191 |
-
.relative-container
|
192 |
position: relative
|
193 |
display: block
|
194 |
height: 0
|
195 |
overflow: hidden
|
196 |
-
.relative
|
197 |
position: absolute
|
198 |
top: 0
|
199 |
left: 0
|
@@ -203,31 +187,32 @@
|
|
203 |
border: 0
|
204 |
margin: 0
|
205 |
padding: 0
|
206 |
-
.video
|
207 |
padding: 0 0 56.25%
|
208 |
iframe, embed, object, video
|
209 |
-
@extend .relative
|
210 |
-
.fbpost-image
|
211 |
padding: 0 0 75%
|
212 |
div
|
213 |
cursor: pointer
|
214 |
background:
|
215 |
size: cover
|
216 |
position: 50% 50%
|
217 |
-
.cover
|
218 |
padding: 0 0 36.86%
|
219 |
div
|
220 |
background-size: 100% !important
|
221 |
background-position-x: 0
|
222 |
cursor: pointer
|
223 |
-
.wef-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
|
1 |
.wef-default
|
2 |
font: 300 14px/20px Helvetica
|
3 |
padding: 10px
|
4 |
+
display: table
|
5 |
border:
|
6 |
width: 1px
|
7 |
style: solid
|
9 |
radius: 2px
|
10 |
width: 100%
|
11 |
background-color: #FFFFFF
|
12 |
+
@media (min-width: 30em)
|
13 |
+
.row
|
14 |
+
width: 100%
|
15 |
+
display: table-row
|
16 |
+
table-layout: fixed
|
17 |
+
float: left
|
18 |
+
.wef-col-1, .wef-col-2, .wef-col-3, .wef-col-4, .wef-col-5, .wef-col-6, .wef-col-7, .wef-col-8, .wef-col-9, .wef-col-10, .wef-col-11, .wef-col-12
|
19 |
+
display: table-cell
|
20 |
+
float: left
|
21 |
+
.wef-col-12
|
22 |
+
width: 100%
|
23 |
+
.wef-col-11
|
24 |
+
width: 91.66666667%
|
25 |
+
.wef-col-10
|
26 |
+
width: 83.33333333%
|
27 |
+
.wef-col-9
|
28 |
+
width: 75%
|
29 |
+
.wef-col-8
|
30 |
+
width: 66.66666667%
|
31 |
+
.wef-col-7
|
32 |
+
width: 58.33333333%
|
33 |
+
.wef-col-6
|
34 |
+
width: 50%
|
35 |
+
.wef-col-5
|
36 |
+
width: 41.66666667%
|
37 |
+
.wef-col-4
|
38 |
+
width: 33.33333333%
|
39 |
+
.wef-col-3
|
40 |
+
width: 25%
|
41 |
+
.wef-col-2
|
42 |
+
width: 16.66666667%
|
43 |
+
.wef-col-1
|
44 |
+
width: 8.33333333%
|
45 |
+
hr.wef-hr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
margin:
|
47 |
top: 10px !important
|
48 |
bottom: 10px !important
|
49 |
left: 0 !important
|
50 |
right: 0 !important
|
51 |
+
float: left !important
|
52 |
border:
|
53 |
top: 1px
|
54 |
style: solid
|
58 |
box-sizing: content-box
|
59 |
height: 0 !important
|
60 |
width: 100% !important
|
61 |
+
img.wef-icon
|
62 |
float: right
|
63 |
box-shadow: none
|
64 |
margin: 0
|
65 |
padding: 0
|
66 |
display: block
|
67 |
+
img.wef-thumbnail
|
68 |
border: 1px solid #808080
|
69 |
border-radius: 2px
|
70 |
height: 60px !important
|
71 |
+
margin: 2px 4px
|
72 |
+
padding: 0
|
73 |
width: 60px !important
|
74 |
+
.wef-album-thumbs
|
75 |
+
display: inline-block
|
|
|
76 |
a.wef-button
|
77 |
padding: 5px 9px !important
|
78 |
text-align: center
|
79 |
text-decoration: none !important
|
80 |
display: inline-block
|
81 |
font-size: 15px
|
82 |
+
-webkit-transition-duration: .1s
|
83 |
+
transition-duration: .1s
|
|
|
84 |
cursor: pointer
|
85 |
background-color: #fff
|
86 |
color: #000 !important
|
87 |
border: 2px solid #23487F !important
|
88 |
border-radius: 4px
|
89 |
&:hover, &:focus
|
90 |
+
background-color: #23487F !important
|
91 |
color: white !important
|
92 |
text-decoration: none !important
|
93 |
a
|
101 |
&:focus, &:hover
|
102 |
color: #23487F
|
103 |
text-decoration: underline !important
|
104 |
+
&.wef-post-likes
|
105 |
color: #6d84b4 !important
|
106 |
font-size: 12px !important
|
107 |
&.road-trip
|
109 |
height: 0 !important
|
110 |
img
|
111 |
display: inline-block !important
|
112 |
+
margin: 0 !important
|
113 |
+
padding: 0 !important
|
114 |
+
box-shadow: none !important
|
115 |
p
|
116 |
font: 300 14px/20px Helvetica
|
117 |
padding: 0 !important
|
118 |
margin: 0 !important
|
119 |
+
&.wef-post-time
|
120 |
font-style: italic
|
121 |
color: #8e8c8d
|
122 |
font-size: 12px
|
137 |
border: 0 !important
|
138 |
margin: 0 !important
|
139 |
padding: 0 !important
|
140 |
+
.wef-post-link
|
141 |
border:
|
142 |
width: 1px
|
143 |
style: solid
|
147 |
padding:
|
148 |
left: 10px !important
|
149 |
right: 10px !important
|
150 |
+
.wef-text-center
|
151 |
text-align: center
|
152 |
+
.wef-pl-none
|
153 |
padding-left: 0 !important
|
154 |
word-break: break-all
|
155 |
+
.wef-title
|
|
|
|
|
|
|
|
|
156 |
font-size: 20px !important
|
157 |
font-weight: bold !important
|
158 |
word-break: break-all
|
160 |
height: 100% !important
|
161 |
background-color: transparent !important
|
162 |
padding-top: 5px !important
|
163 |
+
.wef-pad-top
|
164 |
padding:
|
165 |
top: 5px
|
|
|
|
|
166 |
.caption-description p
|
167 |
color: #8e8c8d !important
|
168 |
font-style: italic !important
|
169 |
font-size: 12px !important
|
170 |
.wef-measure
|
171 |
width: 100%
|
172 |
+
.wef-event_address
|
|
|
|
|
173 |
color: #565656
|
174 |
font-size: 12px
|
175 |
+
.wef-relative-container
|
176 |
position: relative
|
177 |
display: block
|
178 |
height: 0
|
179 |
overflow: hidden
|
180 |
+
.wef-relative
|
181 |
position: absolute
|
182 |
top: 0
|
183 |
left: 0
|
187 |
border: 0
|
188 |
margin: 0
|
189 |
padding: 0
|
190 |
+
.wef-video
|
191 |
padding: 0 0 56.25%
|
192 |
iframe, embed, object, video
|
193 |
+
@extend .wef-relative
|
194 |
+
.wef-fbpost-image
|
195 |
padding: 0 0 75%
|
196 |
div
|
197 |
cursor: pointer
|
198 |
background:
|
199 |
size: cover
|
200 |
position: 50% 50%
|
201 |
+
.wef-cover
|
202 |
padding: 0 0 36.86%
|
203 |
div
|
204 |
background-size: 100% !important
|
205 |
background-position-x: 0
|
206 |
cursor: pointer
|
207 |
+
div.wef-album-thumb
|
208 |
+
height: 65px !important
|
209 |
+
margin: 1px
|
210 |
+
padding: 2px
|
211 |
+
width: 65px !important
|
212 |
+
float: left
|
213 |
+
background-size: cover
|
214 |
+
.wef-text-right
|
215 |
+
text-align: right
|
216 |
+
.event_address
|
217 |
+
color: #404040
|
218 |
+
font-style: italic
|
templates/default/event.php
CHANGED
@@ -13,12 +13,12 @@ date_default_timezone_set( $old_time_zone );
|
|
13 |
?>
|
14 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
15 |
<?php if(isset($fb_data['cover'])) : ?>
|
16 |
-
<div class="relative-container cover"><div class="relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
17 |
<?php endif; ?>
|
18 |
-
<div class="row pad-top">
|
19 |
-
<div class="col-12">
|
20 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
21 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
22 |
</a>
|
23 |
<p><?php echo $start_time ?></p>
|
24 |
<p>
|
13 |
?>
|
14 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
15 |
<?php if(isset($fb_data['cover'])) : ?>
|
16 |
+
<div class="wef-relative-container wef-cover"><div class="wef-relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
17 |
<?php endif; ?>
|
18 |
+
<div class="wef-row wef-pad-top">
|
19 |
+
<div class="wef-col-12">
|
20 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
21 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
22 |
</a>
|
23 |
<p><?php echo $start_time ?></p>
|
24 |
<p>
|
templates/default/page.php
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px" >
|
2 |
<?php if(isset($fb_data['cover'])) : ?>
|
3 |
-
<div class="relative-container cover"><div class="relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
4 |
<?php endif; ?>
|
5 |
-
<div class="row pad-top">
|
6 |
-
<div class="col-2 text-center">
|
7 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
8 |
<img src="<?php echo $fb_data['picture']['data']['url'] ?>" width="50px" height="50px" />
|
9 |
</a>
|
10 |
</div>
|
11 |
-
<div class="col-10 pl-none">
|
12 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
13 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
14 |
</a>
|
15 |
<br>
|
16 |
<?php
|
@@ -37,8 +37,8 @@
|
|
37 |
</div>
|
38 |
</div>
|
39 |
</div>
|
40 |
-
<?php if(isset($fb_data['
|
41 |
-
<?php foreach($fb_data['
|
42 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
43 |
<?php include('single-post.php') ?>
|
44 |
<?php endif; ?>
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px" >
|
2 |
<?php if(isset($fb_data['cover'])) : ?>
|
3 |
+
<div class="wef-relative-container wef-cover"><div class="wef-relative" style="background-image: url('<?php echo $fb_data['cover']['source'] ?>'); background-position-y: <?php echo $fb_data['cover']['offset_y'] ?>%" onclick="window.open('https://www.facebook.com/<?php echo $fb_data['id'] ?>', '_blank')"></div></div>
|
4 |
<?php endif; ?>
|
5 |
+
<div class="wef-row wef-pad-top">
|
6 |
+
<div class="wef-col-2 wef-text-center">
|
7 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
8 |
<img src="<?php echo $fb_data['picture']['data']['url'] ?>" width="50px" height="50px" />
|
9 |
</a>
|
10 |
</div>
|
11 |
+
<div class="wef-col-10 wef-pl-none">
|
12 |
<a href="<?php echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
13 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
14 |
</a>
|
15 |
<br>
|
16 |
<?php
|
37 |
</div>
|
38 |
</div>
|
39 |
</div>
|
40 |
+
<?php if(isset($fb_data['posts'])) : global $wp_embed; ?>
|
41 |
+
<?php foreach($fb_data['posts']['data'] as $fb_post) : ?>
|
42 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
43 |
<?php include('single-post.php') ?>
|
44 |
<?php endif; ?>
|
templates/default/photo.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
4 |
<img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
|
5 |
</a>
|
6 |
-
<a class="post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
|
7 |
<?php echo isset($fb_data['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
|
8 |
<?php echo isset($fb_data['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
|
9 |
</a>
|
3 |
echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
|
4 |
<img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
|
5 |
</a>
|
6 |
+
<a class="wef-post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
|
7 |
<?php echo isset($fb_data['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
|
8 |
<?php echo isset($fb_data['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
|
9 |
</a>
|
templates/default/post.php
CHANGED
@@ -1,20 +1,27 @@
|
|
1 |
<?php $fb_post = /** @noinspection PhpUndefinedVariableInspection */
|
2 |
-
$fb_data
|
3 |
-
$linkArray = explode('_',$fb_post['id']);
|
4 |
-
|
5 |
-
?>
|
6 |
<div class="wef-default" style="max-width: <?php echo $width ?>px" >
|
7 |
-
<div class="col-3 text-center">
|
8 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
9 |
<img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
|
10 |
</a>
|
11 |
</div>
|
12 |
-
<div class="col-9 pl-none">
|
13 |
<p>
|
14 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
15 |
-
<span class="title"><?php echo $fb_post['from']['name'] ?></span>
|
16 |
</a>
|
17 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</div>
|
19 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
20 |
<?php
|
1 |
<?php $fb_post = /** @noinspection PhpUndefinedVariableInspection */
|
2 |
+
$fb_data ?>
|
|
|
|
|
|
|
3 |
<div class="wef-default" style="max-width: <?php echo $width ?>px" >
|
4 |
+
<div class="wef-col-3 wef-text-center">
|
5 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_post['from']['id'] ?>/picture" width="50px" height="50px" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_post['from']['id'] ?>" target="_blank" rel="nofollow">
|
12 |
+
<span class="wef-title"><?php echo $fb_post['from']['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
+
<div>
|
16 |
+
<?php
|
17 |
+
$opt = WP_Embed_FB_Plugin::get_option('show_like');
|
18 |
+
if($opt === 'true') :
|
19 |
+
echo WEF_Social_Plugins::get('like',array('href'=>'https://www.facebook.com/'.$fb_data['id'],'share'=>'true','layout'=>'button_count'));
|
20 |
+
else :
|
21 |
+
printf( __( '%d people like this.', 'wp-embed-facebook' ), $fb_post['likes'] );
|
22 |
+
endif;
|
23 |
+
?>
|
24 |
+
</div>
|
25 |
</div>
|
26 |
<?php if(isset($fb_post['picture']) || isset($fb_post['message'])) : ?>
|
27 |
<?php
|
templates/default/profile.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
-
<div class="row">
|
3 |
-
<div class="col-3 text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
-
<div class="col-9 pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
12 |
-
<span class="title"><?php echo $fb_data['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
1 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
2 |
+
<div class="wef-row">
|
3 |
+
<div class="wef-col-3 wef-text-center">
|
4 |
<a href="https://www.facebook.com/<?php /** @noinspection PhpUndefinedVariableInspection */
|
5 |
echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
6 |
<img src="https://graph.facebook.com/<?php echo $fb_data['id'] ?>/picture" />
|
7 |
</a>
|
8 |
</div>
|
9 |
+
<div class="wef-col-9 wef-pl-none">
|
10 |
<p>
|
11 |
<a href="https://www.facebook.com/<?php echo $fb_data['id'] ?>" target="_blank" rel="nofollow">
|
12 |
+
<span class="wef-title"><?php echo $fb_data['name'] ?></span>
|
13 |
</a>
|
14 |
</p>
|
15 |
<div>
|
templates/default/single-post.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
$story = isset($fb_post['story']) ? '<p>' . $fb_post['story'] . '</p>' : '';
|
5 |
|
6 |
-
$icon = isset($fb_post["icon"]) ? '<img class="icon" title="Facebook ' . $fb_post["type"] . '" src="' . $fb_post["icon"] . '">' : '';
|
7 |
|
8 |
$old_time_zone = date_default_timezone_get();
|
9 |
date_default_timezone_set(WP_Embed_FB_Plugin::get_timezone());
|
@@ -37,12 +37,12 @@ $caption = empty($caption) ? '' : "<p class=\"caption-link\"><a href=\"$link\" t
|
|
37 |
|
38 |
$link_info = $name . $description . $caption;
|
39 |
?>
|
40 |
-
<hr>
|
41 |
-
<div class="row">
|
42 |
-
<div class="col-12
|
43 |
<?php //echo '<pre>'.wpautop(print_r($fb_post,true)).'</pre>'; ?>
|
44 |
<?php echo $story ?>
|
45 |
-
<p class="post-time"><?php echo $time ?></p>
|
46 |
<?php
|
47 |
echo $message ? '<p>' . $message . '</p>' : '';
|
48 |
switch ($fb_post["type"]) :
|
@@ -58,8 +58,8 @@ $link_info = $name . $description . $caption;
|
|
58 |
echo $link_info;
|
59 |
} else {
|
60 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
61 |
-
echo '<div class="post-link">';
|
62 |
-
echo $use_ratio ? '<div class="video">' : '';
|
63 |
echo $wp_embed->shortcode(array('src' => $link, 'width' => $width - 20));
|
64 |
echo $use_ratio ? '</div>' : '';
|
65 |
echo $link_info;
|
@@ -75,8 +75,8 @@ $link_info = $name . $description . $caption;
|
|
75 |
?>
|
76 |
|
77 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
78 |
-
<div class="relative-container fbpost-image">
|
79 |
-
<div class="relative"
|
80 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
81 |
</div>
|
82 |
</a>
|
@@ -86,10 +86,10 @@ $link_info = $name . $description . $caption;
|
|
86 |
case 'music':
|
87 |
case 'link':
|
88 |
?>
|
89 |
-
<div class="post-link" style="max-width: <?php echo $width ?>px;">
|
90 |
<?php if (isset($fb_post['full_picture']) && !empty($fb_post['full_picture'])) : ?>
|
91 |
-
<div class="relative-container fbpost-image">
|
92 |
-
<div class="relative"
|
93 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"
|
94 |
onclick="window.open('<?php echo $link ?>', '_blank')"></div>
|
95 |
</div>
|
@@ -110,8 +110,8 @@ $link_info = $name . $description . $caption;
|
|
110 |
?>
|
111 |
<?php if (isset($fb_post['full_picture'], $link) && !empty($fb_post['full_picture']) && !empty($link)) : ?>
|
112 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
113 |
-
<div class="relative-container fbpost-image">
|
114 |
-
<div class="relative"
|
115 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
116 |
</div>
|
117 |
</a>
|
@@ -131,7 +131,7 @@ $link_info = $name . $description . $caption;
|
|
131 |
$title_count .= $fb_post['shares']['count'] . ' ' . __('shares', 'wp-embed-facebook') . ' ';
|
132 |
}
|
133 |
?><br>
|
134 |
-
<a class="post-likes"
|
135 |
href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
|
136 |
target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
|
137 |
<?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
|
3 |
|
4 |
$story = isset($fb_post['story']) ? '<p>' . $fb_post['story'] . '</p>' : '';
|
5 |
|
6 |
+
$icon = isset($fb_post["icon"]) ? '<img class="wef-icon" title="Facebook ' . $fb_post["type"] . '" src="' . $fb_post["icon"] . '">' : '';
|
7 |
|
8 |
$old_time_zone = date_default_timezone_get();
|
9 |
date_default_timezone_set(WP_Embed_FB_Plugin::get_timezone());
|
37 |
|
38 |
$link_info = $name . $description . $caption;
|
39 |
?>
|
40 |
+
<hr class="wef-hr">
|
41 |
+
<div class="wef-row">
|
42 |
+
<div class="wef-col-12">
|
43 |
<?php //echo '<pre>'.wpautop(print_r($fb_post,true)).'</pre>'; ?>
|
44 |
<?php echo $story ?>
|
45 |
+
<p class="wef-post-time"><?php echo $time ?></p>
|
46 |
<?php
|
47 |
echo $message ? '<p>' . $message . '</p>' : '';
|
48 |
switch ($fb_post["type"]) :
|
58 |
echo $link_info;
|
59 |
} else {
|
60 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
61 |
+
echo '<div class="wef-post-link">';
|
62 |
+
echo $use_ratio ? '<div class="wef-video">' : '';
|
63 |
echo $wp_embed->shortcode(array('src' => $link, 'width' => $width - 20));
|
64 |
echo $use_ratio ? '</div>' : '';
|
65 |
echo $link_info;
|
75 |
?>
|
76 |
|
77 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
78 |
+
<div class="wef-relative-container wef-fbpost-image">
|
79 |
+
<div class="wef-relative"
|
80 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
81 |
</div>
|
82 |
</a>
|
86 |
case 'music':
|
87 |
case 'link':
|
88 |
?>
|
89 |
+
<div class="wef-post-link" style="max-width: <?php echo $width ?>px;">
|
90 |
<?php if (isset($fb_post['full_picture']) && !empty($fb_post['full_picture'])) : ?>
|
91 |
+
<div class="wef-relative-container wef-fbpost-image">
|
92 |
+
<div class="wef-relative"
|
93 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"
|
94 |
onclick="window.open('<?php echo $link ?>', '_blank')"></div>
|
95 |
</div>
|
110 |
?>
|
111 |
<?php if (isset($fb_post['full_picture'], $link) && !empty($fb_post['full_picture']) && !empty($link)) : ?>
|
112 |
<a href="<?php echo $fb_post['full_picture'] ?>" <?php echo WP_Embed_FB_Plugin::get_option('lightbox_att') ?> <?php echo $message ? WP_Embed_FB_Plugin::lightbox_title($message) : '' ?> >
|
113 |
+
<div class="wef-relative-container wef-fbpost-image">
|
114 |
+
<div class="wef-relative"
|
115 |
style="background-image: url('<?php echo $fb_post['full_picture'] ?>');"></div>
|
116 |
</div>
|
117 |
</a>
|
131 |
$title_count .= $fb_post['shares']['count'] . ' ' . __('shares', 'wp-embed-facebook') . ' ';
|
132 |
}
|
133 |
?><br>
|
134 |
+
<a class="wef-post-likes"
|
135 |
href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
|
136 |
target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
|
137 |
<?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
|
templates/default/video.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
3 |
?>
|
4 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
5 |
-
<?php echo $use_ratio ? '<div class="relative-container video">' : '' ?>
|
6 |
<?php
|
7 |
/** @noinspection PhpUndefinedVariableInspection */
|
8 |
$url = $fb_data['source'];
|
2 |
$use_ratio = (WP_Embed_FB_Plugin::get_option('video_ratio') == 'true');
|
3 |
?>
|
4 |
<div class="wef-default" style="max-width: <?php echo $width ?>px">
|
5 |
+
<?php echo $use_ratio ? '<div class="wef-relative-container wef-video">' : '' ?>
|
6 |
<?php
|
7 |
/** @noinspection PhpUndefinedVariableInspection */
|
8 |
$url = $fb_data['source'];
|
wp-embed-facebook.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Embed Facebook
|
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
|
6 |
Author: Miguel Sirvent
|
7 |
-
Version: 2.
|
8 |
Author URI: http://www.wpembedfb.com
|
9 |
Text Domain: wp-embed-facebook
|
10 |
Domain Path: /lang
|
4 |
Plugin URI: http://www.wpembedfb.com
|
5 |
Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
|
6 |
Author: Miguel Sirvent
|
7 |
+
Version: 2.2.0
|
8 |
Author URI: http://www.wpembedfb.com
|
9 |
Text Domain: wp-embed-facebook
|
10 |
Domain Path: /lang
|