Version Description
- Included alt tag in background image to comply with Web Content Accessibility Guidelines (WCAG). The background image is considered decoration, and so an empty alt tag (i.e. alt="") is an acceptable way to allow assistive technology to ignore the image.
- Update: Improved translatable POT file.
- Update: Added subtle upsell (dismissable) messaging in the plugin to inform users of the pro version of this plugin.
Download this release
Release Info
Developer | scott.deluzio |
Plugin | Simple Full Screen Background Image |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- includes/admin-page.php +1 -1
- includes/display-image.php +1 -1
- includes/meta-box.php +28 -0
- languages/simple-full-screen-background-image.pot +22 -10
- readme.txt +9 -3
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- simple-full-screen-background.php +2 -1
includes/admin-page.php
CHANGED
@@ -6,7 +6,7 @@ function sfsb_admin_page() {
|
|
6 |
?>
|
7 |
<div class="wrap">
|
8 |
<div id="fsb-wrap" class="fsb-help">
|
9 |
-
<h2
|
10 |
<?php
|
11 |
if ( ! isset( $_REQUEST['updated'] ) )
|
12 |
$_REQUEST['updated'] = false;
|
6 |
?>
|
7 |
<div class="wrap">
|
8 |
<div id="fsb-wrap" class="fsb-help">
|
9 |
+
<h2><?php _e( 'Full Screen Background Image', 'simple-full-screen-background-image' ); ?></h2>
|
10 |
<?php
|
11 |
if ( ! isset( $_REQUEST['updated'] ) )
|
12 |
$_REQUEST['updated'] = false;
|
includes/display-image.php
CHANGED
@@ -8,7 +8,7 @@ function fsb_display_image() {
|
|
8 |
if( is_ssl() ) {
|
9 |
$image = str_replace( 'http://', 'https://', $image );
|
10 |
}
|
11 |
-
echo '<img src="' . esc_url( $image ) . '" id="fsb_image"/>';
|
12 |
}
|
13 |
}
|
14 |
add_action( 'wp_footer', 'fsb_display_image' );
|
8 |
if( is_ssl() ) {
|
9 |
$image = str_replace( 'http://', 'https://', $image );
|
10 |
}
|
11 |
+
echo '<img src="' . esc_url( $image ) . '" id="fsb_image" alt=""/>';
|
12 |
}
|
13 |
}
|
14 |
add_action( 'wp_footer', 'fsb_display_image' );
|
includes/meta-box.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function sfsb_add_meta_box() {
|
4 |
+
$posttypes = get_post_types(array('show_ui' => true), 'objects');
|
5 |
+
foreach($posttypes as $posttype) {
|
6 |
+
// this is to make sure the meta box is not added to certain post types
|
7 |
+
$exclude = array(
|
8 |
+
'attachment',
|
9 |
+
'menu',
|
10 |
+
'modals'
|
11 |
+
);
|
12 |
+
if( !in_array( $posttype->name, $exclude ) ) {
|
13 |
+
add_meta_box('sfsb-meta-box', __('Full Screen Background Image',' simple-full-screen-background-image'), 'sfsb_show_meta_box', $posttype->name, 'side', 'high');
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
17 |
+
add_action('add_meta_boxes', 'sfsb_add_meta_box');
|
18 |
+
|
19 |
+
function sfsb_show_meta_box($post) {
|
20 |
+
$url = 'https://fullscreenbackgroundimages.com/downloads/full-screen-background-images-pro/?utm_source=simple-fsbgimg-editor-metabox&utm_medium=upgrade-to-pro&utm_campaign=admin';
|
21 |
+
$link = sprintf(
|
22 |
+
__( 'Want a different background image on this %s? Check out Full Screen Background Images Pro. ', 'simple-full-screen-background-image' ),
|
23 |
+
$post->post_type
|
24 |
+
);
|
25 |
+
|
26 |
+
echo '<div>' . $link . '</div>';
|
27 |
+
echo '<div style="margin-top:10px;"><a target="_blank" class="button button-primary" href="' . $url . '">' . __( 'Get Full Screen Background Images Pro!', 'simple-full-screen-background-image' ) . '</a></div>';
|
28 |
+
}
|
languages/simple-full-screen-background-image.pot
CHANGED
@@ -3,14 +3,14 @@ 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:
|
7 |
-
"PO-Revision-Date:
|
8 |
-
"Last-Translator:
|
9 |
-
"Language-Team:
|
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.
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"X-Poedit-WPHeader: simple-full-screen-background.php\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -20,6 +20,11 @@ msgstr ""
|
|
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 ""
|
@@ -41,11 +46,18 @@ msgid "Save Options"
|
|
41 |
msgstr ""
|
42 |
|
43 |
#: includes/admin-page.php:48
|
44 |
-
msgid "
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
msgstr ""
|
50 |
|
51 |
#. Plugin Name of the plugin/theme
|
@@ -57,9 +69,9 @@ msgid "Easily set an automatically scaled full-screen background images"
|
|
57 |
msgstr ""
|
58 |
|
59 |
#. Author of the plugin/theme
|
60 |
-
msgid "
|
61 |
msgstr ""
|
62 |
|
63 |
#. Author URI of the plugin/theme
|
64 |
-
msgid "http://
|
65 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Simple Full Screen Background Image\n"
|
6 |
+
"POT-Creation-Date: 2018-03-02 13:40-0700\n"
|
7 |
+
"PO-Revision-Date: 2018-03-02 13:40-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"
|
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 |
+
#: includes/meta-box.php:13
|
25 |
+
msgid "Full Screen Background Image"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
#: includes/admin-page.php:15
|
29 |
msgid "Options saved"
|
30 |
msgstr ""
|
46 |
msgstr ""
|
47 |
|
48 |
#: includes/admin-page.php:48
|
49 |
+
msgid "Fullscreen BG Image"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: includes/meta-box.php:22
|
53 |
+
#, php-format
|
54 |
+
msgid ""
|
55 |
+
"Want a different background image on this %s? Check out Full Screen "
|
56 |
+
"Background Images Pro. "
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/meta-box.php:27
|
60 |
+
msgid "Get Full Screen Background Images Pro!"
|
61 |
msgstr ""
|
62 |
|
63 |
#. Plugin Name of the plugin/theme
|
69 |
msgstr ""
|
70 |
|
71 |
#. Author of the plugin/theme
|
72 |
+
msgid "Scott DeLuzio"
|
73 |
msgstr ""
|
74 |
|
75 |
#. Author URI of the plugin/theme
|
76 |
+
msgid "http://scottdeluzio.com"
|
77 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,10 +5,10 @@ Author URI: http://scottdeluzio.com
|
|
5 |
Plugin URI: https://fullscreenbackgroundimages.com
|
6 |
Tags: background, fullscreen, image, bg image, full screen
|
7 |
Requires at least: 3.6
|
8 |
-
Tested up to: 4.
|
9 |
-
Stable tag: 1.2.
|
10 |
|
11 |
-
This plugin
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -41,6 +41,12 @@ Learn more about the Pro version [here](https://fullscreenbackgroundimages.com/d
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
= 1.2.1 =
|
45 |
|
46 |
* Updated contributor/author
|
5 |
Plugin URI: https://fullscreenbackgroundimages.com
|
6 |
Tags: background, fullscreen, image, bg image, full screen
|
7 |
Requires at least: 3.6
|
8 |
+
Tested up to: 4.9.4
|
9 |
+
Stable tag: 1.2.2
|
10 |
|
11 |
+
This plugin provides a simple way to set an automatically scaled full screen background image.
|
12 |
|
13 |
== Description ==
|
14 |
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 1.2.2 =
|
45 |
+
|
46 |
+
* Included alt tag in background image to comply with Web Content Accessibility Guidelines (WCAG). The background image is considered decoration, and so an empty alt tag (i.e. alt="") is an acceptable way to allow assistive technology to ignore the image.
|
47 |
+
* Update: Improved translatable POT file.
|
48 |
+
* Update: Added subtle upsell (dismissable) messaging in the plugin to inform users of the pro version of this plugin.
|
49 |
+
|
50 |
= 1.2.1 =
|
51 |
|
52 |
* Updated contributor/author
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
simple-full-screen-background.php
CHANGED
@@ -2,7 +2,7 @@
|
|
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: Scott DeLuzio
|
7 |
Author URI: http://scottdeluzio.com
|
8 |
*/
|
@@ -30,3 +30,4 @@ $sfsb_options = get_option('fsb_settings');
|
|
30 |
include('includes/admin-page.php');
|
31 |
include('includes/display-image.php');
|
32 |
include('includes/scripts.php');
|
|
2 |
/*
|
3 |
Plugin Name: Simple Full Screen Background Image
|
4 |
Description: Easily set an automatically scaled full-screen background images
|
5 |
+
Version: 1.2.2
|
6 |
Author: Scott DeLuzio
|
7 |
Author URI: http://scottdeluzio.com
|
8 |
*/
|
30 |
include('includes/admin-page.php');
|
31 |
include('includes/display-image.php');
|
32 |
include('includes/scripts.php');
|
33 |
+
include('includes/meta-box.php');
|