Skip to content

Commit

Permalink
Module Image - Show message to site admins only!
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima committed Sep 8, 2017
1 parent 5d9ceb7 commit d3121c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/image/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function output( $options ) {
<div class="dslc-image-container">
<div class="dslc-image"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>

<?php if ( empty( $options['image'] ) && empty( $options['image_url'] ) ) : ?>
<?php if ( empty( $options['image'] ) && empty( $options['image_url'] ) && is_user_logged_in() ) : ?>

<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>

Expand Down

0 comments on commit d3121c5

Please sign in to comment.