function motopressCEShowWelcomeScreen() { global $motopressCESettings; global $motopressCELang; echo '<div class="motopress-title-page">'; $logoLargeSrc = apply_filters('mpce_large_logo_src', $motopressCESettings['plugin_dir_url'] . 'images/logo-large.png?ver=' . $motopressCESettings['plugin_version']); echo '<img id="motopress-logo" src="' . esc_url($logoLargeSrc) . '" />'; $siteUrl = apply_filters('mpce_wl_site_url', 'http://www.getmotopress.com'); $siteName = apply_filters('mpce_wl_site_name', 'getmotopress.com'); echo '<p class="motopress-description">' . strtr($motopressCELang->motopressDescription, array('%BrandName%' => $motopressCESettings['brand_name'], '%link%' => $siteUrl, '%siteName%' => $siteName)) . '</p>'; global $motopressCEIsjQueryVer; if (!$motopressCEIsjQueryVer) { MPCEFlash::setFlash(strtr($motopressCELang->jQueryVerNotSupported, array('%minjQueryVer%' => MPCERequirements::MIN_JQUERY_VER, '%minjQueryUIVer%' => MPCERequirements::MIN_JQUERYUI_VER)), 'error'); } echo '<p><div class="alert alert-error" id="motopress-browser-support-msg" style="display:none;">' . $motopressCELang->browserNotSupported . '</div></p>'; $foundCEButtonDesc = apply_filters('mpce_found_button_description', $motopressCELang->CEDescription); echo '<div class="motopress-block"><p class="motopress-title">' . $foundCEButtonDesc . '</p>'; $foundButtonImageSrc = apply_filters('mpce_found_button_img_src', $motopressCESettings['plugin_dir_url'] . 'images/ce/ce.png?ver=' . $motopressCESettings['plugin_version']); echo '<a href="' . admin_url('post-new.php?post_type=page') . '" target="_self" id="motopress-ce-link"><img id="motopress-ce" src="' . esc_url($foundButtonImageSrc) . '" /></a></div>'; ?> <script type="text/javascript"> jQuery(document).ready(function($) { if (Browser.IE || Browser.Opera) { // $('#motopress-layout-editor-btn').hide(); $('.motopress-block #motopress-ce-link') .attr('href', 'javascript:void(0);') .css({ cursor: 'default' }); $('#motopress-browser-support-msg').show(); } }); </script> <?php }
function motopressCEShowWelcomeScreen() { global $motopressCESettings; global $motopressCELang; echo '<div class="motopress-title-page">'; echo '<img id="motopress-logo" src="' . $motopressCESettings['plugin_dir_url'] . 'images/logo-large.png?ver=' . $motopressCESettings['plugin_version'] . '" />'; echo '<p class="motopress-description">' . $motopressCELang->motopressDescription . '</p>'; global $motopressCEIsjQueryVer; if (!$motopressCEIsjQueryVer) { MPCEFlash::setFlash(strtr($motopressCELang->jQueryVerNotSupported, array('%minjQueryVer%' => MPCERequirements::MIN_JQUERY_VER, '%minjQueryUIVer%' => MPCERequirements::MIN_JQUERYUI_VER)), 'error'); } echo '<p><div class="alert alert-error" id="motopress-browser-support-msg" style="display:none;">' . $motopressCELang->browserNotSupported . '</div></p>'; echo '<div class="motopress-block"><p class="motopress-title">' . $motopressCELang->CEDescription . '</p>'; echo '<a href="' . admin_url('post-new.php?post_type=page') . '" target="_self" id="motopress-ce-link"><img id="motopress-ce" src="' . $motopressCESettings['plugin_dir_url'] . 'images/ce/ce.png?ver=' . $motopressCESettings['plugin_version'] . '" /></a></div>'; ?> <script type="text/javascript"> jQuery(document).ready(function($) { if (Browser.IE || Browser.Opera) { // $('#motopress-layout-editor-btn').hide(); $('.motopress-block #motopress-ce-link') .attr('href', 'javascript:void(0);') .css({ cursor: 'default' }); $('#motopress-browser-support-msg').show(); } }); </script> <?php }