/** * Custom script for Video background */ static function print_player_scripts() { echo WR_Pb_Helper_Functions::script_box("\$('.wr_video_bg').mb_YTPlayer(); \$('.wr_video_bg').click(function(){ \$(this).playYTP() });"); }
/** * Show admin notice * * @param string $addon_name * @param string $core_required * * @return string */ static function show_notice($data, $action, $type = 'error') { // show message ob_start(); switch ($action) { // show message about core version required case 'core_required': extract($data); ?> <div class="<?php echo esc_attr($type); ?> "> <p> <?php _e("You can not activate this WR PageBuilder's provider:", WR_PBL); ?> <br> <b><?php echo esc_html($addon_name); ?> </b> </p> <p> <?php _e("It requires WR PageBuilder's version:", WR_PBL); ?> <br> <b><?php echo esc_html($core_required); ?> </b> <br> <?php echo esc_html('or above to work. Please update WR PageBuilder to newest version.'); ?> <br> </p> </div> <!-- custom js to hide "Plugin actived" --> <?php $js_code = "\$('#message.updated').hide();"; echo balanceTags(WR_Pb_Helper_Functions::script_box($js_code)); break; default: break; } $message = ob_get_clean(); return $message; }