Im looking to echo a div style and shortcode together. I can do it separately by
<?php if ( is_singular() ) { echo '<div class="own">' } else ; ?>
<?php if ( is_singular() ) { echo do_shortcode('[xxx]'); } else ; ?>
<?php if ( is_singular() ) { echo '</div>' } else ; ?>
but is there a cleaner way to do it?
.you mean?