lang="zh-CN" itemscope itemtype="https://schema.org/WebSite">
OneSignal.push( function() {
OneSignal.SERVICE_WORKER_UPDATER_PATH = "OneSignalSDKUpdaterWorker.js.php";
OneSignal.SERVICE_WORKER_PATH = "OneSignalSDKWorker.js.php";
OneSignal.SERVICE_WORKER_PARAM = { scope: '/' };
OneSignal.setDefaultNotificationUrl("https://www.wpdaxue.com");
var oneSignal_options = {};
window._oneSignalInitOptions = oneSignal_options;
oneSignal_options['wordpress'] = true;
oneSignal_options['appId'] = '374c0df1-bcb2-4219-99a8-4693b5c9ac70';
oneSignal_options['welcomeNotification'] = { };
oneSignal_options['welcomeNotification']['title'] = "WordPress大学";
oneSignal_options['welcomeNotification']['message'] = "感谢您的订阅,我们将每周给您发送最多3次内容更新通知。";
oneSignal_options['path'] = "https://www.wpdaxue.com/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/";
oneSignal_options['safari_web_id'] = "web.onesignal.auto.1f4dfa09-73a7-4180-b8dc-d98896f4fb85";
oneSignal_options['promptOptions'] = { };
oneSignal_options['promptOptions']['actionMessage'] = '希望为您显示网站的最新内容更新通知';
oneSignal_options['promptOptions']['exampleNotificationTitleDesktop'] = 'WordPress大学最新内容通知';
oneSignal_options['promptOptions']['exampleNotificationMessageDesktop'] = '您好,WordPress大学发布了新的内容';
oneSignal_options['promptOptions']['exampleNotificationTitleMobile'] = 'WordPress大学最新内容通知';
oneSignal_options['promptOptions']['exampleNotificationMessageMobile'] = '您好,WordPress大学发布了新的内容';
oneSignal_options['promptOptions']['exampleNotificationCaption'] = '(您可以随时取消订阅)';
oneSignal_options['promptOptions']['acceptButtonText'] = '继续';
oneSignal_options['promptOptions']['cancelButtonText'] = '不,谢谢';
oneSignal_options['promptOptions']['autoAcceptTitle'] = '点击允许';
oneSignal_options['notifyButton'] = { };
oneSignal_options['notifyButton']['enable'] = true;
oneSignal_options['notifyButton']['position'] = 'bottom-right';
oneSignal_options['notifyButton']['theme'] = 'default';
oneSignal_options['notifyButton']['size'] = 'large';
oneSignal_options['notifyButton']['showCredit'] = false;
oneSignal_options['notifyButton']['text'] = {};
oneSignal_options['notifyButton']['text']['tip.state.unsubscribed'] = '订阅网站通知';
oneSignal_options['notifyButton']['text']['tip.state.subscribed'] = '您已经订阅了网站更新通知';
oneSignal_options['notifyButton']['text']['tip.state.blocked'] = '您已经阻止了网站更新通知';
oneSignal_options['notifyButton']['text']['message.action.subscribed'] = '感谢您的订阅!';
oneSignal_options['notifyButton']['text']['message.action.resubscribed'] = '你已经订阅了网站更新通知';
oneSignal_options['notifyButton']['text']['message.action.unsubscribed'] = '您将不能再收到WP大学的更新通知';
oneSignal_options['notifyButton']['text']['dialog.main.title'] = '订阅WordPress大学的通知';
oneSignal_options['notifyButton']['text']['dialog.main.button.subscribe'] = '订阅';
oneSignal_options['notifyButton']['text']['dialog.main.button.unsubscribe'] = '退订';
oneSignal_options['notifyButton']['text']['dialog.blocked.title'] = '取消阻止通知';
oneSignal_options['notifyButton']['text']['dialog.blocked.message'] = '请按照下面的操作来允许通知:';
OneSignal.init(window._oneSignalInitOptions);
OneSignal.showSlidedownPrompt(); });
function documentInitOneSignal() {
var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt");
var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications']); event.preventDefault(); }; for(var i = 0; i < oneSignal_elements.length; i++)
oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false);
}
if (document.readyState === 'complete') {
documentInitOneSignal();
}
else {
window.addEventListener("load", function(event){
documentInitOneSignal();
});
} .menu-wrap .primary-structure>li>a{padding:0 10px}.menu-wrap .primary-structure>li.hot>a span{color:#FF3657}.footer-box .footer-top .callto-action-btn{width:200px}.footer-box .footer-top .callto-action-btn a{color:#ff3657;display:block}.ads-wrap.ads_single_content_bottom{margin-top:10px}.home .edd-download .list-more{position:relative;right:0;bottom:0}.menu-wrap .two-columns .slide-menu{width:200px;display:inline-block}.menu-wrap .two-columns .slide-menu li{width:50%;float:left}.demo-links .btn{text-transform:none}.footer-box .footer-top{background-image:url(https://static.wpdaxue.com/img/2013/08/calltobg.jpg)}.footer-box .footer-top:before{background-color:rgba(63,81,181,.8)}.footer-box .footer-middle{background-color:#030D28}.footer-box .footer-middle{padding:60px 0 20px 0}.footer-box .footer-bottom{background-color:#030D28}.footer-box .footer-bottom{padding:20px 0} var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b6ca4c7f50ea42579ccbbbd85fd66206";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})(); .rll-youtube-player,[data-lazy-src]{display:none!important}
/* */ window.lazyLoadOptions={elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}};window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(i=0;i0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)
5466资源网 » WordPress前端注册/登录/找回密码/编辑资料插件 User Meta(已汉化) | WordPress大学
谢谢大牛分享,就想要个简洁的用户中心。
终于出汉化版了,赞!
这个是好事情,很多人需要用户中心的插件。