Version Description
- September 8th 2017 =
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.3.4 to 1.3.5
- ds-live-composer.php +2 -2
- includes/ajax.php +1 -0
- includes/header-footer.php +1 -1
- modules/image/module.php +1 -1
- modules/social/module.php +14 -0
- modules/tp-comments-form/module.php +118 -103
- modules/tp-comments/module.php +106 -84
- readme.txt +23 -1
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.
|
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.
|
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.5
|
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.5' );
|
46 |
|
47 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
48 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
includes/ajax.php
CHANGED
@@ -440,6 +440,7 @@ function dslc_ajax_load_template( $atts ) {
|
|
440 |
$template_code = stripslashes( $templates[ $template_id ]['code'] );
|
441 |
|
442 |
$response['output'] = dslc_render_content( $template_code, true );
|
|
|
443 |
|
444 |
// Encode response.
|
445 |
$response_json = wp_json_encode( $response );
|
440 |
$template_code = stripslashes( $templates[ $template_id ]['code'] );
|
441 |
|
442 |
$response['output'] = dslc_render_content( $template_code, true );
|
443 |
+
$response['output'] = do_shortcode( $response['output'] );
|
444 |
|
445 |
// Encode response.
|
446 |
$response_json = wp_json_encode( $response );
|
includes/header-footer.php
CHANGED
@@ -536,7 +536,7 @@ function dslc_hf_get_headerfooter( $post_id = false, $hf_type = 'header' ) {
|
|
536 |
// Compilation time 3.375 sec. before caching / 0.03 sec after caching.
|
537 |
|
538 |
// Get header/footer ID associated with the post.
|
539 |
-
$header_footer = dslc_hf_get_ID( $post_id );
|
540 |
$hf_id = false;
|
541 |
|
542 |
// Var defaults.
|
536 |
// Compilation time 3.375 sec. before caching / 0.03 sec after caching.
|
537 |
|
538 |
// Get header/footer ID associated with the post.
|
539 |
+
$header_footer = apply_filters( 'dslc_hf_ids_filter', dslc_hf_get_ID( $post_id ) );
|
540 |
$hf_id = false;
|
541 |
|
542 |
// Var defaults.
|
modules/image/module.php
CHANGED
@@ -808,7 +808,7 @@ class DSLC_Image extends DSLC_Module {
|
|
808 |
<div class="dslc-image-container">
|
809 |
<div class="dslc-image"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
810 |
|
811 |
-
<?php if ( empty( $options['image'] ) && empty( $options['image_url'] ) ) : ?>
|
812 |
|
813 |
<div class="dslc-notification dslc-red"><?php _e( 'No image has been set yet, edit the module to set one.', 'live-composer-page-builder' ); ?></div>
|
814 |
|
808 |
<div class="dslc-image-container">
|
809 |
<div class="dslc-image"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
810 |
|
811 |
+
<?php if ( empty( $options['image'] ) && empty( $options['image_url'] ) && is_user_logged_in() ) : ?>
|
812 |
|
813 |
<div class="dslc-notification dslc-red"><?php _e( 'No image has been set yet, edit the module to set one.', 'live-composer-page-builder' ); ?></div>
|
814 |
|
modules/social/module.php
CHANGED
@@ -201,6 +201,12 @@ class DSLC_Social extends DSLC_Module {
|
|
201 |
'std' => '',
|
202 |
'type' => 'text',
|
203 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
|
205 |
/**
|
206 |
* Styling
|
@@ -951,6 +957,14 @@ class DSLC_Social extends DSLC_Module {
|
|
951 |
<?php endif; ?>
|
952 |
</li>
|
953 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
954 |
</ul>
|
955 |
|
956 |
</div><!-- .dslc-social-wrap -->
|
201 |
'std' => '',
|
202 |
'type' => 'text',
|
203 |
),
|
204 |
+
array(
|
205 |
+
'label' => __( 'Email', 'live-composer-page-builder' ),
|
206 |
+
'id' => 'email',
|
207 |
+
'std' => '',
|
208 |
+
'type' => 'text',
|
209 |
+
),
|
210 |
|
211 |
/**
|
212 |
* Styling
|
957 |
<?php endif; ?>
|
958 |
</li>
|
959 |
<?php endif; ?>
|
960 |
+
<?php if ( isset( $options['email'] ) && $options['email'] != '' ) : ?>
|
961 |
+
<li>
|
962 |
+
<a class="dslc-social-icon" target="_blank" href="<?php echo $options['email']; ?>"><span class="dslc-icon dslc-icon-envelope"></span></a>
|
963 |
+
<?php if ( $options['show_labels'] == 'enabled' ) : ?>
|
964 |
+
<a class="dslc-social-label" target="_blank" href="<?php echo $options['email']; ?>"><span><?php _e( 'Email', 'live-composer-page-builder' ); ?></span></a>
|
965 |
+
<?php endif; ?>
|
966 |
+
</li>
|
967 |
+
<?php endif; ?>
|
968 |
</ul>
|
969 |
|
970 |
</div><!-- .dslc-social-wrap -->
|
modules/tp-comments-form/module.php
CHANGED
@@ -1243,6 +1243,7 @@ class DSLC_TP_Comments_Form extends DSLC_Module {
|
|
1243 |
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
1244 |
|
1245 |
}
|
|
|
1246 |
/**
|
1247 |
* Module HTML output.
|
1248 |
*
|
@@ -1250,137 +1251,151 @@ class DSLC_TP_Comments_Form extends DSLC_Module {
|
|
1250 |
* @return void
|
1251 |
*/
|
1252 |
function output( $options ) {
|
|
|
|
|
|
|
|
|
|
|
1253 |
|
1254 |
-
global $dslc_active;
|
1255 |
-
|
1256 |
-
$post_id = $options['post_id'];
|
1257 |
-
$show_fake = true;
|
1258 |
-
|
1259 |
-
if ( is_singular() && get_post_type() !== 'dslc_templates' && !$dslc_active ) {
|
1260 |
|
1261 |
-
$post_id = get_the_ID();
|
1262 |
-
$show_fake = false;
|
1263 |
-
}
|
1264 |
|
|
|
1265 |
|
1266 |
-
|
1267 |
-
|
1268 |
-
$txt_comment = __( 'Comment', 'live-composer-page-builder' );
|
1269 |
-
$txt_name = __( 'Name', 'live-composer-page-builder' );
|
1270 |
-
$txt_email = __( 'Email', 'live-composer-page-builder' );
|
1271 |
-
$txt_url = __( 'Website', 'live-composer-page-builder' );
|
1272 |
|
1273 |
-
|
1274 |
-
$txt_submit_comment = $options['txt_submit_comment'];
|
1275 |
|
1276 |
-
|
1277 |
-
$txt_leave_comment = $options['txt_leave_comment'];
|
1278 |
|
1279 |
-
|
1280 |
-
|
1281 |
|
1282 |
-
|
1283 |
-
$txt_name = $options['txt_name'];
|
1284 |
|
1285 |
-
|
1286 |
-
|
|
|
1287 |
|
1288 |
-
if ( isset( $options['txt_url'] ) && $options['txt_url'] != '' )
|
1289 |
-
$txt_url = $options['txt_url'];
|
1290 |
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
|
|
1296 |
|
1297 |
-
|
|
|
1298 |
|
1299 |
-
|
|
|
1300 |
|
1301 |
-
|
|
|
1302 |
|
1303 |
-
|
|
|
1304 |
|
1305 |
-
|
|
|
1306 |
|
1307 |
-
|
1308 |
-
|
1309 |
-
} elseif ( isset( $_GET['dslc_post_id'] ) ) {
|
1310 |
-
$page_id = $_GET['dslc_post_id'];
|
1311 |
-
} else {
|
1312 |
-
$page_id = get_the_ID();
|
1313 |
-
}
|
1314 |
|
1315 |
-
|
|
|
|
|
|
|
|
|
1316 |
|
1317 |
-
|
|
|
1318 |
|
1319 |
-
|
1320 |
-
<h3 id="reply-title" class="comment-reply-title"><?php echo $txt_leave_comment; ?></h3>
|
1321 |
-
<form action="#" method="post" id="commentform" class="comment-form" novalidate="">
|
1322 |
-
<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="<?php echo $txt_comment; ?>" aria-required="true"></textarea></div>
|
1323 |
-
<div class="comment-form-name"><input id="author" name="author" type="text" value="" size="30" placeholder="<?php echo $txt_name; ?> *" aria-required="true"></div>
|
1324 |
-
<div class="comment-form-email"><input id="email" name="email" type="text" value="" size="30" placeholder="<?php echo $txt_email; ?> *" aria-required="true"></div>
|
1325 |
-
<div class="comment-form-website"><input id="url" name="url" type="text" value="" size="30" placeholder="<?php echo $txt_url; ?>"></div>
|
1326 |
|
1327 |
-
|
1328 |
-
<input name="submit" type="submit" id="submit" class="submit" value="<?php echo $txt_submit_comment; ?>">
|
1329 |
-
</p>
|
1330 |
-
</form>
|
1331 |
-
</div>
|
1332 |
|
1333 |
-
|
1334 |
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
|
|
|
|
|
|
|
|
1338 |
|
1339 |
-
|
1340 |
|
1341 |
-
|
1342 |
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
'title_reply_to' => __( 'Reply to %s.', 'live-composer-page-builder' ),
|
1351 |
-
'comment_field' => '<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="' . $txt_comment . '" aria-required="true"></textarea></div>',
|
1352 |
-
'fields' => apply_filters( 'comment_form_default_fields', array(
|
1353 |
-
'author' => '<div class="comment-form-name"><input id="author" name="author" type=text value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" placeholder="' . $txt_name . ' *" aria-required="true" /></div>',
|
1354 |
-
'email' => '<div class="comment-form-email"><input id="email" name="email" type=text value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" placeholder="' . $txt_email . ' *" aria-required="true" /></div>',
|
1355 |
-
'url' => '<div class="comment-form-website"><input id="url" name="url" type=text value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" placeholder="' . $txt_url . '" /></div>'
|
1356 |
-
) ),
|
1357 |
-
), $post_id );
|
1358 |
|
1359 |
-
|
|
|
|
|
|
|
|
|
1360 |
|
1361 |
-
|
1362 |
|
1363 |
-
|
1364 |
-
|
1365 |
-
* In-line CSS below required to style placeholder text color.
|
1366 |
-
* Due to poor browser support we can't change it the normal way.
|
1367 |
-
*/
|
1368 |
-
?>
|
1369 |
-
<style type="text/css">
|
1370 |
-
.dslc-tp-comment-form input[type=text]::-moz-placeholder, .dslc-tp-comment-form input[type=url]::-moz-placeholder, .dslc-tp-comment-form input[type=email]::-moz-placeholder, .dslc-tp-comment-form textarea::-moz-placeholder {
|
1371 |
-
color: <?php echo $css_inputs_color ?>;
|
1372 |
-
}
|
1373 |
-
.dslc-tp-comment-form input[type=text]::-webkit-input-placeholder, .dslc-tp-comment-form input[type=url]::-webkit-input-placeholder, .dslc-tp-comment-form input[type=email]::-webkit-input-placeholder, .dslc-tp-comment-form textarea::-webkit-input-placeholder {
|
1374 |
-
color: <?php echo $css_inputs_color ?>;
|
1375 |
-
}
|
1376 |
-
.dslc-tp-comment-form input[type=text]:-ms-input-placeholder, .dslc-tp-comment-form input[type=url]:-ms-input-placeholder, .dslc-tp-comment-form input[type=email]:-ms-input-placeholder, .dslc-tp-comment-form textarea:-ms-input-placeholder {
|
1377 |
-
color: <?php echo $css_inputs_color ?>;
|
1378 |
}
|
1379 |
-
</style>
|
1380 |
-
<?php
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
}
|
1385 |
|
1386 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1243 |
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
1244 |
|
1245 |
}
|
1246 |
+
|
1247 |
/**
|
1248 |
* Module HTML output.
|
1249 |
*
|
1251 |
* @return void
|
1252 |
*/
|
1253 |
function output( $options ) {
|
1254 |
+
?>
|
1255 |
+
[dslc_module_tp_template_output]<?php echo serialize($options); ?>[/dslc_module_tp_template_output]
|
1256 |
+
<?php
|
1257 |
+
}
|
1258 |
+
}
|
1259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1260 |
|
|
|
|
|
|
|
1261 |
|
1262 |
+
function dslc_module_tp_template_output( $atts, $content = null ) {
|
1263 |
|
1264 |
+
// Uncode module options passed as serialized content.
|
1265 |
+
$options = unserialize( $content );
|
|
|
|
|
|
|
|
|
1266 |
|
1267 |
+
ob_start();
|
|
|
1268 |
|
1269 |
+
global $dslc_active;
|
|
|
1270 |
|
1271 |
+
$post_id = $options['post_id'];
|
1272 |
+
$show_fake = true;
|
1273 |
|
1274 |
+
if ( is_singular() && get_post_type() !== 'dslc_templates' && !$dslc_active ) {
|
|
|
1275 |
|
1276 |
+
$post_id = get_the_ID();
|
1277 |
+
$show_fake = false;
|
1278 |
+
}
|
1279 |
|
|
|
|
|
1280 |
|
1281 |
+
$txt_submit_comment = __( 'SUBMIT YOUR COMMENT', 'live-composer-page-builder' );
|
1282 |
+
$txt_leave_comment = __( 'Leave a Comment', 'live-composer-page-builder' );
|
1283 |
+
$txt_comment = __( 'Comment', 'live-composer-page-builder' );
|
1284 |
+
$txt_name = __( 'Name', 'live-composer-page-builder' );
|
1285 |
+
$txt_email = __( 'Email', 'live-composer-page-builder' );
|
1286 |
+
$txt_url = __( 'Website', 'live-composer-page-builder' );
|
1287 |
|
1288 |
+
if ( isset( $options['txt_submit_comment'] ) && $options['txt_submit_comment'] != '' )
|
1289 |
+
$txt_submit_comment = $options['txt_submit_comment'];
|
1290 |
|
1291 |
+
if ( isset( $options['txt_leave_comment'] ) && $options['txt_leave_comment'] != '' )
|
1292 |
+
$txt_leave_comment = $options['txt_leave_comment'];
|
1293 |
|
1294 |
+
if ( isset( $options['txt_comment'] ) && $options['txt_comment'] != '' )
|
1295 |
+
$txt_comment = $options['txt_comment'];
|
1296 |
|
1297 |
+
if ( isset( $options['txt_name'] ) && $options['txt_name'] != '' )
|
1298 |
+
$txt_name = $options['txt_name'];
|
1299 |
|
1300 |
+
if ( isset( $options['txt_email'] ) && $options['txt_email'] != '' )
|
1301 |
+
$txt_email = $options['txt_email'];
|
1302 |
|
1303 |
+
if ( isset( $options['txt_url'] ) && $options['txt_url'] != '' )
|
1304 |
+
$txt_url = $options['txt_url'];
|
|
|
|
|
|
|
|
|
|
|
1305 |
|
1306 |
+
if ( isset( $options['css_inputs_color'] ) && $options['css_inputs_color'] != '' ) {
|
1307 |
+
$css_inputs_color = $options['css_inputs_color'];
|
1308 |
+
} else {
|
1309 |
+
$css_inputs_color = 'initial';
|
1310 |
+
}
|
1311 |
|
1312 |
+
/* Module output starts here */
|
1313 |
+
?>
|
1314 |
|
1315 |
+
<div class="dslc-tp-comment-form">
|
|
|
|
|
|
|
|
|
|
|
|
|
1316 |
|
1317 |
+
<?php if ( $show_fake ) : ?>
|
|
|
|
|
|
|
|
|
1318 |
|
1319 |
+
<?php
|
1320 |
|
1321 |
+
if ( isset( $_POST['dslc_post_id'] ) ) {
|
1322 |
+
$page_id = $_POST['dslc_post_id'];
|
1323 |
+
} elseif ( isset( $_GET['dslc_post_id'] ) ) {
|
1324 |
+
$page_id = $_GET['dslc_post_id'];
|
1325 |
+
} else {
|
1326 |
+
$page_id = get_the_ID();
|
1327 |
+
}
|
1328 |
|
1329 |
+
?>
|
1330 |
|
1331 |
+
<?php if ( get_post_type( $page_id ) === 'dslc_templates' || comments_open( $page_id ) ) { ?>
|
1332 |
|
1333 |
+
<div id="respond" class="comment-respond">
|
1334 |
+
<h3 id="reply-title" class="comment-reply-title"><?php echo $txt_leave_comment; ?></h3>
|
1335 |
+
<form action="#" method="post" id="commentform" class="comment-form" novalidate="">
|
1336 |
+
<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="<?php echo $txt_comment; ?>" aria-required="true"></textarea></div>
|
1337 |
+
<div class="comment-form-name"><input id="author" name="author" type="text" value="" size="30" placeholder="<?php echo $txt_name; ?> *" aria-required="true"></div>
|
1338 |
+
<div class="comment-form-email"><input id="email" name="email" type="text" value="" size="30" placeholder="<?php echo $txt_email; ?> *" aria-required="true"></div>
|
1339 |
+
<div class="comment-form-website"><input id="url" name="url" type="text" value="" size="30" placeholder="<?php echo $txt_url; ?>"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1340 |
|
1341 |
+
<p class="form-submit">
|
1342 |
+
<input name="submit" type="submit" id="submit" class="submit" value="<?php echo $txt_submit_comment; ?>">
|
1343 |
+
</p>
|
1344 |
+
</form>
|
1345 |
+
</div>
|
1346 |
|
1347 |
+
<?php } else {
|
1348 |
|
1349 |
+
if ( $dslc_active ) {
|
1350 |
+
echo '<div class="dslc-notification dslc-red">' . __( 'Comments disabled for the current post ( whole website ), please enable comments on your website.', 'live-composer-page-builder' ) . '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1351 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1352 |
|
1353 |
+
} ?>
|
1354 |
+
|
1355 |
+
<?php else :
|
1356 |
+
|
1357 |
+
global $commenter;
|
1358 |
+
comment_form( array(
|
1359 |
+
'label_submit' => $txt_submit_comment,
|
1360 |
+
'cancel_reply_link' => 'cancel',
|
1361 |
+
'comment_notes_before' => '',
|
1362 |
+
'comment_notes_after' => '',
|
1363 |
+
'title_reply' => $txt_leave_comment,
|
1364 |
+
'title_reply_to' => __( 'Reply to %s.', 'live-composer-page-builder' ),
|
1365 |
+
'comment_field' => '<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="' . $txt_comment . '" aria-required="true"></textarea></div>',
|
1366 |
+
'fields' => apply_filters( 'comment_form_default_fields', array(
|
1367 |
+
'author' => '<div class="comment-form-name"><input id="author" name="author" type=text value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" placeholder="' . $txt_name . ' *" aria-required="true" /></div>',
|
1368 |
+
'email' => '<div class="comment-form-email"><input id="email" name="email" type=text value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" placeholder="' . $txt_email . ' *" aria-required="true" /></div>',
|
1369 |
+
'url' => '<div class="comment-form-website"><input id="url" name="url" type=text value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" placeholder="' . $txt_url . '" /></div>'
|
1370 |
+
) ),
|
1371 |
+
), $post_id );
|
1372 |
+
|
1373 |
+
endif; ?>
|
1374 |
+
|
1375 |
+
</div><!-- dslc-tp-comment-form -->
|
1376 |
+
|
1377 |
+
<?php
|
1378 |
+
/**
|
1379 |
+
* In-line CSS below required to style placeholder text color.
|
1380 |
+
* Due to poor browser support we can't change it the normal way.
|
1381 |
+
*/
|
1382 |
+
?>
|
1383 |
+
<style type="text/css">
|
1384 |
+
.dslc-tp-comment-form input[type=text]::-moz-placeholder, .dslc-tp-comment-form input[type=url]::-moz-placeholder, .dslc-tp-comment-form input[type=email]::-moz-placeholder, .dslc-tp-comment-form textarea::-moz-placeholder {
|
1385 |
+
color: <?php echo $css_inputs_color ?>;
|
1386 |
+
}
|
1387 |
+
.dslc-tp-comment-form input[type=text]::-webkit-input-placeholder, .dslc-tp-comment-form input[type=url]::-webkit-input-placeholder, .dslc-tp-comment-form input[type=email]::-webkit-input-placeholder, .dslc-tp-comment-form textarea::-webkit-input-placeholder {
|
1388 |
+
color: <?php echo $css_inputs_color ?>;
|
1389 |
+
}
|
1390 |
+
.dslc-tp-comment-form input[type=text]:-ms-input-placeholder, .dslc-tp-comment-form input[type=url]:-ms-input-placeholder, .dslc-tp-comment-form input[type=email]:-ms-input-placeholder, .dslc-tp-comment-form textarea:-ms-input-placeholder {
|
1391 |
+
color: <?php echo $css_inputs_color ?>;
|
1392 |
+
}
|
1393 |
+
</style>
|
1394 |
+
<?php
|
1395 |
+
|
1396 |
+
$shortcode_rendered = ob_get_contents();
|
1397 |
+
ob_end_clean();
|
1398 |
+
|
1399 |
+
return $shortcode_rendered;
|
1400 |
+
|
1401 |
+
} add_shortcode( 'dslc_module_tp_template_output', 'dslc_module_tp_template_output' );
|
modules/tp-comments/module.php
CHANGED
@@ -1645,6 +1645,8 @@ class DSLC_TP_Comments extends DSLC_Module {
|
|
1645 |
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
1646 |
|
1647 |
}
|
|
|
|
|
1648 |
/**
|
1649 |
* Module HTML output.
|
1650 |
*
|
@@ -1652,154 +1654,174 @@ class DSLC_TP_Comments extends DSLC_Module {
|
|
1652 |
* @return void
|
1653 |
*/
|
1654 |
function output( $options ) {
|
|
|
|
|
|
|
|
|
|
|
1655 |
|
1656 |
-
global $dslc_active;
|
1657 |
|
1658 |
-
|
1659 |
-
|
|
|
|
|
|
|
|
|
|
|
1660 |
|
1661 |
-
|
1662 |
-
|
1663 |
-
$show_fake = false;
|
1664 |
-
}
|
1665 |
|
|
|
1666 |
|
1667 |
-
|
1668 |
|
1669 |
-
|
|
|
1670 |
|
1671 |
-
|
|
|
|
|
|
|
1672 |
|
1673 |
-
<?php if ( $show_fake ) : ?>
|
1674 |
|
1675 |
-
|
1676 |
|
1677 |
-
|
1678 |
|
1679 |
-
|
1680 |
|
1681 |
-
|
1682 |
|
1683 |
-
|
1684 |
|
1685 |
-
|
1686 |
|
1687 |
-
|
1688 |
|
1689 |
-
|
1690 |
-
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1691 |
-
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1692 |
-
</ul>
|
1693 |
|
1694 |
-
|
1695 |
-
<a href="#" class="comment-reply-link">Reply</a>
|
1696 |
-
</span>
|
1697 |
|
1698 |
-
|
1699 |
|
1700 |
-
|
1701 |
|
1702 |
-
|
|
|
|
|
|
|
1703 |
|
1704 |
-
|
|
|
|
|
1705 |
|
1706 |
-
</div><!-- .comment-
|
1707 |
|
1708 |
-
|
1709 |
|
1710 |
-
|
1711 |
|
1712 |
-
|
1713 |
|
1714 |
-
|
1715 |
|
1716 |
-
|
1717 |
-
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1718 |
-
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1719 |
-
</ul>
|
1720 |
|
1721 |
-
|
1722 |
-
<a onclick="return addComment.moveForm("comment-42", "42", "respond", "14")" href="/livecomposer/?p=14&replytocom=42#respond" class="comment-reply-link">Reply</a> </span>
|
1723 |
|
1724 |
-
|
1725 |
|
1726 |
-
|
1727 |
|
1728 |
-
|
|
|
|
|
|
|
1729 |
|
1730 |
-
|
|
|
1731 |
|
1732 |
-
</div><!-- .comment-
|
1733 |
|
1734 |
-
<
|
1735 |
|
1736 |
-
|
1737 |
|
1738 |
-
|
1739 |
|
1740 |
-
|
1741 |
|
1742 |
-
|
1743 |
-
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1744 |
-
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1745 |
-
</ul>
|
1746 |
|
1747 |
-
|
1748 |
-
<a onclick="return addComment.moveForm("comment-43", "43", "respond", "14")" href="/livecomposer/?p=14&replytocom=43#respond" class="comment-reply-link">Reply</a> </span>
|
1749 |
|
1750 |
-
|
1751 |
|
1752 |
-
|
1753 |
|
1754 |
-
|
|
|
|
|
|
|
1755 |
|
1756 |
-
|
|
|
1757 |
|
1758 |
-
</div><!-- .comment-
|
1759 |
|
1760 |
-
|
1761 |
-
</ul><!-- .children -->
|
1762 |
-
</li><!-- #comment-## -->
|
1763 |
-
</ol><!-- .commentlist -->
|
1764 |
|
1765 |
-
|
1766 |
|
1767 |
-
|
1768 |
-
|
1769 |
-
<?php if ( defined( 'DISQUS_VERSION' ) ) : comments_template(); else : ?>
|
1770 |
|
1771 |
-
|
1772 |
|
1773 |
-
|
|
|
|
|
|
|
1774 |
|
1775 |
-
|
1776 |
|
1777 |
-
|
1778 |
|
1779 |
-
|
1780 |
-
<?php wp_list_comments( array('callback' => 'dslc_display_comments'), $comments ); ?>
|
1781 |
-
</ol><!-- .commentlist -->
|
1782 |
|
1783 |
-
|
1784 |
|
1785 |
-
|
1786 |
|
1787 |
-
|
1788 |
|
1789 |
<?php endif; ?>
|
1790 |
|
1791 |
-
|
1792 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1793 |
<?php endif; ?>
|
1794 |
|
1795 |
<?php endif; ?>
|
1796 |
|
1797 |
-
|
|
|
|
|
|
|
|
|
1798 |
|
1799 |
-
|
1800 |
|
|
|
1801 |
|
|
|
|
|
1802 |
|
1803 |
-
|
1804 |
|
1805 |
-
}
|
1645 |
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
1646 |
|
1647 |
}
|
1648 |
+
|
1649 |
+
|
1650 |
/**
|
1651 |
* Module HTML output.
|
1652 |
*
|
1654 |
* @return void
|
1655 |
*/
|
1656 |
function output( $options ) {
|
1657 |
+
?>
|
1658 |
+
[dslc_module_comments_output]<?php echo serialize($options); ?>[/dslc_module_comments_output]
|
1659 |
+
<?php
|
1660 |
+
}
|
1661 |
+
}
|
1662 |
|
|
|
1663 |
|
1664 |
+
/**
|
1665 |
+
* Module HTML output.
|
1666 |
+
*
|
1667 |
+
* @param array $options Module options to fill the module template.
|
1668 |
+
* @return void
|
1669 |
+
*/
|
1670 |
+
function dslc_module_comments_output( $atts, $content = null ) {
|
1671 |
|
1672 |
+
// Uncode module options passed as serialized content.
|
1673 |
+
$options = unserialize( $content );
|
|
|
|
|
1674 |
|
1675 |
+
ob_start();
|
1676 |
|
1677 |
+
global $dslc_active;
|
1678 |
|
1679 |
+
$post_id = $options['post_id'];
|
1680 |
+
$show_fake = true;
|
1681 |
|
1682 |
+
if ( is_singular() && get_post_type() !== 'dslc_templates' ) {
|
1683 |
+
$post_id = get_the_ID();
|
1684 |
+
$show_fake = false;
|
1685 |
+
}
|
1686 |
|
|
|
1687 |
|
1688 |
+
/* Module output starts here */
|
1689 |
|
1690 |
+
?>
|
1691 |
|
1692 |
+
<div class="dslc-tp-comments" id="comments">
|
1693 |
|
1694 |
+
<?php if ( $show_fake ) : ?>
|
1695 |
|
1696 |
+
<?php if ( defined( 'DISQUS_VERSION' ) ) : ?>
|
1697 |
|
1698 |
+
<p><strong>DISQUS</strong> is active and will be shown in this position.</strong></p>
|
1699 |
|
1700 |
+
<?php else : ?>
|
1701 |
|
1702 |
+
<ol class="comments clean-list">
|
|
|
|
|
|
|
1703 |
|
1704 |
+
<li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1 dslc-comment">
|
|
|
|
|
1705 |
|
1706 |
+
<div class="dslc-comment-inner">
|
1707 |
|
1708 |
+
<div class="dslc-comment-info dslc-clearfix">
|
1709 |
|
1710 |
+
<ul class="dslc-comment-meta dslc-clearfix">
|
1711 |
+
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1712 |
+
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1713 |
+
</ul>
|
1714 |
|
1715 |
+
<span class="dslc-comment-reply">
|
1716 |
+
<a href="#" class="comment-reply-link">Reply</a>
|
1717 |
+
</span>
|
1718 |
|
1719 |
+
</div><!-- .comment-info -->
|
1720 |
|
1721 |
+
<div class="dslc-comment-main">
|
1722 |
|
1723 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat</p>
|
1724 |
|
1725 |
+
</div><!-- .comment-main -->
|
1726 |
|
1727 |
+
</div><!-- .comment-inner -->
|
1728 |
|
1729 |
+
</li><!-- #comment-## -->
|
|
|
|
|
|
|
1730 |
|
1731 |
+
<li id="dslc-comment-42" class="comment byuser comment-author-admin bypostauthor even thread-even depth-1 dslc-comment">
|
|
|
1732 |
|
1733 |
+
<div class="dslc-comment-inner">
|
1734 |
|
1735 |
+
<div class="dslc-comment-info dslc-clearfix">
|
1736 |
|
1737 |
+
<ul class="dslc-comment-meta dslc-clearfix">
|
1738 |
+
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1739 |
+
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1740 |
+
</ul>
|
1741 |
|
1742 |
+
<span class="dslc-comment-reply">
|
1743 |
+
<a onclick="return addComment.moveForm("comment-42", "42", "respond", "14")" href="/livecomposer/?p=14&replytocom=42#respond" class="comment-reply-link">Reply</a> </span>
|
1744 |
|
1745 |
+
</div><!-- .comment-info -->
|
1746 |
|
1747 |
+
<div class="dslc-comment-main">
|
1748 |
|
1749 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat</p>
|
1750 |
|
1751 |
+
</div><!-- .comment-main -->
|
1752 |
|
1753 |
+
</div><!-- .comment-inner -->
|
1754 |
|
1755 |
+
<ul class="children">
|
|
|
|
|
|
|
1756 |
|
1757 |
+
<li id="dslc-comment-43" class="comment byuser comment-author-admin bypostauthor odd alt depth-2 dslc-comment">
|
|
|
1758 |
|
1759 |
+
<div class="dslc-comment-inner">
|
1760 |
|
1761 |
+
<div class="dslc-comment-info dslc-clearfix">
|
1762 |
|
1763 |
+
<ul class="dslc-comment-meta dslc-clearfix">
|
1764 |
+
<li class="dslc-comment-meta-author"><span class="dslc-comment-author-avatar"><img height="33" width="33" class="avatar avatar-33 photo" src="http://0.gravatar.com/avatar/8fa8ea3566dc0b5bcff5d6d8e93f0c9e?s=33&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D33&r=G" alt=""></span>admin</li>
|
1765 |
+
<li class="dslc-comment-meta-date">January 1, 2014</li>
|
1766 |
+
</ul>
|
1767 |
|
1768 |
+
<span class="dslc-comment-reply">
|
1769 |
+
<a onclick="return addComment.moveForm("comment-43", "43", "respond", "14")" href="/livecomposer/?p=14&replytocom=43#respond" class="comment-reply-link">Reply</a> </span>
|
1770 |
|
1771 |
+
</div><!-- .comment-info -->
|
1772 |
|
1773 |
+
<div class="dslc-comment-main">
|
|
|
|
|
|
|
1774 |
|
1775 |
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
1776 |
|
1777 |
+
</div><!-- .comment-main -->
|
|
|
|
|
1778 |
|
1779 |
+
</div><!-- .comment-inner -->
|
1780 |
|
1781 |
+
</li><!-- #comment-## -->
|
1782 |
+
</ul><!-- .children -->
|
1783 |
+
</li><!-- #comment-## -->
|
1784 |
+
</ol><!-- .commentlist -->
|
1785 |
|
1786 |
+
<?php endif; ?>
|
1787 |
|
1788 |
+
<?php else : ?>
|
1789 |
|
1790 |
+
<?php if ( defined( 'DISQUS_VERSION' ) ) : comments_template(); else : ?>
|
|
|
|
|
1791 |
|
1792 |
+
<?php $comments = get_comments( array('post_id' => $post_id) ); ?>
|
1793 |
|
1794 |
+
<?php if ( get_comment_pages_count( $comments ) > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
1795 |
|
1796 |
+
<!-- Comments Navigation -->
|
1797 |
|
1798 |
<?php endif; ?>
|
1799 |
|
1800 |
+
<ol class="comments clean-list">
|
1801 |
+
<?php wp_list_comments( array('callback' => 'dslc_display_comments'), $comments ); ?>
|
1802 |
+
</ol><!-- .commentlist -->
|
1803 |
+
|
1804 |
+
<?php if ( get_comment_pages_count( $comments ) > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
1805 |
+
|
1806 |
+
<!-- Comments Navigation -->
|
1807 |
+
|
1808 |
<?php endif; ?>
|
1809 |
|
1810 |
<?php endif; ?>
|
1811 |
|
1812 |
+
<?php if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) && ! defined( 'DISQUS_VERSION' ) ) : ?>
|
1813 |
+
<p class="nocomments"><?php _e( 'Comments are closed.', 'live-composer-page-builder' ); ?></p>
|
1814 |
+
<?php endif; ?>
|
1815 |
+
|
1816 |
+
<?php endif; ?>
|
1817 |
|
1818 |
+
</div><!-- dslc-tp-comments -->
|
1819 |
|
1820 |
+
<?php
|
1821 |
|
1822 |
+
$shortcode_rendered = ob_get_contents();
|
1823 |
+
ob_end_clean();
|
1824 |
|
1825 |
+
return $shortcode_rendered;
|
1826 |
|
1827 |
+
} add_shortcode( 'dslc_module_comments_output', 'dslc_module_comments_output' );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.1
|
6 |
-
Stable tag: 1.3.
|
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,28 @@ 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://wordpress.org/plugins/live-composer-page-builder/developers/)
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
= 1.3.4 - August 13th 2017 =
|
138 |
|
139 |
= Bug Fixes: =
|
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.1
|
6 |
+
Stable tag: 1.3.5
|
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://wordpress.org/plugins/live-composer-page-builder/developers/)
|
136 |
|
137 |
+
= 1.3.5 - September 8th 2017 =
|
138 |
+
|
139 |
+
= Bug Fixes: =
|
140 |
+
* Issue [#722](https://github.com/livecomposer/live-composer-page-builder/issues/722): Fixed notice of module 'Image'
|
141 |
+
* Issue [#776](https://github.com/livecomposer/live-composer-page-builder/issues/776): Fixed issue on templates import
|
142 |
+
* Issue [#777](https://github.com/livecomposer/live-composer-page-builder/issues/777): Fixed blog comments
|
143 |
+
|
144 |
+
= New: =
|
145 |
+
* Issue [#788](https://github.com/livecomposer/live-composer-page-builder/issues/788): Added filter for WPML
|
146 |
+
* Issue [#788](https://github.com/livecomposer/live-composer-page-builder/issues/788): Added new icon for module 'Social Element'
|
147 |
+
|
148 |
+
= Thanks to the next contributors for helping with this update: =
|
149 |
+
|
150 |
+
* [lejardindeden](https://github.com/lejardindeden)
|
151 |
+
|
152 |
+
|
153 |
+
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
|
159 |
= 1.3.4 - August 13th 2017 =
|
160 |
|
161 |
= Bug Fixes: =
|