WP Embed Facebook - Version 2.0.6

Version Description

  • Added new filter "wpemfb_embed_fb_id"
  • Added Download Video option
  • Added Settings link on plugin description
  • Improved type and fb_id recognition
Download this release

Release Info

Developer poxtron
Plugin Icon 128x128 WP Embed Facebook
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

lib/admin/ic_image_settings.png ADDED
Binary file
lib/admin/ic_setting.png ADDED
Binary file
lib/class-wp-embed-fb-admin.php CHANGED
@@ -56,6 +56,12 @@ class WP_Embed_FB_Admin {
56
  endif;
57
  echo ob_get_clean();
58
  }
 
 
 
 
 
 
59
  /**
60
  * Add template editor style to the embeds.
61
  */
@@ -244,34 +250,40 @@ class WP_Embed_FB_Admin {
244
  self::field( 'number', 'wpemfb_max_width', __( 'Maximum width in pixels', 'wp-embed-facebook' ) );
245
  self::field( 'select', 'wpemfb_sdk_lang', __( 'Like Buttons Language', 'wp-embed-facebook' ), WP_Embed_FB_Plugin::get_fb_locales() );
246
  self::section();
 
247
  ?>
 
248
  <?php
249
- self::section( __( 'Social Plugin Defaults', 'wp-embed-facebook' ) );
250
- self::field( 'string', '', '---- ' . __( 'Page Plugin', 'wp-embed-facebook' ) . ' ----' );
 
 
 
251
  self::field( 'checkbox', 'wpemfb_page_show_faces', __( "Show Friend's Faces", 'wp-embed-facebook' ) );
252
  self::field( 'checkbox', 'wpemfb_page_small_header', __( 'Use Small Header', 'wp-embed-facebook' ) );
253
  self::field( 'checkbox', 'wpemfb_page_hide_cover', __( 'Hide Cover Photo', 'wp-embed-facebook' ) );
254
  self::field( 'checkbox', 'wpemfb_page_show_posts', __( 'Show Page Posts', 'wp-embed-facebook' ) );
255
  self::field( 'number', 'wpemfb_page_height', __( 'Maximum height in pixels', 'wp-embed-facebook' ) );
256
- self::field( 'string', '', '---- ' . __( 'Videos', 'wp-embed-facebook' ) . ' ----' );
257
- self::field( 'checkbox', 'wpemfb_video_as_post', __( 'Embed Video as Post', 'wp-embed-facebook' ) );
258
  self::section();
259
  if ( ! WP_Embed_FB_Plugin::has_fb_app() ) :
260
  ?>
261
  <p>
262
  <?php _e( 'By default you can only embed public pages, videos, photos and posts.', 'wp-embed-facebook' ) ?>
263
- <br><?php _e( 'To embed embed albums, events, profiles and raw video you will need a Facebook App.', 'wp-embed-facebook' ) ?>
264
  </p>
265
  <?php
266
  endif;
 
 
 
 
 
267
  self::section( __( 'Facebook credentials', 'wp-embed-facebook' ) );
268
  self::field( 'text', 'wpemfb_app_id', __( 'App ID', 'wp-embed-facebook' ) );
269
  self::field( 'text', 'wpemfb_app_secret', __( 'App Secret', 'wp-embed-facebook' ) );
270
  self::section();
271
  ?>
272
- <p><a href="https://developers.facebook.com/apps"
273
- target="_blank"><?php _e( 'Your Facebook Apps', 'wp-embed-facebook' ) ?></a>
274
- </p>
275
  </section>
276
  <section class="sections">
277
  <?php
56
  endif;
57
  echo ob_get_clean();
58
  }
59
+
60
+ static function add_action_link($links){
61
+ array_unshift( $links, '<a href="'.admin_url("options-general.php?page=embedfacebook").'">Settings</a>' );
62
+ return $links;
63
+ }
64
+
65
  /**
66
  * Add template editor style to the embeds.
67
  */
250
  self::field( 'number', 'wpemfb_max_width', __( 'Maximum width in pixels', 'wp-embed-facebook' ) );
251
  self::field( 'select', 'wpemfb_sdk_lang', __( 'Like Buttons Language', 'wp-embed-facebook' ), WP_Embed_FB_Plugin::get_fb_locales() );
252
  self::section();
253
+ echo '<img style="float: left; margin: 42px 10px 0px;" src="'.WP_Embed_FB_Plugin::get_url().'lib/admin/ic_image_settings.png">';
254
  ?>
255
+
256
  <?php
257
+ self::section( __( 'Video Social Plugin Settings', 'wp-embed-facebook' ) );
258
+ self::field( 'checkbox', 'wpemfb_video_download', __( 'Show download option under video', 'wp-embed-facebook' ) );
259
+ self::field( 'checkbox', 'wpemfb_video_as_post', __( 'Embed Video as Post', 'wp-embed-facebook' ) );
260
+ self::section();
261
+ self::section( __( 'Page Social Plugin Settings', 'wp-embed-facebook' ) );
262
  self::field( 'checkbox', 'wpemfb_page_show_faces', __( "Show Friend's Faces", 'wp-embed-facebook' ) );
263
  self::field( 'checkbox', 'wpemfb_page_small_header', __( 'Use Small Header', 'wp-embed-facebook' ) );
264
  self::field( 'checkbox', 'wpemfb_page_hide_cover', __( 'Hide Cover Photo', 'wp-embed-facebook' ) );
265
  self::field( 'checkbox', 'wpemfb_page_show_posts', __( 'Show Page Posts', 'wp-embed-facebook' ) );
266
  self::field( 'number', 'wpemfb_page_height', __( 'Maximum height in pixels', 'wp-embed-facebook' ) );
 
 
267
  self::section();
268
  if ( ! WP_Embed_FB_Plugin::has_fb_app() ) :
269
  ?>
270
  <p>
271
  <?php _e( 'By default you can only embed public pages, videos, photos and posts.', 'wp-embed-facebook' ) ?>
272
+ <br><?php _e( 'To embed albums, events, profiles and video as HTML5 you will need a Facebook App', 'wp-embed-facebook' ) ?>
273
  </p>
274
  <?php
275
  endif;
276
+ ?>
277
+ <p><a href="https://developers.facebook.com/apps"
278
+ target="_blank"><?php _e( 'Create or view Facebook Apps', 'wp-embed-facebook' ) ?></a>
279
+ </p>
280
+ <?php
281
  self::section( __( 'Facebook credentials', 'wp-embed-facebook' ) );
282
  self::field( 'text', 'wpemfb_app_id', __( 'App ID', 'wp-embed-facebook' ) );
283
  self::field( 'text', 'wpemfb_app_secret', __( 'App Secret', 'wp-embed-facebook' ) );
284
  self::section();
285
  ?>
286
+
 
 
287
  </section>
288
  <section class="sections">
289
  <?php
lib/class-wp-embed-fb-plugin.php CHANGED
@@ -82,6 +82,7 @@ class WP_Embed_FB_Plugin {
82
  'wpemfb_sdk_lang' => array_key_exists( $locale, self::get_fb_locales()) ? $locale : 'en_US',
83
  'wpemfb_close_warning' => 'false',
84
  'wpemfb_force_app_token' => 'true',
 
85
  );
86
  }
87
  //("uninstalled","deactivated","activated","reactivated")
@@ -166,16 +167,16 @@ class WP_Embed_FB_Plugin {
166
  ?>
167
  <div class="notice wpemfb_warning is-dismissible">
168
  <h2>WP Embed Facebook</h2>
 
 
 
 
169
  <p>
170
  <?php
171
- printf(__('This free plugin has taken <strong>thousands of hours</strong> to develop and maintain consider making a <a href="%s">donation</a> or leaving a <a href="%s">review</a> do nott let us loose faith in humanity.',''), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26','https://wordpress.org/support/view/plugin-reviews/wp-embed-facebook')
172
  ?>
173
  </p>
174
- <p><?php _e('To embed albums, events, profiles and raw video you will need a Facebook App','wp-embed-facebook') ?>
175
- <a href="<?php echo admin_url("options-general.php?page=embedfacebook") ?>">
176
- <?php _e('settings.','wp-embed-facebook') ?>
177
- </a>
178
- </p>
179
  </div>
180
  <?php
181
  endif;
82
  'wpemfb_sdk_lang' => array_key_exists( $locale, self::get_fb_locales()) ? $locale : 'en_US',
83
  'wpemfb_close_warning' => 'false',
84
  'wpemfb_force_app_token' => 'true',
85
+ 'wpemfb_video_download' => 'false',
86
  );
87
  }
88
  //("uninstalled","deactivated","activated","reactivated")
167
  ?>
168
  <div class="notice wpemfb_warning is-dismissible">
169
  <h2>WP Embed Facebook</h2>
170
+ <p>Hey! The last step.</p>
171
+ <p><img src="<?php echo WP_Embed_FB_Plugin::get_url().'lib/admin/ic_setting.png' ?>">&nbsp;Turn on <a href="<?php echo admin_url("options-general.php?page=embedfacebook") ?>">Video Download Option</a> in WP Embed Facebook settings.</p>
172
+ <small><?php _e('To embed albums, events, profiles and video as HTML5 you will need a Facebook App','wp-embed-facebook') ?>
173
+ </small>
174
  <p>
175
  <?php
176
+ printf(__('This free plugin has taken <strong>thousands of hours</strong> to develop and maintain consider making a <a href="%s">donation</a> or leaving a <a href="%s">review</a> <strong>do not let us loose faith</strong> in humanity.',''), 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26','https://wordpress.org/support/view/plugin-reviews/wp-embed-facebook')
177
  ?>
178
  </p>
179
+
 
 
 
 
180
  </div>
181
  <?php
182
  endif;
lib/class-wp-embed-fb.php CHANGED
@@ -70,14 +70,14 @@ class WP_Embed_FB {
70
  }
71
  }
72
  /**
73
- * Extract fb_id from the url
74
  * @param array $match[2]=url without ' https://www.facebook.com/ '
75
  * @return string Embedded content
76
  *
77
  */
78
  static function fb_embed($match, $url=null, $atts=null ){
79
  $juice = $match[2];
80
- $type_and_id = self::get_type_and_id($juice,$url);
81
  if(is_string($type_and_id))
82
  return $type_and_id;
83
  self::set_atts($atts);
@@ -178,6 +178,7 @@ class WP_Embed_FB {
178
  $type = 'page';
179
  }
180
  }
 
181
  return array('type'=>$type,'fb_id'=>$fb_id);
182
  }
183
  static function print_embed($fb_id,$type,$juice){
@@ -227,10 +228,13 @@ class WP_Embed_FB {
227
  $template_name = $type;
228
  break;
229
  case 'user' :
230
- default :
231
  $fb_data = self::fb_api_get($fb_id,$juice,'profile');
232
  $template_name = 'profile';
233
  break;
 
 
 
 
234
  }
235
  }
236
 
70
  }
71
  }
72
  /**
73
+ * Run
74
  * @param array $match[2]=url without ' https://www.facebook.com/ '
75
  * @return string Embedded content
76
  *
77
  */
78
  static function fb_embed($match, $url=null, $atts=null ){
79
  $juice = $match[2];
80
+ $type_and_id = apply_filters('wpemfb_type_id', self::get_type_and_id($juice,$url), $juice, $url) ;
81
  if(is_string($type_and_id))
82
  return $type_and_id;
83
  self::set_atts($atts);
178
  $type = 'page';
179
  }
180
  }
181
+ $fb_id = apply_filters('wpemfb_embed_fb_id',$fb_id, $juiceArray);
182
  return array('type'=>$type,'fb_id'=>$fb_id);
183
  }
184
  static function print_embed($fb_id,$type,$juice){
228
  $template_name = $type;
229
  break;
230
  case 'user' :
 
231
  $fb_data = self::fb_api_get($fb_id,$juice,'profile');
232
  $template_name = 'profile';
233
  break;
234
+ default :
235
+ $fb_data = self::fb_api_get($fb_id,$juice,$type);
236
+ $template_name = $type;
237
+ break;
238
  }
239
  }
240
 
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: 3.8.1
6
  Tested up to: 4.4.1
7
- Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -79,6 +79,12 @@ This can only be achieved using the premium version
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
 
82
  = 2.0.5 =
83
  * Improved [embed] shortcode compatibility !
84
  * Added new 'photos' attribute for shortcode used only on albums
@@ -261,5 +267,5 @@ This can only be achieved using the premium version
261
 
262
  == Upgrade Notice ==
263
 
264
- = 2.0.5 =
265
- * 100% compatibility with native [embed] shortcode with all attributes. Watch your changes inside the editor!
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: 3.8.1
6
  Tested up to: 4.4.1
7
+ Stable tag: 2.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
79
 
80
  == Changelog ==
81
 
82
+ = 2.0.6 =
83
+ * Added new filter "wpemfb_embed_fb_id"
84
+ * Added Download Video option
85
+ * Added Settings link on plugin description
86
+ * Improved type and fb_id recognition
87
+
88
  = 2.0.5 =
89
  * Improved [embed] shortcode compatibility !
90
  * Added new 'photos' attribute for shortcode used only on albums
267
 
268
  == Upgrade Notice ==
269
 
270
+ = 2.0.6 =
271
+ * Improved type and fb_id recognition
templates/classic/classic.css CHANGED
@@ -1 +1 @@
1
- .wef-classic{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#23487f;width:100%;background-color:#fff}.wef-classic .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-classic .col-1,.wef-classic .col-2,.wef-classic .col-3,.wef-classic .col-4,.wef-classic .col-5,.wef-classic .col-6,.wef-classic .col-7,.wef-classic .col-8,.wef-classic .col-9,.wef-classic .col-10,.wef-classic .col-11,.wef-classic .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-classic .col-12{width:100%}.wef-classic .col-11{width:91.66667%}.wef-classic .col-10{width:83.33333%}.wef-classic .col-9{width:75%}.wef-classic .col-8{width:66.66667%}.wef-classic .col-7{width:58.33333%}.wef-classic .col-6{width:50%}.wef-classic .col-5{width:41.66667%}.wef-classic .col-4{width:33.33333%}.wef-classic .col-3{width:25%}.wef-classic .col-2{width:16.66667%}.wef-classic .col-1{width:8.33333%}.wef-classic hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !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.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-classic img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-classic .album-thumbs{line-height:1px !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}.wef-classic a:focus,.wef-classic a:hover{color:#23487f;text-decoration:underline !important}.wef-classic a.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}.wef-classic p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-classic p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-classic p.caption-title{font-size:12px;font-weight:bold}.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 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 .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-classic .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-classic .text-center{text-align:center}.wef-classic .pl-none{padding-left:0 !important;word-break:break-all}.wef-classic .color{color:#23487f}.wef-classic .bold{font-weight:bold !important}.wef-classic .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-classic .cover{width:100%;background-size:100%;cursor:pointer}.wef-classic .pad-top{padding-top:5px}.wef-classic .page-post{left:2.6% !important}.wef-classic .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-classic .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-classic .video iframe,.wef-classic .video embed,.wef-classic .video object,.wef-classic .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-classic .wef-measure{width:100%}.wef-classic .break-all{word-break:break-all}.wef-classic .event_address{color:#565656;font-size:12px}
1
+ .wef-classic{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#23487f;width:100%;background-color:#fff}.wef-classic .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-classic .col-1,.wef-classic .col-2,.wef-classic .col-3,.wef-classic .col-4,.wef-classic .col-5,.wef-classic .col-6,.wef-classic .col-7,.wef-classic .col-8,.wef-classic .col-9,.wef-classic .col-10,.wef-classic .col-11,.wef-classic .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-classic .col-12{width:100%}.wef-classic .col-11{width:91.66667%}.wef-classic .col-10{width:83.33333%}.wef-classic .col-9{width:75%}.wef-classic .col-8{width:66.66667%}.wef-classic .col-7{width:58.33333%}.wef-classic .col-6{width:50%}.wef-classic .col-5{width:41.66667%}.wef-classic .col-4{width:33.33333%}.wef-classic .col-3{width:25%}.wef-classic .col-2{width:16.66667%}.wef-classic .col-1{width:8.33333%}.wef-classic hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !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.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-classic img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-classic .album-thumbs{line-height:1px !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}.wef-classic a:focus,.wef-classic a:hover{color:#23487f;text-decoration:underline !important}.wef-classic a.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}.wef-classic p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-classic p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-classic p.caption-title{font-size:12px;font-weight:bold}.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 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 .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-classic .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-classic .text-center{text-align:center}.wef-classic .pl-none{padding-left:0 !important;word-break:break-all}.wef-classic .color{color:#23487f}.wef-classic .bold{font-weight:bold !important}.wef-classic .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-classic .cover{width:100%;background-size:100%;cursor:pointer}.wef-classic .pad-top{padding-top:5px}.wef-classic .page-post{left:2.6% !important}.wef-classic .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-classic .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-classic .video iframe,.wef-classic .video embed,.wef-classic .video object,.wef-classic .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-classic .wef-measure{width:100%}.wef-classic .break-all{word-break:break-all}.wef-classic .event_address{color:#565656;font-size:12px}.wef-video-link{margin:0 !important;padding:0 !important}.wef-video-link 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}
templates/classic/classic.sass CHANGED
@@ -178,4 +178,15 @@
178
  word-break: break-all
179
  .event_address
180
  color: #565656
181
- font-size: 12px
 
 
 
 
 
 
 
 
 
 
 
178
  word-break: break-all
179
  .event_address
180
  color: #565656
181
+ font-size: 12px
182
+ .wef-video-link
183
+ margin: 0 !important
184
+ padding: 0 !important
185
+ a
186
+ font: 300 14px/20px Helvetica
187
+ color: #23487F !important
188
+ text-decoration: none !important
189
+ border: 0 !important
190
+ margin: 0 !important
191
+ padding: 0 !important
192
+ box-shadow: none !important
templates/default/default.css CHANGED
@@ -1 +1 @@
1
- .wef-default{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#dedede;border-radius:2px;width:100%;background-color:#fff}.wef-default .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-default .col-1,.wef-default .col-2,.wef-default .col-3,.wef-default .col-4,.wef-default .col-5,.wef-default .col-6,.wef-default .col-7,.wef-default .col-8,.wef-default .col-9,.wef-default .col-10,.wef-default .col-11,.wef-default .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-default .col-12{width:100%}.wef-default .col-11{width:91.66667%}.wef-default .col-10{width:83.33333%}.wef-default .col-9{width:75%}.wef-default .col-8{width:66.66667%}.wef-default .col-7{width:58.33333%}.wef-default .col-6{width:50%}.wef-default .col-5{width:41.66667%}.wef-default .col-4{width:33.33333%}.wef-default .col-3{width:25%}.wef-default .col-2{width:16.66667%}.wef-default .col-1{width:8.33333%}.wef-default hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !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.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-default img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-default .album-thumbs{line-height:1px !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}.wef-default a:focus,.wef-default a:hover{color:#23487f;text-decoration:underline !important}.wef-default a.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;padding:0}.wef-default p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-default p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-default p.caption-title{font-size:12px;font-weight:bold}.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 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 .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-default .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-default .text-center{text-align:center}.wef-default .pl-none{padding-left:0 !important;word-break:break-all}.wef-default .color{color:#23487f}.wef-default .bold{font-weight:bold !important}.wef-default .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-default .cover{width:100%;background-size:100%;cursor:pointer}.wef-default .pad-top{padding-top:5px}.wef-default .page-post{left:2.6% !important}.wef-default .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-default .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-default .video iframe,.wef-default .video embed,.wef-default .video object,.wef-default .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-default .wef-measure{width:100%}.wef-default .break-all{word-break:break-all}.wef-default .event_address{color:#565656;font-size:12px}
1
+ .wef-default{font:300 14px/20px Helvetica;padding:10px;display:inline-block;border-width:1px;border-style:solid;border-color:#dedede;border-radius:2px;width:100%;background-color:#fff}.wef-default .row{margin-left:-10px;margin-right:-10px;display:table;width:100%}.wef-default .col-1,.wef-default .col-2,.wef-default .col-3,.wef-default .col-4,.wef-default .col-5,.wef-default .col-6,.wef-default .col-7,.wef-default .col-8,.wef-default .col-9,.wef-default .col-10,.wef-default .col-11,.wef-default .col-12{position:relative;min-height:1px;padding-left:10px;padding-right:10px;display:table-cell;vertical-align:middle;text-align:left}.wef-default .col-12{width:100%}.wef-default .col-11{width:91.66667%}.wef-default .col-10{width:83.33333%}.wef-default .col-9{width:75%}.wef-default .col-8{width:66.66667%}.wef-default .col-7{width:58.33333%}.wef-default .col-6{width:50%}.wef-default .col-5{width:41.66667%}.wef-default .col-4{width:33.33333%}.wef-default .col-3{width:25%}.wef-default .col-2{width:16.66667%}.wef-default .col-1{width:8.33333%}.wef-default hr{margin-top:10px !important;margin-bottom:10px !important;margin-left:0 !important;margin-right:0 !important;float:none !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.icon{float:right;box-shadow:none;margin:0;padding:0;display:block}.wef-default img.thumbnail{border:1px solid gray;border-radius:2px;height:60px !important;margin:1px;padding:2px;width:60px !important}.wef-default .album-thumbs{line-height:1px !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}.wef-default a:focus,.wef-default a:hover{color:#23487f;text-decoration:underline !important}.wef-default a.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;padding:0}.wef-default p{font:300 14px/20px Helvetica;padding:0 !important;margin:0 !important}.wef-default p.post-time{font-style:italic;color:#8e8c8d;font-size:12px}.wef-default p.caption-title{font-size:12px;font-weight:bold}.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 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 .post-link{border-width:1px;border-style:solid;border-color:#d0d0d0}.wef-default .post-link p{padding-left:10px !important;padding-right:10px !important}.wef-default .text-center{text-align:center}.wef-default .pl-none{padding-left:0 !important;word-break:break-all}.wef-default .color{color:#23487f}.wef-default .bold{font-weight:bold !important}.wef-default .title{font-size:20px !important;font-weight:bold !important;word-break:break-all}.wef-default .cover{width:100%;background-size:100%;cursor:pointer}.wef-default .pad-top{padding-top:5px}.wef-default .page-post{left:2.6% !important}.wef-default .caption-description p{color:#8e8c8d !important;font-style:italic !important;font-size:12px !important}.wef-default .video{position:relative;display:block;height:0;padding:0 0 56.25%;overflow:hidden}.wef-default .video iframe,.wef-default .video embed,.wef-default .video object,.wef-default .video video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0;margin:0;padding:0}.wef-default .wef-measure{width:100%}.wef-default .break-all{word-break:break-all}.wef-default .event_address{color:#565656;font-size:12px}.wef-video-link{margin:0 !important;padding:0 !important}.wef-video-link 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}
templates/default/default.sass CHANGED
@@ -181,4 +181,15 @@
181
  word-break: break-all
182
  .event_address
183
  color: #565656
184
- font-size: 12px
 
 
 
 
 
 
 
 
 
 
 
181
  word-break: break-all
182
  .event_address
183
  color: #565656
184
+ font-size: 12px
185
+ .wef-video-link
186
+ margin: 0 !important
187
+ padding: 0 !important
188
+ a
189
+ font: 300 14px/20px Helvetica
190
+ color: #23487F !important
191
+ text-decoration: none !important
192
+ border: 0 !important
193
+ margin: 0 !important
194
+ padding: 0 !important
195
+ box-shadow: none !important
templates/default/social-plugin.php CHANGED
@@ -7,8 +7,13 @@ switch($type){
7
  case 'video' :
8
  if(get_option('wpemfb_video_as_post','false') == 'true')
9
  echo WEF_Social_Plugins::embedded_post('https://www.facebook.com/'.$fb_data['link'],$width);
10
- else
11
  echo WEF_Social_Plugins::embedded_video('https://www.facebook.com/'.$fb_data['link'],$width);
 
 
 
 
 
12
  break;
13
  //case 'photo' :
14
  //case 'post' :
7
  case 'video' :
8
  if(get_option('wpemfb_video_as_post','false') == 'true')
9
  echo WEF_Social_Plugins::embedded_post('https://www.facebook.com/'.$fb_data['link'],$width);
10
+ else{
11
  echo WEF_Social_Plugins::embedded_video('https://www.facebook.com/'.$fb_data['link'],$width);
12
+ if( get_option('wpemfb_video_download','false') == 'true' ){
13
+ echo '<p class="wef-video-link"><a rel="nofollow" href="http://www.freemake.com/free_video_downloader/">'.__('Download this video','wp-embed-facebook').'</a></p>';
14
+ }
15
+ }
16
+
17
  break;
18
  //case 'photo' :
19
  //case 'post' :
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, profile, or post. Copy the facebook url to a single line on your post, or use shortcode [facebook url ] more information at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
6
  Author: Miguel Sirvent
7
- Version: 2.0.5
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang
@@ -35,6 +35,7 @@ wp_embed_register_handler("wpembedfb","/(http|https):\/\/www\.facebook\.com\/([^
35
 
36
  if(is_admin()){
37
  require_once('lib/class-wp-embed-fb-admin.php');
 
38
  add_action('admin_menu', array('WP_Embed_FB_Admin','add_page'));
39
  add_action('admin_init', array('WP_Embed_FB_Admin','admin_init'));
40
  add_action('admin_enqueue_scripts', array('WP_Embed_FB_Admin','admin_enqueue_scripts'), 10,1);
4
  Plugin URI: http://www.wpembedfb.com
5
  Description: Embed any public Facebook video, photo, album, event, page, profile, or post. Copy the facebook url to a single line on your post, or use shortcode [facebook url ] more information at <a href="http://www.wpembedfb.com" title="plugin website">www.wpembedfb.com</a>
6
  Author: Miguel Sirvent
7
+ Version: 2.0.6
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang
35
 
36
  if(is_admin()){
37
  require_once('lib/class-wp-embed-fb-admin.php');
38
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( 'WP_Embed_FB_Admin', 'add_action_link' ), 10 );
39
  add_action('admin_menu', array('WP_Embed_FB_Admin','add_page'));
40
  add_action('admin_init', array('WP_Embed_FB_Admin','admin_init'));
41
  add_action('admin_enqueue_scripts', array('WP_Embed_FB_Admin','admin_enqueue_scripts'), 10,1);