Simple Full Screen Background Image - Version 1.2

Version Description

  • Added missing text domains for translation
  • Added a .pot file
Download this release

Release Info

Developer mordauk
Plugin Icon 128x128 Simple Full Screen Background Image
Version 1.2
Comparing to
See all releases

Code changes from version 1.1 to 1.2

includes/admin-page.php CHANGED
@@ -12,18 +12,18 @@ function sfsb_admin_page() {
12
  $_REQUEST['updated'] = false;
13
  ?>
14
  <?php if ( false !== $_REQUEST['updated'] ) : ?>
15
- <div class="updated fade"><p><strong><?php _e( 'Options saved' ); ?></strong></p></div>
16
  <?php endif; ?>
17
  <form method="post" action="options.php">
18
 
19
  <?php settings_fields( 'fsb_register_settings' ); ?>
20
 
21
- <h4>Choose Your 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="Choose Image"/>
26
- <label class="description" for="fsb_settings[image]"><?php _e( 'This image will be applied to the background of your website' ); ?></label>
27
  </p>
28
 
29
  <p>
@@ -36,7 +36,7 @@ function sfsb_admin_page() {
36
 
37
  <!-- save the options -->
38
  <p class="submit">
39
- <input type="submit" class="button-primary" value="<?php _e( 'Save Options' ); ?>" />
40
  </p>
41
 
42
  </form>
@@ -45,7 +45,7 @@ function sfsb_admin_page() {
45
  <?php
46
  }
47
  function sfsb_init_admin() {
48
- add_submenu_page( 'themes.php', 'Full Screen Background Image', 'Fullscreen BG Image', 'manage_options', 'full-screen-background', 'sfsb_admin_page' );
49
  }
50
  add_action('admin_menu', 'sfsb_init_admin');
51
 
12
  $_REQUEST['updated'] = false;
13
  ?>
14
  <?php if ( false !== $_REQUEST['updated'] ) : ?>
15
+ <div class="updated fade"><p><strong><?php _e( 'Options saved', 'simple-full-screen-background-image' ); ?></strong></p></div>
16
  <?php endif; ?>
17
  <form method="post" action="options.php">
18
 
19
  <?php settings_fields( 'fsb_register_settings' ); ?>
20
 
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' ); ?>"/>
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>
28
 
29
  <p>
36
 
37
  <!-- save the options -->
38
  <p class="submit">
39
+ <input type="submit" class="button-primary" value="<?php _e( 'Save Options', 'simple-full-screen-background-image' ); ?>" />
40
  </p>
41
 
42
  </form>
45
  <?php
46
  }
47
  function sfsb_init_admin() {
48
+ add_submenu_page( 'themes.php', __( 'Full Screen Background Image', 'simple-full-screen-background-image' ), __( 'Fullscreen BG Image', 'simple-full-screen-background-image' ), 'manage_options', 'full-screen-background', 'sfsb_admin_page' );
49
  }
50
  add_action('admin_menu', 'sfsb_init_admin');
51
 
languages/simple-full-screen-background-image.pot ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2015-10-05 10:18-0500\n"
7
+ "PO-Revision-Date: 2015-10-05 10:18-0500\n"
8
+ "Last-Translator: Pippin Williamson <pippin@pippinsplugins.com>\n"
9
+ "Language-Team: Pippin Williamson <pippin@pippinsplugins.com>\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.5\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:15
24
+ msgid "Options saved"
25
+ msgstr ""
26
+
27
+ #: includes/admin-page.php:21
28
+ msgid "Choose Your Image"
29
+ msgstr ""
30
+
31
+ #: includes/admin-page.php:25
32
+ msgid "Choose Image"
33
+ msgstr ""
34
+
35
+ #: includes/admin-page.php:26
36
+ msgid "This image will be applied to the background of your website"
37
+ msgstr ""
38
+
39
+ #: includes/admin-page.php:39
40
+ msgid "Save Options"
41
+ msgstr ""
42
+
43
+ #: includes/admin-page.php:48
44
+ msgid "Full Screen Background Image"
45
+ msgstr ""
46
+
47
+ #: includes/admin-page.php:48
48
+ msgid "Fullscreen BG Image"
49
+ msgstr ""
50
+
51
+ #. Plugin Name of the plugin/theme
52
+ msgid "Simple Full Screen Background Image"
53
+ msgstr ""
54
+
55
+ #. Description of the plugin/theme
56
+ msgid "Easily set an automatically scaled full-screen background images"
57
+ msgstr ""
58
+
59
+ #. Author of the plugin/theme
60
+ msgid "Pippin Williamson"
61
+ msgstr ""
62
+
63
+ #. Author URI of the plugin/theme
64
+ msgid "http://pippinsplugins.com"
65
+ msgstr ""
readme.txt CHANGED
@@ -5,33 +5,47 @@ Plugin URI: http://pippinspages.com/simple-fullscreen-background-image
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=72HGD7SA97KPE
6
  Tags: background, fullscreen, image, bg image, full screen
7
  Requires at least: 3.6
8
- Tested up to: 4.0
9
- Stable tag: 1.1
10
 
11
  This plugin lets provides a simple way to set an automatically scaled full screen background image.
12
 
13
  == Description ==
14
 
15
- Simple Full Screen Background Image will allow you to easily upload and set a full screen image as the background of your website. Images will be automatically scaled
16
- with the browser, so regardless of the browser size, the image will always fill the screen, even as the browser is resized live.
17
 
18
- Usage
19
-
20
- Once activated, go to Appearance > Fullscreen BG Image. From here click Choose Image, then either upload from your computer or choose one from the media library.
21
- Once you have chosen your image, select the size you wish to insert and click Insert Into Post. A preview of your image will appear below. Now click Save Options
22
  and view your site. The image should now be applied as a full screen background image.
23
 
 
 
 
 
 
 
 
 
 
 
24
  == Installation ==
25
 
26
  1. Upload the 'simple-full-screen-background' folder to the `/wp-content/plugins/` directory
27
  2. Activate the plugin through the 'Plugins' menu in WordPress
 
28
 
29
  == Screenshots ==
30
 
31
- Check out http://pippinsplugins.com/simple-fullscreen-background-image for screenshots and a demonstration video
 
 
32
 
33
  == Changelog ==
34
 
 
 
 
 
 
35
  = 1.1 =
36
 
37
  * Updated the admin page to use the improved media manager UII
5
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=72HGD7SA97KPE
6
  Tags: background, fullscreen, image, bg image, full screen
7
  Requires at least: 3.6
8
+ Tested up to: 4.8
9
+ Stable tag: 1.2
10
 
11
  This plugin lets provides a simple way to set an automatically scaled full screen background image.
12
 
13
  == Description ==
14
 
15
+ Simple Full Screen Background Image will allow you to easily upload and set a full screen image as the background of your website. Images will be automatically scaled with the browser, so regardless of the browser size, the image will always fill the screen, even as the browser is resized live.
 
16
 
17
+ Once activated, go to Appearance > Fullscreen BG Image. From here click Choose Image, then either upload from your computer or choose one from the media library. Once you have chosen your image, select the size you wish to insert and click Insert Into Post. A preview of your image will appear below. Now click Save Options
 
 
 
18
  and view your site. The image should now be applied as a full screen background image.
19
 
20
+ = Go Pro! =
21
+
22
+ A greatly enhanced Pro version is [available](https://pippinsplugins.com/products/full-screen-background-images-pro/)! Features of the pro version include:
23
+
24
+ * Unlimited background images
25
+ * Post / page-specific background images
26
+ * Multiple images with fade transitions on pages
27
+
28
+ Learn more about the Pro version [here](https://pippinsplugins.com/products/full-screen-background-images-pro/).
29
+
30
  == Installation ==
31
 
32
  1. Upload the 'simple-full-screen-background' folder to the `/wp-content/plugins/` directory
33
  2. Activate the plugin through the 'Plugins' menu in WordPress
34
+ 3. Navigate to Appearance > Fullscreen BG Image and upload your background image
35
 
36
  == Screenshots ==
37
 
38
+ 1. Main settings
39
+ 2. Settings with image
40
+ 3. Sample frontend
41
 
42
  == Changelog ==
43
 
44
+ = 1.2 =
45
+
46
+ * Added missing text domains for translation
47
+ * Added a .pot file
48
+
49
  = 1.1 =
50
 
51
  * Updated the admin page to use the improved media manager UII
simple-full-screen-background.php CHANGED
@@ -2,11 +2,22 @@
2
  /*
3
  Plugin Name: Simple Full Screen Background Image
4
  Description: Easily set an automatically scaled full-screen background images
5
- Version: 1.1
6
  Author: Pippin Williamson
7
  Author URI: http://pippinsplugins.com
8
  */
9
 
 
 
 
 
 
 
 
 
 
 
 
10
  /*****************************************
11
  * global
12
  *****************************************/
2
  /*
3
  Plugin Name: Simple Full Screen Background Image
4
  Description: Easily set an automatically scaled full-screen background images
5
+ Version: 1.2
6
  Author: Pippin Williamson
7
  Author URI: http://pippinsplugins.com
8
  */
9
 
10
+ function sfsb_textdomain() {
11
+
12
+ // Set filter for plugin's languages directory
13
+ $lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/';
14
+ $lang_dir = apply_filters( 'sfsb_languages_directory', $lang_dir );
15
+
16
+ // Load the translations
17
+ load_plugin_textdomain( 'simple-full-screen-background-image', false, $lang_dir );
18
+ }
19
+ add_action( 'init', 'sfsb_textdomain' );
20
+
21
  /*****************************************
22
  * global
23
  *****************************************/