Featured Image From URL - Version 2.1.1

Version Description

  • Deprecated: WooCommerce Theme Support feature.
Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.1

featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
- * Version: 2.1.0
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
+ * Version: 2.1.1
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/woo.php CHANGED
@@ -1,14 +1,5 @@
1
  <?php
2
 
3
- add_filter('wc_get_template', 'fifu_woo_template', 10, 5);
4
-
5
- function fifu_woo_template($located, $template_name, $args, $template_path, $default_path) {
6
- if (($file_name = 'single-product/photoswipe.php') == $template_name)
7
- return fifu_woo_exists($file_name) ? $located : FIFU_PLUGIN_DIR . 'woocommerce/photoswipe.php';
8
-
9
- return $located;
10
- }
11
-
12
  function fifu_woo_zoom() {
13
  return fifu_is_on('fifu_wc_zoom') ? 'inline' : 'none';
14
  }
@@ -21,7 +12,3 @@ function fifu_woo_theme() {
21
  return file_exists(get_template_directory() . '/woocommerce');
22
  }
23
 
24
- function fifu_woo_exists($file_name) {
25
- return file_exists(get_template_directory() . '/woocommerce/' . $file_name);
26
- }
27
-
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
3
  function fifu_woo_zoom() {
4
  return fifu_is_on('fifu_wc_zoom') ? 'inline' : 'none';
5
  }
12
  return file_exists(get_template_directory() . '/woocommerce');
13
  }
14
 
 
 
 
 
readme.txt CHANGED
@@ -161,6 +161,9 @@ Features:
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 2.1.0 =
165
  * Bug fix: about button.
166
 
@@ -461,6 +464,9 @@ was removed. To finish, a Premium version is now been presented.
461
 
462
  == Upgrade Notice ==
463
 
 
 
 
464
  = 2.1.0 =
465
  * Bug fix: about button.
466
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.1.1 =
165
+ * Deprecated: WooCommerce Theme Support feature.
166
+
167
  = 2.1.0 =
168
  * Bug fix: about button.
169
 
464
 
465
  == Upgrade Notice ==
466
 
467
+ = 2.1.1 =
468
+ * Deprecated: WooCommerce Theme Support feature.
469
+
470
  = 2.1.0 =
471
  * Bug fix: about button.
472
 
woocommerce/photoswipe.php DELETED
@@ -1,86 +0,0 @@
1
- <?php
2
- /**
3
- * Photoswipe markup
4
- *
5
- * This template can be overridden by copying it to yourtheme/woocommerce/single-product/photoswipe.php.
6
- *
7
- * HOWEVER, on occasion WooCommerce will need to update template files and you
8
- * (the theme developer) will need to copy the new files to your theme to
9
- * maintain compatibility. We try to do this as little as possible, but it does
10
- * happen. When this occurs the version of the template file will be bumped and
11
- * the readme will list any important changes.
12
- *
13
- * @see https://docs.woocommerce.com/document/template-structure/
14
- * @author WooThemes
15
- * @package WooCommerce/Templates
16
- * @version 3.0.0
17
- */
18
-
19
- if ( ! defined( 'ABSPATH' ) ) {
20
- exit; // Exit if accessed directly.
21
- }
22
- ?>
23
-
24
- <style>.pswp__zoom-wrap:before,.wrapper{display:inline-block;vertical-align:middle}.video-wrapper,.wrapper{position:relative;width:100%}.pswp__zoom-wrap{text-align:center}.pswp__zoom-wrap:before{content:"";height:100%}.wrapper{line-height:0;max-width:78%;margin:0 auto;text-align:left;z-index:1045}.video-wrapper{padding-bottom:56.25%;padding-top:25px;height:0}.video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}</style>
25
- <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
26
-
27
- <!-- Background of PhotoSwipe. It's a separate element as animating opacity is faster than rgba(). -->
28
- <div class="pswp__bg"></div>
29
-
30
- <!-- Slides wrapper with overflow:hidden. -->
31
- <div class="pswp__scroll-wrap">
32
-
33
- <!-- Container that holds slides.
34
- PhotoSwipe keeps only 3 of them in the DOM to save memory.
35
- Don't modify these 3 pswp__item elements, data is added later on. -->
36
- <div class="pswp__container">
37
- <div class="pswp__item"></div>
38
- <div class="pswp__item"></div>
39
- <div class="pswp__item"></div>
40
- </div>
41
-
42
- <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
43
- <div class="pswp__ui pswp__ui--hidden">
44
-
45
- <div class="pswp__top-bar">
46
-
47
- <!-- Controls are self-explanatory. Order can be changed. -->
48
-
49
- <div class="pswp__counter"></div>
50
-
51
- <button class="pswp__button pswp__button--close" aria-label="<?php esc_attr_e( 'Close (Esc)', 'woocommerce' ); ?>"></button>
52
-
53
- <button class="pswp__button pswp__button--share" aria-label="<?php esc_attr_e( 'Share', 'woocommerce' ); ?>"></button>
54
-
55
- <button class="pswp__button pswp__button--fs" aria-label="<?php esc_attr_e( 'Toggle fullscreen', 'woocommerce' ); ?>"></button>
56
-
57
- <button class="pswp__button pswp__button--zoom" aria-label="<?php esc_attr_e( 'Zoom in/out', 'woocommerce' ); ?>"></button>
58
-
59
- <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
60
- <!-- element will get class pswp__preloader--active when preloader is running -->
61
- <div class="pswp__preloader">
62
- <div class="pswp__preloader__icn">
63
- <div class="pswp__preloader__cut">
64
- <div class="pswp__preloader__donut"></div>
65
- </div>
66
- </div>
67
- </div>
68
- </div>
69
-
70
- <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
71
- <div class="pswp__share-tooltip"></div>
72
- </div>
73
-
74
- <button class="pswp__button pswp__button--arrow--left" aria-label="<?php esc_attr_e( 'Previous (arrow left)', 'woocommerce' ); ?>"></button>
75
-
76
- <button class="pswp__button pswp__button--arrow--right" aria-label="<?php esc_attr_e( 'Next (arrow right)', 'woocommerce' ); ?>"></button>
77
-
78
- <div class="pswp__caption">
79
- <div class="pswp__caption__center"></div>
80
- </div>
81
-
82
- </div>
83
-
84
- </div>
85
-
86
- </div>