Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/AccessControl.3f4fa3cd.js
Назад
import{u as v,r as x,l as A,m as B}from"./index.5a710757.js";import"./translations.12335a6a.js";import{s as r,_ as e}from"./default-i18n.54b5d8cd.js";import{f as k,v as S,o as u,c as C,C as d,l,a as R,t as p,u as t,x as g,F as w,J as U,k as y,b as $}from"./runtime-dom.esm-bundler.6789c400.js";import{C as L}from"./Blur.31bfcf06.js";import{C as P}from"./Card.5b602127.js";import{C as M}from"./ProBadge.7733ac87.js";import{C as N}from"./SettingsRow.1934f141.js";import{C as D}from"./Index.c0a0a208.js";import{_ as V}from"./_plugin-vue_export-helper.249dac1d.js";import"./helpers.f95d5840.js";import"./Tooltip.b6b45c85.js";import"./Caret.662da1f3.js";import"./index.ee8124c6.js";import"./Slide.d0517fb0.js";import"./Row.f01f32cd.js";import"./constants.2019bcb3.js";const s="all-in-one-seo-pack",F=()=>{const _={tooltip:r(e("By default, only Administrators have permission to manage %1$s within WordPress. With Access Controls, you can easily extend access permissions to other user roles.",s),"AIOSEO"),accessControl:e("Access Control Settings",s),useDefaultSettings:e("Use Default Settings",s)},o=[{label:e("Administrator",s),name:"administrator",description:r(e("By default Admins have access to %1$sall SEO site settings%2$s",s),"<strong>","</strong>")},{label:e("Editor",s),name:"editor",description:r(e("By default Editors have access to %1$sSEO settings for General Settings, Search Appearance, Social Networks, and Redirects as well as all settings for individual pages and posts.%2$s",s),"<strong>","</strong>")},{label:e("Author",s),name:"author",description:r(e("By default Authors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",s),"<strong>","</strong>")},{label:e("Contributor",s),name:"contributor",description:r(e("By default Contributors have access to %1$sSEO settings for individual pages and posts that they already have permission to edit.%2$s",s),"<strong>","</strong>")},{label:e("SEO Manager",s),name:"seoManager",description:r(e("By default SEO Managers have access to %1$sSEO settings for General Settings, Sitemaps, Link Assistant, Redirects, Local SEO, and individual pages and posts.%2$s",s),"<strong>","</strong>")},{label:e("SEO Editor",s),name:"seoEditor",description:r(e("By default SEO Editors have access to %1$sSEO settings for individual pages and posts.%2$s",s),"<strong>","</strong>")}];return{getRoles:k(()=>{const a=v();return o.concat(Object.keys(a.aioseo.user.customRoles).map(i=>({label:a.aioseo.user.roles[i],name:i,description:r(e("By default the %1$s role %2$shas no access%3$s to %4$s settings.",s),a.aioseo.user.roles[i],"<strong>","</strong>","All in One SEO"),dynamic:!0})))}),strings:_}},G={class:"aioseo-access-control-lite"},T={class:"toggle"},b={__name:"AccessControl",setup(_){const o="all-in-one-seo-pack",{getRoles:f,strings:a}=F(),i=v(),n=x(a,{wpRoles:e("WP Roles (Editor, Author)",o),seoManagerRole:e("SEO Manager Role",o),seoEditorRole:e("SEO Editor Role",o),defaultSettings:e("Default settings that just work",o),granularControl:e("Granular controls per role",o),ctaButtonText:e("Unlock Access Control",o),ctaHeader:r(e("Access Control is a %1$s Feature",o),"PRO")}),h=k(()=>{const c=f.value;let m=1;for(;8>c.length;)c.push({label:e("Custom Role",o)+" "+m,name:"customRole"+m}),m++;return c});return(c,m)=>{const O=S("base-toggle");return u(),C("div",G,[d(t(P),{slug:"accessControl"},{header:l(()=>[R("span",null,p(t(n).accessControl),1),d(t(M))]),tooltip:l(()=>[g(p(t(n).tooltip),1)]),default:l(()=>[d(t(L),null,{default:l(()=>[(u(!0),C(w,null,U(h.value,E=>(u(),y(t(N),{key:E.name,name:E.label},{content:l(()=>[R("div",T,[d(O,{disabled:!0,modelValue:!0},{default:l(()=>[g(p(t(n).useDefaultSettings),1)]),_:1})])]),_:2},1032,["name"]))),128))]),_:1}),d(t(D),{"feature-list":[t(n).granularControl,t(n).wpRoles,t(n).seoManagerRole,t(n).seoEditorRole],"cta-link":t(A).getPricingUrl("access-control","access-control-upsell"),"button-text":t(n).ctaButtonText,"learn-more-link":t(A).getUpsellUrl("access-control",null,t(i).isPro?"pricing":"liteUpgrade"),"align-top":""},{"header-text":l(()=>[g(p(t(n).ctaHeader),1)]),description:l(()=>[g(p(t(n).tooltip),1)]),_:1},8,["feature-list","cta-link","button-text","learn-more-link"])]),_:1})])}}},W={setup(){return{licenseStore:B()}},components:{AccessControl:b,AccessControlLite:b}},j={class:"aioseo-access-control"};function H(_,o,f,a,i,n){const h=S("access-control",!0),c=S("access-control-lite");return u(),C("div",j,[a.licenseStore.isUnlicensed?$("",!0):(u(),y(h,{key:0})),a.licenseStore.isUnlicensed?(u(),y(c,{key:1})):$("",!0)])}const ie=V(W,[["render",H]]);export{ie as default};
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка