<div> <input id="view-shortcode" type="text" value="[pt_view id="<?php echo $id; ?> "]" onclick="this.select()" readonly="" class="form-control"> <?php echo apply_filters(PT_CV_PREFIX_ . 'view_actions', '', $id); ?> </div> <div class="clear"></div> <?php } ?> <?php PT_CV_Functions::util_show_promo_view(); ?> <div class="preview-wrapper"> <?php // Preview $options = array(array('label' => array('text' => __('Preview', PT_CV_TEXTDOMAIN)), 'params' => array(array('type' => 'html', 'name' => 'preview', 'content' => PT_CV_Html::html_preview_box(), 'desc' => __('Click <strong>Show Preview</strong> or <strong>Update Preview</strong> button to show, <strong>Hide Preview</strong> button to hide the output', PT_CV_TEXTDOMAIN))))); echo PT_Options_Framework::do_settings($options, $settings); ?> </div> <!-- Show Preview --> <a class="btn btn-success" id="<?php echo esc_attr(PT_CV_PREFIX); ?> show-preview"><?php