Easy Coming Soon - Version 1.8.4.1

Version Description

Download this release

Release Info

Developer priyanshu.mittal
Plugin Icon 128x128 Easy Coming Soon
Version 1.8.4.1
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4.1

Files changed (3) hide show
  1. coming-soon-plugin.php +2 -2
  2. js/media-upload-script.js +20 -22
  3. readme.txt +7 -2
coming-soon-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
- Version: 1.8.3
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com/easy-coming-soon-pro-detail-page/
@@ -39,7 +39,7 @@
39
  {
40
  // enqueue script for coming soon plugin
41
 
42
-
43
  wp_enqueue_script( 'theme-preview' );
44
  wp_enqueue_script('tab',plugins_url('/js/spa-tab.js',__FILE__));
45
  // wp_enqueue_script('tab-content',plugins_url('/js/jquery.option.tree.js',__FILE__));
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
+ Version: 1.8.4.1
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com/easy-coming-soon-pro-detail-page/
39
  {
40
  // enqueue script for coming soon plugin
41
 
42
+ wp_enqueue_media();
43
  wp_enqueue_script( 'theme-preview' );
44
  wp_enqueue_script('tab',plugins_url('/js/spa-tab.js',__FILE__));
45
  // wp_enqueue_script('tab-content',plugins_url('/js/jquery.option.tree.js',__FILE__));
js/media-upload-script.js CHANGED
@@ -1,27 +1,25 @@
1
  jQuery(document).ready(function() {
2
 
3
- var uploadID = ''; /*setup the var*/
4
-
5
- jQuery('.upload-primary').click(function() {
6
- uploadID = jQuery(this).prev('input'); /*grab the specific input*/
7
-
8
- formfield = jQuery('.upload').attr('name');
9
- tb_show('', 'media-upload.php?type=image&TB_iframe=true');
10
-
11
- return false;
12
- });
13
-
14
-
15
-
16
- window.send_to_editor = function(html) {
17
-
18
- imgurl = jQuery('img',html).attr('src');
19
- uploadID.val(imgurl); /*assign the value to the input*/
20
- jQuery("#ecs_backg_img").attr("src",imgurl).show(500);
21
- tb_remove();
22
- };
23
-
24
-
25
 
26
 
27
  });
1
  jQuery(document).ready(function() {
2
 
3
+ jQuery(document).ready(function($){
4
+ $('.upload-primary').click(function(e) {
5
+ e.preventDefault();
6
+ var image = wp.media({
7
+ title: 'Upload Image',
8
+ // mutiple: true if you want to upload multiple files at once
9
+ multiple: false
10
+ }).open()
11
+ .on('select', function(e){
12
+ // This will return the selected image from the Media Uploader, the result is an object
13
+ var uploaded_image = image.state().get('selection').first();
14
+ // We convert uploaded_image to a JSON object to make accessing it easier
15
+ // Output to the console uploaded_image
16
+ console.log(uploaded_image);
17
+ var image_url = uploaded_image.toJSON().url;
18
+ // Let's assign the url value to the input field
19
+ $('#background').val(image_url);
20
+ });
21
+ });
22
+ });
 
 
23
 
24
 
25
  });
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: a.ankit, deepeshpaliwal,priyanshu.mittal
3
  Donate link: http://www.webriti.com/
4
  Tags: coming soon wordpress plugin,coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,wordpress under construction page,wordpress landing page, ultimate coming soon page, ultimate landing page, wordpress maintenance mode plugin
5
  Requires at least: 3.3+
6
- Tested up to: 4.3
7
- Stable tag: 1.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,6 +16,8 @@ The **Easy Coming Soon** plugin allows you quckly create a Launch page / Coming
16
 
17
  The Easy Coming Soon plugin works with any WordPress theme you have installed on your site. Looged out users will see the coming soon page while logged-in users will have access to the website. This is ideal for web developers who want to present their clients with a Under construction page while working on the website.
18
 
 
 
19
  Give **Easy Coming Soon** a try. We are sure you will like it.
20
 
21
  In case you face any problem, contact us via the [Forums](http://wordpress.org/support/plugin/easy-coming-soon).
@@ -110,6 +112,9 @@ In case you face any problem, contact us via the [Forums](http://wordpress.org/s
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 1.8.3 =
114
  1. Update Design Panel Setting.
115
 
3
  Donate link: http://www.webriti.com/
4
  Tags: coming soon wordpress plugin,coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,wordpress under construction page,wordpress landing page, ultimate coming soon page, ultimate landing page, wordpress maintenance mode plugin
5
  Requires at least: 3.3+
6
+ Tested up to: 4.4.2
7
+ Stable tag: 1.8.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  The Easy Coming Soon plugin works with any WordPress theme you have installed on your site. Looged out users will see the coming soon page while logged-in users will have access to the website. This is ideal for web developers who want to present their clients with a Under construction page while working on the website.
18
 
19
+ Plugin support in-built editor, so , that one can design the content without writing any html markup.
20
+
21
  Give **Easy Coming Soon** a try. We are sure you will like it.
22
 
23
  In case you face any problem, contact us via the [Forums](http://wordpress.org/support/plugin/easy-coming-soon).
112
 
113
  == Changelog ==
114
 
115
+ = 1.8.4 =
116
+ 1. Fixed media upload query.
117
+
118
  = 1.8.3 =
119
  1. Update Design Panel Setting.
120