Simple Full Screen Background Image - Version 1.2.10

Version Description

  • Updated tested up to version.
  • Added Contributors.
Download this release

Release Info

Developer scott.deluzio
Plugin Icon 128x128 Simple Full Screen Background Image
Version 1.2.10
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.10

includes/admin-page.php CHANGED
@@ -21,7 +21,7 @@ function sfsb_admin_page() {
21
  <h4><?php _e( 'Choose Your Image', 'simple-full-screen-background-image' ); ?></h4>
22
 
23
  <p>
24
- <input id="fsb_settings[image]" name="fsb_settings[image]" type="text" class="upload_field" value="<?php echo $sfsb_options['image']; ?>"/>
25
  <input class="upload_image_button button-secondary" type="button" value="<?php _e( 'Choose Image', 'simple-full-screen-background-image' ); ?>"/><?php do_action( 'sfsb_additional_image_sources' ); ?>
26
  <label class="description" for="fsb_settings[image]"><?php _e( 'This image will be applied to the background of your website', 'simple-full-screen-background-image' ); ?></label>
27
  </p>
21
  <h4><?php _e( 'Choose Your Image', 'simple-full-screen-background-image' ); ?></h4>
22
 
23
  <p>
24
+ <input id="fsb_settings[image]" name="fsb_settings[image]" type="text" class="upload_field" value="<?php if ( is_array( $sfsb_options ) && isset( $sfsb_options['image'] ) ) { echo $sfsb_options['image']; } else { echo ''; } ?>"/>
25
  <input class="upload_image_button button-secondary" type="button" value="<?php _e( 'Choose Image', 'simple-full-screen-background-image' ); ?>"/><?php do_action( 'sfsb_additional_image_sources' ); ?>
26
  <label class="description" for="fsb_settings[image]"><?php _e( 'This image will be applied to the background of your website', 'simple-full-screen-background-image' ); ?></label>
27
  </p>
includes/fsb-scripts.js CHANGED
@@ -1,57 +1,57 @@
1
- jQuery(document).ready(function($) {
2
-
3
- var file_frame;
4
- $('body').on('click', '.upload_image_button', function(e) {
5
-
6
- e.preventDefault();
7
-
8
- var formfield = $(this).prev();
9
-
10
- // If the media frame already exists, reopen it.
11
- if ( file_frame ) {
12
- //file_frame.uploader.uploader.param( 'post_id', set_to_post_id );
13
- file_frame.open();
14
- return;
15
- }
16
-
17
- // Create the media frame.
18
- file_frame = wp.media.frames.file_frame = wp.media({
19
- frame: 'select',
20
- title: 'Choose Image',
21
- multiple: false,
22
- library: {
23
- type: 'image'
24
- },
25
- button: {
26
- text: 'Use Image'
27
- }
28
- });
29
-
30
- file_frame.on( 'menu:render:default', function(view) {
31
- // Store our views in an object.
32
- var views = {};
33
-
34
- // Unset default menu items
35
- view.unset('library-separator');
36
- view.unset('gallery');
37
- view.unset('featured-image');
38
- view.unset('embed');
39
-
40
- // Initialize the views in our view object.
41
- view.set(views);
42
- });
43
-
44
- // When an image is selected, run a callback.
45
- file_frame.on( 'select', function() {
46
-
47
- var attachment = file_frame.state().get('selection').first().toJSON();
48
- formfield.val(attachment.url);
49
- $('#fsb_preview_image').attr('src', attachment.url);
50
-
51
- });
52
-
53
- // Finally, open the modal
54
- file_frame.open();
55
- });
56
-
57
  });
1
+ jQuery(document).ready(function($) {
2
+
3
+ var file_frame;
4
+ $('body').on('click', '.upload_image_button', function(e) {
5
+
6
+ e.preventDefault();
7
+
8
+ var formfield = $(this).prev();
9
+
10
+ // If the media frame already exists, reopen it.
11
+ if ( file_frame ) {
12
+ //file_frame.uploader.uploader.param( 'post_id', set_to_post_id );
13
+ file_frame.open();
14
+ return;
15
+ }
16
+
17
+ // Create the media frame.
18
+ file_frame = wp.media.frames.file_frame = wp.media({
19
+ frame: 'select',
20
+ title: 'Choose Image',
21
+ multiple: false,
22
+ library: {
23
+ type: 'image'
24
+ },
25
+ button: {
26
+ text: 'Use Image'
27
+ }
28
+ });
29
+
30
+ file_frame.on( 'menu:render:default', function(view) {
31
+ // Store our views in an object.
32
+ var views = {};
33
+
34
+ // Unset default menu items
35
+ view.unset('library-separator');
36
+ view.unset('gallery');
37
+ view.unset('featured-image');
38
+ view.unset('embed');
39
+
40
+ // Initialize the views in our view object.
41
+ view.set(views);
42
+ });
43
+
44
+ // When an image is selected, run a callback.
45
+ file_frame.on( 'select', function() {
46
+
47
+ var attachment = file_frame.state().get('selection').first().toJSON();
48
+ formfield.val(attachment.url);
49
+ $('#fsb_preview_image').attr('src', attachment.url);
50
+
51
+ });
52
+
53
+ // Finally, open the modal
54
+ file_frame.open();
55
+ });
56
+
57
  });
languages/simple-full-screen-background-image.pot CHANGED
@@ -1,73 +1,73 @@
1
- #, fuzzy
2
- msgid ""
3
- msgstr ""
4
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
- "Project-Id-Version: Simple Full Screen Background Image\n"
6
- "POT-Creation-Date: 2019-08-20 16:13-0700\n"
7
- "PO-Revision-Date: 2019-08-20 16:13-0700\n"
8
- "Last-Translator: \n"
9
- "Language-Team: \n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.12\n"
14
- "X-Poedit-Basepath: ..\n"
15
- "X-Poedit-WPHeader: simple-full-screen-background.php\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
18
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
19
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
- "X-Poedit-SearchPathExcluded-0: *.js\n"
22
-
23
- #: includes/admin-page.php:9 includes/admin-page.php:48
24
- msgid "Full Screen Background Image"
25
- msgstr ""
26
-
27
- #: includes/admin-page.php:15
28
- msgid "Options saved"
29
- msgstr ""
30
-
31
- #: includes/admin-page.php:21
32
- msgid "Choose Your Image"
33
- msgstr ""
34
-
35
- #: includes/admin-page.php:25
36
- msgid "Choose Image"
37
- msgstr ""
38
-
39
- #: includes/admin-page.php:26
40
- msgid "This image will be applied to the background of your website"
41
- msgstr ""
42
-
43
- #: includes/admin-page.php:39
44
- msgid "Save Options"
45
- msgstr ""
46
-
47
- #: includes/admin-page.php:48
48
- msgid "Fullscreen BG Image"
49
- msgstr ""
50
-
51
- #: includes/meta-box.php:199
52
- msgid "Get "
53
- msgstr ""
54
-
55
- #. Plugin Name of the plugin/theme
56
- msgid "Simple Full Screen Background Image"
57
- msgstr ""
58
-
59
- #. Plugin URI of the plugin/theme
60
- msgid "https://fullscreenbackgroundimages.com/"
61
- msgstr ""
62
-
63
- #. Description of the plugin/theme
64
- msgid "Easily set an automatically scaled full-screen background image"
65
- msgstr ""
66
-
67
- #. Author of the plugin/theme
68
- msgid "Scott DeLuzio"
69
- msgstr ""
70
-
71
- #. Author URI of the plugin/theme
72
- msgid "https://amplifyplugins.com"
73
- msgstr ""
1
+ #, fuzzy
2
+ msgid ""
3
+ msgstr ""
4
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
+ "Project-Id-Version: Simple Full Screen Background Image\n"
6
+ "POT-Creation-Date: 2019-08-20 16:13-0700\n"
7
+ "PO-Revision-Date: 2019-08-20 16:13-0700\n"
8
+ "Last-Translator: \n"
9
+ "Language-Team: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.12\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-WPHeader: simple-full-screen-background.php\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
18
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
19
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
22
+
23
+ #: includes/admin-page.php:9 includes/admin-page.php:48
24
+ msgid "Full Screen Background Image"
25
+ msgstr ""
26
+
27
+ #: includes/admin-page.php:15
28
+ msgid "Options saved"
29
+ msgstr ""
30
+
31
+ #: includes/admin-page.php:21
32
+ msgid "Choose Your Image"
33
+ msgstr ""
34
+
35
+ #: includes/admin-page.php:25
36
+ msgid "Choose Image"
37
+ msgstr ""
38
+
39
+ #: includes/admin-page.php:26
40
+ msgid "This image will be applied to the background of your website"
41
+ msgstr ""
42
+
43
+ #: includes/admin-page.php:39
44
+ msgid "Save Options"
45
+ msgstr ""
46
+
47
+ #: includes/admin-page.php:48
48
+ msgid "Fullscreen BG Image"
49
+ msgstr ""
50
+
51
+ #: includes/meta-box.php:199
52
+ msgid "Get "
53
+ msgstr ""
54
+
55
+ #. Plugin Name of the plugin/theme
56
+ msgid "Simple Full Screen Background Image"
57
+ msgstr ""
58
+
59
+ #. Plugin URI of the plugin/theme
60
+ msgid "https://fullscreenbackgroundimages.com/"
61
+ msgstr ""
62
+
63
+ #. Description of the plugin/theme
64
+ msgid "Easily set an automatically scaled full-screen background image"
65
+ msgstr ""
66
+
67
+ #. Author of the plugin/theme
68
+ msgid "Scott DeLuzio"
69
+ msgstr ""
70
+
71
+ #. Author URI of the plugin/theme
72
+ msgid "https://amplifyplugins.com"
73
+ msgstr ""
readme.txt CHANGED
@@ -1,12 +1,11 @@
1
  === Simple Full Screen Background Image ===
2
- Contributors: scott.deluzio
3
- Author: scott.deluzio
4
  Author URI: https://amplifyplugins.com
5
  Plugin URI: https://fullscreenbackgroundimages.com
6
  Tags: background, fullscreen, background image, full screen, image
7
  Requires at least: 3.6
8
- Tested up to: 5.5.0
9
- Stable tag: 1.2.8
10
 
11
  This plugin provides a simple way to set an automatically scaled full screen background image.
12
 
@@ -40,6 +39,13 @@ Learn more about the Pro version [here](https://fullscreenbackgroundimages.com/d
40
  3. Sample frontend
41
 
42
  == Changelog ==
 
 
 
 
 
 
 
43
  = 1.2.8 =
44
  * Updated tested up to version.
45
 
@@ -84,6 +90,6 @@ Learn more about the Pro version [here](https://fullscreenbackgroundimages.com/d
84
 
85
 
86
  == Upgrade Notice ==
87
-
88
- = 1.2.8 =
89
- * Updated tested up to version.
1
  === Simple Full Screen Background Image ===
2
+ Contributors: scott.deluzio, ampmode
 
3
  Author URI: https://amplifyplugins.com
4
  Plugin URI: https://fullscreenbackgroundimages.com
5
  Tags: background, fullscreen, background image, full screen, image
6
  Requires at least: 3.6
7
+ Tested up to: 5.8.1
8
+ Stable tag: 1.2.10
9
 
10
  This plugin provides a simple way to set an automatically scaled full screen background image.
11
 
39
  3. Sample frontend
40
 
41
  == Changelog ==
42
+ = 1.2.10 =
43
+ * Updated tested up to version.
44
+ * Added Contributors.
45
+
46
+ = 1.2.9 =
47
+ * Fix: When first installed, the plugin was expecting a value to be displayed where none existed, which threw a PHP notice. Plugin now checks to see if the correct value exists before attempting to display it.
48
+
49
  = 1.2.8 =
50
  * Updated tested up to version.
51
 
90
 
91
 
92
  == Upgrade Notice ==
93
+ = 1.2.10 =
94
+ * Updated tested up to version.
95
+ * Added Contributors.
simple-full-screen-background.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: Simple Full Screen Background Image
4
  Plugin URI: https://fullscreenbackgroundimages.com/
5
  Description: Easily set an automatically scaled full-screen background image
6
- Version: 1.2.8
7
- Author: Scott DeLuzio
8
  Author URI: https://amplifyplugins.com
9
  */
10
 
3
  Plugin Name: Simple Full Screen Background Image
4
  Plugin URI: https://fullscreenbackgroundimages.com/
5
  Description: Easily set an automatically scaled full-screen background image
6
+ Version: 1.2.10
7
+ Author: AMP-MODE
8
  Author URI: https://amplifyplugins.com
9
  */
10