echo $id; ?> ]"); ?>' onclick="this.select()" readonly=""></div> <?php echo apply_filters(PT_CV_PREFIX_ . 'view_actions', '<a class="btn btn-info pull-right" target="_blank" href="http://www.contentviewspro.com/?utm_source=client&utm_medium=view">Get Pro version</a>', $id); ?> </div> <div class="clear"></div> <?php } ?> <div class="preview-wrapper"> <?php // Preview $options = array(array('label' => array('text' => __('Preview')), 'params' => array(array('type' => 'html', 'name' => 'preview', 'content' => PT_CV_Html::html_preview_box(), 'desc' => sprintf(__('To see live output, please click %s button', 'content-views-query-and-display-post-page'), sprintf('<code>%s</code>', __('Show Preview', 'content-views-query-and-display-post-page'))))))); 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 _e('Show Preview', 'content-views-query-and-display-post-page'); ?> </a> <br>
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 _e('Show Preview', PT_CV_TEXTDOMAIN); ?> </a> <br>
</h2> <?php if ($id) { echo balanceTags(sprintf('<div><input id="view-shortcode" type="text" value="[pt_view id="%s"]" onclick="this.select()" readonly="" class="form-control">%s</div><div class="clear"></div>', $id, apply_filters(PT_CV_PREFIX_ . 'view_actions', '', $id))); } ?> <?php PT_CV_Functions::util_show_promo_view(); ?> <div class="preview-wrapper"> <?php // Preview $options = array(array('label' => array('text' => __('Preview', PT_CV_DOMAIN)), 'params' => array(array('type' => 'html', 'name' => 'preview', 'content' => PT_CV_Html::html_preview_box(), 'desc' => __('Click "Show Preview" or "Update Preview" button to show, "Hide Preview" button to hide the output', PT_CV_DOMAIN))))); echo balanceTags(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 _e('Show Preview', PT_CV_DOMAIN); ?> </a> <br>