* @copyright (c) 2013, OnePress Ltd * * @package core * @since 1.0.0 */ /** * The class to render the metabox Locker Preview'. * * @since 1.0.0 */ class OPanda_PreviewMetaBox extends FactoryMetaboxes321_Metabox { /** * A visible title of the metabox. * * Inherited from the class FactoryMetabox. * @link http://codex.wordpress.org/Function_Reference/add_meta_box * * @since 1.0.0 * @var string */ public $title; /** * The priority within the context where the boxes should show ('high', 'core', 'default' or 'low'). * * @link http://codex.wordpress.org/Function_Reference/add_meta_box * Inherited from the class FactoryMetabox. * * @since 1.0.0 * @var string */ public $priority = 'core'; public function __construct( $plugin ) { parent::__construct( $plugin ); $this->title = __('Locker Preview', 'bizpanda'); } /** * Renders content of the metabox. * * @see FactoryMetaboxes321_Metabox * @since 1.0.0 * * @return void */ public function html() { global $bizpanda; $query_string = '?action=onp_sl_preview'; $query_string = apply_filters('opanda_preview_url', $query_string); $extra_data = array(); $extra_data['data-url'] = admin_url('admin-ajax.php') . $query_string; $extra_data = apply_filters('onp_sl_preview_data_wrap', $extra_data); // ToDo: remove, it's obsoleted $dataPrint = sizeof($extra_data) ? ' ' : ''; foreach( $extra_data as $key => $val) $dataPrint .= $key.'="'.$val.'" '; $dataPrint = rtrim($dataPrint, ' '); $showStyleRollerOffer = ( BizPanda::isSinglePlugin() && BizPanda::hasPlugin('sociallocker') ); ?>

:

>