Page Builder: Live Composer – drag and drop website builder (visual front end site editor) - Version 1.3.8

Version Description

  • November 8th 2017 =
Download this release

Release Info

Developer LiveComposer
Plugin Icon 128x128 Page Builder: Live Composer – drag and drop website builder (visual front end site editor)
Version 1.3.8
Comparing to
See all releases

Code changes from version 1.3.7 to 1.3.8

Gruntfile.js DELETED
@@ -1,49 +0,0 @@
1
- module.exports = function(grunt) {
2
-
3
- grunt.initConfig({
4
- pkg: grunt.file.readJSON('package.json'),
5
-
6
- uglify: {
7
- options: {
8
- compress: false,
9
- manage: false,
10
- },
11
- js_builder_minify : {
12
- src : ['js/builder/*.js', '!js/builder/builder.plugins.js'],
13
- dest : 'js/builder.all.min.js'
14
- },
15
- js_iframe_minify : {
16
- src : 'js/builder.frontend/*.js',
17
- dest : 'js/builder.frontend.all.min.js'
18
- },
19
- js_frontend_minify : {
20
- src : 'js/frontend/*.js',
21
- dest : 'js/frontend.all.min.js'
22
- },
23
- js_pluginoptions_minify : {
24
- src : 'includes/plugin-options-framework/js/main.js',
25
- dest : 'includes/plugin-options-framework/js/main.min.js'
26
- },
27
- js_postoptions_minify : {
28
- src : 'includes/post-options-framework/js/main.js',
29
- dest : 'includes/post-options-framework/js/main.min.js'
30
- },
31
- },
32
-
33
- cssmin: {
34
- target: {
35
- files: {
36
- 'css/frontend.min.css': ['css/frontend/*.css'],
37
- 'css/builder.min.css': ['css/builder/*.css'],
38
- 'includes/plugin-options-framework/css/main.min.css': ['includes/plugin-options-framework/css/main.css'],
39
- 'includes/post-options-framework/css/main.min.css': ['includes/post-options-framework/css/main.css']
40
- }
41
- }
42
- },
43
- });
44
-
45
- grunt.loadNpmTasks('grunt-contrib-uglify');
46
- grunt.loadNpmTasks('grunt-contrib-cssmin');
47
-
48
- grunt.registerTask('default', ['uglify', 'cssmin']);
49
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,36 +0,0 @@
1
- # Live-Composer
2
- ##### Free Drag & Drop Page Builder Plugin for WordPress
3
- Create unique pages in WordPress without writing a single line of code.
4
-
5
- http://livecomposerplugin.com
6
-
7
- [![Download the latest verison](https://img.shields.io/badge/Latest%20Version-Download-%234CC597.svg)](http://downloads.wordpress.org/plugin/live-composer-page-builder.latest-stable.zip) [![GitHub license](https://img.shields.io/badge/license-GPLv2-blue.svg)](https://raw.githubusercontent.com/livecomposer/Live-Composer/master/LICENSE) ![WordPress Tested](https://img.shields.io/badge/wordpress-plugin-green.svg)
8
-
9
- **Lead Developer:** [Lumberman Designs Team](https://github.com/lumbermandesigns)
10
-
11
- **Original Plugin Idea and Development:** [Slobodan Kustrimovic](https://github.com/WPCanyon)
12
-
13
- ## Description
14
-
15
- Live Composer is a front-end WordPress page builder plugin. Front-end means you build the page directly on the page, not in the admin panel, which allows you to see exactly how the page will look like as you build it, with live feedback on every change you make.
16
-
17
- [![Live Composer Video Review](http://cl.ly/2K0g0D0w1K0o/lc-demo-video.png)](https://youtu.be/geY-qCoOggo)
18
-
19
- Make sure you try the [interactive tutorial](http://livecomposerplugin.com/playground/tutorial-chapter-one/?dslc=active) to get familiar with how it works.
20
-
21
- ## Installation
22
-
23
- 1. Go to __WP Admin > Plugins > Add New__
24
- 2. Search for __Live Composer Page Builder__ and install it as any othe WP plugin.
25
- 3. Try the [interactive tutorial](http://livecomposerplugin.com/playground/tutorial-chapter-one/?dslc=active) to get familiar with how it works.
26
-
27
- ## Frequently Asked Questions
28
-
29
- #### How can I activate the page builder on a page?
30
- When you visit a page you'll see a green "activate editor" button in the bottom right corner, click that and the page will reload in LC mode.
31
-
32
- #### Why is the "activate editor" button missing from the homepage
33
- In most of the cases this is because the homepage is not a real WordPress page, it’s custom content generated by the theme’s index.php. Publish a new page and set it as the homepage ( WP Admin > Settings > Reading > Front Page ). Now you can use LC on the homepage.
34
-
35
- #### Is it compatible with any WordPress theme?
36
- Live Composer should work with any WordPress theme created according to the standards. You can also find a few free and premium themes created specifically for this plugin: http://livecomposerplugin.com/themes/ If you start from scratch we recommend to check out a free Blank Theme.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ds-live-composer.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://www.livecomposerplugin.com
5
  * Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
6
  * Author: Live Composer Team
7
- * Version: 1.3.7
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -42,7 +42,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
42
  * Constants
43
  */
44
 
45
- define( 'DS_LIVE_COMPOSER_VER', '1.3.7' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
4
  * Plugin URI: https://www.livecomposerplugin.com
5
  * Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
6
  * Author: Live Composer Team
7
+ * Version: 1.3.8
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL2
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
42
  * Constants
43
  */
44
 
45
+ define( 'DS_LIVE_COMPOSER_VER', '1.3.8' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
includes/display-functions.php CHANGED
@@ -545,11 +545,38 @@ function dslc_filter_content( $content ) {
545
  // Get ID of the post in which the content filter fired.
546
  $curr_id = get_the_ID();
547
 
548
- if ( is_archive() ) {
549
  $categories = get_the_category();
550
  $curr_id = $categories[0]->cat_ID;
551
  }
552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  // If post pass protected and pass not supplied return original content
554
  if ( post_password_required( $curr_id ) ) {
555
  return $content;
545
  // Get ID of the post in which the content filter fired.
546
  $curr_id = get_the_ID();
547
 
548
+ if ( is_category() ) {
549
  $categories = get_the_category();
550
  $curr_id = $categories[0]->cat_ID;
551
  }
552
 
553
+ if ( is_tag() ) {
554
+ $tags = get_the_tags();
555
+ $curr_id = $tags[0]->term_id;
556
+ }
557
+
558
+ if ( is_search() ) {
559
+
560
+ $args = array(
561
+ 'post_type' => 'dslc_templates',
562
+ 'meta_query' => array(
563
+ array(
564
+ 'key' => 'dslc_template_for',
565
+ 'value' => 'search_results',
566
+ ),
567
+ array(
568
+ 'key' => 'dslc_template_type',
569
+ 'value' => 'default',
570
+ ),
571
+ ),
572
+ );
573
+
574
+ $query = get_posts( $args );
575
+
576
+ $template_search = $query[0];
577
+ $curr_id = $template_search->ID;
578
+ }
579
+
580
  // If post pass protected and pass not supplied return original content
581
  if ( post_password_required( $curr_id ) ) {
582
  return $content;
includes/header-footer.php CHANGED
@@ -116,7 +116,7 @@ function dslc_hf_init() {
116
  array(
117
  'label' => __( 'Position', 'live-composer-page-builder' ),
118
  'std' => 'relative',
119
- 'descr' => __( '<strong>Relative</strong> is normal positioning. <strong>Fixed</strong> will make the header/footer scroll with the page. <strong>Absolute</strong> will make the regular page content go behind the header/footer.', 'live-composer-page-builder' ),
120
  'id' => 'dslc_hf_position',
121
  'type' => 'radio',
122
  'choices' => array(
116
  array(
117
  'label' => __( 'Position', 'live-composer-page-builder' ),
118
  'std' => 'relative',
119
+ 'descr' => __( '<strong>Relative</strong> is normal positioning. <strong>Fixed</strong> position will make the header/footer sticky on the top of the browser while the page is scrolled. <strong>Absolute</strong> will make the regular page content go behind the header/footer.', 'live-composer-page-builder' ),
120
  'id' => 'dslc_hf_position',
121
  'type' => 'radio',
122
  'choices' => array(
includes/single-templates-framework/inc/functions.php CHANGED
@@ -237,6 +237,14 @@ function dslc_get_template_by_id( $post_id ) {
237
  */
238
  function dslc_get_archive_template_by_pt( $post_type_slug ) {
239
 
 
 
 
 
 
 
 
 
240
  // All the archive templates saved in DB with '_archive' suffix.
241
  if ( ! stristr( $post_type_slug , '_archive' ) ) {
242
  $post_type_slug = $post_type_slug . '_archive';
237
  */
238
  function dslc_get_archive_template_by_pt( $post_type_slug ) {
239
 
240
+ // WooCommerce ( Woo Shop ) - https://github.com/lumbermandesigns/lc-woo-integration/issues/68.
241
+ if ( class_exists( 'WooCommerce' ) ) {
242
+ if ( is_shop() || is_product_category() ) {
243
+ $template_id = apply_filters( 'dslc_post_type_slug', $post_type_slug );
244
+ return $template_id;
245
+ }
246
+ }
247
+
248
  // All the archive templates saved in DB with '_archive' suffix.
249
  if ( ! stristr( $post_type_slug , '_archive' ) ) {
250
  $post_type_slug = $post_type_slug . '_archive';
installing grunt.txt DELETED
@@ -1,3 +0,0 @@
1
- 1. Change to the project's root directory.
2
- 2. Install project dependencies with ‘npm install’.
3
- 3. Run Grunt with ‘grunt’.
 
 
 
package.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "name": "live-composer-page-builder",
3
- "version": "1.0.9",
4
- "description": "Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.",
5
- "main": "ds-live-composer.php",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://livecomposer@github.com/livecomposer/Live-Composer.git"
9
- },
10
- "author": "Live Composer Team",
11
- "license": "GPL-3.0",
12
- "bugs": {
13
- "url": "https://github.com/livecomposer/Live-Composer/issues"
14
- },
15
- "homepage": "https://github.com/livecomposer/Live-Composer#readme",
16
- "devDependencies": {
17
- "grunt": "^1.0.1",
18
- "grunt-contrib-cssmin": "^1.0.1",
19
- "grunt-contrib-uglify": "^1.0.1"
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: LiveComposer
3
  Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
4
  Requires at least: 4.7
5
- Tested up to: 4.8.2
6
- Stable tag: 1.3.7
7
  License: GPLv3
8
 
9
  Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
@@ -134,6 +134,16 @@ Upcoming Releases:
134
  * [Please, report any bugs on GitHub](https://github.com/livecomposer/live-composer-page-builder/issues/)
135
  * [You can download any previous version here](https://github.com/live-composer/live-composer-page-builder/releases)
136
 
 
 
 
 
 
 
 
 
 
 
137
  = 1.3.7 - October 4th 2017 =
138
 
139
  = Bug Fixes: =
2
  Contributors: LiveComposer
3
  Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
4
  Requires at least: 4.7
5
+ Tested up to: 4.8
6
+ Stable tag: 1.3.8
7
  License: GPLv3
8
 
9
  Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
134
  * [Please, report any bugs on GitHub](https://github.com/livecomposer/live-composer-page-builder/issues/)
135
  * [You can download any previous version here](https://github.com/live-composer/live-composer-page-builder/releases)
136
 
137
+ = 1.3.8 - November 8th 2017 =
138
+
139
+ = Bug Fixes: =
140
+ * Issue [#784](https://github.com/livecomposer/live-composer-page-builder/issues/784): Fixed: The search archive listing issue with the very first post
141
+ * Issue [#830](https://github.com/live-composer/live-composer-page-builder/issues/830): Fixed: Header position description is not quite accurate
142
+
143
+ = Improved: =
144
+ Issue [#825](https://github.com/livecomposer/live-composer-page-builder/issues/825): Improve function 'dslc_get_archive_template_by_pt'
145
+
146
+
147
  = 1.3.7 - October 4th 2017 =
148
 
149
  = Bug Fixes: =