Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Shapely Companion |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- assets/js/admin.js +2 -2
- assets/js/nav-menu.js +4 -4
- assets/js/vendor/jquery.youtubebackground.js +1 -1
- assets/js/widget.js +1 -1
- inc/shapely-demo-content.php +1 -1
- readme.txt +6 -2
- shapely-companion.php +2 -2
assets/js/admin.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
jQuery( document ).ready(function() {// jscs:ignore validateLineBreaks
|
2 |
|
3 |
-
jQuery( '#demo_content .button' ).click
|
4 |
var currentButton = jQuery( this );
|
5 |
var ajaxData = { 'action': 'shapely_companion_import_content', 'import': jQuery( this ).data( 'action' ) };
|
6 |
evt.preventDefault();
|
@@ -75,7 +75,7 @@ jQuery(function( $ ) {
|
|
75 |
$( mediaControl.container ).find( 'img' ).attr( 'src', response );
|
76 |
}
|
77 |
|
78 |
-
selector.val( response ).change
|
79 |
|
80 |
});
|
81 |
|
1 |
jQuery( document ).ready(function() {// jscs:ignore validateLineBreaks
|
2 |
|
3 |
+
jQuery( '#demo_content .button' ).on('click', function( evt ) {
|
4 |
var currentButton = jQuery( this );
|
5 |
var ajaxData = { 'action': 'shapely_companion_import_content', 'import': jQuery( this ).data( 'action' ) };
|
6 |
evt.preventDefault();
|
75 |
$( mediaControl.container ).find( 'img' ).attr( 'src', response );
|
76 |
}
|
77 |
|
78 |
+
selector.val( response ).trigger('change');
|
79 |
|
80 |
});
|
81 |
|
assets/js/nav-menu.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
api = wpNavMenu;
|
7 |
|
8 |
-
$( '#submit-shapelysection' ).click
|
9 |
var section = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-widget' ).val(),
|
10 |
label = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-name' ).val(),
|
11 |
url = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-url' ).val();
|
@@ -37,9 +37,9 @@
|
|
37 |
$( '#shapelysectionsdiv .spinner' ).removeClass( 'is-active' );
|
38 |
|
39 |
// Set custom link form back to defaults
|
40 |
-
$( '#shapelysectionsdiv #shapely-section-item-widget' ).val( '0' ).blur
|
41 |
-
$( '#shapelysectionsdiv #shapely-section-item-url' ).val( '' ).blur
|
42 |
-
$( '#shapelysectionsdiv #shapely-section-item-name' ).val( '' ).blur
|
43 |
|
44 |
}
|
45 |
|
5 |
|
6 |
api = wpNavMenu;
|
7 |
|
8 |
+
$( '#submit-shapelysection' ).on('click', function( evt ) {
|
9 |
var section = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-widget' ).val(),
|
10 |
label = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-name' ).val(),
|
11 |
url = $( '#shapelysectionsdiv' ).find( '#shapely-section-item-url' ).val();
|
37 |
$( '#shapelysectionsdiv .spinner' ).removeClass( 'is-active' );
|
38 |
|
39 |
// Set custom link form back to defaults
|
40 |
+
$( '#shapelysectionsdiv #shapely-section-item-widget' ).val( '0' ).trigger('blur');
|
41 |
+
$( '#shapelysectionsdiv #shapely-section-item-url' ).val( '' ).trigger('blur');
|
42 |
+
$( '#shapelysectionsdiv #shapely-section-item-name' ).val( '' ).trigger('blur');
|
43 |
|
44 |
}
|
45 |
|
assets/js/vendor/jquery.youtubebackground.js
CHANGED
@@ -310,7 +310,7 @@ if ( typeof Object.create !== "function" ) {
|
|
310 |
// Scroll Stopped event.
|
311 |
$.fn.scrollStopped = function (callback) {
|
312 |
var $this = $(this), self = this;
|
313 |
-
$this.scroll
|
314 |
if ( $this.data('scrollTimeout') ) {
|
315 |
clearTimeout($this.data('scrollTimeout'));
|
316 |
}
|
310 |
// Scroll Stopped event.
|
311 |
$.fn.scrollStopped = function (callback) {
|
312 |
var $this = $(this), self = this;
|
313 |
+
$this.on('scroll', function () {
|
314 |
if ( $this.data('scrollTimeout') ) {
|
315 |
clearTimeout($this.data('scrollTimeout'));
|
316 |
}
|
assets/js/widget.js
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
|
20 |
/* Client widget sorting and cloning*/
|
21 |
/* Font awsome selector */
|
22 |
-
$( 'select.shapely-icon' ).change
|
23 |
$( this ).siblings( 'span' ).removeClass().addClass( 'fa ' + $( this ).val() );
|
24 |
} );
|
25 |
|
19 |
|
20 |
/* Client widget sorting and cloning*/
|
21 |
/* Font awsome selector */
|
22 |
+
$( 'select.shapely-icon' ).on('change', function() {
|
23 |
$( this ).siblings( 'span' ).removeClass().addClass( 'fa ' + $( this ).val() );
|
24 |
} );
|
25 |
|
inc/shapely-demo-content.php
CHANGED
@@ -11,7 +11,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
11 |
* @link https://github.com/stevengliebe/widget-importer-exporter
|
12 |
*/
|
13 |
function shapely_companion_add_default_widgets() {
|
14 |
-
$json = '{"sidebar-1":{"search-2":{"title":""},"recent-posts-2":{"title":"","number":5},"categories-2":{"title":"","count":0,"hierarchical":0,"dropdown":0}},"sidebar-home":{"shapely_home_parallax-2":{"title":"We Change Everything WordPress","image_src":"
|
15 |
$config = json_decode( $json );
|
16 |
$sidebars_widgets = get_option( 'sidebars_widgets' );
|
17 |
# Parse config
|
11 |
* @link https://github.com/stevengliebe/widget-importer-exporter
|
12 |
*/
|
13 |
function shapely_companion_add_default_widgets() {
|
14 |
+
$json = '{"sidebar-1":{"search-2":{"title":""},"recent-posts-2":{"title":"","number":5},"categories-2":{"title":"","count":0,"hierarchical":0,"dropdown":0}},"sidebar-home":{"shapely_home_parallax-2":{"title":"We Change Everything WordPress","image_src":"http://demo.colorlib.com/wp-content/uploads/sites/59/2016/03/photo-1443527216320-7e744084f5a7-1.jpg","image_pos":"background-full","body_content":"This is the only WordPress theme you will ever want to use.","button1":"Read More","button2":"Download Now","button1_link":"#","button2_link":"#","border_bottom":""},"shapely_home_parallax-3":{"title":"SEO Friendly","image_src":"https://demo.colorlib.com/wp-content/uploads/sites/59/2016/03/macbook-preview-flexible.png","image_pos":"left","body_content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pulvinar luctus sem, eget porta orci. Maecenas molestie dui id diam feugiat, eu tincidunt mauris aliquam. Duis commodo vitae ligula et interdum. Maecenas faucibus mattis imperdiet. In rhoncus ac ligula id ultricies.","button1":"Read more","button2":"","button1_link":"#","button2_link":"","border_bottom":""},"shapely_home_parallax-4":{"title":"Portfolio Section","image_src":"https://demo.colorlib.com/wp-content/uploads/sites/59/2016/03/flexible-portfolio.png","image_pos":"right","body_content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam pulvinar luctus sem, eget porta orci. Maecenas molestie dui id diam feugiat, eu tincidunt mauris aliquam. Duis commodo vitae ligula et interdum.","button1":"See it in action","button2":"","button1_link":"#","button2_link":"","border_bottom":""},"shapely_home_parallax-5":{"title":"Small Parallax Section","image_src":"http://demo.colorlib.com/wp-content/uploads/sites/59/2016/12/photo-1452723312111-3a7d0db0e024.jpg","image_pos":"background-small","body_content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus imperdiet rhoncus porta. Ut quis sem quis purus lobortis dictum. Aliquam nec dignissim nisl. Vivamus cursus feugiat sapien, eget tincidunt leo ornare quis.","button1":"MORE INFO","button2":"","button1_link":"#","button2_link":"","border_bottom":""},"shapely_home_parallax-6":{"title":"Limitless Options","image_src":"https://demo.colorlib.com/wp-content/uploads/sites/59/2016/12/photo-1440557653082-e8e186733eeb-1.jpg","image_pos":"bottom","body_content":"Phasellus sed nisi ac dui interdum semper. Etiam consequat fermentum sollicitudin. Fusce vulputate porta faucibus. Vivamus nulla tellus, accumsan non efficitur id, pretium quis ante","button1":"Download Now","button2":"","button1_link":"#","button2_link":"","border_bottom":""},"shapely_home_portfolio-2":{"title":"Our Latest Projects","body_content":"Here is our latest projects. You'll love them!"},"shapely_home_testimonial-2":{"title":"What Our Customers Say","limit":5,"image_src":"https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/12\/photo-1451417379553-15d8e8f49cde.jpg"},"shapely_home_contact-2":{"title":"Contact us","image_src":"","body_content":"Mauris vestibulum, metus at semper efficitur, est ex tincidunt elit, vitae tincidunt sem sem in est. Sed eget enim nunc.","phone":"(650) 652-8500","address":"33 Farlane Street Keilor East VIC 3033, New York","email":"mail@mail.com","contactform":32,"socialicons":""},"shapely_home_clients-2":{"title":"Our Main Clients","client_logo":{"img":["https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/colorlib-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/js-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/html5-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/css-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/less-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/sass-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/bootstrap-logo.jpg","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/adobe-logo.png","https://demo.colorlib.com/wp-content/uploads/sites/59\/2016\/03\/facebook-logo.png"],"link":["#","#","#","#","#","#","#","#","#"]}},"shapely_home_cfa-2":{"title":"Do you like this awesome WordPress theme?","button":"Download Now","button_link":"#"}}}';
|
15 |
$config = json_decode( $json );
|
16 |
$sidebars_widgets = get_option( 'sidebars_widgets' );
|
17 |
# Parse config
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: colorlibplugins, silkalns
|
3 |
Tags: woocommerce, widgets, plugin, demo, companion, home page, one page, parallax, social, portfolio, projects
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -52,6 +52,10 @@ You can still use Shapely theme without this plugin but you won't be able to imp
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
55 |
= 1.2.5 =
|
56 |
|
57 |
* Improved compatibility with Kali Forms plugin.
|
2 |
Contributors: colorlibplugins, silkalns
|
3 |
Tags: woocommerce, widgets, plugin, demo, companion, home page, one page, parallax, social, portfolio, projects
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 5.8
|
6 |
+
Stable tag: 1.2.6
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.2.5 =
|
56 |
+
* Fixed demo images
|
57 |
+
* compatibility with jQuery 3.0
|
58 |
+
|
59 |
= 1.2.5 =
|
60 |
|
61 |
* Improved compatibility with Kali Forms plugin.
|
shapely-companion.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Shapely Companion
|
4 |
* Plugin URI: https://colorlib.com/wp/themes/shapely/
|
5 |
* Description: Shapely Companion is a companion plugin for Shapely theme.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Colorlib
|
8 |
* Author URI: https://colorlib.com
|
9 |
* License: GPL-2.0+
|
@@ -16,7 +16,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
16 |
die;
|
17 |
}
|
18 |
|
19 |
-
define( 'SHAPELY_COMPANION', '1.2.
|
20 |
|
21 |
/**
|
22 |
* Load the Dashboard Widget
|
3 |
* Plugin Name: Shapely Companion
|
4 |
* Plugin URI: https://colorlib.com/wp/themes/shapely/
|
5 |
* Description: Shapely Companion is a companion plugin for Shapely theme.
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Colorlib
|
8 |
* Author URI: https://colorlib.com
|
9 |
* License: GPL-2.0+
|
16 |
die;
|
17 |
}
|
18 |
|
19 |
+
define( 'SHAPELY_COMPANION', '1.2.6' );
|
20 |
|
21 |
/**
|
22 |
* Load the Dashboard Widget
|