Created
October 5, 2018 23:12
-
-
Save nylen/9b0d3bce2f1e54cc9f3f9354eda10b8d to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru build-before-upgrades-unminified/wp-admin/css/about.min.css build-unminified/wp-admin/css/about.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/about.min.css 2018-10-05 18:06:59.450589337 -0500 | |
+++ build-unminified/wp-admin/css/about.min.css 2018-10-05 18:07:16.186704658 -0500 | |
@@ -39,7 +39,8 @@ | |
} | |
.wp-badge { | |
- background: url(../images/w-logo-white.png?ver=20160308) center 25px no-repeat #0073aa; | |
+ background: #0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat; | |
+ background-position: center 25px; | |
background-size: 80px 80px; | |
color: #fff; | |
font-size: 14px; | |
@@ -114,12 +115,6 @@ | |
text-align: left | |
} | |
-.about-wrap .embed-container, | |
-.about-wrap .featured-image, | |
-.about-wrap .lead-description { | |
- text-align: center | |
-} | |
- | |
.about-wrap .changelog h3 { | |
margin: 1.33em 0; | |
font-size: 1em; | |
@@ -217,7 +212,7 @@ | |
} | |
.about-wrap .feature-section h4 { | |
- margin: 1.4em 0 .6em; | |
+ margin: 1.4em 0 .6em 0; | |
font-size: 1em | |
} | |
@@ -226,7 +221,8 @@ | |
} | |
.about-wrap .lead-description { | |
- font-size: 1.5em | |
+ font-size: 1.5em; | |
+ text-align: center | |
} | |
.about-wrap .two-col-text { | |
@@ -255,11 +251,6 @@ | |
text-align: center | |
} | |
-.about-wrap .changelog.feature-section .col, | |
-.about-wrap .feature-section .col { | |
- margin-top: 40px | |
-} | |
- | |
.about-wrap .feature-video embed { | |
position: absolute; | |
top: 0; | |
@@ -268,6 +259,10 @@ | |
height: 100% | |
} | |
+.about-wrap .featured-image { | |
+ text-align: center | |
+} | |
+ | |
.about-wrap .feature-section { | |
overflow: hidden; | |
padding: 0 0 40px | |
@@ -285,15 +280,30 @@ | |
margin-bottom: 1em | |
} | |
-.about-wrap .embed-container iframe, | |
+.about-wrap .embed-container { | |
+ text-align: center | |
+} | |
+ | |
+.about-wrap .embed-container iframe { | |
+ max-width: 100% | |
+} | |
+ | |
.about-wrap .wp-embedded-content { | |
max-width: 100% | |
} | |
+.about-wrap .feature-section .col { | |
+ margin-top: 40px | |
+} | |
+ | |
.about-wrap .changelog { | |
margin-bottom: 40px | |
} | |
+.about-wrap .changelog.feature-section .col { | |
+ margin-top: 40px | |
+} | |
+ | |
.about-wrap .return-to-dashboard { | |
margin: 30px 0 0 -5px; | |
font-size: 14px; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/about-rtl.min.css build-unminified/wp-admin/css/about-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/about-rtl.min.css 2018-10-05 18:07:02.462610087 -0500 | |
+++ build-unminified/wp-admin/css/about-rtl.min.css 2018-10-05 18:07:19.190725363 -0500 | |
@@ -39,7 +39,8 @@ | |
} | |
.wp-badge { | |
- background: url(../images/w-logo-white.png?ver=20160308) center 25px no-repeat #0073aa; | |
+ background: #0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat; | |
+ background-position: center 25px; | |
background-size: 80px 80px; | |
color: #fff; | |
font-size: 14px; | |
@@ -114,12 +115,6 @@ | |
text-align: right | |
} | |
-.about-wrap .embed-container, | |
-.about-wrap .featured-image, | |
-.about-wrap .lead-description { | |
- text-align: center | |
-} | |
- | |
.about-wrap .changelog h3 { | |
margin: 1.33em 0; | |
font-size: 1em; | |
@@ -217,7 +212,7 @@ | |
} | |
.about-wrap .feature-section h4 { | |
- margin: 1.4em 0 .6em; | |
+ margin: 1.4em 0 .6em 0; | |
font-size: 1em | |
} | |
@@ -226,7 +221,8 @@ | |
} | |
.about-wrap .lead-description { | |
- font-size: 1.5em | |
+ font-size: 1.5em; | |
+ text-align: center | |
} | |
.about-wrap .two-col-text { | |
@@ -255,11 +251,6 @@ | |
text-align: center | |
} | |
-.about-wrap .changelog.feature-section .col, | |
-.about-wrap .feature-section .col { | |
- margin-top: 40px | |
-} | |
- | |
.about-wrap .feature-video embed { | |
position: absolute; | |
top: 0; | |
@@ -268,6 +259,10 @@ | |
height: 100% | |
} | |
+.about-wrap .featured-image { | |
+ text-align: center | |
+} | |
+ | |
.about-wrap .feature-section { | |
overflow: hidden; | |
padding: 0 0 40px | |
@@ -285,15 +280,30 @@ | |
margin-bottom: 1em | |
} | |
-.about-wrap .embed-container iframe, | |
+.about-wrap .embed-container { | |
+ text-align: center | |
+} | |
+ | |
+.about-wrap .embed-container iframe { | |
+ max-width: 100% | |
+} | |
+ | |
.about-wrap .wp-embedded-content { | |
max-width: 100% | |
} | |
+.about-wrap .feature-section .col { | |
+ margin-top: 40px | |
+} | |
+ | |
.about-wrap .changelog { | |
margin-bottom: 40px | |
} | |
+.about-wrap .changelog.feature-section .col { | |
+ margin-top: 40px | |
+} | |
+ | |
.about-wrap .return-to-dashboard { | |
margin: 30px -5px 0 0; | |
font-size: 14px; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/admin-menu.min.css build-unminified/wp-admin/css/admin-menu.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/admin-menu.min.css 2018-10-05 18:07:04.050621028 -0500 | |
+++ build-unminified/wp-admin/css/admin-menu.min.css 2018-10-05 18:07:20.782736336 -0500 | |
@@ -31,14 +31,14 @@ | |
.icon16 { | |
height: 18px; | |
width: 18px; | |
- padding: 6px; | |
+ padding: 6px 6px; | |
margin: -6px 0 0 -8px; | |
float: left | |
} | |
.icon16:before { | |
color: #82878c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
padding: 6px 0; | |
height: 34px; | |
@@ -216,7 +216,7 @@ | |
left: auto; | |
right: auto; | |
bottom: auto; | |
- border: 0; | |
+ border: 0 none; | |
margin-top: 0; | |
box-shadow: none; | |
background-color: #32373c | |
@@ -326,7 +326,7 @@ | |
} | |
#adminmenu .wp-menu-image img { | |
- padding: 9px 0 0; | |
+ padding: 9px 0 0 0; | |
opacity: .6; | |
filter: alpha(opacity=60) | |
} | |
@@ -419,7 +419,7 @@ | |
ul#adminmenu a.wp-has-current-submenu:after, | |
ul#adminmenu>li.current>a.current:after { | |
right: 0; | |
- border: 8px solid transparent; | |
+ border: solid 8px transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
@@ -472,7 +472,7 @@ | |
#adminmenu li.wp-menu-separator { | |
height: 5px; | |
padding: 0; | |
- margin: 0 0 6px; | |
+ margin: 0 0 6px 0; | |
cursor: inherit | |
} | |
@@ -491,7 +491,7 @@ | |
#adminmenu li.current, | |
.folded #adminmenu li.wp-menu-open { | |
- border: 0 | |
+ border: 0 none | |
} | |
#adminmenu .awaiting-mod, | |
@@ -570,7 +570,7 @@ | |
position: relative; | |
top: 7px; | |
text-align: center; | |
- font: 400 20px/1 dashicons !important; | |
+ font: normal 20px/1 dashicons !important; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -592,12 +592,15 @@ | |
transition: all .1s ease-in-out | |
} | |
-.customize-support #menu-appearance a[href="themes.php?page=custom-header"], | |
-.customize-support #menu-appearance a[href="themes.php?page=custom-background"], | |
li#wp-admin-bar-menu-toggle { | |
display: none | |
} | |
+.customize-support #menu-appearance a[href="themes.php?page=custom-background"], | |
+.customize-support #menu-appearance a[href="themes.php?page=custom-header"] { | |
+ display: none | |
+} | |
+ | |
@media only screen and (max-width:960px) { | |
.auto-fold #wpcontent, | |
@@ -666,7 +669,7 @@ | |
} | |
.auto-fold #adminmenu li.wp-menu-open { | |
- border: 0 | |
+ border: 0 none | |
} | |
.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { | |
@@ -850,7 +853,7 @@ | |
content: "\f228"; | |
display: inline-block; | |
float: left; | |
- font: 400 40px/45px dashicons; | |
+ font: normal 40px/45px dashicons; | |
vertical-align: middle; | |
outline: 0; | |
margin: 0; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/admin-menu-rtl.min.css build-unminified/wp-admin/css/admin-menu-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/admin-menu-rtl.min.css 2018-10-05 18:06:58.454582475 -0500 | |
+++ build-unminified/wp-admin/css/admin-menu-rtl.min.css 2018-10-05 18:07:15.174697683 -0500 | |
@@ -31,14 +31,14 @@ | |
.icon16 { | |
height: 18px; | |
width: 18px; | |
- padding: 6px; | |
+ padding: 6px 6px; | |
margin: -6px -8px 0 0; | |
float: right | |
} | |
.icon16:before { | |
color: #82878c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
padding: 6px 0; | |
height: 34px; | |
@@ -216,7 +216,7 @@ | |
right: auto; | |
left: auto; | |
bottom: auto; | |
- border: 0; | |
+ border: 0 none; | |
margin-top: 0; | |
box-shadow: none; | |
background-color: #32373c | |
@@ -326,7 +326,7 @@ | |
} | |
#adminmenu .wp-menu-image img { | |
- padding: 9px 0 0; | |
+ padding: 9px 0 0 0; | |
opacity: .6; | |
filter: alpha(opacity=60) | |
} | |
@@ -419,7 +419,7 @@ | |
ul#adminmenu a.wp-has-current-submenu:after, | |
ul#adminmenu>li.current>a.current:after { | |
left: 0; | |
- border: 8px solid transparent; | |
+ border: solid 8px transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
@@ -472,7 +472,7 @@ | |
#adminmenu li.wp-menu-separator { | |
height: 5px; | |
padding: 0; | |
- margin: 0 0 6px; | |
+ margin: 0 0 6px 0; | |
cursor: inherit | |
} | |
@@ -491,7 +491,7 @@ | |
#adminmenu li.current, | |
.folded #adminmenu li.wp-menu-open { | |
- border: 0 | |
+ border: 0 none | |
} | |
#adminmenu .awaiting-mod, | |
@@ -570,7 +570,7 @@ | |
position: relative; | |
top: 7px; | |
text-align: center; | |
- font: 400 20px/1 dashicons !important; | |
+ font: normal 20px/1 dashicons !important; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -592,12 +592,15 @@ | |
transition: all .1s ease-in-out | |
} | |
-.customize-support #menu-appearance a[href="themes.php?page=custom-header"], | |
-.customize-support #menu-appearance a[href="themes.php?page=custom-background"], | |
li#wp-admin-bar-menu-toggle { | |
display: none | |
} | |
+.customize-support #menu-appearance a[href="themes.php?page=custom-background"], | |
+.customize-support #menu-appearance a[href="themes.php?page=custom-header"] { | |
+ display: none | |
+} | |
+ | |
@media only screen and (max-width:960px) { | |
.auto-fold #wpcontent, | |
@@ -666,7 +669,7 @@ | |
} | |
.auto-fold #adminmenu li.wp-menu-open { | |
- border: 0 | |
+ border: 0 none | |
} | |
.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { | |
@@ -850,7 +853,7 @@ | |
content: "\f228"; | |
display: inline-block; | |
float: right; | |
- font: 400 40px/45px dashicons; | |
+ font: normal 40px/45px dashicons; | |
vertical-align: middle; | |
outline: 0; | |
margin: 0; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/code-editor.min.css build-unminified/wp-admin/css/code-editor.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/code-editor.min.css 2018-10-05 18:07:02.238608544 -0500 | |
+++ build-unminified/wp-admin/css/code-editor.min.css 2018-10-05 18:07:18.974723874 -0500 | |
@@ -16,13 +16,13 @@ | |
} | |
.wrap [class*=CodeMirror-lint-marker]:before { | |
- font: 400 18px/1 dashicons; | |
+ font: normal 18px/1 dashicons; | |
position: relative; | |
top: -2px | |
} | |
.wp-core-ui [class*=CodeMirror-lint-message]:before { | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
left: 16px; | |
position: absolute | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/code-editor-rtl.min.css build-unminified/wp-admin/css/code-editor-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/code-editor-rtl.min.css 2018-10-05 18:06:59.906592478 -0500 | |
+++ build-unminified/wp-admin/css/code-editor-rtl.min.css 2018-10-05 18:07:16.650707856 -0500 | |
@@ -16,13 +16,13 @@ | |
} | |
.wrap [class*=CodeMirror-lint-marker]:before { | |
- font: 400 18px/1 dashicons; | |
+ font: normal 18px/1 dashicons; | |
position: relative; | |
top: -2px | |
} | |
.wp-core-ui [class*=CodeMirror-lint-message]:before { | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
right: 16px; | |
position: absolute | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/color-picker.min.css build-unminified/wp-admin/css/color-picker.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/color-picker.min.css 2018-10-05 18:07:04.502624142 -0500 | |
+++ build-unminified/wp-admin/css/color-picker.min.css 2018-10-05 18:07:21.254739590 -0500 | |
@@ -53,11 +53,15 @@ | |
transform: none !important | |
} | |
-.wp-picker-input-wrap label, | |
.wp-picker-open+.wp-picker-input-wrap { | |
display: inline-block; | |
vertical-align: top | |
} | |
+ | |
+.wp-picker-input-wrap label { | |
+ display: inline-block; | |
+ vertical-align: top | |
+} | |
.form-table .wp-picker-input-wrap label { | |
margin: 0 !important | |
diff -ru build-before-upgrades-unminified/wp-admin/css/color-picker-rtl.min.css build-unminified/wp-admin/css/color-picker-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/color-picker-rtl.min.css 2018-10-05 18:07:02.014607000 -0500 | |
+++ build-unminified/wp-admin/css/color-picker-rtl.min.css 2018-10-05 18:07:18.738722248 -0500 | |
@@ -53,11 +53,15 @@ | |
transform: none !important | |
} | |
-.wp-picker-input-wrap label, | |
.wp-picker-open+.wp-picker-input-wrap { | |
display: inline-block; | |
vertical-align: top | |
} | |
+ | |
+.wp-picker-input-wrap label { | |
+ display: inline-block; | |
+ vertical-align: top | |
+} | |
.form-table .wp-picker-input-wrap label { | |
margin: 0 !important | |
diff -ru build-before-upgrades-unminified/wp-admin/css/colors/blue/colors.min.css build-unminified/wp-admin/css/colors/blue/colors.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/colors/blue/colors.min.css 2018-10-05 18:07:01.018600139 -0500 | |
+++ build-unminified/wp-admin/css/colors/blue/colors.min.css 2018-10-05 18:07:17.766715548 -0500 | |
@@ -371,7 +371,10 @@ | |
background-color: #6eb9d4 | |
} | |
-#wpadminbar #wp-admin-bar-user-info .display-name, | |
+#wpadminbar #wp-admin-bar-user-info .display-name { | |
+ color: #fff | |
+} | |
+ | |
#wpadminbar #wp-admin-bar-user-info a:hover .display-name { | |
color: #fff | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/colors/blue/colors-rtl.min.css build-unminified/wp-admin/css/colors/blue/colors-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/colors/blue/colors-rtl.min.css 2018-10-05 18:07:00.910599394 -0500 | |
+++ build-unminified/wp-admin/css/colors/blue/colors-rtl.min.css 2018-10-05 18:07:17.658714804 -0500 | |
@@ -371,7 +371,10 @@ | |
background-color: #6eb9d4 | |
} | |
-#wpadminbar #wp-admin-bar-user-info .display-name, | |
+#wpadminbar #wp-admin-bar-user-info .display-name { | |
+ color: #fff | |
+} | |
+ | |
#wpadminbar #wp-admin-bar-user-info a:hover .display-name { | |
color: #fff | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/colors/light/colors.min.css build-unminified/wp-admin/css/colors/light/colors.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/colors/light/colors.min.css 2018-10-05 18:07:01.242601682 -0500 | |
+++ build-unminified/wp-admin/css/colors/light/colors.min.css 2018-10-05 18:07:17.994717119 -0500 | |
@@ -428,6 +428,11 @@ | |
color: #04a4cc | |
} | |
+.theme-filter.current, | |
+.theme-section.current { | |
+ border-bottom-color: #e5e5e5 | |
+} | |
+ | |
body.more-filters-opened .more-filters { | |
color: #333; | |
background-color: #e5e5e5 | |
diff -ru build-before-upgrades-unminified/wp-admin/css/colors/light/colors-rtl.min.css build-unminified/wp-admin/css/colors/light/colors-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/colors/light/colors-rtl.min.css 2018-10-05 18:07:01.126600883 -0500 | |
+++ build-unminified/wp-admin/css/colors/light/colors-rtl.min.css 2018-10-05 18:07:17.878716320 -0500 | |
@@ -428,6 +428,11 @@ | |
color: #04a4cc | |
} | |
+.theme-filter.current, | |
+.theme-section.current { | |
+ border-bottom-color: #e5e5e5 | |
+} | |
+ | |
body.more-filters-opened .more-filters { | |
color: #333; | |
background-color: #e5e5e5 | |
diff -ru build-before-upgrades-unminified/wp-admin/css/common.min.css build-unminified/wp-admin/css/common.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/common.min.css 2018-10-05 18:06:58.602583495 -0500 | |
+++ build-unminified/wp-admin/css/common.min.css 2018-10-05 18:07:15.346698868 -0500 | |
@@ -1,37 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.button.updated-message, | |
-a { | |
- transition-property: border, background, color; | |
- transition-duration: .05s; | |
- transition-timing-function: ease-in-out | |
-} | |
- | |
-#ajax-loading, | |
-.ajax-feedback, | |
-.ajax-loading, | |
-.imgedit-wait-spin, | |
-.list-ajax-loading, | |
-.spinner, | |
-.wp-header-end { | |
- visibility: hidden | |
-} | |
- | |
-.filter-group, | |
-.postbox-container .meta-box-sortables, | |
-.wp-filter, | |
-html.wp-toolbar { | |
- box-sizing: border-box | |
-} | |
- | |
-#docs-list, | |
-#plugin-information .section, | |
-#template textarea, | |
-.code, | |
-.ltr, | |
-code { | |
- direction: ltr | |
-} | |
- | |
#wpwrap { | |
height: auto; | |
min-height: 100%; | |
@@ -126,12 +93,6 @@ | |
float: right | |
} | |
-#publishing-action .spinner, | |
-#save-post, | |
-.subsubsub { | |
- float: left | |
-} | |
- | |
.textleft { | |
text-align: left | |
} | |
@@ -166,13 +127,6 @@ | |
word-wrap: normal !important | |
} | |
-#templateside, | |
-.misc-pub-filename, | |
-.pre, | |
-.widefat * { | |
- word-wrap: break-word | |
-} | |
- | |
.screen-reader-shortcut { | |
position: absolute; | |
top: -1000em | |
@@ -282,7 +236,10 @@ | |
} | |
a { | |
- color: #0073aa | |
+ color: #0073aa; | |
+ transition-property: border, background, color; | |
+ transition-duration: .05s; | |
+ transition-timing-function: ease-in-out | |
} | |
a, | |
@@ -302,12 +259,6 @@ | |
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8) | |
} | |
-h1, | |
-h2, | |
-h3 { | |
- color: #23282d | |
-} | |
- | |
.ie8 a:focus { | |
outline: #5b9dd9 solid 1px | |
} | |
@@ -357,12 +308,14 @@ | |
} | |
h1 { | |
+ color: #23282d; | |
font-size: 2em; | |
margin: .67em 0 | |
} | |
h2, | |
h3 { | |
+ color: #23282d; | |
font-size: 1.3em; | |
margin: 1em 0 | |
} | |
@@ -403,15 +356,15 @@ | |
} | |
ul.ul-disc { | |
- list-style: disc | |
+ list-style: disc outside | |
} | |
ul.ul-square { | |
- list-style: square | |
+ list-style: square outside | |
} | |
ol.ol-decimal { | |
- list-style: decimal | |
+ list-style: decimal outside | |
} | |
ol.ol-decimal, | |
@@ -426,15 +379,20 @@ | |
margin: 0 0 .5em | |
} | |
+.ltr { | |
+ direction: ltr | |
+} | |
+ | |
.code, | |
code { | |
font-family: Consolas, Monaco, monospace; | |
+ direction: ltr; | |
unicode-bidi: embed | |
} | |
code, | |
kbd { | |
- padding: 3px 5px 2px; | |
+ padding: 3px 5px 2px 5px; | |
margin: 0 1px; | |
background: #eaeaea; | |
background: rgba(0, 0, 0, .07); | |
@@ -446,6 +404,7 @@ | |
margin: 8px 0 0; | |
padding: 0; | |
font-size: 13px; | |
+ float: left; | |
color: #666 | |
} | |
@@ -480,6 +439,10 @@ | |
margin: 0 | |
} | |
+.widefat * { | |
+ word-wrap: break-word | |
+} | |
+ | |
.widefat a, | |
.widefat button.button-link { | |
text-decoration: none | |
@@ -540,6 +503,10 @@ | |
vertical-align: top | |
} | |
+.widefat tbody th.check-column { | |
+ padding: 9px 0 22px | |
+} | |
+ | |
.updates-table tbody td.check-column, | |
.widefat tbody th.check-column, | |
.widefat tfoot td.check-column, | |
@@ -585,7 +552,7 @@ | |
font-size: 23px; | |
font-weight: 400; | |
margin: 0; | |
- padding: 9px 0 4px; | |
+ padding: 9px 0 4px 0; | |
line-height: 29px | |
} | |
@@ -595,6 +562,7 @@ | |
} | |
.wp-header-end { | |
+ visibility: hidden; | |
margin: -2px 0 0 | |
} | |
@@ -635,7 +603,7 @@ | |
.wrap .add-new-h2:hover, | |
.wrap .page-title-action:hover { | |
- border-color: #008EC2; | |
+ border-color: #008ec2; | |
background: #00a0d2; | |
color: #fff | |
} | |
@@ -644,12 +612,6 @@ | |
color: #124964 | |
} | |
-.ac_match, | |
-.highlight, | |
-.subsubsub a.current { | |
- color: #000 | |
-} | |
- | |
.wrap .page-title-action:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
@@ -676,6 +638,11 @@ | |
background-color: #ccf3fa | |
} | |
+.ac_match, | |
+.subsubsub a.current { | |
+ color: #000 | |
+} | |
+ | |
.alternate, | |
.striped>tbody>:nth-child(odd), | |
ul.striped>:nth-child(odd) { | |
@@ -688,7 +655,8 @@ | |
} | |
.highlight { | |
- background-color: #e4f2fd | |
+ background-color: #e4f2fd; | |
+ color: #000 | |
} | |
.wp-ui-primary { | |
@@ -760,11 +728,7 @@ | |
.postbox .hndle, | |
.stuffbox .hndle { | |
- border-bottom: 1px solid #eee; | |
- -webkit-user-select: none; | |
- -moz-user-select: none; | |
- -ms-user-select: none; | |
- user-select: none | |
+ border-bottom: 1px solid #eee | |
} | |
.quicktags, | |
@@ -786,7 +750,7 @@ | |
color: #72777c; | |
content: "\f153"; | |
display: block; | |
- font: 400 16px/20px dashicons; | |
+ font: normal 16px/20px dashicons; | |
speak: none; | |
height: 20px; | |
text-align: center; | |
@@ -837,14 +801,8 @@ | |
} | |
.pre { | |
- white-space: pre-wrap | |
-} | |
- | |
-#namediv td.first, | |
-.nav-tab, | |
-.no-break, | |
-.star-rating { | |
- white-space: nowrap | |
+ white-space: pre-wrap; | |
+ word-wrap: break-word | |
} | |
.howto { | |
@@ -858,6 +816,10 @@ | |
font-style: italic | |
} | |
+.no-break { | |
+ white-space: nowrap | |
+} | |
+ | |
hr { | |
border: 0; | |
border-top: 1px solid #ddd; | |
@@ -925,6 +887,10 @@ | |
line-height: 23px | |
} | |
+#publishing-action .spinner { | |
+ float: left | |
+} | |
+ | |
#misc-publishing-actions { | |
padding: 6px 0 0 | |
} | |
@@ -933,11 +899,19 @@ | |
padding: 6px 10px 8px | |
} | |
+.misc-pub-filename { | |
+ word-wrap: break-word | |
+} | |
+ | |
#minor-publishing-actions { | |
- padding: 10px 10px 0; | |
+ padding: 10px 10px 0 10px; | |
text-align: right | |
} | |
+#save-post { | |
+ float: left | |
+} | |
+ | |
.preview { | |
float: right | |
} | |
@@ -970,6 +944,7 @@ | |
.wp-filter { | |
display: inline-block; | |
position: relative; | |
+ box-sizing: border-box; | |
margin: 12px 0 25px; | |
padding: 0 10px; | |
width: 100%; | |
@@ -1010,22 +985,22 @@ | |
margin-right: 20px | |
} | |
-.filter-links li>a, | |
-.wp-filter .search-form.search-plugins { | |
- display: inline-block | |
-} | |
- | |
.filter-items { | |
float: left | |
} | |
-.filter-links, | |
+.filter-links { | |
+ display: inline-block; | |
+ margin: 0 | |
+} | |
+ | |
.filter-links li { | |
display: inline-block; | |
margin: 0 | |
} | |
.filter-links li>a { | |
+ display: inline-block; | |
margin: 0 10px; | |
padding: 15px 0; | |
border-bottom: 4px solid #fff; | |
@@ -1067,6 +1042,10 @@ | |
vertical-align: top | |
} | |
+.wp-filter .search-form.search-plugins { | |
+ display: inline-block | |
+} | |
+ | |
.wp-filter .button.drawer-toggle { | |
margin: 10px 9px 0; | |
padding: 0 10px 0 6px; | |
@@ -1081,7 +1060,7 @@ | |
content: "\f111"; | |
margin: 0 5px 0 0; | |
color: #72777c; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
vertical-align: text-bottom; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -1140,12 +1119,6 @@ | |
color: #fff | |
} | |
-.filter-group, | |
-.filtered-by .tag { | |
- border: 1px solid #e5e5e5; | |
- box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
-} | |
- | |
.show-filters .wp-filter .drawer-toggle:focus, | |
.show-filters .wp-filter .drawer-toggle:hover { | |
background: #2ea2cc | |
@@ -1156,12 +1129,15 @@ | |
} | |
.filter-group { | |
+ box-sizing: border-box; | |
position: relative; | |
float: left; | |
margin: 0 1% 0 0; | |
padding: 20px 10px 10px; | |
width: 24%; | |
- background: #fff | |
+ background: #fff; | |
+ border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
} | |
.filter-group legend { | |
@@ -1242,6 +1218,8 @@ | |
.filtered-by .tag { | |
margin: 0 5px; | |
padding: 4px 8px; | |
+ border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
background: #fff; | |
font-size: 11px | |
} | |
@@ -1404,7 +1382,7 @@ | |
} | |
.ie8 .notice-dismiss:focus { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.notice-success, | |
@@ -1450,7 +1428,7 @@ | |
.updated-message p:before, | |
.updating-message p:before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
vertical-align: top | |
@@ -1528,7 +1506,6 @@ | |
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1) | |
} | |
-#screen-meta, | |
ul#dismissed-updates { | |
display: none | |
} | |
@@ -1540,7 +1517,7 @@ | |
form.upgrade .hint { | |
font-style: italic; | |
font-size: 85%; | |
- margin: -.5em 0 2em | |
+ margin: -.5em 0 2em 0 | |
} | |
.update-php .spinner { | |
@@ -1548,6 +1525,14 @@ | |
margin: -4px 0 | |
} | |
+#ajax-loading, | |
+.ajax-feedback, | |
+.ajax-loading, | |
+.imgedit-wait-spin, | |
+.list-ajax-loading { | |
+ visibility: hidden | |
+} | |
+ | |
#ajax-response.alignleft { | |
margin-left: 2em | |
} | |
@@ -1567,6 +1552,12 @@ | |
color: #66c6e4 | |
} | |
+.button.updated-message { | |
+ transition-property: border, background, color; | |
+ transition-duration: .05s; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
@media aural { | |
.button.installed:before, | |
@@ -1600,6 +1591,7 @@ | |
} | |
#screen-meta { | |
+ display: none; | |
margin: 0 20px -1px 0; | |
position: relative; | |
background-color: #fff; | |
@@ -1648,7 +1640,7 @@ | |
#screen-meta-links .show-settings:after { | |
right: 0; | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0 5px 0 0; | |
@@ -1661,12 +1653,6 @@ | |
color: #72777c | |
} | |
-#templateside ul li a, | |
-.contextual-help-tabs a, | |
-.nav-tab { | |
- text-decoration: none | |
-} | |
- | |
#screen-meta-links .screen-meta-active:after { | |
content: "\f142" | |
} | |
@@ -1693,13 +1679,6 @@ | |
font-weight: 600 | |
} | |
-.hndle a, | |
-.widefat tfoot td, | |
-.widefat th, | |
-.widefat thead td { | |
- font-weight: 400 | |
-} | |
- | |
.ie8 #screen-options-wrap legend { | |
color: inherit | |
} | |
@@ -1807,6 +1786,7 @@ | |
display: block; | |
padding: 5px 5px 5px 12px; | |
line-height: 18px; | |
+ text-decoration: none; | |
border: 1px solid transparent; | |
border-right: none; | |
border-left: none | |
@@ -1857,7 +1837,8 @@ | |
} | |
html.wp-toolbar { | |
- padding-top: 32px | |
+ padding-top: 32px; | |
+ box-sizing: border-box | |
} | |
.widefat td, | |
@@ -1865,13 +1846,16 @@ | |
color: #555 | |
} | |
-.widefat ol, | |
-.widefat p, | |
+.widefat tfoot td, | |
+.widefat th, | |
+.widefat thead td { | |
+ font-weight: 400 | |
+} | |
+ | |
.widefat tfoot tr td, | |
.widefat tfoot tr th, | |
.widefat thead tr td, | |
-.widefat thead tr th, | |
-.widefat ul { | |
+.widefat thead tr th { | |
color: #32373c | |
} | |
@@ -1879,12 +1863,18 @@ | |
margin: 2px 0 .8em | |
} | |
+.widefat ol, | |
+.widefat p, | |
+.widefat ul { | |
+ color: #32373c | |
+} | |
+ | |
.widefat .column-comment p { | |
margin: .6em 0 | |
} | |
.widefat .column-comment ul { | |
- list-style: outside; | |
+ list-style: initial; | |
margin-left: 2em | |
} | |
@@ -1892,6 +1882,10 @@ | |
float: left | |
} | |
+.postbox-container .meta-box-sortables { | |
+ box-sizing: border-box | |
+} | |
+ | |
#wpbody-content .metabox-holder { | |
padding-top: 10px | |
} | |
@@ -1922,7 +1916,7 @@ | |
.columns-2 #postbox-container-4 .empty-container, | |
.columns-3 #postbox-container-4 .empty-container, | |
.metabox-holder.columns-1 .postbox-container .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1945,7 +1939,7 @@ | |
@media only screen and (max-width:799px) { | |
#wpbody-content .metabox-holder .postbox-container .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1957,24 +1951,8 @@ | |
} | |
.hndle a { | |
- font-size: 11px | |
-} | |
- | |
-#adminmenu .wp-submenu li.current, | |
-#adminmenu .wp-submenu li.current a, | |
-#adminmenu .wp-submenu li.current a:hover, | |
-#dashboard_right_now .versions .b, | |
-#ed_reply_toolbar #ed_reply_strong, | |
-#pass-strength-result.short, | |
-#pass-strength-result.strong, | |
-#post-status-display, | |
-#post-visibility-display, | |
-.feature-filter .feature-name, | |
-.item-controls .item-order a, | |
-.media-item .percent, | |
-.nav-tab, | |
-.plugins .name { | |
- font-weight: 600 | |
+ font-size: 11px; | |
+ font-weight: 400 | |
} | |
.postbox .handlediv { | |
@@ -2005,6 +1983,14 @@ | |
line-height: 1 | |
} | |
+.postbox .hndle, | |
+.stuffbox .hndle { | |
+ -webkit-user-select: none; | |
+ -moz-user-select: none; | |
+ -ms-user-select: none; | |
+ user-select: none | |
+} | |
+ | |
.postbox .inside, | |
.stuffbox .inside { | |
padding: 0 12px 12px; | |
@@ -2043,6 +2029,22 @@ | |
padding: 0 10px 0 0 | |
} | |
+#adminmenu .wp-submenu li.current, | |
+#adminmenu .wp-submenu li.current a, | |
+#adminmenu .wp-submenu li.current a:hover, | |
+#dashboard_right_now .versions .b, | |
+#ed_reply_toolbar #ed_reply_strong, | |
+#pass-strength-result.short, | |
+#pass-strength-result.strong, | |
+#post-status-display, | |
+#post-visibility-display, | |
+.feature-filter .feature-name, | |
+.item-controls .item-order a, | |
+.media-item .percent, | |
+.plugins .name { | |
+ font-weight: 600 | |
+} | |
+ | |
#wpfooter { | |
position: absolute; | |
bottom: 0; | |
@@ -2070,8 +2072,11 @@ | |
padding: 5px 10px; | |
font-size: 14px; | |
line-height: 24px; | |
+ font-weight: 600; | |
background: #e5e5e5; | |
- color: #555 | |
+ color: #555; | |
+ text-decoration: none; | |
+ white-space: nowrap | |
} | |
.nav-tab-small .nav-tab, | |
@@ -2132,6 +2137,7 @@ | |
background: url(../images/spinner.gif) no-repeat; | |
background-size: 20px 20px; | |
display: inline-block; | |
+ visibility: hidden; | |
float: right; | |
vertical-align: middle; | |
opacity: .7; | |
@@ -2178,6 +2184,10 @@ | |
line-height: 21px | |
} | |
+#templateside ul li a { | |
+ text-decoration: none | |
+} | |
+ | |
.plugin-install #description, | |
.plugin-install-network #description { | |
width: 60% | |
@@ -2203,13 +2213,6 @@ | |
display: none | |
} | |
-#howto, | |
-.importer-action, | |
-.importer-desc, | |
-.importer-title { | |
- display: block | |
-} | |
- | |
.lp-show-latest .lp-error p, | |
.lp-show-latest p:last-child { | |
display: block | |
@@ -2227,7 +2230,8 @@ | |
#howto { | |
font-size: 11px; | |
- margin: 0 5px | |
+ margin: 0 5px; | |
+ display: block | |
} | |
.importers { | |
@@ -2248,9 +2252,10 @@ | |
max-width: 500px | |
} | |
-.post-categories, | |
-.post-categories li { | |
- display: inline | |
+.importer-action, | |
+.importer-desc, | |
+.importer-title { | |
+ display: block | |
} | |
.importer-title { | |
@@ -2289,7 +2294,8 @@ | |
} | |
#namediv td.first { | |
- width: 10px | |
+ width: 10px; | |
+ white-space: nowrap | |
} | |
#namediv input { | |
@@ -2304,18 +2310,12 @@ | |
margin-bottom: 0 !important | |
} | |
-.checkbox, | |
-.post-categories, | |
-.zerosize, | |
-fieldset { | |
- margin: 0; | |
- padding: 0 | |
-} | |
- | |
.zerosize { | |
height: 0; | |
width: 0; | |
+ margin: 0; | |
border: 0; | |
+ padding: 0; | |
overflow: hidden; | |
position: absolute | |
} | |
@@ -2326,26 +2326,44 @@ | |
} | |
.checkbox { | |
- border: none | |
+ border: none; | |
+ margin: 0; | |
+ padding: 0 | |
} | |
fieldset { | |
- border: 0 | |
+ border: 0; | |
+ padding: 0; | |
+ margin: 0 | |
+} | |
+ | |
+.post-categories { | |
+ display: inline; | |
+ margin: 0; | |
+ padding: 0 | |
+} | |
+ | |
+.post-categories li { | |
+ display: inline | |
} | |
div.star-holder { | |
position: relative; | |
height: 17px; | |
width: 100px; | |
- background: url(../images/stars.png?ver=20121108) bottom left repeat-x | |
+ background: url(../images/stars.png?ver=20121108) repeat-x bottom left | |
} | |
div.star-holder .star-rating { | |
- background: url(../images/stars.png?ver=20121108) top left repeat-x; | |
+ background: url(../images/stars.png?ver=20121108) repeat-x top left; | |
height: 17px; | |
float: left | |
} | |
+.star-rating { | |
+ white-space: nowrap | |
+} | |
+ | |
.star-rating .star { | |
display: inline-block; | |
width: 20px; | |
@@ -2525,8 +2543,9 @@ | |
bottom: 0; | |
left: 0; | |
margin-right: 250px; | |
- padding: 10px 26px 99999px; | |
- margin-bottom: -99939px | |
+ padding: 10px 26px; | |
+ margin-bottom: -99939px; | |
+ padding-bottom: 99999px | |
} | |
#section-holder .updated { | |
@@ -2538,8 +2557,9 @@ | |
position: relative; | |
top: 0; | |
right: 0; | |
- padding: 16px 16px 99999px; | |
+ padding: 16px; | |
margin-bottom: -99939px; | |
+ padding-bottom: 99999px; | |
width: 217px; | |
border-left: 1px solid #ddd; | |
background: #f3f3f3; | |
@@ -2615,6 +2635,12 @@ | |
vertical-align: middle | |
} | |
+#plugin-information .fyi ul.contributors li { | |
+ display: inline-block; | |
+ margin-right: 8px; | |
+ vertical-align: middle | |
+} | |
+ | |
#plugin-information .fyi ul.contributors li img { | |
vertical-align: middle; | |
margin-right: 4px | |
@@ -2631,6 +2657,10 @@ | |
background: #f3f3f3 | |
} | |
+#plugin-information .section { | |
+ direction: ltr | |
+} | |
+ | |
#plugin-information .section ol, | |
#plugin-information .section ul { | |
list-style-type: disc; | |
@@ -2727,9 +2757,7 @@ | |
} | |
@media screen and (max-width:771px) { | |
- | |
- #plugin-information-title.with-banner, | |
- #plugin-information-title.with-banner div.vignette { | |
+ #plugin-information-title.with-banner { | |
height: 100px | |
} | |
@@ -2740,6 +2768,10 @@ | |
max-width: 85% | |
} | |
+ #plugin-information-title.with-banner div.vignette { | |
+ height: 100px | |
+ } | |
+ | |
#plugin-information-tabs { | |
overflow: hidden; | |
padding: 0; | |
@@ -2791,22 +2823,12 @@ | |
top: 50%; | |
z-index: -1; | |
margin: -10px 0 0 -10px; | |
- background: url(../images/spinner.gif) center no-repeat #fcfcfc; | |
+ background: #fcfcfc url(../images/spinner.gif) no-repeat center; | |
background-size: 20px 20px; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0) | |
} | |
-.plugin-details-modal #TB_ajaxWindowTitle, | |
-.plugin-details-modal .tb-close-icon { | |
- display: none | |
-} | |
- | |
-.tree-folder, | |
-[role=treeitem] li { | |
- position: relative | |
-} | |
- | |
@media print, | |
(-webkit-min-device-pixel-ratio:1.25), | |
(min-resolution:120dpi) { | |
@@ -2820,6 +2842,10 @@ | |
height: 1px | |
} | |
+.plugin-details-modal #TB_ajaxWindowTitle { | |
+ display: none | |
+} | |
+ | |
.plugin-details-modal #TB_closeWindowButton { | |
left: auto; | |
right: -30px; | |
@@ -2833,9 +2859,13 @@ | |
box-shadow: none | |
} | |
+.plugin-details-modal .tb-close-icon { | |
+ display: none | |
+} | |
+ | |
.plugin-details-modal #TB_closeWindowButton:after { | |
content: "\f335"; | |
- font: 400 32px/29px dashicons; | |
+ font: normal 32px/29px dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2858,7 +2888,7 @@ | |
.sidebar-name .toggle-indicator:before { | |
content: "\f142"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
@@ -2879,15 +2909,6 @@ | |
text-indent: -1px | |
} | |
-#template .CodeMirror, | |
-#template textarea, | |
-#templateside>ul { | |
- box-sizing: border-box; | |
- min-height: 60vh; | |
- height: calc(100vh - 295px); | |
- border: 1px solid #ddd | |
-} | |
- | |
.rtl.js .postbox .handlediv .toggle-indicator:before { | |
text-indent: 1px | |
} | |
@@ -2926,7 +2947,11 @@ | |
#template .CodeMirror, | |
#template textarea { | |
- width: 100% | |
+ width: 100%; | |
+ min-height: 60vh; | |
+ height: calc(100vh - 295px); | |
+ border: 1px solid #ddd; | |
+ box-sizing: border-box | |
} | |
#templateside>h2 { | |
@@ -2942,10 +2967,14 @@ | |
} | |
#templateside>ul { | |
+ box-sizing: border-box; | |
margin-top: 0; | |
overflow: auto; | |
padding: 0; | |
+ min-height: 60vh; | |
+ height: calc(100vh - 295px); | |
background-color: #f7f7f7; | |
+ border: 1px solid #ddd; | |
border-left: none | |
} | |
@@ -2998,7 +3027,12 @@ | |
} | |
.tree-folder { | |
- margin: 0 | |
+ margin: 0; | |
+ position: relative | |
+} | |
+ | |
+[role=treeitem] li { | |
+ position: relative | |
} | |
.tree-folder .tree-folder::after { | |
@@ -3063,6 +3097,11 @@ | |
font-weight: 600 | |
} | |
+#docs-list, | |
+#template textarea { | |
+ direction: ltr | |
+} | |
+ | |
.fileedit-sub #plugin, | |
.fileedit-sub #theme { | |
max-width: 40% | |
@@ -3101,7 +3140,8 @@ | |
#templateside { | |
float: right; | |
- width: 16em | |
+ width: 16em; | |
+ word-wrap: break-word | |
} | |
#postcustomstuff p.submit { | |
@@ -3128,7 +3168,7 @@ | |
} | |
#templateside li.howto { | |
- padding: 6px 12px 12px | |
+ padding: 6px 12px 12px 12px | |
} | |
.theme-editor-php .highlight { | |
@@ -3171,7 +3211,7 @@ | |
.nav-menus-php .item-edit:before, | |
.widget-top .widget-action .toggle-indicator:before { | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
@@ -3494,7 +3534,7 @@ | |
div.star-holder, | |
div.star-holder .star-rating { | |
- background: url(../images/stars-2x.png?ver=20121108) bottom left repeat-x; | |
+ background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom left; | |
background-size: 21px 37px | |
} | |
@@ -3520,14 +3560,6 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #col-left, | |
- #col-right, | |
- #templateside { | |
- float: none; | |
- width: auto | |
- } | |
- | |
html.wp-toolbar { | |
padding-top: 46px | |
} | |
@@ -3556,6 +3588,12 @@ | |
margin-left: 0 | |
} | |
+ #col-left, | |
+ #col-right { | |
+ float: none; | |
+ width: auto | |
+ } | |
+ | |
#col-left .col-wrap, | |
#col-right .col-wrap { | |
padding: 0 | |
@@ -3568,11 +3606,6 @@ | |
display: none !important | |
} | |
- #documentation label[for=docs-list], | |
- .fileedit-sub .alignright label { | |
- display: block | |
- } | |
- | |
.wrap h1.wp-heading-inline { | |
margin-bottom: .5em | |
} | |
@@ -3590,7 +3623,7 @@ | |
.notice, | |
.wrap div.error, | |
.wrap div.updated { | |
- margin: 20px 0 10px; | |
+ margin: 20px 0 10px 0; | |
padding: 5px 10px; | |
font-size: 14px; | |
line-height: 175% | |
@@ -3637,6 +3670,16 @@ | |
margin-bottom: 15px | |
} | |
+ #template .CodeMirror, | |
+ #template textarea { | |
+ box-sizing: border-box | |
+ } | |
+ | |
+ #templateside { | |
+ float: none; | |
+ width: auto | |
+ } | |
+ | |
#templateside>ul { | |
border-left: 1px solid #ddd | |
} | |
@@ -3669,7 +3712,6 @@ | |
#template .CodeMirror, | |
#template textarea { | |
- box-sizing: border-box; | |
width: 100% | |
} | |
@@ -3682,12 +3724,6 @@ | |
padding: 5px | |
} | |
- #documentation input[type=button], | |
- .fileedit-sub input[type=submit] { | |
- margin-bottom: 0; | |
- padding: 8px 18px | |
- } | |
- | |
.tree-folder .tree-folder::after, | |
.tree-folder>li::after, | |
.tree-folder>li::before { | |
@@ -3722,22 +3758,43 @@ | |
text-align: left | |
} | |
+ .fileedit-sub .alignright label { | |
+ display: block | |
+ } | |
+ | |
.fileedit-sub #plugin, | |
.fileedit-sub #theme { | |
margin-left: 0; | |
max-width: 70% | |
} | |
+ .fileedit-sub input[type=submit] { | |
+ margin-bottom: 0; | |
+ padding: 8px 18px | |
+ } | |
+ | |
+ #documentation label[for=docs-list] { | |
+ display: block | |
+ } | |
+ | |
#documentation select[name=docs-list] { | |
margin-left: 0; | |
max-width: 60% | |
} | |
- #comments-form .checkforspam, | |
+ #documentation input[type=button] { | |
+ margin-bottom: 0; | |
+ padding: 8px 18px | |
+ } | |
+ | |
#wpfooter { | |
display: none | |
} | |
+ #comments-form .checkforspam { | |
+ display: none | |
+ } | |
+ | |
.edit-comment-author { | |
margin: 2px 0 0 | |
} | |
@@ -3759,9 +3816,7 @@ | |
} | |
@media screen and (max-width:600px) { | |
- | |
- #wpwrap.wp-responsive-open, | |
- div#post-body.metabox-holder.columns-1 { | |
+ #wpwrap.wp-responsive-open { | |
overflow-x: hidden | |
} | |
@@ -3773,6 +3828,10 @@ | |
padding-top: 46px | |
} | |
+ div#post-body.metabox-holder.columns-1 { | |
+ overflow-x: hidden | |
+ } | |
+ | |
.nav-tab-wrapper, | |
.wrap h2.nav-tab-wrapper, | |
h1.nav-tab-wrapper { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/common-rtl.min.css build-unminified/wp-admin/css/common-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/common-rtl.min.css 2018-10-05 18:06:58.214580822 -0500 | |
+++ build-unminified/wp-admin/css/common-rtl.min.css 2018-10-05 18:07:14.934696029 -0500 | |
@@ -1,37 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.button.updated-message, | |
-a { | |
- transition-property: border, background, color; | |
- transition-duration: .05s; | |
- transition-timing-function: ease-in-out | |
-} | |
- | |
-#ajax-loading, | |
-.ajax-feedback, | |
-.ajax-loading, | |
-.imgedit-wait-spin, | |
-.list-ajax-loading, | |
-.spinner, | |
-.wp-header-end { | |
- visibility: hidden | |
-} | |
- | |
-.filter-group, | |
-.postbox-container .meta-box-sortables, | |
-.wp-filter, | |
-html.wp-toolbar { | |
- box-sizing: border-box | |
-} | |
- | |
-#docs-list, | |
-#plugin-information .section, | |
-#template textarea, | |
-.code, | |
-.ltr, | |
-code { | |
- direction: ltr | |
-} | |
- | |
#wpwrap { | |
height: auto; | |
min-height: 100%; | |
@@ -126,12 +93,6 @@ | |
float: left | |
} | |
-#publishing-action .spinner, | |
-#save-post, | |
-.subsubsub { | |
- float: right | |
-} | |
- | |
.textleft { | |
text-align: right | |
} | |
@@ -166,13 +127,6 @@ | |
word-wrap: normal !important | |
} | |
-#templateside, | |
-.misc-pub-filename, | |
-.pre, | |
-.widefat * { | |
- word-wrap: break-word | |
-} | |
- | |
.screen-reader-shortcut { | |
position: absolute; | |
top: -1000em | |
@@ -282,7 +236,10 @@ | |
} | |
a { | |
- color: #0073aa | |
+ color: #0073aa; | |
+ transition-property: border, background, color; | |
+ transition-duration: .05s; | |
+ transition-timing-function: ease-in-out | |
} | |
a, | |
@@ -302,12 +259,6 @@ | |
box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8) | |
} | |
-h1, | |
-h2, | |
-h3 { | |
- color: #23282d | |
-} | |
- | |
.ie8 a:focus { | |
outline: #5b9dd9 solid 1px | |
} | |
@@ -357,12 +308,14 @@ | |
} | |
h1 { | |
+ color: #23282d; | |
font-size: 2em; | |
margin: .67em 0 | |
} | |
h2, | |
h3 { | |
+ color: #23282d; | |
font-size: 1.3em; | |
margin: 1em 0 | |
} | |
@@ -403,15 +356,15 @@ | |
} | |
ul.ul-disc { | |
- list-style: disc | |
+ list-style: disc outside | |
} | |
ul.ul-square { | |
- list-style: square | |
+ list-style: square outside | |
} | |
ol.ol-decimal { | |
- list-style: decimal | |
+ list-style: decimal outside | |
} | |
ol.ol-decimal, | |
@@ -426,15 +379,20 @@ | |
margin: 0 0 .5em | |
} | |
+.ltr { | |
+ direction: ltr | |
+} | |
+ | |
.code, | |
code { | |
font-family: Consolas, Monaco, monospace; | |
+ direction: ltr; | |
unicode-bidi: embed | |
} | |
code, | |
kbd { | |
- padding: 3px 5px 2px; | |
+ padding: 3px 5px 2px 5px; | |
margin: 0 1px; | |
background: #eaeaea; | |
background: rgba(0, 0, 0, .07); | |
@@ -446,6 +404,7 @@ | |
margin: 8px 0 0; | |
padding: 0; | |
font-size: 13px; | |
+ float: right; | |
color: #666 | |
} | |
@@ -480,6 +439,10 @@ | |
margin: 0 | |
} | |
+.widefat * { | |
+ word-wrap: break-word | |
+} | |
+ | |
.widefat a, | |
.widefat button.button-link { | |
text-decoration: none | |
@@ -540,6 +503,10 @@ | |
vertical-align: top | |
} | |
+.widefat tbody th.check-column { | |
+ padding: 9px 0 22px | |
+} | |
+ | |
.updates-table tbody td.check-column, | |
.widefat tbody th.check-column, | |
.widefat tfoot td.check-column, | |
@@ -585,7 +552,7 @@ | |
font-size: 23px; | |
font-weight: 400; | |
margin: 0; | |
- padding: 9px 0 4px; | |
+ padding: 9px 0 4px 0; | |
line-height: 29px | |
} | |
@@ -595,6 +562,7 @@ | |
} | |
.wp-header-end { | |
+ visibility: hidden; | |
margin: -2px 0 0 | |
} | |
@@ -635,7 +603,7 @@ | |
.wrap .add-new-h2:hover, | |
.wrap .page-title-action:hover { | |
- border-color: #008EC2; | |
+ border-color: #008ec2; | |
background: #00a0d2; | |
color: #fff | |
} | |
@@ -644,12 +612,6 @@ | |
color: #124964 | |
} | |
-.ac_match, | |
-.highlight, | |
-.subsubsub a.current { | |
- color: #000 | |
-} | |
- | |
.wrap .page-title-action:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
@@ -676,6 +638,11 @@ | |
background-color: #ccf3fa | |
} | |
+.ac_match, | |
+.subsubsub a.current { | |
+ color: #000 | |
+} | |
+ | |
.alternate, | |
.striped>tbody>:nth-child(odd), | |
ul.striped>:nth-child(odd) { | |
@@ -688,7 +655,8 @@ | |
} | |
.highlight { | |
- background-color: #e4f2fd | |
+ background-color: #e4f2fd; | |
+ color: #000 | |
} | |
.wp-ui-primary { | |
@@ -760,11 +728,7 @@ | |
.postbox .hndle, | |
.stuffbox .hndle { | |
- border-bottom: 1px solid #eee; | |
- -webkit-user-select: none; | |
- -moz-user-select: none; | |
- -ms-user-select: none; | |
- user-select: none | |
+ border-bottom: 1px solid #eee | |
} | |
.quicktags, | |
@@ -786,7 +750,7 @@ | |
color: #72777c; | |
content: "\f153"; | |
display: block; | |
- font: 400 16px/20px dashicons; | |
+ font: normal 16px/20px dashicons; | |
speak: none; | |
height: 20px; | |
text-align: center; | |
@@ -837,14 +801,8 @@ | |
} | |
.pre { | |
- white-space: pre-wrap | |
-} | |
- | |
-#namediv td.first, | |
-.nav-tab, | |
-.no-break, | |
-.star-rating { | |
- white-space: nowrap | |
+ white-space: pre-wrap; | |
+ word-wrap: break-word | |
} | |
.howto { | |
@@ -858,6 +816,10 @@ | |
font-style: italic | |
} | |
+.no-break { | |
+ white-space: nowrap | |
+} | |
+ | |
hr { | |
border: 0; | |
border-top: 1px solid #ddd; | |
@@ -925,6 +887,10 @@ | |
line-height: 23px | |
} | |
+#publishing-action .spinner { | |
+ float: right | |
+} | |
+ | |
#misc-publishing-actions { | |
padding: 6px 0 0 | |
} | |
@@ -933,11 +899,19 @@ | |
padding: 6px 10px 8px | |
} | |
+.misc-pub-filename { | |
+ word-wrap: break-word | |
+} | |
+ | |
#minor-publishing-actions { | |
- padding: 10px 10px 0; | |
+ padding: 10px 10px 0 10px; | |
text-align: left | |
} | |
+#save-post { | |
+ float: right | |
+} | |
+ | |
.preview { | |
float: left | |
} | |
@@ -970,6 +944,7 @@ | |
.wp-filter { | |
display: inline-block; | |
position: relative; | |
+ box-sizing: border-box; | |
margin: 12px 0 25px; | |
padding: 0 10px; | |
width: 100%; | |
@@ -1010,22 +985,22 @@ | |
margin-left: 20px | |
} | |
-.filter-links li>a, | |
-.wp-filter .search-form.search-plugins { | |
- display: inline-block | |
-} | |
- | |
.filter-items { | |
float: right | |
} | |
-.filter-links, | |
+.filter-links { | |
+ display: inline-block; | |
+ margin: 0 | |
+} | |
+ | |
.filter-links li { | |
display: inline-block; | |
margin: 0 | |
} | |
.filter-links li>a { | |
+ display: inline-block; | |
margin: 0 10px; | |
padding: 15px 0; | |
border-bottom: 4px solid #fff; | |
@@ -1067,6 +1042,10 @@ | |
vertical-align: top | |
} | |
+.wp-filter .search-form.search-plugins { | |
+ display: inline-block | |
+} | |
+ | |
.wp-filter .button.drawer-toggle { | |
margin: 10px 9px 0; | |
padding: 0 6px 0 10px; | |
@@ -1081,7 +1060,7 @@ | |
content: "\f111"; | |
margin: 0 0 0 5px; | |
color: #72777c; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
vertical-align: text-bottom; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -1140,12 +1119,6 @@ | |
color: #fff | |
} | |
-.filter-group, | |
-.filtered-by .tag { | |
- border: 1px solid #e5e5e5; | |
- box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
-} | |
- | |
.show-filters .wp-filter .drawer-toggle:focus, | |
.show-filters .wp-filter .drawer-toggle:hover { | |
background: #2ea2cc | |
@@ -1156,12 +1129,15 @@ | |
} | |
.filter-group { | |
+ box-sizing: border-box; | |
position: relative; | |
float: right; | |
margin: 0 0 0 1%; | |
padding: 20px 10px 10px; | |
width: 24%; | |
- background: #fff | |
+ background: #fff; | |
+ border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
} | |
.filter-group legend { | |
@@ -1242,6 +1218,8 @@ | |
.filtered-by .tag { | |
margin: 0 5px; | |
padding: 4px 8px; | |
+ border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
background: #fff; | |
font-size: 11px | |
} | |
@@ -1404,7 +1382,7 @@ | |
} | |
.ie8 .notice-dismiss:focus { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.notice-success, | |
@@ -1450,7 +1428,7 @@ | |
.updated-message p:before, | |
.updating-message p:before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
vertical-align: top | |
@@ -1528,7 +1506,6 @@ | |
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1) | |
} | |
-#screen-meta, | |
ul#dismissed-updates { | |
display: none | |
} | |
@@ -1540,7 +1517,7 @@ | |
form.upgrade .hint { | |
font-style: italic; | |
font-size: 85%; | |
- margin: -.5em 0 2em | |
+ margin: -.5em 0 2em 0 | |
} | |
.update-php .spinner { | |
@@ -1548,6 +1525,14 @@ | |
margin: -4px 0 | |
} | |
+#ajax-loading, | |
+.ajax-feedback, | |
+.ajax-loading, | |
+.imgedit-wait-spin, | |
+.list-ajax-loading { | |
+ visibility: hidden | |
+} | |
+ | |
#ajax-response.alignleft { | |
margin-right: 2em | |
} | |
@@ -1567,6 +1552,12 @@ | |
color: #66c6e4 | |
} | |
+.button.updated-message { | |
+ transition-property: border, background, color; | |
+ transition-duration: .05s; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
@media aural { | |
.button.installed:before, | |
@@ -1600,6 +1591,7 @@ | |
} | |
#screen-meta { | |
+ display: none; | |
margin: 0 0 -1px 20px; | |
position: relative; | |
background-color: #fff; | |
@@ -1648,7 +1640,7 @@ | |
#screen-meta-links .show-settings:after { | |
left: 0; | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0 0 0 5px; | |
@@ -1661,12 +1653,6 @@ | |
color: #72777c | |
} | |
-#templateside ul li a, | |
-.contextual-help-tabs a, | |
-.nav-tab { | |
- text-decoration: none | |
-} | |
- | |
#screen-meta-links .screen-meta-active:after { | |
content: "\f142" | |
} | |
@@ -1693,13 +1679,6 @@ | |
font-weight: 600 | |
} | |
-.hndle a, | |
-.widefat tfoot td, | |
-.widefat th, | |
-.widefat thead td { | |
- font-weight: 400 | |
-} | |
- | |
.ie8 #screen-options-wrap legend { | |
color: inherit | |
} | |
@@ -1807,6 +1786,7 @@ | |
display: block; | |
padding: 5px 12px 5px 5px; | |
line-height: 18px; | |
+ text-decoration: none; | |
border: 1px solid transparent; | |
border-left: none; | |
border-right: none | |
@@ -1857,7 +1837,8 @@ | |
} | |
html.wp-toolbar { | |
- padding-top: 32px | |
+ padding-top: 32px; | |
+ box-sizing: border-box | |
} | |
.widefat td, | |
@@ -1865,13 +1846,16 @@ | |
color: #555 | |
} | |
-.widefat ol, | |
-.widefat p, | |
+.widefat tfoot td, | |
+.widefat th, | |
+.widefat thead td { | |
+ font-weight: 400 | |
+} | |
+ | |
.widefat tfoot tr td, | |
.widefat tfoot tr th, | |
.widefat thead tr td, | |
-.widefat thead tr th, | |
-.widefat ul { | |
+.widefat thead tr th { | |
color: #32373c | |
} | |
@@ -1879,12 +1863,18 @@ | |
margin: 2px 0 .8em | |
} | |
+.widefat ol, | |
+.widefat p, | |
+.widefat ul { | |
+ color: #32373c | |
+} | |
+ | |
.widefat .column-comment p { | |
margin: .6em 0 | |
} | |
.widefat .column-comment ul { | |
- list-style: outside; | |
+ list-style: initial; | |
margin-right: 2em | |
} | |
@@ -1892,6 +1882,10 @@ | |
float: right | |
} | |
+.postbox-container .meta-box-sortables { | |
+ box-sizing: border-box | |
+} | |
+ | |
#wpbody-content .metabox-holder { | |
padding-top: 10px | |
} | |
@@ -1922,7 +1916,7 @@ | |
.columns-2 #postbox-container-4 .empty-container, | |
.columns-3 #postbox-container-4 .empty-container, | |
.metabox-holder.columns-1 .postbox-container .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1945,7 +1939,7 @@ | |
@media only screen and (max-width:799px) { | |
#wpbody-content .metabox-holder .postbox-container .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1957,24 +1951,8 @@ | |
} | |
.hndle a { | |
- font-size: 11px | |
-} | |
- | |
-#adminmenu .wp-submenu li.current, | |
-#adminmenu .wp-submenu li.current a, | |
-#adminmenu .wp-submenu li.current a:hover, | |
-#dashboard_right_now .versions .b, | |
-#ed_reply_toolbar #ed_reply_strong, | |
-#pass-strength-result.short, | |
-#pass-strength-result.strong, | |
-#post-status-display, | |
-#post-visibility-display, | |
-.feature-filter .feature-name, | |
-.item-controls .item-order a, | |
-.media-item .percent, | |
-.nav-tab, | |
-.plugins .name { | |
- font-weight: 600 | |
+ font-size: 11px; | |
+ font-weight: 400 | |
} | |
.postbox .handlediv { | |
@@ -2005,6 +1983,14 @@ | |
line-height: 1 | |
} | |
+.postbox .hndle, | |
+.stuffbox .hndle { | |
+ -webkit-user-select: none; | |
+ -moz-user-select: none; | |
+ -ms-user-select: none; | |
+ user-select: none | |
+} | |
+ | |
.postbox .inside, | |
.stuffbox .inside { | |
padding: 0 12px 12px; | |
@@ -2043,6 +2029,22 @@ | |
padding: 0 0 0 10px | |
} | |
+#adminmenu .wp-submenu li.current, | |
+#adminmenu .wp-submenu li.current a, | |
+#adminmenu .wp-submenu li.current a:hover, | |
+#dashboard_right_now .versions .b, | |
+#ed_reply_toolbar #ed_reply_strong, | |
+#pass-strength-result.short, | |
+#pass-strength-result.strong, | |
+#post-status-display, | |
+#post-visibility-display, | |
+.feature-filter .feature-name, | |
+.item-controls .item-order a, | |
+.media-item .percent, | |
+.plugins .name { | |
+ font-weight: 600 | |
+} | |
+ | |
#wpfooter { | |
position: absolute; | |
bottom: 0; | |
@@ -2070,8 +2072,11 @@ | |
padding: 5px 10px; | |
font-size: 14px; | |
line-height: 24px; | |
+ font-weight: 600; | |
background: #e5e5e5; | |
- color: #555 | |
+ color: #555; | |
+ text-decoration: none; | |
+ white-space: nowrap | |
} | |
.nav-tab-small .nav-tab, | |
@@ -2132,6 +2137,7 @@ | |
background: url(../images/spinner.gif) no-repeat; | |
background-size: 20px 20px; | |
display: inline-block; | |
+ visibility: hidden; | |
float: left; | |
vertical-align: middle; | |
opacity: .7; | |
@@ -2178,6 +2184,10 @@ | |
line-height: 21px | |
} | |
+#templateside ul li a { | |
+ text-decoration: none | |
+} | |
+ | |
.plugin-install #description, | |
.plugin-install-network #description { | |
width: 60% | |
@@ -2203,13 +2213,6 @@ | |
display: none | |
} | |
-#howto, | |
-.importer-action, | |
-.importer-desc, | |
-.importer-title { | |
- display: block | |
-} | |
- | |
.lp-show-latest .lp-error p, | |
.lp-show-latest p:last-child { | |
display: block | |
@@ -2227,7 +2230,8 @@ | |
#howto { | |
font-size: 11px; | |
- margin: 0 5px | |
+ margin: 0 5px; | |
+ display: block | |
} | |
.importers { | |
@@ -2248,9 +2252,10 @@ | |
max-width: 500px | |
} | |
-.post-categories, | |
-.post-categories li { | |
- display: inline | |
+.importer-action, | |
+.importer-desc, | |
+.importer-title { | |
+ display: block | |
} | |
.importer-title { | |
@@ -2289,7 +2294,8 @@ | |
} | |
#namediv td.first { | |
- width: 10px | |
+ width: 10px; | |
+ white-space: nowrap | |
} | |
#namediv input { | |
@@ -2304,18 +2310,12 @@ | |
margin-bottom: 0 !important | |
} | |
-.checkbox, | |
-.post-categories, | |
-.zerosize, | |
-fieldset { | |
- margin: 0; | |
- padding: 0 | |
-} | |
- | |
.zerosize { | |
height: 0; | |
width: 0; | |
+ margin: 0; | |
border: 0; | |
+ padding: 0; | |
overflow: hidden; | |
position: absolute | |
} | |
@@ -2326,26 +2326,44 @@ | |
} | |
.checkbox { | |
- border: none | |
+ border: none; | |
+ margin: 0; | |
+ padding: 0 | |
} | |
fieldset { | |
- border: 0 | |
+ border: 0; | |
+ padding: 0; | |
+ margin: 0 | |
+} | |
+ | |
+.post-categories { | |
+ display: inline; | |
+ margin: 0; | |
+ padding: 0 | |
+} | |
+ | |
+.post-categories li { | |
+ display: inline | |
} | |
div.star-holder { | |
position: relative; | |
height: 17px; | |
width: 100px; | |
- background: url(../images/stars.png?ver=20121108) bottom left repeat-x | |
+ background: url(../images/stars.png?ver=20121108) repeat-x bottom left | |
} | |
div.star-holder .star-rating { | |
- background: url(../images/stars.png?ver=20121108) top left repeat-x; | |
+ background: url(../images/stars.png?ver=20121108) repeat-x top left; | |
height: 17px; | |
float: right | |
} | |
+.star-rating { | |
+ white-space: nowrap | |
+} | |
+ | |
.star-rating .star { | |
display: inline-block; | |
width: 20px; | |
@@ -2525,8 +2543,9 @@ | |
bottom: 0; | |
right: 0; | |
margin-left: 250px; | |
- padding: 10px 26px 99999px; | |
- margin-bottom: -99939px | |
+ padding: 10px 26px; | |
+ margin-bottom: -99939px; | |
+ padding-bottom: 99999px | |
} | |
#section-holder .updated { | |
@@ -2538,8 +2557,9 @@ | |
position: relative; | |
top: 0; | |
left: 0; | |
- padding: 16px 16px 99999px; | |
+ padding: 16px; | |
margin-bottom: -99939px; | |
+ padding-bottom: 99999px; | |
width: 217px; | |
border-right: 1px solid #ddd; | |
background: #f3f3f3; | |
@@ -2615,6 +2635,12 @@ | |
vertical-align: middle | |
} | |
+#plugin-information .fyi ul.contributors li { | |
+ display: inline-block; | |
+ margin-left: 8px; | |
+ vertical-align: middle | |
+} | |
+ | |
#plugin-information .fyi ul.contributors li img { | |
vertical-align: middle; | |
margin-left: 4px | |
@@ -2631,6 +2657,10 @@ | |
background: #f3f3f3 | |
} | |
+#plugin-information .section { | |
+ direction: ltr | |
+} | |
+ | |
#plugin-information .section ol, | |
#plugin-information .section ul { | |
list-style-type: disc; | |
@@ -2727,9 +2757,7 @@ | |
} | |
@media screen and (max-width:771px) { | |
- | |
- #plugin-information-title.with-banner, | |
- #plugin-information-title.with-banner div.vignette { | |
+ #plugin-information-title.with-banner { | |
height: 100px | |
} | |
@@ -2740,6 +2768,10 @@ | |
max-width: 85% | |
} | |
+ #plugin-information-title.with-banner div.vignette { | |
+ height: 100px | |
+ } | |
+ | |
#plugin-information-tabs { | |
overflow: hidden; | |
padding: 0; | |
@@ -2791,22 +2823,12 @@ | |
top: 50%; | |
z-index: -1; | |
margin: -10px -10px 0 0; | |
- background: url(../images/spinner.gif) center no-repeat #fcfcfc; | |
+ background: #fcfcfc url(../images/spinner.gif) no-repeat center; | |
background-size: 20px 20px; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0) | |
} | |
-.plugin-details-modal #TB_ajaxWindowTitle, | |
-.plugin-details-modal .tb-close-icon { | |
- display: none | |
-} | |
- | |
-.tree-folder, | |
-[role=treeitem] li { | |
- position: relative | |
-} | |
- | |
@media print, | |
(-webkit-min-device-pixel-ratio:1.25), | |
(min-resolution:120dpi) { | |
@@ -2820,6 +2842,10 @@ | |
height: 1px | |
} | |
+.plugin-details-modal #TB_ajaxWindowTitle { | |
+ display: none | |
+} | |
+ | |
.plugin-details-modal #TB_closeWindowButton { | |
right: auto; | |
left: -30px; | |
@@ -2833,9 +2859,13 @@ | |
box-shadow: none | |
} | |
+.plugin-details-modal .tb-close-icon { | |
+ display: none | |
+} | |
+ | |
.plugin-details-modal #TB_closeWindowButton:after { | |
content: "\f335"; | |
- font: 400 32px/29px dashicons; | |
+ font: normal 32px/29px dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2858,7 +2888,7 @@ | |
.sidebar-name .toggle-indicator:before { | |
content: "\f142"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
@@ -2879,15 +2909,6 @@ | |
text-indent: -1px | |
} | |
-#template .CodeMirror, | |
-#template textarea, | |
-#templateside>ul { | |
- box-sizing: border-box; | |
- min-height: 60vh; | |
- height: calc(100vh - 295px); | |
- border: 1px solid #ddd | |
-} | |
- | |
.rtl.js .postbox .handlediv .toggle-indicator:before { | |
text-indent: 1px | |
} | |
@@ -2926,7 +2947,11 @@ | |
#template .CodeMirror, | |
#template textarea { | |
- width: 100% | |
+ width: 100%; | |
+ min-height: 60vh; | |
+ height: calc(100vh - 295px); | |
+ border: 1px solid #ddd; | |
+ box-sizing: border-box | |
} | |
#templateside>h2 { | |
@@ -2942,10 +2967,14 @@ | |
} | |
#templateside>ul { | |
+ box-sizing: border-box; | |
margin-top: 0; | |
overflow: auto; | |
padding: 0; | |
+ min-height: 60vh; | |
+ height: calc(100vh - 295px); | |
background-color: #f7f7f7; | |
+ border: 1px solid #ddd; | |
border-right: none | |
} | |
@@ -2998,7 +3027,12 @@ | |
} | |
.tree-folder { | |
- margin: 0 | |
+ margin: 0; | |
+ position: relative | |
+} | |
+ | |
+[role=treeitem] li { | |
+ position: relative | |
} | |
.tree-folder .tree-folder::after { | |
@@ -3063,6 +3097,11 @@ | |
font-weight: 600 | |
} | |
+#docs-list, | |
+#template textarea { | |
+ direction: ltr | |
+} | |
+ | |
.fileedit-sub #plugin, | |
.fileedit-sub #theme { | |
max-width: 40% | |
@@ -3101,7 +3140,8 @@ | |
#templateside { | |
float: left; | |
- width: 16em | |
+ width: 16em; | |
+ word-wrap: break-word | |
} | |
#postcustomstuff p.submit { | |
@@ -3128,7 +3168,7 @@ | |
} | |
#templateside li.howto { | |
- padding: 6px 12px 12px | |
+ padding: 6px 12px 12px 12px | |
} | |
.theme-editor-php .highlight { | |
@@ -3171,7 +3211,7 @@ | |
.nav-menus-php .item-edit:before, | |
.widget-top .widget-action .toggle-indicator:before { | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
@@ -3494,7 +3534,7 @@ | |
div.star-holder, | |
div.star-holder .star-rating { | |
- background: url(../images/stars-2x.png?ver=20121108) bottom left repeat-x; | |
+ background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom left; | |
background-size: 21px 37px | |
} | |
@@ -3520,14 +3560,6 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #col-left, | |
- #col-right, | |
- #templateside { | |
- float: none; | |
- width: auto | |
- } | |
- | |
html.wp-toolbar { | |
padding-top: 46px | |
} | |
@@ -3556,6 +3588,12 @@ | |
margin-right: 0 | |
} | |
+ #col-left, | |
+ #col-right { | |
+ float: none; | |
+ width: auto | |
+ } | |
+ | |
#col-left .col-wrap, | |
#col-right .col-wrap { | |
padding: 0 | |
@@ -3568,11 +3606,6 @@ | |
display: none !important | |
} | |
- #documentation label[for=docs-list], | |
- .fileedit-sub .alignright label { | |
- display: block | |
- } | |
- | |
.wrap h1.wp-heading-inline { | |
margin-bottom: .5em | |
} | |
@@ -3590,7 +3623,7 @@ | |
.notice, | |
.wrap div.error, | |
.wrap div.updated { | |
- margin: 20px 0 10px; | |
+ margin: 20px 0 10px 0; | |
padding: 5px 10px; | |
font-size: 14px; | |
line-height: 175% | |
@@ -3637,6 +3670,16 @@ | |
margin-bottom: 15px | |
} | |
+ #template .CodeMirror, | |
+ #template textarea { | |
+ box-sizing: border-box | |
+ } | |
+ | |
+ #templateside { | |
+ float: none; | |
+ width: auto | |
+ } | |
+ | |
#templateside>ul { | |
border-right: 1px solid #ddd | |
} | |
@@ -3669,7 +3712,6 @@ | |
#template .CodeMirror, | |
#template textarea { | |
- box-sizing: border-box; | |
width: 100% | |
} | |
@@ -3682,12 +3724,6 @@ | |
padding: 5px | |
} | |
- #documentation input[type=button], | |
- .fileedit-sub input[type=submit] { | |
- margin-bottom: 0; | |
- padding: 8px 18px | |
- } | |
- | |
.tree-folder .tree-folder::after, | |
.tree-folder>li::after, | |
.tree-folder>li::before { | |
@@ -3722,22 +3758,43 @@ | |
text-align: right | |
} | |
+ .fileedit-sub .alignright label { | |
+ display: block | |
+ } | |
+ | |
.fileedit-sub #plugin, | |
.fileedit-sub #theme { | |
margin-right: 0; | |
max-width: 70% | |
} | |
+ .fileedit-sub input[type=submit] { | |
+ margin-bottom: 0; | |
+ padding: 8px 18px | |
+ } | |
+ | |
+ #documentation label[for=docs-list] { | |
+ display: block | |
+ } | |
+ | |
#documentation select[name=docs-list] { | |
margin-right: 0; | |
max-width: 60% | |
} | |
- #comments-form .checkforspam, | |
+ #documentation input[type=button] { | |
+ margin-bottom: 0; | |
+ padding: 8px 18px | |
+ } | |
+ | |
#wpfooter { | |
display: none | |
} | |
+ #comments-form .checkforspam { | |
+ display: none | |
+ } | |
+ | |
.edit-comment-author { | |
margin: 2px 0 0 | |
} | |
@@ -3759,9 +3816,7 @@ | |
} | |
@media screen and (max-width:600px) { | |
- | |
- #wpwrap.wp-responsive-open, | |
- div#post-body.metabox-holder.columns-1 { | |
+ #wpwrap.wp-responsive-open { | |
overflow-x: hidden | |
} | |
@@ -3773,6 +3828,10 @@ | |
padding-top: 46px | |
} | |
+ div#post-body.metabox-holder.columns-1 { | |
+ overflow-x: hidden | |
+ } | |
+ | |
.nav-tab-wrapper, | |
.wrap h2.nav-tab-wrapper, | |
h1.nav-tab-wrapper { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-controls.min.css build-unminified/wp-admin/css/customize-controls.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-controls.min.css 2018-10-05 18:07:03.802619319 -0500 | |
+++ build-unminified/wp-admin/css/customize-controls.min.css 2018-10-05 18:07:20.538734655 -0500 | |
@@ -1,16 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#customize-controls .wp-full-overlay-sidebar-content, | |
-#customize-sidebar-outer-content { | |
- overflow-x: hidden; | |
- overflow-y: auto | |
-} | |
- | |
-.customize-control-checkbox label, | |
-.customize-control-radio label, | |
-.customize-control-site_icon .favicon-preview .browser-preview { | |
- vertical-align: top | |
-} | |
- | |
body { | |
overflow: hidden; | |
-webkit-text-size-adjust: 100% | |
@@ -109,6 +97,8 @@ | |
bottom: 0; | |
left: 0; | |
visibility: hidden; | |
+ overflow-x: hidden; | |
+ overflow-y: auto; | |
width: 100%; | |
margin: 0; | |
z-index: -1; | |
@@ -196,6 +186,11 @@ | |
border-bottom: 1px solid #ddd | |
} | |
+#customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow-y: auto; | |
+ overflow-x: hidden | |
+} | |
+ | |
.outer-section-open #customize-controls .wp-full-overlay-sidebar-content { | |
background: #eee | |
} | |
@@ -229,7 +224,7 @@ | |
#customize-control-trash_changeset .button-link:before { | |
content: "\f182"; | |
- font: 400 22px dashicons; | |
+ font: normal 22px dashicons; | |
text-decoration: none; | |
position: absolute; | |
left: 0; | |
@@ -415,12 +410,6 @@ | |
margin-top: 15px | |
} | |
-#customize-controls .customize-info .customize-panel-description p:first-child, | |
-#customize-controls .customize-info .customize-section-description p:first-child, | |
-.no-widget-areas-rendered-notice p:first-child { | |
- margin-top: 0 | |
-} | |
- | |
#customize-controls .customize-info.is-sticky, | |
#customize-controls .customize-section-title.is-sticky { | |
position: fixed; | |
@@ -517,6 +506,10 @@ | |
font-style: italic | |
} | |
+.no-widget-areas-rendered-notice p:first-child { | |
+ margin-top: 0 | |
+} | |
+ | |
.no-widget-areas-rendered-notice p:last-child { | |
margin-bottom: 0 | |
} | |
@@ -525,6 +518,11 @@ | |
margin-bottom: 15px | |
} | |
+#customize-controls .customize-info .customize-panel-description p:first-child, | |
+#customize-controls .customize-info .customize-section-description p:first-child { | |
+ margin-top: 0 | |
+} | |
+ | |
#customize-controls .customize-info .customize-panel-description p:last-child, | |
#customize-controls .customize-info .customize-section-description p:last-child { | |
margin-bottom: 0 | |
@@ -638,6 +636,7 @@ | |
#customize-info, | |
#customize-theme-controls .customize-pane-child, | |
#customize-theme-controls .customize-pane-parent { | |
+ overflow: visible; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
@@ -731,7 +730,7 @@ | |
} | |
.customize-section-title { | |
- margin: -12px -12px 0; | |
+ margin: -12px -12px 0 -12px; | |
border-bottom: 1px solid #ddd; | |
background: #fff | |
} | |
@@ -740,7 +739,10 @@ | |
margin-top: 22px | |
} | |
-.customize-info div.customize-section-description, | |
+.customize-info div.customize-section-description { | |
+ margin-top: 0 | |
+} | |
+ | |
div.customize-section-description p:first-child { | |
margin-top: 0 | |
} | |
@@ -751,11 +753,11 @@ | |
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { | |
border-bottom: 1px solid #ddd; | |
- padding: 12px | |
+ padding: 12px 12px 12px 12px | |
} | |
.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { | |
- padding: 12px 12px 13px | |
+ padding: 12px 12px 13px 12px | |
} | |
.customize-section-title h3, | |
@@ -864,7 +866,7 @@ | |
} | |
.customize-controls-close:before { | |
- font: 400 22px/45px dashicons; | |
+ font: normal 22px/45px dashicons; | |
content: "\f335"; | |
position: relative; | |
top: -3px; | |
@@ -873,7 +875,7 @@ | |
.customize-panel-back:before, | |
.customize-section-back:before { | |
- font: 400 20px/72px dashicons; | |
+ font: normal 20px/72px dashicons; | |
content: "\f341"; | |
position: relative; | |
left: 9px | |
@@ -918,19 +920,19 @@ | |
margin-bottom: 12px | |
} | |
-.customize-control input[type=radio], | |
.customize-control input[type=checkbox], | |
+.customize-control input[type=radio], | |
.customize-control select { | |
line-height: 28px | |
} | |
+.customize-control input[type=email], | |
.customize-control input[type=number], | |
+.customize-control input[type=password], | |
.customize-control input[type=search], | |
.customize-control input[type=tel], | |
-.customize-control input[type=url], | |
.customize-control input[type=text], | |
-.customize-control input[type=password], | |
-.customize-control input[type=email] { | |
+.customize-control input[type=url] { | |
width: 100%; | |
line-height: 18px; | |
margin: 0 | |
@@ -1014,6 +1016,11 @@ | |
margin-top: 7px | |
} | |
+.customize-control-checkbox label, | |
+.customize-control-radio label { | |
+ vertical-align: top | |
+} | |
+ | |
.customize-control .attachment-thumb.type-icon { | |
float: left; | |
margin: 10px; | |
@@ -1044,6 +1051,10 @@ | |
line-height: 0 | |
} | |
+.customize-control-site_icon .favicon-preview .browser-preview { | |
+ vertical-align: top | |
+} | |
+ | |
.customize-control .thumbnail-image img { | |
cursor: pointer | |
} | |
@@ -1112,7 +1123,7 @@ | |
} | |
#customize-controls .customize-control-notifications-container { | |
- margin: 4px 0 8px; | |
+ margin: 4px 0 8px 0; | |
padding: 0; | |
cursor: default | |
} | |
@@ -1125,7 +1136,7 @@ | |
#customize-controls .customize-control-notifications-container li.notice { | |
list-style: none; | |
- margin: 0 0 6px; | |
+ margin: 0 0 6px 0; | |
padding: 9px 14px; | |
overflow: hidden | |
} | |
@@ -1147,7 +1158,7 @@ | |
} | |
.customize-control-text.has-error input { | |
- outline: #dc3232 solid 2px | |
+ outline: 2px solid #dc3232 | |
} | |
#customize-controls #customize-notifications-area { | |
@@ -1250,15 +1261,14 @@ | |
position: relative | |
} | |
-#customize-control-show_on_front.has-error .customize-control-notifications-container, | |
-.customize-control .actions .button { | |
- margin-top: 12px | |
-} | |
- | |
#customize-control-show_on_front.has-error { | |
margin-bottom: 0 | |
} | |
+#customize-control-show_on_front.has-error .customize-control-notifications-container { | |
+ margin-top: 12px | |
+} | |
+ | |
.accordion-section .dropdown { | |
float: left; | |
display: block; | |
@@ -1292,7 +1302,7 @@ | |
.customize-control .dropdown-arrow:after { | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: block; | |
padding: 0; | |
@@ -1334,6 +1344,10 @@ | |
-webkit-overflow-scrolling: touch | |
} | |
+.customize-control .actions .button { | |
+ margin-top: 12px | |
+} | |
+ | |
.customize-control-header .actions, | |
.customize-control-header .uploaded { | |
margin-bottom: 18px | |
@@ -1436,11 +1450,6 @@ | |
border: 0 | |
} | |
-#customize-controls .customize-section-description-container.section-meta.customize-info, | |
-#customize-theme-controls .control-panel-themes { | |
- border-bottom: none | |
-} | |
- | |
.customize-control-header .uploaded .header-view .close { | |
font-size: 20px; | |
color: #fff; | |
@@ -1462,7 +1471,7 @@ | |
} | |
.customize-control-header .header-view .close:focus { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.customize-control-header .random.placeholder { | |
@@ -1601,6 +1610,10 @@ | |
height: 14em | |
} | |
+#customize-controls .customize-section-description-container.section-meta.customize-info { | |
+ border-bottom: none | |
+} | |
+ | |
#sub-accordion-section-custom_css .customize-control-notifications-container { | |
margin-bottom: 15px | |
} | |
@@ -1658,6 +1671,10 @@ | |
} | |
} | |
+#customize-theme-controls .control-panel-themes { | |
+ border-bottom: none | |
+} | |
+ | |
#customize-theme-controls .control-panel-themes>.accordion-section-title, | |
#customize-theme-controls .control-panel-themes>.accordion-section-title:hover { | |
cursor: default; | |
@@ -1667,7 +1684,7 @@ | |
border-bottom: 1px solid #ddd; | |
border-left: none; | |
border-right: none; | |
- margin: 0 0 15px; | |
+ margin: 0 0 15px 0; | |
padding-right: 100px | |
} | |
@@ -1699,11 +1716,6 @@ | |
font-weight: 400 | |
} | |
-.in-themes-panel.animating .control-panel-themes .filter-themes-count, | |
-.themes-filter-bar .feature-filter-toggle .filter-count-filters { | |
- display: none | |
-} | |
- | |
#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme { | |
position: absolute; | |
right: 10px; | |
@@ -1776,6 +1788,10 @@ | |
bottom: -45px | |
} | |
+.in-themes-panel.animating .control-panel-themes .filter-themes-count { | |
+ display: none | |
+} | |
+ | |
.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content { | |
bottom: 0 | |
} | |
@@ -1788,7 +1804,7 @@ | |
.themes-filter-bar .feature-filter-toggle:before { | |
content: "\f111"; | |
margin: 0 5px 0 0; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
vertical-align: text-bottom; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -1802,6 +1818,10 @@ | |
transform: translateY(1px) | |
} | |
+.themes-filter-bar .feature-filter-toggle .filter-count-filters { | |
+ display: none | |
+} | |
+ | |
.filter-drawer { | |
box-sizing: border-box; | |
width: 100%; | |
@@ -1823,8 +1843,10 @@ | |
} | |
@-webkit-keyframes themes-fade-in { | |
+ 0% { | |
+ opacity: 0 | |
+ } | |
- 0%, | |
50% { | |
opacity: 0 | |
} | |
@@ -1835,8 +1857,10 @@ | |
} | |
@keyframes themes-fade-in { | |
+ 0% { | |
+ opacity: 0 | |
+ } | |
- 0%, | |
50% { | |
opacity: 0 | |
} | |
@@ -1872,7 +1896,7 @@ | |
} | |
.control-panel-themes .customize-themes-notifications .notice { | |
- margin: 0 0 25px | |
+ margin: 0 0 25px 0 | |
} | |
.customize-themes-full-container .customize-themes-section { | |
@@ -1886,7 +1910,7 @@ | |
.control-section .customize-section-text-before { | |
padding: 0 0 8px 15px; | |
- margin: 15px 0 0; | |
+ margin: 15px 0 0 0; | |
line-height: 16px; | |
border-bottom: 1px solid #ddd; | |
color: #555d66 | |
@@ -1978,7 +2002,6 @@ | |
margin-top: 50px | |
} | |
-.control-panel-themes .customize-themes-mobile-back, | |
.customize-themes-section .no-themes, | |
.customize-themes-section .no-themes-local { | |
display: none | |
@@ -2102,7 +2125,7 @@ | |
position: relative; | |
left: 0; | |
width: 100%; | |
- margin: 0 0 25px | |
+ margin: 0 0 25px 0 | |
} | |
.filter-drawer { | |
@@ -2155,6 +2178,10 @@ | |
} | |
} | |
+.control-panel-themes .customize-themes-mobile-back { | |
+ display: none | |
+} | |
+ | |
@media screen and (max-width:600px) { | |
.filter-drawer { | |
top: 132px | |
@@ -2208,7 +2235,7 @@ | |
width: 26px; | |
display: block; | |
line-height: 46px; | |
- padding: 0 8px; | |
+ padding: 0 8px 0 8px; | |
border-right: 1px solid #ddd | |
} | |
@@ -2230,11 +2257,6 @@ | |
} | |
} | |
-.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content, | |
-.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { | |
- overflow: visible | |
-} | |
- | |
.wp-customizer .theme-overlay { | |
display: none | |
} | |
@@ -2254,6 +2276,10 @@ | |
z-index: -1 | |
} | |
+.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow: visible | |
+} | |
+ | |
.wp-customizer .theme-overlay .theme-backdrop { | |
background: rgba(238, 238, 238, .75); | |
position: fixed; | |
@@ -2295,6 +2321,10 @@ | |
position: absolute | |
} | |
+.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow: visible | |
+} | |
+ | |
.wp-customizer .theme-header { | |
background: #eee | |
} | |
@@ -2359,8 +2389,9 @@ | |
color: #555d66; | |
font-size: 24px; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
- margin: 30px 0 0; | |
- padding: 0 0 7px | |
+ margin: 30px 0 0 0; | |
+ padding: 0; | |
+ padding-bottom: 7px | |
} | |
body.cheatin p { | |
@@ -2373,7 +2404,8 @@ | |
#customize-theme-controls .add-new-widget { | |
cursor: pointer; | |
float: right; | |
- margin: 0 0 0 10px; | |
+ margin: 0; | |
+ margin-left: 10px; | |
transition: all .2s; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
@@ -2397,7 +2429,7 @@ | |
position: relative; | |
left: -2px; | |
top: 0; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
transition: all .2s; | |
-webkit-font-smoothing: antialiased; | |
@@ -2453,7 +2485,7 @@ | |
right: 0; | |
width: 100%; | |
height: 100%; | |
- font: 400 20px/43px dashicons; | |
+ font: normal 20px/43px dashicons; | |
text-align: center; | |
text-indent: 0; | |
-webkit-font-smoothing: antialiased; | |
@@ -2619,7 +2651,7 @@ | |
#available-menu-items-search .clear-results:before, | |
#available-widgets-filter .clear-results:before { | |
content: "\f335"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2641,7 +2673,7 @@ | |
#available-widgets-filter .search-icon:after, | |
.themes-filter-bar .search-icon:after { | |
content: "\f179"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2727,8 +2759,8 @@ | |
margin-left: -32px | |
} | |
- .customize-control input[type=radio]+label+br, | |
- .customize-control input[type=checkbox]+label+br { | |
+ .customize-control input[type=checkbox]+label+br, | |
+ .customize-control input[type=radio]+label+br { | |
line-height: 32px | |
} | |
@@ -2822,7 +2854,7 @@ | |
.customize-controls-preview-toggle .controls:before, | |
.customize-controls-preview-toggle .preview:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f177"; | |
position: relative; | |
top: 4px; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-controls-rtl.min.css build-unminified/wp-admin/css/customize-controls-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-controls-rtl.min.css 2018-10-05 18:06:58.974586057 -0500 | |
+++ build-unminified/wp-admin/css/customize-controls-rtl.min.css 2018-10-05 18:07:15.710701377 -0500 | |
@@ -1,16 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#customize-controls .wp-full-overlay-sidebar-content, | |
-#customize-sidebar-outer-content { | |
- overflow-x: hidden; | |
- overflow-y: auto | |
-} | |
- | |
-.customize-control-checkbox label, | |
-.customize-control-radio label, | |
-.customize-control-site_icon .favicon-preview .browser-preview { | |
- vertical-align: top | |
-} | |
- | |
body { | |
overflow: hidden; | |
-webkit-text-size-adjust: 100% | |
@@ -109,6 +97,8 @@ | |
bottom: 0; | |
right: 0; | |
visibility: hidden; | |
+ overflow-x: hidden; | |
+ overflow-y: auto; | |
width: 100%; | |
margin: 0; | |
z-index: -1; | |
@@ -196,6 +186,11 @@ | |
border-bottom: 1px solid #ddd | |
} | |
+#customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow-y: auto; | |
+ overflow-x: hidden | |
+} | |
+ | |
.outer-section-open #customize-controls .wp-full-overlay-sidebar-content { | |
background: #eee | |
} | |
@@ -229,7 +224,7 @@ | |
#customize-control-trash_changeset .button-link:before { | |
content: "\f182"; | |
- font: 400 22px dashicons; | |
+ font: normal 22px dashicons; | |
text-decoration: none; | |
position: absolute; | |
right: 0; | |
@@ -415,12 +410,6 @@ | |
margin-top: 15px | |
} | |
-#customize-controls .customize-info .customize-panel-description p:first-child, | |
-#customize-controls .customize-info .customize-section-description p:first-child, | |
-.no-widget-areas-rendered-notice p:first-child { | |
- margin-top: 0 | |
-} | |
- | |
#customize-controls .customize-info.is-sticky, | |
#customize-controls .customize-section-title.is-sticky { | |
position: fixed; | |
@@ -517,6 +506,10 @@ | |
font-style: italic | |
} | |
+.no-widget-areas-rendered-notice p:first-child { | |
+ margin-top: 0 | |
+} | |
+ | |
.no-widget-areas-rendered-notice p:last-child { | |
margin-bottom: 0 | |
} | |
@@ -525,6 +518,11 @@ | |
margin-bottom: 15px | |
} | |
+#customize-controls .customize-info .customize-panel-description p:first-child, | |
+#customize-controls .customize-info .customize-section-description p:first-child { | |
+ margin-top: 0 | |
+} | |
+ | |
#customize-controls .customize-info .customize-panel-description p:last-child, | |
#customize-controls .customize-info .customize-section-description p:last-child { | |
margin-bottom: 0 | |
@@ -638,6 +636,7 @@ | |
#customize-info, | |
#customize-theme-controls .customize-pane-child, | |
#customize-theme-controls .customize-pane-parent { | |
+ overflow: visible; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
@@ -731,7 +730,7 @@ | |
} | |
.customize-section-title { | |
- margin: -12px -12px 0; | |
+ margin: -12px -12px 0 -12px; | |
border-bottom: 1px solid #ddd; | |
background: #fff | |
} | |
@@ -740,7 +739,10 @@ | |
margin-top: 22px | |
} | |
-.customize-info div.customize-section-description, | |
+.customize-info div.customize-section-description { | |
+ margin-top: 0 | |
+} | |
+ | |
div.customize-section-description p:first-child { | |
margin-top: 0 | |
} | |
@@ -751,11 +753,11 @@ | |
#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { | |
border-bottom: 1px solid #ddd; | |
- padding: 12px | |
+ padding: 12px 12px 12px 12px | |
} | |
.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { | |
- padding: 12px 12px 13px | |
+ padding: 12px 12px 13px 12px | |
} | |
.customize-section-title h3, | |
@@ -864,7 +866,7 @@ | |
} | |
.customize-controls-close:before { | |
- font: 400 22px/45px dashicons; | |
+ font: normal 22px/45px dashicons; | |
content: "\f335"; | |
position: relative; | |
top: -3px; | |
@@ -873,7 +875,7 @@ | |
.customize-panel-back:before, | |
.customize-section-back:before { | |
- font: 400 20px/72px dashicons; | |
+ font: normal 20px/72px dashicons; | |
content: "\f345"; | |
position: relative; | |
right: 9px | |
@@ -918,19 +920,19 @@ | |
margin-bottom: 12px | |
} | |
-.customize-control input[type=radio], | |
.customize-control input[type=checkbox], | |
+.customize-control input[type=radio], | |
.customize-control select { | |
line-height: 28px | |
} | |
+.customize-control input[type=email], | |
.customize-control input[type=number], | |
+.customize-control input[type=password], | |
.customize-control input[type=search], | |
.customize-control input[type=tel], | |
-.customize-control input[type=url], | |
.customize-control input[type=text], | |
-.customize-control input[type=password], | |
-.customize-control input[type=email] { | |
+.customize-control input[type=url] { | |
width: 100%; | |
line-height: 18px; | |
margin: 0 | |
@@ -1014,6 +1016,11 @@ | |
margin-top: 7px | |
} | |
+.customize-control-checkbox label, | |
+.customize-control-radio label { | |
+ vertical-align: top | |
+} | |
+ | |
.customize-control .attachment-thumb.type-icon { | |
float: right; | |
margin: 10px; | |
@@ -1044,6 +1051,10 @@ | |
line-height: 0 | |
} | |
+.customize-control-site_icon .favicon-preview .browser-preview { | |
+ vertical-align: top | |
+} | |
+ | |
.customize-control .thumbnail-image img { | |
cursor: pointer | |
} | |
@@ -1112,7 +1123,7 @@ | |
} | |
#customize-controls .customize-control-notifications-container { | |
- margin: 4px 0 8px; | |
+ margin: 4px 0 8px 0; | |
padding: 0; | |
cursor: default | |
} | |
@@ -1125,7 +1136,7 @@ | |
#customize-controls .customize-control-notifications-container li.notice { | |
list-style: none; | |
- margin: 0 0 6px; | |
+ margin: 0 0 6px 0; | |
padding: 9px 14px; | |
overflow: hidden | |
} | |
@@ -1147,7 +1158,7 @@ | |
} | |
.customize-control-text.has-error input { | |
- outline: #dc3232 solid 2px | |
+ outline: 2px solid #dc3232 | |
} | |
#customize-controls #customize-notifications-area { | |
@@ -1250,15 +1261,14 @@ | |
position: relative | |
} | |
-#customize-control-show_on_front.has-error .customize-control-notifications-container, | |
-.customize-control .actions .button { | |
- margin-top: 12px | |
-} | |
- | |
#customize-control-show_on_front.has-error { | |
margin-bottom: 0 | |
} | |
+#customize-control-show_on_front.has-error .customize-control-notifications-container { | |
+ margin-top: 12px | |
+} | |
+ | |
.accordion-section .dropdown { | |
float: right; | |
display: block; | |
@@ -1292,7 +1302,7 @@ | |
.customize-control .dropdown-arrow:after { | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: block; | |
padding: 0; | |
@@ -1334,6 +1344,10 @@ | |
-webkit-overflow-scrolling: touch | |
} | |
+.customize-control .actions .button { | |
+ margin-top: 12px | |
+} | |
+ | |
.customize-control-header .actions, | |
.customize-control-header .uploaded { | |
margin-bottom: 18px | |
@@ -1436,11 +1450,6 @@ | |
border: 0 | |
} | |
-#customize-controls .customize-section-description-container.section-meta.customize-info, | |
-#customize-theme-controls .control-panel-themes { | |
- border-bottom: none | |
-} | |
- | |
.customize-control-header .uploaded .header-view .close { | |
font-size: 20px; | |
color: #fff; | |
@@ -1462,7 +1471,7 @@ | |
} | |
.customize-control-header .header-view .close:focus { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.customize-control-header .random.placeholder { | |
@@ -1601,6 +1610,10 @@ | |
height: 14em | |
} | |
+#customize-controls .customize-section-description-container.section-meta.customize-info { | |
+ border-bottom: none | |
+} | |
+ | |
#sub-accordion-section-custom_css .customize-control-notifications-container { | |
margin-bottom: 15px | |
} | |
@@ -1658,6 +1671,10 @@ | |
} | |
} | |
+#customize-theme-controls .control-panel-themes { | |
+ border-bottom: none | |
+} | |
+ | |
#customize-theme-controls .control-panel-themes>.accordion-section-title, | |
#customize-theme-controls .control-panel-themes>.accordion-section-title:hover { | |
cursor: default; | |
@@ -1667,7 +1684,7 @@ | |
border-bottom: 1px solid #ddd; | |
border-right: none; | |
border-left: none; | |
- margin: 0 0 15px; | |
+ margin: 0 0 15px 0; | |
padding-left: 100px | |
} | |
@@ -1699,11 +1716,6 @@ | |
font-weight: 400 | |
} | |
-.in-themes-panel.animating .control-panel-themes .filter-themes-count, | |
-.themes-filter-bar .feature-filter-toggle .filter-count-filters { | |
- display: none | |
-} | |
- | |
#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme { | |
position: absolute; | |
left: 10px; | |
@@ -1776,6 +1788,10 @@ | |
bottom: -45px | |
} | |
+.in-themes-panel.animating .control-panel-themes .filter-themes-count { | |
+ display: none | |
+} | |
+ | |
.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content { | |
bottom: 0 | |
} | |
@@ -1788,7 +1804,7 @@ | |
.themes-filter-bar .feature-filter-toggle:before { | |
content: "\f111"; | |
margin: 0 0 0 5px; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
vertical-align: text-bottom; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -1802,6 +1818,10 @@ | |
transform: translateY(1px) | |
} | |
+.themes-filter-bar .feature-filter-toggle .filter-count-filters { | |
+ display: none | |
+} | |
+ | |
.filter-drawer { | |
box-sizing: border-box; | |
width: 100%; | |
@@ -1823,8 +1843,10 @@ | |
} | |
@-webkit-keyframes themes-fade-in { | |
+ 0% { | |
+ opacity: 0 | |
+ } | |
- 0%, | |
50% { | |
opacity: 0 | |
} | |
@@ -1835,8 +1857,10 @@ | |
} | |
@keyframes themes-fade-in { | |
+ 0% { | |
+ opacity: 0 | |
+ } | |
- 0%, | |
50% { | |
opacity: 0 | |
} | |
@@ -1872,7 +1896,7 @@ | |
} | |
.control-panel-themes .customize-themes-notifications .notice { | |
- margin: 0 0 25px | |
+ margin: 0 0 25px 0 | |
} | |
.customize-themes-full-container .customize-themes-section { | |
@@ -1886,7 +1910,7 @@ | |
.control-section .customize-section-text-before { | |
padding: 0 15px 8px 0; | |
- margin: 15px 0 0; | |
+ margin: 15px 0 0 0; | |
line-height: 16px; | |
border-bottom: 1px solid #ddd; | |
color: #555d66 | |
@@ -1978,7 +2002,6 @@ | |
margin-top: 50px | |
} | |
-.control-panel-themes .customize-themes-mobile-back, | |
.customize-themes-section .no-themes, | |
.customize-themes-section .no-themes-local { | |
display: none | |
@@ -2102,7 +2125,7 @@ | |
position: relative; | |
right: 0; | |
width: 100%; | |
- margin: 0 0 25px | |
+ margin: 0 0 25px 0 | |
} | |
.filter-drawer { | |
@@ -2155,6 +2178,10 @@ | |
} | |
} | |
+.control-panel-themes .customize-themes-mobile-back { | |
+ display: none | |
+} | |
+ | |
@media screen and (max-width:600px) { | |
.filter-drawer { | |
top: 132px | |
@@ -2208,7 +2235,7 @@ | |
width: 26px; | |
display: block; | |
line-height: 46px; | |
- padding: 0 8px; | |
+ padding: 0 8px 0 8px; | |
border-left: 1px solid #ddd | |
} | |
@@ -2230,11 +2257,6 @@ | |
} | |
} | |
-.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content, | |
-.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { | |
- overflow: visible | |
-} | |
- | |
.wp-customizer .theme-overlay { | |
display: none | |
} | |
@@ -2254,6 +2276,10 @@ | |
z-index: -1 | |
} | |
+.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow: visible | |
+} | |
+ | |
.wp-customizer .theme-overlay .theme-backdrop { | |
background: rgba(238, 238, 238, .75); | |
position: fixed; | |
@@ -2295,6 +2321,10 @@ | |
position: absolute | |
} | |
+.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { | |
+ overflow: visible | |
+} | |
+ | |
.wp-customizer .theme-header { | |
background: #eee | |
} | |
@@ -2359,8 +2389,9 @@ | |
color: #555d66; | |
font-size: 24px; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
- margin: 30px 0 0; | |
- padding: 0 0 7px | |
+ margin: 30px 0 0 0; | |
+ padding: 0; | |
+ padding-bottom: 7px | |
} | |
body.cheatin p { | |
@@ -2373,7 +2404,8 @@ | |
#customize-theme-controls .add-new-widget { | |
cursor: pointer; | |
float: left; | |
- margin: 0 10px 0 0; | |
+ margin: 0; | |
+ margin-right: 10px; | |
transition: all .2s; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
@@ -2397,7 +2429,7 @@ | |
position: relative; | |
right: -2px; | |
top: 0; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
transition: all .2s; | |
-webkit-font-smoothing: antialiased; | |
@@ -2453,7 +2485,7 @@ | |
left: 0; | |
width: 100%; | |
height: 100%; | |
- font: 400 20px/43px dashicons; | |
+ font: normal 20px/43px dashicons; | |
text-align: center; | |
text-indent: 0; | |
-webkit-font-smoothing: antialiased; | |
@@ -2619,7 +2651,7 @@ | |
#available-menu-items-search .clear-results:before, | |
#available-widgets-filter .clear-results:before { | |
content: "\f335"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2641,7 +2673,7 @@ | |
#available-widgets-filter .search-icon:after, | |
.themes-filter-bar .search-icon:after { | |
content: "\f179"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -2727,8 +2759,8 @@ | |
margin-right: -32px | |
} | |
- .customize-control input[type=radio]+label+br, | |
- .customize-control input[type=checkbox]+label+br { | |
+ .customize-control input[type=checkbox]+label+br, | |
+ .customize-control input[type=radio]+label+br { | |
line-height: 32px | |
} | |
@@ -2822,7 +2854,7 @@ | |
.customize-controls-preview-toggle .controls:before, | |
.customize-controls-preview-toggle .preview:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f177"; | |
position: relative; | |
top: 4px; | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-nav-menus.min.css build-unminified/wp-admin/css/customize-nav-menus.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-nav-menus.min.css 2018-10-05 18:07:03.322616012 -0500 | |
+++ build-unminified/wp-admin/css/customize-nav-menus.min.css 2018-10-05 18:07:20.046731264 -0500 | |
@@ -1,9 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description, | |
-.wp-customizer .menu-item-settings p.description { | |
- font-style: normal | |
-} | |
- | |
#customize-theme-controls #accordion-section-menu_locations { | |
position: relative; | |
margin-top: 30px | |
@@ -17,7 +12,11 @@ | |
#customize-theme-controls .customize-section-title-menu_locations-description, | |
#customize-theme-controls .customize-section-title-menu_locations-heading, | |
#customize-theme-controls .customize-section-title-nav_menus-heading { | |
- padding: 0 12px | |
+ padding: 0 12px 0 12px | |
+} | |
+ | |
+#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description { | |
+ font-style: normal | |
} | |
.menu-in-location, | |
@@ -99,7 +98,7 @@ | |
.wp-customizer .menu-item-settings .description-thin { | |
width: 100%; | |
height: auto; | |
- margin: 0 0 8px | |
+ margin: 0 0 8px 0 | |
} | |
.wp-customizer .menu-item-settings input[type=text] { | |
@@ -147,7 +146,6 @@ | |
display: none | |
} | |
-.menu-location-settings .new-menu-locations-widget-note, | |
.reordering .menu-item-reorder-nav { | |
display: block | |
} | |
@@ -175,8 +173,12 @@ | |
content: "\f142" | |
} | |
+.wp-customizer .menu-item-settings p.description { | |
+ font-style: normal | |
+} | |
+ | |
.wp-customizer .menu-settings dl { | |
- margin: 12px 0 0; | |
+ margin: 12px 0 0 0; | |
padding: 0 | |
} | |
@@ -216,6 +218,10 @@ | |
vertical-align: top | |
} | |
+.menu-location-settings .new-menu-locations-widget-note { | |
+ display: block | |
+} | |
+ | |
.customize-control-menu { | |
margin-top: 4px | |
} | |
@@ -310,7 +316,7 @@ | |
speak: none; | |
border-radius: 50%; | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-decoration: none !important | |
@@ -623,7 +629,7 @@ | |
top: 9px; | |
left: 5px; | |
border-radius: 50%; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
@@ -732,8 +738,8 @@ | |
} | |
#available-menu-items .accordion-section-content .available-menu-items-list { | |
- margin: 0 0 45px; | |
- padding: 1px 15px 15px | |
+ margin: 0 0 45px 0; | |
+ padding: 1px 15px 15px 15px | |
} | |
#available-menu-items .accordion-section-content .available-menu-items-list:only-child { | |
@@ -741,7 +747,7 @@ | |
} | |
#new-custom-menu-item .accordion-section-content { | |
- padding: 0 15px 15px | |
+ padding: 0 15px 15px 15px | |
} | |
#available-menu-items .menu-item-tpl { | |
@@ -767,7 +773,10 @@ | |
} | |
#available-menu-items .menu-item-handle { | |
- cursor: pointer; | |
+ cursor: pointer | |
+} | |
+ | |
+#available-menu-items .menu-item-handle { | |
box-shadow: none; | |
margin-top: -1px | |
} | |
@@ -806,7 +815,7 @@ | |
display: inline-block; | |
height: 20px; | |
border-radius: 50%; | |
- font: 400 20px/1.05 dashicons | |
+ font: normal 20px/1.05 dashicons | |
} | |
#available-menu-items .menu-item-handle.item-added .item-add:focus, | |
@@ -938,7 +947,7 @@ | |
#create-new-menu-submit { | |
float: right; | |
- margin: 0 0 12px | |
+ margin: 0 0 12px 0 | |
} | |
.menu-delete-item { | |
@@ -948,7 +957,7 @@ | |
} | |
.assigned-menu-locations-title p { | |
- margin: 0 0 8px | |
+ margin: 0 0 8px 0 | |
} | |
li.assigned-to-menu-location .menu-delete-item { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-nav-menus-rtl.min.css build-unminified/wp-admin/css/customize-nav-menus-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-nav-menus-rtl.min.css 2018-10-05 18:06:58.714584266 -0500 | |
+++ build-unminified/wp-admin/css/customize-nav-menus-rtl.min.css 2018-10-05 18:07:15.466699696 -0500 | |
@@ -1,9 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description, | |
-.wp-customizer .menu-item-settings p.description { | |
- font-style: normal | |
-} | |
- | |
#customize-theme-controls #accordion-section-menu_locations { | |
position: relative; | |
margin-top: 30px | |
@@ -17,7 +12,11 @@ | |
#customize-theme-controls .customize-section-title-menu_locations-description, | |
#customize-theme-controls .customize-section-title-menu_locations-heading, | |
#customize-theme-controls .customize-section-title-nav_menus-heading { | |
- padding: 0 12px | |
+ padding: 0 12px 0 12px | |
+} | |
+ | |
+#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description { | |
+ font-style: normal | |
} | |
.menu-in-location, | |
@@ -99,7 +98,7 @@ | |
.wp-customizer .menu-item-settings .description-thin { | |
width: 100%; | |
height: auto; | |
- margin: 0 0 8px | |
+ margin: 0 0 8px 0 | |
} | |
.wp-customizer .menu-item-settings input[type=text] { | |
@@ -147,7 +146,6 @@ | |
display: none | |
} | |
-.menu-location-settings .new-menu-locations-widget-note, | |
.reordering .menu-item-reorder-nav { | |
display: block | |
} | |
@@ -175,8 +173,12 @@ | |
content: "\f142" | |
} | |
+.wp-customizer .menu-item-settings p.description { | |
+ font-style: normal | |
+} | |
+ | |
.wp-customizer .menu-settings dl { | |
- margin: 12px 0 0; | |
+ margin: 12px 0 0 0; | |
padding: 0 | |
} | |
@@ -216,6 +218,10 @@ | |
vertical-align: top | |
} | |
+.menu-location-settings .new-menu-locations-widget-note { | |
+ display: block | |
+} | |
+ | |
.customize-control-menu { | |
margin-top: 4px | |
} | |
@@ -310,7 +316,7 @@ | |
speak: none; | |
border-radius: 50%; | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-decoration: none !important | |
@@ -623,7 +629,7 @@ | |
top: 9px; | |
right: 5px; | |
border-radius: 50%; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
@@ -732,8 +738,8 @@ | |
} | |
#available-menu-items .accordion-section-content .available-menu-items-list { | |
- margin: 0 0 45px; | |
- padding: 1px 15px 15px | |
+ margin: 0 0 45px 0; | |
+ padding: 1px 15px 15px 15px | |
} | |
#available-menu-items .accordion-section-content .available-menu-items-list:only-child { | |
@@ -741,7 +747,7 @@ | |
} | |
#new-custom-menu-item .accordion-section-content { | |
- padding: 0 15px 15px | |
+ padding: 0 15px 15px 15px | |
} | |
#available-menu-items .menu-item-tpl { | |
@@ -767,7 +773,10 @@ | |
} | |
#available-menu-items .menu-item-handle { | |
- cursor: pointer; | |
+ cursor: pointer | |
+} | |
+ | |
+#available-menu-items .menu-item-handle { | |
box-shadow: none; | |
margin-top: -1px | |
} | |
@@ -806,7 +815,7 @@ | |
display: inline-block; | |
height: 20px; | |
border-radius: 50%; | |
- font: 400 20px/1.05 dashicons | |
+ font: normal 20px/1.05 dashicons | |
} | |
#available-menu-items .menu-item-handle.item-added .item-add:focus, | |
@@ -938,7 +947,7 @@ | |
#create-new-menu-submit { | |
float: left; | |
- margin: 0 0 12px | |
+ margin: 0 0 12px 0 | |
} | |
.menu-delete-item { | |
@@ -948,7 +957,7 @@ | |
} | |
.assigned-menu-locations-title p { | |
- margin: 0 0 8px | |
+ margin: 0 0 8px 0 | |
} | |
li.assigned-to-menu-location .menu-delete-item { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-widgets.min.css build-unminified/wp-admin/css/customize-widgets.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-widgets.min.css 2018-10-05 18:07:02.998613780 -0500 | |
+++ build-unminified/wp-admin/css/customize-widgets.min.css 2018-10-05 18:07:19.730729085 -0500 | |
@@ -1,5 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.control-section.control-section-sidebar .accordion-section-content.ui-sortable, | |
.wp-full-overlay-sidebar { | |
overflow: visible | |
} | |
@@ -10,6 +9,10 @@ | |
display: none | |
} | |
+.control-section.control-section-sidebar .accordion-section-content.ui-sortable { | |
+ overflow: visible | |
+} | |
+ | |
.customize-control-widget_form .widget-top { | |
background: #fff; | |
transition: opacity .5s | |
@@ -76,7 +79,7 @@ | |
} | |
.widget-inside { | |
- padding: 1px 10px 10px; | |
+ padding: 1px 10px 10px 10px; | |
border-top: none; | |
line-height: 16px | |
} | |
@@ -167,7 +170,7 @@ | |
position: absolute; | |
top: 12px; | |
left: 10px; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
@@ -277,7 +280,7 @@ | |
width: 20px; | |
height: 20px; | |
color: #32373c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
text-align: center; | |
box-sizing: border-box; | |
-webkit-font-smoothing: antialiased; | |
@@ -289,8 +292,8 @@ | |
top: -4px | |
} | |
-#available-widgets [class*=super] .widget-title:before, | |
-#available-widgets [class*=like] .widget-title:before { | |
+#available-widgets [class*=like] .widget-title:before, | |
+#available-widgets [class*=super] .widget-title:before { | |
content: "\f155"; | |
top: -4px | |
} | |
@@ -309,9 +312,9 @@ | |
top: -4px | |
} | |
+#available-widgets [class*=chat] .widget-title:before, | |
#available-widgets [class*=comment] .widget-title:before, | |
-#available-widgets [class*=testimonial] .widget-title:before, | |
-#available-widgets [class*=chat] .widget-title:before { | |
+#available-widgets [class*=testimonial] .widget-title:before { | |
content: "\f101" | |
} | |
@@ -349,16 +352,16 @@ | |
top: -6px | |
} | |
-#available-widgets [class*=event] .widget-title:before, | |
-#available-widgets [class*=calendar] .widget-title:before { | |
+#available-widgets [class*=calendar] .widget-title:before, | |
+#available-widgets [class*=event] .widget-title:before { | |
content: "\f145"; | |
top: -4px | |
} | |
#available-widgets [class*=image] .widget-title:before, | |
+#available-widgets [class*=instagram] .widget-title:before, | |
#available-widgets [class*=photo] .widget-title:before, | |
-#available-widgets [class*=slide] .widget-title:before, | |
-#available-widgets [class*=instagram] .widget-title:before { | |
+#available-widgets [class*=slide] .widget-title:before { | |
content: "\f128" | |
} | |
@@ -367,42 +370,42 @@ | |
content: "\f161" | |
} | |
-#available-widgets [class*=video] .widget-title:before, | |
-#available-widgets [class*=tube] .widget-title:before { | |
+#available-widgets [class*=tube] .widget-title:before, | |
+#available-widgets [class*=video] .widget-title:before { | |
content: "\f126" | |
} | |
+#available-widgets [class*=audio] .widget-title:before, | |
#available-widgets [class*=music] .widget-title:before, | |
-#available-widgets [class*=radio] .widget-title:before, | |
-#available-widgets [class*=audio] .widget-title:before { | |
+#available-widgets [class*=radio] .widget-title:before { | |
content: "\f127" | |
} | |
+#available-widgets [class*=avatar] .widget-title:before, | |
+#available-widgets [class*=grofile] .widget-title:before, | |
#available-widgets [class*=login] .widget-title:before, | |
-#available-widgets [class*=user] .widget-title:before, | |
#available-widgets [class*=member] .widget-title:before, | |
-#available-widgets [class*=avatar] .widget-title:before, | |
-#available-widgets [class*=subscriber] .widget-title:before, | |
#available-widgets [class*=profile] .widget-title:before, | |
-#available-widgets [class*=grofile] .widget-title:before { | |
+#available-widgets [class*=subscriber] .widget-title:before, | |
+#available-widgets [class*=user] .widget-title:before { | |
content: "\f110" | |
} | |
+#available-widgets [class*=cart] .widget-title:before, | |
#available-widgets [class*=commerce] .widget-title:before, | |
-#available-widgets [class*=shop] .widget-title:before, | |
-#available-widgets [class*=cart] .widget-title:before { | |
+#available-widgets [class*=shop] .widget-title:before { | |
content: "\f174"; | |
top: -4px | |
} | |
-#available-widgets [class*=secur] .widget-title:before, | |
-#available-widgets [class*=firewall] .widget-title:before { | |
+#available-widgets [class*=firewall] .widget-title:before, | |
+#available-widgets [class*=secur] .widget-title:before { | |
content: "\f332" | |
} | |
#available-widgets [class*=analytic] .widget-title:before, | |
-#available-widgets [class*=stat] .widget-title:before, | |
-#available-widgets [class*=poll] .widget-title:before { | |
+#available-widgets [class*=poll] .widget-title:before, | |
+#available-widgets [class*=stat] .widget-title:before { | |
content: "\f185" | |
} | |
@@ -410,10 +413,10 @@ | |
content: "\f175" | |
} | |
-#available-widgets [class*=subscribe] .widget-title:before, | |
-#available-widgets [class*=news] .widget-title:before, | |
#available-widgets [class*=contact] .widget-title:before, | |
-#available-widgets [class*=mail] .widget-title:before { | |
+#available-widgets [class*=mail] .widget-title:before, | |
+#available-widgets [class*=news] .widget-title:before, | |
+#available-widgets [class*=subscribe] .widget-title:before { | |
content: "\f466" | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/customize-widgets-rtl.min.css build-unminified/wp-admin/css/customize-widgets-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/customize-widgets-rtl.min.css 2018-10-05 18:07:01.686604741 -0500 | |
+++ build-unminified/wp-admin/css/customize-widgets-rtl.min.css 2018-10-05 18:07:18.430720125 -0500 | |
@@ -1,5 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.control-section.control-section-sidebar .accordion-section-content.ui-sortable, | |
.wp-full-overlay-sidebar { | |
overflow: visible | |
} | |
@@ -10,6 +9,10 @@ | |
display: none | |
} | |
+.control-section.control-section-sidebar .accordion-section-content.ui-sortable { | |
+ overflow: visible | |
+} | |
+ | |
.customize-control-widget_form .widget-top { | |
background: #fff; | |
transition: opacity .5s | |
@@ -76,7 +79,7 @@ | |
} | |
.widget-inside { | |
- padding: 1px 10px 10px; | |
+ padding: 1px 10px 10px 10px; | |
border-top: none; | |
line-height: 16px | |
} | |
@@ -167,7 +170,7 @@ | |
position: absolute; | |
top: 12px; | |
right: 10px; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
@@ -277,7 +280,7 @@ | |
width: 20px; | |
height: 20px; | |
color: #32373c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
text-align: center; | |
box-sizing: border-box; | |
-webkit-font-smoothing: antialiased; | |
@@ -289,8 +292,8 @@ | |
top: -4px | |
} | |
-#available-widgets [class*=super] .widget-title:before, | |
-#available-widgets [class*=like] .widget-title:before { | |
+#available-widgets [class*=like] .widget-title:before, | |
+#available-widgets [class*=super] .widget-title:before { | |
content: "\f155"; | |
top: -4px | |
} | |
@@ -309,9 +312,9 @@ | |
top: -4px | |
} | |
+#available-widgets [class*=chat] .widget-title:before, | |
#available-widgets [class*=comment] .widget-title:before, | |
-#available-widgets [class*=testimonial] .widget-title:before, | |
-#available-widgets [class*=chat] .widget-title:before { | |
+#available-widgets [class*=testimonial] .widget-title:before { | |
content: "\f101" | |
} | |
@@ -349,16 +352,16 @@ | |
top: -6px | |
} | |
-#available-widgets [class*=event] .widget-title:before, | |
-#available-widgets [class*=calendar] .widget-title:before { | |
+#available-widgets [class*=calendar] .widget-title:before, | |
+#available-widgets [class*=event] .widget-title:before { | |
content: "\f145"; | |
top: -4px | |
} | |
#available-widgets [class*=image] .widget-title:before, | |
+#available-widgets [class*=instagram] .widget-title:before, | |
#available-widgets [class*=photo] .widget-title:before, | |
-#available-widgets [class*=slide] .widget-title:before, | |
-#available-widgets [class*=instagram] .widget-title:before { | |
+#available-widgets [class*=slide] .widget-title:before { | |
content: "\f128" | |
} | |
@@ -367,42 +370,42 @@ | |
content: "\f161" | |
} | |
-#available-widgets [class*=video] .widget-title:before, | |
-#available-widgets [class*=tube] .widget-title:before { | |
+#available-widgets [class*=tube] .widget-title:before, | |
+#available-widgets [class*=video] .widget-title:before { | |
content: "\f126" | |
} | |
+#available-widgets [class*=audio] .widget-title:before, | |
#available-widgets [class*=music] .widget-title:before, | |
-#available-widgets [class*=radio] .widget-title:before, | |
-#available-widgets [class*=audio] .widget-title:before { | |
+#available-widgets [class*=radio] .widget-title:before { | |
content: "\f127" | |
} | |
+#available-widgets [class*=avatar] .widget-title:before, | |
+#available-widgets [class*=grofile] .widget-title:before, | |
#available-widgets [class*=login] .widget-title:before, | |
-#available-widgets [class*=user] .widget-title:before, | |
#available-widgets [class*=member] .widget-title:before, | |
-#available-widgets [class*=avatar] .widget-title:before, | |
-#available-widgets [class*=subscriber] .widget-title:before, | |
#available-widgets [class*=profile] .widget-title:before, | |
-#available-widgets [class*=grofile] .widget-title:before { | |
+#available-widgets [class*=subscriber] .widget-title:before, | |
+#available-widgets [class*=user] .widget-title:before { | |
content: "\f110" | |
} | |
+#available-widgets [class*=cart] .widget-title:before, | |
#available-widgets [class*=commerce] .widget-title:before, | |
-#available-widgets [class*=shop] .widget-title:before, | |
-#available-widgets [class*=cart] .widget-title:before { | |
+#available-widgets [class*=shop] .widget-title:before { | |
content: "\f174"; | |
top: -4px | |
} | |
-#available-widgets [class*=secur] .widget-title:before, | |
-#available-widgets [class*=firewall] .widget-title:before { | |
+#available-widgets [class*=firewall] .widget-title:before, | |
+#available-widgets [class*=secur] .widget-title:before { | |
content: "\f332" | |
} | |
#available-widgets [class*=analytic] .widget-title:before, | |
-#available-widgets [class*=stat] .widget-title:before, | |
-#available-widgets [class*=poll] .widget-title:before { | |
+#available-widgets [class*=poll] .widget-title:before, | |
+#available-widgets [class*=stat] .widget-title:before { | |
content: "\f185" | |
} | |
@@ -410,10 +413,10 @@ | |
content: "\f175" | |
} | |
-#available-widgets [class*=subscribe] .widget-title:before, | |
-#available-widgets [class*=news] .widget-title:before, | |
#available-widgets [class*=contact] .widget-title:before, | |
-#available-widgets [class*=mail] .widget-title:before { | |
+#available-widgets [class*=mail] .widget-title:before, | |
+#available-widgets [class*=news] .widget-title:before, | |
+#available-widgets [class*=subscribe] .widget-title:before { | |
content: "\f466" | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/dashboard.min.css build-unminified/wp-admin/css/dashboard.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/dashboard.min.css 2018-10-05 18:06:59.094586884 -0500 | |
+++ build-unminified/wp-admin/css/dashboard.min.css 2018-10-05 18:07:15.830702204 -0500 | |
@@ -1,10 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#dashboard_quick_press .draft-title, | |
-#the-comment-list td.comment, | |
-.dashboard-comment-wrap { | |
- word-wrap: break-word | |
-} | |
- | |
#wpbody-content #dashboard-widgets.columns-1 .postbox-container { | |
width: 100% | |
} | |
@@ -33,11 +27,14 @@ | |
float: right | |
} | |
-#dashboard-widgets .postbox-container, | |
#wpbody-content #dashboard-widgets.columns-4 .postbox-container { | |
width: 25% | |
} | |
+#dashboard-widgets .postbox-container { | |
+ width: 25% | |
+} | |
+ | |
#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { | |
border: none !important | |
} | |
@@ -55,7 +52,7 @@ | |
.ie8 #dashboard-widgets #postbox-container-3 .empty-container, | |
.ie8 #dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -92,6 +89,10 @@ | |
vertical-align: top | |
} | |
+#the-comment-list td.comment { | |
+ word-wrap: break-word | |
+} | |
+ | |
#the-comment-list td.comment img { | |
max-width: 100% | |
} | |
@@ -108,13 +109,6 @@ | |
line-height: 2.1em | |
} | |
-#dashboard_right_now .sub, | |
-.community-events li:first-child, | |
-.community-events li~li, | |
-.community-events-footer { | |
- border-top: 1px solid #eee | |
-} | |
- | |
.welcome-panel h2 { | |
margin: 0; | |
font-size: 21px; | |
@@ -225,7 +219,7 @@ | |
#dashboard_right_now li span:before, | |
.welcome-panel .welcome-icon:before { | |
color: #82878c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0 10px 0 0; | |
@@ -388,6 +382,14 @@ | |
color: #72777c | |
} | |
+.community-events li:first-child { | |
+ border-top: 1px solid #eee | |
+} | |
+ | |
+.community-events li~li { | |
+ border-top: 1px solid #eee | |
+} | |
+ | |
.community-events .activity-block.last { | |
border-bottom: 1px solid #eee; | |
padding-top: 0; | |
@@ -406,7 +408,7 @@ | |
} | |
.event-icon:before { | |
- color: #82878C; | |
+ color: #82878c; | |
font-size: 18px | |
} | |
@@ -432,15 +434,10 @@ | |
margin-top: 0; | |
margin-bottom: 0; | |
padding: 12px; | |
+ border-top: 1px solid #eee; | |
color: #ddd | |
} | |
-#dashboard_primary .rss-widget span, | |
-#dashboard_primary .rss-widget span.rss-date, | |
-.rssSummary { | |
- color: #72777c | |
-} | |
- | |
.community-events-footer .screen-reader-text { | |
height: inherit; | |
white-space: nowrap | |
@@ -456,7 +453,10 @@ | |
margin-bottom: 1em !important | |
} | |
-#dashboard_primary .inside .notice, | |
+#dashboard_primary .inside .notice { | |
+ margin: 0 | |
+} | |
+ | |
body #dashboard-widgets .postbox form .submit { | |
margin: 0 | |
} | |
@@ -466,12 +466,13 @@ | |
} | |
.rssSummary { | |
+ color: #72777c; | |
margin-top: 4px | |
} | |
#dashboard_primary .rss-widget { | |
font-size: 13px; | |
- padding: 0 12px | |
+ padding: 0 12px 0 | |
} | |
#dashboard_primary .rss-widget:last-child { | |
@@ -483,6 +484,11 @@ | |
font-weight: 400 | |
} | |
+#dashboard_primary .rss-widget span, | |
+#dashboard_primary .rss-widget span.rss-date { | |
+ color: #72777c | |
+} | |
+ | |
#dashboard_primary .rss-widget span.rss-date { | |
margin-left: 12px | |
} | |
@@ -537,7 +543,8 @@ | |
#dashboard_right_now .sub { | |
color: #555d66; | |
background: #f5f5f5; | |
- padding: 10px 12px 6px | |
+ border-top: 1px solid #eee; | |
+ padding: 10px 12px 6px 12px | |
} | |
#dashboard_right_now .sub h3 { | |
@@ -553,12 +560,6 @@ | |
color: #d54e21 | |
} | |
-#dashboard_quick_press .drafts li time, | |
-#title-wrap #title-prompt-text, | |
-.textarea-wrap #content-prompt-text { | |
- color: #72777c | |
-} | |
- | |
#dashboard_quick_press .inside { | |
margin: 0; | |
padding: 0 | |
@@ -601,10 +602,25 @@ | |
resize: vertical | |
} | |
+#dashboard-widgets .postbox form .submit { | |
+ margin: -39px 0; | |
+ float: right | |
+} | |
+ | |
#description-wrap { | |
margin-top: 12px | |
} | |
+#title-wrap #title-prompt-text, | |
+.textarea-wrap #content-prompt-text { | |
+ color: #72777c | |
+} | |
+ | |
+#title-wrap #title-prompt-text { | |
+ font-size: 1.1em; | |
+ padding: 7px 8px | |
+} | |
+ | |
.input-text-wrap, | |
.textarea-wrap { | |
position: relative | |
@@ -656,11 +672,19 @@ | |
margin-bottom: 1em | |
} | |
+#dashboard_quick_press .drafts li time { | |
+ color: #72777c | |
+} | |
+ | |
#dashboard_quick_press .drafts p { | |
margin: 0; | |
word-wrap: break-word | |
} | |
+#dashboard_quick_press .draft-title { | |
+ word-wrap: break-word | |
+} | |
+ | |
#dashboard_quick_press .draft-title a, | |
#dashboard_quick_press .draft-title time { | |
margin: 0 5px 0 0 | |
@@ -718,7 +742,7 @@ | |
#dashboard_activity .no-activity .smiley:before { | |
content: "\f328"; | |
- font: 400 120px/1 dashicons; | |
+ font: normal 120px/1 dashicons; | |
speak: none; | |
display: block; | |
margin: 0 5px 0 0; | |
@@ -802,7 +826,7 @@ | |
} | |
#activity-widget #the-comment-list .comment-item p.row-actions { | |
- margin: 4px 0 0 | |
+ margin: 4px 0 0 0 | |
} | |
#activity-widget #the-comment-list .comment-item:first-child { | |
@@ -847,7 +871,10 @@ | |
opacity: 1 | |
} | |
-#dashboard-widgets form .input-text-wrap input, | |
+#dashboard-widgets form .input-text-wrap input { | |
+ width: 100% | |
+} | |
+ | |
#dashboard-widgets form .textarea-wrap textarea { | |
width: 100% | |
} | |
@@ -868,8 +895,7 @@ | |
text-decoration: none | |
} | |
-#dashboard-widgets h2 a, | |
-#dashboard_browser_nag a { | |
+#dashboard-widgets h2 a { | |
text-decoration: underline | |
} | |
@@ -984,13 +1010,17 @@ | |
content: "\2014" | |
} | |
+.dashboard-comment-wrap { | |
+ word-wrap: break-word | |
+} | |
+ | |
#dashboard_browser_nag a.update-browser-link { | |
font-size: 1.2em; | |
font-weight: 600 | |
} | |
#dashboard_browser_nag a { | |
- color: #fff | |
+ text-decoration: underline | |
} | |
#dashboard_browser_nag p.browser-update-nag.has-browser-icon { | |
@@ -1021,11 +1051,15 @@ | |
#dashboard_browser_nag.postbox h2 { | |
border-bottom-color: #f6e2ac; | |
- background: 0 0; | |
+ background: transparent none; | |
color: #fff; | |
box-shadow: none | |
} | |
+#dashboard_browser_nag a { | |
+ color: #fff | |
+} | |
+ | |
#dashboard_browser_nag h2.hndle { | |
border: none; | |
font-weight: 600; | |
@@ -1050,15 +1084,6 @@ | |
} | |
@media only screen and (min-width:800px) and (max-width:1499px) { | |
- | |
- #dashboard-widgets #postbox-container-3 .empty-container, | |
- #dashboard-widgets #postbox-container-4 .empty-container, | |
- #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { | |
- border: 0; | |
- height: 0; | |
- min-height: 0 | |
- } | |
- | |
#wpbody-content #dashboard-widgets .postbox-container { | |
width: 49.5% | |
} | |
@@ -1070,6 +1095,13 @@ | |
width: 50.5% | |
} | |
+ #dashboard-widgets #postbox-container-3 .empty-container, | |
+ #dashboard-widgets #postbox-container-4 .empty-container { | |
+ border: 0 none; | |
+ height: 0; | |
+ min-height: 0 | |
+ } | |
+ | |
#dashboard-widgets #postbox-container-3 .empty-container:after, | |
#dashboard-widgets #postbox-container-4 .empty-container:after { | |
display: none | |
@@ -1079,6 +1111,12 @@ | |
width: 100% | |
} | |
+ #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { | |
+ border: 0 none; | |
+ height: 0; | |
+ min-height: 0 | |
+ } | |
+ | |
.index-php .columns-prefs, | |
.index-php .screen-layout { | |
display: block | |
@@ -1109,7 +1147,7 @@ | |
} | |
#dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1204,7 +1242,10 @@ | |
} | |
.event-icon, | |
- .event-icon[aria-hidden=true], | |
+ .event-icon[aria-hidden=true] { | |
+ display: table-cell | |
+ } | |
+ | |
.event-info-inner { | |
display: table-cell | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/dashboard-rtl.min.css build-unminified/wp-admin/css/dashboard-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/dashboard-rtl.min.css 2018-10-05 18:06:58.066579802 -0500 | |
+++ build-unminified/wp-admin/css/dashboard-rtl.min.css 2018-10-05 18:07:14.778694954 -0500 | |
@@ -1,10 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#dashboard_quick_press .draft-title, | |
-#the-comment-list td.comment, | |
-.dashboard-comment-wrap { | |
- word-wrap: break-word | |
-} | |
- | |
#wpbody-content #dashboard-widgets.columns-1 .postbox-container { | |
width: 100% | |
} | |
@@ -33,11 +27,14 @@ | |
float: left | |
} | |
-#dashboard-widgets .postbox-container, | |
#wpbody-content #dashboard-widgets.columns-4 .postbox-container { | |
width: 25% | |
} | |
+#dashboard-widgets .postbox-container { | |
+ width: 25% | |
+} | |
+ | |
#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { | |
border: none !important | |
} | |
@@ -55,7 +52,7 @@ | |
.ie8 #dashboard-widgets #postbox-container-3 .empty-container, | |
.ie8 #dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -92,6 +89,10 @@ | |
vertical-align: top | |
} | |
+#the-comment-list td.comment { | |
+ word-wrap: break-word | |
+} | |
+ | |
#the-comment-list td.comment img { | |
max-width: 100% | |
} | |
@@ -108,13 +109,6 @@ | |
line-height: 2.1em | |
} | |
-#dashboard_right_now .sub, | |
-.community-events li:first-child, | |
-.community-events li~li, | |
-.community-events-footer { | |
- border-top: 1px solid #eee | |
-} | |
- | |
.welcome-panel h2 { | |
margin: 0; | |
font-size: 21px; | |
@@ -225,7 +219,7 @@ | |
#dashboard_right_now li span:before, | |
.welcome-panel .welcome-icon:before { | |
color: #82878c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0 0 0 10px; | |
@@ -388,6 +382,14 @@ | |
color: #72777c | |
} | |
+.community-events li:first-child { | |
+ border-top: 1px solid #eee | |
+} | |
+ | |
+.community-events li~li { | |
+ border-top: 1px solid #eee | |
+} | |
+ | |
.community-events .activity-block.last { | |
border-bottom: 1px solid #eee; | |
padding-top: 0; | |
@@ -406,7 +408,7 @@ | |
} | |
.event-icon:before { | |
- color: #82878C; | |
+ color: #82878c; | |
font-size: 18px | |
} | |
@@ -432,15 +434,10 @@ | |
margin-top: 0; | |
margin-bottom: 0; | |
padding: 12px; | |
+ border-top: 1px solid #eee; | |
color: #ddd | |
} | |
-#dashboard_primary .rss-widget span, | |
-#dashboard_primary .rss-widget span.rss-date, | |
-.rssSummary { | |
- color: #72777c | |
-} | |
- | |
.community-events-footer .screen-reader-text { | |
height: inherit; | |
white-space: nowrap | |
@@ -456,7 +453,10 @@ | |
margin-bottom: 1em !important | |
} | |
-#dashboard_primary .inside .notice, | |
+#dashboard_primary .inside .notice { | |
+ margin: 0 | |
+} | |
+ | |
body #dashboard-widgets .postbox form .submit { | |
margin: 0 | |
} | |
@@ -466,12 +466,13 @@ | |
} | |
.rssSummary { | |
+ color: #72777c; | |
margin-top: 4px | |
} | |
#dashboard_primary .rss-widget { | |
font-size: 13px; | |
- padding: 0 12px | |
+ padding: 0 12px 0 | |
} | |
#dashboard_primary .rss-widget:last-child { | |
@@ -483,6 +484,11 @@ | |
font-weight: 400 | |
} | |
+#dashboard_primary .rss-widget span, | |
+#dashboard_primary .rss-widget span.rss-date { | |
+ color: #72777c | |
+} | |
+ | |
#dashboard_primary .rss-widget span.rss-date { | |
margin-right: 12px | |
} | |
@@ -537,7 +543,8 @@ | |
#dashboard_right_now .sub { | |
color: #555d66; | |
background: #f5f5f5; | |
- padding: 10px 12px 6px | |
+ border-top: 1px solid #eee; | |
+ padding: 10px 12px 6px 12px | |
} | |
#dashboard_right_now .sub h3 { | |
@@ -553,12 +560,6 @@ | |
color: #d54e21 | |
} | |
-#dashboard_quick_press .drafts li time, | |
-#title-wrap #title-prompt-text, | |
-.textarea-wrap #content-prompt-text { | |
- color: #72777c | |
-} | |
- | |
#dashboard_quick_press .inside { | |
margin: 0; | |
padding: 0 | |
@@ -601,10 +602,25 @@ | |
resize: vertical | |
} | |
+#dashboard-widgets .postbox form .submit { | |
+ margin: -39px 0; | |
+ float: left | |
+} | |
+ | |
#description-wrap { | |
margin-top: 12px | |
} | |
+#title-wrap #title-prompt-text, | |
+.textarea-wrap #content-prompt-text { | |
+ color: #72777c | |
+} | |
+ | |
+#title-wrap #title-prompt-text { | |
+ font-size: 1.1em; | |
+ padding: 7px 8px | |
+} | |
+ | |
.input-text-wrap, | |
.textarea-wrap { | |
position: relative | |
@@ -656,11 +672,19 @@ | |
margin-bottom: 1em | |
} | |
+#dashboard_quick_press .drafts li time { | |
+ color: #72777c | |
+} | |
+ | |
#dashboard_quick_press .drafts p { | |
margin: 0; | |
word-wrap: break-word | |
} | |
+#dashboard_quick_press .draft-title { | |
+ word-wrap: break-word | |
+} | |
+ | |
#dashboard_quick_press .draft-title a, | |
#dashboard_quick_press .draft-title time { | |
margin: 0 0 0 5px | |
@@ -718,7 +742,7 @@ | |
#dashboard_activity .no-activity .smiley:before { | |
content: "\f328"; | |
- font: 400 120px/1 dashicons; | |
+ font: normal 120px/1 dashicons; | |
speak: none; | |
display: block; | |
margin: 0 0 0 5px; | |
@@ -802,7 +826,7 @@ | |
} | |
#activity-widget #the-comment-list .comment-item p.row-actions { | |
- margin: 4px 0 0 | |
+ margin: 4px 0 0 0 | |
} | |
#activity-widget #the-comment-list .comment-item:first-child { | |
@@ -847,7 +871,10 @@ | |
opacity: 1 | |
} | |
-#dashboard-widgets form .input-text-wrap input, | |
+#dashboard-widgets form .input-text-wrap input { | |
+ width: 100% | |
+} | |
+ | |
#dashboard-widgets form .textarea-wrap textarea { | |
width: 100% | |
} | |
@@ -868,8 +895,7 @@ | |
text-decoration: none | |
} | |
-#dashboard-widgets h2 a, | |
-#dashboard_browser_nag a { | |
+#dashboard-widgets h2 a { | |
text-decoration: underline | |
} | |
@@ -984,13 +1010,17 @@ | |
content: "\2014" | |
} | |
+.dashboard-comment-wrap { | |
+ word-wrap: break-word | |
+} | |
+ | |
#dashboard_browser_nag a.update-browser-link { | |
font-size: 1.2em; | |
font-weight: 600 | |
} | |
#dashboard_browser_nag a { | |
- color: #fff | |
+ text-decoration: underline | |
} | |
#dashboard_browser_nag p.browser-update-nag.has-browser-icon { | |
@@ -1021,11 +1051,15 @@ | |
#dashboard_browser_nag.postbox h2 { | |
border-bottom-color: #f6e2ac; | |
- background: 0 0; | |
+ background: transparent none; | |
color: #fff; | |
box-shadow: none | |
} | |
+#dashboard_browser_nag a { | |
+ color: #fff | |
+} | |
+ | |
#dashboard_browser_nag h2.hndle { | |
border: none; | |
font-weight: 600; | |
@@ -1050,15 +1084,6 @@ | |
} | |
@media only screen and (min-width:800px) and (max-width:1499px) { | |
- | |
- #dashboard-widgets #postbox-container-3 .empty-container, | |
- #dashboard-widgets #postbox-container-4 .empty-container, | |
- #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { | |
- border: 0; | |
- height: 0; | |
- min-height: 0 | |
- } | |
- | |
#wpbody-content #dashboard-widgets .postbox-container { | |
width: 49.5% | |
} | |
@@ -1070,6 +1095,13 @@ | |
width: 50.5% | |
} | |
+ #dashboard-widgets #postbox-container-3 .empty-container, | |
+ #dashboard-widgets #postbox-container-4 .empty-container { | |
+ border: 0 none; | |
+ height: 0; | |
+ min-height: 0 | |
+ } | |
+ | |
#dashboard-widgets #postbox-container-3 .empty-container:after, | |
#dashboard-widgets #postbox-container-4 .empty-container:after { | |
display: none | |
@@ -1079,6 +1111,12 @@ | |
width: 100% | |
} | |
+ #wpbody #wpbody-content .metabox-holder.columns-1 .postbox-container .empty-container { | |
+ border: 0 none; | |
+ height: 0; | |
+ min-height: 0 | |
+ } | |
+ | |
.index-php .columns-prefs, | |
.index-php .screen-layout { | |
display: block | |
@@ -1109,7 +1147,7 @@ | |
} | |
#dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1204,7 +1242,10 @@ | |
} | |
.event-icon, | |
- .event-icon[aria-hidden=true], | |
+ .event-icon[aria-hidden=true] { | |
+ display: table-cell | |
+ } | |
+ | |
.event-info-inner { | |
display: table-cell | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/deprecated-media.min.css build-unminified/wp-admin/css/deprecated-media.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/deprecated-media.min.css 2018-10-05 18:06:57.818578094 -0500 | |
+++ build-unminified/wp-admin/css/deprecated-media.min.css 2018-10-05 18:07:14.538693300 -0500 | |
@@ -1,14 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#sidemenu, | |
-th { | |
- position: relative | |
-} | |
- | |
-#sidemenu a, | |
-#sort-buttons a { | |
- text-decoration: none | |
-} | |
- | |
div#media-upload-header { | |
margin: 0; | |
padding: 5px 5px 0; | |
@@ -21,6 +11,7 @@ | |
#sidemenu { | |
overflow: hidden; | |
float: none; | |
+ position: relative; | |
left: 0; | |
bottom: -1px; | |
margin: 0 5px; | |
@@ -38,6 +29,7 @@ | |
border-top: 1px solid #f9f9f9; | |
border-bottom: 1px solid #ddd; | |
background-color: #f9f9f9; | |
+ text-decoration: none; | |
transition: none | |
} | |
@@ -77,10 +69,7 @@ | |
.media-upload-form label.form-help, | |
td.help { | |
- color: #72777c; | |
- font-family: sans-serif; | |
- font-style: italic; | |
- font-weight: 400 | |
+ color: #72777c | |
} | |
form { | |
@@ -91,6 +80,17 @@ | |
text-align: right | |
} | |
+th { | |
+ position: relative | |
+} | |
+ | |
+.media-upload-form label.form-help, | |
+td.help { | |
+ font-family: sans-serif; | |
+ font-style: italic; | |
+ font-weight: 400 | |
+} | |
+ | |
.media-upload-form p.help { | |
margin: 0; | |
padding: 0 | |
@@ -100,24 +100,24 @@ | |
width: 100%; | |
border: none; | |
text-align: justify; | |
- margin: 0 0 1em; | |
+ margin: 0 0 1em 0; | |
padding: 0 | |
} | |
.image-align-none-label { | |
- background: url(../images/align-none.png) center left no-repeat | |
+ background: url(../images/align-none.png) no-repeat center left | |
} | |
.image-align-left-label { | |
- background: url(../images/align-left.png) center left no-repeat | |
+ background: url(../images/align-left.png) no-repeat center left | |
} | |
.image-align-center-label { | |
- background: url(../images/align-center.png) center left no-repeat | |
+ background: url(../images/align-center.png) no-repeat center left | |
} | |
.image-align-right-label { | |
- background: url(../images/align-right.png) center left no-repeat | |
+ background: url(../images/align-right.png) no-repeat center left | |
} | |
tr.image-size td { | |
@@ -267,15 +267,11 @@ | |
padding: 5px 5px 5px 0 | |
} | |
-#gallery-settings .title, | |
-h4.media-sub-title { | |
- border-bottom: 1px solid #ddd; | |
- padding: 0 0 3px | |
-} | |
- | |
#gallery-settings .title { | |
clear: both; | |
- font-size: 1.6em | |
+ padding: 0 0 3px; | |
+ font-size: 1.6em; | |
+ border-bottom: 1px solid #ddd | |
} | |
h3.media-title { | |
@@ -283,8 +279,10 @@ | |
} | |
h4.media-sub-title { | |
+ border-bottom: 1px solid #ddd; | |
font-size: 1.3em; | |
- margin: 12px | |
+ margin: 12px; | |
+ padding: 0 0 3px | |
} | |
#gallery-settings .title, | |
@@ -292,7 +290,7 @@ | |
h4.media-sub-title { | |
font-family: Georgia, "Times New Roman", Times, serif; | |
font-weight: 400; | |
- color: #5A5A5A | |
+ color: #5a5a5a | |
} | |
#gallery-settings .describe td { | |
@@ -348,6 +346,10 @@ | |
max-width: 625px | |
} | |
+#sort-buttons a { | |
+ text-decoration: none | |
+} | |
+ | |
#sort-buttons #asc, | |
#sort-buttons #showall { | |
padding-left: 5px | |
diff -ru build-before-upgrades-unminified/wp-admin/css/deprecated-media-rtl.min.css build-unminified/wp-admin/css/deprecated-media-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/deprecated-media-rtl.min.css 2018-10-05 18:07:01.578603997 -0500 | |
+++ build-unminified/wp-admin/css/deprecated-media-rtl.min.css 2018-10-05 18:07:18.318719353 -0500 | |
@@ -1,14 +1,4 @@ | |
/*! This file is auto-generated */ | |
-#sidemenu, | |
-th { | |
- position: relative | |
-} | |
- | |
-#sidemenu a, | |
-#sort-buttons a { | |
- text-decoration: none | |
-} | |
- | |
div#media-upload-header { | |
margin: 0; | |
padding: 5px 5px 0; | |
@@ -21,6 +11,7 @@ | |
#sidemenu { | |
overflow: hidden; | |
float: none; | |
+ position: relative; | |
right: 0; | |
bottom: -1px; | |
margin: 0 5px; | |
@@ -38,6 +29,7 @@ | |
border-top: 1px solid #f9f9f9; | |
border-bottom: 1px solid #ddd; | |
background-color: #f9f9f9; | |
+ text-decoration: none; | |
transition: none | |
} | |
@@ -77,10 +69,7 @@ | |
.media-upload-form label.form-help, | |
td.help { | |
- color: #72777c; | |
- font-family: sans-serif; | |
- font-style: italic; | |
- font-weight: 400 | |
+ color: #72777c | |
} | |
form { | |
@@ -91,6 +80,17 @@ | |
text-align: left | |
} | |
+th { | |
+ position: relative | |
+} | |
+ | |
+.media-upload-form label.form-help, | |
+td.help { | |
+ font-family: sans-serif; | |
+ font-style: italic; | |
+ font-weight: 400 | |
+} | |
+ | |
.media-upload-form p.help { | |
margin: 0; | |
padding: 0 | |
@@ -100,24 +100,24 @@ | |
width: 100%; | |
border: none; | |
text-align: justify; | |
- margin: 0 0 1em; | |
+ margin: 0 0 1em 0; | |
padding: 0 | |
} | |
.image-align-none-label { | |
- background: url(../images/align-none.png) center left no-repeat | |
+ background: url(../images/align-none.png) no-repeat center left | |
} | |
.image-align-left-label { | |
- background: url(../images/align-left.png) center left no-repeat | |
+ background: url(../images/align-left.png) no-repeat center left | |
} | |
.image-align-center-label { | |
- background: url(../images/align-center.png) center left no-repeat | |
+ background: url(../images/align-center.png) no-repeat center left | |
} | |
.image-align-right-label { | |
- background: url(../images/align-right.png) center left no-repeat | |
+ background: url(../images/align-right.png) no-repeat center left | |
} | |
tr.image-size td { | |
@@ -267,15 +267,11 @@ | |
padding: 5px 0 5px 5px | |
} | |
-#gallery-settings .title, | |
-h4.media-sub-title { | |
- border-bottom: 1px solid #ddd; | |
- padding: 0 0 3px | |
-} | |
- | |
#gallery-settings .title { | |
clear: both; | |
- font-size: 1.6em | |
+ padding: 0 0 3px; | |
+ font-size: 1.6em; | |
+ border-bottom: 1px solid #ddd | |
} | |
h3.media-title { | |
@@ -283,8 +279,10 @@ | |
} | |
h4.media-sub-title { | |
+ border-bottom: 1px solid #ddd; | |
font-size: 1.3em; | |
- margin: 12px | |
+ margin: 12px; | |
+ padding: 0 0 3px | |
} | |
#gallery-settings .title, | |
@@ -292,7 +290,7 @@ | |
h4.media-sub-title { | |
font-family: Georgia, "Times New Roman", Times, serif; | |
font-weight: 400; | |
- color: #5A5A5A | |
+ color: #5a5a5a | |
} | |
#gallery-settings .describe td { | |
@@ -348,6 +346,10 @@ | |
max-width: 625px | |
} | |
+#sort-buttons a { | |
+ text-decoration: none | |
+} | |
+ | |
#sort-buttons #asc, | |
#sort-buttons #showall { | |
padding-right: 5px | |
diff -ru build-before-upgrades-unminified/wp-admin/css/edit.min.css build-unminified/wp-admin/css/edit.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/edit.min.css 2018-10-05 18:06:58.338581676 -0500 | |
+++ build-unminified/wp-admin/css/edit.min.css 2018-10-05 18:07:15.062696911 -0500 | |
@@ -1,37 +1,13 @@ | |
/*! This file is auto-generated */ | |
-#pending, | |
-#poststuff #titlewrap { | |
- border: 0; | |
- padding: 0 | |
+#poststuff { | |
+ padding-top: 10px; | |
+ min-width: 763px | |
} | |
-#pending, | |
#poststuff #post-body { | |
padding: 0 | |
} | |
-#editable-post-name-full, | |
-body.post-new-php .submitbox .submitdelete { | |
- display: none | |
-} | |
- | |
-#post-status-info, | |
-.postbox { | |
- box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
-} | |
- | |
-#titlediv, | |
-#wp-content-editor-container, | |
-.postbox, | |
-form#tags-filter { | |
- position: relative | |
-} | |
- | |
-#poststuff { | |
- padding-top: 10px; | |
- min-width: 763px | |
-} | |
- | |
#poststuff .postbox-container { | |
width: 100% | |
} | |
@@ -60,6 +36,10 @@ | |
margin: 0 5px 0 0 | |
} | |
+#titlediv { | |
+ position: relative | |
+} | |
+ | |
#titlediv label { | |
cursor: text | |
} | |
@@ -68,6 +48,11 @@ | |
margin: 0 | |
} | |
+#poststuff #titlewrap { | |
+ border: 0; | |
+ padding: 0 | |
+} | |
+ | |
#titlediv #title { | |
padding: 3px 8px; | |
font-size: 1.7em; | |
@@ -93,6 +78,8 @@ | |
#pending { | |
background: 0 none; | |
+ border: 0 none; | |
+ padding: 0; | |
font-size: 11px; | |
margin-top: -1px | |
} | |
@@ -117,6 +104,10 @@ | |
padding: 0 5px | |
} | |
+#editable-post-name-full { | |
+ display: none | |
+} | |
+ | |
#editable-post-name { | |
font-weight: 600 | |
} | |
@@ -133,6 +124,10 @@ | |
float: left | |
} | |
+body.post-new-php .submitbox .submitdelete { | |
+ display: none | |
+} | |
+ | |
.submitbox .submit a:hover { | |
text-decoration: underline | |
} | |
@@ -152,8 +147,10 @@ | |
} | |
.postbox { | |
+ position: relative; | |
min-width: 255px; | |
border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
background: #fff | |
} | |
@@ -162,8 +159,8 @@ | |
} | |
#normal-sortables .postbox .submit { | |
- background: 0 0; | |
- border: 0; | |
+ background: transparent none; | |
+ border: 0 none; | |
float: right; | |
padding: 0 12px; | |
margin: 0 | |
@@ -235,7 +232,7 @@ | |
#side-sortables .submitbox .submit .preview, | |
#side-sortables .submitbox .submit a.preview:hover, | |
#side-sortables .submitbox .submit input { | |
- border: 0 | |
+ border: 0 none | |
} | |
ul.add-menu-item-tabs, | |
@@ -246,7 +243,7 @@ | |
ul.add-menu-item-tabs li, | |
ul.category-tabs li { | |
- border: 1px solid transparent; | |
+ border: solid 1px transparent; | |
position: relative | |
} | |
@@ -269,12 +266,6 @@ | |
max-width: 100% | |
} | |
-.ui-tabs-hide, | |
-.wp-editor-expand #content-resize-handle, | |
-.wp-hidden-children .wp-hidden-child { | |
- display: none | |
-} | |
- | |
#postimagediv .inside img { | |
max-width: 100%; | |
height: auto; | |
@@ -285,6 +276,15 @@ | |
background-size: 20px 20px | |
} | |
+form#tags-filter { | |
+ position: relative | |
+} | |
+ | |
+.ui-tabs-hide, | |
+.wp-hidden-children .wp-hidden-child { | |
+ display: none | |
+} | |
+ | |
#post-body .tagsdiv #newtag { | |
margin-right: 5px; | |
width: 16em | |
@@ -304,6 +304,7 @@ | |
border: 1px solid #e5e5e5; | |
border-top: none; | |
background-color: #f7f7f7; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
z-index: 999 | |
} | |
@@ -321,7 +322,7 @@ | |
} | |
#content-resize-handle { | |
- background: url(../images/resize.gif) right bottom no-repeat; | |
+ background: transparent url(../images/resize.gif) no-repeat scroll right bottom; | |
width: 12px; | |
cursor: row-resize | |
} | |
@@ -331,6 +332,10 @@ | |
background-position: left bottom | |
} | |
+.wp-editor-expand #content-resize-handle { | |
+ display: none | |
+} | |
+ | |
#postdivrich #content { | |
resize: none | |
} | |
@@ -340,6 +345,10 @@ | |
padding: 2px 10px | |
} | |
+#wp-content-editor-container { | |
+ position: relative | |
+} | |
+ | |
.wp-editor-expand #wp-content-editor-tools { | |
z-index: 1000; | |
border-bottom: 1px solid #e5e5e5 | |
@@ -347,7 +356,10 @@ | |
.wp-editor-expand #wp-content-editor-container { | |
box-shadow: none; | |
- margin-top: -1px; | |
+ margin-top: -1px | |
+} | |
+ | |
+.wp-editor-expand #wp-content-editor-container { | |
border-bottom: 0 none | |
} | |
@@ -376,7 +388,10 @@ | |
visibility: visible !important | |
} | |
-.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw, | |
+.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { | |
+ display: none | |
+} | |
+ | |
.mce-fullscreen #wp-content-wrap .mce-wp-dfw, | |
.post-php.mce-fullscreen #wpadminbar { | |
display: none | |
@@ -418,7 +433,7 @@ | |
} | |
.curtime #timestamp { | |
- padding: 2px 0 1px; | |
+ padding: 2px 0 1px 0; | |
display: inline !important; | |
height: auto !important | |
} | |
@@ -435,7 +450,7 @@ | |
#post-body .misc-pub-post-status:before, | |
#post-body .misc-pub-revisions:before, | |
.curtime #timestamp:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
margin-left: -1px; | |
@@ -445,11 +460,6 @@ | |
-moz-osx-font-smoothing: grayscale | |
} | |
-.suggested-policy-content, | |
-.wp-suggested-text p { | |
- font-style: italic | |
-} | |
- | |
#post-body .misc-pub-post-status:before { | |
content: "\f173" | |
} | |
@@ -592,7 +602,7 @@ | |
} | |
#poststuff .inside { | |
- margin: 6px 0 0 | |
+ margin: 6px 0 0 0 | |
} | |
#poststuff .inside #page_template, | |
@@ -690,6 +700,10 @@ | |
padding: 0 | |
} | |
+.suggested-policy-content { | |
+ font-style: italic | |
+} | |
+ | |
.privacy-text-section a.return-to-top { | |
float: right; | |
margin-right: -250px; | |
@@ -700,6 +714,10 @@ | |
visibility: hidden | |
} | |
+.wp-suggested-text p { | |
+ font-style: italic | |
+} | |
+ | |
.wp-suggested-text p.privacy-policy-tutorial { | |
font-style: normal | |
} | |
@@ -714,7 +732,7 @@ | |
} | |
#postcustom #postcustomstuff .submit { | |
- border: 0; | |
+ border: 0 none; | |
float: none; | |
padding: 0 8px 8px | |
} | |
@@ -831,7 +849,7 @@ | |
display: block; | |
height: 20px; | |
width: 20px; | |
- font: 400 20px/1 dashicons !important; | |
+ font: normal 20px/1 dashicons !important; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -862,14 +880,14 @@ | |
label.post-format-icon { | |
margin-left: 0; | |
- padding: 2px 0 | |
+ padding: 2px 0 2px 0 | |
} | |
.post-format-icon:before { | |
position: relative; | |
display: inline-block; | |
margin-right: 7px; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -957,7 +975,7 @@ | |
max-height: 200px; | |
overflow: auto; | |
padding: 0 .9em; | |
- border: 1px solid #ddd; | |
+ border: solid 1px #ddd; | |
background-color: #fdfdfd | |
} | |
@@ -1000,12 +1018,12 @@ | |
padding: 2px 0 | |
} | |
-.form-field input[type=text], | |
-.form-field input[type=password], | |
.form-field input[type=email], | |
.form-field input[type=number], | |
+.form-field input[type=password], | |
.form-field input[type=search], | |
.form-field input[type=tel], | |
+.form-field input[type=text], | |
.form-field input[type=url], | |
.form-field textarea { | |
border-style: solid; | |
@@ -1050,7 +1068,7 @@ | |
} | |
#poststuff .tagsdiv .howto { | |
- margin: 0 0 6px | |
+ margin: 0 0 6px 0 | |
} | |
.ajaxtag .newtag { | |
@@ -1156,7 +1174,7 @@ | |
} | |
.comment-ays .comment-content ul { | |
- list-style: outside; | |
+ list-style: initial; | |
margin-left: 2em | |
} | |
@@ -1164,7 +1182,7 @@ | |
content: '('attr(href) ')'; | |
display: inline-block; | |
padding: 0 4px; | |
- color: #72777C; | |
+ color: #72777c; | |
font-size: 13px; | |
word-break: break-all | |
} | |
@@ -1178,12 +1196,6 @@ | |
padding: 0 | |
} | |
-#comment-status-radio label, | |
-.links-table td, | |
-.links-table th { | |
- padding: 5px 0 | |
-} | |
- | |
.comment-ays-submit .button-cancel { | |
margin-left: 1em | |
} | |
@@ -1215,6 +1227,10 @@ | |
vertical-align: middle | |
} | |
+#comment-status-radio label { | |
+ padding: 5px 0 | |
+} | |
+ | |
table.links-table { | |
width: 100%; | |
border-spacing: 0 | |
@@ -1229,6 +1245,11 @@ | |
word-wrap: break-word | |
} | |
+.links-table td, | |
+.links-table th { | |
+ padding: 5px 0 | |
+} | |
+ | |
.links-table td label { | |
margin-right: 8px | |
} | |
@@ -1300,7 +1321,11 @@ | |
transition-property: -webkit-transform; | |
transition-property: transform; | |
transition-property: transform, -webkit-transform; | |
- transition-timing-function: ease-in-out; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
+.focus-on #adminmenuback, | |
+.focus-on #adminmenuwrap { | |
-webkit-transform: translateX(-100%); | |
transform: translateX(-100%) | |
} | |
@@ -1322,7 +1347,7 @@ | |
#content-resize-handle, | |
#post-body .wp_themeSkin .mceStatusbar a.mceResize { | |
- background: url(../images/resize-2x.gif) right bottom no-repeat; | |
+ background: transparent url(../images/resize-2x.gif) no-repeat scroll right bottom; | |
background-size: 11px 11px | |
} | |
@@ -1349,7 +1374,7 @@ | |
#poststuff #postbox-container-1 #side-sortables:empty, | |
#poststuff #postbox-container-1 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1375,7 +1400,7 @@ | |
} | |
#titlediv #title-prompt-text { | |
- padding: 10px | |
+ padding: 10px 10px | |
} | |
#poststuff .stuffbox>h3, | |
@@ -1438,15 +1463,14 @@ | |
margin: 30px 0 15px | |
} | |
- .tagsdiv .newtag, | |
- ul.categorychecklist li { | |
- margin-bottom: 15px | |
- } | |
- | |
ul.category-tabs li.tabs { | |
padding: 15px | |
} | |
+ ul.categorychecklist li { | |
+ margin-bottom: 15px | |
+ } | |
+ | |
ul.categorychecklist ul { | |
margin-top: 15px | |
} | |
@@ -1459,7 +1483,8 @@ | |
.tagsdiv .newtag { | |
width: 100%; | |
- height: auto | |
+ height: auto; | |
+ margin-bottom: 15px | |
} | |
.tagchecklist { | |
@@ -1499,7 +1524,10 @@ | |
} | |
.wp_themeSkin .mceSplitButton td a.mceAction { | |
- padding: 6px 3px 6px 6px | |
+ padding-top: 6px; | |
+ padding-bottom: 6px; | |
+ padding-left: 6px; | |
+ padding-right: 3px | |
} | |
.wp_themeSkin .mceSplitButton td a.mceOpen, | |
@@ -1545,7 +1573,7 @@ | |
} | |
.misc-pub-section { | |
- padding: 20px 10px | |
+ padding: 20px 10px 20px | |
} | |
.misc-pub-section>a { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/edit-rtl.min.css build-unminified/wp-admin/css/edit-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/edit-rtl.min.css 2018-10-05 18:07:04.402623453 -0500 | |
+++ build-unminified/wp-admin/css/edit-rtl.min.css 2018-10-05 18:07:21.138738791 -0500 | |
@@ -1,37 +1,13 @@ | |
/*! This file is auto-generated */ | |
-#pending, | |
-#poststuff #titlewrap { | |
- border: 0; | |
- padding: 0 | |
+#poststuff { | |
+ padding-top: 10px; | |
+ min-width: 763px | |
} | |
-#pending, | |
#poststuff #post-body { | |
padding: 0 | |
} | |
-#editable-post-name-full, | |
-body.post-new-php .submitbox .submitdelete { | |
- display: none | |
-} | |
- | |
-#post-status-info, | |
-.postbox { | |
- box-shadow: 0 1px 1px rgba(0, 0, 0, .04) | |
-} | |
- | |
-#titlediv, | |
-#wp-content-editor-container, | |
-.postbox, | |
-form#tags-filter { | |
- position: relative | |
-} | |
- | |
-#poststuff { | |
- padding-top: 10px; | |
- min-width: 763px | |
-} | |
- | |
#poststuff .postbox-container { | |
width: 100% | |
} | |
@@ -60,6 +36,10 @@ | |
margin: 0 0 0 5px | |
} | |
+#titlediv { | |
+ position: relative | |
+} | |
+ | |
#titlediv label { | |
cursor: text | |
} | |
@@ -68,6 +48,11 @@ | |
margin: 0 | |
} | |
+#poststuff #titlewrap { | |
+ border: 0; | |
+ padding: 0 | |
+} | |
+ | |
#titlediv #title { | |
padding: 3px 8px; | |
font-size: 1.7em; | |
@@ -93,6 +78,8 @@ | |
#pending { | |
background: 100% none; | |
+ border: 0 none; | |
+ padding: 0; | |
font-size: 11px; | |
margin-top: -1px | |
} | |
@@ -117,6 +104,10 @@ | |
padding: 0 5px | |
} | |
+#editable-post-name-full { | |
+ display: none | |
+} | |
+ | |
#editable-post-name { | |
font-weight: 600 | |
} | |
@@ -133,6 +124,10 @@ | |
float: right | |
} | |
+body.post-new-php .submitbox .submitdelete { | |
+ display: none | |
+} | |
+ | |
.submitbox .submit a:hover { | |
text-decoration: underline | |
} | |
@@ -152,8 +147,10 @@ | |
} | |
.postbox { | |
+ position: relative; | |
min-width: 255px; | |
border: 1px solid #e5e5e5; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
background: #fff | |
} | |
@@ -162,8 +159,8 @@ | |
} | |
#normal-sortables .postbox .submit { | |
- background: 0 0; | |
- border: 0; | |
+ background: transparent none; | |
+ border: 0 none; | |
float: left; | |
padding: 0 12px; | |
margin: 0 | |
@@ -235,7 +232,7 @@ | |
#side-sortables .submitbox .submit .preview, | |
#side-sortables .submitbox .submit a.preview:hover, | |
#side-sortables .submitbox .submit input { | |
- border: 0 | |
+ border: 0 none | |
} | |
ul.add-menu-item-tabs, | |
@@ -246,7 +243,7 @@ | |
ul.add-menu-item-tabs li, | |
ul.category-tabs li { | |
- border: 1px solid transparent; | |
+ border: solid 1px transparent; | |
position: relative | |
} | |
@@ -269,12 +266,6 @@ | |
max-width: 100% | |
} | |
-.ui-tabs-hide, | |
-.wp-editor-expand #content-resize-handle, | |
-.wp-hidden-children .wp-hidden-child { | |
- display: none | |
-} | |
- | |
#postimagediv .inside img { | |
max-width: 100%; | |
height: auto; | |
@@ -285,6 +276,15 @@ | |
background-size: 20px 20px | |
} | |
+form#tags-filter { | |
+ position: relative | |
+} | |
+ | |
+.ui-tabs-hide, | |
+.wp-hidden-children .wp-hidden-child { | |
+ display: none | |
+} | |
+ | |
#post-body .tagsdiv #newtag { | |
margin-left: 5px; | |
width: 16em | |
@@ -304,6 +304,7 @@ | |
border: 1px solid #e5e5e5; | |
border-top: none; | |
background-color: #f7f7f7; | |
+ box-shadow: 0 1px 1px rgba(0, 0, 0, .04); | |
z-index: 999 | |
} | |
@@ -321,7 +322,7 @@ | |
} | |
#content-resize-handle { | |
- background: url(../images/resize.gif) left bottom no-repeat; | |
+ background: transparent url(../images/resize.gif) no-repeat scroll left bottom; | |
width: 12px; | |
cursor: row-resize | |
} | |
@@ -331,6 +332,10 @@ | |
background-position: left bottom | |
} | |
+.wp-editor-expand #content-resize-handle { | |
+ display: none | |
+} | |
+ | |
#postdivrich #content { | |
resize: none | |
} | |
@@ -340,6 +345,10 @@ | |
padding: 2px 10px | |
} | |
+#wp-content-editor-container { | |
+ position: relative | |
+} | |
+ | |
.wp-editor-expand #wp-content-editor-tools { | |
z-index: 1000; | |
border-bottom: 1px solid #e5e5e5 | |
@@ -347,7 +356,10 @@ | |
.wp-editor-expand #wp-content-editor-container { | |
box-shadow: none; | |
- margin-top: -1px; | |
+ margin-top: -1px | |
+} | |
+ | |
+.wp-editor-expand #wp-content-editor-container { | |
border-bottom: 0 none | |
} | |
@@ -376,7 +388,10 @@ | |
visibility: visible !important | |
} | |
-.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw, | |
+.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { | |
+ display: none | |
+} | |
+ | |
.mce-fullscreen #wp-content-wrap .mce-wp-dfw, | |
.post-php.mce-fullscreen #wpadminbar { | |
display: none | |
@@ -418,7 +433,7 @@ | |
} | |
.curtime #timestamp { | |
- padding: 2px 0 1px; | |
+ padding: 2px 0 1px 0; | |
display: inline !important; | |
height: auto !important | |
} | |
@@ -435,7 +450,7 @@ | |
#post-body .misc-pub-post-status:before, | |
#post-body .misc-pub-revisions:before, | |
.curtime #timestamp:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
margin-right: -1px; | |
@@ -445,11 +460,6 @@ | |
-moz-osx-font-smoothing: grayscale | |
} | |
-.suggested-policy-content, | |
-.wp-suggested-text p { | |
- font-style: italic | |
-} | |
- | |
#post-body .misc-pub-post-status:before { | |
content: "\f173" | |
} | |
@@ -592,7 +602,7 @@ | |
} | |
#poststuff .inside { | |
- margin: 6px 0 0 | |
+ margin: 6px 0 0 0 | |
} | |
#poststuff .inside #page_template, | |
@@ -690,6 +700,10 @@ | |
padding: 0 | |
} | |
+.suggested-policy-content { | |
+ font-style: italic | |
+} | |
+ | |
.privacy-text-section a.return-to-top { | |
float: left; | |
margin-left: -250px; | |
@@ -700,6 +714,10 @@ | |
visibility: hidden | |
} | |
+.wp-suggested-text p { | |
+ font-style: italic | |
+} | |
+ | |
.wp-suggested-text p.privacy-policy-tutorial { | |
font-style: normal | |
} | |
@@ -714,7 +732,7 @@ | |
} | |
#postcustom #postcustomstuff .submit { | |
- border: 0; | |
+ border: 0 none; | |
float: none; | |
padding: 0 8px 8px | |
} | |
@@ -831,7 +849,7 @@ | |
display: block; | |
height: 20px; | |
width: 20px; | |
- font: 400 20px/1 dashicons !important; | |
+ font: normal 20px/1 dashicons !important; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -862,14 +880,14 @@ | |
label.post-format-icon { | |
margin-right: 0; | |
- padding: 2px 0 | |
+ padding: 2px 0 2px 0 | |
} | |
.post-format-icon:before { | |
position: relative; | |
display: inline-block; | |
margin-left: 7px; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
@@ -957,7 +975,7 @@ | |
max-height: 200px; | |
overflow: auto; | |
padding: 0 .9em; | |
- border: 1px solid #ddd; | |
+ border: solid 1px #ddd; | |
background-color: #fdfdfd | |
} | |
@@ -1000,12 +1018,12 @@ | |
padding: 2px 0 | |
} | |
-.form-field input[type=text], | |
-.form-field input[type=password], | |
.form-field input[type=email], | |
.form-field input[type=number], | |
+.form-field input[type=password], | |
.form-field input[type=search], | |
.form-field input[type=tel], | |
+.form-field input[type=text], | |
.form-field input[type=url], | |
.form-field textarea { | |
border-style: solid; | |
@@ -1050,7 +1068,7 @@ | |
} | |
#poststuff .tagsdiv .howto { | |
- margin: 0 0 6px | |
+ margin: 0 0 6px 0 | |
} | |
.ajaxtag .newtag { | |
@@ -1156,7 +1174,7 @@ | |
} | |
.comment-ays .comment-content ul { | |
- list-style: outside; | |
+ list-style: initial; | |
margin-right: 2em | |
} | |
@@ -1164,7 +1182,7 @@ | |
content: '('attr(href) ')'; | |
display: inline-block; | |
padding: 0 4px; | |
- color: #72777C; | |
+ color: #72777c; | |
font-size: 13px; | |
word-break: break-all | |
} | |
@@ -1178,12 +1196,6 @@ | |
padding: 0 | |
} | |
-#comment-status-radio label, | |
-.links-table td, | |
-.links-table th { | |
- padding: 5px 0 | |
-} | |
- | |
.comment-ays-submit .button-cancel { | |
margin-right: 1em | |
} | |
@@ -1215,6 +1227,10 @@ | |
vertical-align: middle | |
} | |
+#comment-status-radio label { | |
+ padding: 5px 0 | |
+} | |
+ | |
table.links-table { | |
width: 100%; | |
border-spacing: 0 | |
@@ -1229,6 +1245,11 @@ | |
word-wrap: break-word | |
} | |
+.links-table td, | |
+.links-table th { | |
+ padding: 5px 0 | |
+} | |
+ | |
.links-table td label { | |
margin-left: 8px | |
} | |
@@ -1300,7 +1321,11 @@ | |
transition-property: -webkit-transform; | |
transition-property: transform; | |
transition-property: transform, -webkit-transform; | |
- transition-timing-function: ease-in-out; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
+.focus-on #adminmenuback, | |
+.focus-on #adminmenuwrap { | |
-webkit-transform: translateX(100%); | |
transform: translateX(100%) | |
} | |
@@ -1322,7 +1347,7 @@ | |
#content-resize-handle, | |
#post-body .wp_themeSkin .mceStatusbar a.mceResize { | |
- background: url(../images/resize-2x.gif) left bottom no-repeat; | |
+ background: transparent url(../images/resize-2x.gif) no-repeat scroll left bottom; | |
background-size: 11px 11px | |
} | |
@@ -1349,7 +1374,7 @@ | |
#poststuff #postbox-container-1 #side-sortables:empty, | |
#poststuff #postbox-container-1 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -1375,7 +1400,7 @@ | |
} | |
#titlediv #title-prompt-text { | |
- padding: 10px | |
+ padding: 10px 10px | |
} | |
#poststuff .stuffbox>h3, | |
@@ -1438,15 +1463,14 @@ | |
margin: 30px 0 15px | |
} | |
- .tagsdiv .newtag, | |
- ul.categorychecklist li { | |
- margin-bottom: 15px | |
- } | |
- | |
ul.category-tabs li.tabs { | |
padding: 15px | |
} | |
+ ul.categorychecklist li { | |
+ margin-bottom: 15px | |
+ } | |
+ | |
ul.categorychecklist ul { | |
margin-top: 15px | |
} | |
@@ -1459,7 +1483,8 @@ | |
.tagsdiv .newtag { | |
width: 100%; | |
- height: auto | |
+ height: auto; | |
+ margin-bottom: 15px | |
} | |
.tagchecklist { | |
@@ -1499,7 +1524,10 @@ | |
} | |
.wp_themeSkin .mceSplitButton td a.mceAction { | |
- padding: 6px 6px 6px 3px | |
+ padding-top: 6px; | |
+ padding-bottom: 6px; | |
+ padding-right: 6px; | |
+ padding-left: 3px | |
} | |
.wp_themeSkin .mceSplitButton td a.mceOpen, | |
@@ -1545,7 +1573,7 @@ | |
} | |
.misc-pub-section { | |
- padding: 20px 10px | |
+ padding: 20px 10px 20px | |
} | |
.misc-pub-section>a { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/forms.min.css build-unminified/wp-admin/css/forms.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/forms.min.css 2018-10-05 18:06:57.490575835 -0500 | |
+++ build-unminified/wp-admin/css/forms.min.css 2018-10-05 18:07:14.198690957 -0500 | |
@@ -1,39 +1,25 @@ | |
/*! This file is auto-generated */ | |
-#your-profile label+a, | |
-.wp-admin select, | |
-fieldset label, | |
-label { | |
- vertical-align: middle | |
-} | |
- | |
-#pass-strength-result, | |
-.color-option, | |
input, | |
textarea { | |
box-sizing: border-box | |
} | |
-#pressthis-code-wrap, | |
-textarea { | |
- overflow: auto | |
-} | |
- | |
-input[type=text], | |
-input[type=search], | |
-input[type=radio], | |
-input[type=tel], | |
-input[type=time], | |
-input[type=url], | |
-input[type=week], | |
-input[type=password], | |
input[type=checkbox], | |
input[type=color], | |
input[type=date], | |
-input[type=datetime], | |
input[type=datetime-local], | |
+input[type=datetime], | |
input[type=email], | |
input[type=month], | |
input[type=number], | |
+input[type=password], | |
+input[type=radio], | |
+input[type=search], | |
+input[type=tel], | |
+input[type=text], | |
+input[type=time], | |
+input[type=url], | |
+input[type=week], | |
select, | |
textarea { | |
border: 1px solid #ddd; | |
@@ -44,30 +30,30 @@ | |
transition: 50ms border-color ease-in-out | |
} | |
-input[type=text]:focus, | |
-input[type=search]:focus, | |
-input[type=radio]:focus, | |
-input[type=tel]:focus, | |
-input[type=time]:focus, | |
-input[type=url]:focus, | |
-input[type=week]:focus, | |
-input[type=password]:focus, | |
input[type=checkbox]:focus, | |
input[type=color]:focus, | |
input[type=date]:focus, | |
-input[type=datetime]:focus, | |
input[type=datetime-local]:focus, | |
+input[type=datetime]:focus, | |
input[type=email]:focus, | |
input[type=month]:focus, | |
input[type=number]:focus, | |
+input[type=password]:focus, | |
+input[type=radio]:focus, | |
+input[type=search]:focus, | |
+input[type=tel]:focus, | |
+input[type=text]:focus, | |
+input[type=time]:focus, | |
+input[type=url]:focus, | |
+input[type=week]:focus, | |
select:focus, | |
textarea:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
} | |
-input[type=url], | |
-input[type=email] { | |
+input[type=email], | |
+input[type=url] { | |
direction: ltr | |
} | |
@@ -76,8 +62,8 @@ | |
line-height: 1 | |
} | |
-input[type=radio], | |
-input[type=checkbox] { | |
+input[type=checkbox], | |
+input[type=radio] { | |
border: 1px solid #b4b9be; | |
background: #fff; | |
color: #555; | |
@@ -107,8 +93,8 @@ | |
color: #00a0d2 | |
} | |
-.wp-admin p input[type=radio], | |
.wp-admin p input[type=checkbox], | |
+.wp-admin p input[type=radio], | |
td>input[type=checkbox] { | |
margin-top: 0 | |
} | |
@@ -127,24 +113,18 @@ | |
line-height: 10px | |
} | |
-input[type=radio]:checked:before, | |
-input[type=checkbox]:checked:before { | |
+input[type=checkbox]:checked:before, | |
+input[type=radio]:checked:before { | |
float: left; | |
display: inline-block; | |
vertical-align: middle; | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
input[type=checkbox]:checked:before { | |
content: "\f147"; | |
margin: -3px 0 0 -4px; | |
@@ -166,8 +146,8 @@ | |
@-moz-document url-prefix() { | |
.form-table input.tog, | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
margin-bottom: -1px | |
} | |
} | |
@@ -197,10 +177,12 @@ | |
select, | |
textarea { | |
font-size: 14px; | |
+ padding: 3px 5px; | |
border-radius: 0 | |
} | |
textarea { | |
+ overflow: auto; | |
padding: 2px 6px; | |
line-height: 1.4; | |
resize: vertical | |
@@ -227,7 +209,7 @@ | |
textarea.code { | |
line-height: 1.4; | |
- padding: 4px 6px 1px | |
+ padding: 4px 6px 1px 6px | |
} | |
input.readonly, | |
@@ -260,7 +242,7 @@ | |
.form-table .form-required.form-invalid td:after { | |
content: "\f534"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin-left: -25px; | |
vertical-align: middle | |
@@ -272,7 +254,7 @@ | |
.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { | |
content: '\f534'; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin: 0 6px 0 -29px; | |
vertical-align: middle | |
@@ -303,21 +285,22 @@ | |
cursor: default | |
} | |
-input[type=radio].disabled, | |
-input[type=radio].disabled:checked:before, | |
-input[type=radio]:disabled, | |
-input[type=radio]:disabled:checked:before, | |
input[type=checkbox].disabled, | |
input[type=checkbox].disabled:checked:before, | |
input[type=checkbox]:disabled, | |
-input[type=checkbox]:disabled:checked:before { | |
+input[type=checkbox]:disabled:checked:before, | |
+input[type=radio].disabled, | |
+input[type=radio].disabled:checked:before, | |
+input[type=radio]:disabled, | |
+input[type=radio]:disabled:checked:before { | |
opacity: .7 | |
} | |
.wp-admin select { | |
padding: 2px; | |
line-height: 28px; | |
- height: 28px | |
+ height: 28px; | |
+ vertical-align: middle | |
} | |
.wp-admin .button-cancel { | |
@@ -437,6 +420,16 @@ | |
top: 3px | |
} | |
+#your-profile label+a, | |
+label { | |
+ vertical-align: middle | |
+} | |
+ | |
+#your-profile label+a, | |
+fieldset label { | |
+ vertical-align: middle | |
+} | |
+ | |
.options-media-php [for*="_size_"] { | |
min-width: 10em; | |
vertical-align: baseline | |
@@ -458,6 +451,7 @@ | |
padding: 3px 5px; | |
text-align: center; | |
width: 25em; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -505,10 +499,19 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.indicator-hint { | |
padding-top: 8px | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -544,8 +547,8 @@ | |
height: 32px | |
} | |
-input[type=text].ui-autocomplete-loading, | |
-input[type=email].ui-autocomplete-loading { | |
+input[type=email].ui-autocomplete-loading, | |
+input[type=text].ui-autocomplete-loading { | |
background-image: url(../images/loading.gif); | |
background-repeat: no-repeat; | |
background-position: right center; | |
@@ -704,8 +707,8 @@ | |
display: inline-block; | |
width: 24%; | |
padding: 5px 15px 15px; | |
- margin-bottom: 3px; | |
- cursor: pointer | |
+ box-sizing: border-box; | |
+ margin-bottom: 3px | |
} | |
.color-option.selected, | |
@@ -725,6 +728,10 @@ | |
border: none | |
} | |
+.color-option { | |
+ cursor: pointer | |
+} | |
+ | |
.tool-box .title { | |
margin: 8px 0; | |
font-size: 18px; | |
@@ -764,6 +771,10 @@ | |
font-size: 1em | |
} | |
+#pressthis-code-wrap { | |
+ overflow: auto | |
+} | |
+ | |
.pressthis-bookmarklet-wrapper { | |
margin: 20px 0 8px; | |
vertical-align: top; | |
@@ -788,12 +799,6 @@ | |
text-decoration: none | |
} | |
-.privacy_requests tbody th, | |
-.privacy_requests tfoot td:first-child, | |
-.privacy_requests thead td:first-child { | |
- border-left: 4px solid #fff | |
-} | |
- | |
.pressthis-bookmarklet:active { | |
outline: 0 | |
} | |
@@ -820,13 +825,13 @@ | |
.pressthis-bookmarklet span { | |
display: inline-block; | |
- margin: 0; | |
+ margin: 0 0 0; | |
padding: 0 12px 8px 9px | |
} | |
.pressthis-bookmarklet span:before { | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f157"; | |
position: relative; | |
display: inline-block; | |
@@ -834,7 +839,13 @@ | |
margin-right: 4px | |
} | |
-.pressthis-js-toggle, | |
+.pressthis-js-toggle { | |
+ margin-left: 10px; | |
+ padding: 0; | |
+ height: auto; | |
+ vertical-align: top | |
+} | |
+ | |
.pressthis-js-toggle.button.button { | |
margin-left: 10px; | |
padding: 0; | |
@@ -933,17 +944,17 @@ | |
.request-filesystem-credentials-form legend { | |
font-size: 1em; | |
- padding: 1.33em 0 0; | |
+ padding: 1.33em 0; | |
font-weight: 600 | |
} | |
-.request-filesystem-credentials-form input[type=text], | |
-.request-filesystem-credentials-form input[type=password] { | |
+.request-filesystem-credentials-form input[type=password], | |
+.request-filesystem-credentials-form input[type=text] { | |
display: block | |
} | |
-.request-filesystem-credentials-dialog input[type=text], | |
-.request-filesystem-credentials-dialog input[type=password] { | |
+.request-filesystem-credentials-dialog input[type=password], | |
+.request-filesystem-credentials-dialog input[type=text] { | |
width: 100% | |
} | |
@@ -952,12 +963,22 @@ | |
} | |
.request-filesystem-credentials-dialog label[for=hostname], | |
-.request-filesystem-credentials-dialog label[for=public_key], | |
-.request-filesystem-credentials-dialog label[for=private_key] { | |
+.request-filesystem-credentials-dialog label[for=private_key], | |
+.request-filesystem-credentials-dialog label[for=public_key] { | |
display: block; | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-dialog .ftp-password, | |
+.request-filesystem-credentials-dialog .ftp-username { | |
+ float: left; | |
+ width: 48% | |
+} | |
+ | |
+.request-filesystem-credentials-dialog .ftp-password { | |
+ margin-left: 4% | |
+} | |
+ | |
.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
text-align: right | |
} | |
@@ -1006,12 +1027,16 @@ | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-form legend { | |
+ padding-bottom: 0 | |
+} | |
+ | |
.request-filesystem-credentials-form #ssh-keys legend { | |
font-size: 1.3em | |
} | |
.request-filesystem-credentials-form .notice { | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
clear: both | |
} | |
@@ -1040,7 +1065,13 @@ | |
text-align: center | |
} | |
+.privacy_requests tfoot td:first-child, | |
+.privacy_requests thead td:first-child { | |
+ border-left: 4px solid #fff | |
+} | |
+ | |
.privacy_requests tbody th { | |
+ border-left: 4px solid #fff; | |
background: #fff; | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
@@ -1123,7 +1154,7 @@ | |
.email-personal-data::before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px 5px 0 -2px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1144,21 +1175,15 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #pass-strength-result, | |
- .form-table { | |
- box-sizing: border-box | |
- } | |
- | |
textarea { | |
-webkit-appearance: none | |
} | |
- input[type=text], | |
- input[type=search], | |
- input[type=password], | |
input[type=email], | |
- input[type=number] { | |
+ input[type=number], | |
+ input[type=password], | |
+ input[type=search], | |
+ input[type=text] { | |
-webkit-appearance: none; | |
padding: 6px 10px | |
} | |
@@ -1190,18 +1215,18 @@ | |
.widefat th input[type=checkbox]:before, | |
.widefat thead td input[type=checkbox]:before, | |
input[type=checkbox]:checked:before { | |
- font: 400 30px/1 dashicons; | |
+ font: normal 30px/1 dashicons; | |
margin: -3px -5px | |
} | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
height: 25px; | |
width: 25px | |
} | |
- .wp-admin p input[type=radio], | |
- .wp-admin p input[type=checkbox] { | |
+ .wp-admin p input[type=checkbox], | |
+ .wp-admin p input[type=radio] { | |
margin-top: -3px | |
} | |
@@ -1232,6 +1257,10 @@ | |
width: 100% | |
} | |
+ .form-table { | |
+ box-sizing: border-box | |
+ } | |
+ | |
.form-table td, | |
.form-table th, | |
.label-responsive { | |
@@ -1264,9 +1293,9 @@ | |
#profile-page .form-table textarea, | |
.form-table span.description, | |
- .form-table td input[type=text], | |
- .form-table td input[type=password], | |
.form-table td input[type=email], | |
+ .form-table td input[type=password], | |
+ .form-table td input[type=text], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -1288,10 +1317,10 @@ | |
} | |
.form-table input[type=text].small-text, | |
- input[type=text].small-text, | |
- input[type=search].small-text, | |
+ input[type=number].small-text, | |
input[type=password].small-text, | |
- input[type=number].small-text { | |
+ input[type=search].small-text, | |
+ input[type=text].small-text { | |
width: auto; | |
max-width: 4.375em; | |
display: inline; | |
@@ -1301,6 +1330,7 @@ | |
#pass-strength-result { | |
width: 100%; | |
+ box-sizing: border-box; | |
padding: 8px | |
} | |
@@ -1383,8 +1413,8 @@ | |
position: relative | |
} | |
- .wp-pwd [type=text], | |
- .wp-pwd [type=password] { | |
+ .wp-pwd [type=password], | |
+ .wp-pwd [type=text] { | |
padding-right: 40px | |
} | |
@@ -1445,9 +1475,9 @@ | |
@media only screen and (max-width:768px) { | |
- .form-field input[type=text], | |
- .form-field input[type=password], | |
.form-field input[type=email], | |
+ .form-field input[type=password], | |
+ .form-field input[type=text], | |
.form-field select, | |
.form-field textarea { | |
width: 99% | |
diff -ru build-before-upgrades-unminified/wp-admin/css/forms-rtl.min.css build-unminified/wp-admin/css/forms-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/forms-rtl.min.css 2018-10-05 18:07:03.650618272 -0500 | |
+++ build-unminified/wp-admin/css/forms-rtl.min.css 2018-10-05 18:07:20.374733525 -0500 | |
@@ -1,39 +1,25 @@ | |
/*! This file is auto-generated */ | |
-#your-profile label+a, | |
-.wp-admin select, | |
-fieldset label, | |
-label { | |
- vertical-align: middle | |
-} | |
- | |
-#pass-strength-result, | |
-.color-option, | |
input, | |
textarea { | |
box-sizing: border-box | |
} | |
-#pressthis-code-wrap, | |
-textarea { | |
- overflow: auto | |
-} | |
- | |
-input[type=text], | |
-input[type=search], | |
-input[type=radio], | |
-input[type=tel], | |
-input[type=time], | |
-input[type=url], | |
-input[type=week], | |
-input[type=password], | |
input[type=checkbox], | |
input[type=color], | |
input[type=date], | |
-input[type=datetime], | |
input[type=datetime-local], | |
+input[type=datetime], | |
input[type=email], | |
input[type=month], | |
input[type=number], | |
+input[type=password], | |
+input[type=radio], | |
+input[type=search], | |
+input[type=tel], | |
+input[type=text], | |
+input[type=time], | |
+input[type=url], | |
+input[type=week], | |
select, | |
textarea { | |
border: 1px solid #ddd; | |
@@ -44,30 +30,30 @@ | |
transition: 50ms border-color ease-in-out | |
} | |
-input[type=text]:focus, | |
-input[type=search]:focus, | |
-input[type=radio]:focus, | |
-input[type=tel]:focus, | |
-input[type=time]:focus, | |
-input[type=url]:focus, | |
-input[type=week]:focus, | |
-input[type=password]:focus, | |
input[type=checkbox]:focus, | |
input[type=color]:focus, | |
input[type=date]:focus, | |
-input[type=datetime]:focus, | |
input[type=datetime-local]:focus, | |
+input[type=datetime]:focus, | |
input[type=email]:focus, | |
input[type=month]:focus, | |
input[type=number]:focus, | |
+input[type=password]:focus, | |
+input[type=radio]:focus, | |
+input[type=search]:focus, | |
+input[type=tel]:focus, | |
+input[type=text]:focus, | |
+input[type=time]:focus, | |
+input[type=url]:focus, | |
+input[type=week]:focus, | |
select:focus, | |
textarea:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
} | |
-input[type=url], | |
-input[type=email] { | |
+input[type=email], | |
+input[type=url] { | |
direction: ltr | |
} | |
@@ -76,8 +62,8 @@ | |
line-height: 1 | |
} | |
-input[type=radio], | |
-input[type=checkbox] { | |
+input[type=checkbox], | |
+input[type=radio] { | |
border: 1px solid #b4b9be; | |
background: #fff; | |
color: #555; | |
@@ -107,8 +93,8 @@ | |
color: #00a0d2 | |
} | |
-.wp-admin p input[type=radio], | |
.wp-admin p input[type=checkbox], | |
+.wp-admin p input[type=radio], | |
td>input[type=checkbox] { | |
margin-top: 0 | |
} | |
@@ -127,24 +113,18 @@ | |
line-height: 10px | |
} | |
-input[type=radio]:checked:before, | |
-input[type=checkbox]:checked:before { | |
+input[type=checkbox]:checked:before, | |
+input[type=radio]:checked:before { | |
float: right; | |
display: inline-block; | |
vertical-align: middle; | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
input[type=checkbox]:checked:before { | |
content: "\f147"; | |
margin: -3px -4px 0 0; | |
@@ -166,8 +146,8 @@ | |
@-moz-document url-prefix() { | |
.form-table input.tog, | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
margin-bottom: -1px | |
} | |
} | |
@@ -197,10 +177,12 @@ | |
select, | |
textarea { | |
font-size: 14px; | |
+ padding: 3px 5px; | |
border-radius: 0 | |
} | |
textarea { | |
+ overflow: auto; | |
padding: 2px 6px; | |
line-height: 1.4; | |
resize: vertical | |
@@ -227,7 +209,7 @@ | |
textarea.code { | |
line-height: 1.4; | |
- padding: 4px 6px 1px | |
+ padding: 4px 6px 1px 6px | |
} | |
input.readonly, | |
@@ -260,7 +242,7 @@ | |
.form-table .form-required.form-invalid td:after { | |
content: "\f534"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin-right: -25px; | |
vertical-align: middle | |
@@ -272,7 +254,7 @@ | |
.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { | |
content: '\f534'; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin: 0 -29px 0 6px; | |
vertical-align: middle | |
@@ -303,21 +285,22 @@ | |
cursor: default | |
} | |
-input[type=radio].disabled, | |
-input[type=radio].disabled:checked:before, | |
-input[type=radio]:disabled, | |
-input[type=radio]:disabled:checked:before, | |
input[type=checkbox].disabled, | |
input[type=checkbox].disabled:checked:before, | |
input[type=checkbox]:disabled, | |
-input[type=checkbox]:disabled:checked:before { | |
+input[type=checkbox]:disabled:checked:before, | |
+input[type=radio].disabled, | |
+input[type=radio].disabled:checked:before, | |
+input[type=radio]:disabled, | |
+input[type=radio]:disabled:checked:before { | |
opacity: .7 | |
} | |
.wp-admin select { | |
padding: 2px; | |
line-height: 28px; | |
- height: 28px | |
+ height: 28px; | |
+ vertical-align: middle | |
} | |
.wp-admin .button-cancel { | |
@@ -437,6 +420,16 @@ | |
top: 3px | |
} | |
+#your-profile label+a, | |
+label { | |
+ vertical-align: middle | |
+} | |
+ | |
+#your-profile label+a, | |
+fieldset label { | |
+ vertical-align: middle | |
+} | |
+ | |
.options-media-php [for*="_size_"] { | |
min-width: 10em; | |
vertical-align: baseline | |
@@ -458,6 +451,7 @@ | |
padding: 3px 5px; | |
text-align: center; | |
width: 25em; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -505,10 +499,19 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.indicator-hint { | |
padding-top: 8px | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -544,8 +547,8 @@ | |
height: 32px | |
} | |
-input[type=text].ui-autocomplete-loading, | |
-input[type=email].ui-autocomplete-loading { | |
+input[type=email].ui-autocomplete-loading, | |
+input[type=text].ui-autocomplete-loading { | |
background-image: url(../images/loading.gif); | |
background-repeat: no-repeat; | |
background-position: left center; | |
@@ -704,8 +707,8 @@ | |
display: inline-block; | |
width: 24%; | |
padding: 5px 15px 15px; | |
- margin-bottom: 3px; | |
- cursor: pointer | |
+ box-sizing: border-box; | |
+ margin-bottom: 3px | |
} | |
.color-option.selected, | |
@@ -725,6 +728,10 @@ | |
border: none | |
} | |
+.color-option { | |
+ cursor: pointer | |
+} | |
+ | |
.tool-box .title { | |
margin: 8px 0; | |
font-size: 18px; | |
@@ -764,6 +771,10 @@ | |
font-size: 1em | |
} | |
+#pressthis-code-wrap { | |
+ overflow: auto | |
+} | |
+ | |
.pressthis-bookmarklet-wrapper { | |
margin: 20px 0 8px; | |
vertical-align: top; | |
@@ -788,12 +799,6 @@ | |
text-decoration: none | |
} | |
-.privacy_requests tbody th, | |
-.privacy_requests tfoot td:first-child, | |
-.privacy_requests thead td:first-child { | |
- border-right: 4px solid #fff | |
-} | |
- | |
.pressthis-bookmarklet:active { | |
outline: 0 | |
} | |
@@ -820,13 +825,13 @@ | |
.pressthis-bookmarklet span { | |
display: inline-block; | |
- margin: 0; | |
+ margin: 0 0 0; | |
padding: 0 9px 8px 12px | |
} | |
.pressthis-bookmarklet span:before { | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f157"; | |
position: relative; | |
display: inline-block; | |
@@ -834,7 +839,13 @@ | |
margin-left: 4px | |
} | |
-.pressthis-js-toggle, | |
+.pressthis-js-toggle { | |
+ margin-right: 10px; | |
+ padding: 0; | |
+ height: auto; | |
+ vertical-align: top | |
+} | |
+ | |
.pressthis-js-toggle.button.button { | |
margin-right: 10px; | |
padding: 0; | |
@@ -933,17 +944,17 @@ | |
.request-filesystem-credentials-form legend { | |
font-size: 1em; | |
- padding: 1.33em 0 0; | |
+ padding: 1.33em 0; | |
font-weight: 600 | |
} | |
-.request-filesystem-credentials-form input[type=text], | |
-.request-filesystem-credentials-form input[type=password] { | |
+.request-filesystem-credentials-form input[type=password], | |
+.request-filesystem-credentials-form input[type=text] { | |
display: block | |
} | |
-.request-filesystem-credentials-dialog input[type=text], | |
-.request-filesystem-credentials-dialog input[type=password] { | |
+.request-filesystem-credentials-dialog input[type=password], | |
+.request-filesystem-credentials-dialog input[type=text] { | |
width: 100% | |
} | |
@@ -952,12 +963,22 @@ | |
} | |
.request-filesystem-credentials-dialog label[for=hostname], | |
-.request-filesystem-credentials-dialog label[for=public_key], | |
-.request-filesystem-credentials-dialog label[for=private_key] { | |
+.request-filesystem-credentials-dialog label[for=private_key], | |
+.request-filesystem-credentials-dialog label[for=public_key] { | |
display: block; | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-dialog .ftp-password, | |
+.request-filesystem-credentials-dialog .ftp-username { | |
+ float: right; | |
+ width: 48% | |
+} | |
+ | |
+.request-filesystem-credentials-dialog .ftp-password { | |
+ margin-right: 4% | |
+} | |
+ | |
.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
text-align: left | |
} | |
@@ -1006,12 +1027,16 @@ | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-form legend { | |
+ padding-bottom: 0 | |
+} | |
+ | |
.request-filesystem-credentials-form #ssh-keys legend { | |
font-size: 1.3em | |
} | |
.request-filesystem-credentials-form .notice { | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
clear: both | |
} | |
@@ -1040,7 +1065,13 @@ | |
text-align: center | |
} | |
+.privacy_requests tfoot td:first-child, | |
+.privacy_requests thead td:first-child { | |
+ border-right: 4px solid #fff | |
+} | |
+ | |
.privacy_requests tbody th { | |
+ border-right: 4px solid #fff; | |
background: #fff; | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
@@ -1123,7 +1154,7 @@ | |
.email-personal-data::before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px -2px 0 5px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1144,21 +1175,15 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #pass-strength-result, | |
- .form-table { | |
- box-sizing: border-box | |
- } | |
- | |
textarea { | |
-webkit-appearance: none | |
} | |
- input[type=text], | |
- input[type=search], | |
- input[type=password], | |
input[type=email], | |
- input[type=number] { | |
+ input[type=number], | |
+ input[type=password], | |
+ input[type=search], | |
+ input[type=text] { | |
-webkit-appearance: none; | |
padding: 6px 10px | |
} | |
@@ -1190,18 +1215,18 @@ | |
.widefat th input[type=checkbox]:before, | |
.widefat thead td input[type=checkbox]:before, | |
input[type=checkbox]:checked:before { | |
- font: 400 30px/1 dashicons; | |
+ font: normal 30px/1 dashicons; | |
margin: -3px -5px | |
} | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
height: 25px; | |
width: 25px | |
} | |
- .wp-admin p input[type=radio], | |
- .wp-admin p input[type=checkbox] { | |
+ .wp-admin p input[type=checkbox], | |
+ .wp-admin p input[type=radio] { | |
margin-top: -3px | |
} | |
@@ -1232,6 +1257,10 @@ | |
width: 100% | |
} | |
+ .form-table { | |
+ box-sizing: border-box | |
+ } | |
+ | |
.form-table td, | |
.form-table th, | |
.label-responsive { | |
@@ -1264,9 +1293,9 @@ | |
#profile-page .form-table textarea, | |
.form-table span.description, | |
- .form-table td input[type=text], | |
- .form-table td input[type=password], | |
.form-table td input[type=email], | |
+ .form-table td input[type=password], | |
+ .form-table td input[type=text], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -1288,10 +1317,10 @@ | |
} | |
.form-table input[type=text].small-text, | |
- input[type=text].small-text, | |
- input[type=search].small-text, | |
+ input[type=number].small-text, | |
input[type=password].small-text, | |
- input[type=number].small-text { | |
+ input[type=search].small-text, | |
+ input[type=text].small-text { | |
width: auto; | |
max-width: 4.375em; | |
display: inline; | |
@@ -1301,6 +1330,7 @@ | |
#pass-strength-result { | |
width: 100%; | |
+ box-sizing: border-box; | |
padding: 8px | |
} | |
@@ -1383,8 +1413,8 @@ | |
position: relative | |
} | |
- .wp-pwd [type=text], | |
- .wp-pwd [type=password] { | |
+ .wp-pwd [type=password], | |
+ .wp-pwd [type=text] { | |
padding-left: 40px | |
} | |
@@ -1445,9 +1475,9 @@ | |
@media only screen and (max-width:768px) { | |
- .form-field input[type=text], | |
- .form-field input[type=password], | |
.form-field input[type=email], | |
+ .form-field input[type=password], | |
+ .form-field input[type=text], | |
.form-field select, | |
.form-field textarea { | |
width: 99% | |
diff -ru build-before-upgrades-unminified/wp-admin/css/ie.min.css build-unminified/wp-admin/css/ie.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/ie.min.css 2018-10-05 18:07:01.918606339 -0500 | |
+++ build-unminified/wp-admin/css/ie.min.css 2018-10-05 18:07:18.642721586 -0500 | |
@@ -21,7 +21,7 @@ | |
#dashboard-widgets #postbox-container-3 .empty-container, | |
#dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -54,12 +54,6 @@ | |
background-image: none | |
} | |
-#adminmenu .wp-submenu, | |
-.folded #adminmenu .opensub .wp-submenu, | |
-.folded #adminmenu .wp-submenu.sub-open { | |
- left: 110px | |
-} | |
- | |
#adminmenuwrap { | |
position: static | |
} | |
@@ -89,6 +83,10 @@ | |
line-height: 1px | |
} | |
+#adminmenu .wp-submenu { | |
+ left: 110px | |
+} | |
+ | |
#adminmenu .wp-submenu ul { | |
margin: 0 | |
} | |
@@ -113,6 +111,11 @@ | |
display: block | |
} | |
+.folded #adminmenu .opensub .wp-submenu, | |
+.folded #adminmenu .wp-submenu.sub-open { | |
+ left: 110px | |
+} | |
+ | |
.folded #adminmenu .wp-has-current-submenu .wp-submenu, | |
.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu { | |
top: -1px; | |
@@ -127,14 +130,6 @@ | |
border-top-color: #ddd | |
} | |
-#wpbody-content .postbox, | |
-* html .stuffbox, | |
-* html .stuffbox input, | |
-* html .stuffbox textarea, | |
-* html input { | |
- border: 1px solid #ddd | |
-} | |
- | |
.folded #adminmenu .wp-submenu ul { | |
margin-left: 5px | |
} | |
@@ -214,7 +209,10 @@ | |
} | |
.plugins td, | |
-.plugins th, | |
+.plugins th { | |
+ border-top: 1px solid #ddd | |
+} | |
+ | |
table.fixed td, | |
table.fixed th { | |
border-top: 1px solid #ddd | |
@@ -242,6 +240,10 @@ | |
vertical-align: middle | |
} | |
+#wpbody-content .postbox { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
#wpbody-content .postbox .hndle { | |
margin-bottom: -1px | |
} | |
@@ -312,8 +314,8 @@ | |
} | |
.button, | |
-input[type=reset], | |
input[type=button], | |
+input[type=reset], | |
input[type=submit] { | |
padding: 0 8px; | |
line-height: 20px; | |
@@ -321,8 +323,8 @@ | |
} | |
.button.button-large, | |
-input[type=reset].button-large, | |
input[type=button].button-large, | |
+input[type=reset].button-large, | |
input[type=submit].button-large { | |
padding: 0 10px; | |
line-height: 24px; | |
@@ -330,8 +332,8 @@ | |
} | |
.button.button-small, | |
-input[type=reset].button-small, | |
input[type=button].button-small, | |
+input[type=reset].button-small, | |
input[type=submit].button-small { | |
padding: 0 6px; | |
line-height: 16px; | |
@@ -389,15 +391,6 @@ | |
margin: -3px 0 4px | |
} | |
-#submitdiv a.button, | |
-#submitdiv input, | |
-#submitdiv select, | |
-.inactive-sidebar .widget, | |
-.revisions.pinned .revisions-controls, | |
-.widget-liquid-right .widget { | |
- position: relative | |
-} | |
- | |
#widget-list .widget { | |
display: inline | |
} | |
@@ -428,6 +421,12 @@ | |
width: 250px | |
} | |
+#submitdiv a.button, | |
+#submitdiv input, | |
+#submitdiv select { | |
+ position: relative | |
+} | |
+ | |
#bh { | |
margin: 7px 10px 0 0; | |
float: right | |
@@ -444,7 +443,7 @@ | |
} | |
.tagchecklist .ntdelbutton:focus .remove-tag-icon:before { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.nav .button, | |
@@ -524,14 +523,19 @@ | |
padding-bottom: 10px | |
} | |
+.inactive-sidebar .widget, | |
+.widget-liquid-right .widget { | |
+ position: relative | |
+} | |
+ | |
.inactive-sidebar .widget { | |
display: block; | |
float: left | |
} | |
#wpcontent .button-primary-disabled { | |
- color: #9FD0D5; | |
- background: #298CBA | |
+ color: #9fd0d5; | |
+ background: #298cba | |
} | |
#the-comment-list .unapproved td, | |
@@ -587,6 +591,10 @@ | |
display: none !important | |
} | |
+.revisions.pinned .revisions-controls { | |
+ position: relative | |
+} | |
+ | |
.login form .input, | |
input[type=password] { | |
font-family: sans-serif | |
@@ -672,6 +680,12 @@ | |
margin-left: 0 | |
} | |
+* html .stuffbox, | |
+* html .stuffbox input, | |
+* html .stuffbox textarea { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
* html div.widget-liquid-left { | |
width: 99% | |
} | |
@@ -702,6 +716,10 @@ | |
width: 440px | |
} | |
+* html input { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
* html .edit-box { | |
display: inline | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/ie-rtl.min.css build-unminified/wp-admin/css/ie-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/ie-rtl.min.css 2018-10-05 18:07:02.350609316 -0500 | |
+++ build-unminified/wp-admin/css/ie-rtl.min.css 2018-10-05 18:07:19.082724619 -0500 | |
@@ -21,7 +21,7 @@ | |
#dashboard-widgets #postbox-container-3 .empty-container, | |
#dashboard-widgets #postbox-container-4 .empty-container { | |
- border: 0; | |
+ border: 0 none; | |
height: 0; | |
min-height: 0 | |
} | |
@@ -54,12 +54,6 @@ | |
background-image: none | |
} | |
-#adminmenu .wp-submenu, | |
-.folded #adminmenu .opensub .wp-submenu, | |
-.folded #adminmenu .wp-submenu.sub-open { | |
- right: 110px | |
-} | |
- | |
#adminmenuwrap { | |
position: static | |
} | |
@@ -89,6 +83,10 @@ | |
line-height: 1px | |
} | |
+#adminmenu .wp-submenu { | |
+ right: 110px | |
+} | |
+ | |
#adminmenu .wp-submenu ul { | |
margin: 0 | |
} | |
@@ -113,6 +111,11 @@ | |
display: block | |
} | |
+.folded #adminmenu .opensub .wp-submenu, | |
+.folded #adminmenu .wp-submenu.sub-open { | |
+ right: 110px | |
+} | |
+ | |
.folded #adminmenu .wp-has-current-submenu .wp-submenu, | |
.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu { | |
top: -1px; | |
@@ -127,14 +130,6 @@ | |
border-top-color: #ddd | |
} | |
-#wpbody-content .postbox, | |
-* html .stuffbox, | |
-* html .stuffbox input, | |
-* html .stuffbox textarea, | |
-* html input { | |
- border: 1px solid #ddd | |
-} | |
- | |
.folded #adminmenu .wp-submenu ul { | |
margin-right: 5px | |
} | |
@@ -214,7 +209,10 @@ | |
} | |
.plugins td, | |
-.plugins th, | |
+.plugins th { | |
+ border-top: 1px solid #ddd | |
+} | |
+ | |
table.fixed td, | |
table.fixed th { | |
border-top: 1px solid #ddd | |
@@ -242,6 +240,10 @@ | |
vertical-align: middle | |
} | |
+#wpbody-content .postbox { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
#wpbody-content .postbox .hndle { | |
margin-bottom: -1px | |
} | |
@@ -312,8 +314,8 @@ | |
} | |
.button, | |
-input[type=reset], | |
input[type=button], | |
+input[type=reset], | |
input[type=submit] { | |
padding: 0 8px; | |
line-height: 20px; | |
@@ -321,8 +323,8 @@ | |
} | |
.button.button-large, | |
-input[type=reset].button-large, | |
input[type=button].button-large, | |
+input[type=reset].button-large, | |
input[type=submit].button-large { | |
padding: 0 10px; | |
line-height: 24px; | |
@@ -330,8 +332,8 @@ | |
} | |
.button.button-small, | |
-input[type=reset].button-small, | |
input[type=button].button-small, | |
+input[type=reset].button-small, | |
input[type=submit].button-small { | |
padding: 0 6px; | |
line-height: 16px; | |
@@ -389,15 +391,6 @@ | |
margin: -3px 0 4px | |
} | |
-#submitdiv a.button, | |
-#submitdiv input, | |
-#submitdiv select, | |
-.inactive-sidebar .widget, | |
-.revisions.pinned .revisions-controls, | |
-.widget-liquid-right .widget { | |
- position: relative | |
-} | |
- | |
#widget-list .widget { | |
display: inline | |
} | |
@@ -428,6 +421,12 @@ | |
width: 250px | |
} | |
+#submitdiv a.button, | |
+#submitdiv input, | |
+#submitdiv select { | |
+ position: relative | |
+} | |
+ | |
#bh { | |
margin: 7px 0 0 10px; | |
float: left | |
@@ -444,7 +443,7 @@ | |
} | |
.tagchecklist .ntdelbutton:focus .remove-tag-icon:before { | |
- outline: #5b9dd9 solid 1px | |
+ outline: 1px solid #5b9dd9 | |
} | |
.nav .button, | |
@@ -524,14 +523,19 @@ | |
padding-bottom: 10px | |
} | |
+.inactive-sidebar .widget, | |
+.widget-liquid-right .widget { | |
+ position: relative | |
+} | |
+ | |
.inactive-sidebar .widget { | |
display: block; | |
float: right | |
} | |
#wpcontent .button-primary-disabled { | |
- color: #9FD0D5; | |
- background: #298CBA | |
+ color: #9fd0d5; | |
+ background: #298cba | |
} | |
#the-comment-list .unapproved td, | |
@@ -587,6 +591,10 @@ | |
display: none !important | |
} | |
+.revisions.pinned .revisions-controls { | |
+ position: relative | |
+} | |
+ | |
.login form .input, | |
input[type=password] { | |
font-family: sans-serif | |
@@ -672,6 +680,12 @@ | |
margin-right: 0 | |
} | |
+* html .stuffbox, | |
+* html .stuffbox input, | |
+* html .stuffbox textarea { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
* html div.widget-liquid-left { | |
width: 99% | |
} | |
@@ -702,6 +716,10 @@ | |
width: 440px | |
} | |
+* html input { | |
+ border: 1px solid #ddd | |
+} | |
+ | |
* html .edit-box { | |
display: inline | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/install.min.css build-unminified/wp-admin/css/install.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/install.min.css 2018-10-05 18:07:01.794605485 -0500 | |
+++ build-unminified/wp-admin/css/install.min.css 2018-10-05 18:07:18.530720814 -0500 | |
@@ -1,29 +1,4 @@ | |
/*! This file is auto-generated */ | |
-a img, | |
-abbr, | |
-fieldset { | |
- border: 0 | |
-} | |
- | |
-#logo, | |
-h1, | |
-h2 { | |
- padding: 0 0 7px | |
-} | |
- | |
-#pass-strength-result, | |
-textarea { | |
- border: 1px solid #ddd; | |
- box-sizing: border-box | |
-} | |
- | |
-#logo a, | |
-.form-table th p, | |
-h1, | |
-h2 { | |
- font-weight: 400 | |
-} | |
- | |
html { | |
background: #f1f1f1; | |
margin: 0 20px | |
@@ -34,7 +9,7 @@ | |
color: #444; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
margin: 140px auto 25px; | |
- padding: 20px 20px 10px; | |
+ padding: 20px 20px 10px 20px; | |
max-width: 700px; | |
-webkit-font-smoothing: subpixel-antialiased; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, .13) | |
@@ -63,7 +38,10 @@ | |
border-bottom: 1px solid #ddd; | |
clear: both; | |
color: #666; | |
- font-size: 24px | |
+ font-size: 24px; | |
+ padding: 0; | |
+ padding-bottom: 7px; | |
+ font-weight: 400 | |
} | |
h3 { | |
@@ -84,23 +62,23 @@ | |
font-family: Consolas, Monaco, monospace | |
} | |
-input, | |
-submit, | |
-textarea { | |
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif | |
-} | |
- | |
dl, | |
ol, | |
ul { | |
padding: 5px 5px 5px 22px | |
} | |
+a img { | |
+ border: 0 | |
+} | |
+ | |
abbr { | |
+ border: 0; | |
font-variant: normal | |
} | |
fieldset { | |
+ border: 0; | |
padding: 0; | |
margin: 0 | |
} | |
@@ -110,7 +88,8 @@ | |
} | |
#logo { | |
- margin: 6px 0 14px; | |
+ margin: 6px 0 14px 0; | |
+ padding: 0 0 7px 0; | |
border-bottom: none; | |
text-align: center | |
} | |
@@ -124,6 +103,7 @@ | |
color: #444; | |
height: 84px; | |
font-size: 20px; | |
+ font-weight: 400; | |
line-height: 1.3em; | |
margin: -130px auto 25px; | |
padding: 0; | |
@@ -135,12 +115,6 @@ | |
display: block | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
#logo a:focus { | |
box-shadow: none | |
} | |
@@ -162,15 +136,11 @@ | |
vertical-align: middle | |
} | |
-.form-table td, | |
-.form-table th { | |
- padding: 10px 20px 10px 0; | |
- vertical-align: top; | |
- font-size: 14px | |
-} | |
- | |
textarea { | |
- width: 100% | |
+ border: 1px solid #ddd; | |
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
+ width: 100%; | |
+ box-sizing: border-box | |
} | |
.form-table { | |
@@ -180,12 +150,18 @@ | |
} | |
.form-table td { | |
- margin-bottom: 9px | |
+ margin-bottom: 9px; | |
+ padding: 10px 20px 10px 0; | |
+ font-size: 14px; | |
+ vertical-align: top | |
} | |
.form-table th { | |
+ font-size: 14px; | |
text-align: left; | |
- width: 140px | |
+ padding: 10px 20px 10px 0; | |
+ width: 140px; | |
+ vertical-align: top | |
} | |
.form-table code { | |
@@ -194,7 +170,7 @@ | |
} | |
.form-table p { | |
- margin: 4px 0 0; | |
+ margin: 4px 0 0 0; | |
font-size: 11px | |
} | |
@@ -206,6 +182,11 @@ | |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07) | |
} | |
+input, | |
+submit { | |
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif | |
+} | |
+ | |
.form-table input[type=email], | |
.form-table input[type=password], | |
.form-table input[type=text], | |
@@ -213,6 +194,10 @@ | |
width: 206px | |
} | |
+.form-table th p { | |
+ font-weight: 400 | |
+} | |
+ | |
.form-table.install-success td, | |
.form-table.install-success th { | |
vertical-align: middle; | |
@@ -250,11 +235,13 @@ | |
#pass-strength-result { | |
background-color: #eee; | |
+ border: 1px solid #ddd; | |
color: #23282d; | |
margin: -2px 5px 5px 0; | |
padding: 3px 5px; | |
text-align: center; | |
width: 218px; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -302,6 +289,10 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.message { | |
border-left: 4px solid #dc3232; | |
padding: .7em .6em; | |
@@ -320,6 +311,11 @@ | |
direction: ltr | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -335,7 +331,6 @@ | |
font-family: Tahoma, sans-serif | |
} | |
-.language-chooser select, | |
:lang(he-il) .rtl input, | |
:lang(he-il) .rtl submit, | |
:lang(he-il) .rtl textarea, | |
@@ -381,10 +376,10 @@ | |
} | |
.form-table span.description, | |
- .form-table td input[type=text], | |
.form-table td input[type=email], | |
- .form-table td input[type=url], | |
.form-table td input[type=password], | |
+ .form-table td input[type=text], | |
+ .form-table td input[type=url], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -409,6 +404,7 @@ | |
background-color: #fff; | |
color: #32373c; | |
font-size: 16px; | |
+ font-family: Arial, sans-serif; | |
font-weight: 400 | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/install-rtl.min.css build-unminified/wp-admin/css/install-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/install-rtl.min.css 2018-10-05 18:06:59.198587600 -0500 | |
+++ build-unminified/wp-admin/css/install-rtl.min.css 2018-10-05 18:07:15.942702976 -0500 | |
@@ -1,29 +1,4 @@ | |
/*! This file is auto-generated */ | |
-a img, | |
-abbr, | |
-fieldset { | |
- border: 0 | |
-} | |
- | |
-#logo, | |
-h1, | |
-h2 { | |
- padding: 0 0 7px | |
-} | |
- | |
-#pass-strength-result, | |
-textarea { | |
- border: 1px solid #ddd; | |
- box-sizing: border-box | |
-} | |
- | |
-#logo a, | |
-.form-table th p, | |
-h1, | |
-h2 { | |
- font-weight: 400 | |
-} | |
- | |
html { | |
background: #f1f1f1; | |
margin: 0 20px | |
@@ -34,7 +9,7 @@ | |
color: #444; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
margin: 140px auto 25px; | |
- padding: 20px 20px 10px; | |
+ padding: 20px 20px 10px 20px; | |
max-width: 700px; | |
-webkit-font-smoothing: subpixel-antialiased; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, .13) | |
@@ -63,7 +38,10 @@ | |
border-bottom: 1px solid #ddd; | |
clear: both; | |
color: #666; | |
- font-size: 24px | |
+ font-size: 24px; | |
+ padding: 0; | |
+ padding-bottom: 7px; | |
+ font-weight: 400 | |
} | |
h3 { | |
@@ -84,23 +62,23 @@ | |
font-family: Consolas, Monaco, monospace | |
} | |
-input, | |
-submit, | |
-textarea { | |
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif | |
-} | |
- | |
dl, | |
ol, | |
ul { | |
padding: 5px 22px 5px 5px | |
} | |
+a img { | |
+ border: 0 | |
+} | |
+ | |
abbr { | |
+ border: 0; | |
font-variant: normal | |
} | |
fieldset { | |
+ border: 0; | |
padding: 0; | |
margin: 0 | |
} | |
@@ -110,7 +88,8 @@ | |
} | |
#logo { | |
- margin: 6px 0 14px; | |
+ margin: 6px 0 14px 0; | |
+ padding: 0 0 7px 0; | |
border-bottom: none; | |
text-align: center | |
} | |
@@ -124,6 +103,7 @@ | |
color: #444; | |
height: 84px; | |
font-size: 20px; | |
+ font-weight: 400; | |
line-height: 1.3em; | |
margin: -130px auto 25px; | |
padding: 0; | |
@@ -135,12 +115,6 @@ | |
display: block | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
#logo a:focus { | |
box-shadow: none | |
} | |
@@ -162,15 +136,11 @@ | |
vertical-align: middle | |
} | |
-.form-table td, | |
-.form-table th { | |
- padding: 10px 0 10px 20px; | |
- vertical-align: top; | |
- font-size: 14px | |
-} | |
- | |
textarea { | |
- width: 100% | |
+ border: 1px solid #ddd; | |
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
+ width: 100%; | |
+ box-sizing: border-box | |
} | |
.form-table { | |
@@ -180,12 +150,18 @@ | |
} | |
.form-table td { | |
- margin-bottom: 9px | |
+ margin-bottom: 9px; | |
+ padding: 10px 0 10px 20px; | |
+ font-size: 14px; | |
+ vertical-align: top | |
} | |
.form-table th { | |
+ font-size: 14px; | |
text-align: right; | |
- width: 140px | |
+ padding: 10px 0 10px 20px; | |
+ width: 140px; | |
+ vertical-align: top | |
} | |
.form-table code { | |
@@ -194,7 +170,7 @@ | |
} | |
.form-table p { | |
- margin: 4px 0 0; | |
+ margin: 4px 0 0 0; | |
font-size: 11px | |
} | |
@@ -206,6 +182,11 @@ | |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07) | |
} | |
+input, | |
+submit { | |
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif | |
+} | |
+ | |
.form-table input[type=email], | |
.form-table input[type=password], | |
.form-table input[type=text], | |
@@ -213,6 +194,10 @@ | |
width: 206px | |
} | |
+.form-table th p { | |
+ font-weight: 400 | |
+} | |
+ | |
.form-table.install-success td, | |
.form-table.install-success th { | |
vertical-align: middle; | |
@@ -250,11 +235,13 @@ | |
#pass-strength-result { | |
background-color: #eee; | |
+ border: 1px solid #ddd; | |
color: #23282d; | |
margin: -2px 0 5px 5px; | |
padding: 3px 5px; | |
text-align: center; | |
width: 218px; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -302,6 +289,10 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.message { | |
border-right: 4px solid #dc3232; | |
padding: .7em .6em; | |
@@ -320,6 +311,11 @@ | |
direction: ltr | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -335,7 +331,6 @@ | |
font-family: Tahoma, sans-serif | |
} | |
-.language-chooser select, | |
:lang(he-il) .rtl input, | |
:lang(he-il) .rtl submit, | |
:lang(he-il) .rtl textarea, | |
@@ -381,10 +376,10 @@ | |
} | |
.form-table span.description, | |
- .form-table td input[type=text], | |
.form-table td input[type=email], | |
- .form-table td input[type=url], | |
.form-table td input[type=password], | |
+ .form-table td input[type=text], | |
+ .form-table td input[type=url], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -409,6 +404,7 @@ | |
background-color: #fff; | |
color: #32373c; | |
font-size: 16px; | |
+ font-family: Arial, sans-serif; | |
font-weight: 400 | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/l10n.min.css build-unminified/wp-admin/css/l10n.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/l10n.min.css 2018-10-05 18:07:03.530617445 -0500 | |
+++ build-unminified/wp-admin/css/l10n.min.css 2018-10-05 18:07:20.258732724 -0500 | |
@@ -1,27 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.locale-he-il em, | |
-.locale-zh-cn #local-time, | |
-.locale-zh-cn #utc-time, | |
-.locale-zh-cn .form-wrap p, | |
-.locale-zh-cn .howto, | |
-.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
-.locale-zh-cn .inline-edit-row fieldset span.title, | |
-.locale-zh-cn .js .input-with-default-title, | |
-.locale-zh-cn .link-to-original, | |
-.locale-zh-cn .tablenav .displaying-num, | |
-.locale-zh-cn p.description, | |
-.locale-zh-cn p.help, | |
-.locale-zh-cn p.install-help, | |
-.locale-zh-cn span.description { | |
- font-style: normal | |
-} | |
- | |
-.locale-de-de #customize-header-actions .button, | |
-.locale-de-de-formal #customize-header-actions .button, | |
-.locale-ru-ru #customize-header-actions .button { | |
- padding: 0 5px 1px | |
-} | |
- | |
body.rtl, | |
body.rtl .press-this a.wp-switch-editor { | |
font-family: Tahoma, Arial, sans-serif | |
@@ -43,9 +20,26 @@ | |
} | |
.locale-he-il em { | |
+ font-style: normal; | |
font-weight: 600 | |
} | |
+.locale-zh-cn #local-time, | |
+.locale-zh-cn #utc-time, | |
+.locale-zh-cn .form-wrap p, | |
+.locale-zh-cn .howto, | |
+.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
+.locale-zh-cn .inline-edit-row fieldset span.title, | |
+.locale-zh-cn .js .input-with-default-title, | |
+.locale-zh-cn .link-to-original, | |
+.locale-zh-cn .tablenav .displaying-num, | |
+.locale-zh-cn p.description, | |
+.locale-zh-cn p.help, | |
+.locale-zh-cn p.install-help, | |
+.locale-zh-cn span.description { | |
+ font-style: normal | |
+} | |
+ | |
.locale-zh-cn .hdnle a { | |
font-size: 12px | |
} | |
@@ -59,6 +53,11 @@ | |
font-size: 1em !important | |
} | |
+.locale-de-de #customize-header-actions .button, | |
+.locale-de-de-formal #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-de-de #customize-header-actions .spinner, | |
.locale-de-de-formal #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
@@ -96,6 +95,10 @@ | |
width: 265px | |
} | |
+.locale-ru-ru #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-ru-ru #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/l10n-rtl.min.css build-unminified/wp-admin/css/l10n-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/l10n-rtl.min.css 2018-10-05 18:06:57.586576496 -0500 | |
+++ build-unminified/wp-admin/css/l10n-rtl.min.css 2018-10-05 18:07:14.306691701 -0500 | |
@@ -1,27 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.locale-he-il em, | |
-.locale-zh-cn #local-time, | |
-.locale-zh-cn #utc-time, | |
-.locale-zh-cn .form-wrap p, | |
-.locale-zh-cn .howto, | |
-.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
-.locale-zh-cn .inline-edit-row fieldset span.title, | |
-.locale-zh-cn .js .input-with-default-title, | |
-.locale-zh-cn .link-to-original, | |
-.locale-zh-cn .tablenav .displaying-num, | |
-.locale-zh-cn p.description, | |
-.locale-zh-cn p.help, | |
-.locale-zh-cn p.install-help, | |
-.locale-zh-cn span.description { | |
- font-style: normal | |
-} | |
- | |
-.locale-de-de #customize-header-actions .button, | |
-.locale-de-de-formal #customize-header-actions .button, | |
-.locale-ru-ru #customize-header-actions .button { | |
- padding: 0 5px 1px | |
-} | |
- | |
body.rtl, | |
body.rtl .press-this a.wp-switch-editor { | |
font-family: Tahoma, Arial, sans-serif | |
@@ -43,9 +20,26 @@ | |
} | |
.locale-he-il em { | |
+ font-style: normal; | |
font-weight: 600 | |
} | |
+.locale-zh-cn #local-time, | |
+.locale-zh-cn #utc-time, | |
+.locale-zh-cn .form-wrap p, | |
+.locale-zh-cn .howto, | |
+.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
+.locale-zh-cn .inline-edit-row fieldset span.title, | |
+.locale-zh-cn .js .input-with-default-title, | |
+.locale-zh-cn .link-to-original, | |
+.locale-zh-cn .tablenav .displaying-num, | |
+.locale-zh-cn p.description, | |
+.locale-zh-cn p.help, | |
+.locale-zh-cn p.install-help, | |
+.locale-zh-cn span.description { | |
+ font-style: normal | |
+} | |
+ | |
.locale-zh-cn .hdnle a { | |
font-size: 12px | |
} | |
@@ -59,6 +53,11 @@ | |
font-size: 1em !important | |
} | |
+.locale-de-de #customize-header-actions .button, | |
+.locale-de-de-formal #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-de-de #customize-header-actions .spinner, | |
.locale-de-de-formal #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
@@ -96,6 +95,10 @@ | |
width: 265px | |
} | |
+.locale-ru-ru #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-ru-ru #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/list-tables.min.css build-unminified/wp-admin/css/list-tables.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/list-tables.min.css 2018-10-05 18:06:57.710577350 -0500 | |
+++ build-unminified/wp-admin/css/list-tables.min.css 2018-10-05 18:07:14.438692610 -0500 | |
@@ -258,7 +258,7 @@ | |
th .comment-grey-bubble:before { | |
content: "\f101"; | |
- font: 400 20px/.5 dashicons; | |
+ font: normal 20px/.5 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
@@ -402,7 +402,7 @@ | |
} | |
#commentsdiv .comments-box { | |
- border: 0 | |
+ border: 0 none | |
} | |
#commentsdiv .comments-box thead td, | |
@@ -431,12 +431,13 @@ | |
.sorting-indicator:before { | |
content: "\f142"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
top: -4px; | |
left: -8px; | |
+ color: #444; | |
line-height: 10px; | |
position: relative; | |
vertical-align: top; | |
@@ -501,7 +502,7 @@ | |
padding: 1px 2px 1px 0; | |
color: #444; | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
@@ -522,7 +523,7 @@ | |
color: #82878c; | |
content: "\f160"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
@@ -750,7 +751,7 @@ | |
.view-switch a:before { | |
color: #b4b9be; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
@@ -806,11 +807,6 @@ | |
padding: 0 0 .2em 1px | |
} | |
-.row-actions, | |
-.row-actions-visible { | |
- padding: 2px 0 0 | |
-} | |
- | |
p.pagenav { | |
margin: 0; | |
display: inline | |
@@ -841,22 +837,20 @@ | |
.row-actions { | |
color: #ddd; | |
font-size: 13px; | |
+ padding: 2px 0 0; | |
position: relative; | |
left: -9999em | |
} | |
-.plugins, | |
-.plugins td, | |
-.plugins th, | |
+.rtl .row-actions a { | |
+ display: inline-block | |
+} | |
+ | |
.row-actions .network_active, | |
.row-actions .network_only { | |
color: #000 | |
} | |
-.rtl .row-actions a { | |
- display: inline-block | |
-} | |
- | |
.comment-item:hover .row-actions, | |
.mobile .row-actions, | |
.no-js .row-actions, | |
@@ -865,6 +859,10 @@ | |
position: static | |
} | |
+.row-actions-visible { | |
+ padding: 2px 0 0 | |
+} | |
+ | |
#wpbody-content .inline-edit-row fieldset { | |
font-size: 12px; | |
float: left; | |
@@ -950,8 +948,7 @@ | |
.inline-edit-row fieldset span.checkbox-title, | |
.inline-edit-row fieldset span.title { | |
margin: 0; | |
- padding: 0; | |
- font-style: italic | |
+ padding: 0 | |
} | |
.inline-edit-row fieldset label, | |
@@ -1024,14 +1021,6 @@ | |
vertical-align: top | |
} | |
-#bulk-titles, | |
-ul.cat-checklist { | |
- height: 12em; | |
- border: 1px solid #ddd; | |
- overflow-y: scroll; | |
- padding: 0 5px | |
-} | |
- | |
#wpbody-content .bulk-edit-row fieldset .inline-edit-group label { | |
max-width: 50% | |
} | |
@@ -1048,6 +1037,11 @@ | |
text-transform: uppercase | |
} | |
+.inline-edit-row fieldset span.checkbox-title, | |
+.inline-edit-row fieldset span.title { | |
+ font-style: italic | |
+} | |
+ | |
.inline-edit-row fieldset .inline-edit-date { | |
float: left | |
} | |
@@ -1069,14 +1063,21 @@ | |
} | |
ul.cat-checklist { | |
+ height: 12em; | |
+ border: solid 1px #ddd; | |
+ overflow-y: scroll; | |
+ padding: 0 5px; | |
margin: 0; | |
background-color: #fff | |
} | |
#bulk-titles { | |
display: block; | |
- margin: 0 0 5px; | |
- line-height: 140% | |
+ height: 12em; | |
+ border: 1px solid #ddd; | |
+ overflow-y: scroll; | |
+ padding: 0 5px; | |
+ margin: 0 0 5px | |
} | |
.inline-edit-row fieldset ul.cat-checklist input, | |
@@ -1113,6 +1114,10 @@ | |
float: left | |
} | |
+#bulk-titles { | |
+ line-height: 140% | |
+} | |
+ | |
#bulk-titles div { | |
margin: .2em .3em | |
} | |
@@ -1152,6 +1157,12 @@ | |
padding-left: 6px | |
} | |
+.plugins, | |
+.plugins td, | |
+.plugins th { | |
+ color: #000 | |
+} | |
+ | |
.plugins tr { | |
background: #fff | |
} | |
@@ -1179,7 +1190,8 @@ | |
} | |
.plugins .row-actions { | |
- font-size: 13px | |
+ font-size: 13px; | |
+ padding: 0 | |
} | |
.plugins .active td, | |
@@ -1254,7 +1266,7 @@ | |
background-color: #eee; | |
box-shadow: inset 0 0 10px rgba(160, 165, 170, .15); | |
font-size: 60px; | |
- color: #B4B9BE | |
+ color: #b4b9be | |
} | |
#update-themes-table .plugin-title .dashicons, | |
@@ -1303,7 +1315,7 @@ | |
color: #f56e28; | |
content: "\f463"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px 5px 0 -2px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1505,7 +1517,7 @@ | |
} | |
.plugin-card .column-compatibility span:before { | |
- font: 400 20px/.5 dashicons; | |
+ font: normal 20px/.5 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
@@ -1612,19 +1624,12 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- .plugins #the-list tr td, | |
- .plugins tr.active+tr.inactive td, | |
- .plugins tr.active+tr.inactive th.check-column { | |
- border-top: none | |
- } | |
- | |
.tablenav { | |
height: auto | |
} | |
.tablenav.top { | |
- margin: 20px 0 5px | |
+ margin: 20px 0 5px 0 | |
} | |
.tablenav.bottom { | |
@@ -1640,11 +1645,8 @@ | |
display: block | |
} | |
- .form-wrap>p, | |
.tablenav .view-switch, | |
- .tablenav.top .actions, | |
- .tablenav.top .displaying-num, | |
- .tablenav.top .tablenav-pages.one-page { | |
+ .tablenav.top .actions { | |
display: none | |
} | |
@@ -1654,6 +1656,10 @@ | |
line-height: 33px | |
} | |
+ .tablenav.top .displaying-num { | |
+ display: none | |
+ } | |
+ | |
.tablenav.bottom .displaying-num { | |
position: absolute; | |
right: 0; | |
@@ -1673,8 +1679,12 @@ | |
margin-top: 25px | |
} | |
+ .tablenav.top .tablenav-pages.one-page { | |
+ display: none | |
+ } | |
+ | |
.tablenav.bottom .tablenav-pages.one-page { | |
- margin: 15px 0 0; | |
+ margin: 15px 0 0 0; | |
height: 0 | |
} | |
@@ -1697,6 +1707,10 @@ | |
font-size: 16px | |
} | |
+ .form-wrap>p { | |
+ display: none | |
+ } | |
+ | |
.comment-count { | |
font-size: 14px | |
} | |
@@ -1793,17 +1807,16 @@ | |
display: none | |
} | |
- #edithead label, | |
- .column-comments .post-com-count-wrapper>a, | |
- .column-response .post-com-count-wrapper>a { | |
- display: block | |
- } | |
- | |
.column-comments .post-com-count-wrapper, | |
.column-response .post-com-count-wrapper { | |
white-space: normal | |
} | |
+ .column-comments .post-com-count-wrapper>a, | |
+ .column-response .post-com-count-wrapper>a { | |
+ display: block | |
+ } | |
+ | |
.column-comments .post-com-count-approved, | |
.column-comments .post-com-count-no-comments, | |
.column-response .post-com-count-approved, | |
@@ -1919,14 +1932,12 @@ | |
width: 100% | |
} | |
- #bulk-titles div { | |
- margin: .8em .3em | |
+ #edithead label { | |
+ display: block | |
} | |
- .plugin-card, | |
- .plugin-update-tr .update-message, | |
- .plugins .plugin-update-tr .update-message { | |
- margin-left: 0 | |
+ #bulk-titles div { | |
+ margin: .8em .3em | |
} | |
#bulk-titles div a { | |
@@ -1981,6 +1992,10 @@ | |
border-top: none | |
} | |
+ .plugins #the-list tr td { | |
+ border-top: none | |
+ } | |
+ | |
.plugins tbody { | |
padding: 1px 0 0 | |
} | |
@@ -1991,20 +2006,38 @@ | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
+ .plugins tr.active+tr.inactive td, | |
+ .plugins tr.active+tr.inactive th.check-column { | |
+ border-top: none | |
+ } | |
+ | |
.plugins .plugin-update-tr:before { | |
content: ""; | |
display: table-cell | |
} | |
+ .plugins .active.update+.plugin-update-tr:before { | |
+ border-left: 4px solid #d54e21; | |
+ background-color: #fef7f1 | |
+ } | |
+ | |
.plugins #the-list .plugin-update-tr .plugin-update { | |
border-left: none | |
} | |
+ .plugin-update-tr .update-message { | |
+ margin-left: 0 | |
+ } | |
+ | |
.plugins .active.update+.plugin-update-tr:before { | |
background-color: #f7fcfe; | |
border-left: 4px solid #00a0d2 | |
} | |
+ .plugins .plugin-update-tr .update-message { | |
+ margin-left: 0 | |
+ } | |
+ | |
.wp-list-table.plugins .plugin-title strong, | |
.wp-list-table.plugins .theme-title strong { | |
font-size: 1.4em; | |
@@ -2041,6 +2074,7 @@ | |
} | |
.plugin-card { | |
+ margin-left: 0; | |
margin-right: 0; | |
width: 100% | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/list-tables-rtl.min.css build-unminified/wp-admin/css/list-tables-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/list-tables-rtl.min.css 2018-10-05 18:06:59.342588593 -0500 | |
+++ build-unminified/wp-admin/css/list-tables-rtl.min.css 2018-10-05 18:07:16.078703913 -0500 | |
@@ -258,7 +258,7 @@ | |
th .comment-grey-bubble:before { | |
content: "\f101"; | |
- font: 400 20px/.5 dashicons; | |
+ font: normal 20px/.5 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
@@ -402,7 +402,7 @@ | |
} | |
#commentsdiv .comments-box { | |
- border: 0 | |
+ border: 0 none | |
} | |
#commentsdiv .comments-box thead td, | |
@@ -431,12 +431,13 @@ | |
.sorting-indicator:before { | |
content: "\f142"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
top: -4px; | |
right: -8px; | |
+ color: #444; | |
line-height: 10px; | |
position: relative; | |
vertical-align: top; | |
@@ -501,7 +502,7 @@ | |
padding: 1px 0 1px 2px; | |
color: #444; | |
content: "\f140"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
line-height: 1; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
@@ -522,7 +523,7 @@ | |
color: #82878c; | |
content: "\f160"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
@@ -750,7 +751,7 @@ | |
.view-switch a:before { | |
color: #b4b9be; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle; | |
-webkit-font-smoothing: antialiased; | |
@@ -806,11 +807,6 @@ | |
padding: 0 1px .2em 0 | |
} | |
-.row-actions, | |
-.row-actions-visible { | |
- padding: 2px 0 0 | |
-} | |
- | |
p.pagenav { | |
margin: 0; | |
display: inline | |
@@ -841,22 +837,20 @@ | |
.row-actions { | |
color: #ddd; | |
font-size: 13px; | |
+ padding: 2px 0 0; | |
position: relative; | |
right: -9999em | |
} | |
-.plugins, | |
-.plugins td, | |
-.plugins th, | |
+.rtl .row-actions a { | |
+ display: inline-block | |
+} | |
+ | |
.row-actions .network_active, | |
.row-actions .network_only { | |
color: #000 | |
} | |
-.rtl .row-actions a { | |
- display: inline-block | |
-} | |
- | |
.comment-item:hover .row-actions, | |
.mobile .row-actions, | |
.no-js .row-actions, | |
@@ -865,6 +859,10 @@ | |
position: static | |
} | |
+.row-actions-visible { | |
+ padding: 2px 0 0 | |
+} | |
+ | |
#wpbody-content .inline-edit-row fieldset { | |
font-size: 12px; | |
float: right; | |
@@ -950,8 +948,7 @@ | |
.inline-edit-row fieldset span.checkbox-title, | |
.inline-edit-row fieldset span.title { | |
margin: 0; | |
- padding: 0; | |
- font-style: italic | |
+ padding: 0 | |
} | |
.inline-edit-row fieldset label, | |
@@ -1024,14 +1021,6 @@ | |
vertical-align: top | |
} | |
-#bulk-titles, | |
-ul.cat-checklist { | |
- height: 12em; | |
- border: 1px solid #ddd; | |
- overflow-y: scroll; | |
- padding: 0 5px | |
-} | |
- | |
#wpbody-content .bulk-edit-row fieldset .inline-edit-group label { | |
max-width: 50% | |
} | |
@@ -1048,6 +1037,11 @@ | |
text-transform: uppercase | |
} | |
+.inline-edit-row fieldset span.checkbox-title, | |
+.inline-edit-row fieldset span.title { | |
+ font-style: italic | |
+} | |
+ | |
.inline-edit-row fieldset .inline-edit-date { | |
float: right | |
} | |
@@ -1069,14 +1063,21 @@ | |
} | |
ul.cat-checklist { | |
+ height: 12em; | |
+ border: solid 1px #ddd; | |
+ overflow-y: scroll; | |
+ padding: 0 5px; | |
margin: 0; | |
background-color: #fff | |
} | |
#bulk-titles { | |
display: block; | |
- margin: 0 0 5px; | |
- line-height: 140% | |
+ height: 12em; | |
+ border: 1px solid #ddd; | |
+ overflow-y: scroll; | |
+ padding: 0 5px; | |
+ margin: 0 0 5px | |
} | |
.inline-edit-row fieldset ul.cat-checklist input, | |
@@ -1113,6 +1114,10 @@ | |
float: right | |
} | |
+#bulk-titles { | |
+ line-height: 140% | |
+} | |
+ | |
#bulk-titles div { | |
margin: .2em .3em | |
} | |
@@ -1152,6 +1157,12 @@ | |
padding-right: 6px | |
} | |
+.plugins, | |
+.plugins td, | |
+.plugins th { | |
+ color: #000 | |
+} | |
+ | |
.plugins tr { | |
background: #fff | |
} | |
@@ -1179,7 +1190,8 @@ | |
} | |
.plugins .row-actions { | |
- font-size: 13px | |
+ font-size: 13px; | |
+ padding: 0 | |
} | |
.plugins .active td, | |
@@ -1254,7 +1266,7 @@ | |
background-color: #eee; | |
box-shadow: inset 0 0 10px rgba(160, 165, 170, .15); | |
font-size: 60px; | |
- color: #B4B9BE | |
+ color: #b4b9be | |
} | |
#update-themes-table .plugin-title .dashicons, | |
@@ -1303,7 +1315,7 @@ | |
color: #f56e28; | |
content: "\f463"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px -2px 0 5px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1505,7 +1517,7 @@ | |
} | |
.plugin-card .column-compatibility span:before { | |
- font: 400 20px/.5 dashicons; | |
+ font: normal 20px/.5 dashicons; | |
speak: none; | |
display: inline-block; | |
padding: 0; | |
@@ -1612,19 +1624,12 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- .plugins #the-list tr td, | |
- .plugins tr.active+tr.inactive td, | |
- .plugins tr.active+tr.inactive th.check-column { | |
- border-top: none | |
- } | |
- | |
.tablenav { | |
height: auto | |
} | |
.tablenav.top { | |
- margin: 20px 0 5px | |
+ margin: 20px 0 5px 0 | |
} | |
.tablenav.bottom { | |
@@ -1640,11 +1645,8 @@ | |
display: block | |
} | |
- .form-wrap>p, | |
.tablenav .view-switch, | |
- .tablenav.top .actions, | |
- .tablenav.top .displaying-num, | |
- .tablenav.top .tablenav-pages.one-page { | |
+ .tablenav.top .actions { | |
display: none | |
} | |
@@ -1654,6 +1656,10 @@ | |
line-height: 33px | |
} | |
+ .tablenav.top .displaying-num { | |
+ display: none | |
+ } | |
+ | |
.tablenav.bottom .displaying-num { | |
position: absolute; | |
left: 0; | |
@@ -1673,8 +1679,12 @@ | |
margin-top: 25px | |
} | |
+ .tablenav.top .tablenav-pages.one-page { | |
+ display: none | |
+ } | |
+ | |
.tablenav.bottom .tablenav-pages.one-page { | |
- margin: 15px 0 0; | |
+ margin: 15px 0 0 0; | |
height: 0 | |
} | |
@@ -1697,6 +1707,10 @@ | |
font-size: 16px | |
} | |
+ .form-wrap>p { | |
+ display: none | |
+ } | |
+ | |
.comment-count { | |
font-size: 14px | |
} | |
@@ -1793,17 +1807,16 @@ | |
display: none | |
} | |
- #edithead label, | |
- .column-comments .post-com-count-wrapper>a, | |
- .column-response .post-com-count-wrapper>a { | |
- display: block | |
- } | |
- | |
.column-comments .post-com-count-wrapper, | |
.column-response .post-com-count-wrapper { | |
white-space: normal | |
} | |
+ .column-comments .post-com-count-wrapper>a, | |
+ .column-response .post-com-count-wrapper>a { | |
+ display: block | |
+ } | |
+ | |
.column-comments .post-com-count-approved, | |
.column-comments .post-com-count-no-comments, | |
.column-response .post-com-count-approved, | |
@@ -1919,14 +1932,12 @@ | |
width: 100% | |
} | |
- #bulk-titles div { | |
- margin: .8em .3em | |
+ #edithead label { | |
+ display: block | |
} | |
- .plugin-card, | |
- .plugin-update-tr .update-message, | |
- .plugins .plugin-update-tr .update-message { | |
- margin-right: 0 | |
+ #bulk-titles div { | |
+ margin: .8em .3em | |
} | |
#bulk-titles div a { | |
@@ -1981,6 +1992,10 @@ | |
border-top: none | |
} | |
+ .plugins #the-list tr td { | |
+ border-top: none | |
+ } | |
+ | |
.plugins tbody { | |
padding: 1px 0 0 | |
} | |
@@ -1991,20 +2006,38 @@ | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
+ .plugins tr.active+tr.inactive td, | |
+ .plugins tr.active+tr.inactive th.check-column { | |
+ border-top: none | |
+ } | |
+ | |
.plugins .plugin-update-tr:before { | |
content: ""; | |
display: table-cell | |
} | |
+ .plugins .active.update+.plugin-update-tr:before { | |
+ border-right: 4px solid #d54e21; | |
+ background-color: #fef7f1 | |
+ } | |
+ | |
.plugins #the-list .plugin-update-tr .plugin-update { | |
border-right: none | |
} | |
+ .plugin-update-tr .update-message { | |
+ margin-right: 0 | |
+ } | |
+ | |
.plugins .active.update+.plugin-update-tr:before { | |
background-color: #f7fcfe; | |
border-right: 4px solid #00a0d2 | |
} | |
+ .plugins .plugin-update-tr .update-message { | |
+ margin-right: 0 | |
+ } | |
+ | |
.wp-list-table.plugins .plugin-title strong, | |
.wp-list-table.plugins .theme-title strong { | |
font-size: 1.4em; | |
@@ -2041,6 +2074,7 @@ | |
} | |
.plugin-card { | |
+ margin-right: 0; | |
margin-left: 0; | |
width: 100% | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/login.min.css build-unminified/wp-admin/css/login.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/login.min.css 2018-10-05 18:07:02.142607883 -0500 | |
+++ build-unminified/wp-admin/css/login.min.css 2018-10-05 18:07:18.870723157 -0500 | |
@@ -1,44 +1,25 @@ | |
/*! This file is auto-generated */ | |
-#your-profile label+a, | |
-.wp-admin select, | |
-fieldset label, | |
-label { | |
- vertical-align: middle | |
-} | |
- | |
-#pass-strength-result, | |
-.color-option, | |
input, | |
textarea { | |
box-sizing: border-box | |
} | |
-#pressthis-code-wrap, | |
-textarea { | |
- overflow: auto | |
-} | |
- | |
-.login h1 a, | |
-form p.submit a.cancel:hover { | |
- text-decoration: none | |
-} | |
- | |
-input[type=text], | |
-input[type=search], | |
-input[type=radio], | |
-input[type=tel], | |
-input[type=time], | |
-input[type=url], | |
-input[type=week], | |
-input[type=password], | |
input[type=checkbox], | |
input[type=color], | |
input[type=date], | |
-input[type=datetime], | |
input[type=datetime-local], | |
+input[type=datetime], | |
input[type=email], | |
input[type=month], | |
input[type=number], | |
+input[type=password], | |
+input[type=radio], | |
+input[type=search], | |
+input[type=tel], | |
+input[type=text], | |
+input[type=time], | |
+input[type=url], | |
+input[type=week], | |
select, | |
textarea { | |
border: 1px solid #ddd; | |
@@ -49,30 +30,30 @@ | |
transition: 50ms border-color ease-in-out | |
} | |
-input[type=text]:focus, | |
-input[type=search]:focus, | |
-input[type=radio]:focus, | |
-input[type=tel]:focus, | |
-input[type=time]:focus, | |
-input[type=url]:focus, | |
-input[type=week]:focus, | |
-input[type=password]:focus, | |
input[type=checkbox]:focus, | |
input[type=color]:focus, | |
input[type=date]:focus, | |
-input[type=datetime]:focus, | |
input[type=datetime-local]:focus, | |
+input[type=datetime]:focus, | |
input[type=email]:focus, | |
input[type=month]:focus, | |
input[type=number]:focus, | |
+input[type=password]:focus, | |
+input[type=radio]:focus, | |
+input[type=search]:focus, | |
+input[type=tel]:focus, | |
+input[type=text]:focus, | |
+input[type=time]:focus, | |
+input[type=url]:focus, | |
+input[type=week]:focus, | |
select:focus, | |
textarea:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
} | |
-input[type=url], | |
-input[type=email] { | |
+input[type=email], | |
+input[type=url] { | |
direction: ltr | |
} | |
@@ -81,8 +62,8 @@ | |
line-height: 1 | |
} | |
-input[type=radio], | |
-input[type=checkbox] { | |
+input[type=checkbox], | |
+input[type=radio] { | |
border: 1px solid #b4b9be; | |
background: #fff; | |
color: #555; | |
@@ -112,8 +93,8 @@ | |
color: #00a0d2 | |
} | |
-.wp-admin p input[type=radio], | |
.wp-admin p input[type=checkbox], | |
+.wp-admin p input[type=radio], | |
td>input[type=checkbox] { | |
margin-top: 0 | |
} | |
@@ -132,24 +113,18 @@ | |
line-height: 10px | |
} | |
-input[type=radio]:checked:before, | |
-input[type=checkbox]:checked:before { | |
+input[type=checkbox]:checked:before, | |
+input[type=radio]:checked:before { | |
float: left; | |
display: inline-block; | |
vertical-align: middle; | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
input[type=checkbox]:checked:before { | |
content: "\f147"; | |
margin: -3px 0 0 -4px; | |
@@ -171,8 +146,8 @@ | |
@-moz-document url-prefix() { | |
.form-table input.tog, | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
margin-bottom: -1px | |
} | |
} | |
@@ -202,10 +177,12 @@ | |
select, | |
textarea { | |
font-size: 14px; | |
+ padding: 3px 5px; | |
border-radius: 0 | |
} | |
textarea { | |
+ overflow: auto; | |
padding: 2px 6px; | |
line-height: 1.4; | |
resize: vertical | |
@@ -232,7 +209,7 @@ | |
textarea.code { | |
line-height: 1.4; | |
- padding: 4px 6px 1px | |
+ padding: 4px 6px 1px 6px | |
} | |
input.readonly, | |
@@ -265,7 +242,7 @@ | |
.form-table .form-required.form-invalid td:after { | |
content: "\f534"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin-left: -25px; | |
vertical-align: middle | |
@@ -277,7 +254,7 @@ | |
.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { | |
content: '\f534'; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin: 0 6px 0 -29px; | |
vertical-align: middle | |
@@ -308,21 +285,22 @@ | |
cursor: default | |
} | |
-input[type=radio].disabled, | |
-input[type=radio].disabled:checked:before, | |
-input[type=radio]:disabled, | |
-input[type=radio]:disabled:checked:before, | |
input[type=checkbox].disabled, | |
input[type=checkbox].disabled:checked:before, | |
input[type=checkbox]:disabled, | |
-input[type=checkbox]:disabled:checked:before { | |
+input[type=checkbox]:disabled:checked:before, | |
+input[type=radio].disabled, | |
+input[type=radio].disabled:checked:before, | |
+input[type=radio]:disabled, | |
+input[type=radio]:disabled:checked:before { | |
opacity: .7 | |
} | |
.wp-admin select { | |
padding: 2px; | |
line-height: 28px; | |
- height: 28px | |
+ height: 28px; | |
+ vertical-align: middle | |
} | |
.wp-admin .button-cancel { | |
@@ -346,6 +324,10 @@ | |
border: none | |
} | |
+form p.submit a.cancel:hover { | |
+ text-decoration: none | |
+} | |
+ | |
p.submit { | |
text-align: left; | |
max-width: 100%; | |
@@ -438,6 +420,16 @@ | |
top: 3px | |
} | |
+#your-profile label+a, | |
+label { | |
+ vertical-align: middle | |
+} | |
+ | |
+#your-profile label+a, | |
+fieldset label { | |
+ vertical-align: middle | |
+} | |
+ | |
.options-media-php [for*="_size_"] { | |
min-width: 10em; | |
vertical-align: baseline | |
@@ -459,6 +451,7 @@ | |
padding: 3px 5px; | |
text-align: center; | |
width: 25em; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -506,10 +499,19 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.indicator-hint { | |
padding-top: 8px | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -545,8 +547,8 @@ | |
height: 32px | |
} | |
-input[type=text].ui-autocomplete-loading, | |
-input[type=email].ui-autocomplete-loading { | |
+input[type=email].ui-autocomplete-loading, | |
+input[type=text].ui-autocomplete-loading { | |
background-image: url(../images/loading.gif); | |
background-repeat: no-repeat; | |
background-position: right center; | |
@@ -705,8 +707,8 @@ | |
display: inline-block; | |
width: 24%; | |
padding: 5px 15px 15px; | |
- margin-bottom: 3px; | |
- cursor: pointer | |
+ box-sizing: border-box; | |
+ margin-bottom: 3px | |
} | |
.color-option.selected, | |
@@ -726,6 +728,10 @@ | |
border: none | |
} | |
+.color-option { | |
+ cursor: pointer | |
+} | |
+ | |
.tool-box .title { | |
margin: 8px 0; | |
font-size: 18px; | |
@@ -765,10 +771,8 @@ | |
font-size: 1em | |
} | |
-.login form, | |
-.login h1 a { | |
- overflow: hidden; | |
- font-weight: 400 | |
+#pressthis-code-wrap { | |
+ overflow: auto | |
} | |
.pressthis-bookmarklet-wrapper { | |
@@ -795,12 +799,6 @@ | |
text-decoration: none | |
} | |
-.privacy_requests tbody th, | |
-.privacy_requests tfoot td:first-child, | |
-.privacy_requests thead td:first-child { | |
- border-left: 4px solid #fff | |
-} | |
- | |
.pressthis-bookmarklet:active { | |
outline: 0 | |
} | |
@@ -827,13 +825,13 @@ | |
.pressthis-bookmarklet span { | |
display: inline-block; | |
- margin: 0; | |
+ margin: 0 0 0; | |
padding: 0 12px 8px 9px | |
} | |
.pressthis-bookmarklet span:before { | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f157"; | |
position: relative; | |
display: inline-block; | |
@@ -841,7 +839,13 @@ | |
margin-right: 4px | |
} | |
-.pressthis-js-toggle, | |
+.pressthis-js-toggle { | |
+ margin-left: 10px; | |
+ padding: 0; | |
+ height: auto; | |
+ vertical-align: top | |
+} | |
+ | |
.pressthis-js-toggle.button.button { | |
margin-left: 10px; | |
padding: 0; | |
@@ -940,17 +944,17 @@ | |
.request-filesystem-credentials-form legend { | |
font-size: 1em; | |
- padding: 1.33em 0 0; | |
+ padding: 1.33em 0; | |
font-weight: 600 | |
} | |
-.request-filesystem-credentials-form input[type=text], | |
-.request-filesystem-credentials-form input[type=password] { | |
+.request-filesystem-credentials-form input[type=password], | |
+.request-filesystem-credentials-form input[type=text] { | |
display: block | |
} | |
-.request-filesystem-credentials-dialog input[type=text], | |
-.request-filesystem-credentials-dialog input[type=password] { | |
+.request-filesystem-credentials-dialog input[type=password], | |
+.request-filesystem-credentials-dialog input[type=text] { | |
width: 100% | |
} | |
@@ -959,20 +963,24 @@ | |
} | |
.request-filesystem-credentials-dialog label[for=hostname], | |
-.request-filesystem-credentials-dialog label[for=public_key], | |
-.request-filesystem-credentials-dialog label[for=private_key] { | |
+.request-filesystem-credentials-dialog label[for=private_key], | |
+.request-filesystem-credentials-dialog label[for=public_key] { | |
display: block; | |
margin-bottom: 1em | |
} | |
-.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
- text-align: right | |
+.request-filesystem-credentials-dialog .ftp-password, | |
+.request-filesystem-credentials-dialog .ftp-username { | |
+ float: left; | |
+ width: 48% | |
} | |
-.login #pass-strength-result, | |
-.login h1, | |
-.privacy_requests .column-type { | |
- text-align: center | |
+.request-filesystem-credentials-dialog .ftp-password { | |
+ margin-left: 4% | |
+} | |
+ | |
+.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
+ text-align: right | |
} | |
.request-filesystem-credentials-dialog label[for=ftp] { | |
@@ -1019,12 +1027,16 @@ | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-form legend { | |
+ padding-bottom: 0 | |
+} | |
+ | |
.request-filesystem-credentials-form #ssh-keys legend { | |
font-size: 1.3em | |
} | |
.request-filesystem-credentials-form .notice { | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
clear: both | |
} | |
@@ -1049,7 +1061,17 @@ | |
width: 40% | |
} | |
+.privacy_requests .column-type { | |
+ text-align: center | |
+} | |
+ | |
+.privacy_requests tfoot td:first-child, | |
+.privacy_requests thead td:first-child { | |
+ border-left: 4px solid #fff | |
+} | |
+ | |
.privacy_requests tbody th { | |
+ border-left: 4px solid #fff; | |
background: #fff; | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
@@ -1132,7 +1154,7 @@ | |
.email-personal-data::before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px 5px 0 -2px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1153,21 +1175,15 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #pass-strength-result, | |
- .form-table { | |
- box-sizing: border-box | |
- } | |
- | |
textarea { | |
-webkit-appearance: none | |
} | |
- input[type=text], | |
- input[type=search], | |
- input[type=password], | |
input[type=email], | |
- input[type=number] { | |
+ input[type=number], | |
+ input[type=password], | |
+ input[type=search], | |
+ input[type=text] { | |
-webkit-appearance: none; | |
padding: 6px 10px | |
} | |
@@ -1199,18 +1215,18 @@ | |
.widefat th input[type=checkbox]:before, | |
.widefat thead td input[type=checkbox]:before, | |
input[type=checkbox]:checked:before { | |
- font: 400 30px/1 dashicons; | |
+ font: normal 30px/1 dashicons; | |
margin: -3px -5px | |
} | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
height: 25px; | |
width: 25px | |
} | |
- .wp-admin p input[type=radio], | |
- .wp-admin p input[type=checkbox] { | |
+ .wp-admin p input[type=checkbox], | |
+ .wp-admin p input[type=radio] { | |
margin-top: -3px | |
} | |
@@ -1241,6 +1257,10 @@ | |
width: 100% | |
} | |
+ .form-table { | |
+ box-sizing: border-box | |
+ } | |
+ | |
.form-table td, | |
.form-table th, | |
.label-responsive { | |
@@ -1273,9 +1293,9 @@ | |
#profile-page .form-table textarea, | |
.form-table span.description, | |
- .form-table td input[type=text], | |
- .form-table td input[type=password], | |
.form-table td input[type=email], | |
+ .form-table td input[type=password], | |
+ .form-table td input[type=text], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -1297,10 +1317,10 @@ | |
} | |
.form-table input[type=text].small-text, | |
- input[type=text].small-text, | |
- input[type=search].small-text, | |
+ input[type=number].small-text, | |
input[type=password].small-text, | |
- input[type=number].small-text { | |
+ input[type=search].small-text, | |
+ input[type=text].small-text { | |
width: auto; | |
max-width: 4.375em; | |
display: inline; | |
@@ -1310,6 +1330,7 @@ | |
#pass-strength-result { | |
width: 100%; | |
+ box-sizing: border-box; | |
padding: 8px | |
} | |
@@ -1392,8 +1413,8 @@ | |
position: relative | |
} | |
- .wp-pwd [type=text], | |
- .wp-pwd [type=password] { | |
+ .wp-pwd [type=password], | |
+ .wp-pwd [type=text] { | |
padding-right: 40px | |
} | |
@@ -1452,28 +1473,11 @@ | |
} | |
} | |
-.locale-he-il em, | |
-.locale-zh-cn #local-time, | |
-.locale-zh-cn #utc-time, | |
-.locale-zh-cn .form-wrap p, | |
-.locale-zh-cn .howto, | |
-.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
-.locale-zh-cn .inline-edit-row fieldset span.title, | |
-.locale-zh-cn .js .input-with-default-title, | |
-.locale-zh-cn .link-to-original, | |
-.locale-zh-cn .tablenav .displaying-num, | |
-.locale-zh-cn p.description, | |
-.locale-zh-cn p.help, | |
-.locale-zh-cn p.install-help, | |
-.locale-zh-cn span.description { | |
- font-style: normal | |
-} | |
- | |
@media only screen and (max-width:768px) { | |
- .form-field input[type=text], | |
- .form-field input[type=password], | |
.form-field input[type=email], | |
+ .form-field input[type=password], | |
+ .form-field input[type=text], | |
.form-field select, | |
.form-field textarea { | |
width: 99% | |
@@ -1489,12 +1493,6 @@ | |
} | |
} | |
-.locale-de-de #customize-header-actions .button, | |
-.locale-de-de-formal #customize-header-actions .button, | |
-.locale-ru-ru #customize-header-actions .button { | |
- padding: 0 5px 1px | |
-} | |
- | |
@media only screen and (max-height:480px), | |
screen and (max-width:450px) { | |
@@ -1568,9 +1566,26 @@ | |
} | |
.locale-he-il em { | |
+ font-style: normal; | |
font-weight: 600 | |
} | |
+.locale-zh-cn #local-time, | |
+.locale-zh-cn #utc-time, | |
+.locale-zh-cn .form-wrap p, | |
+.locale-zh-cn .howto, | |
+.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
+.locale-zh-cn .inline-edit-row fieldset span.title, | |
+.locale-zh-cn .js .input-with-default-title, | |
+.locale-zh-cn .link-to-original, | |
+.locale-zh-cn .tablenav .displaying-num, | |
+.locale-zh-cn p.description, | |
+.locale-zh-cn p.help, | |
+.locale-zh-cn p.install-help, | |
+.locale-zh-cn span.description { | |
+ font-style: normal | |
+} | |
+ | |
.locale-zh-cn .hdnle a { | |
font-size: 12px | |
} | |
@@ -1584,6 +1599,11 @@ | |
font-size: 1em !important | |
} | |
+.locale-de-de #customize-header-actions .button, | |
+.locale-de-de-formal #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-de-de #customize-header-actions .spinner, | |
.locale-de-de-formal #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
@@ -1621,6 +1641,10 @@ | |
width: 265px | |
} | |
+.locale-ru-ru #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-ru-ru #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
} | |
@@ -1665,7 +1689,10 @@ | |
color: #0073aa; | |
transition-property: border, background, color; | |
transition-duration: .05s; | |
- transition-timing-function: ease-in-out; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
+a { | |
outline: 0 | |
} | |
@@ -1740,6 +1767,8 @@ | |
margin-top: 20px; | |
margin-left: 0; | |
padding: 26px 24px 46px; | |
+ font-weight: 400; | |
+ overflow: hidden; | |
background: #fff; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, .13) | |
} | |
@@ -1773,6 +1802,10 @@ | |
line-height: 19px | |
} | |
+.login h1 { | |
+ text-align: center | |
+} | |
+ | |
.login h1 a { | |
background-image: url(../images/w-logo-blue.png?ver=20131202); | |
background-image: none, url(../images/wordpress-logo.svg?ver=20131107); | |
@@ -1782,12 +1815,15 @@ | |
color: #444; | |
height: 84px; | |
font-size: 20px; | |
+ font-weight: 400; | |
line-height: 1.3em; | |
margin: 0 auto 25px; | |
padding: 0; | |
+ text-decoration: none; | |
width: 84px; | |
text-indent: -9999px; | |
outline: 0; | |
+ overflow: hidden; | |
display: block | |
} | |
@@ -1800,11 +1836,11 @@ | |
.login #backtoblog, | |
.login #nav { | |
font-size: 13px; | |
- padding: 0 24px | |
+ padding: 0 24px 0 | |
} | |
.login #nav { | |
- margin: 24px 0 0 | |
+ margin: 24px 0 0 0 | |
} | |
#backtoblog { | |
@@ -1863,6 +1899,7 @@ | |
font-weight: 600; | |
margin: -1px 5px 16px 0; | |
padding: 6px 5px; | |
+ text-align: center; | |
width: 100% | |
} | |
@@ -1906,7 +1943,7 @@ | |
.interim-login input[type=checkbox]:checked:before { | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
margin: -3px 0 0 -4px | |
} | |
} | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/css/login-rtl.min.css build-unminified/wp-admin/css/login-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/login-rtl.min.css 2018-10-05 18:07:03.938620256 -0500 | |
+++ build-unminified/wp-admin/css/login-rtl.min.css 2018-10-05 18:07:20.662735510 -0500 | |
@@ -1,44 +1,25 @@ | |
/*! This file is auto-generated */ | |
-#your-profile label+a, | |
-.wp-admin select, | |
-fieldset label, | |
-label { | |
- vertical-align: middle | |
-} | |
- | |
-#pass-strength-result, | |
-.color-option, | |
input, | |
textarea { | |
box-sizing: border-box | |
} | |
-#pressthis-code-wrap, | |
-textarea { | |
- overflow: auto | |
-} | |
- | |
-.login h1 a, | |
-form p.submit a.cancel:hover { | |
- text-decoration: none | |
-} | |
- | |
-input[type=text], | |
-input[type=search], | |
-input[type=radio], | |
-input[type=tel], | |
-input[type=time], | |
-input[type=url], | |
-input[type=week], | |
-input[type=password], | |
input[type=checkbox], | |
input[type=color], | |
input[type=date], | |
-input[type=datetime], | |
input[type=datetime-local], | |
+input[type=datetime], | |
input[type=email], | |
input[type=month], | |
input[type=number], | |
+input[type=password], | |
+input[type=radio], | |
+input[type=search], | |
+input[type=tel], | |
+input[type=text], | |
+input[type=time], | |
+input[type=url], | |
+input[type=week], | |
select, | |
textarea { | |
border: 1px solid #ddd; | |
@@ -49,30 +30,30 @@ | |
transition: 50ms border-color ease-in-out | |
} | |
-input[type=text]:focus, | |
-input[type=search]:focus, | |
-input[type=radio]:focus, | |
-input[type=tel]:focus, | |
-input[type=time]:focus, | |
-input[type=url]:focus, | |
-input[type=week]:focus, | |
-input[type=password]:focus, | |
input[type=checkbox]:focus, | |
input[type=color]:focus, | |
input[type=date]:focus, | |
-input[type=datetime]:focus, | |
input[type=datetime-local]:focus, | |
+input[type=datetime]:focus, | |
input[type=email]:focus, | |
input[type=month]:focus, | |
input[type=number]:focus, | |
+input[type=password]:focus, | |
+input[type=radio]:focus, | |
+input[type=search]:focus, | |
+input[type=tel]:focus, | |
+input[type=text]:focus, | |
+input[type=time]:focus, | |
+input[type=url]:focus, | |
+input[type=week]:focus, | |
select:focus, | |
textarea:focus { | |
border-color: #5b9dd9; | |
box-shadow: 0 0 2px rgba(30, 140, 190, .8) | |
} | |
-input[type=url], | |
-input[type=email] { | |
+input[type=email], | |
+input[type=url] { | |
direction: ltr | |
} | |
@@ -81,8 +62,8 @@ | |
line-height: 1 | |
} | |
-input[type=radio], | |
-input[type=checkbox] { | |
+input[type=checkbox], | |
+input[type=radio] { | |
border: 1px solid #b4b9be; | |
background: #fff; | |
color: #555; | |
@@ -112,8 +93,8 @@ | |
color: #00a0d2 | |
} | |
-.wp-admin p input[type=radio], | |
.wp-admin p input[type=checkbox], | |
+.wp-admin p input[type=radio], | |
td>input[type=checkbox] { | |
margin-top: 0 | |
} | |
@@ -132,24 +113,18 @@ | |
line-height: 10px | |
} | |
-input[type=radio]:checked:before, | |
-input[type=checkbox]:checked:before { | |
+input[type=checkbox]:checked:before, | |
+input[type=radio]:checked:before { | |
float: right; | |
display: inline-block; | |
vertical-align: middle; | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
} | |
-#pass1-text, | |
-.pw-weak, | |
-.show-password #pass1 { | |
- display: none | |
-} | |
- | |
input[type=checkbox]:checked:before { | |
content: "\f147"; | |
margin: -3px -4px 0 0; | |
@@ -171,8 +146,8 @@ | |
@-moz-document url-prefix() { | |
.form-table input.tog, | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
margin-bottom: -1px | |
} | |
} | |
@@ -202,10 +177,12 @@ | |
select, | |
textarea { | |
font-size: 14px; | |
+ padding: 3px 5px; | |
border-radius: 0 | |
} | |
textarea { | |
+ overflow: auto; | |
padding: 2px 6px; | |
line-height: 1.4; | |
resize: vertical | |
@@ -232,7 +209,7 @@ | |
textarea.code { | |
line-height: 1.4; | |
- padding: 4px 6px 1px | |
+ padding: 4px 6px 1px 6px | |
} | |
input.readonly, | |
@@ -265,7 +242,7 @@ | |
.form-table .form-required.form-invalid td:after { | |
content: "\f534"; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin-right: -25px; | |
vertical-align: middle | |
@@ -277,7 +254,7 @@ | |
.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { | |
content: '\f534'; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
color: #dc3232; | |
margin: 0 -29px 0 6px; | |
vertical-align: middle | |
@@ -308,21 +285,22 @@ | |
cursor: default | |
} | |
-input[type=radio].disabled, | |
-input[type=radio].disabled:checked:before, | |
-input[type=radio]:disabled, | |
-input[type=radio]:disabled:checked:before, | |
input[type=checkbox].disabled, | |
input[type=checkbox].disabled:checked:before, | |
input[type=checkbox]:disabled, | |
-input[type=checkbox]:disabled:checked:before { | |
+input[type=checkbox]:disabled:checked:before, | |
+input[type=radio].disabled, | |
+input[type=radio].disabled:checked:before, | |
+input[type=radio]:disabled, | |
+input[type=radio]:disabled:checked:before { | |
opacity: .7 | |
} | |
.wp-admin select { | |
padding: 2px; | |
line-height: 28px; | |
- height: 28px | |
+ height: 28px; | |
+ vertical-align: middle | |
} | |
.wp-admin .button-cancel { | |
@@ -346,6 +324,10 @@ | |
border: none | |
} | |
+form p.submit a.cancel:hover { | |
+ text-decoration: none | |
+} | |
+ | |
p.submit { | |
text-align: right; | |
max-width: 100%; | |
@@ -438,6 +420,16 @@ | |
top: 3px | |
} | |
+#your-profile label+a, | |
+label { | |
+ vertical-align: middle | |
+} | |
+ | |
+#your-profile label+a, | |
+fieldset label { | |
+ vertical-align: middle | |
+} | |
+ | |
.options-media-php [for*="_size_"] { | |
min-width: 10em; | |
vertical-align: baseline | |
@@ -459,6 +451,7 @@ | |
padding: 3px 5px; | |
text-align: center; | |
width: 25em; | |
+ box-sizing: border-box; | |
opacity: 0 | |
} | |
@@ -506,10 +499,19 @@ | |
border-color: #83c373 | |
} | |
+.pw-weak { | |
+ display: none | |
+} | |
+ | |
.indicator-hint { | |
padding-top: 8px | |
} | |
+#pass1-text, | |
+.show-password #pass1 { | |
+ display: none | |
+} | |
+ | |
.show-password #pass1-text { | |
display: inline-block | |
} | |
@@ -545,8 +547,8 @@ | |
height: 32px | |
} | |
-input[type=text].ui-autocomplete-loading, | |
-input[type=email].ui-autocomplete-loading { | |
+input[type=email].ui-autocomplete-loading, | |
+input[type=text].ui-autocomplete-loading { | |
background-image: url(../images/loading.gif); | |
background-repeat: no-repeat; | |
background-position: left center; | |
@@ -705,8 +707,8 @@ | |
display: inline-block; | |
width: 24%; | |
padding: 5px 15px 15px; | |
- margin-bottom: 3px; | |
- cursor: pointer | |
+ box-sizing: border-box; | |
+ margin-bottom: 3px | |
} | |
.color-option.selected, | |
@@ -726,6 +728,10 @@ | |
border: none | |
} | |
+.color-option { | |
+ cursor: pointer | |
+} | |
+ | |
.tool-box .title { | |
margin: 8px 0; | |
font-size: 18px; | |
@@ -765,10 +771,8 @@ | |
font-size: 1em | |
} | |
-.login form, | |
-.login h1 a { | |
- overflow: hidden; | |
- font-weight: 400 | |
+#pressthis-code-wrap { | |
+ overflow: auto | |
} | |
.pressthis-bookmarklet-wrapper { | |
@@ -795,12 +799,6 @@ | |
text-decoration: none | |
} | |
-.privacy_requests tbody th, | |
-.privacy_requests tfoot td:first-child, | |
-.privacy_requests thead td:first-child { | |
- border-right: 4px solid #fff | |
-} | |
- | |
.pressthis-bookmarklet:active { | |
outline: 0 | |
} | |
@@ -827,13 +825,13 @@ | |
.pressthis-bookmarklet span { | |
display: inline-block; | |
- margin: 0; | |
+ margin: 0 0 0; | |
padding: 0 9px 8px 12px | |
} | |
.pressthis-bookmarklet span:before { | |
color: #72777c; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f157"; | |
position: relative; | |
display: inline-block; | |
@@ -841,7 +839,13 @@ | |
margin-left: 4px | |
} | |
-.pressthis-js-toggle, | |
+.pressthis-js-toggle { | |
+ margin-right: 10px; | |
+ padding: 0; | |
+ height: auto; | |
+ vertical-align: top | |
+} | |
+ | |
.pressthis-js-toggle.button.button { | |
margin-right: 10px; | |
padding: 0; | |
@@ -940,17 +944,17 @@ | |
.request-filesystem-credentials-form legend { | |
font-size: 1em; | |
- padding: 1.33em 0 0; | |
+ padding: 1.33em 0; | |
font-weight: 600 | |
} | |
-.request-filesystem-credentials-form input[type=text], | |
-.request-filesystem-credentials-form input[type=password] { | |
+.request-filesystem-credentials-form input[type=password], | |
+.request-filesystem-credentials-form input[type=text] { | |
display: block | |
} | |
-.request-filesystem-credentials-dialog input[type=text], | |
-.request-filesystem-credentials-dialog input[type=password] { | |
+.request-filesystem-credentials-dialog input[type=password], | |
+.request-filesystem-credentials-dialog input[type=text] { | |
width: 100% | |
} | |
@@ -959,20 +963,24 @@ | |
} | |
.request-filesystem-credentials-dialog label[for=hostname], | |
-.request-filesystem-credentials-dialog label[for=public_key], | |
-.request-filesystem-credentials-dialog label[for=private_key] { | |
+.request-filesystem-credentials-dialog label[for=private_key], | |
+.request-filesystem-credentials-dialog label[for=public_key] { | |
display: block; | |
margin-bottom: 1em | |
} | |
-.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
- text-align: left | |
+.request-filesystem-credentials-dialog .ftp-password, | |
+.request-filesystem-credentials-dialog .ftp-username { | |
+ float: right; | |
+ width: 48% | |
} | |
-.login #pass-strength-result, | |
-.login h1, | |
-.privacy_requests .column-type { | |
- text-align: center | |
+.request-filesystem-credentials-dialog .ftp-password { | |
+ margin-right: 4% | |
+} | |
+ | |
+.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { | |
+ text-align: left | |
} | |
.request-filesystem-credentials-dialog label[for=ftp] { | |
@@ -1019,12 +1027,16 @@ | |
margin-bottom: 1em | |
} | |
+.request-filesystem-credentials-form legend { | |
+ padding-bottom: 0 | |
+} | |
+ | |
.request-filesystem-credentials-form #ssh-keys legend { | |
font-size: 1.3em | |
} | |
.request-filesystem-credentials-form .notice { | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
clear: both | |
} | |
@@ -1049,7 +1061,17 @@ | |
width: 40% | |
} | |
+.privacy_requests .column-type { | |
+ text-align: center | |
+} | |
+ | |
+.privacy_requests tfoot td:first-child, | |
+.privacy_requests thead td:first-child { | |
+ border-right: 4px solid #fff | |
+} | |
+ | |
.privacy_requests tbody th { | |
+ border-right: 4px solid #fff; | |
background: #fff; | |
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1) | |
} | |
@@ -1132,7 +1154,7 @@ | |
.email-personal-data::before { | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
margin: 3px -2px 0 5px; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -1153,21 +1175,15 @@ | |
} | |
@media screen and (max-width:782px) { | |
- | |
- #pass-strength-result, | |
- .form-table { | |
- box-sizing: border-box | |
- } | |
- | |
textarea { | |
-webkit-appearance: none | |
} | |
- input[type=text], | |
- input[type=search], | |
- input[type=password], | |
input[type=email], | |
- input[type=number] { | |
+ input[type=number], | |
+ input[type=password], | |
+ input[type=search], | |
+ input[type=text] { | |
-webkit-appearance: none; | |
padding: 6px 10px | |
} | |
@@ -1199,18 +1215,18 @@ | |
.widefat th input[type=checkbox]:before, | |
.widefat thead td input[type=checkbox]:before, | |
input[type=checkbox]:checked:before { | |
- font: 400 30px/1 dashicons; | |
+ font: normal 30px/1 dashicons; | |
margin: -3px -5px | |
} | |
- input[type=radio], | |
- input[type=checkbox] { | |
+ input[type=checkbox], | |
+ input[type=radio] { | |
height: 25px; | |
width: 25px | |
} | |
- .wp-admin p input[type=radio], | |
- .wp-admin p input[type=checkbox] { | |
+ .wp-admin p input[type=checkbox], | |
+ .wp-admin p input[type=radio] { | |
margin-top: -3px | |
} | |
@@ -1241,6 +1257,10 @@ | |
width: 100% | |
} | |
+ .form-table { | |
+ box-sizing: border-box | |
+ } | |
+ | |
.form-table td, | |
.form-table th, | |
.label-responsive { | |
@@ -1273,9 +1293,9 @@ | |
#profile-page .form-table textarea, | |
.form-table span.description, | |
- .form-table td input[type=text], | |
- .form-table td input[type=password], | |
.form-table td input[type=email], | |
+ .form-table td input[type=password], | |
+ .form-table td input[type=text], | |
.form-table td select, | |
.form-table td textarea { | |
width: 100%; | |
@@ -1297,10 +1317,10 @@ | |
} | |
.form-table input[type=text].small-text, | |
- input[type=text].small-text, | |
- input[type=search].small-text, | |
+ input[type=number].small-text, | |
input[type=password].small-text, | |
- input[type=number].small-text { | |
+ input[type=search].small-text, | |
+ input[type=text].small-text { | |
width: auto; | |
max-width: 4.375em; | |
display: inline; | |
@@ -1310,6 +1330,7 @@ | |
#pass-strength-result { | |
width: 100%; | |
+ box-sizing: border-box; | |
padding: 8px | |
} | |
@@ -1392,8 +1413,8 @@ | |
position: relative | |
} | |
- .wp-pwd [type=text], | |
- .wp-pwd [type=password] { | |
+ .wp-pwd [type=password], | |
+ .wp-pwd [type=text] { | |
padding-left: 40px | |
} | |
@@ -1452,28 +1473,11 @@ | |
} | |
} | |
-.locale-he-il em, | |
-.locale-zh-cn #local-time, | |
-.locale-zh-cn #utc-time, | |
-.locale-zh-cn .form-wrap p, | |
-.locale-zh-cn .howto, | |
-.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
-.locale-zh-cn .inline-edit-row fieldset span.title, | |
-.locale-zh-cn .js .input-with-default-title, | |
-.locale-zh-cn .link-to-original, | |
-.locale-zh-cn .tablenav .displaying-num, | |
-.locale-zh-cn p.description, | |
-.locale-zh-cn p.help, | |
-.locale-zh-cn p.install-help, | |
-.locale-zh-cn span.description { | |
- font-style: normal | |
-} | |
- | |
@media only screen and (max-width:768px) { | |
- .form-field input[type=text], | |
- .form-field input[type=password], | |
.form-field input[type=email], | |
+ .form-field input[type=password], | |
+ .form-field input[type=text], | |
.form-field select, | |
.form-field textarea { | |
width: 99% | |
@@ -1489,12 +1493,6 @@ | |
} | |
} | |
-.locale-de-de #customize-header-actions .button, | |
-.locale-de-de-formal #customize-header-actions .button, | |
-.locale-ru-ru #customize-header-actions .button { | |
- padding: 0 5px 1px | |
-} | |
- | |
@media only screen and (max-height:480px), | |
screen and (max-width:450px) { | |
@@ -1568,9 +1566,26 @@ | |
} | |
.locale-he-il em { | |
+ font-style: normal; | |
font-weight: 600 | |
} | |
+.locale-zh-cn #local-time, | |
+.locale-zh-cn #utc-time, | |
+.locale-zh-cn .form-wrap p, | |
+.locale-zh-cn .howto, | |
+.locale-zh-cn .inline-edit-row fieldset span.checkbox-title, | |
+.locale-zh-cn .inline-edit-row fieldset span.title, | |
+.locale-zh-cn .js .input-with-default-title, | |
+.locale-zh-cn .link-to-original, | |
+.locale-zh-cn .tablenav .displaying-num, | |
+.locale-zh-cn p.description, | |
+.locale-zh-cn p.help, | |
+.locale-zh-cn p.install-help, | |
+.locale-zh-cn span.description { | |
+ font-style: normal | |
+} | |
+ | |
.locale-zh-cn .hdnle a { | |
font-size: 12px | |
} | |
@@ -1584,6 +1599,11 @@ | |
font-size: 1em !important | |
} | |
+.locale-de-de #customize-header-actions .button, | |
+.locale-de-de-formal #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-de-de #customize-header-actions .spinner, | |
.locale-de-de-formal #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
@@ -1621,6 +1641,10 @@ | |
width: 265px | |
} | |
+.locale-ru-ru #customize-header-actions .button { | |
+ padding: 0 5px 1px | |
+} | |
+ | |
.locale-ru-ru #customize-header-actions .spinner { | |
margin: 16px 3px 0 | |
} | |
@@ -1665,7 +1689,10 @@ | |
color: #0073aa; | |
transition-property: border, background, color; | |
transition-duration: .05s; | |
- transition-timing-function: ease-in-out; | |
+ transition-timing-function: ease-in-out | |
+} | |
+ | |
+a { | |
outline: 0 | |
} | |
@@ -1740,6 +1767,8 @@ | |
margin-top: 20px; | |
margin-right: 0; | |
padding: 26px 24px 46px; | |
+ font-weight: 400; | |
+ overflow: hidden; | |
background: #fff; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, .13) | |
} | |
@@ -1773,6 +1802,10 @@ | |
line-height: 19px | |
} | |
+.login h1 { | |
+ text-align: center | |
+} | |
+ | |
.login h1 a { | |
background-image: url(../images/w-logo-blue.png?ver=20131202); | |
background-image: none, url(../images/wordpress-logo.svg?ver=20131107); | |
@@ -1782,12 +1815,15 @@ | |
color: #444; | |
height: 84px; | |
font-size: 20px; | |
+ font-weight: 400; | |
line-height: 1.3em; | |
margin: 0 auto 25px; | |
padding: 0; | |
+ text-decoration: none; | |
width: 84px; | |
text-indent: -9999px; | |
outline: 0; | |
+ overflow: hidden; | |
display: block | |
} | |
@@ -1800,11 +1836,11 @@ | |
.login #backtoblog, | |
.login #nav { | |
font-size: 13px; | |
- padding: 0 24px | |
+ padding: 0 24px 0 | |
} | |
.login #nav { | |
- margin: 24px 0 0 | |
+ margin: 24px 0 0 0 | |
} | |
#backtoblog { | |
@@ -1863,6 +1899,7 @@ | |
font-weight: 600; | |
margin: -1px 0 16px 5px; | |
padding: 6px 5px; | |
+ text-align: center; | |
width: 100% | |
} | |
@@ -1906,7 +1943,7 @@ | |
.interim-login input[type=checkbox]:checked:before { | |
width: 16px; | |
- font: 400 21px/1 dashicons; | |
+ font: normal 21px/1 dashicons; | |
margin: -3px -4px 0 0 | |
} | |
} | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/css/media.min.css build-unminified/wp-admin/css/media.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/media.min.css 2018-10-05 18:06:59.570590163 -0500 | |
+++ build-unminified/wp-admin/css/media.min.css 2018-10-05 18:07:16.314705540 -0500 | |
@@ -111,12 +111,6 @@ | |
display: block | |
} | |
-.js .html-uploader #plupload-upload-ui, | |
-.media-item .startclosed, | |
-.media-item .startopen { | |
- display: none | |
-} | |
- | |
.media-upload-form .media-item { | |
min-height: 36px; | |
margin-bottom: 1px; | |
@@ -131,7 +125,7 @@ | |
} | |
#media-items:empty { | |
- border: 0 | |
+ border: 0 none | |
} | |
.media-item .filename { | |
@@ -147,6 +141,11 @@ | |
max-height: 32px | |
} | |
+.media-item .startclosed, | |
+.media-item .startopen { | |
+ display: none | |
+} | |
+ | |
.media-item .original { | |
position: relative; | |
height: 34px | |
@@ -191,6 +190,10 @@ | |
width: 15% | |
} | |
+.js .html-uploader #plupload-upload-ui { | |
+ display: none | |
+} | |
+ | |
.js .html-uploader #html-upload-ui { | |
display: block | |
} | |
@@ -198,7 +201,7 @@ | |
.media-upload-form .media-item .error, | |
.media-upload-form .media-item.error { | |
width: auto; | |
- margin: 0 0 1px | |
+ margin: 0 0 1px 0 | |
} | |
.media-upload-form .media-item .error { | |
@@ -306,7 +309,7 @@ | |
} | |
#find-posts-close:before { | |
- font: 400 20px/36px dashicons; | |
+ font: normal 20px/36px dashicons; | |
vertical-align: top; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -364,7 +367,7 @@ | |
form.upgrade .hint { | |
font-style: italic; | |
font-size: 85%; | |
- margin: -.5em 0 2em | |
+ margin: -.5em 0 2em 0 | |
} | |
#poststuff .inside .the-tagcloud { | |
@@ -405,13 +408,6 @@ | |
display: block | |
} | |
-.media-frame.mode-grid .media-frame-menu, | |
-.media-frame.mode-grid .media-frame-router, | |
-.media-frame.mode-grid .media-frame-title, | |
-.upload-php .mode-grid .hide-sidebar .media-sidebar { | |
- display: none | |
-} | |
- | |
.drag-drop.drag-over #drag-drop-area { | |
border-color: #83b4d8 | |
} | |
@@ -427,6 +423,12 @@ | |
position: static | |
} | |
+.media-frame.mode-grid .media-frame-menu, | |
+.media-frame.mode-grid .media-frame-router, | |
+.media-frame.mode-grid .media-frame-title { | |
+ display: none | |
+} | |
+ | |
.media-frame.mode-grid .media-frame-content { | |
background-color: transparent; | |
border: none | |
@@ -442,6 +444,10 @@ | |
background-color: #fff | |
} | |
+.upload-php .mode-grid .hide-sidebar .media-sidebar { | |
+ display: none | |
+} | |
+ | |
.upload-php .mode-grid .media-sidebar .media-uploader-status { | |
border-bottom: none; | |
padding-bottom: 0; | |
@@ -465,7 +471,7 @@ | |
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before { | |
content: "\f153"; | |
display: block; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
color: #72777c | |
} | |
@@ -627,7 +633,7 @@ | |
.edit-attachment-frame .edit-media-header .left:before, | |
.edit-attachment-frame .edit-media-header .right:before { | |
- font: 400 20px/50px dashicons !important; | |
+ font: normal 20px/50px dashicons !important; | |
display: inline; | |
font-weight: 300 | |
} | |
@@ -844,7 +850,7 @@ | |
left: 50%; | |
top: 50%; | |
margin: -10px 0 0 -10px; | |
- background: url(../images/spinner.gif) center no-repeat; | |
+ background: transparent url(../images/spinner.gif) no-repeat center; | |
background-size: 20px 20px; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0) | |
@@ -854,13 +860,6 @@ | |
float: none | |
} | |
-.A1B1 .button, | |
-.A1B1 .spinner, | |
-.wp_attachment_image .button, | |
-.wp_attachment_image .spinner { | |
- float: left | |
-} | |
- | |
.imgedit-settings .disabled, | |
.media-disabled { | |
color: #a0a5aa | |
@@ -870,10 +869,20 @@ | |
overflow: hidden | |
} | |
+.A1B1 .button, | |
+.wp_attachment_image .button { | |
+ float: left | |
+} | |
+ | |
.no-js .wp_attachment_image .button { | |
display: none | |
} | |
+.A1B1 .spinner, | |
+.wp_attachment_image .spinner { | |
+ float: left | |
+} | |
+ | |
.imgedit-menu { | |
min-width: 300px; | |
margin: 0 0 12px | |
@@ -899,7 +908,7 @@ | |
} | |
.imgedit-menu .button:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/media-rtl.min.css build-unminified/wp-admin/css/media-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/media-rtl.min.css 2018-10-05 18:07:02.774612237 -0500 | |
+++ build-unminified/wp-admin/css/media-rtl.min.css 2018-10-05 18:07:19.518727624 -0500 | |
@@ -111,12 +111,6 @@ | |
display: block | |
} | |
-.js .html-uploader #plupload-upload-ui, | |
-.media-item .startclosed, | |
-.media-item .startopen { | |
- display: none | |
-} | |
- | |
.media-upload-form .media-item { | |
min-height: 36px; | |
margin-bottom: 1px; | |
@@ -131,7 +125,7 @@ | |
} | |
#media-items:empty { | |
- border: 0 | |
+ border: 0 none | |
} | |
.media-item .filename { | |
@@ -147,6 +141,11 @@ | |
max-height: 32px | |
} | |
+.media-item .startclosed, | |
+.media-item .startopen { | |
+ display: none | |
+} | |
+ | |
.media-item .original { | |
position: relative; | |
height: 34px | |
@@ -191,6 +190,10 @@ | |
width: 15% | |
} | |
+.js .html-uploader #plupload-upload-ui { | |
+ display: none | |
+} | |
+ | |
.js .html-uploader #html-upload-ui { | |
display: block | |
} | |
@@ -198,7 +201,7 @@ | |
.media-upload-form .media-item .error, | |
.media-upload-form .media-item.error { | |
width: auto; | |
- margin: 0 0 1px | |
+ margin: 0 0 1px 0 | |
} | |
.media-upload-form .media-item .error { | |
@@ -306,7 +309,7 @@ | |
} | |
#find-posts-close:before { | |
- font: 400 20px/36px dashicons; | |
+ font: normal 20px/36px dashicons; | |
vertical-align: top; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
@@ -364,7 +367,7 @@ | |
form.upgrade .hint { | |
font-style: italic; | |
font-size: 85%; | |
- margin: -.5em 0 2em | |
+ margin: -.5em 0 2em 0 | |
} | |
#poststuff .inside .the-tagcloud { | |
@@ -405,13 +408,6 @@ | |
display: block | |
} | |
-.media-frame.mode-grid .media-frame-menu, | |
-.media-frame.mode-grid .media-frame-router, | |
-.media-frame.mode-grid .media-frame-title, | |
-.upload-php .mode-grid .hide-sidebar .media-sidebar { | |
- display: none | |
-} | |
- | |
.drag-drop.drag-over #drag-drop-area { | |
border-color: #83b4d8 | |
} | |
@@ -427,6 +423,12 @@ | |
position: static | |
} | |
+.media-frame.mode-grid .media-frame-menu, | |
+.media-frame.mode-grid .media-frame-router, | |
+.media-frame.mode-grid .media-frame-title { | |
+ display: none | |
+} | |
+ | |
.media-frame.mode-grid .media-frame-content { | |
background-color: transparent; | |
border: none | |
@@ -442,6 +444,10 @@ | |
background-color: #fff | |
} | |
+.upload-php .mode-grid .hide-sidebar .media-sidebar { | |
+ display: none | |
+} | |
+ | |
.upload-php .mode-grid .media-sidebar .media-uploader-status { | |
border-bottom: none; | |
padding-bottom: 0; | |
@@ -465,7 +471,7 @@ | |
.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors:before { | |
content: "\f153"; | |
display: block; | |
- font: 400 16px/1 dashicons; | |
+ font: normal 16px/1 dashicons; | |
color: #72777c | |
} | |
@@ -627,7 +633,7 @@ | |
.edit-attachment-frame .edit-media-header .left:before, | |
.edit-attachment-frame .edit-media-header .right:before { | |
- font: 400 20px/50px dashicons !important; | |
+ font: normal 20px/50px dashicons !important; | |
display: inline; | |
font-weight: 300 | |
} | |
@@ -844,7 +850,7 @@ | |
right: 50%; | |
top: 50%; | |
margin: -10px -10px 0 0; | |
- background: url(../images/spinner.gif) center no-repeat; | |
+ background: transparent url(../images/spinner.gif) no-repeat center; | |
background-size: 20px 20px; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0) | |
@@ -854,13 +860,6 @@ | |
float: none | |
} | |
-.A1B1 .button, | |
-.A1B1 .spinner, | |
-.wp_attachment_image .button, | |
-.wp_attachment_image .spinner { | |
- float: right | |
-} | |
- | |
.imgedit-settings .disabled, | |
.media-disabled { | |
color: #a0a5aa | |
@@ -870,10 +869,20 @@ | |
overflow: hidden | |
} | |
+.A1B1 .button, | |
+.wp_attachment_image .button { | |
+ float: right | |
+} | |
+ | |
.no-js .wp_attachment_image .button { | |
display: none | |
} | |
+.A1B1 .spinner, | |
+.wp_attachment_image .spinner { | |
+ float: right | |
+} | |
+ | |
.imgedit-menu { | |
min-width: 300px; | |
margin: 0 0 12px | |
@@ -899,7 +908,7 @@ | |
} | |
.imgedit-menu .button:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
vertical-align: middle | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/nav-menus.min.css build-unminified/wp-admin/css/nav-menus.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/nav-menus.min.css 2018-10-05 18:07:04.158621772 -0500 | |
+++ build-unminified/wp-admin/css/nav-menus.min.css 2018-10-05 18:07:20.906737191 -0500 | |
@@ -77,11 +77,6 @@ | |
margin-left: 4px | |
} | |
-#menu-management .menu-add-new abbr, | |
-.menu-location-title label { | |
- font-weight: 600 | |
-} | |
- | |
.manage-menus { | |
margin-top: 23px; | |
padding: 10px; | |
@@ -149,11 +144,6 @@ | |
font-size: 11px | |
} | |
-#add-custom-link .howto, | |
-#cancel-save { | |
- font-size: 12px | |
-} | |
- | |
#menu-management-liquid { | |
float: left; | |
min-width: 100%; | |
@@ -206,9 +196,13 @@ | |
float: none | |
} | |
+#menu-management .menu-add-new abbr { | |
+ font-weight: 600 | |
+} | |
+ | |
#select-nav-menu-container { | |
text-align: right; | |
- padding: 0 10px 3px; | |
+ padding: 0 10px 3px 10px; | |
margin-bottom: 5px | |
} | |
@@ -225,6 +219,10 @@ | |
padding: 13px 10px 0 | |
} | |
+.menu-location-title label { | |
+ font-weight: 600 | |
+} | |
+ | |
.menu-location-menus select { | |
float: left | |
} | |
@@ -291,6 +289,7 @@ | |
#cancel-save { | |
text-decoration: underline; | |
+ font-size: 12px; | |
margin-left: 20px; | |
margin-top: 5px | |
} | |
@@ -330,13 +329,17 @@ | |
} | |
#manage-menu .inside { | |
- padding: 0 | |
+ padding: 0 0 | |
} | |
#available-links dt { | |
display: block | |
} | |
+#add-custom-link .howto { | |
+ font-size: 12px | |
+} | |
+ | |
#add-custom-link label span { | |
display: block; | |
float: left; | |
@@ -375,7 +378,8 @@ | |
.nav-menus-php .list li { | |
display: none; | |
- margin: 0 0 5px | |
+ margin: 0; | |
+ margin-bottom: 5px | |
} | |
.nav-menus-php .list li .menu-item-title { | |
@@ -451,11 +455,6 @@ | |
cursor: move | |
} | |
-#cancel-save, | |
-.item-controls a:hover { | |
- cursor: pointer | |
-} | |
- | |
.menu li.deleting .menu-item-handle { | |
background-image: none; | |
background-color: #f66 | |
@@ -654,6 +653,10 @@ | |
text-decoration: none | |
} | |
+.item-controls a:hover { | |
+ cursor: pointer | |
+} | |
+ | |
.item-controls .item-order { | |
padding-right: 10px | |
} | |
@@ -778,16 +781,15 @@ | |
font-style: italic | |
} | |
-.hidden-field, | |
-.nav-menus-php .blank-slate .menu-settings { | |
- display: none | |
-} | |
- | |
.link-to-original a { | |
padding-left: 4px; | |
font-style: normal | |
} | |
+.hidden-field { | |
+ display: none | |
+} | |
+ | |
.menu-item-settings .description-thin, | |
.menu-item-settings .description-wide { | |
margin-right: 10px; | |
@@ -807,6 +809,10 @@ | |
padding-bottom: 7px | |
} | |
+#cancel-save { | |
+ cursor: pointer | |
+} | |
+ | |
.nav-menus-php .major-publishing-actions { | |
clear: both; | |
padding: 10px 0; | |
@@ -818,6 +824,10 @@ | |
float: right | |
} | |
+.nav-menus-php .blank-slate .menu-settings { | |
+ display: none | |
+} | |
+ | |
.nav-menus-php .delete-action { | |
float: left; | |
line-height: 28px | |
@@ -877,12 +887,6 @@ | |
margin: 15px 0 14px | |
} | |
- .menu-settings-group-name, | |
- .menu-settings-input { | |
- float: none; | |
- margin-bottom: 15px | |
- } | |
- | |
ul.add-menu-item-tabs li.tabs { | |
padding: 13px 15px 14px | |
} | |
@@ -927,7 +931,10 @@ | |
} | |
.menu-item-settings .description-thin, | |
- .menu-item-settings .description-wide, | |
+ .menu-item-settings .description-wide { | |
+ width: 100% | |
+ } | |
+ | |
.menu-item-settings input { | |
width: 100% | |
} | |
@@ -942,8 +949,15 @@ | |
} | |
.menu-settings-group-name { | |
+ float: none; | |
width: auto; | |
- margin-left: 0 | |
+ margin-left: 0; | |
+ margin-bottom: 15px | |
+ } | |
+ | |
+ .menu-settings-input { | |
+ float: none; | |
+ margin-bottom: 15px | |
} | |
.menu-edit .checkbox-input { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/nav-menus-rtl.min.css build-unminified/wp-admin/css/nav-menus-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/nav-menus-rtl.min.css 2018-10-05 18:07:04.278622599 -0500 | |
+++ build-unminified/wp-admin/css/nav-menus-rtl.min.css 2018-10-05 18:07:21.018737964 -0500 | |
@@ -77,11 +77,6 @@ | |
margin-right: 4px | |
} | |
-#menu-management .menu-add-new abbr, | |
-.menu-location-title label { | |
- font-weight: 600 | |
-} | |
- | |
.manage-menus { | |
margin-top: 23px; | |
padding: 10px; | |
@@ -149,11 +144,6 @@ | |
font-size: 11px | |
} | |
-#add-custom-link .howto, | |
-#cancel-save { | |
- font-size: 12px | |
-} | |
- | |
#menu-management-liquid { | |
float: right; | |
min-width: 100%; | |
@@ -206,9 +196,13 @@ | |
float: none | |
} | |
+#menu-management .menu-add-new abbr { | |
+ font-weight: 600 | |
+} | |
+ | |
#select-nav-menu-container { | |
text-align: left; | |
- padding: 0 10px 3px; | |
+ padding: 0 10px 3px 10px; | |
margin-bottom: 5px | |
} | |
@@ -225,6 +219,10 @@ | |
padding: 13px 10px 0 | |
} | |
+.menu-location-title label { | |
+ font-weight: 600 | |
+} | |
+ | |
.menu-location-menus select { | |
float: right | |
} | |
@@ -291,6 +289,7 @@ | |
#cancel-save { | |
text-decoration: underline; | |
+ font-size: 12px; | |
margin-right: 20px; | |
margin-top: 5px | |
} | |
@@ -330,13 +329,17 @@ | |
} | |
#manage-menu .inside { | |
- padding: 0 | |
+ padding: 0 0 | |
} | |
#available-links dt { | |
display: block | |
} | |
+#add-custom-link .howto { | |
+ font-size: 12px | |
+} | |
+ | |
#add-custom-link label span { | |
display: block; | |
float: right; | |
@@ -375,7 +378,8 @@ | |
.nav-menus-php .list li { | |
display: none; | |
- margin: 0 0 5px | |
+ margin: 0; | |
+ margin-bottom: 5px | |
} | |
.nav-menus-php .list li .menu-item-title { | |
@@ -451,11 +455,6 @@ | |
cursor: move | |
} | |
-#cancel-save, | |
-.item-controls a:hover { | |
- cursor: pointer | |
-} | |
- | |
.menu li.deleting .menu-item-handle { | |
background-image: none; | |
background-color: #f66 | |
@@ -654,6 +653,10 @@ | |
text-decoration: none | |
} | |
+.item-controls a:hover { | |
+ cursor: pointer | |
+} | |
+ | |
.item-controls .item-order { | |
padding-left: 10px | |
} | |
@@ -778,16 +781,15 @@ | |
font-style: italic | |
} | |
-.hidden-field, | |
-.nav-menus-php .blank-slate .menu-settings { | |
- display: none | |
-} | |
- | |
.link-to-original a { | |
padding-right: 4px; | |
font-style: normal | |
} | |
+.hidden-field { | |
+ display: none | |
+} | |
+ | |
.menu-item-settings .description-thin, | |
.menu-item-settings .description-wide { | |
margin-left: 10px; | |
@@ -807,6 +809,10 @@ | |
padding-bottom: 7px | |
} | |
+#cancel-save { | |
+ cursor: pointer | |
+} | |
+ | |
.nav-menus-php .major-publishing-actions { | |
clear: both; | |
padding: 10px 0; | |
@@ -818,6 +824,10 @@ | |
float: left | |
} | |
+.nav-menus-php .blank-slate .menu-settings { | |
+ display: none | |
+} | |
+ | |
.nav-menus-php .delete-action { | |
float: right; | |
line-height: 28px | |
@@ -877,12 +887,6 @@ | |
margin: 15px 0 14px | |
} | |
- .menu-settings-group-name, | |
- .menu-settings-input { | |
- float: none; | |
- margin-bottom: 15px | |
- } | |
- | |
ul.add-menu-item-tabs li.tabs { | |
padding: 13px 15px 14px | |
} | |
@@ -927,7 +931,10 @@ | |
} | |
.menu-item-settings .description-thin, | |
- .menu-item-settings .description-wide, | |
+ .menu-item-settings .description-wide { | |
+ width: 100% | |
+ } | |
+ | |
.menu-item-settings input { | |
width: 100% | |
} | |
@@ -942,8 +949,15 @@ | |
} | |
.menu-settings-group-name { | |
+ float: none; | |
width: auto; | |
- margin-right: 0 | |
+ margin-right: 0; | |
+ margin-bottom: 15px | |
+ } | |
+ | |
+ .menu-settings-input { | |
+ float: none; | |
+ margin-bottom: 15px | |
} | |
.menu-edit .checkbox-input { | |
diff -ru build-before-upgrades-unminified/wp-admin/css/revisions.min.css build-unminified/wp-admin/css/revisions.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/revisions.min.css 2018-10-05 18:07:03.434616784 -0500 | |
+++ build-unminified/wp-admin/css/revisions.min.css 2018-10-05 18:07:20.150731980 -0500 | |
@@ -311,6 +311,7 @@ | |
max-width: 350px; | |
min-width: 130px; | |
padding: 8px 4px; | |
+ display: none; | |
opacity: 0 | |
} | |
@@ -391,6 +392,12 @@ | |
z-index: 10000 | |
} | |
+.arrow:after { | |
+ z-index: 9999; | |
+ background-color: #fff; | |
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .1) | |
+} | |
+ | |
.arrow.top { | |
top: -16px; | |
bottom: auto | |
@@ -401,9 +408,6 @@ | |
} | |
.arrow:after { | |
- z-index: 9999; | |
- background-color: #fff; | |
- box-shadow: 0 1px 3px rgba(0, 0, 0, .1); | |
content: ""; | |
position: absolute; | |
left: 20px; | |
@@ -476,7 +480,7 @@ | |
left: 2px; | |
color: #555; | |
content: "\f229"; | |
- font: 400 18px/1 dashicons; | |
+ font: normal 18px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
diff -ru build-before-upgrades-unminified/wp-admin/css/revisions-rtl.min.css build-unminified/wp-admin/css/revisions-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/revisions-rtl.min.css 2018-10-05 18:06:59.810591817 -0500 | |
+++ build-unminified/wp-admin/css/revisions-rtl.min.css 2018-10-05 18:07:16.558707222 -0500 | |
@@ -311,6 +311,7 @@ | |
max-width: 350px; | |
min-width: 130px; | |
padding: 8px 4px; | |
+ display: none; | |
opacity: 0 | |
} | |
@@ -391,6 +392,12 @@ | |
z-index: 10000 | |
} | |
+.arrow:after { | |
+ z-index: 9999; | |
+ background-color: #fff; | |
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .1) | |
+} | |
+ | |
.arrow.top { | |
top: -16px; | |
bottom: auto | |
@@ -401,9 +408,6 @@ | |
} | |
.arrow:after { | |
- z-index: 9999; | |
- background-color: #fff; | |
- box-shadow: 0 1px 3px rgba(0, 0, 0, .1); | |
content: ""; | |
position: absolute; | |
right: 20px; | |
@@ -476,7 +480,7 @@ | |
right: 2px; | |
color: #555; | |
content: "\f229"; | |
- font: 400 18px/1 dashicons; | |
+ font: normal 18px/1 dashicons; | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale | |
diff -ru build-before-upgrades-unminified/wp-admin/css/themes.min.css build-unminified/wp-admin/css/themes.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/themes.min.css 2018-10-05 18:06:59.698591045 -0500 | |
+++ build-unminified/wp-admin/css/themes.min.css 2018-10-05 18:07:16.446706450 -0500 | |
@@ -272,7 +272,7 @@ | |
display: inline-block; | |
content: "\f132"; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 74px/115px dashicons; | |
+ font: normal 74px/115px dashicons; | |
width: 100px; | |
height: 100px; | |
vertical-align: middle; | |
@@ -340,16 +340,6 @@ | |
z-index: 10000 | |
} | |
-.theme-overlay .theme-header .close, | |
-.theme-overlay .theme-header .left, | |
-.theme-overlay .theme-header .right { | |
- cursor: pointer; | |
- background-color: transparent; | |
- height: 48px; | |
- transition: color .1s ease-in-out, background .1s ease-in-out; | |
- text-align: center | |
-} | |
- | |
.theme-overlay .theme-header { | |
position: absolute; | |
top: 0; | |
@@ -364,14 +354,19 @@ | |
} | |
.theme-overlay .theme-header .close { | |
+ cursor: pointer; | |
+ height: 48px; | |
width: 50px; | |
+ text-align: center; | |
float: right; | |
border: 0; | |
- border-left: 1px solid #ddd | |
+ border-left: 1px solid #ddd; | |
+ background-color: transparent; | |
+ transition: color .1s ease-in-out, background .1s ease-in-out | |
} | |
.theme-overlay .theme-header .close:before { | |
- font: 400 22px/50px dashicons !important; | |
+ font: normal 22px/50px dashicons !important; | |
color: #72777c; | |
display: inline-block; | |
content: "\f335"; | |
@@ -380,11 +375,16 @@ | |
.theme-overlay .theme-header .left, | |
.theme-overlay .theme-header .right { | |
+ cursor: pointer; | |
color: #72777c; | |
+ background-color: transparent; | |
+ height: 48px; | |
width: 54px; | |
float: left; | |
+ text-align: center; | |
border: 0; | |
- border-right: 1px solid #ddd | |
+ border-right: 1px solid #ddd; | |
+ transition: color .1s ease-in-out, background .1s ease-in-out | |
} | |
.theme-overlay .theme-header .close:focus, | |
@@ -421,18 +421,11 @@ | |
.theme-overlay .theme-header .left:before, | |
.theme-overlay .theme-header .right:before { | |
- font: 400 20px/50px dashicons !important; | |
+ font: normal 20px/50px dashicons !important; | |
display: inline; | |
font-weight: 300 | |
} | |
-.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], | |
-.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"], | |
-.theme-overlay .theme-actions .active-theme, | |
-.theme-overlay.active .theme-actions .inactive-theme { | |
- display: none | |
-} | |
- | |
.theme-overlay .theme-header .left:before { | |
content: "\f341" | |
} | |
@@ -491,6 +484,11 @@ | |
margin-bottom: 5px | |
} | |
+.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"], | |
+.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"] { | |
+ display: none | |
+} | |
+ | |
.broken-themes a.delete-theme, | |
.theme-overlay .theme-actions .delete-theme { | |
color: #a00; | |
@@ -515,6 +513,11 @@ | |
border-color: #d54e21 | |
} | |
+.theme-overlay .theme-actions .active-theme, | |
+.theme-overlay.active .theme-actions .inactive-theme { | |
+ display: none | |
+} | |
+ | |
.theme-overlay .theme-actions .inactive-theme, | |
.theme-overlay.active .theme-actions .active-theme { | |
display: block | |
@@ -579,6 +582,7 @@ | |
.theme-overlay .screenshot.thumb img { | |
cursor: pointer; | |
+ height: auto; | |
position: absolute; | |
left: 0; | |
top: 0; | |
@@ -655,7 +659,7 @@ | |
font-size: 15px; | |
font-weight: 400; | |
line-height: 1.5; | |
- margin: 30px 0 0 | |
+ margin: 30px 0 0 0 | |
} | |
.theme-overlay .theme-tags { | |
@@ -663,7 +667,7 @@ | |
color: #82878c; | |
font-size: 13px; | |
font-weight: 400; | |
- margin: 30px 0 0; | |
+ margin: 30px 0 0 0; | |
padding-top: 20px | |
} | |
@@ -807,7 +811,7 @@ | |
} | |
.theme-browser .theme .theme-actions { | |
- padding: 5px 10px 4px | |
+ padding: 5px 10px 4px 10px | |
} | |
.theme-overlay.small-screenshot .theme-screenshots { | |
@@ -871,7 +875,7 @@ | |
} | |
.theme-overlay .theme-author { | |
- margin: 5px 0 15px | |
+ margin: 5px 0 15px 0 | |
} | |
.theme-overlay .current-label { | |
@@ -884,13 +888,13 @@ | |
clear: both; | |
left: 0; | |
right: 0; | |
- margin: -5px 0 20px; | |
+ margin: -5px 0 20px 0; | |
width: 100%; | |
max-width: 280px | |
} | |
.theme-browser .theme.add-new-theme span:after { | |
- font: 400 60px/90px dashicons; | |
+ font: normal 60px/90px dashicons; | |
width: 80px; | |
height: 80px; | |
top: 30%; | |
@@ -937,7 +941,7 @@ | |
color: #79ba49; | |
content: "\f147"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
vertical-align: top | |
@@ -1154,15 +1158,6 @@ | |
position: relative | |
} | |
-.wp-full-overlay, | |
-.wp-full-overlay-sidebar { | |
- position: fixed; | |
- top: 0; | |
- height: 100%; | |
- bottom: 0; | |
- left: 0 | |
-} | |
- | |
.background-position-control .button-group .button:active, | |
.background-position-control .button-group .button:focus, | |
.background-position-control .button-group .button:hover { | |
@@ -1205,7 +1200,7 @@ | |
} | |
.background-position-control .button-group:last-child>label:last-child .button { | |
- border-radius: 0 0 3px | |
+ border-radius: 0 0 3px 0 | |
} | |
.background-position-control .button-group:last-child>label:last-child .dashicons { | |
@@ -1227,17 +1222,28 @@ | |
} | |
.wp-full-overlay { | |
+ background: 0 0; | |
z-index: 500000; | |
+ position: fixed; | |
overflow: visible; | |
+ top: 0; | |
+ bottom: 0; | |
+ left: 0; | |
right: 0; | |
+ height: 100%; | |
min-width: 0 | |
} | |
.wp-full-overlay-sidebar { | |
box-sizing: border-box; | |
+ position: fixed; | |
min-width: 300px; | |
max-width: 600px; | |
width: 18%; | |
+ height: 100%; | |
+ top: 0; | |
+ bottom: 0; | |
+ left: 0; | |
padding: 0; | |
margin: 0; | |
z-index: 10; | |
@@ -1245,6 +1251,10 @@ | |
border-right: none | |
} | |
+.wp-full-overlay.collapsed .wp-full-overlay-sidebar { | |
+ overflow: visible | |
+} | |
+ | |
.wp-full-overlay.collapsed, | |
.wp-full-overlay.expanded .wp-full-overlay-sidebar { | |
margin-left: 0 !important | |
@@ -1255,7 +1265,6 @@ | |
} | |
.wp-full-overlay.collapsed .wp-full-overlay-sidebar { | |
- overflow: visible; | |
margin-left: -300px | |
} | |
@@ -1367,7 +1376,7 @@ | |
} | |
.theme-install-overlay .close-full-overlay:before { | |
- font: 400 22px/1 dashicons; | |
+ font: normal 22px/1 dashicons; | |
content: "\f335"; | |
position: relative; | |
top: 7px; | |
@@ -1375,7 +1384,7 @@ | |
} | |
.theme-install-overlay .previous-theme:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f341"; | |
position: relative; | |
top: 6px; | |
@@ -1383,7 +1392,7 @@ | |
} | |
.theme-install-overlay .next-theme:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f345"; | |
position: relative; | |
top: 6px; | |
@@ -1469,7 +1478,7 @@ | |
display: block; | |
content: "\f148"; | |
background: #eee; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
padding: 0; | |
-webkit-font-smoothing: antialiased; | |
@@ -1551,24 +1560,13 @@ | |
.wp-full-overlay-footer .devices button:before { | |
display: inline-block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 20px/30px dashicons; | |
+ font: normal 20px/30px dashicons; | |
vertical-align: top; | |
margin: 3px 0; | |
padding: 4px 8px; | |
color: #656a6f | |
} | |
-#customize-container, | |
-.customize-support .hide-if-customize, | |
-.customize-support .wp-core-ui .hide-if-customize, | |
-.customize-support.wp-core-ui .hide-if-customize, | |
-.no-customize-support .hide-if-no-customize, | |
-.no-customize-support .wp-core-ui .hide-if-no-customize, | |
-.no-customize-support.wp-core-ui .hide-if-no-customize, | |
-.theme-install-overlay { | |
- display: none | |
-} | |
- | |
.wp-full-overlay-footer .devices button.active { | |
border-bottom-color: #191e23 | |
} | |
@@ -1632,6 +1630,15 @@ | |
left: 50% | |
} | |
+.customize-support .hide-if-customize, | |
+.customize-support .wp-core-ui .hide-if-customize, | |
+.customize-support.wp-core-ui .hide-if-customize, | |
+.no-customize-support .hide-if-no-customize, | |
+.no-customize-support .wp-core-ui .hide-if-no-customize, | |
+.no-customize-support.wp-core-ui .hide-if-no-customize { | |
+ display: none | |
+} | |
+ | |
#customize-container, | |
#customize-controls .notice.notification-overlay { | |
background: #eee; | |
@@ -1645,6 +1652,10 @@ | |
height: 100% | |
} | |
+#customize-container { | |
+ display: none | |
+} | |
+ | |
#customize-container, | |
.theme-install-overlay { | |
visibility: visible | |
@@ -1666,6 +1677,10 @@ | |
margin-top: 0 | |
} | |
+.theme-install-overlay { | |
+ display: none | |
+} | |
+ | |
.theme-install-overlay.single-theme { | |
display: block | |
} | |
@@ -1758,7 +1773,7 @@ | |
margin: -10px 0 0 -10px; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0); | |
- background: url(../images/spinner.gif) center center no-repeat; | |
+ background: transparent url(../images/spinner.gif) no-repeat center center; | |
background-size: 20px 20px | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/themes-rtl.min.css build-unminified/wp-admin/css/themes-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/themes-rtl.min.css 2018-10-05 18:06:57.950579004 -0500 | |
+++ build-unminified/wp-admin/css/themes-rtl.min.css 2018-10-05 18:07:14.662694154 -0500 | |
@@ -272,7 +272,7 @@ | |
display: inline-block; | |
content: "\f132"; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 74px/115px dashicons; | |
+ font: normal 74px/115px dashicons; | |
width: 100px; | |
height: 100px; | |
vertical-align: middle; | |
@@ -340,16 +340,6 @@ | |
z-index: 10000 | |
} | |
-.theme-overlay .theme-header .close, | |
-.theme-overlay .theme-header .left, | |
-.theme-overlay .theme-header .right { | |
- cursor: pointer; | |
- background-color: transparent; | |
- height: 48px; | |
- transition: color .1s ease-in-out, background .1s ease-in-out; | |
- text-align: center | |
-} | |
- | |
.theme-overlay .theme-header { | |
position: absolute; | |
top: 0; | |
@@ -364,14 +354,19 @@ | |
} | |
.theme-overlay .theme-header .close { | |
+ cursor: pointer; | |
+ height: 48px; | |
width: 50px; | |
+ text-align: center; | |
float: left; | |
border: 0; | |
- border-right: 1px solid #ddd | |
+ border-right: 1px solid #ddd; | |
+ background-color: transparent; | |
+ transition: color .1s ease-in-out, background .1s ease-in-out | |
} | |
.theme-overlay .theme-header .close:before { | |
- font: 400 22px/50px dashicons !important; | |
+ font: normal 22px/50px dashicons !important; | |
color: #72777c; | |
display: inline-block; | |
content: "\f335"; | |
@@ -380,11 +375,16 @@ | |
.theme-overlay .theme-header .left, | |
.theme-overlay .theme-header .right { | |
+ cursor: pointer; | |
color: #72777c; | |
+ background-color: transparent; | |
+ height: 48px; | |
width: 54px; | |
float: right; | |
+ text-align: center; | |
border: 0; | |
- border-left: 1px solid #ddd | |
+ border-left: 1px solid #ddd; | |
+ transition: color .1s ease-in-out, background .1s ease-in-out | |
} | |
.theme-overlay .theme-header .close:focus, | |
@@ -421,18 +421,11 @@ | |
.theme-overlay .theme-header .left:before, | |
.theme-overlay .theme-header .right:before { | |
- font: 400 20px/50px dashicons !important; | |
+ font: normal 20px/50px dashicons !important; | |
display: inline; | |
font-weight: 300 | |
} | |
-.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], | |
-.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"], | |
-.theme-overlay .theme-actions .active-theme, | |
-.theme-overlay.active .theme-actions .inactive-theme { | |
- display: none | |
-} | |
- | |
.theme-overlay .theme-header .left:before { | |
content: "\f345" | |
} | |
@@ -491,6 +484,11 @@ | |
margin-bottom: 5px | |
} | |
+.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"], | |
+.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"] { | |
+ display: none | |
+} | |
+ | |
.broken-themes a.delete-theme, | |
.theme-overlay .theme-actions .delete-theme { | |
color: #a00; | |
@@ -515,6 +513,11 @@ | |
border-color: #d54e21 | |
} | |
+.theme-overlay .theme-actions .active-theme, | |
+.theme-overlay.active .theme-actions .inactive-theme { | |
+ display: none | |
+} | |
+ | |
.theme-overlay .theme-actions .inactive-theme, | |
.theme-overlay.active .theme-actions .active-theme { | |
display: block | |
@@ -579,6 +582,7 @@ | |
.theme-overlay .screenshot.thumb img { | |
cursor: pointer; | |
+ height: auto; | |
position: absolute; | |
right: 0; | |
top: 0; | |
@@ -655,7 +659,7 @@ | |
font-size: 15px; | |
font-weight: 400; | |
line-height: 1.5; | |
- margin: 30px 0 0 | |
+ margin: 30px 0 0 0 | |
} | |
.theme-overlay .theme-tags { | |
@@ -663,7 +667,7 @@ | |
color: #82878c; | |
font-size: 13px; | |
font-weight: 400; | |
- margin: 30px 0 0; | |
+ margin: 30px 0 0 0; | |
padding-top: 20px | |
} | |
@@ -807,7 +811,7 @@ | |
} | |
.theme-browser .theme .theme-actions { | |
- padding: 5px 10px 4px | |
+ padding: 5px 10px 4px 10px | |
} | |
.theme-overlay.small-screenshot .theme-screenshots { | |
@@ -871,7 +875,7 @@ | |
} | |
.theme-overlay .theme-author { | |
- margin: 5px 0 15px | |
+ margin: 5px 0 15px 0 | |
} | |
.theme-overlay .current-label { | |
@@ -884,13 +888,13 @@ | |
clear: both; | |
right: 0; | |
left: 0; | |
- margin: -5px 0 20px; | |
+ margin: -5px 0 20px 0; | |
width: 100%; | |
max-width: 280px | |
} | |
.theme-browser .theme.add-new-theme span:after { | |
- font: 400 60px/90px dashicons; | |
+ font: normal 60px/90px dashicons; | |
width: 80px; | |
height: 80px; | |
top: 30%; | |
@@ -937,7 +941,7 @@ | |
color: #79ba49; | |
content: "\f147"; | |
display: inline-block; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
vertical-align: top | |
@@ -1154,15 +1158,6 @@ | |
position: relative | |
} | |
-.wp-full-overlay, | |
-.wp-full-overlay-sidebar { | |
- position: fixed; | |
- top: 0; | |
- height: 100%; | |
- bottom: 0; | |
- right: 0 | |
-} | |
- | |
.background-position-control .button-group .button:active, | |
.background-position-control .button-group .button:focus, | |
.background-position-control .button-group .button:hover { | |
@@ -1187,7 +1182,7 @@ | |
} | |
.background-position-control .button-group:first-child>label:last-child .button { | |
- border-radius: 3px 0 0 | |
+ border-radius: 3px 0 0 0 | |
} | |
.background-position-control .button-group:first-child>label:last-child .dashicons { | |
@@ -1196,7 +1191,7 @@ | |
} | |
.background-position-control .button-group:last-child>label:first-child .button { | |
- border-radius: 0 0 3px | |
+ border-radius: 0 0 3px 0 | |
} | |
.background-position-control .button-group:last-child>label:first-child .dashicons { | |
@@ -1227,17 +1222,28 @@ | |
} | |
.wp-full-overlay { | |
+ background: 0 0; | |
z-index: 500000; | |
+ position: fixed; | |
overflow: visible; | |
+ top: 0; | |
+ bottom: 0; | |
+ right: 0; | |
left: 0; | |
+ height: 100%; | |
min-width: 0 | |
} | |
.wp-full-overlay-sidebar { | |
box-sizing: border-box; | |
+ position: fixed; | |
min-width: 300px; | |
max-width: 600px; | |
width: 18%; | |
+ height: 100%; | |
+ top: 0; | |
+ bottom: 0; | |
+ right: 0; | |
padding: 0; | |
margin: 0; | |
z-index: 10; | |
@@ -1245,6 +1251,10 @@ | |
border-left: none | |
} | |
+.wp-full-overlay.collapsed .wp-full-overlay-sidebar { | |
+ overflow: visible | |
+} | |
+ | |
.wp-full-overlay.collapsed, | |
.wp-full-overlay.expanded .wp-full-overlay-sidebar { | |
margin-right: 0 !important | |
@@ -1255,7 +1265,6 @@ | |
} | |
.wp-full-overlay.collapsed .wp-full-overlay-sidebar { | |
- overflow: visible; | |
margin-right: -300px | |
} | |
@@ -1367,7 +1376,7 @@ | |
} | |
.theme-install-overlay .close-full-overlay:before { | |
- font: 400 22px/1 dashicons; | |
+ font: normal 22px/1 dashicons; | |
content: "\f335"; | |
position: relative; | |
top: 7px; | |
@@ -1375,7 +1384,7 @@ | |
} | |
.theme-install-overlay .previous-theme:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f345"; | |
position: relative; | |
top: 6px; | |
@@ -1383,7 +1392,7 @@ | |
} | |
.theme-install-overlay .next-theme:before { | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
content: "\f341"; | |
position: relative; | |
top: 6px; | |
@@ -1469,7 +1478,7 @@ | |
display: block; | |
content: "\f148"; | |
background: #eee; | |
- font: 400 20px/1 dashicons; | |
+ font: normal 20px/1 dashicons; | |
speak: none; | |
padding: 0; | |
-webkit-font-smoothing: antialiased; | |
@@ -1551,24 +1560,13 @@ | |
.wp-full-overlay-footer .devices button:before { | |
display: inline-block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 20px/30px dashicons; | |
+ font: normal 20px/30px dashicons; | |
vertical-align: top; | |
margin: 3px 0; | |
padding: 4px 8px; | |
color: #656a6f | |
} | |
-#customize-container, | |
-.customize-support .hide-if-customize, | |
-.customize-support .wp-core-ui .hide-if-customize, | |
-.customize-support.wp-core-ui .hide-if-customize, | |
-.no-customize-support .hide-if-no-customize, | |
-.no-customize-support .wp-core-ui .hide-if-no-customize, | |
-.no-customize-support.wp-core-ui .hide-if-no-customize, | |
-.theme-install-overlay { | |
- display: none | |
-} | |
- | |
.wp-full-overlay-footer .devices button.active { | |
border-bottom-color: #191e23 | |
} | |
@@ -1632,6 +1630,15 @@ | |
right: 50% | |
} | |
+.customize-support .hide-if-customize, | |
+.customize-support .wp-core-ui .hide-if-customize, | |
+.customize-support.wp-core-ui .hide-if-customize, | |
+.no-customize-support .hide-if-no-customize, | |
+.no-customize-support .wp-core-ui .hide-if-no-customize, | |
+.no-customize-support.wp-core-ui .hide-if-no-customize { | |
+ display: none | |
+} | |
+ | |
#customize-container, | |
#customize-controls .notice.notification-overlay { | |
background: #eee; | |
@@ -1645,6 +1652,10 @@ | |
height: 100% | |
} | |
+#customize-container { | |
+ display: none | |
+} | |
+ | |
#customize-container, | |
.theme-install-overlay { | |
visibility: visible | |
@@ -1666,6 +1677,10 @@ | |
margin-top: 0 | |
} | |
+.theme-install-overlay { | |
+ display: none | |
+} | |
+ | |
.theme-install-overlay.single-theme { | |
display: block | |
} | |
@@ -1758,7 +1773,7 @@ | |
margin: -10px -10px 0 0; | |
-webkit-transform: translateZ(0); | |
transform: translateZ(0); | |
- background: url(../images/spinner.gif) center center no-repeat; | |
+ background: transparent url(../images/spinner.gif) no-repeat center center; | |
background-size: 20px 20px | |
} | |
diff -ru build-before-upgrades-unminified/wp-admin/css/widgets.min.css build-unminified/wp-admin/css/widgets.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/widgets.min.css 2018-10-05 18:07:02.890613036 -0500 | |
+++ build-unminified/wp-admin/css/widgets.min.css 2018-10-05 18:07:19.626728368 -0500 | |
@@ -1,11 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.widget.widget-dirty .widget-control-close-wrapper, | |
-.wp-core-ui .media-widget-control .selected, | |
-.wp-core-ui .media-widget-control.selected .not-selected, | |
-.wp-core-ui .media-widget-control.selected .placeholder { | |
- display: none | |
-} | |
- | |
.widget { | |
margin: 0 auto 10px; | |
position: relative; | |
@@ -44,10 +37,14 @@ | |
.widgets-holder-wrap .widget-inside { | |
border-top: none; | |
- padding: 1px 15px 15px; | |
+ padding: 1px 15px 15px 15px; | |
line-height: 16px | |
} | |
+.widget.widget-dirty .widget-control-close-wrapper { | |
+ display: none | |
+} | |
+ | |
#available-widgets .widget-description, | |
#widgets-right a.widget-control-edit, | |
.in-widget-title { | |
@@ -59,6 +56,12 @@ | |
color: #a0a5aa | |
} | |
+.wp-core-ui .media-widget-control .selected, | |
+.wp-core-ui .media-widget-control.selected .not-selected, | |
+.wp-core-ui .media-widget-control.selected .placeholder { | |
+ display: none | |
+} | |
+ | |
.media-widget-control.selected .selected { | |
display: inline-block | |
} | |
@@ -142,7 +145,7 @@ | |
} | |
.media-widget-video-link .dashicons { | |
- font: 400 60px/1 dashicons; | |
+ font: normal 60px/1 dashicons; | |
position: relative; | |
width: 100%; | |
top: -90px; | |
@@ -402,7 +405,7 @@ | |
width: 100%; | |
background: 0 0; | |
padding: 0; | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
border: none; | |
box-shadow: none | |
} | |
@@ -434,7 +437,7 @@ | |
} | |
div#widgets-right .widgets-holder-wrap { | |
- margin: 10px 0 0 | |
+ margin: 10px 0 0 0 | |
} | |
div#widgets-right .sidebar-description { | |
@@ -497,17 +500,13 @@ | |
display: none | |
} | |
-.editwidget .widget-inside, | |
.widget-control-edit { | |
display: block; | |
- padding: 0 15px | |
-} | |
- | |
-.widget-control-edit { | |
color: #666; | |
- background: #EEE; | |
+ background: #eee; | |
+ padding: 0 15px; | |
line-height: 43px; | |
- border-left: 1px solid #DDD | |
+ border-left: 1px solid #ddd | |
} | |
#widgets-left .widget-control-edit:hover, | |
@@ -515,7 +514,7 @@ | |
color: #fff; | |
background: #444; | |
border-left: 0; | |
- outline: #444 solid 1px | |
+ outline: 1px solid #444 | |
} | |
.widgets-holder-wrap .sidebar-description, | |
@@ -530,6 +529,11 @@ | |
margin: 0 auto | |
} | |
+.editwidget .widget-inside { | |
+ display: block; | |
+ padding: 0 15px | |
+} | |
+ | |
.editwidget .widget-control-actions { | |
margin-top: 20px | |
} | |
@@ -546,15 +550,8 @@ | |
display: block | |
} | |
-#access-off, | |
-.no-js .widget-holder .description, | |
-.widget-control-noform, | |
.widget-description, | |
-.widget-inside, | |
-.widgets_access #access-on, | |
-.widgets_access .handlediv, | |
-.widgets_access .widget-action, | |
-.widgets_access .widget-holder .description { | |
+.widget-inside { | |
display: none | |
} | |
@@ -575,6 +572,16 @@ | |
color: #00a0d2 | |
} | |
+#access-off, | |
+.no-js .widget-holder .description, | |
+.widget-control-noform, | |
+.widgets_access #access-on, | |
+.widgets_access .handlediv, | |
+.widgets_access .widget-action, | |
+.widgets_access .widget-holder .description { | |
+ display: none | |
+} | |
+ | |
.widgets_access #widget-list, | |
.widgets_access .widget-holder { | |
padding-top: 10px | |
@@ -591,7 +598,11 @@ | |
.widget-liquid-left #widgets-left.chooser #available-widgets .widget, | |
.widget-liquid-left #widgets-left.chooser .inactive-sidebar { | |
- transition: opacity .1s linear; | |
+ transition: opacity .1s linear | |
+} | |
+ | |
+.widget-liquid-left #widgets-left.chooser #available-widgets .widget, | |
+.widget-liquid-left #widgets-left.chooser .inactive-sidebar { | |
opacity: .2; | |
pointer-events: none | |
} | |
@@ -645,7 +656,7 @@ | |
content: "\f147"; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 26px/1 dashicons; | |
+ font: normal 26px/1 dashicons; | |
color: #555d66; | |
position: absolute; | |
top: 7px; | |
@@ -666,7 +677,7 @@ | |
content: "\f147"; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 26px/1 dashicons; | |
+ font: normal 26px/1 dashicons; | |
color: #fff; | |
position: absolute; | |
top: 7px; | |
@@ -674,7 +685,7 @@ | |
} | |
.widgets-chooser .widgets-chooser-actions { | |
- padding: 10px 0 12px; | |
+ padding: 10px 0 12px 0; | |
text-align: center | |
} | |
@@ -740,12 +751,18 @@ | |
padding-right: 0 | |
} | |
- #widgets-left #available-widgets .widget-top, | |
- #widgets-left .inactive-sidebar .widgets-sortables, | |
#widgets-left .sidebar-name { | |
margin-right: 0 | |
} | |
+ #widgets-left #available-widgets .widget-top { | |
+ margin-right: 0 | |
+ } | |
+ | |
+ #widgets-left .inactive-sidebar .widgets-sortables { | |
+ margin-right: 0 | |
+ } | |
+ | |
div.widget-liquid-right { | |
width: 100%; | |
float: none | |
diff -ru build-before-upgrades-unminified/wp-admin/css/widgets-rtl.min.css build-unminified/wp-admin/css/widgets-rtl.min.css | |
--- build-before-upgrades-unminified/wp-admin/css/widgets-rtl.min.css 2018-10-05 18:06:57.362574953 -0500 | |
+++ build-unminified/wp-admin/css/widgets-rtl.min.css 2018-10-05 18:07:14.078690129 -0500 | |
@@ -1,11 +1,4 @@ | |
/*! This file is auto-generated */ | |
-.widget.widget-dirty .widget-control-close-wrapper, | |
-.wp-core-ui .media-widget-control .selected, | |
-.wp-core-ui .media-widget-control.selected .not-selected, | |
-.wp-core-ui .media-widget-control.selected .placeholder { | |
- display: none | |
-} | |
- | |
.widget { | |
margin: 0 auto 10px; | |
position: relative; | |
@@ -44,10 +37,14 @@ | |
.widgets-holder-wrap .widget-inside { | |
border-top: none; | |
- padding: 1px 15px 15px; | |
+ padding: 1px 15px 15px 15px; | |
line-height: 16px | |
} | |
+.widget.widget-dirty .widget-control-close-wrapper { | |
+ display: none | |
+} | |
+ | |
#available-widgets .widget-description, | |
#widgets-right a.widget-control-edit, | |
.in-widget-title { | |
@@ -59,6 +56,12 @@ | |
color: #a0a5aa | |
} | |
+.wp-core-ui .media-widget-control .selected, | |
+.wp-core-ui .media-widget-control.selected .not-selected, | |
+.wp-core-ui .media-widget-control.selected .placeholder { | |
+ display: none | |
+} | |
+ | |
.media-widget-control.selected .selected { | |
display: inline-block | |
} | |
@@ -142,7 +145,7 @@ | |
} | |
.media-widget-video-link .dashicons { | |
- font: 400 60px/1 dashicons; | |
+ font: normal 60px/1 dashicons; | |
position: relative; | |
width: 100%; | |
top: -90px; | |
@@ -402,7 +405,7 @@ | |
width: 100%; | |
background: 0 0; | |
padding: 0; | |
- margin: 0 0 20px; | |
+ margin: 0 0 20px 0; | |
border: none; | |
box-shadow: none | |
} | |
@@ -434,7 +437,7 @@ | |
} | |
div#widgets-right .widgets-holder-wrap { | |
- margin: 10px 0 0 | |
+ margin: 10px 0 0 0 | |
} | |
div#widgets-right .sidebar-description { | |
@@ -497,17 +500,13 @@ | |
display: none | |
} | |
-.editwidget .widget-inside, | |
.widget-control-edit { | |
display: block; | |
- padding: 0 15px | |
-} | |
- | |
-.widget-control-edit { | |
color: #666; | |
- background: #EEE; | |
+ background: #eee; | |
+ padding: 0 15px; | |
line-height: 43px; | |
- border-right: 1px solid #DDD | |
+ border-right: 1px solid #ddd | |
} | |
#widgets-left .widget-control-edit:hover, | |
@@ -515,7 +514,7 @@ | |
color: #fff; | |
background: #444; | |
border-right: 0; | |
- outline: #444 solid 1px | |
+ outline: 1px solid #444 | |
} | |
.widgets-holder-wrap .sidebar-description, | |
@@ -530,6 +529,11 @@ | |
margin: 0 auto | |
} | |
+.editwidget .widget-inside { | |
+ display: block; | |
+ padding: 0 15px | |
+} | |
+ | |
.editwidget .widget-control-actions { | |
margin-top: 20px | |
} | |
@@ -546,15 +550,8 @@ | |
display: block | |
} | |
-#access-off, | |
-.no-js .widget-holder .description, | |
-.widget-control-noform, | |
.widget-description, | |
-.widget-inside, | |
-.widgets_access #access-on, | |
-.widgets_access .handlediv, | |
-.widgets_access .widget-action, | |
-.widgets_access .widget-holder .description { | |
+.widget-inside { | |
display: none | |
} | |
@@ -575,6 +572,16 @@ | |
color: #00a0d2 | |
} | |
+#access-off, | |
+.no-js .widget-holder .description, | |
+.widget-control-noform, | |
+.widgets_access #access-on, | |
+.widgets_access .handlediv, | |
+.widgets_access .widget-action, | |
+.widgets_access .widget-holder .description { | |
+ display: none | |
+} | |
+ | |
.widgets_access #widget-list, | |
.widgets_access .widget-holder { | |
padding-top: 10px | |
@@ -591,7 +598,11 @@ | |
.widget-liquid-left #widgets-left.chooser #available-widgets .widget, | |
.widget-liquid-left #widgets-left.chooser .inactive-sidebar { | |
- transition: opacity .1s linear; | |
+ transition: opacity .1s linear | |
+} | |
+ | |
+.widget-liquid-left #widgets-left.chooser #available-widgets .widget, | |
+.widget-liquid-left #widgets-left.chooser .inactive-sidebar { | |
opacity: .2; | |
pointer-events: none | |
} | |
@@ -645,7 +656,7 @@ | |
content: "\f147"; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 26px/1 dashicons; | |
+ font: normal 26px/1 dashicons; | |
color: #555d66; | |
position: absolute; | |
top: 7px; | |
@@ -666,7 +677,7 @@ | |
content: "\f147"; | |
display: block; | |
-webkit-font-smoothing: antialiased; | |
- font: 400 26px/1 dashicons; | |
+ font: normal 26px/1 dashicons; | |
color: #fff; | |
position: absolute; | |
top: 7px; | |
@@ -674,7 +685,7 @@ | |
} | |
.widgets-chooser .widgets-chooser-actions { | |
- padding: 10px 0 12px; | |
+ padding: 10px 0 12px 0; | |
text-align: center | |
} | |
@@ -740,12 +751,18 @@ | |
padding-left: 0 | |
} | |
- #widgets-left #available-widgets .widget-top, | |
- #widgets-left .inactive-sidebar .widgets-sortables, | |
#widgets-left .sidebar-name { | |
margin-left: 0 | |
} | |
+ #widgets-left #available-widgets .widget-top { | |
+ margin-left: 0 | |
+ } | |
+ | |
+ #widgets-left .inactive-sidebar .widgets-sortables { | |
+ margin-left: 0 | |
+ } | |
+ | |
div.widget-liquid-right { | |
width: 100%; | |
float: none | |
diff -ru build-before-upgrades-unminified/wp-admin/js/accordion.min.js build-unminified/wp-admin/js/accordion.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/accordion.min.js 2018-10-05 18:05:57.914165792 -0500 | |
+++ build-unminified/wp-admin/js/accordion.min.js 2018-10-05 18:05:17.517888163 -0500 | |
@@ -1,18 +1,19 @@ | |
-! function(a) { | |
- function b(a) { | |
- var b = a.closest(".accordion-section"), | |
- c = b.find("[aria-expanded]").first(), | |
- d = b.closest(".accordion-container"), | |
- e = d.find(".open"), | |
- f = e.find("[aria-expanded]").first(), | |
- g = b.find(".accordion-section-content"); | |
- b.hasClass("cannot-expand") || (d.addClass("opening"), b.hasClass("open") ? (b.toggleClass("open"), g.toggle(!0).slideToggle(150)) : (f.attr("aria-expanded", "false"), e.removeClass("open"), e.find(".accordion-section-content").show().slideUp(150), g.toggle(!1).slideToggle(150), b.toggleClass("open")), setTimeout(function() { | |
- d.removeClass("opening") | |
- }, 150), c && c.attr("aria-expanded", String("false" === c.attr("aria-expanded")))) | |
- } | |
- a(document).ready(function() { | |
- a(".accordion-container").on("click keydown", ".accordion-section-title", function(c) { | |
- "keydown" === c.type && 13 !== c.which || (c.preventDefault(), b(a(this))) | |
+! function(e) { | |
+ e(document).ready(function() { | |
+ e(".accordion-container").on("click keydown", ".accordion-section-title", function(n) { | |
+ "keydown" === n.type && 13 !== n.which || (n.preventDefault(), function(n) { | |
+ var e = n.closest(".accordion-section"), | |
+ o = e.find("[aria-expanded]").first(), | |
+ a = e.closest(".accordion-container"), | |
+ i = a.find(".open"), | |
+ t = i.find("[aria-expanded]").first(), | |
+ s = e.find(".accordion-section-content"); | |
+ if (e.hasClass("cannot-expand")) return; | |
+ a.addClass("opening"), e.hasClass("open") ? (e.toggleClass("open"), s.toggle(!0).slideToggle(150)) : (t.attr("aria-expanded", "false"), i.removeClass("open"), i.find(".accordion-section-content").show().slideUp(150), s.toggle(!1).slideToggle(150), e.toggleClass("open")); | |
+ setTimeout(function() { | |
+ a.removeClass("opening") | |
+ }, 150), o && o.attr("aria-expanded", String("false" === o.attr("aria-expanded"))) | |
+ }(e(this))) | |
}) | |
}) | |
}(jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/code-editor.min.js build-unminified/wp-admin/js/code-editor.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/code-editor.min.js 2018-10-05 18:05:53.342134354 -0500 | |
+++ build-unminified/wp-admin/js/code-editor.min.js 2018-10-05 18:05:14.629868328 -0500 | |
@@ -1,51 +1,7 @@ | |
-"undefined" == typeof window.wp && (window.wp = {}), "undefined" == typeof window.wp.codeEditor && (window.wp.codeEditor = {}), | |
- function(a, b) { | |
+void 0 === window.wp && (window.wp = {}), void 0 === window.wp.codeEditor && (window.wp.codeEditor = {}), | |
+ function(l, c) { | |
"use strict"; | |
- | |
- function c(b, c) { | |
- function d() { | |
- c.onUpdateErrorNotice && !_.isEqual(f, g) && (c.onUpdateErrorNotice(f, b), g = f) | |
- } | |
- | |
- function e() { | |
- var e = b.getOption("lint"); | |
- return !!e && (!0 === e ? e = {} : _.isObject(e) && (e = a.extend({}, e)), e.options || (e.options = {}), "javascript" === c.codemirror.mode && c.jshint && a.extend(e.options, c.jshint), "css" === c.codemirror.mode && c.csslint && a.extend(e.options, c.csslint), "htmlmixed" === c.codemirror.mode && c.htmlhint && (e.options.rules = a.extend({}, c.htmlhint), c.jshint && (e.options.rules.jshint = c.jshint), c.csslint && (e.options.rules.csslint = c.csslint)), e.onUpdateLinting = function(a) { | |
- return function(e, h, i) { | |
- var j = _.filter(e, function(a) { | |
- return "error" === a.severity | |
- }); | |
- a && a.apply(e, h, i), _.isEqual(j, f) || (f = j, c.onChangeLintingErrors && c.onChangeLintingErrors(j, e, h, i), (!b.state.focused || 0 === f.length || g.length > 0) && d()) | |
- } | |
- }(e.onUpdateLinting), e) | |
- } | |
- var f = [], | |
- g = []; | |
- b.setOption("lint", e()), b.on("optionChange", function(a, c) { | |
- var g, h, i = "CodeMirror-lint-markers"; | |
- "lint" === c && (h = b.getOption("gutters") || [], g = b.getOption("lint"), !0 === g ? (_.contains(h, i) || b.setOption("gutters", [i].concat(h)), b.setOption("lint", e())) : g || b.setOption("gutters", _.without(h, i)), b.getOption("lint") ? b.performLint() : (f = [], d())) | |
- }), b.on("blur", d), b.on("startCompletion", function() { | |
- b.off("blur", d) | |
- }), b.on("endCompletion", function() { | |
- var a = 500; | |
- b.on("blur", d), _.delay(function() { | |
- b.state.focused || d() | |
- }, a) | |
- }), a(document.body).on("mousedown", function(c) { | |
- !b.state.focused || a.contains(b.display.wrapper, c.target) || a(c.target).hasClass("CodeMirror-hint") || d() | |
- }) | |
- } | |
- | |
- function d(b, c) { | |
- var d = a(b.getTextArea()); | |
- b.on("blur", function() { | |
- d.data("next-tab-blurs", !1) | |
- }), b.on("keydown", function(a, e) { | |
- var f = 9, | |
- g = 27; | |
- return g === e.keyCode ? void d.data("next-tab-blurs", !0) : void(f === e.keyCode && d.data("next-tab-blurs") && (e.shiftKey ? c.onTabPrevious(b, e) : c.onTabNext(b, e), d.data("next-tab-blurs", !1), e.preventDefault())) | |
- }) | |
- } | |
- b.codeEditor.defaultSettings = { | |
+ c.codeEditor.defaultSettings = { | |
codemirror: {}, | |
csslint: {}, | |
htmlhint: {}, | |
@@ -54,16 +10,50 @@ | |
onTabPrevious: function() {}, | |
onChangeLintingErrors: function() {}, | |
onUpdateErrorNotice: function() {} | |
- }, b.codeEditor.initialize = function(e, f) { | |
- var g, h, i, j; | |
- return g = a("string" == typeof e ? "#" + e : e), i = a.extend({}, b.codeEditor.defaultSettings, f), i.codemirror = a.extend({}, i.codemirror), h = b.CodeMirror.fromTextArea(g[0], i.codemirror), c(h, i), j = { | |
- settings: i, | |
- codemirror: h | |
- }, h.showHint && h.on("keyup", function(a, c) { | |
- var d, e, f, g, i = /^[a-zA-Z]$/.test(c.key); | |
- h.state.completionActive && i || (g = h.getTokenAt(h.getCursor()), "string" !== g.type && "comment" !== g.type && (f = b.CodeMirror.innerMode(h.getMode(), g.state).mode.name, e = h.doc.getLine(h.doc.getCursor().line).substr(0, h.doc.getCursor().ch), "html" === f || "xml" === f ? d = "<" === c.key || "/" === c.key && "tag" === g.type || i && "tag" === g.type || i && "attribute" === g.type || "=" === g.string && g.state.htmlState && g.state.htmlState.tagName : "css" === f ? d = i || ":" === c.key || " " === c.key && /:\s+$/.test(e) : "javascript" === f ? d = i || "." === c.key : "clike" === f && "application/x-httpd-php" === h.options.mode && (d = "keyword" === g.type || "variable" === g.type), d && h.showHint({ | |
- completeSingle: !1 | |
- }))) | |
- }), d(h, f), j | |
+ }, c.codeEditor.initialize = function(t, n) { | |
+ var e, a, o, i, r, s, d; | |
+ return e = l("string" == typeof t ? "#" + t : t), (o = l.extend({}, c.codeEditor.defaultSettings, n)).codemirror = l.extend({}, o.codemirror), | |
+ function(r, s) { | |
+ var a = [], | |
+ d = []; | |
+ | |
+ function c() { | |
+ s.onUpdateErrorNotice && !_.isEqual(a, d) && (s.onUpdateErrorNotice(a, r), d = a) | |
+ } | |
+ | |
+ function u() { | |
+ var i, t = r.getOption("lint"); | |
+ return !!t && (!0 === t ? t = {} : _.isObject(t) && (t = l.extend({}, t)), t.options || (t.options = {}), "javascript" === s.codemirror.mode && s.jshint && l.extend(t.options, s.jshint), "css" === s.codemirror.mode && s.csslint && l.extend(t.options, s.csslint), "htmlmixed" === s.codemirror.mode && s.htmlhint && (t.options.rules = l.extend({}, s.htmlhint), s.jshint && (t.options.rules.jshint = s.jshint), s.csslint && (t.options.rules.csslint = s.csslint)), t.onUpdateLinting = (i = t.onUpdateLinting, function(t, n, e) { | |
+ var o = _.filter(t, function(t) { | |
+ return "error" === t.severity | |
+ }); | |
+ i && i.apply(t, n, e), _.isEqual(o, a) || (a = o, s.onChangeLintingErrors && s.onChangeLintingErrors(o, t, n, e), (!r.state.focused || 0 === a.length || 0 < d.length) && c()) | |
+ }), t) | |
+ } | |
+ r.setOption("lint", u()), r.on("optionChange", function(t, n) { | |
+ var e, o, i = "CodeMirror-lint-markers"; | |
+ "lint" === n && (o = r.getOption("gutters") || [], !0 === (e = r.getOption("lint")) ? (_.contains(o, i) || r.setOption("gutters", [i].concat(o)), r.setOption("lint", u())) : e || r.setOption("gutters", _.without(o, i)), r.getOption("lint") ? r.performLint() : (a = [], c())) | |
+ }), r.on("blur", c), r.on("startCompletion", function() { | |
+ r.off("blur", c) | |
+ }), r.on("endCompletion", function() { | |
+ r.on("blur", c), _.delay(function() { | |
+ r.state.focused || c() | |
+ }, 500) | |
+ }), l(document.body).on("mousedown", function(t) { | |
+ !r.state.focused || l.contains(r.display.wrapper, t.target) || l(t.target).hasClass("CodeMirror-hint") || c() | |
+ }) | |
+ }(a = c.CodeMirror.fromTextArea(e[0], o.codemirror), o), i = { | |
+ settings: o, | |
+ codemirror: a | |
+ }, a.showHint && a.on("keyup", function(t, n) { | |
+ var e, o, i, r, s = /^[a-zA-Z]$/.test(n.key); | |
+ a.state.completionActive && s || "string" !== (r = a.getTokenAt(a.getCursor())).type && "comment" !== r.type && (i = c.CodeMirror.innerMode(a.getMode(), r.state).mode.name, o = a.doc.getLine(a.doc.getCursor().line).substr(0, a.doc.getCursor().ch), "html" === i || "xml" === i ? e = "<" === n.key || "/" === n.key && "tag" === r.type || s && "tag" === r.type || s && "attribute" === r.type || "=" === r.string && r.state.htmlState && r.state.htmlState.tagName : "css" === i ? e = s || ":" === n.key || " " === n.key && /:\s+$/.test(o) : "javascript" === i ? e = s || "." === n.key : "clike" === i && "application/x-httpd-php" === a.options.mode && (e = "keyword" === r.type || "variable" === r.type), e && a.showHint({ | |
+ completeSingle: !1 | |
+ })) | |
+ }), s = n, d = l((r = a).getTextArea()), r.on("blur", function() { | |
+ d.data("next-tab-blurs", !1) | |
+ }), r.on("keydown", function(t, n) { | |
+ 27 !== n.keyCode ? 9 === n.keyCode && d.data("next-tab-blurs") && (n.shiftKey ? s.onTabPrevious(r, n) : s.onTabNext(r, n), d.data("next-tab-blurs", !1), n.preventDefault()) : d.data("next-tab-blurs", !0) | |
+ }), i | |
} | |
}(window.jQuery, window.wp); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/color-picker.min.js build-unminified/wp-admin/js/color-picker.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/color-picker.min.js 2018-10-05 18:05:55.550149536 -0500 | |
+++ build-unminified/wp-admin/js/color-picker.min.js 2018-10-05 18:05:15.993877695 -0500 | |
@@ -1,11 +1,6 @@ | |
-! function(a, b) { | |
- var c, d = '<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>', | |
- e = '<div class="wp-picker-holder" />', | |
- f = '<div class="wp-picker-container" />', | |
- g = '<input type="button" class="button button-small" />', | |
- h = "<label></label>", | |
- i = '<span class="screen-reader-text"></span>'; | |
- c = { | |
+! function(i, t) { | |
+ var e; | |
+ e = { | |
options: { | |
defaultColor: !1, | |
change: !1, | |
@@ -18,67 +13,68 @@ | |
slider: "horizontal" | |
}, | |
_createHueOnly: function() { | |
- var b, c = this, | |
- d = c.element; | |
- d.hide(), b = "hsl(" + d.val() + ", 100, 50)", d.iris({ | |
+ var e, o = this, | |
+ t = o.element; | |
+ t.hide(), e = "hsl(" + t.val() + ", 100, 50)", t.iris({ | |
mode: "hsl", | |
type: "hue", | |
hide: !1, | |
- color: b, | |
- change: function(b, d) { | |
- a.isFunction(c.options.change) && c.options.change.call(this, b, d) | |
+ color: e, | |
+ change: function(e, t) { | |
+ i.isFunction(o.options.change) && o.options.change.call(this, e, t) | |
}, | |
- width: c.options.width, | |
- slider: c.options.slider | |
+ width: o.options.width, | |
+ slider: o.options.slider | |
}) | |
}, | |
_create: function() { | |
- if (a.support.iris) { | |
- var b = this, | |
- c = b.element; | |
- if (a.extend(b.options, c.data()), "hue" === b.options.type) return b._createHueOnly(); | |
- b.close = a.proxy(b.close, b), b.initialValue = c.val(), c.addClass("wp-color-picker"), c.parent("label").length || (c.wrap(h), b.wrappingLabelText = a(i).insertBefore(c).text(wpColorPickerL10n.defaultLabel)), b.wrappingLabel = c.parent(), b.wrappingLabel.wrap(f), b.wrap = b.wrappingLabel.parent(), b.toggler = a(d).insertBefore(b.wrappingLabel).css({ | |
- backgroundColor: b.initialValue | |
- }), b.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick), b.pickerContainer = a(e).insertAfter(b.wrappingLabel), b.button = a(g), b.options.defaultColor ? b.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString).attr("aria-label", wpColorPickerL10n.defaultAriaLabel) : b.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear).attr("aria-label", wpColorPickerL10n.clearAriaLabel), b.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(b.button), b.inputWrapper = c.closest(".wp-picker-input-wrap"), c.iris({ | |
- target: b.pickerContainer, | |
- hide: b.options.hide, | |
- width: b.options.width, | |
- mode: b.options.mode, | |
- palettes: b.options.palettes, | |
- change: function(c, d) { | |
- b.toggler.css({ | |
- backgroundColor: d.color.toString() | |
- }), a.isFunction(b.options.change) && b.options.change.call(this, c, d) | |
+ if (i.support.iris) { | |
+ var o = this, | |
+ e = o.element; | |
+ if (i.extend(o.options, e.data()), "hue" === o.options.type) return o._createHueOnly(); | |
+ o.close = i.proxy(o.close, o), o.initialValue = e.val(), e.addClass("wp-color-picker"), e.parent("label").length || (e.wrap("<label></label>"), o.wrappingLabelText = i('<span class="screen-reader-text"></span>').insertBefore(e).text(wpColorPickerL10n.defaultLabel)), o.wrappingLabel = e.parent(), o.wrappingLabel.wrap('<div class="wp-picker-container" />'), o.wrap = o.wrappingLabel.parent(), o.toggler = i('<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>').insertBefore(o.wrappingLabel).css({ | |
+ backgroundColor: o.initialValue | |
+ }), o.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick), o.pickerContainer = i('<div class="wp-picker-holder" />').insertAfter(o.wrappingLabel), o.button = i('<input type="button" class="button button-small" />'), o.options.defaultColor ? o.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString).attr("aria-label", wpColorPickerL10n.defaultAriaLabel) : o.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear).attr("aria-label", wpColorPickerL10n.clearAriaLabel), o.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(o.button), o.inputWrapper = e.closest(".wp-picker-input-wrap"), e.iris({ | |
+ target: o.pickerContainer, | |
+ hide: o.options.hide, | |
+ width: o.options.width, | |
+ mode: o.options.mode, | |
+ palettes: o.options.palettes, | |
+ change: function(e, t) { | |
+ o.toggler.css({ | |
+ backgroundColor: t.color.toString() | |
+ }), i.isFunction(o.options.change) && o.options.change.call(this, e, t) | |
} | |
- }), c.val(b.initialValue), b._addListeners(), b.options.hide || b.toggler.click() | |
+ }), e.val(o.initialValue), o._addListeners(), o.options.hide || o.toggler.click() | |
} | |
}, | |
_addListeners: function() { | |
- var b = this; | |
- b.wrap.on("click.wpcolorpicker", function(a) { | |
- a.stopPropagation() | |
- }), b.toggler.click(function() { | |
- b.toggler.hasClass("wp-picker-open") ? b.close() : b.open() | |
- }), b.element.change(function(c) { | |
- var d = a(this), | |
- e = d.val(); | |
- "" !== e && "#" !== e || (b.toggler.css("backgroundColor", ""), a.isFunction(b.options.clear) && b.options.clear.call(this, c)) | |
- }), b.button.click(function(c) { | |
- var d = a(this); | |
- d.hasClass("wp-picker-clear") ? (b.element.val(""), b.toggler.css("backgroundColor", ""), a.isFunction(b.options.clear) && b.options.clear.call(this, c)) : d.hasClass("wp-picker-default") && b.element.val(b.options.defaultColor).change() | |
+ var o = this; | |
+ o.wrap.on("click.wpcolorpicker", function(e) { | |
+ e.stopPropagation() | |
+ }), o.toggler.click(function() { | |
+ o.toggler.hasClass("wp-picker-open") ? o.close() : o.open() | |
+ }), o.element.change(function(e) { | |
+ var t = i(this).val(); | |
+ "" !== t && "#" !== t || (o.toggler.css("backgroundColor", ""), i.isFunction(o.options.clear) && o.options.clear.call(this, e)) | |
+ }), o.button.click(function(e) { | |
+ var t = i(this); | |
+ t.hasClass("wp-picker-clear") ? (o.element.val(""), o.toggler.css("backgroundColor", ""), i.isFunction(o.options.clear) && o.options.clear.call(this, e)) : t.hasClass("wp-picker-default") && o.element.val(o.options.defaultColor).change() | |
}) | |
}, | |
open: function() { | |
- this.element.iris("toggle"), this.inputWrapper.removeClass("hidden"), this.wrap.addClass("wp-picker-active"), this.toggler.addClass("wp-picker-open").attr("aria-expanded", "true"), a("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker", this.close) | |
+ this.element.iris("toggle"), this.inputWrapper.removeClass("hidden"), this.wrap.addClass("wp-picker-active"), this.toggler.addClass("wp-picker-open").attr("aria-expanded", "true"), i("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker", this.close) | |
}, | |
close: function() { | |
- this.element.iris("toggle"), this.inputWrapper.addClass("hidden"), this.wrap.removeClass("wp-picker-active"), this.toggler.removeClass("wp-picker-open").attr("aria-expanded", "false"), a("body").off("click.wpcolorpicker", this.close) | |
+ this.element.iris("toggle"), this.inputWrapper.addClass("hidden"), this.wrap.removeClass("wp-picker-active"), this.toggler.removeClass("wp-picker-open").attr("aria-expanded", "false"), i("body").off("click.wpcolorpicker", this.close) | |
}, | |
- color: function(a) { | |
- return a === b ? this.element.iris("option", "color") : void this.element.iris("option", "color", a) | |
- }, | |
- defaultColor: function(a) { | |
- return a === b ? this.options.defaultColor : void(this.options.defaultColor = a) | |
+ color: function(e) { | |
+ if (e === t) return this.element.iris("option", "color"); | |
+ this.element.iris("option", "color", e) | |
+ }, | |
+ defaultColor: function(e) { | |
+ if (e === t) return this.options.defaultColor; | |
+ this.options.defaultColor = e | |
} | |
- }, a.widget("wp.wpColorPicker", c) | |
+ }, i.widget("wp.wpColorPicker", e) | |
}(jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/comment.min.js build-unminified/wp-admin/js/comment.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/comment.min.js 2018-10-05 18:05:52.566129018 -0500 | |
+++ build-unminified/wp-admin/js/comment.min.js 2018-10-05 18:05:14.297866047 -0500 | |
@@ -1,23 +1,23 @@ | |
-jQuery(document).ready(function(a) { | |
+jQuery(document).ready(function(m) { | |
postboxes.add_postbox_toggles("comment"); | |
- var b = a("#timestampdiv"), | |
- c = a("#timestamp"), | |
- d = c.html(), | |
- e = b.find(".timestamp-wrap"), | |
- f = b.siblings("a.edit-timestamp"); | |
- f.click(function(c) { | |
- b.is(":hidden") && (b.slideDown("fast", function() { | |
- a("input, select", e).first().focus() | |
- }), a(this).hide()), c.preventDefault() | |
- }), b.find(".cancel-timestamp").click(function(e) { | |
- f.show().focus(), b.slideUp("fast"), a("#mm").val(a("#hidden_mm").val()), a("#jj").val(a("#hidden_jj").val()), a("#aa").val(a("#hidden_aa").val()), a("#hh").val(a("#hidden_hh").val()), a("#mn").val(a("#hidden_mn").val()), c.html(d), e.preventDefault() | |
- }), b.find(".save-timestamp").click(function(d) { | |
- var g = a("#aa").val(), | |
- h = a("#mm").val(), | |
- i = a("#jj").val(), | |
- j = a("#hh").val(), | |
- k = a("#mn").val(), | |
- l = new Date(g, h - 1, i, j, k); | |
- return d.preventDefault(), l.getFullYear() != g || 1 + l.getMonth() != h || l.getDate() != i || l.getMinutes() != k ? void e.addClass("form-invalid") : (e.removeClass("form-invalid"), c.html(commentL10n.submittedOn + " <b>" + commentL10n.dateFormat.replace("%1$s", a('option[value="' + h + '"]', "#mm").attr("data-text")).replace("%2$s", parseInt(i, 10)).replace("%3$s", g).replace("%4$s", ("00" + j).slice(-2)).replace("%5$s", ("00" + k).slice(-2)) + "</b> "), f.show().focus(), void b.slideUp("fast")) | |
+ var d = m("#timestampdiv"), | |
+ c = m("#timestamp"), | |
+ a = c.html(), | |
+ o = d.find(".timestamp-wrap"), | |
+ v = d.siblings("a.edit-timestamp"); | |
+ v.click(function(e) { | |
+ d.is(":hidden") && (d.slideDown("fast", function() { | |
+ m("input, select", o).first().focus() | |
+ }), m(this).hide()), e.preventDefault() | |
+ }), d.find(".cancel-timestamp").click(function(e) { | |
+ v.show().focus(), d.slideUp("fast"), m("#mm").val(m("#hidden_mm").val()), m("#jj").val(m("#hidden_jj").val()), m("#aa").val(m("#hidden_aa").val()), m("#hh").val(m("#hidden_hh").val()), m("#mn").val(m("#hidden_mn").val()), c.html(a), e.preventDefault() | |
+ }), d.find(".save-timestamp").click(function(e) { | |
+ var a = m("#aa").val(), | |
+ t = m("#mm").val(), | |
+ l = m("#jj").val(), | |
+ i = m("#hh").val(), | |
+ n = m("#mn").val(), | |
+ s = new Date(a, t - 1, l, i, n); | |
+ e.preventDefault(), s.getFullYear() == a && 1 + s.getMonth() == t && s.getDate() == l && s.getMinutes() == n ? (o.removeClass("form-invalid"), c.html(commentL10n.submittedOn + " <b>" + commentL10n.dateFormat.replace("%1$s", m('option[value="' + t + '"]', "#mm").attr("data-text")).replace("%2$s", parseInt(l, 10)).replace("%3$s", a).replace("%4$s", ("00" + i).slice(-2)).replace("%5$s", ("00" + n).slice(-2)) + "</b> "), v.show().focus(), d.slideUp("fast")) : o.addClass("form-invalid") | |
}) | |
}); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/common.min.js build-unminified/wp-admin/js/common.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/common.min.js 2018-10-05 18:05:50.182112627 -0500 | |
+++ build-unminified/wp-admin/js/common.min.js 2018-10-05 18:05:12.781855635 -0500 | |
@@ -1,11 +1,8 @@ | |
var showNotice, adminMenu, columns, validateForm, screenMeta; | |
-! function(a, b, c) { | |
- function d(a) { | |
- -1 !== i.val().indexOf(a.text().trim()) ? (a.attr("data-label", a.attr("aria-label")), a.attr("aria-label", a.attr("data-used")), a.attr("aria-pressed", !0), a.addClass("active")) : a.attr("data-label") && (a.attr("aria-label", a.attr("data-label")), a.attr("aria-pressed", !1), a.removeClass("active")) | |
- } | |
- var e = a(document), | |
- f = a(b), | |
- g = a(document.body); | |
+! function(W, L, e) { | |
+ var F = W(document), | |
+ V = W(L), | |
+ q = W(document.body); | |
adminMenu = { | |
init: function() {}, | |
fold: function() {}, | |
@@ -14,411 +11,414 @@ | |
favorites: function() {} | |
}, columns = { | |
init: function() { | |
- var b = this; | |
- a(".hide-column-tog", "#adv-settings").click(function() { | |
- var c = a(this), | |
- d = c.val(); | |
- c.prop("checked") ? b.checked(d) : b.unchecked(d), columns.saveManageColumnsState() | |
+ var n = this; | |
+ W(".hide-column-tog", "#adv-settings").click(function() { | |
+ var e = W(this), | |
+ t = e.val(); | |
+ e.prop("checked") ? n.checked(t) : n.unchecked(t), columns.saveManageColumnsState() | |
}) | |
}, | |
saveManageColumnsState: function() { | |
- var b = this.hidden(); | |
- a.post(ajaxurl, { | |
+ var e = this.hidden(); | |
+ W.post(ajaxurl, { | |
action: "hidden-columns", | |
- hidden: b, | |
- screenoptionnonce: a("#screenoptionnonce").val(), | |
+ hidden: e, | |
+ screenoptionnonce: W("#screenoptionnonce").val(), | |
page: pagenow | |
}) | |
}, | |
- checked: function(b) { | |
- a(".column-" + b).removeClass("hidden"), this.colSpanChange(1) | |
+ checked: function(e) { | |
+ W(".column-" + e).removeClass("hidden"), this.colSpanChange(1) | |
}, | |
- unchecked: function(b) { | |
- a(".column-" + b).addClass("hidden"), this.colSpanChange(-1) | |
+ unchecked: function(e) { | |
+ W(".column-" + e).addClass("hidden"), this.colSpanChange(-1) | |
}, | |
hidden: function() { | |
- return a(".manage-column[id]").filter(":hidden").map(function() { | |
+ return W(".manage-column[id]").filter(":hidden").map(function() { | |
return this.id | |
}).get().join(",") | |
}, | |
useCheckboxesForHidden: function() { | |
this.hidden = function() { | |
- return a(".hide-column-tog").not(":checked").map(function() { | |
- var a = this.id; | |
- return a.substring(a, a.length - 5) | |
+ return W(".hide-column-tog").not(":checked").map(function() { | |
+ var e = this.id; | |
+ return e.substring(e, e.length - 5) | |
}).get().join(",") | |
} | |
}, | |
- colSpanChange: function(b) { | |
- var c, d = a("table").find(".colspanchange"); | |
- d.length && (c = parseInt(d.attr("colspan"), 10) + b, d.attr("colspan", c.toString())) | |
+ colSpanChange: function(e) { | |
+ var t, n = W("table").find(".colspanchange"); | |
+ n.length && (t = parseInt(n.attr("colspan"), 10) + e, n.attr("colspan", t.toString())) | |
} | |
- }, e.ready(function() { | |
+ }, F.ready(function() { | |
columns.init() | |
- }), validateForm = function(b) { | |
- return !a(b).find(".form-required").filter(function() { | |
- return "" === a(":input:visible", this).val() | |
+ }), validateForm = function(e) { | |
+ return !W(e).find(".form-required").filter(function() { | |
+ return "" === W(":input:visible", this).val() | |
}).addClass("form-invalid").find(":input:visible").change(function() { | |
- a(this).closest(".form-invalid").removeClass("form-invalid") | |
+ W(this).closest(".form-invalid").removeClass("form-invalid") | |
}).length | |
}, showNotice = { | |
warn: function() { | |
- var a = commonL10n.warnDelete || ""; | |
- return !!confirm(a) | |
+ var e = commonL10n.warnDelete || ""; | |
+ return !!confirm(e) | |
}, | |
- note: function(a) { | |
- alert(a) | |
+ note: function(e) { | |
+ alert(e) | |
} | |
}, screenMeta = { | |
element: null, | |
toggles: null, | |
page: null, | |
init: function() { | |
- this.element = a("#screen-meta"), this.toggles = a("#screen-meta-links").find(".show-settings"), this.page = a("#wpcontent"), this.toggles.click(this.toggleEvent) | |
+ this.element = W("#screen-meta"), this.toggles = W("#screen-meta-links").find(".show-settings"), this.page = W("#wpcontent"), this.toggles.click(this.toggleEvent) | |
}, | |
toggleEvent: function() { | |
- var b = a("#" + a(this).attr("aria-controls")); | |
- b.length && (b.is(":visible") ? screenMeta.close(b, a(this)) : screenMeta.open(b, a(this))) | |
+ var e = W("#" + W(this).attr("aria-controls")); | |
+ e.length && (e.is(":visible") ? screenMeta.close(e, W(this)) : screenMeta.open(e, W(this))) | |
}, | |
- open: function(b, c) { | |
- a("#screen-meta-links").find(".screen-meta-toggle").not(c.parent()).css("visibility", "hidden"), b.parent().show(), b.slideDown("fast", function() { | |
- b.focus(), c.addClass("screen-meta-active").attr("aria-expanded", !0) | |
- }), e.trigger("screen:options:open") | |
+ open: function(e, t) { | |
+ W("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility", "hidden"), e.parent().show(), e.slideDown("fast", function() { | |
+ e.focus(), t.addClass("screen-meta-active").attr("aria-expanded", !0) | |
+ }), F.trigger("screen:options:open") | |
}, | |
- close: function(b, c) { | |
- b.slideUp("fast", function() { | |
- c.removeClass("screen-meta-active").attr("aria-expanded", !1), a(".screen-meta-toggle").css("visibility", ""), b.parent().hide() | |
- }), e.trigger("screen:options:close") | |
+ close: function(e, t) { | |
+ e.slideUp("fast", function() { | |
+ t.removeClass("screen-meta-active").attr("aria-expanded", !1), W(".screen-meta-toggle").css("visibility", ""), e.parent().hide() | |
+ }), F.trigger("screen:options:close") | |
} | |
- }, a(".contextual-help-tabs").delegate("a", "click", function(b) { | |
- var c, d = a(this); | |
- return b.preventDefault(), !d.is(".active a") && (a(".contextual-help-tabs .active").removeClass("active"), d.parent("li").addClass("active"), c = a(d.attr("href")), a(".help-tab-content").not(c).removeClass("active").hide(), void c.addClass("active").show()) | |
+ }, W(".contextual-help-tabs").delegate("a", "click", function(e) { | |
+ var t, n = W(this); | |
+ if (e.preventDefault(), n.is(".active a")) return !1; | |
+ W(".contextual-help-tabs .active").removeClass("active"), n.parent("li").addClass("active"), t = W(n.attr("href")), W(".help-tab-content").not(t).removeClass("active").hide(), t.addClass("active").show() | |
}); | |
- var h = !1, | |
- i = a("#permalink_structure"), | |
- j = a(".permalink-structure input:radio"), | |
- k = a("#custom_selection"), | |
- l = a(".form-table.permalink-structure .available-structure-tags button"); | |
- j.on("change", function() { | |
- "custom" !== this.value && (i.val(this.value), l.each(function() { | |
- d(a(this)) | |
+ var a = !1, | |
+ r = W("#permalink_structure"), | |
+ t = W(".permalink-structure input:radio"), | |
+ c = W("#custom_selection"), | |
+ n = W(".form-table.permalink-structure .available-structure-tags button"); | |
+ | |
+ function l(e) { | |
+ -1 !== r.val().indexOf(e.text().trim()) ? (e.attr("data-label", e.attr("aria-label")), e.attr("aria-label", e.attr("data-used")), e.attr("aria-pressed", !0), e.addClass("active")) : e.attr("data-label") && (e.attr("aria-label", e.attr("data-label")), e.attr("aria-pressed", !1), e.removeClass("active")) | |
+ } | |
+ t.on("change", function() { | |
+ "custom" !== this.value && (r.val(this.value), n.each(function() { | |
+ l(W(this)) | |
})) | |
- }), i.on("click input", function() { | |
- k.prop("checked", !0) | |
- }), i.on("focus", function(b) { | |
- h = !0, a(this).off(b) | |
- }), l.each(function() { | |
- d(a(this)) | |
- }), i.on("change", function() { | |
- l.each(function() { | |
- d(a(this)) | |
+ }), r.on("click input", function() { | |
+ c.prop("checked", !0) | |
+ }), r.on("focus", function(e) { | |
+ a = !0, W(this).off(e) | |
+ }), n.each(function() { | |
+ l(W(this)) | |
+ }), r.on("change", function() { | |
+ n.each(function() { | |
+ l(W(this)) | |
}) | |
- }), l.on("click", function() { | |
- var b, c = i.val(), | |
- e = i[0].selectionStart, | |
- f = i[0].selectionEnd, | |
- g = a(this).text().trim(), | |
- j = a(this).attr("data-added"); | |
- return -1 !== c.indexOf(g) ? (c = c.replace(g + "/", ""), i.val("/" === c ? "" : c), a("#custom_selection_updated").text(j), void d(a(this))) : (h || 0 !== e || 0 !== f || (e = f = c.length), k.prop("checked", !0), "/" !== c.substr(0, e).substr(-1) && (g = "/" + g), "/" !== c.substr(f, 1) && (g += "/"), i.val(c.substr(0, e) + g + c.substr(f)), a("#custom_selection_updated").text(j), d(a(this)), void(h && i[0].setSelectionRange && (b = (c.substr(0, e) + g).length, i[0].setSelectionRange(b, b), i.focus()))) | |
- }), e.ready(function() { | |
- function c() { | |
- var b = a("a.wp-has-current-submenu"); | |
- "folded" === x ? b.attr("aria-haspopup", "true") : b.attr("aria-haspopup", "false") | |
- } | |
- | |
- function d(a) { | |
- var b, c, d, e, g, h, i, j = a.find(".wp-submenu"); | |
- g = a.offset().top, h = f.scrollTop(), i = g - h - 30, b = g + j.height() + 1, c = F.height(), d = 60 + b - c, e = f.height() + h - 50, e < b - d && (d = b - e), d > i && (d = i), d > 1 ? j.css("margin-top", "-" + d + "px") : j.css("margin-top", "") | |
- } | |
- | |
- function h() { | |
- a(".notice.is-dismissible").each(function() { | |
- var b = a(this), | |
- c = a('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>'), | |
- d = commonL10n.dismiss || ""; | |
- c.find(".screen-reader-text").text(d), c.on("click.wp-dismiss-notice", function(a) { | |
- a.preventDefault(), b.fadeTo(100, 0, function() { | |
- b.slideUp(100, function() { | |
- b.remove() | |
+ }), n.on("click", function() { | |
+ var e, t = r.val(), | |
+ n = r[0].selectionStart, | |
+ i = r[0].selectionEnd, | |
+ o = W(this).text().trim(), | |
+ s = W(this).attr("data-added"); | |
+ if (-1 !== t.indexOf(o)) return t = t.replace(o + "/", ""), r.val("/" === t ? "" : t), W("#custom_selection_updated").text(s), void l(W(this)); | |
+ a || 0 !== n || 0 !== i || (n = i = t.length), c.prop("checked", !0), "/" !== t.substr(0, n).substr(-1) && (o = "/" + o), "/" !== t.substr(i, 1) && (o += "/"), r.val(t.substr(0, n) + o + t.substr(i)), W("#custom_selection_updated").text(s), l(W(this)), a && r[0].setSelectionRange && (e = (t.substr(0, n) + o).length, r[0].setSelectionRange(e, e), r.focus()) | |
+ }), F.ready(function() { | |
+ var n, i, o, s, e, t, a, r, c = !1, | |
+ l = W("input.current-page"), | |
+ u = l.val(), | |
+ d = /iPhone|iPad|iPod/.test(navigator.userAgent), | |
+ p = -1 !== navigator.userAgent.indexOf("Android"), | |
+ f = W(document.documentElement).hasClass("ie8"), | |
+ h = W("#adminmenuwrap"), | |
+ m = W("#wpwrap"), | |
+ v = W("#adminmenu"), | |
+ b = W("#wp-responsive-overlay"), | |
+ g = W("#wp-toolbar"), | |
+ w = g.find('a[aria-haspopup="true"]'), | |
+ k = W(".meta-box-sortables"), | |
+ C = !1, | |
+ x = W("#wpadminbar"), | |
+ y = 0, | |
+ S = !1, | |
+ M = !1, | |
+ E = 0, | |
+ T = !1, | |
+ D = { | |
+ window: V.height(), | |
+ wpwrap: m.height(), | |
+ adminbar: x.height(), | |
+ menu: h.height() | |
+ }, | |
+ A = W(".wp-header-end"); | |
+ | |
+ function j() { | |
+ var e = W("a.wp-has-current-submenu"); | |
+ "folded" === r ? e.attr("aria-haspopup", "true") : e.attr("aria-haspopup", "false") | |
+ } | |
+ | |
+ function _(e) { | |
+ var t, n, i, o, s, a, r = e.find(".wp-submenu"); | |
+ a = (o = e.offset().top) - (s = V.scrollTop()) - 30, n = 60 + (t = o + r.height() + 1) - m.height(), (i = V.height() + s - 50) < t - n && (n = t - i), a < n && (n = a), 1 < n ? r.css("margin-top", "-" + n + "px") : r.css("margin-top", "") | |
+ } | |
+ | |
+ function I() { | |
+ W(".notice.is-dismissible").each(function() { | |
+ var t = W(this), | |
+ e = W('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>'), | |
+ n = commonL10n.dismiss || ""; | |
+ e.find(".screen-reader-text").text(n), e.on("click.wp-dismiss-notice", function(e) { | |
+ e.preventDefault(), t.fadeTo(100, 0, function() { | |
+ t.slideUp(100, function() { | |
+ t.remove() | |
}) | |
}) | |
- }), b.append(c) | |
+ }), t.append(e) | |
}) | |
} | |
- function i(a) { | |
- var b = f.scrollTop(), | |
- c = !a || "scroll" !== a.type; | |
- if (!(B || D || G.data("wp-responsive"))) { | |
- if (S.menu + S.adminbar < S.window || S.menu + S.adminbar + 20 > S.wpwrap) return void k(); | |
- if (R = !0, S.menu + S.adminbar > S.window) { | |
- if (b < 0) return void(O || (O = !0, P = !1, E.css({ | |
- position: "fixed", | |
- top: "", | |
- bottom: "" | |
- }))); | |
- if (b + S.window > e.height() - 1) return void(P || (P = !0, O = !1, E.css({ | |
- position: "fixed", | |
- top: "", | |
- bottom: 0 | |
- }))); | |
- b > N ? O ? (O = !1, Q = E.offset().top - S.adminbar - (b - N), Q + S.menu + S.adminbar < b + S.window && (Q = b + S.window - S.menu - S.adminbar), E.css({ | |
- position: "absolute", | |
- top: Q, | |
- bottom: "" | |
- })) : !P && E.offset().top + S.menu < b + S.window && (P = !0, E.css({ | |
- position: "fixed", | |
- top: "", | |
- bottom: 0 | |
- })) : b < N ? P ? (P = !1, Q = E.offset().top - S.adminbar + (N - b), Q + S.menu > b + S.window && (Q = b), E.css({ | |
- position: "absolute", | |
- top: Q, | |
- bottom: "" | |
- })) : !O && E.offset().top >= b + S.adminbar && (O = !0, E.css({ | |
- position: "fixed", | |
- top: "", | |
- bottom: "" | |
- })) : c && (O = P = !1, Q = b + S.window - S.menu - S.adminbar - 1, Q > 0 ? E.css({ | |
- position: "absolute", | |
- top: Q, | |
- bottom: "" | |
- }) : k()) | |
+ function O(e) { | |
+ var t = V.scrollTop(), | |
+ n = !e || "scroll" !== e.type; | |
+ if (!(d || f || v.data("wp-responsive"))) | |
+ if (D.menu + D.adminbar < D.window || D.menu + D.adminbar + 20 > D.wpwrap) K(); | |
+ else { | |
+ if (T = !0, D.menu + D.adminbar > D.window) { | |
+ if (t < 0) return void(S || (M = !(S = !0), h.css({ | |
+ position: "fixed", | |
+ top: "", | |
+ bottom: "" | |
+ }))); | |
+ if (t + D.window > F.height() - 1) return void(M || (S = !(M = !0), h.css({ | |
+ position: "fixed", | |
+ top: "", | |
+ bottom: 0 | |
+ }))); | |
+ y < t ? S ? (S = !1, (E = h.offset().top - D.adminbar - (t - y)) + D.menu + D.adminbar < t + D.window && (E = t + D.window - D.menu - D.adminbar), h.css({ | |
+ position: "absolute", | |
+ top: E, | |
+ bottom: "" | |
+ })) : !M && h.offset().top + D.menu < t + D.window && (M = !0, h.css({ | |
+ position: "fixed", | |
+ top: "", | |
+ bottom: 0 | |
+ })) : t < y ? M ? (M = !1, (E = h.offset().top - D.adminbar + (y - t)) + D.menu > t + D.window && (E = t), h.css({ | |
+ position: "absolute", | |
+ top: E, | |
+ bottom: "" | |
+ })) : !S && h.offset().top >= t + D.adminbar && (S = !0, h.css({ | |
+ position: "fixed", | |
+ top: "", | |
+ bottom: "" | |
+ })) : n && (S = M = !1, 0 < (E = t + D.window - D.menu - D.adminbar - 1) ? h.css({ | |
+ position: "absolute", | |
+ top: E, | |
+ bottom: "" | |
+ }) : K()) | |
+ } | |
+ y = t | |
} | |
- N = b | |
- } | |
} | |
- function j() { | |
- S = { | |
- window: f.height(), | |
- wpwrap: F.height(), | |
- adminbar: M.height(), | |
- menu: E.height() | |
+ function U() { | |
+ D = { | |
+ window: V.height(), | |
+ wpwrap: m.height(), | |
+ adminbar: x.height(), | |
+ menu: h.height() | |
} | |
} | |
- function k() { | |
- !B && R && (O = P = R = !1, E.css({ | |
+ function K() { | |
+ !d && T && (S = M = T = !1, h.css({ | |
position: "", | |
top: "", | |
bottom: "" | |
})) | |
} | |
- function l() { | |
- j(), G.data("wp-responsive") ? (g.removeClass("sticky-menu"), k()) : S.menu + S.adminbar > S.window ? (i(), g.removeClass("sticky-menu")) : (g.addClass("sticky-menu"), k()) | |
+ function z() { | |
+ U(), v.data("wp-responsive") ? (q.removeClass("sticky-menu"), K()) : D.menu + D.adminbar > D.window ? (O(), q.removeClass("sticky-menu")) : (q.addClass("sticky-menu"), K()) | |
} | |
- function m() { | |
- a(".aria-button-if-js").attr("role", "button") | |
+ function N() { | |
+ W(".aria-button-if-js").attr("role", "button") | |
} | |
- function n() { | |
- var a = !1; | |
- return b.innerWidth && (a = Math.max(b.innerWidth, document.documentElement.clientWidth)), a | |
+ function P() { | |
+ var e = !1; | |
+ return L.innerWidth && (e = Math.max(L.innerWidth, document.documentElement.clientWidth)), e | |
} | |
- function o() { | |
- var a = n() || 961; | |
- x = a <= 782 ? "responsive" : g.hasClass("folded") || g.hasClass("auto-fold") && a <= 960 && a > 782 ? "folded" : "open", e.trigger("wp-menu-state-set", { | |
- state: x | |
+ function R() { | |
+ var e = P() || 961; | |
+ r = e <= 782 ? "responsive" : q.hasClass("folded") || q.hasClass("auto-fold") && e <= 960 && 782 < e ? "folded" : "open", F.trigger("wp-menu-state-set", { | |
+ state: r | |
}) | |
} | |
- var p, q, r, s, t, u, v, w, x, y = !1, | |
- z = a("input.current-page"), | |
- A = z.val(), | |
- B = /iPhone|iPad|iPod/.test(navigator.userAgent), | |
- C = navigator.userAgent.indexOf("Android") !== -1, | |
- D = a(document.documentElement).hasClass("ie8"), | |
- E = a("#adminmenuwrap"), | |
- F = a("#wpwrap"), | |
- G = a("#adminmenu"), | |
- H = a("#wp-responsive-overlay"), | |
- I = a("#wp-toolbar"), | |
- J = I.find('a[aria-haspopup="true"]'), | |
- K = a(".meta-box-sortables"), | |
- L = !1, | |
- M = a("#wpadminbar"), | |
- N = 0, | |
- O = !1, | |
- P = !1, | |
- Q = 0, | |
- R = !1, | |
- S = { | |
- window: f.height(), | |
- wpwrap: F.height(), | |
- adminbar: M.height(), | |
- menu: E.height() | |
- }, | |
- T = a(".wp-header-end"); | |
- G.on("click.wp-submenu-head", ".wp-submenu-head", function(b) { | |
- a(b.target).parent().siblings("a").get(0).click() | |
- }), a("#collapse-button").on("click.collapse-menu", function() { | |
- var b = n() || 961; | |
- a("#adminmenu div.wp-submenu").css("margin-top", ""), b < 960 ? g.hasClass("auto-fold") ? (g.removeClass("auto-fold").removeClass("folded"), setUserSetting("unfold", 1), setUserSetting("mfold", "o"), x = "open") : (g.addClass("auto-fold"), setUserSetting("unfold", 0), x = "folded") : g.hasClass("folded") ? (g.removeClass("folded"), setUserSetting("mfold", "o"), x = "open") : (g.addClass("folded"), setUserSetting("mfold", "f"), x = "folded"), e.trigger("wp-collapse-menu", { | |
- state: x | |
+ v.on("click.wp-submenu-head", ".wp-submenu-head", function(e) { | |
+ W(e.target).parent().siblings("a").get(0).click() | |
+ }), W("#collapse-button").on("click.collapse-menu", function() { | |
+ var e = P() || 961; | |
+ W("#adminmenu div.wp-submenu").css("margin-top", ""), r = e < 960 ? q.hasClass("auto-fold") ? (q.removeClass("auto-fold").removeClass("folded"), setUserSetting("unfold", 1), setUserSetting("mfold", "o"), "open") : (q.addClass("auto-fold"), setUserSetting("unfold", 0), "folded") : q.hasClass("folded") ? (q.removeClass("folded"), setUserSetting("mfold", "o"), "open") : (q.addClass("folded"), setUserSetting("mfold", "f"), "folded"), F.trigger("wp-collapse-menu", { | |
+ state: r | |
}) | |
- }), e.on("wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate", c), ("ontouchstart" in b || /IEMobile\/[1-9]/.test(navigator.userAgent)) && (u = B ? "touchstart" : "click", g.on(u + ".wp-mobile-hover", function(b) { | |
- G.data("wp-responsive") || a(b.target).closest("#adminmenu").length || G.find("li.opensub").removeClass("opensub") | |
- }), G.find("a.wp-has-submenu").on(u + ".wp-mobile-hover", function(b) { | |
- var c = a(this).parent(); | |
- G.data("wp-responsive") || c.hasClass("opensub") || c.hasClass("wp-menu-open") && !(c.width() < 40) || (b.preventDefault(), d(c), G.find("li.opensub").removeClass("opensub"), c.addClass("opensub")) | |
- })), B || C || (G.find("li.wp-has-submenu").hoverIntent({ | |
+ }), F.on("wp-menu-state-set wp-collapse-menu wp-responsive-activate wp-responsive-deactivate", j), ("ontouchstart" in L || /IEMobile\/[1-9]/.test(navigator.userAgent)) && (e = d ? "touchstart" : "click", q.on(e + ".wp-mobile-hover", function(e) { | |
+ v.data("wp-responsive") || W(e.target).closest("#adminmenu").length || v.find("li.opensub").removeClass("opensub") | |
+ }), v.find("a.wp-has-submenu").on(e + ".wp-mobile-hover", function(e) { | |
+ var t = W(this).parent(); | |
+ v.data("wp-responsive") || t.hasClass("opensub") || t.hasClass("wp-menu-open") && !(t.width() < 40) || (e.preventDefault(), _(t), v.find("li.opensub").removeClass("opensub"), t.addClass("opensub")) | |
+ })), d || p || (v.find("li.wp-has-submenu").hoverIntent({ | |
over: function() { | |
- var b = a(this), | |
- c = b.find(".wp-submenu"), | |
- e = parseInt(c.css("top"), 10); | |
- isNaN(e) || e > -5 || G.data("wp-responsive") || (d(b), G.find("li.opensub").removeClass("opensub"), b.addClass("opensub")) | |
+ var e = W(this), | |
+ t = e.find(".wp-submenu"), | |
+ n = parseInt(t.css("top"), 10); | |
+ isNaN(n) || -5 < n || v.data("wp-responsive") || (_(e), v.find("li.opensub").removeClass("opensub"), e.addClass("opensub")) | |
}, | |
out: function() { | |
- G.data("wp-responsive") || a(this).removeClass("opensub").find(".wp-submenu").css("margin-top", "") | |
+ v.data("wp-responsive") || W(this).removeClass("opensub").find(".wp-submenu").css("margin-top", "") | |
}, | |
timeout: 200, | |
sensitivity: 7, | |
interval: 90 | |
- }), G.on("focus.adminmenu", ".wp-submenu a", function(b) { | |
- G.data("wp-responsive") || a(b.target).closest("li.menu-top").addClass("opensub") | |
- }).on("blur.adminmenu", ".wp-submenu a", function(b) { | |
- G.data("wp-responsive") || a(b.target).closest("li.menu-top").removeClass("opensub") | |
+ }), v.on("focus.adminmenu", ".wp-submenu a", function(e) { | |
+ v.data("wp-responsive") || W(e.target).closest("li.menu-top").addClass("opensub") | |
+ }).on("blur.adminmenu", ".wp-submenu a", function(e) { | |
+ v.data("wp-responsive") || W(e.target).closest("li.menu-top").removeClass("opensub") | |
}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu", function() { | |
- d(a(this)) | |
- })), T.length || (T = a(".wrap h1, .wrap h2").first()), a("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(T), e.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error", h), screenMeta.init(), g.on("click", "tbody > tr > .check-column :checkbox", function(b) { | |
- if ("undefined" == b.shiftKey) return !0; | |
- if (b.shiftKey) { | |
- if (!y) return !0; | |
- p = a(y).closest("form").find(":checkbox").filter(":visible:enabled"), q = p.index(y), r = p.index(this), s = a(this).prop("checked"), 0 < q && 0 < r && q != r && (t = r > q ? p.slice(q, r) : p.slice(r, q), t.prop("checked", function() { | |
- return !!a(this).closest("tr").is(":visible") && s | |
- })) | |
+ _(W(this)) | |
+ })), A.length || (A = W(".wrap h1, .wrap h2").first()), W("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(A), F.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error", I), screenMeta.init(), q.on("click", "tbody > tr > .check-column :checkbox", function(e) { | |
+ if ("undefined" == e.shiftKey) return !0; | |
+ if (e.shiftKey) { | |
+ if (!c) return !0; | |
+ n = W(c).closest("form").find(":checkbox").filter(":visible:enabled"), i = n.index(c), o = n.index(this), s = W(this).prop("checked"), 0 < i && 0 < o && i != o && (i < o ? n.slice(i, o) : n.slice(o, i)).prop("checked", function() { | |
+ return !!W(this).closest("tr").is(":visible") && s | |
+ }) | |
} | |
- y = this; | |
- var c = a(this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked"); | |
- return a(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked", function() { | |
- return 0 === c.length | |
+ var t = W(c = this).closest("tbody").find(":checkbox").filter(":visible:enabled").not(":checked"); | |
+ return W(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked", function() { | |
+ return 0 === t.length | |
}), !0 | |
- }), g.on("click.wp-toggle-checkboxes", "thead .check-column :checkbox, tfoot .check-column :checkbox", function(b) { | |
- var c = a(this), | |
- d = c.closest("table"), | |
- e = c.prop("checked"), | |
- f = b.shiftKey || c.data("wp-toggle"); | |
- d.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function() { | |
- return !a(this).is(":hidden,:disabled") && (f ? !a(this).prop("checked") : !!e) | |
- }), d.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function() { | |
- return !f && !!e | |
+ }), q.on("click.wp-toggle-checkboxes", "thead .check-column :checkbox, tfoot .check-column :checkbox", function(e) { | |
+ var t = W(this), | |
+ n = t.closest("table"), | |
+ i = t.prop("checked"), | |
+ o = e.shiftKey || t.data("wp-toggle"); | |
+ n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function() { | |
+ return !W(this).is(":hidden,:disabled") && (o ? !W(this).prop("checked") : !!i) | |
+ }), n.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function() { | |
+ return !o && !!i | |
}) | |
- }), a("#wpbody-content").on({ | |
+ }), W("#wpbody-content").on({ | |
focusin: function() { | |
- clearTimeout(v), w = a(this).find(".row-actions"), a(".row-actions").not(this).removeClass("visible"), w.addClass("visible") | |
+ clearTimeout(t), a = W(this).find(".row-actions"), W(".row-actions").not(this).removeClass("visible"), a.addClass("visible") | |
}, | |
focusout: function() { | |
- v = setTimeout(function() { | |
- w.removeClass("visible") | |
+ t = setTimeout(function() { | |
+ a.removeClass("visible") | |
}, 30) | |
} | |
- }, ".has-row-actions"), a("tbody").on("click", ".toggle-row", function() { | |
- a(this).closest("tr").toggleClass("is-expanded") | |
- }), a("#default-password-nag-no").click(function() { | |
- return setUserSetting("default_password_nag", "hide"), a("div.default-password-nag").hide(), !1 | |
- }), a("#newcontent").bind("keydown.wpevent_InsertTab", function(b) { | |
- var c, d, e, f, g, h = b.target; | |
- if (27 == b.keyCode) return b.preventDefault(), void a(h).data("tab-out", !0); | |
- if (!(9 != b.keyCode || b.ctrlKey || b.altKey || b.shiftKey)) { | |
- if (a(h).data("tab-out")) return void a(h).data("tab-out", !1); | |
- c = h.selectionStart, d = h.selectionEnd, e = h.value, document.selection ? (h.focus(), g = document.selection.createRange(), g.text = "\t") : c >= 0 && (f = this.scrollTop, h.value = e.substring(0, c).concat("\t", e.substring(d)), h.selectionStart = h.selectionEnd = c + 1, this.scrollTop = f), b.stopPropagation && b.stopPropagation(), b.preventDefault && b.preventDefault() | |
- } | |
- }), z.length && z.closest("form").submit(function() { | |
- a('select[name="action"]').val() == -1 && a('select[name="action2"]').val() == -1 && z.val() == A && z.val("1") | |
- }), a('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function() { | |
- a('select[name^="action"]').val("-1") | |
- }), a("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view", function(a) { | |
- a.target.scrollIntoView && a.target.scrollIntoView(!1) | |
+ }, ".has-row-actions"), W("tbody").on("click", ".toggle-row", function() { | |
+ W(this).closest("tr").toggleClass("is-expanded") | |
+ }), W("#default-password-nag-no").click(function() { | |
+ return setUserSetting("default_password_nag", "hide"), W("div.default-password-nag").hide(), !1 | |
+ }), W("#newcontent").bind("keydown.wpevent_InsertTab", function(e) { | |
+ var t, n, i, o, s = e.target; | |
+ if (27 == e.keyCode) return e.preventDefault(), void W(s).data("tab-out", !0); | |
+ 9 != e.keyCode || e.ctrlKey || e.altKey || e.shiftKey || (W(s).data("tab-out") ? W(s).data("tab-out", !1) : (t = s.selectionStart, n = s.selectionEnd, i = s.value, document.selection ? (s.focus(), document.selection.createRange().text = "\t") : 0 <= t && (o = this.scrollTop, s.value = i.substring(0, t).concat("\t", i.substring(n)), s.selectionStart = s.selectionEnd = t + 1, this.scrollTop = o), e.stopPropagation && e.stopPropagation(), e.preventDefault && e.preventDefault())) | |
+ }), l.length && l.closest("form").submit(function() { | |
+ -1 == W('select[name="action"]').val() && -1 == W('select[name="action2"]').val() && l.val() == u && l.val("1") | |
+ }), W('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function() { | |
+ W('select[name^="action"]').val("-1") | |
+ }), W("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view", function(e) { | |
+ e.target.scrollIntoView && e.target.scrollIntoView(!1) | |
}), | |
function() { | |
- function b() { | |
- c.prop("disabled", "" === d.map(function() { | |
- return a(this).val() | |
+ var e, t, n = W("form.wp-upload-form"); | |
+ | |
+ function i() { | |
+ e.prop("disabled", "" === t.map(function() { | |
+ return W(this).val() | |
}).get().join("")) | |
} | |
- var c, d, e = a("form.wp-upload-form"); | |
- e.length && (c = e.find('input[type="submit"]'), d = e.find('input[type="file"]'), b(), d.on("change", b)) | |
- }(), B || (f.on("scroll.pin-menu", i), e.on("tinymce-editor-init.pin-menu", function(a, b) { | |
- b.on("wp-autoresize", j) | |
- })), b.wpResponsive = { | |
+ n.length && (e = n.find('input[type="submit"]'), t = n.find('input[type="file"]'), i(), t.on("change", i)) | |
+ }(), d || (V.on("scroll.pin-menu", O), F.on("tinymce-editor-init.pin-menu", function(e, t) { | |
+ t.on("wp-autoresize", U) | |
+ })), L.wpResponsive = { | |
init: function() { | |
- var c = this; | |
- e.on("wp-responsive-activate.wp-responsive", function() { | |
- c.activate() | |
+ var e = this; | |
+ F.on("wp-responsive-activate.wp-responsive", function() { | |
+ e.activate() | |
}).on("wp-responsive-deactivate.wp-responsive", function() { | |
- c.deactivate() | |
- }), a("#wp-admin-bar-menu-toggle a").attr("aria-expanded", "false"), a("#wp-admin-bar-menu-toggle").on("click.wp-responsive", function(b) { | |
- b.preventDefault(), M.find(".hover").removeClass("hover"), F.toggleClass("wp-responsive-open"), F.hasClass("wp-responsive-open") ? (a(this).find("a").attr("aria-expanded", "true"), a("#adminmenu a:first").focus()) : a(this).find("a").attr("aria-expanded", "false") | |
- }), G.on("click.wp-responsive", "li.wp-has-submenu > a", function(b) { | |
- G.data("wp-responsive") && (a(this).parent("li").toggleClass("selected"), b.preventDefault()) | |
- }), c.trigger(), e.on("wp-window-resized.wp-responsive", a.proxy(this.trigger, this)), f.on("load.wp-responsive", function() { | |
- var a = navigator.userAgent.indexOf("AppleWebKit/") > -1 ? f.width() : b.innerWidth; | |
- a <= 782 && c.disableSortables() | |
+ e.deactivate() | |
+ }), W("#wp-admin-bar-menu-toggle a").attr("aria-expanded", "false"), W("#wp-admin-bar-menu-toggle").on("click.wp-responsive", function(e) { | |
+ e.preventDefault(), x.find(".hover").removeClass("hover"), m.toggleClass("wp-responsive-open"), m.hasClass("wp-responsive-open") ? (W(this).find("a").attr("aria-expanded", "true"), W("#adminmenu a:first").focus()) : W(this).find("a").attr("aria-expanded", "false") | |
+ }), v.on("click.wp-responsive", "li.wp-has-submenu > a", function(e) { | |
+ v.data("wp-responsive") && (W(this).parent("li").toggleClass("selected"), e.preventDefault()) | |
+ }), e.trigger(), F.on("wp-window-resized.wp-responsive", W.proxy(this.trigger, this)), V.on("load.wp-responsive", function() { | |
+ (-1 < navigator.userAgent.indexOf("AppleWebKit/") ? V.width() : L.innerWidth) <= 782 && e.disableSortables() | |
}) | |
}, | |
activate: function() { | |
- l(), g.hasClass("auto-fold") || g.addClass("auto-fold"), G.data("wp-responsive", 1), this.disableSortables() | |
+ z(), q.hasClass("auto-fold") || q.addClass("auto-fold"), v.data("wp-responsive", 1), this.disableSortables() | |
}, | |
deactivate: function() { | |
- l(), G.removeData("wp-responsive"), this.enableSortables() | |
+ z(), v.removeData("wp-responsive"), this.enableSortables() | |
}, | |
trigger: function() { | |
- var a = n(); | |
- a && (a <= 782 ? L || (e.trigger("wp-responsive-activate"), L = !0) : L && (e.trigger("wp-responsive-deactivate"), L = !1), a <= 480 ? this.enableOverlay() : this.disableOverlay()) | |
+ var e = P(); | |
+ e && (e <= 782 ? C || (F.trigger("wp-responsive-activate"), C = !0) : C && (F.trigger("wp-responsive-deactivate"), C = !1), e <= 480 ? this.enableOverlay() : this.disableOverlay()) | |
}, | |
enableOverlay: function() { | |
- 0 === H.length && (H = a('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive", function() { | |
- I.find(".menupop.hover").removeClass("hover"), a(this).hide() | |
- })), J.on("click.wp-responsive", function() { | |
- H.show() | |
+ 0 === b.length && (b = W('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive", function() { | |
+ g.find(".menupop.hover").removeClass("hover"), W(this).hide() | |
+ })), w.on("click.wp-responsive", function() { | |
+ b.show() | |
}) | |
}, | |
disableOverlay: function() { | |
- J.off("click.wp-responsive"), H.hide() | |
+ w.off("click.wp-responsive"), b.hide() | |
}, | |
disableSortables: function() { | |
- if (K.length) try { | |
- K.sortable("disable") | |
- } catch (a) {} | |
+ if (k.length) try { | |
+ k.sortable("disable") | |
+ } catch (e) {} | |
}, | |
enableSortables: function() { | |
- if (K.length) try { | |
- K.sortable("enable") | |
- } catch (a) {} | |
+ if (k.length) try { | |
+ k.sortable("enable") | |
+ } catch (e) {} | |
} | |
- }, a(document).ajaxComplete(function() { | |
- m() | |
- }), e.on("wp-window-resized.set-menu-state", o), e.on("wp-menu-state-set wp-collapse-menu", function(b, c) { | |
- var d = a("#collapse-button"), | |
- e = "true", | |
- f = commonL10n.collapseMenu; | |
- "folded" === c.state && (e = "false", f = commonL10n.expandMenu), d.attr({ | |
- "aria-expanded": e, | |
- "aria-label": f | |
+ }, W(document).ajaxComplete(function() { | |
+ N() | |
+ }), F.on("wp-window-resized.set-menu-state", R), F.on("wp-menu-state-set wp-collapse-menu", function(e, t) { | |
+ var n = W("#collapse-button"), | |
+ i = "true", | |
+ o = commonL10n.collapseMenu; | |
+ "folded" === t.state && (i = "false", o = commonL10n.expandMenu), n.attr({ | |
+ "aria-expanded": i, | |
+ "aria-label": o | |
}) | |
- }), b.wpResponsive.init(), l(), o(), c(), h(), m(), e.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu", l), a(".wp-initial-focus").focus(), g.on("click", ".js-update-details-toggle", function() { | |
- var b = a(this).closest(".js-update-details"), | |
- c = a("#" + b.data("update-details")); | |
- c.hasClass("update-details-moved") || c.insertAfter(b).addClass("update-details-moved"), c.toggle(), a(this).attr("aria-expanded", c.is(":visible")) | |
+ }), L.wpResponsive.init(), z(), R(), j(), I(), N(), F.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu", z), W(".wp-initial-focus").focus(), q.on("click", ".js-update-details-toggle", function() { | |
+ var e = W(this).closest(".js-update-details"), | |
+ t = W("#" + e.data("update-details")); | |
+ t.hasClass("update-details-moved") || t.insertAfter(e).addClass("update-details-moved"), t.toggle(), W(this).attr("aria-expanded", t.is(":visible")) | |
}) | |
}), | |
function() { | |
- function a() { | |
- e.trigger("wp-window-resized") | |
- } | |
+ var e; | |
- function c() { | |
- b.clearTimeout(d), d = b.setTimeout(a, 200) | |
+ function t() { | |
+ F.trigger("wp-window-resized") | |
} | |
- var d; | |
- f.on("resize.wp-fire-once", c) | |
+ V.on("resize.wp-fire-once", function() { | |
+ L.clearTimeout(e), e = L.setTimeout(t, 200) | |
+ }) | |
}(), | |
function() { | |
if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) { | |
- var a = document.createElement("style"); | |
- a.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")), document.getElementsByTagName("head")[0].appendChild(a) | |
+ var e = document.createElement("style"); | |
+ e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")), document.getElementsByTagName("head")[0].appendChild(e) | |
} | |
}() | |
}(jQuery, window); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/custom-background.min.js build-unminified/wp-admin/js/custom-background.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/custom-background.min.js 2018-10-05 18:05:55.286147721 -0500 | |
+++ build-unminified/wp-admin/js/custom-background.min.js 2018-10-05 18:05:15.889876981 -0500 | |
@@ -1,42 +1,42 @@ | |
-! function(a) { | |
- a(document).ready(function() { | |
- var b, c = a("#custom-background-image"); | |
- a("#background-color").wpColorPicker({ | |
- change: function(a, b) { | |
- c.css("background-color", b.color.toString()) | |
+! function(e) { | |
+ e(document).ready(function() { | |
+ var o, t = e("#custom-background-image"); | |
+ e("#background-color").wpColorPicker({ | |
+ change: function(n, c) { | |
+ t.css("background-color", c.color.toString()) | |
}, | |
clear: function() { | |
- c.css("background-color", "") | |
+ t.css("background-color", "") | |
} | |
- }), a('select[name="background-size"]').change(function() { | |
- c.css("background-size", a(this).val()) | |
- }), a('input[name="background-position"]').change(function() { | |
- c.css("background-position", a(this).val()) | |
- }), a('input[name="background-repeat"]').change(function() { | |
- c.css("background-repeat", a(this).is(":checked") ? "repeat" : "no-repeat") | |
- }), a('input[name="background-attachment"]').change(function() { | |
- c.css("background-attachment", a(this).is(":checked") ? "scroll" : "fixed") | |
- }), a("#choose-from-library-link").click(function(c) { | |
- var d = a(this); | |
- return c.preventDefault(), b ? void b.open() : (b = wp.media.frames.customBackground = wp.media({ | |
- title: d.data("choose"), | |
+ }), e('select[name="background-size"]').change(function() { | |
+ t.css("background-size", e(this).val()) | |
+ }), e('input[name="background-position"]').change(function() { | |
+ t.css("background-position", e(this).val()) | |
+ }), e('input[name="background-repeat"]').change(function() { | |
+ t.css("background-repeat", e(this).is(":checked") ? "repeat" : "no-repeat") | |
+ }), e('input[name="background-attachment"]').change(function() { | |
+ t.css("background-attachment", e(this).is(":checked") ? "scroll" : "fixed") | |
+ }), e("#choose-from-library-link").click(function(n) { | |
+ var c = e(this); | |
+ n.preventDefault(), o || (o = wp.media.frames.customBackground = wp.media({ | |
+ title: c.data("choose"), | |
library: { | |
type: "image" | |
}, | |
button: { | |
- text: d.data("update"), | |
+ text: c.data("update"), | |
close: !1 | |
} | |
- }), b.on("select", function() { | |
- var c = b.state().get("selection").first(); | |
- a.post(ajaxurl, { | |
+ })).on("select", function() { | |
+ var n = o.state().get("selection").first(); | |
+ e.post(ajaxurl, { | |
action: "set-background-image", | |
- attachment_id: c.id, | |
+ attachment_id: n.id, | |
size: "full" | |
}).done(function() { | |
window.location.reload() | |
}) | |
- }), void b.open()) | |
+ }), o.open() | |
}) | |
}) | |
}(jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/customize-controls.min.js build-unminified/wp-admin/js/customize-controls.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/customize-controls.min.js 2018-10-05 18:05:56.350155038 -0500 | |
+++ build-unminified/wp-admin/js/customize-controls.min.js 2018-10-05 18:05:16.221879261 -0500 | |
@@ -1,2664 +1,2599 @@ | |
-! function(a, b) { | |
- var c, d, e, f = wp.customize; | |
- f.OverlayNotification = f.Notification.extend({ | |
- loading: !1, | |
- initialize: function(a, b) { | |
- var c = this; | |
- f.Notification.prototype.initialize.call(c, a, b), c.containerClasses += " notification-overlay", c.loading && (c.containerClasses += " notification-loading") | |
- }, | |
- render: function() { | |
- var a = f.Notification.prototype.render.call(this); | |
- return a.on("keydown", _.bind(this.handleEscape, this)), a | |
- }, | |
- handleEscape: function(a) { | |
- var b = this; | |
- 27 === a.which && (a.stopPropagation(), b.dismissible && b.parent && b.parent.remove(b.code)) | |
- } | |
- }), f.Notifications = f.Values.extend({ | |
- alt: !1, | |
- defaultConstructor: f.Notification, | |
- initialize: function(a) { | |
- var b = this; | |
- f.Values.prototype.initialize.call(b, a), _.bindAll(b, "constrainFocus"), b._addedIncrement = 0, b._addedOrder = {}, b.bind("add", function(a) { | |
- b.trigger("change", a) | |
- }), b.bind("removed", function(a) { | |
- b.trigger("change", a) | |
- }) | |
- }, | |
- count: function() { | |
- return _.size(this._value) | |
- }, | |
- add: function(a, b) { | |
- var c, d, e = this; | |
- return "string" == typeof a ? (c = a, d = b) : (c = a.code, d = a), e.has(c) || (e._addedIncrement += 1, e._addedOrder[c] = e._addedIncrement), f.Values.prototype.add.call(e, c, d) | |
- }, | |
- remove: function(a) { | |
- var b = this; | |
- return delete b._addedOrder[a], f.Values.prototype.remove.call(this, a) | |
- }, | |
- get: function(a) { | |
- var b, c, d, e = this; | |
- return b = _.values(e._value), d = _.extend({ | |
- sort: !1 | |
- }, a), d.sort && (c = { | |
- error: 4, | |
- warning: 3, | |
- success: 2, | |
- info: 1 | |
- }, b.sort(function(a, b) { | |
- var d = 0, | |
- f = 0; | |
- return _.isUndefined(c[a.type]) || (d = c[a.type]), _.isUndefined(c[b.type]) || (f = c[b.type]), d !== f ? f - d : e._addedOrder[b.code] - e._addedOrder[a.code] | |
- })), b | |
- }, | |
- render: function() { | |
- var a, c, d, e, g = this, | |
- h = !1, | |
- i = [], | |
- j = {}; | |
- g.container && g.container.length && (a = g.get({ | |
- sort: !0 | |
- }), g.container.toggle(0 !== a.length), g.container.is(g.previousContainer) && _.isEqual(a, g.previousNotifications) || (d = g.container.children("ul").first(), d.length || (d = b("<ul></ul>"), g.container.append(d)), d.find("> [data-code]").remove(), _.each(g.previousNotifications, function(a) { | |
- j[a.code] = a | |
- }), _.each(a, function(a) { | |
- var c; | |
- !wp.a11y || j[a.code] && _.isEqual(a.message, j[a.code].message) || wp.a11y.speak(a.message, "assertive"), c = b(a.render()), a.container = c, d.append(c), a.extended(f.OverlayNotification) && i.push(a) | |
- }), c = Boolean(i.length), g.previousNotifications && (h = Boolean(_.find(g.previousNotifications, function(a) { | |
- return a.extended(f.OverlayNotification) | |
- }))), c !== h && (b(document.body).toggleClass("customize-loading", c), g.container.toggleClass("has-overlay-notifications", c), c ? (g.previousActiveElement = document.activeElement, b(document).on("keydown", g.constrainFocus)) : b(document).off("keydown", g.constrainFocus)), c ? (g.focusContainer = i[i.length - 1].container, g.focusContainer.prop("tabIndex", -1), e = g.focusContainer.find(":focusable"), e.length ? e.first().focus() : g.focusContainer.focus()) : g.previousActiveElement && (b(g.previousActiveElement).focus(), g.previousActiveElement = null), g.previousNotifications = a, g.previousContainer = g.container, g.trigger("rendered"))) | |
- }, | |
- constrainFocus: function(a) { | |
- var c, d = this; | |
- a.stopPropagation(), 9 === a.which && (c = d.focusContainer.find(":focusable"), 0 === c.length && (c = d.focusContainer), b.contains(d.focusContainer[0], a.target) && b.contains(d.focusContainer[0], document.activeElement) ? c.last().is(a.target) && !a.shiftKey ? (a.preventDefault(), c.first().focus()) : c.first().is(a.target) && a.shiftKey && (a.preventDefault(), c.last().focus()) : (a.preventDefault(), c.first().focus())) | |
- } | |
- }), f.Setting = f.Value.extend({ | |
- defaults: { | |
- transport: "refresh", | |
- dirty: !1 | |
- }, | |
- initialize: function(a, b, c) { | |
- var d, e = this; | |
- d = _.extend({ | |
- previewer: f.previewer | |
- }, e.defaults, c || {}), f.Value.prototype.initialize.call(e, b, d), e.id = a, e._dirty = d.dirty, e.notifications = new f.Notifications, e.bind(e.preview) | |
- }, | |
- preview: function() { | |
- var a, b = this; | |
- a = b.transport, "postMessage" !== a || f.state("previewerAlive").get() || (a = "refresh"), "postMessage" === a ? b.previewer.send("setting", [b.id, b()]) : "refresh" === a && b.previewer.refresh() | |
- }, | |
- findControls: function() { | |
- var a = this, | |
- b = []; | |
- return f.control.each(function(c) { | |
- _.each(c.settings, function(d) { | |
- d.id === a.id && b.push(c) | |
+! function(e, H) { | |
+ var a, t, s, n, i, o, r, L = wp.customize; | |
+ L.OverlayNotification = L.Notification.extend({ | |
+ loading: !1, | |
+ initialize: function(e, t) { | |
+ var n = this; | |
+ L.Notification.prototype.initialize.call(n, e, t), n.containerClasses += " notification-overlay", n.loading && (n.containerClasses += " notification-loading") | |
+ }, | |
+ render: function() { | |
+ var e = L.Notification.prototype.render.call(this); | |
+ return e.on("keydown", _.bind(this.handleEscape, this)), e | |
+ }, | |
+ handleEscape: function(e) { | |
+ var t = this; | |
+ 27 === e.which && (e.stopPropagation(), t.dismissible && t.parent && t.parent.remove(t.code)) | |
+ } | |
+ }), L.Notifications = L.Values.extend({ | |
+ alt: !1, | |
+ defaultConstructor: L.Notification, | |
+ initialize: function(e) { | |
+ var t = this; | |
+ L.Values.prototype.initialize.call(t, e), _.bindAll(t, "constrainFocus"), t._addedIncrement = 0, t._addedOrder = {}, t.bind("add", function(e) { | |
+ t.trigger("change", e) | |
+ }), t.bind("removed", function(e) { | |
+ t.trigger("change", e) | |
+ }) | |
+ }, | |
+ count: function() { | |
+ return _.size(this._value) | |
+ }, | |
+ add: function(e, t) { | |
+ var n, i, a = this; | |
+ return i = "string" == typeof e ? (n = e, t) : (n = e.code, e), a.has(n) || (a._addedIncrement += 1, a._addedOrder[n] = a._addedIncrement), L.Values.prototype.add.call(a, n, i) | |
+ }, | |
+ remove: function(e) { | |
+ return delete this._addedOrder[e], L.Values.prototype.remove.call(this, e) | |
+ }, | |
+ get: function(e) { | |
+ var t, a, o = this; | |
+ return t = _.values(o._value), _.extend({ | |
+ sort: !1 | |
+ }, e).sort && (a = { | |
+ error: 4, | |
+ warning: 3, | |
+ success: 2, | |
+ info: 1 | |
+ }, t.sort(function(e, t) { | |
+ var n = 0, | |
+ i = 0; | |
+ return _.isUndefined(a[e.type]) || (n = a[e.type]), _.isUndefined(a[t.type]) || (i = a[t.type]), n !== i ? i - n : o._addedOrder[t.code] - o._addedOrder[e.code] | |
+ })), t | |
+ }, | |
+ render: function() { | |
+ var e, t, n, i, a = this, | |
+ o = !1, | |
+ s = [], | |
+ r = {}; | |
+ a.container && a.container.length && (e = a.get({ | |
+ sort: !0 | |
+ }), a.container.toggle(0 !== e.length), a.container.is(a.previousContainer) && _.isEqual(e, a.previousNotifications) || ((n = a.container.children("ul").first()).length || (n = H("<ul></ul>"), a.container.append(n)), n.find("> [data-code]").remove(), _.each(a.previousNotifications, function(e) { | |
+ r[e.code] = e | |
+ }), _.each(e, function(e) { | |
+ var t; | |
+ !wp.a11y || r[e.code] && _.isEqual(e.message, r[e.code].message) || wp.a11y.speak(e.message, "assertive"), t = H(e.render()), e.container = t, n.append(t), e.extended(L.OverlayNotification) && s.push(e) | |
+ }), t = Boolean(s.length), a.previousNotifications && (o = Boolean(_.find(a.previousNotifications, function(e) { | |
+ return e.extended(L.OverlayNotification) | |
+ }))), t !== o && (H(document.body).toggleClass("customize-loading", t), a.container.toggleClass("has-overlay-notifications", t), t ? (a.previousActiveElement = document.activeElement, H(document).on("keydown", a.constrainFocus)) : H(document).off("keydown", a.constrainFocus)), t ? (a.focusContainer = s[s.length - 1].container, a.focusContainer.prop("tabIndex", -1), (i = a.focusContainer.find(":focusable")).length ? i.first().focus() : a.focusContainer.focus()) : a.previousActiveElement && (H(a.previousActiveElement).focus(), a.previousActiveElement = null), a.previousNotifications = e, a.previousContainer = a.container, a.trigger("rendered"))) | |
+ }, | |
+ constrainFocus: function(e) { | |
+ var t, n = this; | |
+ e.stopPropagation(), 9 === e.which && (0 === (t = n.focusContainer.find(":focusable")).length && (t = n.focusContainer), H.contains(n.focusContainer[0], e.target) && H.contains(n.focusContainer[0], document.activeElement) ? t.last().is(e.target) && !e.shiftKey ? (e.preventDefault(), t.first().focus()) : t.first().is(e.target) && e.shiftKey && (e.preventDefault(), t.last().focus()) : (e.preventDefault(), t.first().focus())) | |
+ } | |
+ }), L.Setting = L.Value.extend({ | |
+ defaults: { | |
+ transport: "refresh", | |
+ dirty: !1 | |
+ }, | |
+ initialize: function(e, t, n) { | |
+ var i, a = this; | |
+ i = _.extend({ | |
+ previewer: L.previewer | |
+ }, a.defaults, n || {}), L.Value.prototype.initialize.call(a, t, i), a.id = e, a._dirty = i.dirty, a.notifications = new L.Notifications, a.bind(a.preview) | |
+ }, | |
+ preview: function() { | |
+ var e, t = this; | |
+ "postMessage" !== (e = t.transport) || L.state("previewerAlive").get() || (e = "refresh"), "postMessage" === e ? t.previewer.send("setting", [t.id, t()]) : "refresh" === e && t.previewer.refresh() | |
+ }, | |
+ findControls: function() { | |
+ var n = this, | |
+ i = []; | |
+ return L.control.each(function(t) { | |
+ _.each(t.settings, function(e) { | |
+ e.id === n.id && i.push(t) | |
+ }) | |
+ }), i | |
+ } | |
+ }), L._latestRevision = 0, L._lastSavedRevision = 0, L._latestSettingRevisions = {}, L.bind("change", function(e) { | |
+ L._latestRevision += 1, L._latestSettingRevisions[e.id] = L._latestRevision | |
+ }), L.bind("ready", function() { | |
+ L.bind("add", function(e) { | |
+ e._dirty && (L._latestRevision += 1, L._latestSettingRevisions[e.id] = L._latestRevision) | |
+ }) | |
+ }), L.dirtyValues = function(n) { | |
+ var i = {}; | |
+ return L.each(function(e) { | |
+ var t; | |
+ e._dirty && (t = L._latestSettingRevisions[e.id], L.state("changesetStatus").get() && n && n.unsaved && (_.isUndefined(t) || t <= L._lastSavedRevision) || (i[e.id] = e.get())) | |
+ }), i | |
+ }, L.requestChangesetUpdate = function(n, e) { | |
+ var t, i, a, o, s = {}; | |
+ return t = new H.Deferred, 0 !== L.state("processing").get() ? (t.reject("already_processing"), t.promise()) : (o = _.extend({ | |
+ title: null, | |
+ date: null, | |
+ autosave: !1, | |
+ force: !1 | |
+ }, e), n && _.extend(s, n), _.each(L.dirtyValues({ | |
+ unsaved: !0 | |
+ }), function(e, t) { | |
+ n && null === n[t] || (s[t] = _.extend({}, s[t] || {}, { | |
+ value: e | |
+ })) | |
+ }), L.trigger("changeset-save", s, o), !o.force && _.isEmpty(s) && null === o.title && null === o.date ? (t.resolve({}), t.promise()) : o.status ? t.reject({ | |
+ code: "illegal_status_in_changeset_update" | |
+ }).promise() : o.date && o.autosave ? t.reject({ | |
+ code: "illegal_autosave_with_date_gmt" | |
+ }).promise() : (L.state("processing").set(L.state("processing").get() + 1), t.always(function() { | |
+ L.state("processing").set(L.state("processing").get() - 1) | |
+ }), delete(a = L.previewer.query({ | |
+ excludeCustomizedSaved: !0 | |
+ })).customized, _.extend(a, { | |
+ nonce: L.settings.nonce.save, | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ customize_changeset_data: JSON.stringify(s) | |
+ }), null !== o.title && (a.customize_changeset_title = o.title), null !== o.date && (a.customize_changeset_date = o.date), !1 !== o.autosave && (a.customize_changeset_autosave = "true"), L.trigger("save-request-params", a), (i = wp.ajax.post("customize_save", a)).done(function(e) { | |
+ var n = {}; | |
+ L._lastSavedRevision = Math.max(L._latestRevision, L._lastSavedRevision), L.state("changesetStatus").set(e.changeset_status), e.changeset_date && L.state("changesetDate").set(e.changeset_date), t.resolve(e), L.trigger("changeset-saved", e), e.setting_validities && _.each(e.setting_validities, function(e, t) { | |
+ !0 === e && _.isObject(s[t]) && !_.isUndefined(s[t].value) && (n[t] = s[t].value) | |
+ }), L.previewer.send("changeset-saved", _.extend({}, e, { | |
+ saved_changeset_values: n | |
+ })) | |
+ }), i.fail(function(e) { | |
+ t.reject(e), L.trigger("changeset-error", e) | |
+ }), i.always(function(e) { | |
+ e.setting_validities && L._handleSettingValidities({ | |
+ settingValidities: e.setting_validities | |
+ }) | |
+ }), t.promise())) | |
+ }, L.utils.bubbleChildValueChanges = function(n, e) { | |
+ H.each(e, function(e, t) { | |
+ n[t].bind(function(e, t) { | |
+ n.parent && e !== t && n.parent.trigger("change", n) | |
+ }) | |
+ }) | |
+ }, t = function(e) { | |
+ var t, n, i, a; | |
+ t = this, i = function() { | |
+ var e; | |
+ e = (t.extended(L.Panel) || t.extended(L.Section)) && t.expanded && t.expanded() ? t.contentContainer : t.container, 0 === (a = e.find(".control-focus:first")).length && (a = e.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first()), a.focus() | |
+ }, (e = e || {}).completeCallback ? (n = e.completeCallback, e.completeCallback = function() { | |
+ i(), n() | |
+ }) : e.completeCallback = i, L.state("paneVisible").set(!0), t.expand ? t.expand(e) : e.completeCallback() | |
+ }, L.utils.prioritySort = function(e, t) { | |
+ return e.priority() === t.priority() && "number" == typeof e.params.instanceNumber && "number" == typeof t.params.instanceNumber ? e.params.instanceNumber - t.params.instanceNumber : e.priority() - t.priority() | |
+ }, L.utils.isKeydownButNotEnterEvent = function(e) { | |
+ return "keydown" === e.type && 13 !== e.which | |
+ }, L.utils.areElementListsEqual = function(e, t) { | |
+ return e.length === t.length && -1 === _.indexOf(_.map(_.zip(e, t), function(e) { | |
+ return H(e[0]).is(e[1]) | |
+ }), !1) | |
+ }, L.utils.highlightButton = function(e, t) { | |
+ var n, i = "button-see-me", | |
+ a = !1; | |
+ | |
+ function o() { | |
+ a = !0 | |
+ } | |
+ return (n = _.extend({ | |
+ delay: 0, | |
+ focusTarget: e | |
+ }, t)).focusTarget.on("focusin", o), setTimeout(function() { | |
+ n.focusTarget.off("focusin", o), a || (e.addClass(i), e.one("animationend", function() { | |
+ e.removeClass(i) | |
+ })) | |
+ }, n.delay), o | |
+ }, L.utils.getCurrentTimestamp = function() { | |
+ var e, t, n; | |
+ return t = _.now(), e = new Date(L.settings.initialServerDate.replace(/-/g, "/")), n = t - L.settings.initialClientTimestamp, n += L.settings.initialClientTimestamp - L.settings.initialServerTimestamp, e.setTime(e.getTime() + n), e.getTime() | |
+ }, L.utils.getRemainingTime = function(e) { | |
+ var t; | |
+ return t = (e instanceof Date ? e.getTime() : "string" == typeof e ? new Date(e.replace(/-/g, "/")).getTime() : e) - L.utils.getCurrentTimestamp(), t = Math.ceil(t / 1e3) | |
+ }, n = document.createElement("div"), i = { | |
+ transition: "transitionend", | |
+ OTransition: "oTransitionEnd", | |
+ MozTransition: "transitionend", | |
+ WebkitTransition: "webkitTransitionEnd" | |
+ }, s = (o = _.find(_.keys(i), function(e) { | |
+ return !_.isUndefined(n.style[e]) | |
+ })) ? i[o] : null, a = L.Class.extend({ | |
+ defaultActiveArguments: { | |
+ duration: "fast", | |
+ completeCallback: H.noop | |
+ }, | |
+ defaultExpandedArguments: { | |
+ duration: "fast", | |
+ completeCallback: H.noop | |
+ }, | |
+ containerType: "container", | |
+ defaults: { | |
+ title: "", | |
+ description: "", | |
+ priority: 100, | |
+ type: "default", | |
+ content: null, | |
+ active: !0, | |
+ instanceNumber: null | |
+ }, | |
+ initialize: function(e, t) { | |
+ var n = this; | |
+ n.id = e, a.instanceCounter || (a.instanceCounter = 0), a.instanceCounter++, H.extend(n, { | |
+ params: _.defaults(t.params || t, n.defaults) | |
+ }), n.params.instanceNumber || (n.params.instanceNumber = a.instanceCounter), n.notifications = new L.Notifications, n.templateSelector = n.params.templateId || "customize-" + n.containerType + "-" + n.params.type, n.container = H(n.params.content), 0 === n.container.length && (n.container = H(n.getContainer())), n.headContainer = n.container, n.contentContainer = n.getContent(), n.container = n.container.add(n.contentContainer), n.deferred = { | |
+ embedded: new H.Deferred | |
+ }, n.priority = new L.Value, n.active = new L.Value, n.activeArgumentsQueue = [], n.expanded = new L.Value, n.expandedArgumentsQueue = [], n.active.bind(function(e) { | |
+ var t = n.activeArgumentsQueue.shift(); | |
+ t = H.extend({}, n.defaultActiveArguments, t), e = e && n.isContextuallyActive(), n.onChangeActive(e, t) | |
+ }), n.expanded.bind(function(e) { | |
+ var t = n.expandedArgumentsQueue.shift(); | |
+ t = H.extend({}, n.defaultExpandedArguments, t), n.onChangeExpanded(e, t) | |
+ }), n.deferred.embedded.done(function() { | |
+ n.setupNotifications(), n.attachEvents() | |
+ }), L.utils.bubbleChildValueChanges(n, ["priority", "active"]), n.priority.set(n.params.priority), n.active.set(n.params.active), n.expanded.set(!1) | |
+ }, | |
+ getNotificationsContainerElement: function() { | |
+ return this.contentContainer.find(".customize-control-notifications-container:first") | |
+ }, | |
+ setupNotifications: function() { | |
+ var e, t = this; | |
+ t.notifications.container = t.getNotificationsContainerElement(), e = function() { | |
+ t.expanded.get() && t.notifications.render() | |
+ }, t.expanded.bind(e), e(), t.notifications.bind("change", _.debounce(e)) | |
+ }, | |
+ ready: function() {}, | |
+ _children: function(t, e) { | |
+ var n = this, | |
+ i = []; | |
+ return L[e].each(function(e) { | |
+ e[t].get() === n.id && i.push(e) | |
+ }), i.sort(L.utils.prioritySort), i | |
+ }, | |
+ isContextuallyActive: function() { | |
+ throw new Error("Container.isContextuallyActive() must be overridden in a subclass.") | |
+ }, | |
+ onChangeActive: function(e, t) { | |
+ var n, i = this, | |
+ a = i.headContainer; | |
+ t.unchanged ? t.completeCallback && t.completeCallback() : (n = "resolved" === L.previewer.deferred.active.state() ? t.duration : 0, i.extended(L.Panel) && (L.panel.each(function(e) { | |
+ e !== i && e.expanded() && (e, n = 0) | |
+ }), e || _.each(i.sections(), function(e) { | |
+ e.collapse({ | |
+ duration: 0 | |
+ }) | |
+ })), H.contains(document, a.get(0)) ? e ? a.slideDown(n, t.completeCallback) : i.expanded() ? i.collapse({ | |
+ duration: n, | |
+ completeCallback: function() { | |
+ a.slideUp(n, t.completeCallback) | |
+ } | |
+ }) : a.slideUp(n, t.completeCallback) : (a.toggle(e), t.completeCallback && t.completeCallback())) | |
+ }, | |
+ _toggleActive: function(e, t) { | |
+ return t = t || {}, e && this.active.get() || !e && !this.active.get() ? (t.unchanged = !0, this.onChangeActive(this.active.get(), t), !1) : (t.unchanged = !1, this.activeArgumentsQueue.push(t), this.active.set(e), !0) | |
+ }, | |
+ activate: function(e) { | |
+ return this._toggleActive(!0, e) | |
+ }, | |
+ deactivate: function(e) { | |
+ return this._toggleActive(!1, e) | |
+ }, | |
+ onChangeExpanded: function() { | |
+ throw new Error("Must override with subclass.") | |
+ }, | |
+ _toggleExpanded: function(e, t) { | |
+ var n, i = this; | |
+ return n = (t = t || {}).completeCallback, !(e && !i.active()) && (L.state("paneVisible").set(!0), t.completeCallback = function() { | |
+ n && n.apply(i, arguments), e ? i.container.trigger("expanded") : i.container.trigger("collapsed") | |
+ }, e && i.expanded.get() || !e && !i.expanded.get() ? (t.unchanged = !0, i.onChangeExpanded(i.expanded.get(), t), !1) : (t.unchanged = !1, i.expandedArgumentsQueue.push(t), i.expanded.set(e), !0)) | |
+ }, | |
+ expand: function(e) { | |
+ return this._toggleExpanded(!0, e) | |
+ }, | |
+ collapse: function(e) { | |
+ return this._toggleExpanded(!1, e) | |
+ }, | |
+ _animateChangeExpanded: function(t) { | |
+ if (s) { | |
+ var n, i, a = this, | |
+ o = a.contentContainer, | |
+ e = o.closest(".wp-full-overlay"); | |
+ n = e.add(o), (!a.panel || "" === a.panel() || !!L.panel(a.panel()).contentContainer.hasClass("skip-transition")) && (n = n.add("#customize-info, .customize-pane-parent")), i = function(e) { | |
+ 2 === e.eventPhase && H(e.target).is(o) && (o.off(s, i), n.removeClass("busy"), t && t()) | |
+ }, o.on(s, i), n.addClass("busy"), _.defer(function() { | |
+ var e = o.closest(".wp-full-overlay-sidebar-content"), | |
+ t = e.scrollTop(), | |
+ n = o.data("previous-scrollTop") || 0, | |
+ i = a.expanded(); | |
+ i && 0 < t ? (o.css("top", t + "px"), o.data("previous-scrollTop", t)) : !i && 0 < t + n && (o.css("top", n - t + "px"), e.scrollTop(n)) | |
+ }) | |
+ } else t && t() | |
+ }, | |
+ focus: t, | |
+ getContainer: function() { | |
+ var e, t = this; | |
+ return (e = 0 !== H("#tmpl-" + t.templateSelector).length ? wp.template(t.templateSelector) : wp.template("customize-" + t.containerType + "-default")) && t.container ? H.trim(e(_.extend({ | |
+ id: t.id | |
+ }, t.params))) : "<li></li>" | |
+ }, | |
+ getContent: function() { | |
+ var e = this.container, | |
+ t = e.find(".accordion-section-content, .control-panel-content").first(), | |
+ n = "sub-" + e.attr("id"), | |
+ i = n, | |
+ a = e.attr("aria-owns"); | |
+ return a && (i = i + " " + a), e.attr("aria-owns", i), t.detach().attr({ | |
+ id: n, | |
+ class: "customize-pane-child " + t.attr("class") + " " + e.attr("class") | |
+ }) | |
+ } | |
+ }), L.Section = a.extend({ | |
+ containerType: "section", | |
+ containerParent: "#customize-theme-controls", | |
+ containerPaneParent: ".customize-pane-parent", | |
+ defaults: { | |
+ title: "", | |
+ description: "", | |
+ priority: 100, | |
+ type: "default", | |
+ content: null, | |
+ active: !0, | |
+ instanceNumber: null, | |
+ panel: null, | |
+ customizeAction: "" | |
+ }, | |
+ initialize: function(e, t) { | |
+ var n, i = this; | |
+ (n = t.params || t).type || _.find(L.sectionConstructor, function(e, t) { | |
+ return e === i.constructor && (n.type = t, !0) | |
+ }), a.prototype.initialize.call(i, e, n), i.id = e, i.panel = new L.Value, i.panel.bind(function(e) { | |
+ H(i.headContainer).toggleClass("control-subsection", !!e) | |
+ }), i.panel.set(i.params.panel || ""), L.utils.bubbleChildValueChanges(i, ["panel"]), i.embed(), i.deferred.embedded.done(function() { | |
+ i.ready() | |
+ }) | |
+ }, | |
+ embed: function() { | |
+ var e, n = this; | |
+ n.containerParent = L.ensure(n.containerParent), e = function(e) { | |
+ var t; | |
+ e ? L.panel(e, function(e) { | |
+ e.deferred.embedded.done(function() { | |
+ t = e.contentContainer, n.headContainer.parent().is(t) || t.append(n.headContainer), n.contentContainer.parent().is(n.headContainer) || n.containerParent.append(n.contentContainer), n.deferred.embedded.resolve() | |
}) | |
- }), b | |
- } | |
- }), f._latestRevision = 0, f._lastSavedRevision = 0, f._latestSettingRevisions = {}, f.bind("change", function(a) { | |
- f._latestRevision += 1, f._latestSettingRevisions[a.id] = f._latestRevision | |
- }), f.bind("ready", function() { | |
- f.bind("add", function(a) { | |
- a._dirty && (f._latestRevision += 1, f._latestSettingRevisions[a.id] = f._latestRevision) | |
- }) | |
- }), f.dirtyValues = function(a) { | |
- var b = {}; | |
- return f.each(function(c) { | |
- var d; | |
- c._dirty && (d = f._latestSettingRevisions[c.id], f.state("changesetStatus").get() && a && a.unsaved && (_.isUndefined(d) || d <= f._lastSavedRevision) || (b[c.id] = c.get())) | |
- }), b | |
- }, f.requestChangesetUpdate = function(a, c) { | |
- var d, e, g, h, i = {}; | |
- return d = new b.Deferred, 0 !== f.state("processing").get() ? (d.reject("already_processing"), d.promise()) : (h = _.extend({ | |
- title: null, | |
- date: null, | |
- autosave: !1, | |
- force: !1 | |
- }, c), a && _.extend(i, a), _.each(f.dirtyValues({ | |
- unsaved: !0 | |
- }), function(b, c) { | |
- a && null === a[c] || (i[c] = _.extend({}, i[c] || {}, { | |
- value: b | |
- })) | |
- }), f.trigger("changeset-save", i, h), !h.force && _.isEmpty(i) && null === h.title && null === h.date ? (d.resolve({}), d.promise()) : h.status ? d.reject({ | |
- code: "illegal_status_in_changeset_update" | |
- }).promise() : h.date && h.autosave ? d.reject({ | |
- code: "illegal_autosave_with_date_gmt" | |
- }).promise() : (f.state("processing").set(f.state("processing").get() + 1), d.always(function() { | |
- f.state("processing").set(f.state("processing").get() - 1) | |
- }), g = f.previewer.query({ | |
- excludeCustomizedSaved: !0 | |
- }), delete g.customized, _.extend(g, { | |
- nonce: f.settings.nonce.save, | |
- customize_theme: f.settings.theme.stylesheet, | |
- customize_changeset_data: JSON.stringify(i) | |
- }), null !== h.title && (g.customize_changeset_title = h.title), null !== h.date && (g.customize_changeset_date = h.date), !1 !== h.autosave && (g.customize_changeset_autosave = "true"), f.trigger("save-request-params", g), e = wp.ajax.post("customize_save", g), e.done(function(a) { | |
- var b = {}; | |
- f._lastSavedRevision = Math.max(f._latestRevision, f._lastSavedRevision), f.state("changesetStatus").set(a.changeset_status), a.changeset_date && f.state("changesetDate").set(a.changeset_date), d.resolve(a), f.trigger("changeset-saved", a), a.setting_validities && _.each(a.setting_validities, function(a, c) { | |
- !0 === a && _.isObject(i[c]) && !_.isUndefined(i[c].value) && (b[c] = i[c].value) | |
- }), f.previewer.send("changeset-saved", _.extend({}, a, { | |
- saved_changeset_values: b | |
+ }) : (t = L.ensure(n.containerPaneParent), n.headContainer.parent().is(t) || t.append(n.headContainer), n.contentContainer.parent().is(n.headContainer) || n.containerParent.append(n.contentContainer), n.deferred.embedded.resolve()) | |
+ }, n.panel.bind(e), e(n.panel.get()) | |
+ }, | |
+ attachEvents: function() { | |
+ var e, t, n = this; | |
+ n.container.hasClass("cannot-expand") || (n.container.find(".accordion-section-title, .customize-section-back").on("click keydown", function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), n.expanded() ? n.collapse() : n.expand()) | |
+ }), n.container.find(".customize-section-title .customize-help-toggle").on("click", function() { | |
+ (e = n.container.find(".section-meta")).hasClass("cannot-expand") || ((t = e.find(".customize-section-description:first")).toggleClass("open"), t.slideToggle(n.defaultExpandedArguments.duration, function() { | |
+ t.trigger("toggled") | |
+ }), H(this).attr("aria-expanded", function(e, t) { | |
+ return "true" === t ? "false" : "true" | |
})) | |
- }), e.fail(function(a) { | |
- d.reject(a), f.trigger("changeset-error", a) | |
- }), e.always(function(a) { | |
- a.setting_validities && f._handleSettingValidities({ | |
- settingValidities: a.setting_validities | |
- }) | |
- }), d.promise())) | |
- }, f.utils.bubbleChildValueChanges = function(a, c) { | |
- b.each(c, function(b, c) { | |
- a[c].bind(function(b, c) { | |
- a.parent && b !== c && a.parent.trigger("change", a) | |
+ })) | |
+ }, | |
+ isContextuallyActive: function() { | |
+ var e = this.controls(), | |
+ t = 0; | |
+ return _(e).each(function(e) { | |
+ e.active() && (t += 1) | |
+ }), 0 !== t | |
+ }, | |
+ controls: function() { | |
+ return this._children("section", "control") | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ var n, i, a = this, | |
+ o = a.headContainer.closest(".wp-full-overlay-sidebar-content"), | |
+ s = a.contentContainer, | |
+ r = a.headContainer.closest(".wp-full-overlay"), | |
+ c = s.find(".customize-section-back"), | |
+ l = a.headContainer.find(".accordion-section-title").first(); | |
+ e && !s.hasClass("open") ? (n = t.unchanged ? t.completeCallback : H.proxy(function() { | |
+ a._animateChangeExpanded(function() { | |
+ l.attr("tabindex", "-1"), c.attr("tabindex", "0"), c.focus(), s.css("top", ""), o.scrollTop(0), t.completeCallback && t.completeCallback() | |
+ }), s.addClass("open"), r.addClass("section-open"), L.state("expandedSection").set(a) | |
+ }, this), t.allowMultiple || L.section.each(function(e) { | |
+ e !== a && e.collapse({ | |
+ duration: t.duration | |
+ }) | |
+ }), a.panel() ? L.panel(a.panel()).expand({ | |
+ duration: t.duration, | |
+ completeCallback: n | |
+ }) : (t.allowMultiple || L.panel.each(function(e) { | |
+ e.collapse() | |
+ }), n())) : !e && s.hasClass("open") ? (a.panel() && (i = L.panel(a.panel())).contentContainer.hasClass("skip-transition") && i.collapse(), a._animateChangeExpanded(function() { | |
+ c.attr("tabindex", "-1"), l.attr("tabindex", "0"), l.focus(), s.css("top", ""), t.completeCallback && t.completeCallback() | |
+ }), s.removeClass("open"), r.removeClass("section-open"), a === L.state("expandedSection").get() && L.state("expandedSection").set(!1)) : t.completeCallback && t.completeCallback() | |
+ } | |
+ }), L.ThemesSection = L.Section.extend({ | |
+ currentTheme: "", | |
+ overlay: "", | |
+ template: "", | |
+ screenshotQueue: null, | |
+ $window: null, | |
+ $body: null, | |
+ loaded: 0, | |
+ loading: !1, | |
+ fullyLoaded: !1, | |
+ term: "", | |
+ tags: "", | |
+ nextTerm: "", | |
+ nextTags: "", | |
+ filtersHeight: 0, | |
+ headerContainer: null, | |
+ updateCountDebounced: null, | |
+ initialize: function(e, t) { | |
+ var n = this; | |
+ n.headerContainer = H(), n.$window = H(window), n.$body = H(document.body), L.Section.prototype.initialize.call(n, e, t), n.updateCountDebounced = _.debounce(n.updateCount, 500) | |
+ }, | |
+ embed: function() { | |
+ var e, n = this; | |
+ e = function(e) { | |
+ var t; | |
+ L.panel(e, function(e) { | |
+ e.deferred.embedded.done(function() { | |
+ t = e.contentContainer, n.headContainer.parent().is(t) || t.find(".customize-themes-full-container-container").before(n.headContainer), n.contentContainer.parent().is(n.headContainer) || n.containerParent.append(n.contentContainer), n.deferred.embedded.resolve() | |
+ }) | |
}) | |
+ }, n.panel.bind(e), e(n.panel.get()) | |
+ }, | |
+ ready: function() { | |
+ var t = this; | |
+ t.overlay = t.container.find(".theme-overlay"), t.template = wp.template("customize-themes-details-view"), t.container.on("keydown", function(e) { | |
+ t.overlay.find(".theme-wrap").is(":visible") && (39 === e.keyCode && t.nextTheme(), 37 === e.keyCode && t.previousTheme(), 27 === e.keyCode && (t.$body.hasClass("modal-open") ? t.closeDetails() : t.headerContainer.find(".customize-themes-section-title").focus(), e.stopPropagation())) | |
+ }), t.renderScreenshots = _.throttle(t.renderScreenshots, 100), _.bindAll(t, "renderScreenshots", "loadMore", "checkTerm", "filtersChecked") | |
+ }, | |
+ isContextuallyActive: function() { | |
+ return this.active() | |
+ }, | |
+ attachEvents: function() { | |
+ var e, a = this; | |
+ | |
+ function t() { | |
+ var e = a.headerContainer.find(".customize-themes-section-title"); | |
+ e.toggleClass("selected", a.expanded()), e.attr("aria-expanded", a.expanded() ? "true" : "false"), a.expanded() || e.removeClass("details-open") | |
+ } | |
+ a.container.find(".customize-section-back").on("click keydown", function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), a.collapse()) | |
+ }), a.headerContainer = H("#accordion-section-" + a.id), a.headerContainer.on("click", ".customize-themes-section-title", function() { | |
+ a.headerContainer.find(".filter-details").length && (a.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded", function(e, t) { | |
+ return "true" === t ? "false" : "true" | |
+ }), a.headerContainer.find(".filter-details").slideToggle(180)), a.expanded() || a.expand() | |
+ }), a.container.on("click", ".theme-actions .preview-theme", function() { | |
+ L.panel("themes").loadThemePreview(H(this).data("slug")) | |
+ }), a.container.on("click", ".left", function() { | |
+ a.previousTheme() | |
+ }), a.container.on("click", ".right", function() { | |
+ a.nextTheme() | |
+ }), a.container.on("click", ".theme-backdrop, .close", function() { | |
+ a.closeDetails() | |
+ }), "local" === a.params.filter_type ? a.container.on("input", ".wp-filter-search-themes", function(e) { | |
+ a.filterSearch(e.currentTarget.value) | |
+ }) : "remote" === a.params.filter_type && (e = _.debounce(a.checkTerm, 500), a.contentContainer.on("input", ".wp-filter-search", function() { | |
+ L.panel("themes").expanded() && (e(a), a.expanded() || a.expand()) | |
+ }), a.contentContainer.on("click", ".filter-group input", function() { | |
+ a.filtersChecked(), a.checkTerm(a) | |
+ })), a.contentContainer.on("click", ".feature-filter-toggle", function(e) { | |
+ var t = H(".customize-themes-full-container"), | |
+ n = H(e.currentTarget); | |
+ if (a.filtersHeight = n.parent().next(".filter-drawer").height(), !(0 < t.scrollTop() && (t.animate({ | |
+ scrollTop: 0 | |
+ }, 400), n.hasClass("open")))) | |
+ if (n.toggleClass("open").attr("aria-expanded", function(e, t) { | |
+ return "true" === t ? "false" : "true" | |
+ }).parent().next(".filter-drawer").slideToggle(180, "linear"), n.hasClass("open")) { | |
+ var i = 1018 < window.innerWidth ? 50 : 76; | |
+ a.contentContainer.find(".themes").css("margin-top", a.filtersHeight + i) | |
+ } else a.contentContainer.find(".themes").css("margin-top", 0) | |
+ }), a.contentContainer.on("click", ".no-themes-local .search-dotorg-themes", function() { | |
+ L.section("wporg_themes").focus() | |
+ }), a.expanded.bind(t), t(), L.bind("ready", function() { | |
+ a.contentContainer = a.container.find(".customize-themes-section"), a.contentContainer.appendTo(H(".customize-themes-full-container")), a.container.add(a.headerContainer) | |
+ }) | |
+ }, | |
+ onChangeExpanded: function(e, n) { | |
+ var i = this, | |
+ t = i.contentContainer.closest(".customize-themes-full-container"); | |
+ | |
+ function a() { | |
+ 0 === i.loaded && i.loadThemes(), L.section.each(function(e) { | |
+ var t; | |
+ e !== i && "themes" === e.params.type && (t = e.contentContainer.find(".wp-filter-search").val(), i.contentContainer.find(".wp-filter-search").val(t), "" === t && "" !== i.term && "local" !== i.params.filter_type ? (i.term = "", i.initializeNewQuery(i.term, i.tags)) : "remote" === i.params.filter_type ? i.checkTerm(i) : "local" === i.params.filter_type && i.filterSearch(t), e.collapse({ | |
+ duration: n.duration | |
+ })) | |
+ }), i.contentContainer.addClass("current-section"), t.scrollTop(), t.on("scroll", _.throttle(i.renderScreenshots, 300)), t.on("scroll", _.throttle(i.loadMore, 300)), n.completeCallback && n.completeCallback(), i.updateCount() | |
+ } | |
+ n.unchanged ? n.completeCallback && n.completeCallback() : e ? i.panel() && L.panel.has(i.panel()) ? L.panel(i.panel()).expand({ | |
+ duration: n.duration, | |
+ completeCallback: a | |
+ }) : a() : (i.contentContainer.removeClass("current-section"), i.headerContainer.find(".filter-details").slideUp(180), t.off("scroll"), n.completeCallback && n.completeCallback()) | |
+ }, | |
+ getContent: function() { | |
+ return this.container.find(".control-section-content") | |
+ }, | |
+ loadThemes: function() { | |
+ var e, n, t, i = this; | |
+ i.loading || (n = Math.ceil(i.loaded / 100) + 1, e = { | |
+ nonce: L.settings.nonce.switch_themes, | |
+ wp_customize: "on", | |
+ theme_action: i.params.action, | |
+ customized_theme: L.settings.theme.stylesheet, | |
+ page: n | |
+ }, "remote" === i.params.filter_type && (e.search = i.term, e.tags = i.tags), i.headContainer.closest(".wp-full-overlay").addClass("loading"), i.loading = !0, i.container.find(".no-themes").hide(), (t = wp.ajax.post("customize_load_themes", e)).done(function(e) { | |
+ var t = e.themes; | |
+ if ("" !== i.nextTerm || "" !== i.nextTags) return i.nextTerm && (i.term = i.nextTerm), i.nextTags && (i.tags = i.nextTags), i.nextTerm = "", i.nextTags = "", i.loading = !1, void i.loadThemes(); | |
+ 0 !== t.length ? (i.loadControls(t, n), 1 === n && (_.each(i.controls().slice(0, 3), function(e) { | |
+ var t = e.params.theme.screenshot[0]; | |
+ t && ((new Image).src = t) | |
+ }), "local" !== i.params.filter_type && wp.a11y.speak(L.settings.l10n.themeSearchResults.replace("%d", e.info.results))), _.delay(i.renderScreenshots, 100), ("local" === i.params.filter_type || t.length < 100) && (i.fullyLoaded = !0)) : 0 === i.loaded ? (i.container.find(".no-themes").show(), wp.a11y.speak(i.container.find(".no-themes").text())) : i.fullyLoaded = !0, "local" === i.params.filter_type ? i.updateCount() : i.updateCount(e.info.results), i.container.find(".unexpected-error").hide(), i.headContainer.closest(".wp-full-overlay").removeClass("loading"), i.loading = !1 | |
+ }), t.fail(function(e) { | |
+ void 0 === e ? (i.container.find(".unexpected-error").show(), wp.a11y.speak(i.container.find(".unexpected-error").text())) : "undefined" != typeof console && console.error && console.error(e), i.headContainer.closest(".wp-full-overlay").removeClass("loading"), i.loading = !1 | |
+ })) | |
+ }, | |
+ loadControls: function(e, t) { | |
+ var n = [], | |
+ i = this; | |
+ _.each(e, function(e) { | |
+ var t = new L.controlConstructor.theme(i.params.action + "_theme_" + e.id, { | |
+ type: "theme", | |
+ section: i.params.id, | |
+ theme: e, | |
+ priority: i.loaded + 1 | |
+ }); | |
+ L.control.add(t), n.push(t), i.loaded = i.loaded + 1 | |
+ }), 1 !== t && Array.prototype.push.apply(i.screenshotQueue, n) | |
+ }, | |
+ loadMore: function() { | |
+ var e, t; | |
+ this.fullyLoaded || this.loading || (t = (e = this.container.closest(".customize-themes-full-container")).scrollTop() + e.height(), e.prop("scrollHeight") - 3e3 < t && this.loadThemes()) | |
+ }, | |
+ filterSearch: function(e) { | |
+ var t, n = 0, | |
+ i = this, | |
+ a = L.section.has("wporg_themes") && "remote" !== i.params.filter_type ? ".no-themes-local" : ".no-themes", | |
+ o = i.controls(); | |
+ i.loading || (t = e.toLowerCase().trim().replace(/-/g, " ").split(" "), _.each(o, function(e) { | |
+ e.filter(t) && (n += 1) | |
+ }), 0 === n ? (i.container.find(a).show(), wp.a11y.speak(i.container.find(a).text())) : i.container.find(a).hide(), i.renderScreenshots(), L.reflowPaneContents(), i.updateCountDebounced(n)) | |
+ }, | |
+ checkTerm: function(e) { | |
+ var t; | |
+ "remote" === e.params.filter_type && (t = e.contentContainer.find(".wp-filter-search").val(), e.term !== t.trim() && e.initializeNewQuery(t, e.tags)) | |
+ }, | |
+ filtersChecked: function() { | |
+ var e = this, | |
+ t = e.container.find(".filter-group").find(":checkbox"), | |
+ n = []; | |
+ _.each(t.filter(":checked"), function(e) { | |
+ n.push(H(e).prop("value")) | |
+ }), 0 === n.length ? (n = "", e.contentContainer.find(".feature-filter-toggle .filter-count-0").show(), e.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()) : (e.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(n.length), e.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(), e.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()), _.isEqual(e.tags, n) || (e.loading ? e.nextTags = n : "remote" === e.params.filter_type ? e.initializeNewQuery(e.term, n) : "local" === e.params.filter_type && e.filterSearch(n.join(" "))) | |
+ }, | |
+ initializeNewQuery: function(e, t) { | |
+ var n = this; | |
+ _.each(n.controls(), function(e) { | |
+ e.container.remove(), L.control.remove(e.id) | |
+ }), n.loaded = 0, n.fullyLoaded = !1, n.screenshotQueue = null, n.loading ? (n.nextTerm = e, n.nextTags = t) : (n.term = e, n.tags = t, n.loadThemes()), n.expanded() || n.expand() | |
+ }, | |
+ renderScreenshots: function() { | |
+ var l = this; | |
+ null !== l.screenshotQueue && 0 !== l.screenshotQueue.length || (l.screenshotQueue = _.filter(l.controls(), function(e) { | |
+ return !e.screenshotRendered | |
+ })), l.screenshotQueue.length && (l.screenshotQueue = _.filter(l.screenshotQueue, function(e) { | |
+ var t = e.container.find(".theme-screenshot"), | |
+ n = t.find("img"); | |
+ if (!n.length) return !1; | |
+ if (n.is(":hidden")) return !0; | |
+ var i = l.$window.scrollTop(), | |
+ a = i + l.$window.height(), | |
+ o = n.offset().top, | |
+ s = t.height(), | |
+ r = 3 * s, | |
+ c = i - r <= o + s && o <= a + r; | |
+ return c && e.container.trigger("render-screenshot"), !c | |
+ })) | |
+ }, | |
+ getVisibleCount: function() { | |
+ return this.contentContainer.find("li.customize-control:visible").length | |
+ }, | |
+ updateCount: function(e) { | |
+ var t, n; | |
+ e || 0 === e || (e = this.getVisibleCount()), n = this.contentContainer.find(".themes-displayed"), t = this.contentContainer.find(".theme-count"), 0 === e ? t.text("0") : (n.fadeOut(180, function() { | |
+ t.text(e), n.fadeIn(180) | |
+ }), wp.a11y.speak(L.settings.l10n.announceThemeCount.replace("%d", e))) | |
+ }, | |
+ nextTheme: function() { | |
+ var e = this; | |
+ e.getNextTheme() && e.showDetails(e.getNextTheme(), function() { | |
+ e.overlay.find(".right").focus() | |
}) | |
- }, d = function(a) { | |
- var b, c, d, e; | |
- b = this, a = a || {}, d = function() { | |
- var a; | |
- a = (b.extended(f.Panel) || b.extended(f.Section)) && b.expanded && b.expanded() ? b.contentContainer : b.container, e = a.find(".control-focus:first"), 0 === e.length && (e = a.find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first()), e.focus() | |
- }, a.completeCallback ? (c = a.completeCallback, a.completeCallback = function() { | |
- d(), c() | |
- }) : a.completeCallback = d, f.state("paneVisible").set(!0), b.expand ? b.expand(a) : a.completeCallback() | |
- }, f.utils.prioritySort = function(a, b) { | |
- return a.priority() === b.priority() && "number" == typeof a.params.instanceNumber && "number" == typeof b.params.instanceNumber ? a.params.instanceNumber - b.params.instanceNumber : a.priority() - b.priority() | |
- }, f.utils.isKeydownButNotEnterEvent = function(a) { | |
- return "keydown" === a.type && 13 !== a.which | |
- }, f.utils.areElementListsEqual = function(a, c) { | |
- var d = a.length === c.length && -1 === _.indexOf(_.map(_.zip(a, c), function(a) { | |
- return b(a[0]).is(a[1]) | |
- }), !1); | |
- return d | |
- }, f.utils.highlightButton = function(a, b) { | |
- function c() { | |
- f = !0 | |
+ }, | |
+ getNextTheme: function() { | |
+ var e, t, n, i; | |
+ return e = L.control(this.params.action + "_theme_" + this.currentTheme), n = this.controls(), -1 !== (i = _.indexOf(n, e)) && (!!(t = n[i + 1]) && t.params.theme) | |
+ }, | |
+ previousTheme: function() { | |
+ var e = this; | |
+ e.getPreviousTheme() && e.showDetails(e.getPreviousTheme(), function() { | |
+ e.overlay.find(".left").focus() | |
+ }) | |
+ }, | |
+ getPreviousTheme: function() { | |
+ var e, t, n, i; | |
+ return e = L.control(this.params.action + "_theme_" + this.currentTheme), n = this.controls(), -1 !== (i = _.indexOf(n, e)) && (!!(t = n[i - 1]) && t.params.theme) | |
+ }, | |
+ updateLimits: function() { | |
+ this.getNextTheme() || this.overlay.find(".right").addClass("disabled"), this.getPreviousTheme() || this.overlay.find(".left").addClass("disabled") | |
+ }, | |
+ loadThemePreview: function(e) { | |
+ return L.ThemesPanel.prototype.loadThemePreview.call(this, e) | |
+ }, | |
+ showDetails: function(e, t) { | |
+ var n = this, | |
+ i = L.panel("themes"); | |
+ | |
+ function a() { | |
+ return !i.canSwitchTheme(e.id) | |
} | |
- var d, e = "button-see-me", | |
- f = !1; | |
- return d = _.extend({ | |
- delay: 0, | |
- focusTarget: a | |
- }, b), d.focusTarget.on("focusin", c), setTimeout(function() { | |
- d.focusTarget.off("focusin", c), f || (a.addClass(e), a.one("animationend", function() { | |
- a.removeClass(e) | |
- })) | |
- }, d.delay), c | |
- }, f.utils.getCurrentTimestamp = function() { | |
- var a, b, c; | |
- return b = _.now(), a = new Date(f.settings.initialServerDate.replace(/-/g, "/")), c = b - f.settings.initialClientTimestamp, c += f.settings.initialClientTimestamp - f.settings.initialServerTimestamp, a.setTime(a.getTime() + c), a.getTime() | |
- }, f.utils.getRemainingTime = function(a) { | |
- var b, c, d = 1e3; | |
- return c = a instanceof Date ? a.getTime() : "string" == typeof a ? new Date(a.replace(/-/g, "/")).getTime() : a, b = c - f.utils.getCurrentTimestamp(), b = Math.ceil(b / d) | |
- }, e = function() { | |
- var a, b, c; | |
- return a = document.createElement("div"), b = { | |
- transition: "transitionend", | |
- OTransition: "oTransitionEnd", | |
- MozTransition: "transitionend", | |
- WebkitTransition: "webkitTransitionEnd" | |
- }, c = _.find(_.keys(b), function(b) { | |
- return !_.isUndefined(a.style[b]) | |
- }), c ? b[c] : null | |
- }(), c = f.Class.extend({ | |
- defaultActiveArguments: { | |
- duration: "fast", | |
- completeCallback: b.noop | |
- }, | |
- defaultExpandedArguments: { | |
- duration: "fast", | |
- completeCallback: b.noop | |
- }, | |
- containerType: "container", | |
- defaults: { | |
- title: "", | |
- description: "", | |
- priority: 100, | |
- type: "default", | |
- content: null, | |
- active: !0, | |
- instanceNumber: null | |
- }, | |
- initialize: function(a, d) { | |
- var e = this; | |
- e.id = a, c.instanceCounter || (c.instanceCounter = 0), c.instanceCounter++, b.extend(e, { | |
- params: _.defaults(d.params || d, e.defaults) | |
- }), e.params.instanceNumber || (e.params.instanceNumber = c.instanceCounter), e.notifications = new f.Notifications, e.templateSelector = e.params.templateId || "customize-" + e.containerType + "-" + e.params.type, e.container = b(e.params.content), 0 === e.container.length && (e.container = b(e.getContainer())), e.headContainer = e.container, e.contentContainer = e.getContent(), e.container = e.container.add(e.contentContainer), e.deferred = { | |
- embedded: new b.Deferred | |
- }, e.priority = new f.Value, e.active = new f.Value, e.activeArgumentsQueue = [], e.expanded = new f.Value, e.expandedArgumentsQueue = [], e.active.bind(function(a) { | |
- var c = e.activeArgumentsQueue.shift(); | |
- c = b.extend({}, e.defaultActiveArguments, c), a = a && e.isContextuallyActive(), e.onChangeActive(a, c) | |
- }), e.expanded.bind(function(a) { | |
- var c = e.expandedArgumentsQueue.shift(); | |
- c = b.extend({}, e.defaultExpandedArguments, c), e.onChangeExpanded(a, c) | |
- }), e.deferred.embedded.done(function() { | |
- e.setupNotifications(), e.attachEvents() | |
- }), f.utils.bubbleChildValueChanges(e, ["priority", "active"]), e.priority.set(e.params.priority), e.active.set(e.params.active), e.expanded.set(!1) | |
- }, | |
- getNotificationsContainerElement: function() { | |
- var a = this; | |
- return a.contentContainer.find(".customize-control-notifications-container:first") | |
- }, | |
- setupNotifications: function() { | |
- var a, b = this; | |
- b.notifications.container = b.getNotificationsContainerElement(), a = function() { | |
- b.expanded.get() && b.notifications.render() | |
- }, b.expanded.bind(a), a(), b.notifications.bind("change", _.debounce(a)) | |
- }, | |
- ready: function() {}, | |
- _children: function(a, b) { | |
- var c = this, | |
- d = []; | |
- return f[b].each(function(b) { | |
- b[a].get() === c.id && d.push(b) | |
- }), d.sort(f.utils.prioritySort), d | |
- }, | |
- isContextuallyActive: function() { | |
- throw new Error("Container.isContextuallyActive() must be overridden in a subclass.") | |
- }, | |
- onChangeActive: function(a, c) { | |
- var d, e, g = this, | |
- h = g.headContainer; | |
- return c.unchanged ? void(c.completeCallback && c.completeCallback()) : (d = "resolved" === f.previewer.deferred.active.state() ? c.duration : 0, g.extended(f.Panel) && (f.panel.each(function(a) { | |
- a !== g && a.expanded() && (e = a, d = 0) | |
- }), a || _.each(g.sections(), function(a) { | |
- a.collapse({ | |
+ n.currentTheme = e.id, n.overlay.html(n.template(e)).fadeIn("fast").focus(), n.overlay.find("button.preview, button.preview-theme").toggleClass("disabled", a()), n.overlay.find("button.theme-install").toggleClass("disabled", a() || !1 === L.settings.theme._canInstall || !0 === L.settings.theme._filesystemCredentialsNeeded), n.$body.addClass("modal-open"), n.containFocus(n.overlay), n.updateLimits(), wp.a11y.speak(L.settings.l10n.announceThemeDetails.replace("%s", e.name)), t && t() | |
+ }, | |
+ closeDetails: function() { | |
+ this.$body.removeClass("modal-open"), this.overlay.fadeOut("fast"), L.control(this.params.action + "_theme_" + this.currentTheme).container.find(".theme").focus() | |
+ }, | |
+ containFocus: function(t) { | |
+ var n; | |
+ t.on("keydown", function(e) { | |
+ if (9 === e.keyCode) return (n = H(":tabbable", t)).last()[0] !== e.target || e.shiftKey ? n.first()[0] === e.target && e.shiftKey ? (n.last().focus(), !1) : void 0 : (n.first().focus(), !1) | |
+ }) | |
+ } | |
+ }), L.OuterSection = L.Section.extend({ | |
+ initialize: function() { | |
+ this.containerParent = "#customize-outer-theme-controls", this.containerPaneParent = ".customize-outer-pane-parent", L.Section.prototype.initialize.apply(this, arguments) | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ var n, i, a = this, | |
+ o = a.headContainer.closest(".wp-full-overlay-sidebar-content"), | |
+ s = a.contentContainer, | |
+ r = s.find(".customize-section-back"), | |
+ c = a.headContainer.find(".accordion-section-title").first(); | |
+ H(document.body).toggleClass("outer-section-open", e), a.container.toggleClass("open", e), a.container.removeClass("busy"), L.section.each(function(e) { | |
+ "outer" === e.params.type && e.id !== a.id && e.container.removeClass("open") | |
+ }), e && !s.hasClass("open") ? (n = t.unchanged ? t.completeCallback : H.proxy(function() { | |
+ a._animateChangeExpanded(function() { | |
+ c.attr("tabindex", "-1"), r.attr("tabindex", "0"), r.focus(), s.css("top", ""), o.scrollTop(0), t.completeCallback && t.completeCallback() | |
+ }), s.addClass("open") | |
+ }, this), a.panel() ? L.panel(a.panel()).expand({ | |
+ duration: t.duration, | |
+ completeCallback: n | |
+ }) : n()) : !e && s.hasClass("open") ? (a.panel() && (i = L.panel(a.panel())).contentContainer.hasClass("skip-transition") && i.collapse(), a._animateChangeExpanded(function() { | |
+ r.attr("tabindex", "-1"), c.attr("tabindex", "0"), c.focus(), s.css("top", ""), t.completeCallback && t.completeCallback() | |
+ }), s.removeClass("open")) : t.completeCallback && t.completeCallback() | |
+ } | |
+ }), L.Panel = a.extend({ | |
+ containerType: "panel", | |
+ initialize: function(e, t) { | |
+ var n, i = this; | |
+ (n = t.params || t).type || _.find(L.panelConstructor, function(e, t) { | |
+ return e === i.constructor && (n.type = t, !0) | |
+ }), a.prototype.initialize.call(i, e, n), i.embed(), i.deferred.embedded.done(function() { | |
+ i.ready() | |
+ }) | |
+ }, | |
+ embed: function() { | |
+ var e = this, | |
+ t = H("#customize-theme-controls"), | |
+ n = H(".customize-pane-parent"); | |
+ e.headContainer.parent().is(n) || n.append(e.headContainer), e.contentContainer.parent().is(e.headContainer) || t.append(e.contentContainer), e.renderContent(), e.deferred.embedded.resolve() | |
+ }, | |
+ attachEvents: function() { | |
+ var t, n = this; | |
+ n.headContainer.find(".accordion-section-title").on("click keydown", function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), n.expanded() || n.expand()) | |
+ }), n.container.find(".customize-panel-back").on("click keydown", function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), n.expanded() && n.collapse()) | |
+ }), (t = n.container.find(".panel-meta:first")).find("> .accordion-section-title .customize-help-toggle").on("click", function() { | |
+ if (!t.hasClass("cannot-expand")) { | |
+ var e = t.find(".customize-panel-description:first"); | |
+ t.hasClass("open") ? (t.toggleClass("open"), e.slideUp(n.defaultExpandedArguments.duration, function() { | |
+ e.trigger("toggled") | |
+ }), H(this).attr("aria-expanded", !1)) : (e.slideDown(n.defaultExpandedArguments.duration, function() { | |
+ e.trigger("toggled") | |
+ }), t.toggleClass("open"), H(this).attr("aria-expanded", !0)) | |
+ } | |
+ }) | |
+ }, | |
+ sections: function() { | |
+ return this._children("panel", "section") | |
+ }, | |
+ isContextuallyActive: function() { | |
+ var e = this.sections(), | |
+ t = 0; | |
+ return _(e).each(function(e) { | |
+ e.active() && e.isContextuallyActive() && (t += 1) | |
+ }), 0 !== t | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ if (t.unchanged) t.completeCallback && t.completeCallback(); | |
+ else { | |
+ var n = this, | |
+ i = n.contentContainer, | |
+ a = i.closest(".wp-full-overlay"), | |
+ o = i.closest(".wp-full-overlay-sidebar-content"), | |
+ s = n.headContainer.find(".accordion-section-title"), | |
+ r = i.find(".customize-panel-back"), | |
+ c = n.sections(); | |
+ e && !i.hasClass("current-panel") ? (L.section.each(function(e) { | |
+ n.id !== e.panel() && e.collapse({ | |
duration: 0 | |
}) | |
- })), void(b.contains(document, h.get(0)) ? a ? h.slideDown(d, c.completeCallback) : g.expanded() ? g.collapse({ | |
- duration: d, | |
- completeCallback: function() { | |
- h.slideUp(d, c.completeCallback) | |
- } | |
- }) : h.slideUp(d, c.completeCallback) : (h.toggle(a), c.completeCallback && c.completeCallback()))) | |
- }, | |
- _toggleActive: function(a, b) { | |
- var c = this; | |
- return b = b || {}, a && this.active.get() || !a && !this.active.get() ? (b.unchanged = !0, c.onChangeActive(c.active.get(), b), !1) : (b.unchanged = !1, this.activeArgumentsQueue.push(b), this.active.set(a), !0) | |
- }, | |
- activate: function(a) { | |
- return this._toggleActive(!0, a) | |
- }, | |
- deactivate: function(a) { | |
- return this._toggleActive(!1, a) | |
- }, | |
- onChangeExpanded: function() { | |
- throw new Error("Must override with subclass.") | |
- }, | |
- _toggleExpanded: function(a, b) { | |
- var c, d = this; | |
- return b = b || {}, c = b.completeCallback, !(a && !d.active()) && (f.state("paneVisible").set(!0), b.completeCallback = function() { | |
- c && c.apply(d, arguments), a ? d.container.trigger("expanded") : d.container.trigger("collapsed") | |
- }, a && d.expanded.get() || !a && !d.expanded.get() ? (b.unchanged = !0, d.onChangeExpanded(d.expanded.get(), b), !1) : (b.unchanged = !1, d.expandedArgumentsQueue.push(b), d.expanded.set(a), !0)) | |
- }, | |
- expand: function(a) { | |
- return this._toggleExpanded(!0, a) | |
- }, | |
- collapse: function(a) { | |
- return this._toggleExpanded(!1, a) | |
- }, | |
- _animateChangeExpanded: function(a) { | |
- if (!e) return void(a && a()); | |
- var c, d, g, h = this, | |
- i = h.contentContainer, | |
- j = i.closest(".wp-full-overlay"); | |
- c = j.add(i), g = !h.panel || "" === h.panel() || !!f.panel(h.panel()).contentContainer.hasClass("skip-transition"), g && (c = c.add("#customize-info, .customize-pane-parent")), d = function(f) { | |
- 2 === f.eventPhase && b(f.target).is(i) && (i.off(e, d), c.removeClass("busy"), a && a()) | |
- }, i.on(e, d), c.addClass("busy"), _.defer(function() { | |
- var a = i.closest(".wp-full-overlay-sidebar-content"), | |
- b = a.scrollTop(), | |
- c = i.data("previous-scrollTop") || 0, | |
- d = h.expanded(); | |
- d && 0 < b ? (i.css("top", b + "px"), i.data("previous-scrollTop", b)) : !d && 0 < b + c && (i.css("top", c - b + "px"), a.scrollTop(c)) | |
- }) | |
- }, | |
- focus: d, | |
- getContainer: function() { | |
- var a, c = this; | |
- return a = 0 !== b("#tmpl-" + c.templateSelector).length ? wp.template(c.templateSelector) : wp.template("customize-" + c.containerType + "-default"), a && c.container ? b.trim(a(_.extend({ | |
- id: c.id | |
- }, c.params))) : "<li></li>" | |
- }, | |
- getContent: function() { | |
- var a = this, | |
- b = a.container, | |
- c = b.find(".accordion-section-content, .control-panel-content").first(), | |
- d = "sub-" + b.attr("id"), | |
- e = d, | |
- f = b.attr("aria-owns"); | |
- return f && (e = e + " " + f), b.attr("aria-owns", e), c.detach().attr({ | |
- id: d, | |
- "class": "customize-pane-child " + c.attr("class") + " " + b.attr("class") | |
- }) | |
- } | |
- }), f.Section = c.extend({ | |
- containerType: "section", | |
- containerParent: "#customize-theme-controls", | |
- containerPaneParent: ".customize-pane-parent", | |
- defaults: { | |
- title: "", | |
- description: "", | |
- priority: 100, | |
- type: "default", | |
- content: null, | |
- active: !0, | |
- instanceNumber: null, | |
- panel: null, | |
- customizeAction: "" | |
- }, | |
- initialize: function(a, d) { | |
- var e, g = this; | |
- e = d.params || d, e.type || _.find(f.sectionConstructor, function(a, b) { | |
- return a === g.constructor && (e.type = b, !0) | |
- }), c.prototype.initialize.call(g, a, e), g.id = a, g.panel = new f.Value, g.panel.bind(function(a) { | |
- b(g.headContainer).toggleClass("control-subsection", !!a) | |
- }), g.panel.set(g.params.panel || ""), f.utils.bubbleChildValueChanges(g, ["panel"]), g.embed(), g.deferred.embedded.done(function() { | |
- g.ready() | |
- }) | |
- }, | |
- embed: function() { | |
- var a, b = this; | |
- b.containerParent = f.ensure(b.containerParent), a = function(a) { | |
- var c; | |
- a ? f.panel(a, function(a) { | |
- a.deferred.embedded.done(function() { | |
- c = a.contentContainer, b.headContainer.parent().is(c) || c.append(b.headContainer), b.contentContainer.parent().is(b.headContainer) || b.containerParent.append(b.contentContainer), b.deferred.embedded.resolve() | |
- }) | |
- }) : (c = f.ensure(b.containerPaneParent), b.headContainer.parent().is(c) || c.append(b.headContainer), b.contentContainer.parent().is(b.headContainer) || b.containerParent.append(b.contentContainer), b.deferred.embedded.resolve()) | |
- }, b.panel.bind(a), a(b.panel.get()) | |
- }, | |
- attachEvents: function() { | |
- var a, c, d = this; | |
- d.container.hasClass("cannot-expand") || (d.container.find(".accordion-section-title, .customize-section-back").on("click keydown", function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), d.expanded() ? d.collapse() : d.expand()) | |
- }), d.container.find(".customize-section-title .customize-help-toggle").on("click", function() { | |
- a = d.container.find(".section-meta"), a.hasClass("cannot-expand") || (c = a.find(".customize-section-description:first"), c.toggleClass("open"), c.slideToggle(d.defaultExpandedArguments.duration, function() { | |
- c.trigger("toggled") | |
- }), b(this).attr("aria-expanded", function(a, b) { | |
- return "true" === b ? "false" : "true" | |
- })) | |
+ }), L.panel.each(function(e) { | |
+ n !== e && e.collapse({ | |
+ duration: 0 | |
+ }) | |
+ }), n.params.autoExpandSoleSection && 1 === c.length && c[0].active.get() ? (i.addClass("current-panel skip-transition"), a.addClass("in-sub-panel"), c[0].expand({ | |
+ completeCallback: t.completeCallback | |
+ })) : (n._animateChangeExpanded(function() { | |
+ s.attr("tabindex", "-1"), r.attr("tabindex", "0"), r.focus(), i.css("top", ""), o.scrollTop(0), t.completeCallback && t.completeCallback() | |
+ }), i.addClass("current-panel"), a.addClass("in-sub-panel")), L.state("expandedPanel").set(n)) : !e && i.hasClass("current-panel") && (i.hasClass("skip-transition") ? i.removeClass("skip-transition") : n._animateChangeExpanded(function() { | |
+ s.attr("tabindex", "0"), r.attr("tabindex", "-1"), s.focus(), i.css("top", ""), t.completeCallback && t.completeCallback() | |
+ }), a.removeClass("in-sub-panel"), i.removeClass("current-panel"), n === L.state("expandedPanel").get() && L.state("expandedPanel").set(!1)) | |
+ } | |
+ }, | |
+ renderContent: function() { | |
+ var e, t = this; | |
+ (e = 0 !== H("#tmpl-" + t.templateSelector + "-content").length ? wp.template(t.templateSelector + "-content") : wp.template("customize-panel-default-content")) && t.headContainer && t.contentContainer.html(e(_.extend({ | |
+ id: t.id | |
+ }, t.params))) | |
+ } | |
+ }), L.ThemesPanel = L.Panel.extend({ | |
+ initialize: function(e, t) { | |
+ this.installingThemes = [], L.Panel.prototype.initialize.call(this, e, t) | |
+ }, | |
+ canSwitchTheme: function(e) { | |
+ return !(!e || e !== L.settings.theme.stylesheet) || "publish" === L.state("selectedChangesetStatus").get() && ("" === L.state("changesetStatus").get() || "auto-draft" === L.state("changesetStatus").get()) | |
+ }, | |
+ attachEvents: function() { | |
+ var t = this; | |
+ | |
+ function e() { | |
+ t.canSwitchTheme() ? t.notifications.remove("theme_switch_unavailable") : t.notifications.add(new L.Notification("theme_switch_unavailable", { | |
+ message: L.l10n.themePreviewUnavailable, | |
+ type: "warning" | |
})) | |
- }, | |
- isContextuallyActive: function() { | |
- var a = this, | |
- b = a.controls(), | |
- c = 0; | |
- return _(b).each(function(a) { | |
- a.active() && (c += 1) | |
- }), 0 !== c | |
- }, | |
- controls: function() { | |
- return this._children("section", "control") | |
- }, | |
- onChangeExpanded: function(a, c) { | |
- var d, e, g = this, | |
- h = g.headContainer.closest(".wp-full-overlay-sidebar-content"), | |
- i = g.contentContainer, | |
- j = g.headContainer.closest(".wp-full-overlay"), | |
- k = i.find(".customize-section-back"), | |
- l = g.headContainer.find(".accordion-section-title").first(); | |
- a && !i.hasClass("open") ? (d = c.unchanged ? c.completeCallback : b.proxy(function() { | |
- g._animateChangeExpanded(function() { | |
- l.attr("tabindex", "-1"), k.attr("tabindex", "0"), k.focus(), i.css("top", ""), h.scrollTop(0), c.completeCallback && c.completeCallback() | |
- }), i.addClass("open"), j.addClass("section-open"), f.state("expandedSection").set(g) | |
- }, this), c.allowMultiple || f.section.each(function(a) { | |
- a !== g && a.collapse({ | |
- duration: c.duration | |
- }) | |
- }), g.panel() ? f.panel(g.panel()).expand({ | |
- duration: c.duration, | |
- completeCallback: d | |
- }) : (c.allowMultiple || f.panel.each(function(a) { | |
- a.collapse() | |
- }), d())) : !a && i.hasClass("open") ? (g.panel() && (e = f.panel(g.panel()), e.contentContainer.hasClass("skip-transition") && e.collapse()), g._animateChangeExpanded(function() { | |
- k.attr("tabindex", "-1"), l.attr("tabindex", "0"), l.focus(), i.css("top", ""), c.completeCallback && c.completeCallback() | |
- }), i.removeClass("open"), j.removeClass("section-open"), g === f.state("expandedSection").get() && f.state("expandedSection").set(!1)) : c.completeCallback && c.completeCallback() | |
} | |
- }), f.ThemesSection = f.Section.extend({ | |
- currentTheme: "", | |
- overlay: "", | |
- template: "", | |
- screenshotQueue: null, | |
- $window: null, | |
- $body: null, | |
- loaded: 0, | |
- loading: !1, | |
- fullyLoaded: !1, | |
- term: "", | |
- tags: "", | |
- nextTerm: "", | |
- nextTags: "", | |
- filtersHeight: 0, | |
- headerContainer: null, | |
- updateCountDebounced: null, | |
- initialize: function(a, c) { | |
- var d = this; | |
- d.headerContainer = b(), d.$window = b(window), d.$body = b(document.body), f.Section.prototype.initialize.call(d, a, c), d.updateCountDebounced = _.debounce(d.updateCount, 500) | |
- }, | |
- embed: function() { | |
- var a, b = this; | |
- a = function(a) { | |
- var c; | |
- f.panel(a, function(a) { | |
- a.deferred.embedded.done(function() { | |
- c = a.contentContainer, b.headContainer.parent().is(c) || c.find(".customize-themes-full-container-container").before(b.headContainer), b.contentContainer.parent().is(b.headContainer) || b.containerParent.append(b.contentContainer), b.deferred.embedded.resolve() | |
- }) | |
+ L.Panel.prototype.attachEvents.apply(t), L.settings.theme._canInstall && L.settings.theme._filesystemCredentialsNeeded && t.notifications.add(new L.Notification("theme_install_unavailable", { | |
+ message: L.l10n.themeInstallUnavailable, | |
+ type: "info", | |
+ dismissible: !0 | |
+ })), e(), L.state("selectedChangesetStatus").bind(e), L.state("changesetStatus").bind(e), t.contentContainer.on("click", ".customize-theme", function() { | |
+ t.collapse() | |
+ }), t.contentContainer.on("click", ".customize-themes-section-title, .customize-themes-mobile-back", function() { | |
+ H(".wp-full-overlay").toggleClass("showing-themes") | |
+ }), t.contentContainer.on("click", ".theme-install", function(e) { | |
+ t.installTheme(e) | |
+ }), t.contentContainer.on("click", ".update-theme, #update-theme", function(e) { | |
+ e.preventDefault(), e.stopPropagation(), t.updateTheme(e) | |
+ }), t.contentContainer.on("click", ".delete-theme", function(e) { | |
+ t.deleteTheme(e) | |
+ }), _.bindAll(t, "installTheme", "updateTheme") | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ var n, i, a = !1; | |
+ L.Panel.prototype.onChangeExpanded.apply(this, [e, t]), t.unchanged ? t.completeCallback && t.completeCallback() : (n = this.headContainer.closest(".wp-full-overlay"), e ? (n.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"), _.delay(function() { | |
+ n.addClass("themes-panel-expanded") | |
+ }, 200), 600 < window.innerWidth && (i = this.sections(), _.each(i, function(e) { | |
+ e.expanded() && (a = !0) | |
+ }), !a && 0 < i.length && i[0].expand())) : n.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate")) | |
+ }, | |
+ installTheme: function(e) { | |
+ var i, t, n, a = this, | |
+ o = H(e.target).data("slug"), | |
+ s = H.Deferred(); | |
+ return i = H(e.target).hasClass("preview"), L.settings.theme._filesystemCredentialsNeeded ? s.reject({ | |
+ errorCode: "theme_install_unavailable" | |
+ }) : a.canSwitchTheme(o) ? _.contains(a.installingThemes, o) ? s.reject({ | |
+ errorCode: "theme_already_installing" | |
+ }) : (wp.updates.maybeRequestFilesystemCredentials(e), t = function(t) { | |
+ var e, n = !1; | |
+ if (i) L.notifications.remove("theme_installing"), a.loadThemePreview(o); | |
+ else { | |
+ if (L.control.each(function(e) { | |
+ "theme" === e.params.type && e.params.theme.id === t.slug && (n = e.params.theme, e.rerenderAsInstalled(!0)) | |
+ }), !n || L.control.has("installed_theme_" + n.id)) return void s.resolve(t); | |
+ n.type = "installed", e = new L.controlConstructor.theme("installed_theme_" + n.id, { | |
+ type: "theme", | |
+ section: "installed_themes", | |
+ theme: n, | |
+ priority: 0 | |
+ }), L.control.add(e), L.control(e.id).container.trigger("render-screenshot"), L.section.each(function(e) { | |
+ "themes" === e.params.type && n.id === e.currentTheme && e.closeDetails() | |
}) | |
- }, b.panel.bind(a), a(b.panel.get()) | |
- }, | |
- ready: function() { | |
- var a = this; | |
- a.overlay = a.container.find(".theme-overlay"), a.template = wp.template("customize-themes-details-view"), a.container.on("keydown", function(b) { | |
- a.overlay.find(".theme-wrap").is(":visible") && (39 === b.keyCode && a.nextTheme(), 37 === b.keyCode && a.previousTheme(), 27 === b.keyCode && (a.$body.hasClass("modal-open") ? a.closeDetails() : a.headerContainer.find(".customize-themes-section-title").focus(), b.stopPropagation())) | |
- }), a.renderScreenshots = _.throttle(a.renderScreenshots, 100), _.bindAll(a, "renderScreenshots", "loadMore", "checkTerm", "filtersChecked") | |
- }, | |
- isContextuallyActive: function() { | |
- return this.active() | |
- }, | |
- attachEvents: function() { | |
- function a() { | |
- var a = d.headerContainer.find(".customize-themes-section-title"); | |
- a.toggleClass("selected", d.expanded()), a.attr("aria-expanded", d.expanded() ? "true" : "false"), d.expanded() || a.removeClass("details-open") | |
- } | |
- var c, d = this; | |
- d.container.find(".customize-section-back").on("click keydown", function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), d.collapse()) | |
- }), d.headerContainer = b("#accordion-section-" + d.id), d.headerContainer.on("click", ".customize-themes-section-title", function() { | |
- d.headerContainer.find(".filter-details").length && (d.headerContainer.find(".customize-themes-section-title").toggleClass("details-open").attr("aria-expanded", function(a, b) { | |
- return "true" === b ? "false" : "true" | |
- }), d.headerContainer.find(".filter-details").slideToggle(180)), d.expanded() || d.expand() | |
- }), d.container.on("click", ".theme-actions .preview-theme", function() { | |
- f.panel("themes").loadThemePreview(b(this).data("slug")) | |
- }), d.container.on("click", ".left", function() { | |
- d.previousTheme() | |
- }), d.container.on("click", ".right", function() { | |
- d.nextTheme() | |
- }), d.container.on("click", ".theme-backdrop, .close", function() { | |
- d.closeDetails() | |
- }), "local" === d.params.filter_type ? d.container.on("input", ".wp-filter-search-themes", function(a) { | |
- d.filterSearch(a.currentTarget.value) | |
- }) : "remote" === d.params.filter_type && (c = _.debounce(d.checkTerm, 500), d.contentContainer.on("input", ".wp-filter-search", function() { | |
- f.panel("themes").expanded() && (c(d), d.expanded() || d.expand()) | |
- }), d.contentContainer.on("click", ".filter-group input", function() { | |
- d.filtersChecked(), d.checkTerm(d) | |
- })), d.contentContainer.on("click", ".feature-filter-toggle", function(a) { | |
- var c = b(".customize-themes-full-container"), | |
- e = b(a.currentTarget); | |
- if (d.filtersHeight = e.parent().next(".filter-drawer").height(), !(0 < c.scrollTop() && (c.animate({ | |
- scrollTop: 0 | |
- }, 400), e.hasClass("open")))) | |
- if (e.toggleClass("open").attr("aria-expanded", function(a, b) { | |
- return "true" === b ? "false" : "true" | |
- }).parent().next(".filter-drawer").slideToggle(180, "linear"), e.hasClass("open")) { | |
- var f = 1018 < window.innerWidth ? 50 : 76; | |
- d.contentContainer.find(".themes").css("margin-top", d.filtersHeight + f) | |
- } else d.contentContainer.find(".themes").css("margin-top", 0) | |
- }), d.contentContainer.on("click", ".no-themes-local .search-dotorg-themes", function() { | |
- f.section("wporg_themes").focus() | |
- }), d.expanded.bind(a), a(), f.bind("ready", function() { | |
- d.contentContainer = d.container.find(".customize-themes-section"), d.contentContainer.appendTo(b(".customize-themes-full-container")), d.container.add(d.headerContainer) | |
- }) | |
- }, | |
- onChangeExpanded: function(a, b) { | |
- function c() { | |
- 0 === d.loaded && d.loadThemes(), f.section.each(function(a) { | |
- var c; | |
- a !== d && "themes" === a.params.type && (c = a.contentContainer.find(".wp-filter-search").val(), d.contentContainer.find(".wp-filter-search").val(c), "" === c && "" !== d.term && "local" !== d.params.filter_type ? (d.term = "", d.initializeNewQuery(d.term, d.tags)) : "remote" === d.params.filter_type ? d.checkTerm(d) : "local" === d.params.filter_type && d.filterSearch(c), a.collapse({ | |
- duration: b.duration | |
- })) | |
- }), d.contentContainer.addClass("current-section"), e.scrollTop(), e.on("scroll", _.throttle(d.renderScreenshots, 300)), e.on("scroll", _.throttle(d.loadMore, 300)), b.completeCallback && b.completeCallback(), d.updateCount() | |
} | |
- var d = this, | |
- e = d.contentContainer.closest(".customize-themes-full-container"); | |
- return b.unchanged ? void(b.completeCallback && b.completeCallback()) : void(a ? d.panel() && f.panel.has(d.panel()) ? f.panel(d.panel()).expand({ | |
- duration: b.duration, | |
- completeCallback: c | |
- }) : c() : (d.contentContainer.removeClass("current-section"), d.headerContainer.find(".filter-details").slideUp(180), e.off("scroll"), b.completeCallback && b.completeCallback())) | |
- }, | |
- getContent: function() { | |
- return this.container.find(".control-section-content") | |
- }, | |
- loadThemes: function() { | |
- var a, b, c, d = this; | |
- d.loading || (b = Math.ceil(d.loaded / 100) + 1, a = { | |
- nonce: f.settings.nonce.switch_themes, | |
- wp_customize: "on", | |
- theme_action: d.params.action, | |
- customized_theme: f.settings.theme.stylesheet, | |
- page: b | |
- }, "remote" === d.params.filter_type && (a.search = d.term, a.tags = d.tags), d.headContainer.closest(".wp-full-overlay").addClass("loading"), d.loading = !0, d.container.find(".no-themes").hide(), c = wp.ajax.post("customize_load_themes", a), c.done(function(a) { | |
- var c = a.themes; | |
- return "" !== d.nextTerm || "" !== d.nextTags ? (d.nextTerm && (d.term = d.nextTerm), d.nextTags && (d.tags = d.nextTags), d.nextTerm = "", d.nextTags = "", d.loading = !1, void d.loadThemes()) : (0 !== c.length ? (d.loadControls(c, b), 1 === b && (_.each(d.controls().slice(0, 3), function(a) { | |
- var b, c = a.params.theme.screenshot[0]; | |
- c && (b = new Image, b.src = c) | |
- }), "local" !== d.params.filter_type && wp.a11y.speak(f.settings.l10n.themeSearchResults.replace("%d", a.info.results))), _.delay(d.renderScreenshots, 100), ("local" === d.params.filter_type || 100 > c.length) && (d.fullyLoaded = !0)) : 0 === d.loaded ? (d.container.find(".no-themes").show(), wp.a11y.speak(d.container.find(".no-themes").text())) : d.fullyLoaded = !0, "local" === d.params.filter_type ? d.updateCount() : d.updateCount(a.info.results), d.container.find(".unexpected-error").hide(), d.headContainer.closest(".wp-full-overlay").removeClass("loading"), void(d.loading = !1)) | |
- }), c.fail(function(a) { | |
- "undefined" == typeof a ? (d.container.find(".unexpected-error").show(), wp.a11y.speak(d.container.find(".unexpected-error").text())) : "undefined" != typeof console && console.error && console.error(a), d.headContainer.closest(".wp-full-overlay").removeClass("loading"), d.loading = !1 | |
+ s.resolve(t) | |
+ }, a.installingThemes.push(o), n = wp.updates.installTheme({ | |
+ slug: o | |
+ }), i && L.notifications.add(new L.OverlayNotification("theme_installing", { | |
+ message: L.l10n.themeDownloading, | |
+ type: "info", | |
+ loading: !0 | |
+ })), n.done(t), n.fail(function() { | |
+ L.notifications.remove("theme_installing") | |
+ })) : s.reject({ | |
+ errorCode: "theme_switch_unavailable" | |
+ }), s.promise() | |
+ }, | |
+ loadThemePreview: function(e) { | |
+ var t, n, i, a = H.Deferred(); | |
+ return this.canSwitchTheme(e) ? ((n = document.createElement("a")).href = location.href, i = _.extend(L.utils.parseQueryString(n.search.substr(1)), { | |
+ theme: e, | |
+ changeset_uuid: L.settings.changeset.uuid, | |
+ return: L.settings.url.return | |
+ }), L.state("saved").get() || (i.customize_autosaved = "on"), n.search = H.param(i), L.notifications.add(new L.OverlayNotification("theme_previewing", { | |
+ message: L.l10n.themePreviewWait, | |
+ type: "info", | |
+ loading: !0 | |
+ })), t = function() { | |
+ var e; | |
+ 0 < L.state("processing").get() || (L.state("processing").unbind(t), (e = L.requestChangesetUpdate({}, { | |
+ autosave: !0 | |
+ })).done(function() { | |
+ a.resolve(), H(window).off("beforeunload.customize-confirm"), location.replace(n.href) | |
+ }), e.fail(function() { | |
+ L.notifications.remove("theme_previewing"), a.reject() | |
})) | |
- }, | |
- loadControls: function(a, b) { | |
- var c = [], | |
- d = this; | |
- _.each(a, function(a) { | |
- var b = new f.controlConstructor.theme(d.params.action + "_theme_" + a.id, { | |
- type: "theme", | |
- section: d.params.id, | |
- theme: a, | |
- priority: d.loaded + 1 | |
- }); | |
- f.control.add(b), c.push(b), d.loaded = d.loaded + 1 | |
- }), 1 !== b && Array.prototype.push.apply(d.screenshotQueue, c) | |
- }, | |
- loadMore: function() { | |
- var a, b, c, d = this; | |
- d.fullyLoaded || d.loading || (a = d.container.closest(".customize-themes-full-container"), b = a.scrollTop() + a.height(), c = a.prop("scrollHeight") - 3e3, b > c && d.loadThemes()) | |
- }, | |
- filterSearch: function(a) { | |
- var b, c = 0, | |
- d = !1, | |
- e = this, | |
- g = f.section.has("wporg_themes") && "remote" !== e.params.filter_type ? ".no-themes-local" : ".no-themes", | |
- h = e.controls(); | |
- e.loading || (b = a.toLowerCase().trim().replace(/-/g, " ").split(" "), _.each(h, function(a) { | |
- d = a.filter(b), d && (c += 1) | |
- }), 0 === c ? (e.container.find(g).show(), wp.a11y.speak(e.container.find(g).text())) : e.container.find(g).hide(), e.renderScreenshots(), f.reflowPaneContents(), e.updateCountDebounced(c)) | |
- }, | |
- checkTerm: function(a) { | |
- var b; | |
- "remote" === a.params.filter_type && (b = a.contentContainer.find(".wp-filter-search").val(), a.term !== b.trim() && a.initializeNewQuery(b, a.tags)) | |
- }, | |
- filtersChecked: function() { | |
- var a = this, | |
- c = a.container.find(".filter-group").find(":checkbox"), | |
- d = []; | |
- _.each(c.filter(":checked"), function(a) { | |
- d.push(b(a).prop("value")) | |
- }), 0 === d.length ? (d = "", a.contentContainer.find(".feature-filter-toggle .filter-count-0").show(), a.contentContainer.find(".feature-filter-toggle .filter-count-filters").hide()) : (a.contentContainer.find(".feature-filter-toggle .theme-filter-count").text(d.length), a.contentContainer.find(".feature-filter-toggle .filter-count-0").hide(), a.contentContainer.find(".feature-filter-toggle .filter-count-filters").show()), _.isEqual(a.tags, d) || (a.loading ? a.nextTags = d : "remote" === a.params.filter_type ? a.initializeNewQuery(a.term, d) : "local" === a.params.filter_type && a.filterSearch(d.join(" "))) | |
- }, | |
- initializeNewQuery: function(a, b) { | |
- var c = this; | |
- _.each(c.controls(), function(a) { | |
- a.container.remove(), f.control.remove(a.id) | |
- }), c.loaded = 0, c.fullyLoaded = !1, c.screenshotQueue = null, c.loading ? (c.nextTerm = a, c.nextTags = b) : (c.term = a, c.tags = b, c.loadThemes()), c.expanded() || c.expand() | |
- }, | |
- renderScreenshots: function() { | |
- var a = this; | |
- null !== a.screenshotQueue && 0 !== a.screenshotQueue.length || (a.screenshotQueue = _.filter(a.controls(), function(a) { | |
- return !a.screenshotRendered | |
- })), a.screenshotQueue.length && (a.screenshotQueue = _.filter(a.screenshotQueue, function(b) { | |
- var c = b.container.find(".theme-screenshot"), | |
- d = c.find("img"); | |
- if (!d.length) return !1; | |
- if (d.is(":hidden")) return !0; | |
- var e = a.$window.scrollTop(), | |
- f = e + a.$window.height(), | |
- g = d.offset().top, | |
- h = c.height(), | |
- i = g + h, | |
- j = 3 * h, | |
- k = i >= e - j && g <= f + j; | |
- return k && b.container.trigger("render-screenshot"), !k | |
- })) | |
- }, | |
- getVisibleCount: function() { | |
- return this.contentContainer.find("li.customize-control:visible").length | |
- }, | |
- updateCount: function(a) { | |
- var b, c, d = this; | |
- a || 0 === a || (a = d.getVisibleCount()), c = d.contentContainer.find(".themes-displayed"), b = d.contentContainer.find(".theme-count"), 0 === a ? b.text("0") : (c.fadeOut(180, function() { | |
- b.text(a), c.fadeIn(180) | |
- }), wp.a11y.speak(f.settings.l10n.announceThemeCount.replace("%d", a))) | |
- }, | |
- nextTheme: function() { | |
- var a = this; | |
- a.getNextTheme() && a.showDetails(a.getNextTheme(), function() { | |
- a.overlay.find(".right").focus() | |
- }) | |
- }, | |
- getNextTheme: function() { | |
- var a, b, c, d, e = this; | |
- return a = f.control(e.params.action + "_theme_" + e.currentTheme), c = e.controls(), d = _.indexOf(c, a), -1 !== d && (b = c[d + 1], !!b && b.params.theme) | |
- }, | |
- previousTheme: function() { | |
- var a = this; | |
- a.getPreviousTheme() && a.showDetails(a.getPreviousTheme(), function() { | |
- a.overlay.find(".left").focus() | |
- }) | |
- }, | |
- getPreviousTheme: function() { | |
- var a, b, c, d, e = this; | |
- return a = f.control(e.params.action + "_theme_" + e.currentTheme), c = e.controls(), d = _.indexOf(c, a), -1 !== d && (b = c[d - 1], !!b && b.params.theme) | |
- }, | |
- updateLimits: function() { | |
- this.getNextTheme() || this.overlay.find(".right").addClass("disabled"), this.getPreviousTheme() || this.overlay.find(".left").addClass("disabled") | |
- }, | |
- loadThemePreview: function(a) { | |
- return f.ThemesPanel.prototype.loadThemePreview.call(this, a) | |
- }, | |
- showDetails: function(a, b) { | |
- function c() { | |
- return !g.canSwitchTheme(a.id) | |
- } | |
- | |
- function d() { | |
- return c() || !1 === f.settings.theme._canInstall || !0 === f.settings.theme._filesystemCredentialsNeeded | |
- } | |
- var e = this, | |
- g = f.panel("themes"); | |
- e.currentTheme = a.id, e.overlay.html(e.template(a)).fadeIn("fast").focus(), e.overlay.find("button.preview, button.preview-theme").toggleClass("disabled", c()), e.overlay.find("button.theme-install").toggleClass("disabled", d()), e.$body.addClass("modal-open"), e.containFocus(e.overlay), e.updateLimits(), wp.a11y.speak(f.settings.l10n.announceThemeDetails.replace("%s", a.name)), b && b() | |
- }, | |
- closeDetails: function() { | |
- var a = this; | |
- a.$body.removeClass("modal-open"), a.overlay.fadeOut("fast"), f.control(a.params.action + "_theme_" + a.currentTheme).container.find(".theme").focus() | |
- }, | |
- containFocus: function(a) { | |
- var c; | |
- a.on("keydown", function(d) { | |
- if (9 === d.keyCode) return c = b(":tabbable", a), c.last()[0] !== d.target || d.shiftKey ? c.first()[0] === d.target && d.shiftKey ? (c.last().focus(), !1) : void 0 : (c.first().focus(), !1) | |
+ }, 0 === L.state("processing").get() ? t() : L.state("processing").bind(t)) : a.reject({ | |
+ errorCode: "theme_switch_unavailable" | |
+ }), a.promise() | |
+ }, | |
+ updateTheme: function(e) { | |
+ wp.updates.maybeRequestFilesystemCredentials(e), H(document).one("wp-theme-update-success", function(e, t) { | |
+ L.control.each(function(e) { | |
+ "theme" === e.params.type && e.params.theme.id === t.slug && (e.params.theme.hasUpdate = !1, e.params.theme.version = t.newVersion, setTimeout(function() { | |
+ e.rerenderAsInstalled(!0) | |
+ }, 2e3)) | |
}) | |
- } | |
- }), f.OuterSection = f.Section.extend({ | |
- initialize: function() { | |
- var a = this; | |
- a.containerParent = "#customize-outer-theme-controls", a.containerPaneParent = ".customize-outer-pane-parent", f.Section.prototype.initialize.apply(a, arguments) | |
- }, | |
- onChangeExpanded: function(a, c) { | |
- var d, e, g = this, | |
- h = g.headContainer.closest(".wp-full-overlay-sidebar-content"), | |
- i = g.contentContainer, | |
- j = i.find(".customize-section-back"), | |
- k = g.headContainer.find(".accordion-section-title").first(), | |
- l = b(document.body); | |
- l.toggleClass("outer-section-open", a), g.container.toggleClass("open", a), g.container.removeClass("busy"), f.section.each(function(a) { | |
- "outer" === a.params.type && a.id !== g.id && a.container.removeClass("open") | |
- }), a && !i.hasClass("open") ? (d = c.unchanged ? c.completeCallback : b.proxy(function() { | |
- g._animateChangeExpanded(function() { | |
- k.attr("tabindex", "-1"), j.attr("tabindex", "0"), j.focus(), i.css("top", ""), h.scrollTop(0), c.completeCallback && c.completeCallback() | |
- }), i.addClass("open") | |
- }, this), g.panel() ? f.panel(g.panel()).expand({ | |
- duration: c.duration, | |
- completeCallback: d | |
- }) : d()) : !a && i.hasClass("open") ? (g.panel() && (e = f.panel(g.panel()), e.contentContainer.hasClass("skip-transition") && e.collapse()), g._animateChangeExpanded(function() { | |
- j.attr("tabindex", "-1"), k.attr("tabindex", "0"), k.focus(), i.css("top", ""), c.completeCallback && c.completeCallback() | |
- }), i.removeClass("open")) : c.completeCallback && c.completeCallback() | |
- } | |
- }), f.Panel = c.extend({ | |
- containerType: "panel", | |
- initialize: function(a, b) { | |
- var d, e = this; | |
- d = b.params || b, d.type || _.find(f.panelConstructor, function(a, b) { | |
- return a === e.constructor && (d.type = b, !0) | |
- }), c.prototype.initialize.call(e, a, d), e.embed(), e.deferred.embedded.done(function() { | |
- e.ready() | |
- }) | |
- }, | |
- embed: function() { | |
- var a = this, | |
- c = b("#customize-theme-controls"), | |
- d = b(".customize-pane-parent"); | |
- a.headContainer.parent().is(d) || d.append(a.headContainer), a.contentContainer.parent().is(a.headContainer) || c.append(a.contentContainer), a.renderContent(), a.deferred.embedded.resolve() | |
- }, | |
- attachEvents: function() { | |
- var a, c = this; | |
- c.headContainer.find(".accordion-section-title").on("click keydown", function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), c.expanded() || c.expand()) | |
- }), c.container.find(".customize-panel-back").on("click keydown", function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), c.expanded() && c.collapse()) | |
- }), a = c.container.find(".panel-meta:first"), a.find("> .accordion-section-title .customize-help-toggle").on("click", function() { | |
- if (!a.hasClass("cannot-expand")) { | |
- var d = a.find(".customize-panel-description:first"); | |
- a.hasClass("open") ? (a.toggleClass("open"), d.slideUp(c.defaultExpandedArguments.duration, function() { | |
- d.trigger("toggled") | |
- }), b(this).attr("aria-expanded", !1)) : (d.slideDown(c.defaultExpandedArguments.duration, function() { | |
- d.trigger("toggled") | |
- }), a.toggleClass("open"), b(this).attr("aria-expanded", !0)) | |
+ }), wp.updates.updateTheme({ | |
+ slug: H(e.target).closest(".notice").data("slug") | |
+ }) | |
+ }, | |
+ deleteTheme: function(e) { | |
+ var t, n; | |
+ t = H(e.target).data("slug"), n = L.section("installed_themes"), e.preventDefault(), L.settings.theme._filesystemCredentialsNeeded || window.confirm(L.settings.l10n.confirmDeleteTheme) && (wp.updates.maybeRequestFilesystemCredentials(e), H(document).one("wp-theme-delete-success", function() { | |
+ var e = L.control("installed_theme_" + t); | |
+ e.container.remove(), L.control.remove(e.id), n.loaded = n.loaded - 1, n.updateCount(), L.control.each(function(e) { | |
+ "theme" === e.params.type && e.params.theme.id === t && e.rerenderAsInstalled(!1) | |
+ }) | |
+ }), wp.updates.deleteTheme({ | |
+ slug: t | |
+ }), n.closeDetails(), n.focus()) | |
+ } | |
+ }), L.Control = L.Class.extend({ | |
+ defaultActiveArguments: { | |
+ duration: "fast", | |
+ completeCallback: H.noop | |
+ }, | |
+ defaults: { | |
+ label: "", | |
+ description: "", | |
+ active: !0, | |
+ priority: 10 | |
+ }, | |
+ initialize: function(e, t) { | |
+ var n, i, a = this, | |
+ o = []; | |
+ a.params = _.extend({}, a.defaults, a.params || {}, t.params || t || {}), L.Control.instanceCounter || (L.Control.instanceCounter = 0), L.Control.instanceCounter++, a.params.instanceNumber || (a.params.instanceNumber = L.Control.instanceCounter), a.params.type || _.find(L.controlConstructor, function(e, t) { | |
+ return e === a.constructor && (a.params.type = t, !0) | |
+ }), a.params.content || (a.params.content = H("<li></li>", { | |
+ id: "customize-control-" + e.replace(/]/g, "").replace(/\[/g, "-"), | |
+ class: "customize-control customize-control-" + a.params.type | |
+ })), a.id = e, a.selector = "#customize-control-" + e.replace(/\]/g, "").replace(/\[/g, "-"), a.params.content ? a.container = H(a.params.content) : a.container = H(a.selector), a.params.templateId ? a.templateSelector = a.params.templateId : a.templateSelector = "customize-control-" + a.params.type + "-content", a.deferred = _.extend(a.deferred || {}, { | |
+ embedded: new H.Deferred | |
+ }), a.section = new L.Value, a.priority = new L.Value, a.active = new L.Value, a.activeArgumentsQueue = [], a.notifications = new L.Notifications({ | |
+ alt: a.altNotice | |
+ }), a.elements = [], a.active.bind(function(e) { | |
+ var t = a.activeArgumentsQueue.shift(); | |
+ t = H.extend({}, a.defaultActiveArguments, t), a.onChangeActive(e, t) | |
+ }), a.section.set(a.params.section), a.priority.set(isNaN(a.params.priority) ? 10 : a.params.priority), a.active.set(a.params.active), L.utils.bubbleChildValueChanges(a, ["section", "priority", "active"]), a.settings = {}, n = {}, a.params.setting && (n.default = a.params.setting), _.extend(n, a.params.settings), _.each(n, function(e, t) { | |
+ var n; | |
+ _.isObject(e) && _.isFunction(e.extended) && e.extended(L.Value) ? a.settings[t] = e : _.isString(e) && ((n = L(e)) ? a.settings[t] = n : o.push(e)) | |
+ }), i = function() { | |
+ _.each(n, function(e, t) { | |
+ !a.settings[t] && _.isString(e) && (a.settings[t] = L(e)) | |
+ }), a.settings[0] && !a.settings.default && (a.settings.default = a.settings[0]), a.setting = a.settings.default || null, a.linkElements(), a.embed() | |
+ }, 0 === o.length ? i() : L.apply(L, o.concat(i)), a.deferred.embedded.done(function() { | |
+ a.linkElements(), a.setupNotifications(), a.ready() | |
+ }) | |
+ }, | |
+ linkElements: function() { | |
+ var i, a, o, s = this; | |
+ i = s.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"), a = {}, i.each(function() { | |
+ var e, t, n = H(this); | |
+ if (!n.data("customizeSettingLinked")) { | |
+ if (n.data("customizeSettingLinked", !0), n.is(":radio")) { | |
+ if (e = n.prop("name"), a[e]) return; | |
+ a[e] = !0, n = i.filter('[name="' + e + '"]') | |
} | |
- }) | |
- }, | |
- sections: function() { | |
- return this._children("panel", "section") | |
- }, | |
- isContextuallyActive: function() { | |
- var a = this, | |
- b = a.sections(), | |
- c = 0; | |
- return _(b).each(function(a) { | |
- a.active() && a.isContextuallyActive() && (c += 1) | |
- }), 0 !== c | |
- }, | |
- onChangeExpanded: function(a, b) { | |
- if (b.unchanged) return void(b.completeCallback && b.completeCallback()); | |
- var c, d = this, | |
- e = d.contentContainer, | |
- g = e.closest(".wp-full-overlay"), | |
- h = e.closest(".wp-full-overlay-sidebar-content"), | |
- i = d.headContainer.find(".accordion-section-title"), | |
- j = e.find(".customize-panel-back"), | |
- k = d.sections(); | |
- a && !e.hasClass("current-panel") ? (f.section.each(function(a) { | |
- d.id !== a.panel() && a.collapse({ | |
- duration: 0 | |
- }) | |
- }), f.panel.each(function(a) { | |
- d !== a && a.collapse({ | |
- duration: 0 | |
- }); | |
- }), d.params.autoExpandSoleSection && 1 === k.length && k[0].active.get() ? (e.addClass("current-panel skip-transition"), g.addClass("in-sub-panel"), k[0].expand({ | |
- completeCallback: b.completeCallback | |
- })) : (d._animateChangeExpanded(function() { | |
- i.attr("tabindex", "-1"), j.attr("tabindex", "0"), j.focus(), e.css("top", ""), h.scrollTop(0), b.completeCallback && b.completeCallback() | |
- }), e.addClass("current-panel"), g.addClass("in-sub-panel")), f.state("expandedPanel").set(d)) : !a && e.hasClass("current-panel") && (c = e.hasClass("skip-transition"), c ? e.removeClass("skip-transition") : d._animateChangeExpanded(function() { | |
- i.attr("tabindex", "0"), j.attr("tabindex", "-1"), i.focus(), e.css("top", ""), b.completeCallback && b.completeCallback() | |
- }), g.removeClass("in-sub-panel"), e.removeClass("current-panel"), d === f.state("expandedPanel").get() && f.state("expandedPanel").set(!1)) | |
- }, | |
- renderContent: function() { | |
- var a, c = this; | |
- a = 0 !== b("#tmpl-" + c.templateSelector + "-content").length ? wp.template(c.templateSelector + "-content") : wp.template("customize-panel-default-content"), a && c.headContainer && c.contentContainer.html(a(_.extend({ | |
- id: c.id | |
- }, c.params))) | |
- } | |
- }), f.ThemesPanel = f.Panel.extend({ | |
- initialize: function(a, b) { | |
- var c = this; | |
- c.installingThemes = [], f.Panel.prototype.initialize.call(c, a, b) | |
- }, | |
- canSwitchTheme: function(a) { | |
- return !(!a || a !== f.settings.theme.stylesheet) || "publish" === f.state("selectedChangesetStatus").get() && ("" === f.state("changesetStatus").get() || "auto-draft" === f.state("changesetStatus").get()) | |
- }, | |
- attachEvents: function() { | |
- function a() { | |
- c.canSwitchTheme() ? c.notifications.remove("theme_switch_unavailable") : c.notifications.add(new f.Notification("theme_switch_unavailable", { | |
- message: f.l10n.themePreviewUnavailable, | |
- type: "warning" | |
- })) | |
+ n.data("customizeSettingLink") ? t = L(n.data("customizeSettingLink")) : n.data("customizeSettingKeyLink") && (t = s.settings[n.data("customizeSettingKeyLink")]), t && (o = new L.Element(n), s.elements.push(o), o.sync(t), o.set(t())) | |
} | |
- var c = this; | |
- f.Panel.prototype.attachEvents.apply(c), f.settings.theme._canInstall && f.settings.theme._filesystemCredentialsNeeded && c.notifications.add(new f.Notification("theme_install_unavailable", { | |
- message: f.l10n.themeInstallUnavailable, | |
- type: "info", | |
- dismissible: !0 | |
- })), a(), f.state("selectedChangesetStatus").bind(a), f.state("changesetStatus").bind(a), c.contentContainer.on("click", ".customize-theme", function() { | |
- c.collapse() | |
- }), c.contentContainer.on("click", ".customize-themes-section-title, .customize-themes-mobile-back", function() { | |
- b(".wp-full-overlay").toggleClass("showing-themes") | |
- }), c.contentContainer.on("click", ".theme-install", function(a) { | |
- c.installTheme(a) | |
- }), c.contentContainer.on("click", ".update-theme, #update-theme", function(a) { | |
- a.preventDefault(), a.stopPropagation(), c.updateTheme(a) | |
- }), c.contentContainer.on("click", ".delete-theme", function(a) { | |
- c.deleteTheme(a) | |
- }), _.bindAll(c, "installTheme", "updateTheme") | |
- }, | |
- onChangeExpanded: function(a, b) { | |
- var c, d, e = this, | |
- g = !1; | |
- return f.Panel.prototype.onChangeExpanded.apply(this, [a, b]), b.unchanged ? void(b.completeCallback && b.completeCallback()) : (c = e.headContainer.closest(".wp-full-overlay"), void(a ? (c.addClass("in-themes-panel").delay(200).find(".customize-themes-full-container").addClass("animate"), _.delay(function() { | |
- c.addClass("themes-panel-expanded") | |
- }, 200), 600 < window.innerWidth && (d = e.sections(), _.each(d, function(a) { | |
- a.expanded() && (g = !0) | |
- }), !g && d.length > 0 && d[0].expand())) : c.removeClass("in-themes-panel themes-panel-expanded").find(".customize-themes-full-container").removeClass("animate"))) | |
- }, | |
- installTheme: function(a) { | |
- var c, d, e, g = this, | |
- h = b(a.target).data("slug"), | |
- i = b.Deferred(); | |
- return c = b(a.target).hasClass("preview"), f.settings.theme._filesystemCredentialsNeeded ? (i.reject({ | |
- errorCode: "theme_install_unavailable" | |
- }), i.promise()) : g.canSwitchTheme(h) ? _.contains(g.installingThemes, h) ? (i.reject({ | |
- errorCode: "theme_already_installing" | |
- }), i.promise()) : (wp.updates.maybeRequestFilesystemCredentials(a), d = function(a) { | |
- var b, d = !1; | |
- if (c) f.notifications.remove("theme_installing"), g.loadThemePreview(h); | |
- else { | |
- if (f.control.each(function(b) { | |
- "theme" === b.params.type && b.params.theme.id === a.slug && (d = b.params.theme, b.rerenderAsInstalled(!0)) | |
- }), !d || f.control.has("installed_theme_" + d.id)) return void i.resolve(a); | |
- d.type = "installed", b = new f.controlConstructor.theme("installed_theme_" + d.id, { | |
- type: "theme", | |
- section: "installed_themes", | |
- theme: d, | |
- priority: 0 | |
- }), f.control.add(b), f.control(b.id).container.trigger("render-screenshot"), f.section.each(function(a) { | |
- "themes" === a.params.type && d.id === a.currentTheme && a.closeDetails() | |
- }) | |
- } | |
- i.resolve(a) | |
- }, g.installingThemes.push(h), e = wp.updates.installTheme({ | |
- slug: h | |
- }), c && f.notifications.add(new f.OverlayNotification("theme_installing", { | |
- message: f.l10n.themeDownloading, | |
- type: "info", | |
- loading: !0 | |
- })), e.done(d), e.fail(function() { | |
- f.notifications.remove("theme_installing") | |
- }), i.promise()) : (i.reject({ | |
- errorCode: "theme_switch_unavailable" | |
- }), i.promise()) | |
- }, | |
- loadThemePreview: function(a) { | |
- var c, d, e, g = this, | |
- h = b.Deferred(); | |
- return g.canSwitchTheme(a) ? (d = document.createElement("a"), d.href = location.href, e = _.extend(f.utils.parseQueryString(d.search.substr(1)), { | |
- theme: a, | |
- changeset_uuid: f.settings.changeset.uuid, | |
- "return": f.settings.url["return"] | |
- }), f.state("saved").get() || (e.customize_autosaved = "on"), d.search = b.param(e), f.notifications.add(new f.OverlayNotification("theme_previewing", { | |
- message: f.l10n.themePreviewWait, | |
- type: "info", | |
- loading: !0 | |
- })), c = function() { | |
- var a; | |
- f.state("processing").get() > 0 || (f.state("processing").unbind(c), a = f.requestChangesetUpdate({}, { | |
- autosave: !0 | |
- }), a.done(function() { | |
- h.resolve(), b(window).off("beforeunload.customize-confirm"), location.replace(d.href) | |
- }), a.fail(function() { | |
- f.notifications.remove("theme_previewing"), h.reject() | |
- })) | |
- }, 0 === f.state("processing").get() ? c() : f.state("processing").bind(c), h.promise()) : (h.reject({ | |
- errorCode: "theme_switch_unavailable" | |
- }), h.promise()) | |
- }, | |
- updateTheme: function(a) { | |
- wp.updates.maybeRequestFilesystemCredentials(a), b(document).one("wp-theme-update-success", function(a, b) { | |
- f.control.each(function(a) { | |
- "theme" === a.params.type && a.params.theme.id === b.slug && (a.params.theme.hasUpdate = !1, a.params.theme.version = b.newVersion, setTimeout(function() { | |
- a.rerenderAsInstalled(!0) | |
- }, 2e3)) | |
+ }) | |
+ }, | |
+ embed: function() { | |
+ var e, n = this; | |
+ e = function(e) { | |
+ var t; | |
+ e && L.section(e, function(e) { | |
+ e.deferred.embedded.done(function() { | |
+ t = e.contentContainer.is("ul") ? e.contentContainer : e.contentContainer.find("ul:first"), n.container.parent().is(t) || (t.append(n.container), n.renderContent()), n.deferred.embedded.resolve() | |
}) | |
- }), wp.updates.updateTheme({ | |
- slug: b(a.target).closest(".notice").data("slug") | |
- }) | |
- }, | |
- deleteTheme: function(a) { | |
- var c, d; | |
- c = b(a.target).data("slug"), d = f.section("installed_themes"), a.preventDefault(), f.settings.theme._filesystemCredentialsNeeded || window.confirm(f.settings.l10n.confirmDeleteTheme) && (wp.updates.maybeRequestFilesystemCredentials(a), b(document).one("wp-theme-delete-success", function() { | |
- var a = f.control("installed_theme_" + c); | |
- a.container.remove(), f.control.remove(a.id), d.loaded = d.loaded - 1, d.updateCount(), f.control.each(function(a) { | |
- "theme" === a.params.type && a.params.theme.id === c && a.rerenderAsInstalled(!1) | |
- }) | |
- }), wp.updates.deleteTheme({ | |
- slug: c | |
- }), d.closeDetails(), d.focus()) | |
- } | |
- }), f.Control = f.Class.extend({ | |
- defaultActiveArguments: { | |
- duration: "fast", | |
- completeCallback: b.noop | |
- }, | |
- defaults: { | |
- label: "", | |
- description: "", | |
- active: !0, | |
- priority: 10 | |
- }, | |
- initialize: function(a, c) { | |
- var d, e, g = this, | |
- h = []; | |
- g.params = _.extend({}, g.defaults, g.params || {}, c.params || c || {}), f.Control.instanceCounter || (f.Control.instanceCounter = 0), f.Control.instanceCounter++, g.params.instanceNumber || (g.params.instanceNumber = f.Control.instanceCounter), g.params.type || _.find(f.controlConstructor, function(a, b) { | |
- return a === g.constructor && (g.params.type = b, !0) | |
- }), g.params.content || (g.params.content = b("<li></li>", { | |
- id: "customize-control-" + a.replace(/]/g, "").replace(/\[/g, "-"), | |
- "class": "customize-control customize-control-" + g.params.type | |
- })), g.id = a, g.selector = "#customize-control-" + a.replace(/\]/g, "").replace(/\[/g, "-"), g.params.content ? g.container = b(g.params.content) : g.container = b(g.selector), g.params.templateId ? g.templateSelector = g.params.templateId : g.templateSelector = "customize-control-" + g.params.type + "-content", g.deferred = _.extend(g.deferred || {}, { | |
- embedded: new b.Deferred | |
- }), g.section = new f.Value, g.priority = new f.Value, g.active = new f.Value, g.activeArgumentsQueue = [], g.notifications = new f.Notifications({ | |
- alt: g.altNotice | |
- }), g.elements = [], g.active.bind(function(a) { | |
- var c = g.activeArgumentsQueue.shift(); | |
- c = b.extend({}, g.defaultActiveArguments, c), g.onChangeActive(a, c) | |
- }), g.section.set(g.params.section), g.priority.set(isNaN(g.params.priority) ? 10 : g.params.priority), g.active.set(g.params.active), f.utils.bubbleChildValueChanges(g, ["section", "priority", "active"]), g.settings = {}, d = {}, g.params.setting && (d["default"] = g.params.setting), _.extend(d, g.params.settings), _.each(d, function(a, b) { | |
- var c; | |
- _.isObject(a) && _.isFunction(a.extended) && a.extended(f.Value) ? g.settings[b] = a : _.isString(a) && (c = f(a), c ? g.settings[b] = c : h.push(a)) | |
- }), e = function() { | |
- _.each(d, function(a, b) { | |
- !g.settings[b] && _.isString(a) && (g.settings[b] = f(a)) | |
- }), g.settings[0] && !g.settings["default"] && (g.settings["default"] = g.settings[0]), g.setting = g.settings["default"] || null, g.linkElements(), g.embed() | |
- }, 0 === h.length ? e() : f.apply(f, h.concat(e)), g.deferred.embedded.done(function() { | |
- g.linkElements(), g.setupNotifications(), g.ready() | |
}) | |
- }, | |
- linkElements: function() { | |
- var a, c, d, e = this; | |
- a = e.container.find("[data-customize-setting-link], [data-customize-setting-key-link]"), c = {}, a.each(function() { | |
- var g, h, i = b(this); | |
- if (!i.data("customizeSettingLinked")) { | |
- if (i.data("customizeSettingLinked", !0), i.is(":radio")) { | |
- if (g = i.prop("name"), c[g]) return; | |
- c[g] = !0, i = a.filter('[name="' + g + '"]') | |
- } | |
- i.data("customizeSettingLink") ? h = f(i.data("customizeSettingLink")) : i.data("customizeSettingKeyLink") && (h = e.settings[i.data("customizeSettingKeyLink")]), h && (d = new f.Element(i), e.elements.push(d), d.sync(h), d.set(h())) | |
- } | |
- }) | |
- }, | |
- embed: function() { | |
- var a, b = this; | |
- a = function(a) { | |
- var c; | |
- a && f.section(a, function(a) { | |
- a.deferred.embedded.done(function() { | |
- c = a.contentContainer.is("ul") ? a.contentContainer : a.contentContainer.find("ul:first"), b.container.parent().is(c) || (c.append(b.container), b.renderContent()), b.deferred.embedded.resolve() | |
- }) | |
- }) | |
- }, b.section.bind(a), a(b.section.get()) | |
- }, | |
- ready: function() { | |
- var a, c = this; | |
- "dropdown-pages" === c.params.type && c.params.allow_addition && (a = c.container.find(".new-content-item"), a.hide(), c.container.on("click", ".add-new-toggle", function(c) { | |
- b(c.currentTarget).slideUp(180), a.slideDown(180), a.find(".create-item-input").focus() | |
- }), c.container.on("click", ".add-content", function() { | |
- c.addNewPage() | |
- }), c.container.on("keydown", ".create-item-input", function(a) { | |
- 13 === a.which && c.addNewPage() | |
+ }, n.section.bind(e), e(n.section.get()) | |
+ }, | |
+ ready: function() { | |
+ var t, n = this; | |
+ "dropdown-pages" === n.params.type && n.params.allow_addition && ((t = n.container.find(".new-content-item")).hide(), n.container.on("click", ".add-new-toggle", function(e) { | |
+ H(e.currentTarget).slideUp(180), t.slideDown(180), t.find(".create-item-input").focus() | |
+ }), n.container.on("click", ".add-content", function() { | |
+ n.addNewPage() | |
+ }), n.container.on("keydown", ".create-item-input", function(e) { | |
+ 13 === e.which && n.addNewPage() | |
+ })) | |
+ }, | |
+ getNotificationsContainerElement: function() { | |
+ var e, t, n = this; | |
+ return (t = n.container.find(".customize-control-notifications-container:first")).length || (t = H('<div class="customize-control-notifications-container"></div>'), n.container.hasClass("customize-control-nav_menu_item") ? n.container.find(".menu-item-settings:first").prepend(t) : n.container.hasClass("customize-control-widget_form") ? n.container.find(".widget-inside:first").prepend(t) : (e = n.container.find(".customize-control-title")).length ? e.after(t) : n.container.prepend(t)), t | |
+ }, | |
+ setupNotifications: function() { | |
+ var n, e, i = this; | |
+ _.each(i.settings, function(n) { | |
+ n.notifications && (n.notifications.bind("add", function(e) { | |
+ var t = _.extend({}, e, { | |
+ setting: n.id | |
+ }); | |
+ i.notifications.add(new L.Notification(n.id + ":" + e.code, t)) | |
+ }), n.notifications.bind("remove", function(e) { | |
+ i.notifications.remove(n.id + ":" + e.code) | |
})) | |
- }, | |
- getNotificationsContainerElement: function() { | |
- var a, c, d = this; | |
- return c = d.container.find(".customize-control-notifications-container:first"), c.length ? c : (c = b('<div class="customize-control-notifications-container"></div>'), d.container.hasClass("customize-control-nav_menu_item") ? d.container.find(".menu-item-settings:first").prepend(c) : d.container.hasClass("customize-control-widget_form") ? d.container.find(".widget-inside:first").prepend(c) : (a = d.container.find(".customize-control-title"), a.length ? a.after(c) : d.container.prepend(c)), c) | |
- }, | |
- setupNotifications: function() { | |
- var a, b, c = this; | |
- _.each(c.settings, function(a) { | |
- a.notifications && (a.notifications.bind("add", function(b) { | |
- var d = _.extend({}, b, { | |
- setting: a.id | |
- }); | |
- c.notifications.add(new f.Notification(a.id + ":" + b.code, d)) | |
- }), a.notifications.bind("remove", function(b) { | |
- c.notifications.remove(a.id + ":" + b.code) | |
- })) | |
- }), a = function() { | |
- var a = c.section(); | |
- (!a || f.section.has(a) && f.section(a).expanded()) && c.notifications.render() | |
- }, c.notifications.bind("rendered", function() { | |
- var a = c.notifications.get(); | |
- c.container.toggleClass("has-notifications", 0 !== a.length), c.container.toggleClass("has-error", 0 !== _.where(a, { | |
- type: "error" | |
- }).length) | |
- }), b = function(b, c) { | |
- c && f.section.has(c) && f.section(c).expanded.unbind(a), b && f.section(b, function(b) { | |
- b.expanded.bind(a), a() | |
- }) | |
- }, c.section.bind(b), b(c.section.get()), c.notifications.bind("change", _.debounce(a)) | |
- }, | |
- renderNotifications: function() { | |
- var a, c, d = this, | |
- e = !1; | |
- "undefined" != typeof console && console.warn && console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method."), a = d.getNotificationsContainerElement(), a && a.length && (c = [], d.notifications.each(function(a) { | |
- c.push(a), "error" === a.type && (e = !0) | |
- }), 0 === c.length ? a.stop().slideUp("fast") : a.stop().slideDown("fast", null, function() { | |
- b(this).css("height", "auto") | |
- }), d.notificationsTemplate || (d.notificationsTemplate = wp.template("customize-control-notifications")), d.container.toggleClass("has-notifications", 0 !== c.length), d.container.toggleClass("has-error", e), a.empty().append(b.trim(d.notificationsTemplate({ | |
- notifications: c, | |
- altNotice: Boolean(d.altNotice) | |
- })))) | |
- }, | |
- expand: function(a) { | |
- f.section(this.section()).expand(a) | |
- }, | |
- focus: d, | |
- onChangeActive: function(a, c) { | |
- return c.unchanged ? void(c.completeCallback && c.completeCallback()) : void(b.contains(document, this.container[0]) ? a ? this.container.slideDown(c.duration, c.completeCallback) : this.container.slideUp(c.duration, c.completeCallback) : (this.container.toggle(a), c.completeCallback && c.completeCallback())) | |
- }, | |
- toggle: function(a) { | |
- return this.onChangeActive(a, this.defaultActiveArguments) | |
- }, | |
- activate: c.prototype.activate, | |
- deactivate: c.prototype.deactivate, | |
- _toggleActive: c.prototype._toggleActive, | |
- dropdownInit: function() { | |
- var a = this, | |
- b = this.container.find(".dropdown-status"), | |
- c = this.params, | |
- d = !1, | |
- e = function(a) { | |
- "string" == typeof a && c.statuses && c.statuses[a] ? b.html(c.statuses[a]).show() : b.hide() | |
- }; | |
- this.container.on("click keydown", ".dropdown", function(b) { | |
- f.utils.isKeydownButNotEnterEvent(b) || (b.preventDefault(), d || a.container.toggleClass("open"), a.container.hasClass("open") && a.container.parent().parent().find("li.library-selected").focus(), d = !0, setTimeout(function() { | |
- d = !1 | |
- }, 400)) | |
- }), this.setting.bind(e), e(this.setting()) | |
- }, | |
- renderContent: function() { | |
- var a, b, c, d, e = this; | |
- b = ["button", "checkbox", "date", "datetime-local", "email", "month", "number", "password", "radio", "range", "search", "select", "tel", "time", "text", "textarea", "week", "url"], c = e.templateSelector, c === "customize-control-" + e.params.type + "-content" && _.contains(b, e.params.type) && !document.getElementById("tmpl-" + c) && 0 === e.container.children().length && (c = "customize-control-default-content"), document.getElementById("tmpl-" + c) && (a = wp.template(c), a && e.container && e.container.html(a(e.params))), e.notifications.container = e.getNotificationsContainerElement(), d = e.section(), (!d || f.section.has(d) && f.section(d).expanded()) && e.notifications.render() | |
- }, | |
- addNewPage: function() { | |
- var a, c, d, e, g, h, i = this; | |
- if ("dropdown-pages" === i.params.type && i.params.allow_addition && f.Menus) { | |
- if (c = i.container.find(".add-new-toggle"), d = i.container.find(".new-content-item"), e = i.container.find(".create-item-input"), g = e.val(), h = i.container.find("select"), !g) return void e.addClass("invalid"); | |
- e.removeClass("invalid"), e.attr("disabled", "disabled"), a = f.Menus.insertAutoDraftPost({ | |
- post_title: g, | |
- post_type: "page" | |
- }), a.done(function(a) { | |
- var e, j, k; | |
- e = new f.Menus.AvailableItemModel({ | |
- id: "post-" + a.post_id, | |
- title: g, | |
- type: "post_type", | |
- type_label: f.Menus.data.l10n.page_label, | |
- object: "page", | |
- object_id: a.post_id, | |
- url: a.url | |
- }), f.Menus.availableMenuItemsPanel.collection.add(e), j = b("#available-menu-items-post_type-page").find(".available-menu-items-list"), k = wp.template("available-menu-item"), j.prepend(k(e.attributes)), h.focus(), i.setting.set(String(a.post_id)), d.slideUp(180), c.slideDown(180) | |
- }), a.always(function() { | |
- e.val("").removeAttr("disabled") | |
- }) | |
+ }), n = function() { | |
+ var e = i.section(); | |
+ (!e || L.section.has(e) && L.section(e).expanded()) && i.notifications.render() | |
+ }, i.notifications.bind("rendered", function() { | |
+ var e = i.notifications.get(); | |
+ i.container.toggleClass("has-notifications", 0 !== e.length), i.container.toggleClass("has-error", 0 !== _.where(e, { | |
+ type: "error" | |
+ }).length) | |
+ }), e = function(e, t) { | |
+ t && L.section.has(t) && L.section(t).expanded.unbind(n), e && L.section(e, function(e) { | |
+ e.expanded.bind(n), n() | |
+ }) | |
+ }, i.section.bind(e), e(i.section.get()), i.notifications.bind("change", _.debounce(n)) | |
+ }, | |
+ renderNotifications: function() { | |
+ var e, t, n = this, | |
+ i = !1; | |
+ "undefined" != typeof console && console.warn && console.warn("[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantating a wp.customize.Notifications and calling its render() method."), (e = n.getNotificationsContainerElement()) && e.length && (t = [], n.notifications.each(function(e) { | |
+ t.push(e), "error" === e.type && (i = !0) | |
+ }), 0 === t.length ? e.stop().slideUp("fast") : e.stop().slideDown("fast", null, function() { | |
+ H(this).css("height", "auto") | |
+ }), n.notificationsTemplate || (n.notificationsTemplate = wp.template("customize-control-notifications")), n.container.toggleClass("has-notifications", 0 !== t.length), n.container.toggleClass("has-error", i), e.empty().append(H.trim(n.notificationsTemplate({ | |
+ notifications: t, | |
+ altNotice: Boolean(n.altNotice) | |
+ })))) | |
+ }, | |
+ expand: function(e) { | |
+ L.section(this.section()).expand(e) | |
+ }, | |
+ focus: t, | |
+ onChangeActive: function(e, t) { | |
+ t.unchanged ? t.completeCallback && t.completeCallback() : H.contains(document, this.container[0]) ? e ? this.container.slideDown(t.duration, t.completeCallback) : this.container.slideUp(t.duration, t.completeCallback) : (this.container.toggle(e), t.completeCallback && t.completeCallback()) | |
+ }, | |
+ toggle: function(e) { | |
+ return this.onChangeActive(e, this.defaultActiveArguments) | |
+ }, | |
+ activate: a.prototype.activate, | |
+ deactivate: a.prototype.deactivate, | |
+ _toggleActive: a.prototype._toggleActive, | |
+ dropdownInit: function() { | |
+ var t = this, | |
+ n = this.container.find(".dropdown-status"), | |
+ i = this.params, | |
+ a = !1, | |
+ e = function(e) { | |
+ "string" == typeof e && i.statuses && i.statuses[e] ? n.html(i.statuses[e]).show() : n.hide() | |
+ }; | |
+ this.container.on("click keydown", ".dropdown", function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), a || t.container.toggleClass("open"), t.container.hasClass("open") && t.container.parent().parent().find("li.library-selected").focus(), a = !0, setTimeout(function() { | |
+ a = !1 | |
+ }, 400)) | |
+ }), this.setting.bind(e), e(this.setting()) | |
+ }, | |
+ renderContent: function() { | |
+ var e, t, n, i, a = this; | |
+ t = ["button", "checkbox", "date", "datetime-local", "email", "month", "number", "password", "radio", "range", "search", "select", "tel", "time", "text", "textarea", "week", "url"], (n = a.templateSelector) === "customize-control-" + a.params.type + "-content" && _.contains(t, a.params.type) && !document.getElementById("tmpl-" + n) && 0 === a.container.children().length && (n = "customize-control-default-content"), document.getElementById("tmpl-" + n) && (e = wp.template(n)) && a.container && a.container.html(e(a.params)), a.notifications.container = a.getNotificationsContainerElement(), (!(i = a.section()) || L.section.has(i) && L.section(i).expanded()) && a.notifications.render() | |
+ }, | |
+ addNewPage: function() { | |
+ var e, a, o, t, s, r, c = this; | |
+ "dropdown-pages" === c.params.type && c.params.allow_addition && L.Menus && (a = c.container.find(".add-new-toggle"), o = c.container.find(".new-content-item"), t = c.container.find(".create-item-input"), s = t.val(), r = c.container.find("select"), s ? (t.removeClass("invalid"), t.attr("disabled", "disabled"), (e = L.Menus.insertAutoDraftPost({ | |
+ post_title: s, | |
+ post_type: "page" | |
+ })).done(function(e) { | |
+ var t, n, i; | |
+ t = new L.Menus.AvailableItemModel({ | |
+ id: "post-" + e.post_id, | |
+ title: s, | |
+ type: "post_type", | |
+ type_label: L.Menus.data.l10n.page_label, | |
+ object: "page", | |
+ object_id: e.post_id, | |
+ url: e.url | |
+ }), L.Menus.availableMenuItemsPanel.collection.add(t), n = H("#available-menu-items-post_type-page").find(".available-menu-items-list"), i = wp.template("available-menu-item"), n.prepend(i(t.attributes)), r.focus(), c.setting.set(String(e.post_id)), o.slideUp(180), a.slideDown(180) | |
+ }), e.always(function() { | |
+ t.val("").removeAttr("disabled") | |
+ })) : t.addClass("invalid")) | |
+ } | |
+ }), L.ColorControl = L.Control.extend({ | |
+ ready: function() { | |
+ var t, n = this, | |
+ e = "hue" === this.params.mode, | |
+ i = !1; | |
+ e ? (t = this.container.find(".color-picker-hue")).val(n.setting()).wpColorPicker({ | |
+ change: function(e, t) { | |
+ i = !0, n.setting(t.color.h()), i = !1 | |
} | |
- } | |
- }), f.ColorControl = f.Control.extend({ | |
- ready: function() { | |
- var a, b = this, | |
- c = "hue" === this.params.mode, | |
- d = !1; | |
- c ? (a = this.container.find(".color-picker-hue"), a.val(b.setting()).wpColorPicker({ | |
- change: function(a, c) { | |
- d = !0, b.setting(c.color.h()), d = !1 | |
- } | |
- })) : (a = this.container.find(".color-picker-hex"), a.val(b.setting()).wpColorPicker({ | |
- change: function() { | |
- d = !0, b.setting.set(a.wpColorPicker("color")), d = !1 | |
- }, | |
- clear: function() { | |
- d = !0, b.setting.set(""), d = !1 | |
- } | |
- })), b.setting.bind(function(b) { | |
- d || (a.val(b), a.wpColorPicker("color", b)) | |
- }), b.container.on("keydown", function(c) { | |
- var d; | |
- 27 === c.which && (d = b.container.find(".wp-picker-container"), d.hasClass("wp-picker-active") && (a.wpColorPicker("close"), b.container.find(".wp-color-result").focus(), c.stopPropagation())) | |
- }) | |
- } | |
- }), f.MediaControl = f.Control.extend({ | |
- ready: function() { | |
- function a(a) { | |
- var d = b.Deferred(); | |
- c.extended(f.UploadControl) ? d.resolve() : (a = parseInt(a, 10), _.isNaN(a) || a <= 0 ? (delete c.params.attachment, d.resolve()) : c.params.attachment && c.params.attachment.id === a && d.resolve()), "pending" === d.state() && wp.media.attachment(a).fetch().done(function() { | |
- c.params.attachment = this.attributes, d.resolve(), wp.customize.previewer.send(c.setting.id + "-attachment-data", this.attributes) | |
- }), d.done(function() { | |
- c.renderContent() | |
- }) | |
+ }) : (t = this.container.find(".color-picker-hex")).val(n.setting()).wpColorPicker({ | |
+ change: function() { | |
+ i = !0, n.setting.set(t.wpColorPicker("color")), i = !1 | |
+ }, | |
+ clear: function() { | |
+ i = !0, n.setting.set(""), i = !1 | |
} | |
- var c = this; | |
- _.bindAll(c, "restoreDefault", "removeFile", "openFrame", "select", "pausePlayer"), c.container.on("click keydown", ".upload-button", c.openFrame), c.container.on("click keydown", ".upload-button", c.pausePlayer), c.container.on("click keydown", ".thumbnail-image img", c.openFrame), c.container.on("click keydown", ".default-button", c.restoreDefault), c.container.on("click keydown", ".remove-button", c.pausePlayer), c.container.on("click keydown", ".remove-button", c.removeFile), c.container.on("click keydown", ".remove-button", c.cleanupPlayer), f.section(c.section()).container.on("expanded", function() { | |
- c.player && c.player.setControlsSize() | |
- }).on("collapsed", function() { | |
- c.pausePlayer() | |
- }), a(c.setting()), c.setting.bind(a) | |
- }, | |
- pausePlayer: function() { | |
- this.player && this.player.pause() | |
- }, | |
- cleanupPlayer: function() { | |
- this.player && wp.media.mixin.removePlayer(this.player) | |
- }, | |
- openFrame: function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), this.frame || this.initFrame(), this.frame.open()) | |
- }, | |
- initFrame: function() { | |
- this.frame = wp.media({ | |
- button: { | |
- text: this.params.button_labels.frame_button | |
- }, | |
- states: [new wp.media.controller.Library({ | |
- title: this.params.button_labels.frame_title, | |
- library: wp.media.query({ | |
- type: this.params.mime_type | |
- }), | |
- multiple: !1, | |
- date: !1 | |
- })] | |
- }), this.frame.on("select", this.select) | |
- }, | |
- select: function() { | |
- var a, b = this.frame.state().get("selection").first().toJSON(), | |
- c = window._wpmejsSettings || {}; | |
- this.params.attachment = b, this.setting(b.id), a = this.container.find("audio, video").get(0), a ? this.player = new MediaElementPlayer(a, c) : this.cleanupPlayer() | |
- }, | |
- restoreDefault: function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), this.params.attachment = this.params.defaultAttachment, this.setting(this.params.defaultAttachment.url)) | |
- }, | |
- removeFile: function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), this.params.attachment = {}, this.setting(""), this.renderContent()) | |
- } | |
- }), f.UploadControl = f.MediaControl.extend({ | |
- select: function() { | |
- var a, b = this.frame.state().get("selection").first().toJSON(), | |
- c = window._wpmejsSettings || {}; | |
- this.params.attachment = b, this.setting(b.url), a = this.container.find("audio, video").get(0), a ? this.player = new MediaElementPlayer(a, c) : this.cleanupPlayer() | |
- }, | |
- success: function() {}, | |
- removerVisibility: function() {} | |
- }), f.ImageControl = f.UploadControl.extend({ | |
- thumbnailSrc: function() {} | |
- }), f.BackgroundControl = f.UploadControl.extend({ | |
- ready: function() { | |
- f.UploadControl.prototype.ready.apply(this, arguments) | |
- }, | |
- select: function() { | |
- f.UploadControl.prototype.select.apply(this, arguments), wp.ajax.post("custom-background-add", { | |
- nonce: _wpCustomizeBackground.nonces.add, | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet, | |
- attachment_id: this.params.attachment.id | |
- }) | |
- } | |
- }), f.BackgroundPositionControl = f.Control.extend({ | |
- ready: function() { | |
- var a, c = this; | |
- c.container.on("change", 'input[name="background-position"]', function() { | |
- var a = b(this).val().split(" "); | |
- c.settings.x(a[0]), c.settings.y(a[1]) | |
- }), a = _.debounce(function() { | |
- var a, b, d, e; | |
- a = c.settings.x.get(), b = c.settings.y.get(), e = String(a) + " " + String(b), d = c.container.find('input[name="background-position"][value="' + e + '"]'), d.click() | |
- }), c.settings.x.bind(a), c.settings.y.bind(a), a() | |
- } | |
- }), f.CroppedImageControl = f.MediaControl.extend({ | |
- openFrame: function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (this.initFrame(), this.frame.setState("library").open()) | |
- }, | |
- initFrame: function() { | |
- var a = _wpMediaViewsL10n; | |
- this.frame = wp.media({ | |
- button: { | |
- text: a.select, | |
- close: !1 | |
- }, | |
- states: [new wp.media.controller.Library({ | |
- title: this.params.button_labels.frame_title, | |
- library: wp.media.query({ | |
- type: "image" | |
- }), | |
- multiple: !1, | |
- date: !1, | |
- priority: 20, | |
- suggestedWidth: this.params.width, | |
- suggestedHeight: this.params.height | |
- }), new wp.media.controller.CustomizeImageCropper({ | |
- imgSelectOptions: this.calculateImageSelectOptions, | |
- control: this | |
- })] | |
- }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this) | |
- }, | |
- onSelect: function() { | |
- var a = this.frame.state().get("selection").first().toJSON(); | |
- this.params.width !== a.width || this.params.height !== a.height || this.params.flex_width || this.params.flex_height ? this.frame.setState("cropper") : (this.setImageFromAttachment(a), this.frame.close()) | |
- }, | |
- onCropped: function(a) { | |
- this.setImageFromAttachment(a) | |
- }, | |
- calculateImageSelectOptions: function(a, b) { | |
- var c, d, e, f = b.get("control"), | |
- g = !!parseInt(f.params.flex_width, 10), | |
- h = !!parseInt(f.params.flex_height, 10), | |
- i = a.get("width"), | |
- j = a.get("height"), | |
- k = parseInt(f.params.width, 10), | |
- l = parseInt(f.params.height, 10), | |
- m = k / l, | |
- n = k, | |
- o = l; | |
- return b.set("canSkipCrop", !f.mustBeCropped(g, h, k, l, i, j)), i / j > m ? (l = j, k = l * m) : (k = i, l = k / m), c = (i - k) / 2, d = (j - l) / 2, e = { | |
- handles: !0, | |
- keys: !0, | |
- instance: !0, | |
- persistent: !0, | |
- imageWidth: i, | |
- imageHeight: j, | |
- minWidth: n > k ? k : n, | |
- minHeight: o > l ? l : o, | |
- x1: c, | |
- y1: d, | |
- x2: k + c, | |
- y2: l + d | |
- }, h === !1 && g === !1 && (e.aspectRatio = k + ":" + l), !0 === h && (delete e.minHeight, e.maxWidth = i), !0 === g && (delete e.minWidth, e.maxHeight = j), e | |
- }, | |
- mustBeCropped: function(a, b, c, d, e, f) { | |
- return (!0 !== a || !0 !== b) && ((!0 !== a || d !== f) && ((!0 !== b || c !== e) && ((c !== e || d !== f) && !(e <= c)))) | |
- }, | |
- onSkippedCrop: function() { | |
- var a = this.frame.state().get("selection").first().toJSON(); | |
- this.setImageFromAttachment(a) | |
- }, | |
- setImageFromAttachment: function(a) { | |
- this.params.attachment = a, this.setting(a.id) | |
- } | |
- }), f.SiteIconControl = f.CroppedImageControl.extend({ | |
- initFrame: function() { | |
- var a = _wpMediaViewsL10n; | |
- this.frame = wp.media({ | |
- button: { | |
- text: a.select, | |
- close: !1 | |
- }, | |
- states: [new wp.media.controller.Library({ | |
- title: this.params.button_labels.frame_title, | |
- library: wp.media.query({ | |
- type: "image" | |
- }), | |
- multiple: !1, | |
- date: !1, | |
- priority: 20, | |
- suggestedWidth: this.params.width, | |
- suggestedHeight: this.params.height | |
- }), new wp.media.controller.SiteIconCropper({ | |
- imgSelectOptions: this.calculateImageSelectOptions, | |
- control: this | |
- })] | |
- }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this) | |
- }, | |
- onSelect: function() { | |
- var a = this.frame.state().get("selection").first().toJSON(), | |
- b = this; | |
- this.params.width !== a.width || this.params.height !== a.height || this.params.flex_width || this.params.flex_height ? this.frame.setState("cropper") : wp.ajax.post("crop-image", { | |
- nonce: a.nonces.edit, | |
- id: a.id, | |
- context: "site-icon", | |
- cropDetails: { | |
- x1: 0, | |
- y1: 0, | |
- width: this.params.width, | |
- height: this.params.height, | |
- dst_width: this.params.width, | |
- dst_height: this.params.height | |
- } | |
- }).done(function(a) { | |
- b.setImageFromAttachment(a), b.frame.close() | |
- }).fail(function() { | |
- b.frame.trigger("content:error:crop") | |
- }) | |
- }, | |
- setImageFromAttachment: function(a) { | |
- var c, d, e = ["site_icon-32", "thumbnail", "full"]; | |
- _.each(e, function(b) { | |
- d || _.isUndefined(a.sizes[b]) || (d = a.sizes[b]) | |
- }), this.params.attachment = a, this.setting(a.id), d && (c = b('link[rel="icon"][sizes="32x32"]'), c.attr("href", d.url)) | |
- }, | |
- removeFile: function(a) { | |
- f.utils.isKeydownButNotEnterEvent(a) || (a.preventDefault(), this.params.attachment = {}, this.setting(""), this.renderContent(), b('link[rel="icon"][sizes="32x32"]').attr("href", "/favicon.ico")) | |
- } | |
- }), f.HeaderControl = f.Control.extend({ | |
- ready: function() { | |
- this.btnRemove = b("#customize-control-header_image .actions .remove"), this.btnNew = b("#customize-control-header_image .actions .new"), _.bindAll(this, "openMedia", "removeImage"), this.btnNew.on("click", this.openMedia), this.btnRemove.on("click", this.removeImage), f.HeaderTool.currentHeader = this.getInitialHeaderImage(), new f.HeaderTool.CurrentView({ | |
- model: f.HeaderTool.currentHeader, | |
- el: "#customize-control-header_image .current .container" | |
- }), new f.HeaderTool.ChoiceListView({ | |
- collection: f.HeaderTool.UploadsList = new f.HeaderTool.ChoiceList, | |
- el: "#customize-control-header_image .choices .uploaded .list" | |
- }), new f.HeaderTool.ChoiceListView({ | |
- collection: f.HeaderTool.DefaultsList = new f.HeaderTool.DefaultsList, | |
- el: "#customize-control-header_image .choices .default .list" | |
- }), f.HeaderTool.combinedList = f.HeaderTool.CombinedList = new f.HeaderTool.CombinedList([f.HeaderTool.UploadsList, f.HeaderTool.DefaultsList]), wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize = "on", wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme = f.settings.theme.stylesheet | |
- }, | |
- getInitialHeaderImage: function() { | |
- if (!f.get().header_image || !f.get().header_image_data || _.contains(["remove-header", "random-default-image", "random-uploaded-image"], f.get().header_image)) return new f.HeaderTool.ImageModel; | |
- var a = _.find(_wpCustomizeHeader.uploads, function(a) { | |
- return a.attachment_id === f.get().header_image_data.attachment_id | |
- }); | |
- return a || (a = { | |
- url: f.get().header_image, | |
- thumbnail_url: f.get().header_image, | |
- attachment_id: f.get().header_image_data.attachment_id | |
- }), new f.HeaderTool.ImageModel({ | |
- header: a, | |
- choice: a.url.split("/").pop() | |
- }) | |
- }, | |
- calculateImageSelectOptions: function(a, b) { | |
- var c, d, e, g, h, i, j = parseInt(_wpCustomizeHeader.data.width, 10), | |
- k = parseInt(_wpCustomizeHeader.data.height, 10), | |
- l = !!parseInt(_wpCustomizeHeader.data["flex-width"], 10), | |
- m = !!parseInt(_wpCustomizeHeader.data["flex-height"], 10); | |
- return h = a.get("width"), g = a.get("height"), this.headerImage = new f.HeaderTool.ImageModel, this.headerImage.set({ | |
- themeWidth: j, | |
- themeHeight: k, | |
- themeFlexWidth: l, | |
- themeFlexHeight: m, | |
- imageWidth: h, | |
- imageHeight: g | |
- }), b.set("canSkipCrop", !this.headerImage.shouldBeCropped()), c = j / k, d = h, e = g, d / e > c ? (k = e, j = k * c) : (j = d, k = j / c), i = { | |
- handles: !0, | |
- keys: !0, | |
- instance: !0, | |
- persistent: !0, | |
- imageWidth: h, | |
- imageHeight: g, | |
+ }), n.setting.bind(function(e) { | |
+ i || (t.val(e), t.wpColorPicker("color", e)) | |
+ }), n.container.on("keydown", function(e) { | |
+ 27 === e.which && n.container.find(".wp-picker-container").hasClass("wp-picker-active") && (t.wpColorPicker("close"), n.container.find(".wp-color-result").focus(), e.stopPropagation()) | |
+ }) | |
+ } | |
+ }), L.MediaControl = L.Control.extend({ | |
+ ready: function() { | |
+ var n = this; | |
+ | |
+ function e(e) { | |
+ var t = H.Deferred(); | |
+ n.extended(L.UploadControl) ? t.resolve() : (e = parseInt(e, 10), _.isNaN(e) || e <= 0 ? (delete n.params.attachment, t.resolve()) : n.params.attachment && n.params.attachment.id === e && t.resolve()), "pending" === t.state() && wp.media.attachment(e).fetch().done(function() { | |
+ n.params.attachment = this.attributes, t.resolve(), wp.customize.previewer.send(n.setting.id + "-attachment-data", this.attributes) | |
+ }), t.done(function() { | |
+ n.renderContent() | |
+ }) | |
+ } | |
+ _.bindAll(n, "restoreDefault", "removeFile", "openFrame", "select", "pausePlayer"), n.container.on("click keydown", ".upload-button", n.openFrame), n.container.on("click keydown", ".upload-button", n.pausePlayer), n.container.on("click keydown", ".thumbnail-image img", n.openFrame), n.container.on("click keydown", ".default-button", n.restoreDefault), n.container.on("click keydown", ".remove-button", n.pausePlayer), n.container.on("click keydown", ".remove-button", n.removeFile), n.container.on("click keydown", ".remove-button", n.cleanupPlayer), L.section(n.section()).container.on("expanded", function() { | |
+ n.player && n.player.setControlsSize() | |
+ }).on("collapsed", function() { | |
+ n.pausePlayer() | |
+ }), e(n.setting()), n.setting.bind(e) | |
+ }, | |
+ pausePlayer: function() { | |
+ this.player && this.player.pause() | |
+ }, | |
+ cleanupPlayer: function() { | |
+ this.player && wp.media.mixin.removePlayer(this.player) | |
+ }, | |
+ openFrame: function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), this.frame || this.initFrame(), this.frame.open()) | |
+ }, | |
+ initFrame: function() { | |
+ this.frame = wp.media({ | |
+ button: { | |
+ text: this.params.button_labels.frame_button | |
+ }, | |
+ states: [new wp.media.controller.Library({ | |
+ title: this.params.button_labels.frame_title, | |
+ library: wp.media.query({ | |
+ type: this.params.mime_type | |
+ }), | |
+ multiple: !1, | |
+ date: !1 | |
+ })] | |
+ }), this.frame.on("select", this.select) | |
+ }, | |
+ select: function() { | |
+ var e, t = this.frame.state().get("selection").first().toJSON(), | |
+ n = window._wpmejsSettings || {}; | |
+ this.params.attachment = t, this.setting(t.id), (e = this.container.find("audio, video").get(0)) ? this.player = new MediaElementPlayer(e, n) : this.cleanupPlayer() | |
+ }, | |
+ restoreDefault: function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), this.params.attachment = this.params.defaultAttachment, this.setting(this.params.defaultAttachment.url)) | |
+ }, | |
+ removeFile: function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), this.params.attachment = {}, this.setting(""), this.renderContent()) | |
+ } | |
+ }), L.UploadControl = L.MediaControl.extend({ | |
+ select: function() { | |
+ var e, t = this.frame.state().get("selection").first().toJSON(), | |
+ n = window._wpmejsSettings || {}; | |
+ this.params.attachment = t, this.setting(t.url), (e = this.container.find("audio, video").get(0)) ? this.player = new MediaElementPlayer(e, n) : this.cleanupPlayer() | |
+ }, | |
+ success: function() {}, | |
+ removerVisibility: function() {} | |
+ }), L.ImageControl = L.UploadControl.extend({ | |
+ thumbnailSrc: function() {} | |
+ }), L.BackgroundControl = L.UploadControl.extend({ | |
+ ready: function() { | |
+ L.UploadControl.prototype.ready.apply(this, arguments) | |
+ }, | |
+ select: function() { | |
+ L.UploadControl.prototype.select.apply(this, arguments), wp.ajax.post("custom-background-add", { | |
+ nonce: _wpCustomizeBackground.nonces.add, | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ attachment_id: this.params.attachment.id | |
+ }) | |
+ } | |
+ }), L.BackgroundPositionControl = L.Control.extend({ | |
+ ready: function() { | |
+ var e, i = this; | |
+ i.container.on("change", 'input[name="background-position"]', function() { | |
+ var e = H(this).val().split(" "); | |
+ i.settings.x(e[0]), i.settings.y(e[1]) | |
+ }), e = _.debounce(function() { | |
+ var e, t, n; | |
+ e = i.settings.x.get(), t = i.settings.y.get(), n = String(e) + " " + String(t), i.container.find('input[name="background-position"][value="' + n + '"]').click() | |
+ }), i.settings.x.bind(e), i.settings.y.bind(e), e() | |
+ } | |
+ }), L.CroppedImageControl = L.MediaControl.extend({ | |
+ openFrame: function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (this.initFrame(), this.frame.setState("library").open()) | |
+ }, | |
+ initFrame: function() { | |
+ var e = _wpMediaViewsL10n; | |
+ this.frame = wp.media({ | |
+ button: { | |
+ text: e.select, | |
+ close: !1 | |
+ }, | |
+ states: [new wp.media.controller.Library({ | |
+ title: this.params.button_labels.frame_title, | |
+ library: wp.media.query({ | |
+ type: "image" | |
+ }), | |
+ multiple: !1, | |
+ date: !1, | |
+ priority: 20, | |
+ suggestedWidth: this.params.width, | |
+ suggestedHeight: this.params.height | |
+ }), new wp.media.controller.CustomizeImageCropper({ | |
+ imgSelectOptions: this.calculateImageSelectOptions, | |
+ control: this | |
+ })] | |
+ }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this) | |
+ }, | |
+ onSelect: function() { | |
+ var e = this.frame.state().get("selection").first().toJSON(); | |
+ this.params.width !== e.width || this.params.height !== e.height || this.params.flex_width || this.params.flex_height ? this.frame.setState("cropper") : (this.setImageFromAttachment(e), this.frame.close()) | |
+ }, | |
+ onCropped: function(e) { | |
+ this.setImageFromAttachment(e) | |
+ }, | |
+ calculateImageSelectOptions: function(e, t) { | |
+ var n, i, a, o = t.get("control"), | |
+ s = !!parseInt(o.params.flex_width, 10), | |
+ r = !!parseInt(o.params.flex_height, 10), | |
+ c = e.get("width"), | |
+ l = e.get("height"), | |
+ d = parseInt(o.params.width, 10), | |
+ u = parseInt(o.params.height, 10), | |
+ p = d / u, | |
+ h = d, | |
+ f = u; | |
+ return t.set("canSkipCrop", !o.mustBeCropped(s, r, d, u, c, l)), p < c / l ? d = (u = l) * p : u = (d = c) / p, !(a = { | |
+ handles: !0, | |
+ keys: !0, | |
+ instance: !0, | |
+ persistent: !0, | |
+ imageWidth: c, | |
+ imageHeight: l, | |
+ minWidth: d < h ? d : h, | |
+ minHeight: u < f ? u : f, | |
+ x1: n = (c - d) / 2, | |
+ y1: i = (l - u) / 2, | |
+ x2: d + n, | |
+ y2: u + i | |
+ }) === r && !1 === s && (a.aspectRatio = d + ":" + u), !0 === r && (delete a.minHeight, a.maxWidth = c), !0 === s && (delete a.minWidth, a.maxHeight = l), a | |
+ }, | |
+ mustBeCropped: function(e, t, n, i, a, o) { | |
+ return (!0 !== e || !0 !== t) && ((!0 !== e || i !== o) && ((!0 !== t || n !== a) && ((n !== a || i !== o) && !(a <= n)))) | |
+ }, | |
+ onSkippedCrop: function() { | |
+ var e = this.frame.state().get("selection").first().toJSON(); | |
+ this.setImageFromAttachment(e) | |
+ }, | |
+ setImageFromAttachment: function(e) { | |
+ this.params.attachment = e, this.setting(e.id) | |
+ } | |
+ }), L.SiteIconControl = L.CroppedImageControl.extend({ | |
+ initFrame: function() { | |
+ var e = _wpMediaViewsL10n; | |
+ this.frame = wp.media({ | |
+ button: { | |
+ text: e.select, | |
+ close: !1 | |
+ }, | |
+ states: [new wp.media.controller.Library({ | |
+ title: this.params.button_labels.frame_title, | |
+ library: wp.media.query({ | |
+ type: "image" | |
+ }), | |
+ multiple: !1, | |
+ date: !1, | |
+ priority: 20, | |
+ suggestedWidth: this.params.width, | |
+ suggestedHeight: this.params.height | |
+ }), new wp.media.controller.SiteIconCropper({ | |
+ imgSelectOptions: this.calculateImageSelectOptions, | |
+ control: this | |
+ })] | |
+ }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this) | |
+ }, | |
+ onSelect: function() { | |
+ var e = this.frame.state().get("selection").first().toJSON(), | |
+ t = this; | |
+ this.params.width !== e.width || this.params.height !== e.height || this.params.flex_width || this.params.flex_height ? this.frame.setState("cropper") : wp.ajax.post("crop-image", { | |
+ nonce: e.nonces.edit, | |
+ id: e.id, | |
+ context: "site-icon", | |
+ cropDetails: { | |
x1: 0, | |
y1: 0, | |
- x2: j, | |
- y2: k | |
- }, m === !1 && l === !1 && (i.aspectRatio = j + ":" + k), m === !1 && (i.maxHeight = k), l === !1 && (i.maxWidth = j), i | |
- }, | |
- openMedia: function(a) { | |
- var b = _wpMediaViewsL10n; | |
- a.preventDefault(), this.frame = wp.media({ | |
- button: { | |
- text: b.selectAndCrop, | |
- close: !1 | |
- }, | |
- states: [new wp.media.controller.Library({ | |
- title: b.chooseImage, | |
- library: wp.media.query({ | |
- type: "image" | |
- }), | |
- multiple: !1, | |
- date: !1, | |
- priority: 20, | |
- suggestedWidth: _wpCustomizeHeader.data.width, | |
- suggestedHeight: _wpCustomizeHeader.data.height | |
- }), new wp.media.controller.Cropper({ | |
- imgSelectOptions: this.calculateImageSelectOptions | |
- })] | |
- }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this), this.frame.open() | |
- }, | |
- onSelect: function() { | |
- this.frame.setState("cropper") | |
- }, | |
- onCropped: function(a) { | |
- var b = a.url, | |
- c = a.attachment_id, | |
- d = a.width, | |
- e = a.height; | |
- this.setImageFromURL(b, c, d, e) | |
- }, | |
- onSkippedCrop: function(a) { | |
- var b = a.get("url"), | |
- c = a.get("width"), | |
- d = a.get("height"); | |
- this.setImageFromURL(b, a.id, c, d) | |
- }, | |
- setImageFromURL: function(a, b, c, d) { | |
- var e, g = {}; | |
- g.url = a, g.thumbnail_url = a, g.timestamp = _.now(), b && (g.attachment_id = b), c && (g.width = c), d && (g.height = d), e = new f.HeaderTool.ImageModel({ | |
- header: g, | |
- choice: a.split("/").pop() | |
- }), f.HeaderTool.UploadsList.add(e), f.HeaderTool.currentHeader.set(e.toJSON()), e.save(), e.importImage() | |
- }, | |
- removeImage: function() { | |
- f.HeaderTool.currentHeader.trigger("hide"), f.HeaderTool.CombinedList.trigger("control:removeImage") | |
- } | |
- }), f.ThemeControl = f.Control.extend({ | |
- touchDrag: !1, | |
- screenshotRendered: !1, | |
- ready: function() { | |
- function a() { | |
- return !g.canSwitchTheme(e.params.theme.id) | |
+ width: this.params.width, | |
+ height: this.params.height, | |
+ dst_width: this.params.width, | |
+ dst_height: this.params.height | |
} | |
+ }).done(function(e) { | |
+ t.setImageFromAttachment(e), t.frame.close() | |
+ }).fail(function() { | |
+ t.frame.trigger("content:error:crop") | |
+ }) | |
+ }, | |
+ setImageFromAttachment: function(t) { | |
+ var n; | |
+ _.each(["site_icon-32", "thumbnail", "full"], function(e) { | |
+ n || _.isUndefined(t.sizes[e]) || (n = t.sizes[e]) | |
+ }), this.params.attachment = t, this.setting(t.id), n && H('link[rel="icon"][sizes="32x32"]').attr("href", n.url) | |
+ }, | |
+ removeFile: function(e) { | |
+ L.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), this.params.attachment = {}, this.setting(""), this.renderContent(), H('link[rel="icon"][sizes="32x32"]').attr("href", "/favicon.ico")) | |
+ } | |
+ }), L.HeaderControl = L.Control.extend({ | |
+ ready: function() { | |
+ this.btnRemove = H("#customize-control-header_image .actions .remove"), this.btnNew = H("#customize-control-header_image .actions .new"), _.bindAll(this, "openMedia", "removeImage"), this.btnNew.on("click", this.openMedia), this.btnRemove.on("click", this.removeImage), L.HeaderTool.currentHeader = this.getInitialHeaderImage(), new L.HeaderTool.CurrentView({ | |
+ model: L.HeaderTool.currentHeader, | |
+ el: "#customize-control-header_image .current .container" | |
+ }), new L.HeaderTool.ChoiceListView({ | |
+ collection: L.HeaderTool.UploadsList = new L.HeaderTool.ChoiceList, | |
+ el: "#customize-control-header_image .choices .uploaded .list" | |
+ }), new L.HeaderTool.ChoiceListView({ | |
+ collection: L.HeaderTool.DefaultsList = new L.HeaderTool.DefaultsList, | |
+ el: "#customize-control-header_image .choices .default .list" | |
+ }), L.HeaderTool.combinedList = L.HeaderTool.CombinedList = new L.HeaderTool.CombinedList([L.HeaderTool.UploadsList, L.HeaderTool.DefaultsList]), wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize = "on", wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme = L.settings.theme.stylesheet | |
+ }, | |
+ getInitialHeaderImage: function() { | |
+ if (!L.get().header_image || !L.get().header_image_data || _.contains(["remove-header", "random-default-image", "random-uploaded-image"], L.get().header_image)) return new L.HeaderTool.ImageModel; | |
+ var e = _.find(_wpCustomizeHeader.uploads, function(e) { | |
+ return e.attachment_id === L.get().header_image_data.attachment_id | |
+ }); | |
+ return e || (e = { | |
+ url: L.get().header_image, | |
+ thumbnail_url: L.get().header_image, | |
+ attachment_id: L.get().header_image_data.attachment_id | |
+ }), new L.HeaderTool.ImageModel({ | |
+ header: e, | |
+ choice: e.url.split("/").pop() | |
+ }) | |
+ }, | |
+ calculateImageSelectOptions: function(e, t) { | |
+ var n, i, a, o, s, r, c = parseInt(_wpCustomizeHeader.data.width, 10), | |
+ l = parseInt(_wpCustomizeHeader.data.height, 10), | |
+ d = !!parseInt(_wpCustomizeHeader.data["flex-width"], 10), | |
+ u = !!parseInt(_wpCustomizeHeader.data["flex-height"], 10); | |
+ return s = e.get("width"), o = e.get("height"), this.headerImage = new L.HeaderTool.ImageModel, this.headerImage.set({ | |
+ themeWidth: c, | |
+ themeHeight: l, | |
+ themeFlexWidth: d, | |
+ themeFlexHeight: u, | |
+ imageWidth: s, | |
+ imageHeight: o | |
+ }), t.set("canSkipCrop", !this.headerImage.shouldBeCropped()), (n = c / l) < (i = s) / (a = o) ? c = (l = a) * n : l = (c = i) / n, !(r = { | |
+ handles: !0, | |
+ keys: !0, | |
+ instance: !0, | |
+ persistent: !0, | |
+ imageWidth: s, | |
+ imageHeight: o, | |
+ x1: 0, | |
+ y1: 0, | |
+ x2: c, | |
+ y2: l | |
+ }) === u && !1 === d && (r.aspectRatio = c + ":" + l), !1 === u && (r.maxHeight = l), !1 === d && (r.maxWidth = c), r | |
+ }, | |
+ openMedia: function(e) { | |
+ var t = _wpMediaViewsL10n; | |
+ e.preventDefault(), this.frame = wp.media({ | |
+ button: { | |
+ text: t.selectAndCrop, | |
+ close: !1 | |
+ }, | |
+ states: [new wp.media.controller.Library({ | |
+ title: t.chooseImage, | |
+ library: wp.media.query({ | |
+ type: "image" | |
+ }), | |
+ multiple: !1, | |
+ date: !1, | |
+ priority: 20, | |
+ suggestedWidth: _wpCustomizeHeader.data.width, | |
+ suggestedHeight: _wpCustomizeHeader.data.height | |
+ }), new wp.media.controller.Cropper({ | |
+ imgSelectOptions: this.calculateImageSelectOptions | |
+ })] | |
+ }), this.frame.on("select", this.onSelect, this), this.frame.on("cropped", this.onCropped, this), this.frame.on("skippedcrop", this.onSkippedCrop, this), this.frame.open() | |
+ }, | |
+ onSelect: function() { | |
+ this.frame.setState("cropper") | |
+ }, | |
+ onCropped: function(e) { | |
+ var t = e.url, | |
+ n = e.attachment_id, | |
+ i = e.width, | |
+ a = e.height; | |
+ this.setImageFromURL(t, n, i, a) | |
+ }, | |
+ onSkippedCrop: function(e) { | |
+ var t = e.get("url"), | |
+ n = e.get("width"), | |
+ i = e.get("height"); | |
+ this.setImageFromURL(t, e.id, n, i) | |
+ }, | |
+ setImageFromURL: function(e, t, n, i) { | |
+ var a, o = {}; | |
+ o.url = e, o.thumbnail_url = e, o.timestamp = _.now(), t && (o.attachment_id = t), n && (o.width = n), i && (o.height = i), a = new L.HeaderTool.ImageModel({ | |
+ header: o, | |
+ choice: e.split("/").pop() | |
+ }), L.HeaderTool.UploadsList.add(a), L.HeaderTool.currentHeader.set(a.toJSON()), a.save(), a.importImage() | |
+ }, | |
+ removeImage: function() { | |
+ L.HeaderTool.currentHeader.trigger("hide"), L.HeaderTool.CombinedList.trigger("control:removeImage") | |
+ } | |
+ }), L.ThemeControl = L.Control.extend({ | |
+ touchDrag: !1, | |
+ screenshotRendered: !1, | |
+ ready: function() { | |
+ var n = this, | |
+ e = L.panel("themes"); | |
- function c() { | |
- return a() || !1 === f.settings.theme._canInstall || !0 === f.settings.theme._filesystemCredentialsNeeded | |
- } | |
+ function t() { | |
+ return !e.canSwitchTheme(n.params.theme.id) | |
+ } | |
- function d() { | |
- e.container.find("button.preview, button.preview-theme").toggleClass("disabled", a()), e.container.find("button.theme-install").toggleClass("disabled", c()) | |
- } | |
- var e = this, | |
- g = f.panel("themes"); | |
- f.state("selectedChangesetStatus").bind(d), f.state("changesetStatus").bind(d), d(), e.container.on("touchmove", ".theme", function() { | |
- e.touchDrag = !0 | |
- }), e.container.on("click keydown touchend", ".theme", function(a) { | |
- var c; | |
- if (!f.utils.isKeydownButNotEnterEvent(a)) return e.touchDrag === !0 ? e.touchDrag = !1 : void(b(a.target).is(".theme-actions .button, .update-theme") || (a.preventDefault(), c = f.section(e.section()), c.showDetails(e.params.theme, function() { | |
- f.settings.theme._filesystemCredentialsNeeded && c.overlay.find(".theme-actions .delete-theme").remove() | |
- }))) | |
- }), e.container.on("render-screenshot", function() { | |
- var a = b(this).find("img"), | |
- c = a.data("src"); | |
- c && a.attr("src", c), e.screenshotRendered = !0 | |
- }) | |
- }, | |
- filter: function(a) { | |
- var b = this, | |
- c = 0, | |
- d = b.params.theme.name + " " + b.params.theme.description + " " + b.params.theme.tags + " " + b.params.theme.author + " "; | |
- return d = d.toLowerCase().replace("-", " "), _.isArray(a) || (a = [a]), b.params.theme.name.toLowerCase() === a.join(" ") ? c = 100 : (c += 10 * (d.split(a.join(" ")).length - 1), _.each(a, function(a) { | |
- c += 2 * (d.split(a + " ").length - 1), c = c + d.split(a).length - 1 | |
- }), c > 99 && (c = 99)), 0 !== c ? (b.activate(), b.params.priority = 101 - c, !0) : (b.deactivate(), b.params.priority = 101, !1) | |
- }, | |
- rerenderAsInstalled: function(a) { | |
- var b, c = this; | |
- a ? c.params.theme.type = "installed" : (b = f.section(c.params.section), c.params.theme.type = b.params.action), c.renderContent(), c.container.trigger("render-screenshot") | |
+ function i() { | |
+ n.container.find("button.preview, button.preview-theme").toggleClass("disabled", t()), n.container.find("button.theme-install").toggleClass("disabled", t() || !1 === L.settings.theme._canInstall || !0 === L.settings.theme._filesystemCredentialsNeeded) | |
} | |
- }), f.CodeEditorControl = f.Control.extend({ | |
- initialize: function(a, c) { | |
- var d = this; | |
- d.deferred = _.extend(d.deferred || {}, { | |
- codemirror: b.Deferred() | |
- }), f.Control.prototype.initialize.call(d, a, c), d.notifications.bind("add", function(a) { | |
- a.code === d.setting.id + ":csslint_error" && (a.templateId = "customize-code-editor-lint-error-notification", a.render = function(a) { | |
- return function() { | |
- var b = a.call(this); | |
- return b.find("input[type=checkbox]").on("click", function() { | |
- d.setting.notifications.remove("csslint_error") | |
- }), b | |
- } | |
- }(a.render)) | |
- }) | |
- }, | |
- ready: function() { | |
- var a = this; | |
- return a.section() ? void f.section(a.section(), function(b) { | |
- b.deferred.embedded.done(function() { | |
- var c; | |
- b.expanded() ? a.initEditor() : (c = function(d) { | |
- d && (a.initEditor(), b.expanded.unbind(c)) | |
- }, b.expanded.bind(c)) | |
- }) | |
- }) : void a.initEditor() | |
- }, | |
- initEditor: function() { | |
- var a, b = this, | |
- c = !1; | |
- wp.codeEditor && (_.isUndefined(b.params.editor_settings) || !1 !== b.params.editor_settings) && (c = wp.codeEditor.defaultSettings ? _.clone(wp.codeEditor.defaultSettings) : {}, c.codemirror = _.extend({}, c.codemirror, { | |
- indentUnit: 2, | |
- tabSize: 2 | |
- }), _.isObject(b.params.editor_settings) && _.each(b.params.editor_settings, function(a, b) { | |
- _.isObject(a) && (c[b] = _.extend({}, c[b], a)) | |
- })), a = new f.Element(b.container.find("textarea")), b.elements.push(a), a.sync(b.setting), a.set(b.setting()), c ? b.initSyntaxHighlightingEditor(c) : b.initPlainTextareaEditor() | |
- }, | |
- focus: function(a) { | |
- var b, c = this, | |
- d = _.extend({}, a); | |
- b = d.completeCallback, d.completeCallback = function() { | |
- b && b(), c.editor && c.editor.codemirror.focus() | |
- }, f.Control.prototype.focus.call(c, d) | |
- }, | |
- initSyntaxHighlightingEditor: function(a) { | |
- var c, d = this, | |
- e = d.container.find("textarea"), | |
- f = !1; | |
- c = _.extend({}, a, { | |
- onTabNext: _.bind(d.onTabNext, d), | |
- onTabPrevious: _.bind(d.onTabPrevious, d), | |
- onUpdateErrorNotice: _.bind(d.onUpdateErrorNotice, d) | |
- }), d.editor = wp.codeEditor.initialize(e, c), b(d.editor.codemirror.display.lineDiv).attr({ | |
- role: "textbox", | |
- "aria-multiline": "true", | |
- "aria-label": d.params.label, | |
- "aria-describedby": "editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4" | |
- }), d.container.find("label").on("click", function() { | |
- d.editor.codemirror.focus() | |
- }), d.editor.codemirror.on("change", function(a) { | |
- f = !0, e.val(a.getValue()).trigger("change"), f = !1 | |
- }), d.setting.bind(function(a) { | |
- f || d.editor.codemirror.setValue(a) | |
- }), d.editor.codemirror.on("keydown", function(a, b) { | |
- var c = 27; | |
- c === b.keyCode && b.stopPropagation() | |
- }), d.deferred.codemirror.resolveWith(d, [d.editor.codemirror]) | |
- }, | |
- onTabNext: function() { | |
- var a, c, d, e = this; | |
- d = f.section(e.section()), a = d.controls(), c = a.indexOf(e), a.length === c + 1 ? b("#customize-footer-actions .collapse-sidebar").focus() : a[c + 1].container.find(":focusable:first").focus() | |
- }, | |
- onTabPrevious: function() { | |
- var a, b, c, d = this; | |
- c = f.section(d.section()), a = c.controls(), b = a.indexOf(d), 0 === b ? c.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last().focus() : a[b - 1].contentContainer.find(":focusable:first").focus() | |
- }, | |
- onUpdateErrorNotice: function(a) { | |
- var b, c = this; | |
- c.setting.notifications.remove("csslint_error"), 0 !== a.length && (b = 1 === a.length ? f.l10n.customCssError.singular.replace("%d", "1") : f.l10n.customCssError.plural.replace("%d", String(a.length)), c.setting.notifications.add(new f.Notification("csslint_error", { | |
- message: b, | |
- type: "error" | |
+ L.state("selectedChangesetStatus").bind(i), L.state("changesetStatus").bind(i), i(), n.container.on("touchmove", ".theme", function() { | |
+ n.touchDrag = !0 | |
+ }), n.container.on("click keydown touchend", ".theme", function(e) { | |
+ var t; | |
+ if (!L.utils.isKeydownButNotEnterEvent(e)) return !0 === n.touchDrag ? n.touchDrag = !1 : void(H(e.target).is(".theme-actions .button, .update-theme") || (e.preventDefault(), (t = L.section(n.section())).showDetails(n.params.theme, function() { | |
+ L.settings.theme._filesystemCredentialsNeeded && t.overlay.find(".theme-actions .delete-theme").remove() | |
}))) | |
- }, | |
- initPlainTextareaEditor: function() { | |
- var a = this, | |
- b = a.container.find("textarea"), | |
- c = b[0]; | |
- b.on("blur", function() { | |
- b.data("next-tab-blurs", !1) | |
- }), b.on("keydown", function(a) { | |
- var d, e, f, g = 9, | |
- h = 27; | |
- return h === a.keyCode ? void(b.data("next-tab-blurs") || (b.data("next-tab-blurs", !0), a.stopPropagation())) : void(g !== a.keyCode || a.ctrlKey || a.altKey || a.shiftKey || b.data("next-tab-blurs") || (d = c.selectionStart, | |
- e = c.selectionEnd, f = c.value, d >= 0 && (c.value = f.substring(0, d).concat("\t", f.substring(e)), b.selectionStart = c.selectionEnd = d + 1), a.stopPropagation(), a.preventDefault())) | |
- }), a.deferred.codemirror.rejectWith(a) | |
- } | |
- }), f.DateTimeControl = f.Control.extend({ | |
- ready: function() { | |
- var a = this; | |
- if (a.inputElements = {}, a.invalidDate = !1, _.bindAll(a, "populateSetting", "updateDaysForMonth", "populateDateInputs"), !a.setting) throw new Error("Missing setting"); | |
- a.container.find(".date-input").each(function() { | |
- var c, d, e = b(this); | |
- c = e.data("component"), d = new f.Element(e), a.inputElements[c] = d, a.elements.push(d), e.on("change", function() { | |
- a.invalidDate && a.notifications.add(new f.Notification("invalid_date", { | |
- message: f.l10n.invalidDate | |
- })) | |
- }), e.on("input", _.debounce(function() { | |
- a.invalidDate || a.notifications.remove("invalid_date") | |
- })), e.on("blur", _.debounce(function() { | |
- a.invalidDate || a.populateDateInputs() | |
- })) | |
- }), a.inputElements.month.bind(a.updateDaysForMonth), a.inputElements.year.bind(a.updateDaysForMonth), a.populateDateInputs(), a.setting.bind(a.populateDateInputs), _.each(a.inputElements, function(b) { | |
- b.bind(a.populateSetting) | |
- }) | |
- }, | |
- parseDateTime: function(a) { | |
- var b, c, d = this, | |
- e = 12; | |
- return a && (b = a.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/)), b ? (b.shift(), c = { | |
- year: b.shift(), | |
- month: b.shift(), | |
- day: b.shift(), | |
- hour: b.shift() || "00", | |
- minute: b.shift() || "00", | |
- second: b.shift() || "00" | |
- }, d.params.includeTime && d.params.twelveHourFormat && (c.hour = parseInt(c.hour, 10), c.meridian = c.hour >= e ? "pm" : "am", c.hour = c.hour % e ? String(c.hour % e) : String(e), delete c.second), c) : null | |
- }, | |
- validateInputs: function() { | |
- var a, b, c = this; | |
- return c.invalidDate = !1, a = ["year", "day"], c.params.includeTime && a.push("hour", "minute"), _.find(a, function(a) { | |
- var d, e, f, g; | |
- return d = c.inputElements[a], b = d.element.get(0), e = parseInt(d.element.attr("max"), 10), f = parseInt(d.element.attr("min"), 10), g = parseInt(d(), 10), c.invalidDate = isNaN(g) || g > e || g < f, c.invalidDate || b.setCustomValidity(""), c.invalidDate | |
- }), c.inputElements.meridian && !c.invalidDate && (b = c.inputElements.meridian.element.get(0), "am" !== c.inputElements.meridian.get() && "pm" !== c.inputElements.meridian.get() ? c.invalidDate = !0 : b.setCustomValidity("")), c.invalidDate ? b.setCustomValidity(f.l10n.invalidValue) : b.setCustomValidity(""), (!c.section() || f.section.has(c.section()) && f.section(c.section()).expanded()) && _.result(b, "reportValidity"), c.invalidDate | |
- }, | |
- updateDaysForMonth: function() { | |
- var a, b, c, d, e = this; | |
- c = parseInt(e.inputElements.month(), 10), b = parseInt(e.inputElements.year(), 10), d = parseInt(e.inputElements.day(), 10), c && b && (a = new Date(b, c, 0).getDate(), e.inputElements.day.element.attr("max", a), d > a && e.inputElements.day(String(a))) | |
- }, | |
- populateSetting: function() { | |
- var a, b = this; | |
- return !(b.validateInputs() || !b.params.allowPastDate && !b.isFutureDate()) && (a = b.convertInputDateToString(), b.setting.set(a), !0) | |
- }, | |
- convertInputDateToString: function() { | |
- var a, b, c, d, e = this, | |
- f = ""; | |
- return d = function(a, b) { | |
- var c; | |
- return String(a).length < b && (c = b - String(a).length, a = Math.pow(10, c).toString().substr(1) + String(a)), a | |
- }, c = function(a) { | |
- var b = parseInt(e.inputElements[a].get(), 10); | |
- return _.contains(["month", "day", "hour", "minute"], a) ? b = d(b, 2) : "year" === a && (b = d(b, 4)), b | |
- }, a = ["year", "-", "month", "-", "day"], e.params.includeTime && (b = e.inputElements.meridian ? e.convertHourToTwentyFourHourFormat(e.inputElements.hour(), e.inputElements.meridian()) : e.inputElements.hour(), a = a.concat([" ", d(b, 2), ":", "minute", ":", "00"])), _.each(a, function(a) { | |
- f += e.inputElements[a] ? c(a) : a | |
- }), f | |
- }, | |
- isFutureDate: function() { | |
- var a = this; | |
- return 0 < f.utils.getRemainingTime(a.convertInputDateToString()) | |
- }, | |
- convertHourToTwentyFourHourFormat: function(a, b) { | |
- var c, d, e = 12; | |
- return d = parseInt(a, 10), isNaN(d) ? "" : (c = "pm" === b && d < e ? d + e : "am" === b && e === d ? d - e : d, String(c)) | |
- }, | |
- populateDateInputs: function() { | |
- var a, b = this; | |
- return !!(a = b.parseDateTime(b.setting.get())) && (_.each(b.inputElements, function(b, c) { | |
- var d = a[c]; | |
- "month" === c || "meridian" === c ? (d = d.replace(/^0/, ""), b.set(d)) : (d = parseInt(d, 10), b.element.is(document.activeElement) ? d !== parseInt(b(), 10) && b.set(String(d)) : b.set(a[c])) | |
- }), !0) | |
- }, | |
- toggleFutureDateNotification: function(a) { | |
- var b, c, d = this; | |
- return b = "not_future_date", a ? (c = new f.Notification(b, { | |
- type: "error", | |
- message: f.l10n.futureDateError | |
- }), d.notifications.add(c)) : d.notifications.remove(b), d | |
- } | |
- }), f.PreviewLinkControl = f.Control.extend({ | |
- defaults: _.extend({}, f.Control.prototype.defaults, { | |
- templateId: "customize-preview-link-control" | |
- }), | |
- ready: function() { | |
- var a, c, d, e, g, h, i = this; | |
- _.bindAll(i, "updatePreviewLink"), i.setting || (i.setting = new f.Value), i.previewElements = {}, i.container.find(".preview-control-element").each(function() { | |
- d = b(this), c = d.data("component"), a = new f.Element(d), i.previewElements[c] = a, i.elements.push(a) | |
- }), e = i.previewElements.url, g = i.previewElements.input, h = i.previewElements.button, g.link(i.setting), e.link(i.setting), e.bind(function(a) { | |
- e.element.parent().attr({ | |
- href: a, | |
- target: f.settings.changeset.uuid | |
- }) | |
- }), f.bind("ready", i.updatePreviewLink), f.state("saved").bind(i.updatePreviewLink), f.state("changesetStatus").bind(i.updatePreviewLink), f.state("activated").bind(i.updatePreviewLink), f.previewer.previewUrl.bind(i.updatePreviewLink), h.element.on("click", function(a) { | |
- a.preventDefault(), i.setting() && (g.element.select(), document.execCommand("copy"), h(h.element.data("copied-text"))) | |
- }), e.element.parent().on("click", function(a) { | |
- b(this).hasClass("disabled") && a.preventDefault() | |
- }), h.element.on("mouseenter", function() { | |
- i.setting() && h(h.element.data("copy-text")) | |
- }) | |
- }, | |
- updatePreviewLink: function() { | |
- var a, b = this; | |
- a = !f.state("saved").get() || "" === f.state("changesetStatus").get() || "auto-draft" === f.state("changesetStatus").get(), b.toggleSaveNotification(a), b.previewElements.url.element.parent().toggleClass("disabled", a), b.previewElements.button.element.prop("disabled", a), b.setting.set(f.previewer.getFrontendPreviewUrl()) | |
- }, | |
- toggleSaveNotification: function(a) { | |
- var b, c, d = this; | |
- b = "changes_not_saved", a ? (c = new f.Notification(b, { | |
- type: "info", | |
- message: f.l10n.saveBeforeShare | |
- }), d.notifications.add(c)) : d.notifications.remove(b) | |
- } | |
- }), f.defaultConstructor = f.Setting, f.control = new f.Values({ | |
- defaultConstructor: f.Control | |
- }), f.section = new f.Values({ | |
- defaultConstructor: f.Section | |
- }), f.panel = new f.Values({ | |
- defaultConstructor: f.Panel | |
- }), f.notifications = new f.Notifications, f.PreviewFrame = f.Messenger.extend({ | |
- sensitivity: null, | |
- initialize: function(a, c) { | |
- var d = b.Deferred(); | |
- d.promise(this), this.container = a.container, b.extend(a, { | |
- channel: f.PreviewFrame.uuid() | |
- }), f.Messenger.prototype.initialize.call(this, a, c), this.add("previewUrl", a.previewUrl), this.query = b.extend(a.query || {}, { | |
- customize_messenger_channel: this.channel() | |
- }), this.run(d) | |
- }, | |
- run: function(a) { | |
- var c, d, e, g = this, | |
- h = !1, | |
- i = !1, | |
- j = null, | |
- k = "{}" !== g.query.customized; | |
- g._ready && g.unbind("ready", g._ready), g._ready = function(b) { | |
- i = !0, j = b, g.container.addClass("iframe-ready"), b && h && a.resolveWith(g, [b]) | |
- }, g.bind("ready", g._ready), c = document.createElement("a"), c.href = g.previewUrl(), d = _.extend(f.utils.parseQueryString(c.search.substr(1)), { | |
- customize_changeset_uuid: g.query.customize_changeset_uuid, | |
- customize_theme: g.query.customize_theme, | |
- customize_messenger_channel: g.query.customize_messenger_channel | |
- }), !f.settings.changeset.autosaved && f.state("saved").get() || (d.customize_autosaved = "on"), c.search = b.param(d), g.iframe = b("<iframe />", { | |
- title: f.l10n.previewIframeTitle, | |
- name: "customize-" + g.channel() | |
- }), g.iframe.attr("onmousewheel", ""), k ? g.iframe.attr("data-src", c.href) : g.iframe.attr("src", c.href), g.iframe.appendTo(g.container), g.targetWindow(g.iframe[0].contentWindow), k && (e = b("<form>", { | |
- action: c.href, | |
- target: g.iframe.attr("name"), | |
- method: "post", | |
- hidden: "hidden" | |
- }), e.append(b("<input>", { | |
- type: "hidden", | |
- name: "_method", | |
- value: "GET" | |
- })), _.each(g.query, function(a, c) { | |
- e.append(b("<input>", { | |
- type: "hidden", | |
- name: c, | |
- value: a | |
+ }), n.container.on("render-screenshot", function() { | |
+ var e = H(this).find("img"), | |
+ t = e.data("src"); | |
+ t && e.attr("src", t), n.screenshotRendered = !0 | |
+ }) | |
+ }, | |
+ filter: function(e) { | |
+ var t = this, | |
+ n = 0, | |
+ i = t.params.theme.name + " " + t.params.theme.description + " " + t.params.theme.tags + " " + t.params.theme.author + " "; | |
+ return i = i.toLowerCase().replace("-", " "), _.isArray(e) || (e = [e]), t.params.theme.name.toLowerCase() === e.join(" ") ? n = 100 : (n += 10 * (i.split(e.join(" ")).length - 1), _.each(e, function(e) { | |
+ n = (n += 2 * (i.split(e + " ").length - 1)) + i.split(e).length - 1 | |
+ }), 99 < n && (n = 99)), 0 !== n ? (t.activate(), t.params.priority = 101 - n, !0) : (t.deactivate(), !(t.params.priority = 101)) | |
+ }, | |
+ rerenderAsInstalled: function(e) { | |
+ var t = this; | |
+ t.params.theme.type = e ? "installed" : L.section(t.params.section).params.action, t.renderContent(), t.container.trigger("render-screenshot") | |
+ } | |
+ }), L.CodeEditorControl = L.Control.extend({ | |
+ initialize: function(e, t) { | |
+ var n = this; | |
+ n.deferred = _.extend(n.deferred || {}, { | |
+ codemirror: H.Deferred() | |
+ }), L.Control.prototype.initialize.call(n, e, t), n.notifications.bind("add", function(e) { | |
+ var t; | |
+ e.code === n.setting.id + ":csslint_error" && (e.templateId = "customize-code-editor-lint-error-notification", e.render = (t = e.render, function() { | |
+ var e = t.call(this); | |
+ return e.find("input[type=checkbox]").on("click", function() { | |
+ n.setting.notifications.remove("csslint_error") | |
+ }), e | |
+ })) | |
+ }) | |
+ }, | |
+ ready: function() { | |
+ var i = this; | |
+ i.section() ? L.section(i.section(), function(n) { | |
+ n.deferred.embedded.done(function() { | |
+ var t; | |
+ n.expanded() ? i.initEditor() : (t = function(e) { | |
+ e && (i.initEditor(), n.expanded.unbind(t)) | |
+ }, n.expanded.bind(t)) | |
+ }) | |
+ }) : i.initEditor() | |
+ }, | |
+ initEditor: function() { | |
+ var e, t = this, | |
+ n = !1; | |
+ wp.codeEditor && (_.isUndefined(t.params.editor_settings) || !1 !== t.params.editor_settings) && ((n = wp.codeEditor.defaultSettings ? _.clone(wp.codeEditor.defaultSettings) : {}).codemirror = _.extend({}, n.codemirror, { | |
+ indentUnit: 2, | |
+ tabSize: 2 | |
+ }), _.isObject(t.params.editor_settings) && _.each(t.params.editor_settings, function(e, t) { | |
+ _.isObject(e) && (n[t] = _.extend({}, n[t], e)) | |
+ })), e = new L.Element(t.container.find("textarea")), t.elements.push(e), e.sync(t.setting), e.set(t.setting()), n ? t.initSyntaxHighlightingEditor(n) : t.initPlainTextareaEditor() | |
+ }, | |
+ focus: function(e) { | |
+ var t, n = this, | |
+ i = _.extend({}, e); | |
+ t = i.completeCallback, i.completeCallback = function() { | |
+ t && t(), n.editor && n.editor.codemirror.focus() | |
+ }, L.Control.prototype.focus.call(n, i) | |
+ }, | |
+ initSyntaxHighlightingEditor: function(e) { | |
+ var t, n = this, | |
+ i = n.container.find("textarea"), | |
+ a = !1; | |
+ t = _.extend({}, e, { | |
+ onTabNext: _.bind(n.onTabNext, n), | |
+ onTabPrevious: _.bind(n.onTabPrevious, n), | |
+ onUpdateErrorNotice: _.bind(n.onUpdateErrorNotice, n) | |
+ }), n.editor = wp.codeEditor.initialize(i, t), H(n.editor.codemirror.display.lineDiv).attr({ | |
+ role: "textbox", | |
+ "aria-multiline": "true", | |
+ "aria-label": n.params.label, | |
+ "aria-describedby": "editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4" | |
+ }), n.container.find("label").on("click", function() { | |
+ n.editor.codemirror.focus() | |
+ }), n.editor.codemirror.on("change", function(e) { | |
+ a = !0, i.val(e.getValue()).trigger("change"), a = !1 | |
+ }), n.setting.bind(function(e) { | |
+ a || n.editor.codemirror.setValue(e) | |
+ }), n.editor.codemirror.on("keydown", function(e, t) { | |
+ 27 === t.keyCode && t.stopPropagation() | |
+ }), n.deferred.codemirror.resolveWith(n, [n.editor.codemirror]) | |
+ }, | |
+ onTabNext: function() { | |
+ var e, t; | |
+ t = (e = L.section(this.section()).controls()).indexOf(this), e.length === t + 1 ? H("#customize-footer-actions .collapse-sidebar").focus() : e[t + 1].container.find(":focusable:first").focus() | |
+ }, | |
+ onTabPrevious: function() { | |
+ var e, t, n; | |
+ 0 === (t = (e = (n = L.section(this.section())).controls()).indexOf(this)) ? n.contentContainer.find(".customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close").last().focus() : e[t - 1].contentContainer.find(":focusable:first").focus() | |
+ }, | |
+ onUpdateErrorNotice: function(e) { | |
+ var t; | |
+ this.setting.notifications.remove("csslint_error"), 0 !== e.length && (t = 1 === e.length ? L.l10n.customCssError.singular.replace("%d", "1") : L.l10n.customCssError.plural.replace("%d", String(e.length)), this.setting.notifications.add(new L.Notification("csslint_error", { | |
+ message: t, | |
+ type: "error" | |
+ }))) | |
+ }, | |
+ initPlainTextareaEditor: function() { | |
+ var a = this.container.find("textarea"), | |
+ o = a[0]; | |
+ a.on("blur", function() { | |
+ a.data("next-tab-blurs", !1) | |
+ }), a.on("keydown", function(e) { | |
+ var t, n, i; | |
+ 27 !== e.keyCode ? 9 !== e.keyCode || e.ctrlKey || e.altKey || e.shiftKey || a.data("next-tab-blurs") || (t = o.selectionStart, n = o.selectionEnd, i = o.value, 0 <= t && (o.value = i.substring(0, t).concat("\t", i.substring(n)), a.selectionStart = o.selectionEnd = t + 1), e.stopPropagation(), e.preventDefault()) : a.data("next-tab-blurs") || (a.data("next-tab-blurs", !0), e.stopPropagation()) | |
+ }), this.deferred.codemirror.rejectWith(this) | |
+ } | |
+ }), L.DateTimeControl = L.Control.extend({ | |
+ ready: function() { | |
+ var i = this; | |
+ if (i.inputElements = {}, i.invalidDate = !1, _.bindAll(i, "populateSetting", "updateDaysForMonth", "populateDateInputs"), !i.setting) throw new Error("Missing setting"); | |
+ i.container.find(".date-input").each(function() { | |
+ var e, t, n = H(this); | |
+ e = n.data("component"), t = new L.Element(n), i.inputElements[e] = t, i.elements.push(t), n.on("change", function() { | |
+ i.invalidDate && i.notifications.add(new L.Notification("invalid_date", { | |
+ message: L.l10n.invalidDate | |
})) | |
- }), g.container.append(e), e.submit(), e.remove()), g.bind("iframe-loading-error", function(b) { | |
- return g.iframe.remove(), 0 === b ? void g.login(a) : -1 === b ? void a.rejectWith(g, ["cheatin"]) : void a.rejectWith(g, ["request failure"]) | |
- }), g.iframe.one("load", function() { | |
- h = !0, i ? a.resolveWith(g, [j]) : setTimeout(function() { | |
- a.rejectWith(g, ["ready timeout"]) | |
- }, g.sensitivity) | |
- }) | |
- }, | |
- login: function(a) { | |
- var c, d = this; | |
- return c = function() { | |
- a.rejectWith(d, ["logged out"]) | |
- }, this.triedLogin ? c() : void b.get(f.settings.url.ajax, { | |
- action: "logged-in" | |
- }).fail(c).done(function(e) { | |
- var g; | |
- "1" !== e && c(), g = b("<iframe />", { | |
- src: d.previewUrl(), | |
- title: f.l10n.previewIframeTitle | |
- }).hide(), g.appendTo(d.container), g.on("load", function() { | |
- d.triedLogin = !0, g.remove(), d.run(a) | |
- }) | |
- }) | |
- }, | |
- destroy: function() { | |
- f.Messenger.prototype.destroy.call(this), this.iframe && this.iframe.remove(), delete this.iframe, delete this.targetWindow | |
- } | |
+ }), n.on("input", _.debounce(function() { | |
+ i.invalidDate || i.notifications.remove("invalid_date") | |
+ })), n.on("blur", _.debounce(function() { | |
+ i.invalidDate || i.populateDateInputs() | |
+ })) | |
+ }), i.inputElements.month.bind(i.updateDaysForMonth), i.inputElements.year.bind(i.updateDaysForMonth), i.populateDateInputs(), i.setting.bind(i.populateDateInputs), _.each(i.inputElements, function(e) { | |
+ e.bind(i.populateSetting) | |
+ }) | |
+ }, | |
+ parseDateTime: function(e) { | |
+ var t, n; | |
+ return e && (t = e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/)), t ? (t.shift(), n = { | |
+ year: t.shift(), | |
+ month: t.shift(), | |
+ day: t.shift(), | |
+ hour: t.shift() || "00", | |
+ minute: t.shift() || "00", | |
+ second: t.shift() || "00" | |
+ }, this.params.includeTime && this.params.twelveHourFormat && (n.hour = parseInt(n.hour, 10), n.meridian = 12 <= n.hour ? "pm" : "am", n.hour = n.hour % 12 ? String(n.hour % 12) : String(12), delete n.second), n) : null | |
+ }, | |
+ validateInputs: function() { | |
+ var e, o, s = this; | |
+ return s.invalidDate = !1, e = ["year", "day"], s.params.includeTime && e.push("hour", "minute"), _.find(e, function(e) { | |
+ var t, n, i, a; | |
+ return t = s.inputElements[e], o = t.element.get(0), n = parseInt(t.element.attr("max"), 10), i = parseInt(t.element.attr("min"), 10), a = parseInt(t(), 10), s.invalidDate = isNaN(a) || n < a || a < i, s.invalidDate || o.setCustomValidity(""), s.invalidDate | |
+ }), s.inputElements.meridian && !s.invalidDate && (o = s.inputElements.meridian.element.get(0), "am" !== s.inputElements.meridian.get() && "pm" !== s.inputElements.meridian.get() ? s.invalidDate = !0 : o.setCustomValidity("")), s.invalidDate ? o.setCustomValidity(L.l10n.invalidValue) : o.setCustomValidity(""), (!s.section() || L.section.has(s.section()) && L.section(s.section()).expanded()) && _.result(o, "reportValidity"), s.invalidDate | |
+ }, | |
+ updateDaysForMonth: function() { | |
+ var e, t, n, i, a = this; | |
+ n = parseInt(a.inputElements.month(), 10), t = parseInt(a.inputElements.year(), 10), i = parseInt(a.inputElements.day(), 10), n && t && (e = new Date(t, n, 0).getDate(), a.inputElements.day.element.attr("max", e), e < i && a.inputElements.day(String(e))) | |
+ }, | |
+ populateSetting: function() { | |
+ var e, t = this; | |
+ return !(t.validateInputs() || !t.params.allowPastDate && !t.isFutureDate()) && (e = t.convertInputDateToString(), t.setting.set(e), !0) | |
+ }, | |
+ convertInputDateToString: function() { | |
+ var e, t, n, i, a = this, | |
+ o = ""; | |
+ return i = function(e, t) { | |
+ var n; | |
+ return String(e).length < t && (n = t - String(e).length, e = Math.pow(10, n).toString().substr(1) + String(e)), e | |
+ }, n = function(e) { | |
+ var t = parseInt(a.inputElements[e].get(), 10); | |
+ return _.contains(["month", "day", "hour", "minute"], e) ? t = i(t, 2) : "year" === e && (t = i(t, 4)), t | |
+ }, e = ["year", "-", "month", "-", "day"], a.params.includeTime && (t = a.inputElements.meridian ? a.convertHourToTwentyFourHourFormat(a.inputElements.hour(), a.inputElements.meridian()) : a.inputElements.hour(), e = e.concat([" ", i(t, 2), ":", "minute", ":", "00"])), _.each(e, function(e) { | |
+ o += a.inputElements[e] ? n(e) : e | |
+ }), o | |
+ }, | |
+ isFutureDate: function() { | |
+ return 0 < L.utils.getRemainingTime(this.convertInputDateToString()) | |
+ }, | |
+ convertHourToTwentyFourHourFormat: function(e, t) { | |
+ var n, i; | |
+ return i = parseInt(e, 10), isNaN(i) ? "" : (n = "pm" === t && i < 12 ? i + 12 : "am" === t && 12 === i ? i - 12 : i, String(n)) | |
+ }, | |
+ populateDateInputs: function() { | |
+ var i; | |
+ return !!(i = this.parseDateTime(this.setting.get())) && (_.each(this.inputElements, function(e, t) { | |
+ var n = i[t]; | |
+ "month" === t || "meridian" === t ? (n = n.replace(/^0/, ""), e.set(n)) : (n = parseInt(n, 10), e.element.is(document.activeElement) ? n !== parseInt(e(), 10) && e.set(String(n)) : e.set(i[t])) | |
+ }), !0) | |
+ }, | |
+ toggleFutureDateNotification: function(e) { | |
+ var t, n; | |
+ return t = "not_future_date", e ? (n = new L.Notification(t, { | |
+ type: "error", | |
+ message: L.l10n.futureDateError | |
+ }), this.notifications.add(n)) : this.notifications.remove(t), this | |
+ } | |
+ }), L.PreviewLinkControl = L.Control.extend({ | |
+ defaults: _.extend({}, L.Control.prototype.defaults, { | |
+ templateId: "customize-preview-link-control" | |
}), | |
- function() { | |
- var a = 0; | |
- f.PreviewFrame.uuid = function() { | |
- return "preview-" + String(a++) | |
- } | |
- }(), f.setDocumentTitle = function(a) { | |
- var b, c; | |
- b = f.settings.documentTitleTmpl, c = b.replace("%s", a), document.title = c, f.trigger("title", c) | |
- }, f.Previewer = f.Messenger.extend({ | |
- refreshBuffer: null, | |
- initialize: function(a, c) { | |
- var d = this, | |
- e = document.createElement("a"); | |
- b.extend(d, c || {}), d.deferred = { | |
- active: b.Deferred() | |
- }, d.refresh = _.debounce(function(a) { | |
- return function() { | |
- var b, c; | |
- b = function() { | |
- return 0 === f.state("processing").get() | |
- }, b() ? a.call(d) : (c = function() { | |
- b() && (a.call(d), f.state("processing").unbind(c)) | |
- }, f.state("processing").bind(c)) | |
- } | |
- }(d.refresh), d.refreshBuffer), d.container = f.ensure(a.container), d.allowedUrls = a.allowedUrls, a.url = window.location.href, f.Messenger.prototype.initialize.call(d, a), e.href = d.origin(), d.add("scheme", e.protocol.replace(/:$/, "")), d.add("previewUrl", a.previewUrl).setter(function(a) { | |
- var c, e, g, h = null, | |
- i = []; | |
- return c = document.createElement("a"), c.href = a, /\/wp-(admin|includes|content)(\/|$)/.test(c.pathname) ? null : (c.search.length > 1 && (e = f.utils.parseQueryString(c.search.substr(1)), delete e.customize_changeset_uuid, delete e.customize_theme, delete e.customize_messenger_channel, delete e.customize_autosaved, _.isEmpty(e) ? c.search = "" : c.search = b.param(e)), i.push(c), d.scheme.get() + ":" !== c.protocol && (c = document.createElement("a"), c.href = i[0].href, c.protocol = d.scheme.get() + ":", i.unshift(c)), g = document.createElement("a"), _.find(i, function(a) { | |
- return !_.isUndefined(_.find(d.allowedUrls, function(b) { | |
- if (g.href = b, c.protocol === g.protocol && c.host === g.host && 0 === c.pathname.indexOf(g.pathname.replace(/\/$/, ""))) return h = a.href, !0 | |
- })) | |
- }), h) | |
- }), d.bind("ready", d.ready), d.deferred.active.done(_.bind(d.keepPreviewAlive, d)), d.bind("synced", function() { | |
- d.send("active") | |
- }), d.previewUrl.bind(d.refresh), d.scroll = 0, d.bind("scroll", function(a) { | |
- d.scroll = a | |
- }), d.bind("url", function(a) { | |
- var b, c = !1; | |
- d.scroll = 0, b = function() { | |
- c = !0 | |
- }, d.previewUrl.bind(b), d.previewUrl.set(a), d.previewUrl.unbind(b), c || d.refresh() | |
- }), d.bind("documentTitle", function(a) { | |
- f.setDocumentTitle(a) | |
- }) | |
- }, | |
- ready: function(a) { | |
- var b, c = this, | |
- d = {}; | |
- d.settings = f.get(), d["settings-modified-while-loading"] = c.settingsModifiedWhileLoading, ("resolved" !== c.deferred.active.state() || c.loading) && (d.scroll = c.scroll), d["edit-shortcut-visibility"] = f.state("editShortcutVisibility").get(), c.send("sync", d), a.currentUrl && (c.previewUrl.unbind(c.refresh), c.previewUrl.set(a.currentUrl), c.previewUrl.bind(c.refresh)), b = { | |
- panel: a.activePanels, | |
- section: a.activeSections, | |
- control: a.activeControls | |
- }, _(b).each(function(a, b) { | |
- f[b].each(function(c, d) { | |
- var e = _.isUndefined(f.settings[b + "s"][d]); | |
- e && _.isUndefined(a[d]) || (a[d] ? c.activate() : c.deactivate()) | |
- }) | |
- }), a.settingValidities && f._handleSettingValidities({ | |
- settingValidities: a.settingValidities, | |
- focusInvalidControl: !1 | |
- }) | |
- }, | |
- keepPreviewAlive: function() { | |
- var a, b, c, d, e = this; | |
- d = function() { | |
- b = setTimeout(c, f.settings.timeouts.keepAliveCheck) | |
- }, a = function() { | |
- f.state("previewerAlive").set(!0), clearTimeout(b), d() | |
- }, c = function() { | |
- f.state("previewerAlive").set(!1) | |
- }, d(), e.bind("ready", a), e.bind("keep-alive", a) | |
- }, | |
- query: function() {}, | |
- abort: function() { | |
- this.loading && (this.loading.destroy(), delete this.loading) | |
- }, | |
- refresh: function() { | |
- var a, b = this; | |
- b.send("loading-initiated"), b.abort(), b.loading = new f.PreviewFrame({ | |
- url: b.url(), | |
- previewUrl: b.previewUrl(), | |
- query: b.query({ | |
- excludeCustomizedSaved: !0 | |
- }) || {}, | |
- container: b.container | |
- }), b.settingsModifiedWhileLoading = {}, a = function(a) { | |
- b.settingsModifiedWhileLoading[a.id] = !0 | |
- }, f.bind("change", a), b.loading.always(function() { | |
- f.unbind("change", a) | |
- }), b.loading.done(function(a) { | |
- var c, d = this; | |
- b.preview = d, b.targetWindow(d.targetWindow()), b.channel(d.channel()), c = function() { | |
- d.unbind("synced", c), b._previousPreview && b._previousPreview.destroy(), b._previousPreview = b.preview, b.deferred.active.resolve(), delete b.loading | |
- }, d.bind("synced", c), b.trigger("ready", a) | |
- }), b.loading.fail(function(a) { | |
- b.send("loading-failed"), "logged out" === a && (b.preview && (b.preview.destroy(), delete b.preview), b.login().done(b.refresh)), "cheatin" === a && b.cheatin() | |
- }) | |
- }, | |
- login: function() { | |
- var a, c, d, e = this; | |
- return this._login ? this._login : (a = b.Deferred(), this._login = a.promise(), c = new f.Messenger({ | |
- channel: "login", | |
- url: f.settings.url.login | |
- }), d = b("<iframe />", { | |
- src: f.settings.url.login, | |
- title: f.l10n.loginIframeTitle | |
- }).appendTo(this.container), c.targetWindow(d[0].contentWindow), c.bind("login", function() { | |
- var b = e.refreshNonces(); | |
- b.always(function() { | |
- d.remove(), c.destroy(), delete e._login | |
- }), b.done(function() { | |
- a.resolve() | |
- }), b.fail(function() { | |
- e.cheatin(), a.reject() | |
- }) | |
- }), this._login) | |
- }, | |
- cheatin: function() { | |
- b(document.body).empty().addClass("cheatin").append("<h1>" + f.l10n.notAllowedHeading + "</h1><p>" + f.l10n.notAllowed + "</p>") | |
- }, | |
- refreshNonces: function() { | |
- var a, c = b.Deferred(); | |
- return c.promise(), a = wp.ajax.post("customize_refresh_nonces", { | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet | |
- }), a.done(function(a) { | |
- f.trigger("nonce-refresh", a), c.resolve() | |
- }), a.fail(function() { | |
- c.reject() | |
- }), c | |
- } | |
- }), f.settingConstructor = {}, f.controlConstructor = { | |
- color: f.ColorControl, | |
- media: f.MediaControl, | |
- upload: f.UploadControl, | |
- image: f.ImageControl, | |
- cropped_image: f.CroppedImageControl, | |
- site_icon: f.SiteIconControl, | |
- header: f.HeaderControl, | |
- background: f.BackgroundControl, | |
- background_position: f.BackgroundPositionControl, | |
- theme: f.ThemeControl, | |
- date_time: f.DateTimeControl, | |
- code_editor: f.CodeEditorControl | |
- }, f.panelConstructor = { | |
- themes: f.ThemesPanel | |
- }, f.sectionConstructor = { | |
- themes: f.ThemesSection, | |
- outer: f.OuterSection | |
- }, f._handleSettingValidities = function(a) { | |
- var b, c = [], | |
- d = !1; | |
- _.each(a.settingValidities, function(a, b) { | |
- var d = f(b); | |
- d && (_.isObject(a) && _.each(a, function(a, b) { | |
- var e, g, h = !1; | |
- e = new f.Notification(b, _.extend({ | |
- fromServer: !0 | |
- }, a)), g = d.notifications(e.code), g && (h = e.type !== g.type || e.message !== g.message || !_.isEqual(e.data, g.data)), h && d.notifications.remove(b), d.notifications.has(e.code) || d.notifications.add(e), c.push(d.id) | |
- }), d.notifications.each(function(b) { | |
- !b.fromServer || "error" !== b.type || !0 !== a && a[b.code] || d.notifications.remove(b.code) | |
+ ready: function() { | |
+ var e, t, n, i, a, o, s = this; | |
+ _.bindAll(s, "updatePreviewLink"), s.setting || (s.setting = new L.Value), s.previewElements = {}, s.container.find(".preview-control-element").each(function() { | |
+ n = H(this), t = n.data("component"), e = new L.Element(n), s.previewElements[t] = e, s.elements.push(e) | |
+ }), i = s.previewElements.url, a = s.previewElements.input, o = s.previewElements.button, a.link(s.setting), i.link(s.setting), i.bind(function(e) { | |
+ i.element.parent().attr({ | |
+ href: e, | |
+ target: L.settings.changeset.uuid | |
+ }) | |
+ }), L.bind("ready", s.updatePreviewLink), L.state("saved").bind(s.updatePreviewLink), L.state("changesetStatus").bind(s.updatePreviewLink), L.state("activated").bind(s.updatePreviewLink), L.previewer.previewUrl.bind(s.updatePreviewLink), o.element.on("click", function(e) { | |
+ e.preventDefault(), s.setting() && (a.element.select(), document.execCommand("copy"), o(o.element.data("copied-text"))) | |
+ }), i.element.parent().on("click", function(e) { | |
+ H(this).hasClass("disabled") && e.preventDefault() | |
+ }), o.element.on("mouseenter", function() { | |
+ s.setting() && o(o.element.data("copy-text")) | |
+ }) | |
+ }, | |
+ updatePreviewLink: function() { | |
+ var e; | |
+ e = !L.state("saved").get() || "" === L.state("changesetStatus").get() || "auto-draft" === L.state("changesetStatus").get(), this.toggleSaveNotification(e), this.previewElements.url.element.parent().toggleClass("disabled", e), this.previewElements.button.element.prop("disabled", e), this.setting.set(L.previewer.getFrontendPreviewUrl()) | |
+ }, | |
+ toggleSaveNotification: function(e) { | |
+ var t, n; | |
+ t = "changes_not_saved", e ? (n = new L.Notification(t, { | |
+ type: "info", | |
+ message: L.l10n.saveBeforeShare | |
+ }), this.notifications.add(n)) : this.notifications.remove(t) | |
+ } | |
+ }), L.defaultConstructor = L.Setting, L.control = new L.Values({ | |
+ defaultConstructor: L.Control | |
+ }), L.section = new L.Values({ | |
+ defaultConstructor: L.Section | |
+ }), L.panel = new L.Values({ | |
+ defaultConstructor: L.Panel | |
+ }), L.notifications = new L.Notifications, L.PreviewFrame = L.Messenger.extend({ | |
+ sensitivity: null, | |
+ initialize: function(e, t) { | |
+ var n = H.Deferred(); | |
+ n.promise(this), this.container = e.container, H.extend(e, { | |
+ channel: L.PreviewFrame.uuid() | |
+ }), L.Messenger.prototype.initialize.call(this, e, t), this.add("previewUrl", e.previewUrl), this.query = H.extend(e.query || {}, { | |
+ customize_messenger_channel: this.channel() | |
+ }), this.run(n) | |
+ }, | |
+ run: function(t) { | |
+ var e, n, i, a = this, | |
+ o = !1, | |
+ s = !1, | |
+ r = null, | |
+ c = "{}" !== a.query.customized; | |
+ a._ready && a.unbind("ready", a._ready), a._ready = function(e) { | |
+ s = !0, r = e, a.container.addClass("iframe-ready"), e && o && t.resolveWith(a, [e]) | |
+ }, a.bind("ready", a._ready), (e = document.createElement("a")).href = a.previewUrl(), n = _.extend(L.utils.parseQueryString(e.search.substr(1)), { | |
+ customize_changeset_uuid: a.query.customize_changeset_uuid, | |
+ customize_theme: a.query.customize_theme, | |
+ customize_messenger_channel: a.query.customize_messenger_channel | |
+ }), !L.settings.changeset.autosaved && L.state("saved").get() || (n.customize_autosaved = "on"), e.search = H.param(n), a.iframe = H("<iframe />", { | |
+ title: L.l10n.previewIframeTitle, | |
+ name: "customize-" + a.channel() | |
+ }), a.iframe.attr("onmousewheel", ""), c ? a.iframe.attr("data-src", e.href) : a.iframe.attr("src", e.href), a.iframe.appendTo(a.container), a.targetWindow(a.iframe[0].contentWindow), c && ((i = H("<form>", { | |
+ action: e.href, | |
+ target: a.iframe.attr("name"), | |
+ method: "post", | |
+ hidden: "hidden" | |
+ })).append(H("<input>", { | |
+ type: "hidden", | |
+ name: "_method", | |
+ value: "GET" | |
+ })), _.each(a.query, function(e, t) { | |
+ i.append(H("<input>", { | |
+ type: "hidden", | |
+ name: t, | |
+ value: e | |
})) | |
- }), a.focusInvalidControl && (b = f.findControlsForSettings(c), _(_.values(b)).find(function(a) { | |
- return _(a).find(function(a) { | |
- var b = a.section() && f.section.has(a.section()) && f.section(a.section()).expanded(); | |
- return b && a.expanded && (b = a.expanded()), b && (a.focus(), d = !0), d | |
- }) | |
- }), d || _.isEmpty(b) || _.values(b)[0][0].focus()) | |
- }, f.findControlsForSettings = function(a) { | |
- var b, c = {}; | |
- return _.each(_.unique(a), function(a) { | |
- var d = f(a); | |
- d && (b = d.findControls(), b && b.length > 0 && (c[a] = b)) | |
- }), c | |
- }, f.reflowPaneContents = _.bind(function() { | |
- var a, c, d, e = [], | |
- g = !1; | |
- document.activeElement && (c = b(document.activeElement)), f.panel.each(function(b) { | |
- if ("themes" !== b.id) { | |
- var c = b.sections(), | |
- d = _.pluck(c, "headContainer"); | |
- e.push(b), a = b.contentContainer.is("ul") ? b.contentContainer : b.contentContainer.find("ul:first"), f.utils.areElementListsEqual(d, a.children("[id]")) || (_(c).each(function(b) { | |
- a.append(b.headContainer) | |
- }), g = !0) | |
- } | |
- }), f.section.each(function(b) { | |
- var c = b.controls(), | |
- d = _.pluck(c, "container"); | |
- b.panel() || e.push(b), a = b.contentContainer.is("ul") ? b.contentContainer : b.contentContainer.find("ul:first"), f.utils.areElementListsEqual(d, a.children("[id]")) || (_(c).each(function(b) { | |
- a.append(b.container) | |
- }), g = !0) | |
- }), e.sort(f.utils.prioritySort), d = _.pluck(e, "headContainer"), a = b("#customize-theme-controls .customize-pane-parent"), f.utils.areElementListsEqual(d, a.children()) || (_(e).each(function(b) { | |
- a.append(b.headContainer) | |
- }), g = !0), f.panel.each(function(a) { | |
- var b = a.active(); | |
- a.active.callbacks.fireWith(a.active, [b, b]) | |
- }), f.section.each(function(a) { | |
- var b = a.active(); | |
- a.active.callbacks.fireWith(a.active, [b, b]) | |
- }), g && c && c.focus(), f.trigger("pane-contents-reflowed") | |
- }, f), f.state = new f.Values, _.each(["saved", "saving", "trashing", "activated", "processing", "paneVisible", "expandedPanel", "expandedSection", "changesetDate", "selectedChangesetDate", "changesetStatus", "selectedChangesetStatus", "remainingTimeToPublish", "previewerAlive", "editShortcutVisibility", "changesetLocked", "previewedDevice"], function(a) { | |
- f.state.create(a) | |
- }), b(function() { | |
- function a() { | |
- function c(a) { | |
- a || f.settings.changeset.autosaved || (f.settings.changeset.autosaved = !0, f.previewer.send("autosaving")) | |
- } | |
- var d, e, g, h = !1; | |
- f.unbind("change", a), f.state("saved").bind(c), c(f.state("saved").get()), e = function() { | |
- h || (h = !0, f.requestChangesetUpdate({}, { | |
- autosave: !0 | |
- }).always(function() { | |
- h = !1 | |
- })), g() | |
- }, g = function() { | |
- clearTimeout(d), d = setTimeout(function() { | |
- e() | |
- }, f.settings.timeouts.changesetAutoSave) | |
- }, g(), b(document).on("visibilitychange.wp-customize-changeset-update", function() { | |
- document.hidden && e() | |
- }), b(window).on("beforeunload.wp-customize-changeset-update", function() { | |
- e() | |
+ }), a.container.append(i), i.submit(), i.remove()), a.bind("iframe-loading-error", function(e) { | |
+ a.iframe.remove(), 0 !== e ? -1 !== e ? t.rejectWith(a, ["request failure"]) : t.rejectWith(a, ["cheatin"]) : a.login(t) | |
+ }), a.iframe.one("load", function() { | |
+ o = !0, s ? t.resolveWith(a, [r]) : setTimeout(function() { | |
+ t.rejectWith(a, ["ready timeout"]) | |
+ }, a.sensitivity) | |
+ }) | |
+ }, | |
+ login: function(n) { | |
+ var i, a = this; | |
+ if (i = function() { | |
+ n.rejectWith(a, ["logged out"]) | |
+ }, this.triedLogin) return i(); | |
+ H.get(L.settings.url.ajax, { | |
+ action: "logged-in" | |
+ }).fail(i).done(function(e) { | |
+ var t; | |
+ "1" !== e && i(), (t = H("<iframe />", { | |
+ src: a.previewUrl(), | |
+ title: L.l10n.previewIframeTitle | |
+ }).hide()).appendTo(a.container), t.on("load", function() { | |
+ a.triedLogin = !0, t.remove(), a.run(n) | |
}) | |
- } | |
- if (f.settings = window._wpCustomizeSettings, f.l10n = window._wpCustomizeControlsL10n, f.settings && b.support.postMessage && (b.support.cors || !f.settings.isCrossDomain)) { | |
- null === f.PreviewFrame.prototype.sensitivity && (f.PreviewFrame.prototype.sensitivity = f.settings.timeouts.previewFrameSensitivity), null === f.Previewer.prototype.refreshBuffer && (f.Previewer.prototype.refreshBuffer = f.settings.timeouts.windowRefresh); | |
- var c, d = b(document.body), | |
- e = d.children(".wp-full-overlay"), | |
- g = b("#customize-info .panel-title.site-title"), | |
- h = b(".customize-controls-close"), | |
- i = b("#save"), | |
- j = b("#customize-save-button-wrapper"), | |
- k = b("#publish-settings"), | |
- l = b("#customize-footer-actions"); | |
- f.bind("ready", function() { | |
- f.section.add(new f.OuterSection("publish_settings", { | |
- title: f.l10n.publishSettings, | |
- priority: 0, | |
- active: f.settings.theme.active | |
+ }) | |
+ }, | |
+ destroy: function() { | |
+ L.Messenger.prototype.destroy.call(this), this.iframe && this.iframe.remove(), delete this.iframe, delete this.targetWindow | |
+ } | |
+ }), r = 0, L.PreviewFrame.uuid = function() { | |
+ return "preview-" + String(r++) | |
+ }, L.setDocumentTitle = function(e) { | |
+ var t; | |
+ t = L.settings.documentTitleTmpl.replace("%s", e), document.title = t, L.trigger("title", t) | |
+ }, L.Previewer = L.Messenger.extend({ | |
+ refreshBuffer: null, | |
+ initialize: function(e, t) { | |
+ var n, s = this, | |
+ i = document.createElement("a"); | |
+ H.extend(s, t || {}), s.deferred = { | |
+ active: H.Deferred() | |
+ }, s.refresh = _.debounce((n = s.refresh, function() { | |
+ var e, t; | |
+ (e = function() { | |
+ return 0 === L.state("processing").get() | |
+ })() ? n.call(s): (t = function() { | |
+ e() && (n.call(s), L.state("processing").unbind(t)) | |
+ }, L.state("processing").bind(t)) | |
+ }), s.refreshBuffer), s.container = L.ensure(e.container), s.allowedUrls = e.allowedUrls, e.url = window.location.href, L.Messenger.prototype.initialize.call(s, e), i.href = s.origin(), s.add("scheme", i.protocol.replace(/:$/, "")), s.add("previewUrl", e.previewUrl).setter(function(e) { | |
+ var n, t, i, a = null, | |
+ o = []; | |
+ return (n = document.createElement("a")).href = e, /\/wp-(admin|includes|content)(\/|$)/.test(n.pathname) ? null : (1 < n.search.length && (delete(t = L.utils.parseQueryString(n.search.substr(1))).customize_changeset_uuid, delete t.customize_theme, delete t.customize_messenger_channel, delete t.customize_autosaved, _.isEmpty(t) ? n.search = "" : n.search = H.param(t)), o.push(n), s.scheme.get() + ":" !== n.protocol && ((n = document.createElement("a")).href = o[0].href, n.protocol = s.scheme.get() + ":", o.unshift(n)), i = document.createElement("a"), _.find(o, function(t) { | |
+ return !_.isUndefined(_.find(s.allowedUrls, function(e) { | |
+ if (i.href = e, n.protocol === i.protocol && n.host === i.host && 0 === n.pathname.indexOf(i.pathname.replace(/\/$/, ""))) return a = t.href, !0 | |
+ })) | |
+ }), a) | |
+ }), s.bind("ready", s.ready), s.deferred.active.done(_.bind(s.keepPreviewAlive, s)), s.bind("synced", function() { | |
+ s.send("active") | |
+ }), s.previewUrl.bind(s.refresh), s.scroll = 0, s.bind("scroll", function(e) { | |
+ s.scroll = e | |
+ }), s.bind("url", function(e) { | |
+ var t, n = !1; | |
+ s.scroll = 0, t = function() { | |
+ n = !0 | |
+ }, s.previewUrl.bind(t), s.previewUrl.set(e), s.previewUrl.unbind(t), n || s.refresh() | |
+ }), s.bind("documentTitle", function(e) { | |
+ L.setDocumentTitle(e) | |
+ }) | |
+ }, | |
+ ready: function(e) { | |
+ var t, n = this, | |
+ i = {}; | |
+ i.settings = L.get(), i["settings-modified-while-loading"] = n.settingsModifiedWhileLoading, ("resolved" !== n.deferred.active.state() || n.loading) && (i.scroll = n.scroll), i["edit-shortcut-visibility"] = L.state("editShortcutVisibility").get(), n.send("sync", i), e.currentUrl && (n.previewUrl.unbind(n.refresh), n.previewUrl.set(e.currentUrl), n.previewUrl.bind(n.refresh)), t = { | |
+ panel: e.activePanels, | |
+ section: e.activeSections, | |
+ control: e.activeControls | |
+ }, _(t).each(function(n, i) { | |
+ L[i].each(function(e, t) { | |
+ _.isUndefined(L.settings[i + "s"][t]) && _.isUndefined(n[t]) || (n[t] ? e.activate() : e.deactivate()) | |
+ }) | |
+ }), e.settingValidities && L._handleSettingValidities({ | |
+ settingValidities: e.settingValidities, | |
+ focusInvalidControl: !1 | |
+ }) | |
+ }, | |
+ keepPreviewAlive: function() { | |
+ var e, t, n, i; | |
+ i = function() { | |
+ t = setTimeout(n, L.settings.timeouts.keepAliveCheck) | |
+ }, e = function() { | |
+ L.state("previewerAlive").set(!0), clearTimeout(t), i() | |
+ }, n = function() { | |
+ L.state("previewerAlive").set(!1) | |
+ }, i(), this.bind("ready", e), this.bind("keep-alive", e) | |
+ }, | |
+ query: function() {}, | |
+ abort: function() { | |
+ this.loading && (this.loading.destroy(), delete this.loading) | |
+ }, | |
+ refresh: function() { | |
+ var e, i = this; | |
+ i.send("loading-initiated"), i.abort(), i.loading = new L.PreviewFrame({ | |
+ url: i.url(), | |
+ previewUrl: i.previewUrl(), | |
+ query: i.query({ | |
+ excludeCustomizedSaved: !0 | |
+ }) || {}, | |
+ container: i.container | |
+ }), i.settingsModifiedWhileLoading = {}, e = function(e) { | |
+ i.settingsModifiedWhileLoading[e.id] = !0 | |
+ }, L.bind("change", e), i.loading.always(function() { | |
+ L.unbind("change", e) | |
+ }), i.loading.done(function(e) { | |
+ var t, n = this; | |
+ i.preview = n, i.targetWindow(n.targetWindow()), i.channel(n.channel()), t = function() { | |
+ n.unbind("synced", t), i._previousPreview && i._previousPreview.destroy(), i._previousPreview = i.preview, i.deferred.active.resolve(), delete i.loading | |
+ }, n.bind("synced", t), i.trigger("ready", e) | |
+ }), i.loading.fail(function(e) { | |
+ i.send("loading-failed"), "logged out" === e && (i.preview && (i.preview.destroy(), delete i.preview), i.login().done(i.refresh)), "cheatin" === e && i.cheatin() | |
+ }) | |
+ }, | |
+ login: function() { | |
+ var t, n, i, a = this; | |
+ return this._login || (t = H.Deferred(), this._login = t.promise(), n = new L.Messenger({ | |
+ channel: "login", | |
+ url: L.settings.url.login | |
+ }), i = H("<iframe />", { | |
+ src: L.settings.url.login, | |
+ title: L.l10n.loginIframeTitle | |
+ }).appendTo(this.container), n.targetWindow(i[0].contentWindow), n.bind("login", function() { | |
+ var e = a.refreshNonces(); | |
+ e.always(function() { | |
+ i.remove(), n.destroy(), delete a._login | |
+ }), e.done(function() { | |
+ t.resolve() | |
+ }), e.fail(function() { | |
+ a.cheatin(), t.reject() | |
+ }) | |
+ })), this._login | |
+ }, | |
+ cheatin: function() { | |
+ H(document.body).empty().addClass("cheatin").append("<h1>" + L.l10n.notAllowedHeading + "</h1><p>" + L.l10n.notAllowed + "</p>") | |
+ }, | |
+ refreshNonces: function() { | |
+ var e, t = H.Deferred(); | |
+ return t.promise(), (e = wp.ajax.post("customize_refresh_nonces", { | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet | |
+ })).done(function(e) { | |
+ L.trigger("nonce-refresh", e), t.resolve() | |
+ }), e.fail(function() { | |
+ t.reject() | |
+ }), t | |
+ } | |
+ }), L.settingConstructor = {}, L.controlConstructor = { | |
+ color: L.ColorControl, | |
+ media: L.MediaControl, | |
+ upload: L.UploadControl, | |
+ image: L.ImageControl, | |
+ cropped_image: L.CroppedImageControl, | |
+ site_icon: L.SiteIconControl, | |
+ header: L.HeaderControl, | |
+ background: L.BackgroundControl, | |
+ background_position: L.BackgroundPositionControl, | |
+ theme: L.ThemeControl, | |
+ date_time: L.DateTimeControl, | |
+ code_editor: L.CodeEditorControl | |
+ }, L.panelConstructor = { | |
+ themes: L.ThemesPanel | |
+ }, L.sectionConstructor = { | |
+ themes: L.ThemesSection, | |
+ outer: L.OuterSection | |
+ }, L._handleSettingValidities = function(e) { | |
+ var t, s = [], | |
+ n = !1; | |
+ _.each(e.settingValidities, function(t, e) { | |
+ var o = L(e); | |
+ o && (_.isObject(t) && _.each(t, function(e, t) { | |
+ var n, i, a = !1; | |
+ n = new L.Notification(t, _.extend({ | |
+ fromServer: !0 | |
+ }, e)), (i = o.notifications(n.code)) && (a = n.type !== i.type || n.message !== i.message || !_.isEqual(n.data, i.data)), a && o.notifications.remove(t), o.notifications.has(n.code) || o.notifications.add(n), s.push(o.id) | |
+ }), o.notifications.each(function(e) { | |
+ !e.fromServer || "error" !== e.type || !0 !== t && t[e.code] || o.notifications.remove(e.code) | |
+ })) | |
+ }), e.focusInvalidControl && (t = L.findControlsForSettings(s), _(_.values(t)).find(function(e) { | |
+ return _(e).find(function(e) { | |
+ var t = e.section() && L.section.has(e.section()) && L.section(e.section()).expanded(); | |
+ return t && e.expanded && (t = e.expanded()), t && (e.focus(), n = !0), n | |
+ }) | |
+ }), n || _.isEmpty(t) || _.values(t)[0][0].focus()) | |
+ }, L.findControlsForSettings = function(e) { | |
+ var n, i = {}; | |
+ return _.each(_.unique(e), function(e) { | |
+ var t = L(e); | |
+ t && (n = t.findControls()) && 0 < n.length && (i[e] = n) | |
+ }), i | |
+ }, L.reflowPaneContents = _.bind(function() { | |
+ var i, e, t, a = [], | |
+ o = !1; | |
+ document.activeElement && (e = H(document.activeElement)), L.panel.each(function(e) { | |
+ if ("themes" !== e.id) { | |
+ var t = e.sections(), | |
+ n = _.pluck(t, "headContainer"); | |
+ a.push(e), i = e.contentContainer.is("ul") ? e.contentContainer : e.contentContainer.find("ul:first"), L.utils.areElementListsEqual(n, i.children("[id]")) || (_(t).each(function(e) { | |
+ i.append(e.headContainer) | |
+ }), o = !0) | |
+ } | |
+ }), L.section.each(function(e) { | |
+ var t = e.controls(), | |
+ n = _.pluck(t, "container"); | |
+ e.panel() || a.push(e), i = e.contentContainer.is("ul") ? e.contentContainer : e.contentContainer.find("ul:first"), L.utils.areElementListsEqual(n, i.children("[id]")) || (_(t).each(function(e) { | |
+ i.append(e.container) | |
+ }), o = !0) | |
+ }), a.sort(L.utils.prioritySort), t = _.pluck(a, "headContainer"), i = H("#customize-theme-controls .customize-pane-parent"), L.utils.areElementListsEqual(t, i.children()) || (_(a).each(function(e) { | |
+ i.append(e.headContainer) | |
+ }), o = !0), L.panel.each(function(e) { | |
+ var t = e.active(); | |
+ e.active.callbacks.fireWith(e.active, [t, t]) | |
+ }), L.section.each(function(e) { | |
+ var t = e.active(); | |
+ e.active.callbacks.fireWith(e.active, [t, t]) | |
+ }), o && e && e.focus(), L.trigger("pane-contents-reflowed") | |
+ }, L), L.state = new L.Values, _.each(["saved", "saving", "trashing", "activated", "processing", "paneVisible", "expandedPanel", "expandedSection", "changesetDate", "selectedChangesetDate", "changesetStatus", "selectedChangesetStatus", "remainingTimeToPublish", "previewerAlive", "editShortcutVisibility", "changesetLocked", "previewedDevice"], function(e) { | |
+ L.state.create(e) | |
+ }), H(function() { | |
+ if (L.settings = window._wpCustomizeSettings, L.l10n = window._wpCustomizeControlsL10n, L.settings && H.support.postMessage && (H.support.cors || !L.settings.isCrossDomain)) { | |
+ null === L.PreviewFrame.prototype.sensitivity && (L.PreviewFrame.prototype.sensitivity = L.settings.timeouts.previewFrameSensitivity), null === L.Previewer.prototype.refreshBuffer && (L.Previewer.prototype.refreshBuffer = L.settings.timeouts.windowRefresh); | |
+ var m, t, n, e, i, a, o, s, r, c, l, d, u, p, h, f, g, v, w, b, C, y, x, k, z, S, T, E, D = H(document.body), | |
+ P = D.children(".wp-full-overlay"), | |
+ N = H("#customize-info .panel-title.site-title"), | |
+ I = H(".customize-controls-close"), | |
+ U = H("#save"), | |
+ A = H("#customize-save-button-wrapper"), | |
+ F = H("#publish-settings"), | |
+ V = H("#customize-footer-actions"); | |
+ L.bind("ready", function() { | |
+ L.section.add(new L.OuterSection("publish_settings", { | |
+ title: L.l10n.publishSettings, | |
+ priority: 0, | |
+ active: L.settings.theme.active | |
+ })) | |
+ }), L.section("publish_settings", function(t) { | |
+ var e, n, i, a, o, s, r, c, l, d, u; | |
+ | |
+ function p() { | |
+ u || (u = L.utils.highlightButton(A, { | |
+ delay: 1e3, | |
+ focusTarget: U | |
})) | |
- }), f.section("publish_settings", function(a) { | |
- function b() { | |
- r || (r = f.utils.highlightButton(j, { | |
- delay: 1e3, | |
- focusTarget: i | |
- })) | |
+ } | |
+ | |
+ function h() { | |
+ u && (u(), u = null) | |
+ } | |
+ n = new L.Control("trash_changeset", { | |
+ type: "button", | |
+ section: t.id, | |
+ priority: 30, | |
+ input_attrs: { | |
+ class: "button-link button-link-delete", | |
+ value: L.l10n.discardChanges | |
} | |
+ }), L.control.add(n), n.deferred.embedded.done(function() { | |
+ n.container.find(".button-link").on("click", function() { | |
+ confirm(L.l10n.trashConfirm) && wp.customize.previewer.trash() | |
+ }) | |
+ }), L.control.add(new L.PreviewLinkControl("changeset_preview_link", { | |
+ section: t.id, | |
+ priority: 100 | |
+ })), a = function() { | |
+ return !!L.state("activated").get() && (!L.state("trashing").get() && "trash" !== L.state("changesetStatus").get() && ("" !== L.state("changesetStatus").get() || !L.state("saved").get())) | |
+ }, t.active.validate = a, i = function() { | |
+ t.active.set(a()) | |
+ }, L.state("activated").bind(i), L.state("trashing").bind(i), L.state("saved").bind(i), L.state("changesetStatus").bind(i), i(), (e = function() { | |
+ F.toggle(t.active.get()), U.toggleClass("has-next-sibling", t.active.get()) | |
+ })(), t.active.bind(e), L.state("selectedChangesetStatus").bind(h), t.contentContainer.find(".customize-action").text(L.l10n.updating), t.contentContainer.find(".customize-section-back").removeAttr("tabindex"), F.prop("disabled", !1), F.on("click", function(e) { | |
+ e.preventDefault(), t.expanded.set(!t.expanded.get()) | |
+ }), t.expanded.bind(function(e) { | |
+ var t; | |
+ F.attr("aria-expanded", String(e)), F.toggleClass("active", e), e ? h() : ("" !== (t = L.state("changesetStatus").get()) && "auto-draft" !== t || (t = "publish"), L.state("selectedChangesetStatus").get() !== t ? p() : "future" === L.state("selectedChangesetStatus").get() && L.state("selectedChangesetDate").get() !== L.state("changesetDate").get() && p()) | |
+ }), o = new L.Control("changeset_status", { | |
+ priority: 10, | |
+ type: "radio", | |
+ section: "publish_settings", | |
+ setting: L.state("selectedChangesetStatus"), | |
+ templateId: "customize-selected-changeset-status-control", | |
+ label: L.l10n.action, | |
+ choices: L.settings.changeset.statusChoices | |
+ }), L.control.add(o), (s = new L.DateTimeControl("changeset_scheduled_date", { | |
+ priority: 20, | |
+ section: "publish_settings", | |
+ setting: L.state("selectedChangesetDate"), | |
+ minYear: (new Date).getFullYear(), | |
+ allowPastDate: !1, | |
+ includeTime: !0, | |
+ twelveHourFormat: /a/i.test(L.settings.timeFormat), | |
+ description: L.l10n.scheduleDescription | |
+ })).notifications.alt = !0, L.control.add(s), c = function() { | |
+ L.state("selectedChangesetStatus").set("publish"), L.previewer.save() | |
+ }, d = function() { | |
+ var e = "future" === L.state("changesetStatus").get() && "future" === L.state("selectedChangesetStatus").get() && L.state("changesetDate").get() && L.state("selectedChangesetDate").get() === L.state("changesetDate").get() && 0 <= L.utils.getRemainingTime(L.state("changesetDate").get()); | |
+ e && !l ? l = setInterval(function() { | |
+ var e = L.utils.getRemainingTime(L.state("changesetDate").get()); | |
+ L.state("remainingTimeToPublish").set(e), e <= 0 && (clearInterval(l), l = 0, c()) | |
+ }, 1e3) : !e && l && (clearInterval(l), l = 0) | |
+ }, L.state("changesetDate").bind(d), L.state("selectedChangesetDate").bind(d), L.state("changesetStatus").bind(d), L.state("selectedChangesetStatus").bind(d), d(), s.active.validate = function() { | |
+ return "future" === L.state("selectedChangesetStatus").get() | |
+ }, (r = function(e) { | |
+ s.active.set("future" === e) | |
+ })(L.state("selectedChangesetStatus").get()), L.state("selectedChangesetStatus").bind(r), L.state("saving").bind(function(e) { | |
+ e && "future" === L.state("selectedChangesetStatus").get() && s.toggleFutureDateNotification(!s.isFutureDate()) | |
+ }) | |
+ }), H("#customize-controls").on("keydown", function(e) { | |
+ var t = 13 === e.which, | |
+ n = H(e.target); | |
+ t && (n.is("input:not([type=button])") || n.is("select")) && e.preventDefault() | |
+ }), H(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click", function() { | |
+ var e = H(this).closest(".accordion-section"), | |
+ t = e.find(".customize-panel-description:first"); | |
+ e.hasClass("cannot-expand") || (e.hasClass("open") ? (e.toggleClass("open"), t.slideUp(L.Panel.prototype.defaultExpandedArguments.duration, function() { | |
+ t.trigger("toggled") | |
+ }), H(this).attr("aria-expanded", !1)) : (t.slideDown(L.Panel.prototype.defaultExpandedArguments.duration, function() { | |
+ t.trigger("toggled") | |
+ }), e.toggleClass("open"), H(this).attr("aria-expanded", !0))) | |
+ }), L.previewer = new L.Previewer({ | |
+ container: "#customize-preview", | |
+ form: "#customize-controls", | |
+ previewUrl: L.settings.url.preview, | |
+ allowedUrls: L.settings.url.allowed | |
+ }, { | |
+ nonce: L.settings.nonce, | |
+ query: function(e) { | |
+ var t = { | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ nonce: this.nonce.preview, | |
+ customize_changeset_uuid: L.settings.changeset.uuid | |
+ }; | |
+ return !L.settings.changeset.autosaved && L.state("saved").get() || (t.customize_autosaved = "on"), t.customized = JSON.stringify(L.dirtyValues({ | |
+ unsaved: e && e.excludeCustomizedSaved | |
+ })), t | |
+ }, | |
+ save: function(o) { | |
+ var e, t, s = this, | |
+ r = H.Deferred(), | |
+ c = L.state("selectedChangesetStatus").get(), | |
+ l = L.state("selectedChangesetDate").get(), | |
+ n = L.state("processing"), | |
+ d = {}, | |
+ u = [], | |
+ p = [], | |
+ h = []; | |
- function c() { | |
- r && (r(), r = null) | |
+ function f(e) { | |
+ d[e.id] = !0 | |
} | |
- var d, e, g, h, l, m, n, o, p, q, r, s = 1e3; | |
- e = new f.Control("trash_changeset", { | |
- type: "button", | |
- section: a.id, | |
- priority: 30, | |
- input_attrs: { | |
- "class": "button-link button-link-delete", | |
- value: f.l10n.discardChanges | |
- } | |
- }), f.control.add(e), e.deferred.embedded.done(function() { | |
- e.container.find(".button-link").on("click", function() { | |
- confirm(f.l10n.trashConfirm) && wp.customize.previewer.trash() | |
- }) | |
- }), f.control.add(new f.PreviewLinkControl("changeset_preview_link", { | |
- section: a.id, | |
- priority: 100 | |
- })), h = function() { | |
- return !!f.state("activated").get() && (!f.state("trashing").get() && "trash" !== f.state("changesetStatus").get() && ("" !== f.state("changesetStatus").get() || !f.state("saved").get())) | |
- }, a.active.validate = h, g = function() { | |
- a.active.set(h()) | |
- }, f.state("activated").bind(g), f.state("trashing").bind(g), f.state("saved").bind(g), f.state("changesetStatus").bind(g), g(), d = function() { | |
- k.toggle(a.active.get()), i.toggleClass("has-next-sibling", a.active.get()) | |
- }, d(), a.active.bind(d), f.state("selectedChangesetStatus").bind(c), a.contentContainer.find(".customize-action").text(f.l10n.updating), a.contentContainer.find(".customize-section-back").removeAttr("tabindex"), k.prop("disabled", !1), k.on("click", function(b) { | |
- b.preventDefault(), a.expanded.set(!a.expanded.get()) | |
- }), a.expanded.bind(function(a) { | |
- var d; | |
- return k.attr("aria-expanded", String(a)), k.toggleClass("active", a), a ? void c() : (d = f.state("changesetStatus").get(), "" !== d && "auto-draft" !== d || (d = "publish"), void(f.state("selectedChangesetStatus").get() !== d ? b() : "future" === f.state("selectedChangesetStatus").get() && f.state("selectedChangesetDate").get() !== f.state("changesetDate").get() && b())) | |
- }), l = new f.Control("changeset_status", { | |
- priority: 10, | |
- type: "radio", | |
- section: "publish_settings", | |
- setting: f.state("selectedChangesetStatus"), | |
- templateId: "customize-selected-changeset-status-control", | |
- label: f.l10n.action, | |
- choices: f.settings.changeset.statusChoices | |
- }), f.control.add(l), m = new f.DateTimeControl("changeset_scheduled_date", { | |
- priority: 20, | |
- section: "publish_settings", | |
- setting: f.state("selectedChangesetDate"), | |
- minYear: (new Date).getFullYear(), | |
- allowPastDate: !1, | |
- includeTime: !0, | |
- twelveHourFormat: /a/i.test(f.settings.timeFormat), | |
- description: f.l10n.scheduleDescription | |
- }), m.notifications.alt = !0, f.control.add(m), o = function() { | |
- f.state("selectedChangesetStatus").set("publish"), f.previewer.save() | |
- }, q = function() { | |
- var a = "future" === f.state("changesetStatus").get() && "future" === f.state("selectedChangesetStatus").get() && f.state("changesetDate").get() && f.state("selectedChangesetDate").get() === f.state("changesetDate").get() && f.utils.getRemainingTime(f.state("changesetDate").get()) >= 0; | |
- a && !p ? p = setInterval(function() { | |
- var a = f.utils.getRemainingTime(f.state("changesetDate").get()); | |
- f.state("remainingTimeToPublish").set(a), a <= 0 && (clearInterval(p), p = 0, o()) | |
- }, s) : !a && p && (clearInterval(p), p = 0) | |
- }, f.state("changesetDate").bind(q), f.state("selectedChangesetDate").bind(q), f.state("changesetStatus").bind(q), f.state("selectedChangesetStatus").bind(q), q(), m.active.validate = function() { | |
- return "future" === f.state("selectedChangesetStatus").get() | |
- }, n = function(a) { | |
- m.active.set("future" === a) | |
- }, n(f.state("selectedChangesetStatus").get()), f.state("selectedChangesetStatus").bind(n), f.state("saving").bind(function(a) { | |
- a && "future" === f.state("selectedChangesetStatus").get() && m.toggleFutureDateNotification(!m.isFutureDate()) | |
- }) | |
- }), b("#customize-controls").on("keydown", function(a) { | |
- var c = 13 === a.which, | |
- d = b(a.target); | |
- c && (d.is("input:not([type=button])") || d.is("select")) && a.preventDefault() | |
- }), b(".customize-info").find("> .accordion-section-title .customize-help-toggle").on("click", function() { | |
- var a = b(this).closest(".accordion-section"), | |
- c = a.find(".customize-panel-description:first"); | |
- a.hasClass("cannot-expand") || (a.hasClass("open") ? (a.toggleClass("open"), c.slideUp(f.Panel.prototype.defaultExpandedArguments.duration, function() { | |
- c.trigger("toggled") | |
- }), b(this).attr("aria-expanded", !1)) : (c.slideDown(f.Panel.prototype.defaultExpandedArguments.duration, function() { | |
- c.trigger("toggled") | |
- }), a.toggleClass("open"), b(this).attr("aria-expanded", !0))) | |
- }), f.previewer = new f.Previewer({ | |
- container: "#customize-preview", | |
- form: "#customize-controls", | |
- previewUrl: f.settings.url.preview, | |
- allowedUrls: f.settings.url.allowed | |
- }, { | |
- nonce: f.settings.nonce, | |
- query: function(a) { | |
- var b = { | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet, | |
- nonce: this.nonce.preview, | |
- customize_changeset_uuid: f.settings.changeset.uuid | |
- }; | |
- return !f.settings.changeset.autosaved && f.state("saved").get() || (b.customize_autosaved = "on"), b.customized = JSON.stringify(f.dirtyValues({ | |
- unsaved: a && a.excludeCustomizedSaved | |
- })), b | |
- }, | |
- save: function(a) { | |
- function d(a) { | |
- m[a.id] = !0 | |
- } | |
- var e, g, h = this, | |
- i = b.Deferred(), | |
- j = f.state("selectedChangesetStatus").get(), | |
- k = f.state("selectedChangesetDate").get(), | |
- l = f.state("processing"), | |
- m = {}, | |
- n = [], | |
- o = [], | |
- p = []; | |
- return a && a.status && (j = a.status), f.state("saving").get() && (i.reject("already_saving"), i.promise()), f.state("saving").set(!0), g = function() { | |
- var e, g, l = {}, | |
- q = f._latestRevision, | |
- r = "client_side_error"; | |
- return f.bind("change", d), f.notifications.remove(r), f.each(function(a) { | |
- a.notifications.each(function(b) { | |
- "error" !== b.type || b.fromServer || (n.push(a.id), l[a.id] || (l[a.id] = {}), l[a.id][b.code] = b) | |
+ return o && o.status && (c = o.status), L.state("saving").get() && (r.reject("already_saving"), r.promise()), L.state("saving").set(!0), t = function() { | |
+ var e, t, n = {}, | |
+ i = L._latestRevision, | |
+ a = "client_side_error"; | |
+ if (L.bind("change", f), L.notifications.remove(a), L.each(function(t) { | |
+ t.notifications.each(function(e) { | |
+ "error" !== e.type || e.fromServer || (u.push(t.id), n[t.id] || (n[t.id] = {}), n[t.id][e.code] = e) | |
}) | |
- }), f.control.each(function(a) { | |
- (!a.setting || !a.setting.id && a.active.get()) && a.notifications.each(function(b) { | |
- "error" === b.type && p.push([a]) | |
+ }), L.control.each(function(t) { | |
+ (!t.setting || !t.setting.id && t.active.get()) && t.notifications.each(function(e) { | |
+ "error" === e.type && h.push([t]) | |
}) | |
- }), o = _.union(p, _.values(f.findControlsForSettings(n))), _.isEmpty(o) ? (g = b.extend(h.query({ | |
- excludeCustomizedSaved: !1 | |
- }), { | |
- nonce: h.nonce.save, | |
- customize_changeset_status: j | |
- }), a && a.date ? g.customize_changeset_date = a.date : "future" === j && k && (g.customize_changeset_date = k), a && a.title && (g.customize_changeset_title = a.title), f.trigger("save-request-params", g), e = wp.ajax.post("customize_save", g), f.state("processing").set(f.state("processing").get() + 1), f.trigger("save", e), e.always(function() { | |
- f.state("processing").set(f.state("processing").get() - 1), f.state("saving").set(!1), f.unbind("change", d) | |
- }), f.notifications.each(function(a) { | |
- a.saveFailure && f.notifications.remove(a.code) | |
- }), e.fail(function(a) { | |
- var b, d; | |
- d = { | |
- type: "error", | |
- dismissible: !0, | |
- fromServer: !0, | |
- saveFailure: !0 | |
- }, "0" === a ? a = "not_logged_in" : "-1" === a && (a = "invalid_nonce"), "invalid_nonce" === a ? h.cheatin() : "not_logged_in" === a ? (h.preview.iframe.hide(), h.login().done(function() { | |
- h.save(), h.preview.iframe.show() | |
- })) : a.code ? "not_future_date" === a.code && f.section.has("publish_settings") && f.section("publish_settings").active.get() && f.control.has("changeset_scheduled_date") ? f.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus() : "changeset_locked" !== a.code && (b = new f.Notification(a.code, _.extend(d, { | |
- message: a.message | |
- }))) : b = new f.Notification("unknown_error", _.extend(d, { | |
- message: f.l10n.unknownRequestFail | |
- })), b && f.notifications.add(b), a.setting_validities && f._handleSettingValidities({ | |
- settingValidities: a.setting_validities, | |
- focusInvalidControl: !0 | |
- }), i.rejectWith(h, [a]), f.trigger("error", a), "changeset_already_published" === a.code && a.next_changeset_uuid && (f.settings.changeset.uuid = a.next_changeset_uuid, f.state("changesetStatus").set(""), f.settings.changeset.branching && c.send("changeset-uuid", f.settings.changeset.uuid), f.previewer.send("changeset-uuid", f.settings.changeset.uuid)) | |
- }), void e.done(function(a) { | |
- h.send("saved", a), f.state("changesetStatus").set(a.changeset_status), a.changeset_date && f.state("changesetDate").set(a.changeset_date), "publish" === a.changeset_status && (f.each(function(a) { | |
- a._dirty && (_.isUndefined(f._latestSettingRevisions[a.id]) || f._latestSettingRevisions[a.id] <= q) && (a._dirty = !1) | |
- }), f.state("changesetStatus").set(""), f.settings.changeset.uuid = a.next_changeset_uuid, f.settings.changeset.branching && c.send("changeset-uuid", f.settings.changeset.uuid)), f._lastSavedRevision = Math.max(q, f._lastSavedRevision), a.setting_validities && f._handleSettingValidities({ | |
- settingValidities: a.setting_validities, | |
- focusInvalidControl: !0 | |
- }), i.resolveWith(h, [a]), f.trigger("saved", a), _.isEmpty(m) || f.state("saved").set(!1) | |
- })) : (o[0][0].focus(), f.unbind("change", d), n.length && f.notifications.add(new f.Notification(r, { | |
- message: (1 === n.length ? f.l10n.saveBlockedError.singular : f.l10n.saveBlockedError.plural).replace(/%s/g, String(n.length)), | |
+ }), p = _.union(h, _.values(L.findControlsForSettings(u))), !_.isEmpty(p)) return p[0][0].focus(), L.unbind("change", f), u.length && L.notifications.add(new L.Notification(a, { | |
+ message: (1 === u.length ? L.l10n.saveBlockedError.singular : L.l10n.saveBlockedError.plural).replace(/%s/g, String(u.length)), | |
+ type: "error", | |
+ dismissible: !0, | |
+ saveFailure: !0 | |
+ })), r.rejectWith(s, [{ | |
+ setting_invalidities: n | |
+ }]), L.state("saving").set(!1), r.promise(); | |
+ t = H.extend(s.query({ | |
+ excludeCustomizedSaved: !1 | |
+ }), { | |
+ nonce: s.nonce.save, | |
+ customize_changeset_status: c | |
+ }), o && o.date ? t.customize_changeset_date = o.date : "future" === c && l && (t.customize_changeset_date = l), o && o.title && (t.customize_changeset_title = o.title), L.trigger("save-request-params", t), e = wp.ajax.post("customize_save", t), L.state("processing").set(L.state("processing").get() + 1), L.trigger("save", e), e.always(function() { | |
+ L.state("processing").set(L.state("processing").get() - 1), L.state("saving").set(!1), L.unbind("change", f) | |
+ }), L.notifications.each(function(e) { | |
+ e.saveFailure && L.notifications.remove(e.code) | |
+ }), e.fail(function(e) { | |
+ var t, n; | |
+ n = { | |
type: "error", | |
dismissible: !0, | |
+ fromServer: !0, | |
saveFailure: !0 | |
- })), i.rejectWith(h, [{ | |
- setting_invalidities: l | |
- }]), f.state("saving").set(!1), i.promise()) | |
- }, 0 === l() ? g() : (e = function() { | |
- 0 === l() && (f.state.unbind("change", e), g()) | |
- }, f.state.bind("change", e)), i.promise() | |
- }, | |
- trash: function() { | |
- var a, c, d; | |
- f.state("trashing").set(!0), f.state("processing").set(f.state("processing").get() + 1), a = wp.ajax.post("customize_trash", { | |
- customize_changeset_uuid: f.settings.changeset.uuid, | |
- nonce: f.settings.nonce.trash | |
- }), f.notifications.add(new f.OverlayNotification("changeset_trashing", { | |
- type: "info", | |
- message: f.l10n.revertingChanges, | |
- loading: !0 | |
- })), c = function() { | |
- var a, c = document.createElement("a"); | |
- f.state("changesetStatus").set("trash"), f.each(function(a) { | |
- a._dirty = !1 | |
- }), f.state("saved").set(!0), c.href = location.href, a = f.utils.parseQueryString(c.search.substr(1)), delete a.changeset_uuid, a["return"] = f.settings.url["return"], c.search = b.param(a), location.replace(c.href) | |
- }, d = function(a, b) { | |
- var c = a || "unknown_error"; | |
- f.state("processing").set(f.state("processing").get() - 1), f.state("trashing").set(!1), f.notifications.remove("changeset_trashing"), f.notifications.add(new f.Notification(c, { | |
- message: b || f.l10n.unknownError, | |
- dismissible: !0, | |
- type: "error" | |
- })) | |
- }, a.done(function(a) { | |
- c(a.message) | |
- }), a.fail(function(a) { | |
- var b = a.code || "trashing_failed"; | |
- a.success || "non_existent_changeset" === b || "changeset_already_trashed" === b ? c(a.message) : d(b, a.message) | |
+ }, "0" === e ? e = "not_logged_in" : "-1" === e && (e = "invalid_nonce"), "invalid_nonce" === e ? s.cheatin() : "not_logged_in" === e ? (s.preview.iframe.hide(), s.login().done(function() { | |
+ s.save(), s.preview.iframe.show() | |
+ })) : e.code ? "not_future_date" === e.code && L.section.has("publish_settings") && L.section("publish_settings").active.get() && L.control.has("changeset_scheduled_date") ? L.control("changeset_scheduled_date").toggleFutureDateNotification(!0).focus() : "changeset_locked" !== e.code && (t = new L.Notification(e.code, _.extend(n, { | |
+ message: e.message | |
+ }))) : t = new L.Notification("unknown_error", _.extend(n, { | |
+ message: L.l10n.unknownRequestFail | |
+ })), t && L.notifications.add(t), e.setting_validities && L._handleSettingValidities({ | |
+ settingValidities: e.setting_validities, | |
+ focusInvalidControl: !0 | |
+ }), r.rejectWith(s, [e]), L.trigger("error", e), "changeset_already_published" === e.code && e.next_changeset_uuid && (L.settings.changeset.uuid = e.next_changeset_uuid, L.state("changesetStatus").set(""), L.settings.changeset.branching && m.send("changeset-uuid", L.settings.changeset.uuid), L.previewer.send("changeset-uuid", L.settings.changeset.uuid)) | |
+ }), e.done(function(e) { | |
+ s.send("saved", e), L.state("changesetStatus").set(e.changeset_status), e.changeset_date && L.state("changesetDate").set(e.changeset_date), "publish" === e.changeset_status && (L.each(function(e) { | |
+ e._dirty && (_.isUndefined(L._latestSettingRevisions[e.id]) || L._latestSettingRevisions[e.id] <= i) && (e._dirty = !1) | |
+ }), L.state("changesetStatus").set(""), L.settings.changeset.uuid = e.next_changeset_uuid, L.settings.changeset.branching && m.send("changeset-uuid", L.settings.changeset.uuid)), L._lastSavedRevision = Math.max(i, L._lastSavedRevision), e.setting_validities && L._handleSettingValidities({ | |
+ settingValidities: e.setting_validities, | |
+ focusInvalidControl: !0 | |
+ }), r.resolveWith(s, [e]), L.trigger("saved", e), _.isEmpty(d) || L.state("saved").set(!1) | |
+ }) | |
+ }, 0 === n() ? t() : (e = function() { | |
+ 0 === n() && (L.state.unbind("change", e), t()) | |
+ }, L.state.bind("change", e)), r.promise() | |
+ }, | |
+ trash: function() { | |
+ var e, n, i; | |
+ L.state("trashing").set(!0), L.state("processing").set(L.state("processing").get() + 1), e = wp.ajax.post("customize_trash", { | |
+ customize_changeset_uuid: L.settings.changeset.uuid, | |
+ nonce: L.settings.nonce.trash | |
+ }), L.notifications.add(new L.OverlayNotification("changeset_trashing", { | |
+ type: "info", | |
+ message: L.l10n.revertingChanges, | |
+ loading: !0 | |
+ })), n = function() { | |
+ var e, t = document.createElement("a"); | |
+ L.state("changesetStatus").set("trash"), L.each(function(e) { | |
+ e._dirty = !1 | |
+ }), L.state("saved").set(!0), t.href = location.href, delete(e = L.utils.parseQueryString(t.search.substr(1))).changeset_uuid, e.return = L.settings.url.return, t.search = H.param(e), location.replace(t.href) | |
+ }, i = function(e, t) { | |
+ var n = e || "unknown_error"; | |
+ L.state("processing").set(L.state("processing").get() - 1), L.state("trashing").set(!1), L.notifications.remove("changeset_trashing"), L.notifications.add(new L.Notification(n, { | |
+ message: t || L.l10n.unknownError, | |
+ dismissible: !0, | |
+ type: "error" | |
+ })) | |
+ }, e.done(function(e) { | |
+ n(e.message) | |
+ }), e.fail(function(e) { | |
+ var t = e.code || "trashing_failed"; | |
+ e.success || "non_existent_changeset" === t || "changeset_already_trashed" === t ? n(e.message) : i(t, e.message) | |
+ }) | |
+ }, | |
+ getFrontendPreviewUrl: function() { | |
+ var e, t; | |
+ return (t = document.createElement("a")).href = this.previewUrl.get(), e = L.utils.parseQueryString(t.search.substr(1)), L.state("changesetStatus").get() && "publish" !== L.state("changesetStatus").get() && (e.customize_changeset_uuid = L.settings.changeset.uuid), L.state("activated").get() || (e.customize_theme = L.settings.theme.stylesheet), t.search = H.param(e), t.href | |
+ } | |
+ }), H.ajaxPrefilter(function(e) { | |
+ /wp_customize=on/.test(e.data) && (e.data += "&" + H.param({ | |
+ customize_preview_nonce: L.settings.nonce.preview | |
+ })) | |
+ }), L.previewer.bind("nonce", function(e) { | |
+ H.extend(this.nonce, e) | |
+ }), L.bind("nonce-refresh", function(e) { | |
+ H.extend(L.settings.nonce, e), H.extend(L.previewer.nonce, e), L.previewer.send("nonce-refresh", e) | |
+ }), H.each(L.settings.settings, function(e, t) { | |
+ var n = L.settingConstructor[t.type] || L.Setting; | |
+ L.add(new n(e, t.value, { | |
+ transport: t.transport, | |
+ previewer: L.previewer, | |
+ dirty: !!t.dirty | |
+ })) | |
+ }), H.each(L.settings.panels, function(e, t) { | |
+ var n, i = L.panelConstructor[t.type] || L.Panel; | |
+ n = _.extend({ | |
+ params: t | |
+ }, t), L.panel.add(new i(e, n)) | |
+ }), H.each(L.settings.sections, function(e, t) { | |
+ var n, i = L.sectionConstructor[t.type] || L.Section; | |
+ n = _.extend({ | |
+ params: t | |
+ }, t), L.section.add(new i(e, n)) | |
+ }), H.each(L.settings.controls, function(e, t) { | |
+ var n, i = L.controlConstructor[t.type] || L.Control; | |
+ n = _.extend({ | |
+ params: t | |
+ }, t), L.control.add(new i(e, n)) | |
+ }), _.each(["panel", "section", "control"], function(e) { | |
+ var t = L.settings.autofocus[e]; | |
+ t && L[e](t, function(e) { | |
+ e.deferred.embedded.done(function() { | |
+ L.previewer.deferred.active.done(function() { | |
+ e.focus() | |
}) | |
+ }) | |
+ }) | |
+ }), L.bind("ready", L.reflowPaneContents), H([L.panel, L.section, L.control]).each(function(e, t) { | |
+ var n = _.debounce(L.reflowPaneContents, L.settings.timeouts.reflowPaneContents); | |
+ t.bind("add", n), t.bind("change", n), t.bind("remove", n) | |
+ }), L.bind("ready", function() { | |
+ var e, t, n; | |
+ L.notifications.container = H("#customize-notifications-area"), L.notifications.bind("change", _.debounce(function() { | |
+ L.notifications.render() | |
+ })), e = H(".wp-full-overlay-sidebar-content"), L.notifications.bind("rendered", function() { | |
+ e.css("top", ""), 0 !== L.notifications.count() && (t = L.notifications.container.outerHeight() + 1, n = parseInt(e.css("top"), 10), e.css("top", n + t + "px")), L.notifications.trigger("sidebarTopUpdated") | |
+ }), L.notifications.render() | |
+ }), t = L.state, i = t.instance("saved"), a = t.instance("saving"), o = t.instance("trashing"), s = t.instance("activated"), r = t.instance("processing"), c = t.instance("paneVisible"), l = t.instance("expandedPanel"), d = t.instance("expandedSection"), u = t.instance("changesetStatus"), p = t.instance("selectedChangesetStatus"), h = t.instance("changesetDate"), f = t.instance("selectedChangesetDate"), g = t.instance("previewerAlive"), v = t.instance("editShortcutVisibility"), w = t.instance("changesetLocked"), t.bind("change", function() { | |
+ var e; | |
+ s() ? "" === u.get() && i() ? (L.settings.changeset.currentUserCanPublish ? U.val(L.l10n.published) : U.val(L.l10n.saved), I.find(".screen-reader-text").text(L.l10n.close)) : ("draft" === p() ? i() && p() === u() ? U.val(L.l10n.draftSaved) : U.val(L.l10n.saveDraft) : "future" === p() ? i() && p() === u() ? h.get() !== f.get() ? U.val(L.l10n.schedule) : U.val(L.l10n.scheduled) : U.val(L.l10n.schedule) : L.settings.changeset.currentUserCanPublish && U.val(L.l10n.publish), I.find(".screen-reader-text").text(L.l10n.cancel)) : (U.val(L.l10n.activate), I.find(".screen-reader-text").text(L.l10n.cancel)), e = !a() && !o() && !w() && (!s() || !i() || u() !== p() && "" !== u() || "future" === p() && h.get() !== f.get()), U.prop("disabled", !e) | |
+ }), p.validate = function(e) { | |
+ return "" === e || "auto-draft" === e ? null : e | |
+ }, e = L.settings.changeset.currentUserCanPublish ? "publish" : "draft", u(L.settings.changeset.status), w(Boolean(L.settings.changeset.lockUser)), h(L.settings.changeset.publishDate), f(L.settings.changeset.publishDate), p("" === L.settings.changeset.status || "auto-draft" === L.settings.changeset.status ? e : L.settings.changeset.status), p.link(u), i(!0), "" === u() && L.each(function(e) { | |
+ e._dirty && i(!1) | |
+ }), a(!1), s(L.settings.theme.active), r(0), c(!0), l(!1), d(!1), g(!0), v("visible"), L.bind("change", function() { | |
+ t("saved").get() && t("saved").set(!1) | |
+ }), L.settings.changeset.branching && i.bind(function(e) { | |
+ e || n(!0) | |
+ }), a.bind(function(e) { | |
+ D.toggleClass("saving", e) | |
+ }), o.bind(function(e) { | |
+ D.toggleClass("trashing", e) | |
+ }), L.bind("saved", function(e) { | |
+ t("saved").set(!0), "publish" === e.changeset_status && t("activated").set(!0) | |
+ }), s.bind(function(e) { | |
+ e && L.trigger("activated") | |
+ }), n = function(e) { | |
+ var t, n; | |
+ if (history.replaceState) { | |
+ if ((t = document.createElement("a")).href = location.href, n = L.utils.parseQueryString(t.search.substr(1)), e) { | |
+ if (n.changeset_uuid === L.settings.changeset.uuid) return; | |
+ n.changeset_uuid = L.settings.changeset.uuid | |
+ } else { | |
+ if (!n.changeset_uuid) return; | |
+ delete n.changeset_uuid | |
+ } | |
+ t.search = H.param(n), history.replaceState({}, document.title, t.href) | |
+ } | |
+ }, L.settings.changeset.branching && u.bind(function(e) { | |
+ n("" !== e && "publish" !== e && "trash" !== e) | |
+ }), | |
+ function() { | |
+ var t = L.OverlayNotification.extend({ | |
+ templateId: "customize-changeset-locked-notification", | |
+ lockUser: null, | |
+ initialize: function(e, t) { | |
+ var n, i; | |
+ n = e || "changeset_locked", (i = _.extend({ | |
+ type: "warning", | |
+ containerClasses: "", | |
+ lockUser: {} | |
+ }, t)).containerClasses += " notification-changeset-locked", L.OverlayNotification.prototype.initialize.call(this, n, i) | |
}, | |
- getFrontendPreviewUrl: function() { | |
- var a, c, d = this; | |
- return c = document.createElement("a"), c.href = d.previewUrl.get(), a = f.utils.parseQueryString(c.search.substr(1)), f.state("changesetStatus").get() && "publish" !== f.state("changesetStatus").get() && (a.customize_changeset_uuid = f.settings.changeset.uuid), f.state("activated").get() || (a.customize_theme = f.settings.theme.stylesheet), c.search = b.param(a), c.href | |
+ render: function() { | |
+ var n, e, i, a, t = this; | |
+ return e = _.extend({ | |
+ allowOverride: !1, | |
+ returnUrl: L.settings.url.return, | |
+ previewUrl: L.previewer.previewUrl.get(), | |
+ frontendPreviewUrl: L.previewer.getFrontendPreviewUrl() | |
+ }, this), n = L.OverlayNotification.prototype.render.call(e), L.requestChangesetUpdate({}, { | |
+ autosave: !0 | |
+ }).fail(function(e) { | |
+ e.autosaved || n.find(".notice-error").prop("hidden", !1).text(e.message || L.l10n.unknownRequestFail) | |
+ }), (i = n.find(".customize-notice-take-over-button")).on("click", function(e) { | |
+ e.preventDefault(), a || (i.addClass("disabled"), (a = wp.ajax.post("customize_override_changeset_lock", { | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ customize_changeset_uuid: L.settings.changeset.uuid, | |
+ nonce: L.settings.nonce.override_lock | |
+ })).done(function() { | |
+ L.notifications.remove(t.code), L.state("changesetLocked").set(!1) | |
+ }), a.fail(function(e) { | |
+ var t = e.message || L.l10n.unknownRequestFail; | |
+ n.find(".notice-error").prop("hidden", !1).text(t), a.always(function() { | |
+ i.removeClass("disabled") | |
+ }) | |
+ }), a.always(function() { | |
+ a = null | |
+ })) | |
+ }), n | |
} | |
- }), b.ajaxPrefilter(function(a) { | |
- /wp_customize=on/.test(a.data) && (a.data += "&" + b.param({ | |
- customize_preview_nonce: f.settings.nonce.preview | |
+ }); | |
+ | |
+ function a(e) { | |
+ e && e.lockUser && (L.settings.changeset.lockUser = e.lockUser), L.state("changesetLocked").set(!0), L.notifications.add(new t("changeset_locked", { | |
+ lockUser: L.settings.changeset.lockUser, | |
+ allowOverride: Boolean(e && e.allowOverride) | |
})) | |
- }), f.previewer.bind("nonce", function(a) { | |
- b.extend(this.nonce, a) | |
- }), f.bind("nonce-refresh", function(a) { | |
- b.extend(f.settings.nonce, a), b.extend(f.previewer.nonce, a), f.previewer.send("nonce-refresh", a) | |
- }), b.each(f.settings.settings, function(a, b) { | |
- var c = f.settingConstructor[b.type] || f.Setting; | |
- f.add(new c(a, b.value, { | |
- transport: b.transport, | |
- previewer: f.previewer, | |
- dirty: !!b.dirty | |
+ } | |
+ L.settings.changeset.lockUser && a({ | |
+ allowOverride: !0 | |
+ }), H(document).on("heartbeat-send.update_lock_notice", function(e, t) { | |
+ t.check_changeset_lock = !0, t.changeset_uuid = L.settings.changeset.uuid | |
+ }), H(document).on("heartbeat-tick.update_lock_notice", function(e, t) { | |
+ var n, i = "changeset_locked"; | |
+ t.customize_changeset_lock_user && ((n = L.notifications(i)) && n.lockUser.id !== L.settings.changeset.lockUser.id && L.notifications.remove(i), a({ | |
+ lockUser: t.customize_changeset_lock_user | |
})) | |
- }), b.each(f.settings.panels, function(a, b) { | |
- var c, d = f.panelConstructor[b.type] || f.Panel; | |
- c = _.extend({ | |
- params: b | |
- }, b), f.panel.add(new d(a, c)) | |
- }), b.each(f.settings.sections, function(a, b) { | |
- var c, d = f.sectionConstructor[b.type] || f.Section; | |
- c = _.extend({ | |
- params: b | |
- }, b), f.section.add(new d(a, c)) | |
- }), b.each(f.settings.controls, function(a, b) { | |
- var c, d = f.controlConstructor[b.type] || f.Control; | |
- c = _.extend({ | |
- params: b | |
- }, b), f.control.add(new d(a, c)) | |
- }), _.each(["panel", "section", "control"], function(a) { | |
- var b = f.settings.autofocus[a]; | |
- b && f[a](b, function(a) { | |
- a.deferred.embedded.done(function() { | |
- f.previewer.deferred.active.done(function() { | |
- a.focus() | |
- }) | |
- }) | |
- }) | |
- }), f.bind("ready", f.reflowPaneContents), b([f.panel, f.section, f.control]).each(function(a, b) { | |
- var c = _.debounce(f.reflowPaneContents, f.settings.timeouts.reflowPaneContents); | |
- b.bind("add", c), b.bind("change", c), b.bind("remove", c) | |
- }), f.bind("ready", function() { | |
- var a, c, d; | |
- f.notifications.container = b("#customize-notifications-area"), f.notifications.bind("change", _.debounce(function() { | |
- f.notifications.render() | |
- })), a = b(".wp-full-overlay-sidebar-content"), f.notifications.bind("rendered", function() { | |
- a.css("top", ""), 0 !== f.notifications.count() && (c = f.notifications.container.outerHeight() + 1, d = parseInt(a.css("top"), 10), a.css("top", d + c + "px")), f.notifications.trigger("sidebarTopUpdated") | |
- }), f.notifications.render() | |
- }), | |
- function(a) { | |
- var c, e, g = a.instance("saved"), | |
- j = a.instance("saving"), | |
- k = a.instance("trashing"), | |
- l = a.instance("activated"), | |
- m = a.instance("processing"), | |
- n = a.instance("paneVisible"), | |
- o = a.instance("expandedPanel"), | |
- p = a.instance("expandedSection"), | |
- q = a.instance("changesetStatus"), | |
- r = a.instance("selectedChangesetStatus"), | |
- s = a.instance("changesetDate"), | |
- t = a.instance("selectedChangesetDate"), | |
- u = a.instance("previewerAlive"), | |
- v = a.instance("editShortcutVisibility"), | |
- w = a.instance("changesetLocked"); | |
- a.bind("change", function() { | |
- var a; | |
- l() ? "" === q.get() && g() ? (f.settings.changeset.currentUserCanPublish ? i.val(f.l10n.published) : i.val(f.l10n.saved), h.find(".screen-reader-text").text(f.l10n.close)) : ("draft" === r() ? g() && r() === q() ? i.val(f.l10n.draftSaved) : i.val(f.l10n.saveDraft) : "future" === r() ? g() && r() === q() ? s.get() !== t.get() ? i.val(f.l10n.schedule) : i.val(f.l10n.scheduled) : i.val(f.l10n.schedule) : f.settings.changeset.currentUserCanPublish && i.val(f.l10n.publish), h.find(".screen-reader-text").text(f.l10n.cancel)) : (i.val(f.l10n.activate), h.find(".screen-reader-text").text(f.l10n.cancel)), a = !j() && !k() && !w() && (!l() || !g() || q() !== r() && "" !== q() || "future" === r() && s.get() !== t.get()), i.prop("disabled", !a) | |
- }), r.validate = function(a) { | |
- return "" === a || "auto-draft" === a ? null : a | |
- }, e = f.settings.changeset.currentUserCanPublish ? "publish" : "draft", q(f.settings.changeset.status), w(Boolean(f.settings.changeset.lockUser)), s(f.settings.changeset.publishDate), t(f.settings.changeset.publishDate), r("" === f.settings.changeset.status || "auto-draft" === f.settings.changeset.status ? e : f.settings.changeset.status), r.link(q), g(!0), "" === q() && f.each(function(a) { | |
- a._dirty && g(!1) | |
- }), j(!1), l(f.settings.theme.active), m(0), n(!0), o(!1), p(!1), u(!0), v("visible"), f.bind("change", function() { | |
- a("saved").get() && a("saved").set(!1) | |
- }), f.settings.changeset.branching && g.bind(function(a) { | |
- a || c(!0) | |
- }), j.bind(function(a) { | |
- d.toggleClass("saving", a) | |
- }), k.bind(function(a) { | |
- d.toggleClass("trashing", a) | |
- }), f.bind("saved", function(b) { | |
- a("saved").set(!0), "publish" === b.changeset_status && a("activated").set(!0) | |
- }), l.bind(function(a) { | |
- a && f.trigger("activated") | |
- }), c = function(a) { | |
- var c, d; | |
- if (history.replaceState) { | |
- if (c = document.createElement("a"), c.href = location.href, d = f.utils.parseQueryString(c.search.substr(1)), a) { | |
- if (d.changeset_uuid === f.settings.changeset.uuid) return; | |
- d.changeset_uuid = f.settings.changeset.uuid | |
- } else { | |
- if (!d.changeset_uuid) return; | |
- delete d.changeset_uuid | |
- } | |
- c.search = b.param(d), history.replaceState({}, document.title, c.href) | |
- } | |
- }, f.settings.changeset.branching && q.bind(function(a) { | |
- c("" !== a && "publish" !== a && "trash" !== a); | |
+ }), L.bind("error", function(e) { | |
+ "changeset_locked" === e.code && e.lock_user && a({ | |
+ lockUser: e.lock_user | |
}) | |
- }(f.state), | |
- function() { | |
- function a(a) { | |
- a && a.lockUser && (f.settings.changeset.lockUser = a.lockUser), f.state("changesetLocked").set(!0), f.notifications.add(new c("changeset_locked", { | |
- lockUser: f.settings.changeset.lockUser, | |
- allowOverride: Boolean(a && a.allowOverride) | |
- })) | |
- } | |
- var c = f.OverlayNotification.extend({ | |
- templateId: "customize-changeset-locked-notification", | |
- lockUser: null, | |
- initialize: function(a, b) { | |
- var c, d, e = this; | |
- c = a || "changeset_locked", d = _.extend({ | |
- type: "warning", | |
- containerClasses: "", | |
- lockUser: {} | |
- }, b), d.containerClasses += " notification-changeset-locked", f.OverlayNotification.prototype.initialize.call(e, c, d) | |
- }, | |
- render: function() { | |
- var a, b, c, d, e = this; | |
- return b = _.extend({ | |
- allowOverride: !1, | |
- returnUrl: f.settings.url["return"], | |
- previewUrl: f.previewer.previewUrl.get(), | |
- frontendPreviewUrl: f.previewer.getFrontendPreviewUrl() | |
- }, this), a = f.OverlayNotification.prototype.render.call(b), f.requestChangesetUpdate({}, { | |
- autosave: !0 | |
- }).fail(function(b) { | |
- b.autosaved || a.find(".notice-error").prop("hidden", !1).text(b.message || f.l10n.unknownRequestFail) | |
- }), c = a.find(".customize-notice-take-over-button"), c.on("click", function(b) { | |
- b.preventDefault(), d || (c.addClass("disabled"), d = wp.ajax.post("customize_override_changeset_lock", { | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet, | |
- customize_changeset_uuid: f.settings.changeset.uuid, | |
- nonce: f.settings.nonce.override_lock | |
- }), d.done(function() { | |
- f.notifications.remove(e.code), f.state("changesetLocked").set(!1) | |
- }), d.fail(function(b) { | |
- var e = b.message || f.l10n.unknownRequestFail; | |
- a.find(".notice-error").prop("hidden", !1).text(e), d.always(function() { | |
- c.removeClass("disabled") | |
- }) | |
- }), d.always(function() { | |
- d = null | |
- })) | |
- }), a | |
- } | |
- }); | |
- f.settings.changeset.lockUser && a({ | |
- allowOverride: !0 | |
- }), b(document).on("heartbeat-send.update_lock_notice", function(a, b) { | |
- b.check_changeset_lock = !0, b.changeset_uuid = f.settings.changeset.uuid | |
- }), b(document).on("heartbeat-tick.update_lock_notice", function(b, c) { | |
- var d, e = "changeset_locked"; | |
- c.customize_changeset_lock_user && (d = f.notifications(e), d && d.lockUser.id !== f.settings.changeset.lockUser.id && f.notifications.remove(e), a({ | |
- lockUser: c.customize_changeset_lock_user | |
- })) | |
- }), f.bind("error", function(b) { | |
- "changeset_locked" === b.code && b.lock_user && a({ | |
- lockUser: b.lock_user | |
- }) | |
- }) | |
- }(), | |
- function() { | |
- function a() { | |
- var a, c; | |
- return a = document.createElement("a"), a.href = location.href, c = f.utils.parseQueryString(a.search.substr(1)), f.settings.changeset.latestAutoDraftUuid ? c.changeset_uuid = f.settings.changeset.latestAutoDraftUuid : c.customize_autosaved = "on", c["return"] = f.settings.url["return"], a.search = b.param(c), a.href | |
- } | |
+ }) | |
+ }(), | |
+ function() { | |
+ var e, t, n, i, a, o, s = [], | |
+ r = !1; | |
- function c(a) { | |
- var c, d = document.createElement("a"), | |
- e = 0; | |
- d.href = location.href, c = f.utils.parseQueryString(d.search.substr(1)), _.each(a, function(a) { | |
- "undefined" != typeof c[a] && (e += 1, delete c[a]) | |
- }), 0 !== e && (d.search = b.param(c), history.replaceState({}, document.title, d.href)) | |
- } | |
+ function c() { | |
+ var e, t; | |
+ return (e = document.createElement("a")).href = location.href, t = L.utils.parseQueryString(e.search.substr(1)), L.settings.changeset.latestAutoDraftUuid ? t.changeset_uuid = L.settings.changeset.latestAutoDraftUuid : t.customize_autosaved = "on", t.return = L.settings.url.return, e.search = H.param(t), e.href | |
+ } | |
- function d() { | |
- h || (wp.ajax.post("customize_dismiss_autosave_or_lock", { | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet, | |
- customize_changeset_uuid: f.settings.changeset.uuid, | |
- nonce: f.settings.nonce.dismiss_autosave_or_lock, | |
- dismiss_autosave: !0 | |
- }), h = !0) | |
+ function l() { | |
+ r || (wp.ajax.post("customize_dismiss_autosave_or_lock", { | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ customize_changeset_uuid: L.settings.changeset.uuid, | |
+ nonce: L.settings.nonce.dismiss_autosave_or_lock, | |
+ dismiss_autosave: !0 | |
+ }), r = !0) | |
+ } | |
+ L.settings.changeset.autosaved && (L.state("saved").set(!1), s.push("customize_autosaved")), L.settings.changeset.branching || L.settings.changeset.status && "auto-draft" !== L.settings.changeset.status || s.push("changeset_uuid"), 0 < s.length && (e = s, n = document.createElement("a"), i = 0, n.href = location.href, t = L.utils.parseQueryString(n.search.substr(1)), _.each(e, function(e) { | |
+ void 0 !== t[e] && (i += 1, delete t[e]) | |
+ }), 0 !== i && (n.search = H.param(t), history.replaceState({}, document.title, n.href))), (L.settings.changeset.latestAutoDraftUuid || L.settings.changeset.hasAutosaveRevision) && (o = "autosave_available", L.notifications.add(new L.Notification(o, { | |
+ message: L.l10n.autosaveNotice, | |
+ type: "warning", | |
+ dismissible: !0, | |
+ render: function() { | |
+ var e, t = L.Notification.prototype.render.call(this); | |
+ return (e = t.find("a")).prop("href", c()), e.on("click", function(e) { | |
+ e.preventDefault(), location.replace(c()) | |
+ }), t.find(".notice-dismiss").on("click", l), t | |
} | |
+ })), a = function() { | |
+ l(), L.notifications.remove(o), L.unbind("change", a), L.state("changesetStatus").unbind(a) | |
+ }, L.bind("change", a), L.state("changesetStatus").bind(a)) | |
+ }(), L.previewer.previewUrl() ? L.previewer.refresh() : L.previewer.previewUrl(L.settings.url.home), U.click(function(e) { | |
+ L.previewer.save(), e.preventDefault() | |
+ }).keydown(function(e) { | |
+ 9 !== e.which && (13 === e.which && L.previewer.save(), e.preventDefault()) | |
+ }), I.keydown(function(e) { | |
+ 9 !== e.which && (13 === e.which && this.click(), e.preventDefault()) | |
+ }), H(".collapse-sidebar").on("click", function() { | |
+ L.state("paneVisible").set(!L.state("paneVisible").get()) | |
+ }), L.state("paneVisible").bind(function(e) { | |
+ P.toggleClass("preview-only", !e), P.toggleClass("expanded", e), P.toggleClass("collapsed", !e), e ? H(".collapse-sidebar").attr({ | |
+ "aria-expanded": "true", | |
+ "aria-label": L.l10n.collapseSidebar | |
+ }) : H(".collapse-sidebar").attr({ | |
+ "aria-expanded": "false", | |
+ "aria-label": L.l10n.expandSidebar | |
+ }) | |
+ }), D.on("keydown", function(e) { | |
+ var t, n = [], | |
+ i = [], | |
+ a = []; | |
+ if (27 === e.which && (H(e.target).is("body") || H.contains(H("#customize-controls")[0], e.target)) && (L.control.each(function(e) { | |
+ e.expanded && e.expanded() && _.isFunction(e.collapse) && n.push(e) | |
+ }), L.section.each(function(e) { | |
+ e.expanded() && i.push(e) | |
+ }), L.panel.each(function(e) { | |
+ e.expanded() && a.push(e) | |
+ }), 0 < n.length && 0 === i.length && (n.length = 0), t = n[0] || i[0] || a[0])) { | |
+ if ("themes" === t.params.type) return void(D.hasClass("modal-open") ? t.closeDetails() : L.panel.has("themes") && L.panel("themes").collapse()); | |
+ t.collapse(), e.preventDefault() | |
+ } | |
+ }), H(".customize-controls-preview-toggle").on("click", function() { | |
+ L.state("paneVisible").set(!L.state("paneVisible").get()) | |
+ }), T = H(".wp-full-overlay-sidebar-content"), b = function(e) { | |
+ var t, n = e, | |
+ i = L.state("expandedSection").get(), | |
+ a = L.state("expandedPanel").get(); | |
+ if (z && z.element && (y(z.element), z.element.find(".description").off("toggled", C)), !n) | |
+ if (!i && a && a.contentContainer) n = a; | |
+ else { | |
+ if (a || !i || !i.contentContainer) return void(z = !1); | |
+ n = i | |
+ }(t = n.contentContainer.find(".customize-section-title, .panel-meta").first()). length ? ((z = { | |
+ instance: n, | |
+ element: t, | |
+ parent: t.closest(".customize-pane-child"), | |
+ height: t.outerHeight() | |
+ }).element.find(".description").on("toggled", C), i && x(z.element, z.parent)) : z = !1 | |
+ }, L.state("expandedSection").bind(b), L.state("expandedPanel").bind(b), T.on("scroll", _.throttle(function() { | |
+ if (z) { | |
+ var e, t = T.scrollTop(); | |
+ e = S ? t === S ? 0 : S < t ? 1 : -1 : 1, S = t, 0 !== e && k(z, t, e) | |
+ } | |
+ }, 8)), L.notifications.bind("sidebarTopUpdated", function() { | |
+ z && z.element.hasClass("is-sticky") && z.element.css("top", T.css("top")) | |
+ }), y = function(e) { | |
+ e.hasClass("is-sticky") && e.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top", T.scrollTop() + "px") | |
+ }, x = function(e, t) { | |
+ e.hasClass("is-in-view") && (e.removeClass("maybe-sticky is-in-view").css({ | |
+ width: "", | |
+ top: "" | |
+ }), t.css("padding-top", "")) | |
+ }, C = function() { | |
+ z.height = z.element.outerHeight() | |
+ }, k = function(e, t, n) { | |
+ var i = e.element, | |
+ a = e.parent, | |
+ o = e.height, | |
+ s = parseInt(i.css("top"), 10), | |
+ r = i.hasClass("maybe-sticky"), | |
+ c = i.hasClass("is-sticky"), | |
+ l = i.hasClass("is-in-view"); | |
+ if (-1 !== n) return c && (s = t, i.removeClass("is-sticky").css({ | |
+ top: s + "px", | |
+ width: "" | |
+ })), void(l && s + o < t && (i.removeClass("is-in-view"), a.css("padding-top", ""))); | |
+ if (!r && o <= t) r = !0, i.addClass("maybe-sticky"); | |
+ else if (0 === t) return i.removeClass("maybe-sticky is-in-view is-sticky").css({ | |
+ top: "", | |
+ width: "" | |
+ }), void a.css("padding-top", ""); | |
+ l && !c ? t <= s && i.addClass("is-sticky").css({ | |
+ top: T.css("top"), | |
+ width: a.outerWidth() + "px" | |
+ }) : r && !l && (i.addClass("is-in-view").css("top", t - o + "px"), a.css("padding-top", o + "px")) | |
+ }, L.previewedDevice = L.state("previewedDevice"), L.bind("ready", function() { | |
+ _.find(L.settings.previewableDevices, function(e, t) { | |
+ if (!0 === e.default) return L.previewedDevice.set(t), !0 | |
+ }) | |
+ }), V.find(".devices button").on("click", function(e) { | |
+ L.previewedDevice.set(H(e.currentTarget).data("device")) | |
+ }), L.previewedDevice.bind(function(e) { | |
+ var t = H(".wp-full-overlay"), | |
+ n = ""; | |
+ V.find(".devices button").removeClass("active").attr("aria-pressed", !1), V.find(".devices .preview-" + e).addClass("active").attr("aria-pressed", !0), H.each(L.settings.previewableDevices, function(e) { | |
+ n += " preview-" + e | |
+ }), t.removeClass(n).addClass("preview-" + e) | |
+ }), N.length && L("blogname", function(e) { | |
+ var t = function() { | |
+ N.text(H.trim(e()) || L.l10n.untitledBlogName) | |
+ }; | |
+ e.bind(t), t() | |
+ }), m = new L.Messenger({ | |
+ url: L.settings.url.parent, | |
+ channel: "loader" | |
+ }), | |
+ function() { | |
+ var t = !1; | |
- function e() { | |
- var b, c = "autosave_available"; | |
- f.notifications.add(new f.Notification(c, { | |
- message: f.l10n.autosaveNotice, | |
- type: "warning", | |
- dismissible: !0, | |
- render: function() { | |
- var b, c = f.Notification.prototype.render.call(this); | |
- return b = c.find("a"), b.prop("href", a()), b.on("click", function(b) { | |
- b.preventDefault(), location.replace(a()) | |
- }), c.find(".notice-dismiss").on("click", d), c | |
- } | |
- })), b = function() { | |
- d(), f.notifications.remove(c), f.unbind("change", b), f.state("changesetStatus").unbind(b) | |
- }, f.bind("change", b), f.state("changesetStatus").bind(b) | |
- } | |
- var g = [], | |
- h = !1; | |
- f.settings.changeset.autosaved && (f.state("saved").set(!1), g.push("customize_autosaved")), f.settings.changeset.branching || f.settings.changeset.status && "auto-draft" !== f.settings.changeset.status || g.push("changeset_uuid"), g.length > 0 && c(g), (f.settings.changeset.latestAutoDraftUuid || f.settings.changeset.hasAutosaveRevision) && e() | |
- }(), f.previewer.previewUrl() ? f.previewer.refresh() : f.previewer.previewUrl(f.settings.url.home), i.click(function(a) { | |
- f.previewer.save(), a.preventDefault() | |
- }).keydown(function(a) { | |
- 9 !== a.which && (13 === a.which && f.previewer.save(), a.preventDefault()) | |
- }), h.keydown(function(a) { | |
- 9 !== a.which && (13 === a.which && this.click(), a.preventDefault()) | |
- }), b(".collapse-sidebar").on("click", function() { | |
- f.state("paneVisible").set(!f.state("paneVisible").get()) | |
- }), f.state("paneVisible").bind(function(a) { | |
- e.toggleClass("preview-only", !a), e.toggleClass("expanded", a), e.toggleClass("collapsed", !a), a ? b(".collapse-sidebar").attr({ | |
- "aria-expanded": "true", | |
- "aria-label": f.l10n.collapseSidebar | |
- }) : b(".collapse-sidebar").attr({ | |
- "aria-expanded": "false", | |
- "aria-label": f.l10n.expandSidebar | |
+ function i() { | |
+ var e; | |
+ return L.state("activated").get() ? ("" !== (e = L.state("changesetStatus").get()) && "auto-draft" !== e || (e = "publish"), L.state("selectedChangesetStatus").get() === e && (("future" !== L.state("selectedChangesetStatus").get() || L.state("selectedChangesetDate").get() === L.state("changesetDate").get()) && (L.state("saved").get() && "auto-draft" !== L.state("changesetStatus").get()))) : 0 === L._latestRevision | |
+ } | |
+ | |
+ function e() { | |
+ L.unbind("change", e), L.state("selectedChangesetStatus").unbind(e), L.state("selectedChangesetDate").unbind(e), H(window).on("beforeunload.customize-confirm", function() { | |
+ if (!i() && !L.state("changesetLocked").get()) return setTimeout(function() { | |
+ P.removeClass("customize-loading") | |
+ }, 1), L.l10n.saveAlert | |
}) | |
- }), d.on("keydown", function(a) { | |
- var c, e = [], | |
- g = [], | |
- h = []; | |
- if (27 === a.which && (b(a.target).is("body") || b.contains(b("#customize-controls")[0], a.target)) && (f.control.each(function(a) { | |
- a.expanded && a.expanded() && _.isFunction(a.collapse) && e.push(a) | |
- }), f.section.each(function(a) { | |
- a.expanded() && g.push(a) | |
- }), f.panel.each(function(a) { | |
- a.expanded() && h.push(a) | |
- }), e.length > 0 && 0 === g.length && (e.length = 0), c = e[0] || g[0] || h[0])) { | |
- if ("themes" === c.params.type) return void(d.hasClass("modal-open") ? c.closeDetails() : f.panel.has("themes") && f.panel("themes").collapse()); | |
- c.collapse(), a.preventDefault() | |
- } | |
- }), b(".customize-controls-preview-toggle").on("click", function() { | |
- f.state("paneVisible").set(!f.state("paneVisible").get()) | |
- }), | |
- function() { | |
- var a, c, d, e, g, h, i, j = b(".wp-full-overlay-sidebar-content"); | |
- a = function(a) { | |
- var b, g = a, | |
- i = f.state("expandedSection").get(), | |
- j = f.state("expandedPanel").get(); | |
- if (h && h.element && (d(h.element), h.element.find(".description").off("toggled", c)), !g) | |
- if (!i && j && j.contentContainer) g = j; | |
- else { | |
- if (j || !i || !i.contentContainer) return void(h = !1); | |
- g = i | |
- } b = g.contentContainer.find(".customize-section-title, .panel-meta").first(), b.length ? (h = { | |
- instance: g, | |
- element: b, | |
- parent: b.closest(".customize-pane-child"), | |
- height: b.outerHeight() | |
- }, h.element.find(".description").on("toggled", c), i && e(h.element, h.parent)) : h = !1 | |
- }, f.state("expandedSection").bind(a), f.state("expandedPanel").bind(a), j.on("scroll", _.throttle(function() { | |
- if (h) { | |
- var a, b = j.scrollTop(); | |
- a = i ? b === i ? 0 : b > i ? 1 : -1 : 1, i = b, 0 !== a && g(h, b, a) | |
+ } | |
+ | |
+ function n() { | |
+ var e = H.Deferred(), | |
+ t = !1, | |
+ n = !1; | |
+ return i() ? n = !0 : confirm(L.l10n.saveAlert) ? (n = !0, L.each(function(e) { | |
+ e._dirty = !1 | |
+ }), H(document).off("visibilitychange.wp-customize-changeset-update"), H(window).off("beforeunload.wp-customize-changeset-update"), I.css("cursor", "progress"), "" !== L.state("changesetStatus").get() && (t = !0)) : e.reject(), (n || t) && wp.ajax.send("customize_dismiss_autosave_or_lock", { | |
+ timeout: 500, | |
+ data: { | |
+ wp_customize: "on", | |
+ customize_theme: L.settings.theme.stylesheet, | |
+ customize_changeset_uuid: L.settings.changeset.uuid, | |
+ nonce: L.settings.nonce.dismiss_autosave_or_lock, | |
+ dismiss_autosave: t, | |
+ dismiss_lock: n | |
} | |
- }, 8)), f.notifications.bind("sidebarTopUpdated", function() { | |
- h && h.element.hasClass("is-sticky") && h.element.css("top", j.css("top")) | |
- }), d = function(a) { | |
- a.hasClass("is-sticky") && a.removeClass("is-sticky").addClass("maybe-sticky is-in-view").css("top", j.scrollTop() + "px") | |
- }, e = function(a, b) { | |
- a.hasClass("is-in-view") && (a.removeClass("maybe-sticky is-in-view").css({ | |
- width: "", | |
- top: "" | |
- }), b.css("padding-top", "")) | |
- }, c = function() { | |
- h.height = h.element.outerHeight() | |
- }, g = function(a, b, c) { | |
- var d = a.element, | |
- e = a.parent, | |
- f = a.height, | |
- g = parseInt(d.css("top"), 10), | |
- h = d.hasClass("maybe-sticky"), | |
- i = d.hasClass("is-sticky"), | |
- k = d.hasClass("is-in-view"), | |
- l = -1 === c; | |
- if (!l) return i && (g = b, d.removeClass("is-sticky").css({ | |
- top: g + "px", | |
- width: "" | |
- })), void(k && b > g + f && (d.removeClass("is-in-view"), e.css("padding-top", ""))); | |
- if (!h && b >= f) h = !0, d.addClass("maybe-sticky"); | |
- else if (0 === b) return d.removeClass("maybe-sticky is-in-view is-sticky").css({ | |
- top: "", | |
- width: "" | |
- }), void e.css("padding-top", ""); | |
- k && !i ? g >= b && d.addClass("is-sticky").css({ | |
- top: j.css("top"), | |
- width: e.outerWidth() + "px" | |
- }) : h && !k && (d.addClass("is-in-view").css("top", b - f + "px"), e.css("padding-top", f + "px")) | |
- } | |
- }(), f.previewedDevice = f.state("previewedDevice"), f.bind("ready", function() { | |
- _.find(f.settings.previewableDevices, function(a, b) { | |
- if (!0 === a["default"]) return f.previewedDevice.set(b), !0 | |
+ }).always(function() { | |
+ e.resolve() | |
+ }), e.promise() | |
+ } | |
+ m.bind("back", function() { | |
+ t = !0 | |
+ }), L.bind("change", e), L.state("selectedChangesetStatus").bind(e), L.state("selectedChangesetDate").bind(e), m.bind("confirm-close", function() { | |
+ n().done(function() { | |
+ m.send("confirmed-close", !0) | |
+ }).fail(function() { | |
+ m.send("confirmed-close", !1) | |
+ }) | |
+ }), I.on("click.customize-controls-close", function(e) { | |
+ e.preventDefault(), t ? m.send("close") : n().done(function() { | |
+ H(window).off("beforeunload.customize-confirm"), window.location.href = I.prop("href") | |
}) | |
- }), l.find(".devices button").on("click", function(a) { | |
- f.previewedDevice.set(b(a.currentTarget).data("device")) | |
- }), f.previewedDevice.bind(function(a) { | |
- var c = b(".wp-full-overlay"), | |
- d = ""; | |
- l.find(".devices button").removeClass("active").attr("aria-pressed", !1), l.find(".devices .preview-" + a).addClass("active").attr("aria-pressed", !0), b.each(f.settings.previewableDevices, function(a) { | |
- d += " preview-" + a | |
- }), c.removeClass(d).addClass("preview-" + a) | |
- }), g.length && f("blogname", function(a) { | |
- var c = function() { | |
- g.text(b.trim(a()) || f.l10n.untitledBlogName) | |
- }; | |
- a.bind(c), c() | |
- }), c = new f.Messenger({ | |
- url: f.settings.url.parent, | |
- channel: "loader" | |
- }), | |
- function() { | |
- function a() { | |
- var a; | |
- return f.state("activated").get() ? (a = f.state("changesetStatus").get(), "" !== a && "auto-draft" !== a || (a = "publish"), f.state("selectedChangesetStatus").get() === a && (("future" !== f.state("selectedChangesetStatus").get() || f.state("selectedChangesetDate").get() === f.state("changesetDate").get()) && (f.state("saved").get() && "auto-draft" !== f.state("changesetStatus").get()))) : 0 === f._latestRevision | |
- } | |
- | |
- function d() { | |
- f.unbind("change", d), f.state("selectedChangesetStatus").unbind(d), f.state("selectedChangesetDate").unbind(d), b(window).on("beforeunload.customize-confirm", function() { | |
- if (!a() && !f.state("changesetLocked").get()) return setTimeout(function() { | |
- e.removeClass("customize-loading") | |
- }, 1), f.l10n.saveAlert | |
- }) | |
+ }) | |
+ }(), H.each(["saved", "change"], function(e, t) { | |
+ L.bind(t, function() { | |
+ m.send(t) | |
+ }) | |
+ }), L.bind("title", function(e) { | |
+ m.send("title", e) | |
+ }), L.settings.changeset.branching && m.send("changeset-uuid", L.settings.changeset.uuid), m.send("ready"), H.each({ | |
+ background_image: { | |
+ controls: ["background_preset", "background_position", "background_size", "background_repeat", "background_attachment"], | |
+ callback: function(e) { | |
+ return !!e | |
} | |
- | |
- function g() { | |
- var c = b.Deferred(), | |
- d = !1, | |
- e = !1; | |
- return a() ? e = !0 : confirm(f.l10n.saveAlert) ? (e = !0, f.each(function(a) { | |
- a._dirty = !1 | |
- }), b(document).off("visibilitychange.wp-customize-changeset-update"), b(window).off("beforeunload.wp-customize-changeset-update"), h.css("cursor", "progress"), "" !== f.state("changesetStatus").get() && (d = !0)) : c.reject(), (e || d) && wp.ajax.send("customize_dismiss_autosave_or_lock", { | |
- timeout: 500, | |
- data: { | |
- wp_customize: "on", | |
- customize_theme: f.settings.theme.stylesheet, | |
- customize_changeset_uuid: f.settings.changeset.uuid, | |
- nonce: f.settings.nonce.dismiss_autosave_or_lock, | |
- dismiss_autosave: d, | |
- dismiss_lock: e | |
- } | |
- }).always(function() { | |
- c.resolve() | |
- }), c.promise() | |
+ }, | |
+ show_on_front: { | |
+ controls: ["page_on_front", "page_for_posts"], | |
+ callback: function(e) { | |
+ return "page" === e | |
} | |
- var i = !1; | |
- c.bind("back", function() { | |
- i = !0 | |
- }), f.bind("change", d), f.state("selectedChangesetStatus").bind(d), f.state("selectedChangesetDate").bind(d), c.bind("confirm-close", function() { | |
- g().done(function() { | |
- c.send("confirmed-close", !0) | |
- }).fail(function() { | |
- c.send("confirmed-close", !1) | |
- }) | |
- }), h.on("click.customize-controls-close", function(a) { | |
- a.preventDefault(), i ? c.send("close") : g().done(function() { | |
- b(window).off("beforeunload.customize-confirm"), window.location.href = h.prop("href") | |
- }) | |
- }) | |
- }(), b.each(["saved", "change"], function(a, b) { | |
- f.bind(b, function() { | |
- c.send(b) | |
- }) | |
- }), f.bind("title", function(a) { | |
- c.send("title", a) | |
- }), f.settings.changeset.branching && c.send("changeset-uuid", f.settings.changeset.uuid), c.send("ready"), b.each({ | |
- background_image: { | |
- controls: ["background_preset", "background_position", "background_size", "background_repeat", "background_attachment"], | |
- callback: function(a) { | |
- return !!a | |
- } | |
- }, | |
- show_on_front: { | |
- controls: ["page_on_front", "page_for_posts"], | |
- callback: function(a) { | |
- return "page" === a | |
- } | |
- }, | |
- header_textcolor: { | |
- controls: ["header_textcolor"], | |
- callback: function(a) { | |
- return "blank" !== a | |
- } | |
+ }, | |
+ header_textcolor: { | |
+ controls: ["header_textcolor"], | |
+ callback: function(e) { | |
+ return "blank" !== e | |
} | |
- }, function(a, c) { | |
- f(a, function(a) { | |
- b.each(c.controls, function(b, d) { | |
- f.control(d, function(b) { | |
- var d = function(a) { | |
- b.container.toggle(c.callback(a)) | |
- }; | |
- d(a.get()), a.bind(d) | |
- }) | |
- }) | |
- }) | |
- }), f.control("background_preset", function(a) { | |
- var b, c, d, e, g, h; | |
- b = { | |
- "default": [!1, !1, !1, !1], | |
- fill: [!0, !1, !1, !1], | |
- fit: [!0, !1, !0, !1], | |
- repeat: [!0, !1, !1, !0], | |
- custom: [!0, !0, !0, !0] | |
- }, c = [_wpCustomizeBackground.defaults["default-position-x"], _wpCustomizeBackground.defaults["default-position-y"], _wpCustomizeBackground.defaults["default-size"], _wpCustomizeBackground.defaults["default-repeat"], _wpCustomizeBackground.defaults["default-attachment"]], d = { | |
- "default": c, | |
- fill: ["left", "top", "cover", "no-repeat", "fixed"], | |
- fit: ["left", "top", "contain", "no-repeat", "fixed"], | |
- repeat: ["left", "top", "auto", "repeat", "scroll"] | |
- }, e = function(a) { | |
- _.each(["background_position", "background_size", "background_repeat", "background_attachment"], function(c, d) { | |
- var e = f.control(c); | |
- e && e.container.toggle(b[a][d]) | |
- }) | |
- }, g = function(a) { | |
- _.each(["background_position_x", "background_position_y", "background_size", "background_repeat", "background_attachment"], function(b, c) { | |
- var e = f(b); | |
- e && e.set(d[a][c]) | |
+ } | |
+ }, function(e, i) { | |
+ L(e, function(n) { | |
+ H.each(i.controls, function(e, t) { | |
+ L.control(t, function(t) { | |
+ var e = function(e) { | |
+ t.container.toggle(i.callback(e)) | |
+ }; | |
+ e(n.get()), n.bind(e) | |
}) | |
- }, h = a.setting.get(), e(h), a.setting.bind("change", function(a) { | |
- e(a), "custom" !== a && g(a) | |
}) | |
- }), f.control("background_repeat", function(a) { | |
- a.elements[0].unsync(f("background_repeat")), a.element = new f.Element(a.container.find("input")), a.element.set("no-repeat" !== a.setting()), a.element.bind(function(b) { | |
- a.setting.set(b ? "repeat" : "no-repeat") | |
- }), a.setting.bind(function(b) { | |
- a.element.set("no-repeat" !== b) | |
+ }) | |
+ }), L.control("background_preset", function(e) { | |
+ var a, t, o, n, i, s; | |
+ a = { | |
+ default: [!1, !1, !1, !1], | |
+ fill: [!0, !1, !1, !1], | |
+ fit: [!0, !1, !0, !1], | |
+ repeat: [!0, !1, !1, !0], | |
+ custom: [!0, !0, !0, !0] | |
+ }, t = [_wpCustomizeBackground.defaults["default-position-x"], _wpCustomizeBackground.defaults["default-position-y"], _wpCustomizeBackground.defaults["default-size"], _wpCustomizeBackground.defaults["default-repeat"], _wpCustomizeBackground.defaults["default-attachment"]], o = { | |
+ default: t, | |
+ fill: ["left", "top", "cover", "no-repeat", "fixed"], | |
+ fit: ["left", "top", "contain", "no-repeat", "fixed"], | |
+ repeat: ["left", "top", "auto", "repeat", "scroll"] | |
+ }, n = function(i) { | |
+ _.each(["background_position", "background_size", "background_repeat", "background_attachment"], function(e, t) { | |
+ var n = L.control(e); | |
+ n && n.container.toggle(a[i][t]) | |
+ }) | |
+ }, i = function(i) { | |
+ _.each(["background_position_x", "background_position_y", "background_size", "background_repeat", "background_attachment"], function(e, t) { | |
+ var n = L(e); | |
+ n && n.set(o[i][t]) | |
}) | |
- }), f.control("background_attachment", function(a) { | |
- a.elements[0].unsync(f("background_attachment")), a.element = new f.Element(a.container.find("input")), a.element.set("fixed" !== a.setting()), a.element.bind(function(b) { | |
- a.setting.set(b ? "scroll" : "fixed") | |
- }), a.setting.bind(function(b) { | |
- a.element.set("fixed" !== b) | |
+ }, s = e.setting.get(), n(s), e.setting.bind("change", function(e) { | |
+ n(e), "custom" !== e && i(e) | |
+ }) | |
+ }), L.control("background_repeat", function(t) { | |
+ t.elements[0].unsync(L("background_repeat")), t.element = new L.Element(t.container.find("input")), t.element.set("no-repeat" !== t.setting()), t.element.bind(function(e) { | |
+ t.setting.set(e ? "repeat" : "no-repeat") | |
+ }), t.setting.bind(function(e) { | |
+ t.element.set("no-repeat" !== e) | |
+ }) | |
+ }), L.control("background_attachment", function(t) { | |
+ t.elements[0].unsync(L("background_attachment")), t.element = new L.Element(t.container.find("input")), t.element.set("fixed" !== t.setting()), t.element.bind(function(e) { | |
+ t.setting.set(e ? "scroll" : "fixed") | |
+ }), t.setting.bind(function(e) { | |
+ t.element.set("fixed" !== e) | |
+ }) | |
+ }), L.control("display_header_text", function(t) { | |
+ var n = ""; | |
+ t.elements[0].unsync(L("header_textcolor")), t.element = new L.Element(t.container.find("input")), t.element.set("blank" !== t.setting()), t.element.bind(function(e) { | |
+ e || (n = L("header_textcolor").get()), t.setting.set(e ? n : "blank") | |
+ }), t.setting.bind(function(e) { | |
+ t.element.set("blank" !== e) | |
+ }) | |
+ }), L("show_on_front", "page_on_front", "page_for_posts", function(i, a, o) { | |
+ var e = function() { | |
+ var e, t, n = "show_on_front_page_collision"; | |
+ e = parseInt(a(), 10), t = parseInt(o(), 10), "page" === i() && (this === a && 0 < e && L.previewer.previewUrl.set(L.settings.url.home), this === o && 0 < t && L.previewer.previewUrl.set(L.settings.url.home + "?page_id=" + t)), "page" === i() && e && t && e === t ? i.notifications.add(new L.Notification(n, { | |
+ type: "error", | |
+ message: L.l10n.pageOnFrontError | |
+ })) : i.notifications.remove(n) | |
+ }; | |
+ i.bind(e), a.bind(e), o.bind(e), e.call(i, i()), L.control("show_on_front", function(e) { | |
+ e.deferred.embedded.done(function() { | |
+ e.container.append(e.getNotificationsContainerElement()) | |
}) | |
- }), f.control("display_header_text", function(a) { | |
- var b = ""; | |
- a.elements[0].unsync(f("header_textcolor")), a.element = new f.Element(a.container.find("input")), a.element.set("blank" !== a.setting()), a.element.bind(function(c) { | |
- c || (b = f("header_textcolor").get()), a.setting.set(c ? b : "blank") | |
- }), a.setting.bind(function(b) { | |
- a.element.set("blank" !== b) | |
+ }) | |
+ }), E = H.Deferred(), L.section("custom_css", function(t) { | |
+ t.deferred.embedded.done(function() { | |
+ t.expanded() ? E.resolve(t) : t.expanded.bind(function(e) { | |
+ e && E.resolve(t) | |
}) | |
- }), f("show_on_front", "page_on_front", "page_for_posts", function(a, b, c) { | |
- var d = function() { | |
- var d, e, g = this, | |
- h = "show_on_front_page_collision"; | |
- d = parseInt(b(), 10), e = parseInt(c(), 10), "page" === a() && (g === b && d > 0 && f.previewer.previewUrl.set(f.settings.url.home), g === c && e > 0 && f.previewer.previewUrl.set(f.settings.url.home + "?page_id=" + e)), "page" === a() && d && e && d === e ? a.notifications.add(new f.Notification(h, { | |
- type: "error", | |
- message: f.l10n.pageOnFrontError | |
- })) : a.notifications.remove(h) | |
+ }) | |
+ }), E.done(function(e) { | |
+ var t = L.control("custom_css"); | |
+ t.container.find(".customize-control-title:first").addClass("screen-reader-text"), e.container.find(".section-description-buttons .section-description-close").on("click", function() { | |
+ e.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(), e.container.find(".customize-help-toggle").attr("aria-expanded", "false").focus() | |
+ }), t && !t.setting.get() && (e.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"), e.container.find(".customize-help-toggle").attr("aria-expanded", "true")) | |
+ }), L.control("header_video", function(n) { | |
+ n.deferred.embedded.done(function() { | |
+ var e = function() { | |
+ var e = L.section(n.section()), | |
+ t = "video_header_not_available"; | |
+ e && (n.active.get() ? e.notifications.remove(t) : e.notifications.add(new L.Notification(t, { | |
+ type: "info", | |
+ message: L.l10n.videoHeaderNotice | |
+ }))) | |
}; | |
- a.bind(d), b.bind(d), c.bind(d), d.call(a, a()), f.control("show_on_front", function(a) { | |
- a.deferred.embedded.done(function() { | |
- a.container.append(a.getNotificationsContainerElement()) | |
- }) | |
- }) | |
- }), | |
- function() { | |
- var a = b.Deferred(); | |
- f.section("custom_css", function(b) { | |
- b.deferred.embedded.done(function() { | |
- b.expanded() ? a.resolve(b) : b.expanded.bind(function(c) { | |
- c && a.resolve(b) | |
- }) | |
- }) | |
- }), a.done(function(a) { | |
- var b = f.control("custom_css"); | |
- b.container.find(".customize-control-title:first").addClass("screen-reader-text"), a.container.find(".section-description-buttons .section-description-close").on("click", function() { | |
- a.container.find(".section-meta .customize-section-description:first").removeClass("open").slideUp(), a.container.find(".customize-help-toggle").attr("aria-expanded", "false").focus() | |
- }), b && !b.setting.get() && (a.container.find(".section-meta .customize-section-description:first").addClass("open").show().trigger("toggled"), a.container.find(".customize-help-toggle").attr("aria-expanded", "true")) | |
- }) | |
- }(), f.control("header_video", function(a) { | |
- a.deferred.embedded.done(function() { | |
- var b = function() { | |
- var b = f.section(a.section()), | |
- c = "video_header_not_available"; | |
- b && (a.active.get() ? b.notifications.remove(c) : b.notifications.add(new f.Notification(c, { | |
- type: "info", | |
- message: f.l10n.videoHeaderNotice | |
- }))) | |
- }; | |
- b(), a.active.bind(b) | |
- }) | |
- }), f.previewer.bind("selective-refresh-setting-validities", function(a) { | |
- f._handleSettingValidities({ | |
- settingValidities: a, | |
- focusInvalidControl: !1 | |
- }) | |
- }), f.previewer.bind("focus-control-for-setting", function(a) { | |
- var b = []; | |
- f.control.each(function(c) { | |
- var d = _.pluck(c.settings, "id"); - 1 !== _.indexOf(d, a) && b.push(c) | |
- }), b.length && (b.sort(function(a, b) { | |
- return a.priority() - b.priority() | |
- }), b[0].focus()) | |
- }), f.previewer.bind("refresh", function() { | |
- f.previewer.refresh() | |
- }), f.state("paneVisible").bind(function(a) { | |
- var c; | |
- c = window.matchMedia ? window.matchMedia("screen and ( max-width: 640px )").matches : b(window).width() <= 640, f.state("editShortcutVisibility").set(a || c ? "visible" : "hidden") | |
- }), window.matchMedia && window.matchMedia("screen and ( max-width: 640px )").addListener(function() { | |
- var a = f.state("paneVisible"); | |
- a.callbacks.fireWith(a, [a.get(), a.get()]) | |
- }), f.previewer.bind("edit-shortcut-visibility", function(a) { | |
- f.state("editShortcutVisibility").set(a) | |
- }), f.state("editShortcutVisibility").bind(function(a) { | |
- f.previewer.send("edit-shortcut-visibility", a) | |
- }), f.bind("change", a), b(document).one("tinymce-editor-setup", function() { | |
- window.tinymce.ui.FloatPanel && (!window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001) && (window.tinymce.ui.FloatPanel.zIndex = 500001) | |
- }), d.addClass("ready"), f.trigger("ready") | |
- } | |
- }) | |
+ e(), n.active.bind(e) | |
+ }) | |
+ }), L.previewer.bind("selective-refresh-setting-validities", function(e) { | |
+ L._handleSettingValidities({ | |
+ settingValidities: e, | |
+ focusInvalidControl: !1 | |
+ }) | |
+ }), L.previewer.bind("focus-control-for-setting", function(n) { | |
+ var i = []; | |
+ L.control.each(function(e) { | |
+ var t = _.pluck(e.settings, "id"); - 1 !== _.indexOf(t, n) && i.push(e) | |
+ }), i.length && (i.sort(function(e, t) { | |
+ return e.priority() - t.priority() | |
+ }), i[0].focus()) | |
+ }), L.previewer.bind("refresh", function() { | |
+ L.previewer.refresh() | |
+ }), L.state("paneVisible").bind(function(e) { | |
+ var t; | |
+ t = window.matchMedia ? window.matchMedia("screen and ( max-width: 640px )").matches : H(window).width() <= 640, L.state("editShortcutVisibility").set(e || t ? "visible" : "hidden") | |
+ }), window.matchMedia && window.matchMedia("screen and ( max-width: 640px )").addListener(function() { | |
+ var e = L.state("paneVisible"); | |
+ e.callbacks.fireWith(e, [e.get(), e.get()]) | |
+ }), L.previewer.bind("edit-shortcut-visibility", function(e) { | |
+ L.state("editShortcutVisibility").set(e) | |
+ }), L.state("editShortcutVisibility").bind(function(e) { | |
+ L.previewer.send("edit-shortcut-visibility", e) | |
+ }), L.bind("change", function e() { | |
+ var t, n, i, a = !1; | |
+ | |
+ function o(e) { | |
+ e || L.settings.changeset.autosaved || (L.settings.changeset.autosaved = !0, L.previewer.send("autosaving")) | |
+ } | |
+ L.unbind("change", e), L.state("saved").bind(o), o(L.state("saved").get()), n = function() { | |
+ a || (a = !0, L.requestChangesetUpdate({}, { | |
+ autosave: !0 | |
+ }).always(function() { | |
+ a = !1 | |
+ })), i() | |
+ }, (i = function() { | |
+ clearTimeout(t), t = setTimeout(function() { | |
+ n() | |
+ }, L.settings.timeouts.changesetAutoSave) | |
+ })(), H(document).on("visibilitychange.wp-customize-changeset-update", function() { | |
+ document.hidden && n() | |
+ }), H(window).on("beforeunload.wp-customize-changeset-update", function() { | |
+ n() | |
+ }) | |
+ }), H(document).one("tinymce-editor-setup", function() { | |
+ window.tinymce.ui.FloatPanel && (!window.tinymce.ui.FloatPanel.zIndex || window.tinymce.ui.FloatPanel.zIndex < 500001) && (window.tinymce.ui.FloatPanel.zIndex = 500001) | |
+ }), D.addClass("ready"), L.trigger("ready") | |
+ } | |
+ }) | |
}(wp, jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/customize-nav-menus.min.js build-unminified/wp-admin/js/customize-nav-menus.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/customize-nav-menus.min.js 2018-10-05 18:05:55.166146896 -0500 | |
+++ build-unminified/wp-admin/js/customize-nav-menus.min.js 2018-10-05 18:05:15.785876266 -0500 | |
@@ -1,16 +1,12 @@ | |
-! function(a, b, c) { | |
+! function(v, h, g) { | |
"use strict"; | |
- function d(a) { | |
- return "nav_menu_item[" + a + "]" | |
- } | |
- | |
- function e(b) { | |
- return b = b || "", b = c("<div>").text(b).html(), b = c.trim(b), b || a.Menus.data.l10n.unnamed | |
+ function d(e) { | |
+ return e = e || "", e = g("<div>").text(e).html(), (e = g.trim(e)) || v.Menus.data.l10n.unnamed | |
} | |
wpNavMenu.originalInit = wpNavMenu.init, wpNavMenu.options.menuItemDepthPerLevel = 20, wpNavMenu.options.sortableItems = "> .customize-control-nav_menu_item", wpNavMenu.options.targetTolerance = 10, wpNavMenu.init = function() { | |
this.jQueryExtensions() | |
- }, a.Menus = a.Menus || {}, a.Menus.data = { | |
+ }, v.Menus = v.Menus || {}, v.Menus.data = { | |
itemTypes: [], | |
l10n: {}, | |
settingTransport: "refresh", | |
@@ -20,36 +16,35 @@ | |
nav_menu_item: {} | |
}, | |
locationSlugMappedToName: {} | |
- }, "undefined" != typeof _wpCustomizeNavMenusSettings && c.extend(a.Menus.data, _wpCustomizeNavMenusSettings), a.Menus.generatePlaceholderAutoIncrementId = function() { | |
- return -Math.ceil(a.Menus.data.phpIntMax * Math.random()) | |
- }, a.Menus.AvailableItemModel = Backbone.Model.extend(c.extend({ | |
+ }, "undefined" != typeof _wpCustomizeNavMenusSettings && g.extend(v.Menus.data, _wpCustomizeNavMenusSettings), v.Menus.generatePlaceholderAutoIncrementId = function() { | |
+ return -Math.ceil(v.Menus.data.phpIntMax * Math.random()) | |
+ }, v.Menus.AvailableItemModel = Backbone.Model.extend(g.extend({ | |
id: null | |
- }, a.Menus.data.defaultSettingValues.nav_menu_item)), a.Menus.AvailableItemCollection = Backbone.Collection.extend({ | |
- model: a.Menus.AvailableItemModel, | |
+ }, v.Menus.data.defaultSettingValues.nav_menu_item)), v.Menus.AvailableItemCollection = Backbone.Collection.extend({ | |
+ model: v.Menus.AvailableItemModel, | |
sort_key: "order", | |
- comparator: function(a) { | |
- return -a.get(this.sort_key) | |
+ comparator: function(e) { | |
+ return -e.get(this.sort_key) | |
}, | |
- sortByField: function(a) { | |
- this.sort_key = a, this.sort() | |
+ sortByField: function(e) { | |
+ this.sort_key = e, this.sort() | |
} | |
- }), a.Menus.availableMenuItems = new a.Menus.AvailableItemCollection(a.Menus.data.availableMenuItems), a.Menus.insertAutoDraftPost = function(d) { | |
- var e, f = c.Deferred(); | |
- return e = b.ajax.post("customize-nav-menus-insert-auto-draft", { | |
- "customize-menus-nonce": a.settings.nonce["customize-menus"], | |
+ }), v.Menus.availableMenuItems = new v.Menus.AvailableItemCollection(v.Menus.data.availableMenuItems), v.Menus.insertAutoDraftPost = function(n) { | |
+ var e, i = g.Deferred(); | |
+ return (e = h.ajax.post("customize-nav-menus-insert-auto-draft", { | |
+ "customize-menus-nonce": v.settings.nonce["customize-menus"], | |
wp_customize: "on", | |
- customize_changeset_uuid: a.settings.changeset.uuid, | |
- params: d | |
- }), e.done(function(b) { | |
- b.post_id && (a("nav_menus_created_posts").set(a("nav_menus_created_posts").get().concat([b.post_id])), "page" === d.post_type && (a.section.has("static_front_page") && a.section("static_front_page").activate(), a.control.each(function(a) { | |
- var c; | |
- "dropdown-pages" === a.params.type && (c = a.container.find('select[name^="_customize-dropdown-pages-"]'), c.append(new Option(d.post_title, b.post_id))) | |
- })), f.resolve(b)) | |
- }), e.fail(function(a) { | |
- var b = a || ""; | |
- "undefined" != typeof a.message && (b = a.message), console.error(b), f.rejectWith(b) | |
- }), f.promise() | |
- }, a.Menus.AvailableMenuItemsPanelView = b.Backbone.View.extend({ | |
+ customize_changeset_uuid: v.settings.changeset.uuid, | |
+ params: n | |
+ })).done(function(t) { | |
+ t.post_id && (v("nav_menus_created_posts").set(v("nav_menus_created_posts").get().concat([t.post_id])), "page" === n.post_type && (v.section.has("static_front_page") && v.section("static_front_page").activate(), v.control.each(function(e) { | |
+ "dropdown-pages" === e.params.type && e.container.find('select[name^="_customize-dropdown-pages-"]').append(new Option(n.post_title, t.post_id)) | |
+ })), i.resolve(t)) | |
+ }), e.fail(function(e) { | |
+ var t = e || ""; | |
+ void 0 !== e.message && (t = e.message), console.error(t), i.rejectWith(t) | |
+ }), i.promise() | |
+ }, v.Menus.AvailableMenuItemsPanelView = h.Backbone.View.extend({ | |
el: "#available-menu-items", | |
events: { | |
"input #menu-items-search": "debounceSearch", | |
@@ -74,1032 +69,1002 @@ | |
loading: !1, | |
addingNew: !1, | |
initialize: function() { | |
- var b = this; | |
- a.panel.has("nav_menus") && (this.$search = c("#menu-items-search"), this.$clearResults = this.$el.find(".clear-results"), this.sectionContent = this.$el.find(".available-menu-items-list"), this.debounceSearch = _.debounce(b.search, 500), _.bindAll(this, "close"), c("#customize-controls, .customize-section-back").on("click keydown", function(a) { | |
- var d = c(a.target).is(".item-delete, .item-delete *"), | |
- e = c(a.target).is(".add-new-menu-item, .add-new-menu-item *"); | |
- !c("body").hasClass("adding-menu-items") || d || e || b.close() | |
+ var a = this; | |
+ v.panel.has("nav_menus") && (this.$search = g("#menu-items-search"), this.$clearResults = this.$el.find(".clear-results"), this.sectionContent = this.$el.find(".available-menu-items-list"), this.debounceSearch = _.debounce(a.search, 500), _.bindAll(this, "close"), g("#customize-controls, .customize-section-back").on("click keydown", function(e) { | |
+ var t = g(e.target).is(".item-delete, .item-delete *"), | |
+ n = g(e.target).is(".add-new-menu-item, .add-new-menu-item *"); | |
+ !g("body").hasClass("adding-menu-items") || t || n || a.close() | |
}), this.$clearResults.on("click", function() { | |
- b.$search.val("").focus().trigger("keyup") | |
+ a.$search.val("").focus().trigger("keyup") | |
}), this.$el.on("input", "#custom-menu-item-name.invalid, #custom-menu-item-url.invalid", function() { | |
- c(this).removeClass("invalid") | |
- }), a.panel("nav_menus").container.bind("expanded", function() { | |
- b.rendered || (b.initList(), b.rendered = !0) | |
+ g(this).removeClass("invalid") | |
+ }), v.panel("nav_menus").container.bind("expanded", function() { | |
+ a.rendered || (a.initList(), a.rendered = !0) | |
}), this.sectionContent.scroll(function() { | |
- var a = b.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"), | |
- d = b.$el.find(".accordion-section.open").height(); | |
- if (!b.loading && c(this).scrollTop() > .75 * a - d) { | |
- var e = c(this).data("type"), | |
- f = c(this).data("object"); | |
- "search" === e ? b.searchTerm && b.doSearch(b.pages.search) : b.loadItems([{ | |
- type: e, | |
- object: f | |
+ var e = a.$el.find(".accordion-section.open .available-menu-items-list").prop("scrollHeight"), | |
+ t = a.$el.find(".accordion-section.open").height(); | |
+ if (!a.loading && g(this).scrollTop() > .75 * e - t) { | |
+ var n = g(this).data("type"), | |
+ i = g(this).data("object"); | |
+ "search" === n ? a.searchTerm && a.doSearch(a.pages.search) : a.loadItems([{ | |
+ type: n, | |
+ object: i | |
}]) | |
} | |
- }), a.previewer.bind("url", this.close), b.delegateEvents()) | |
+ }), v.previewer.bind("url", this.close), a.delegateEvents()) | |
}, | |
- search: function(a) { | |
- var b = c("#available-menu-items-search"), | |
- d = c("#available-menu-items .accordion-section").not(b); | |
- a && this.searchTerm !== a.target.value && ("" === a.target.value || b.hasClass("open") ? "" === a.target.value && (b.removeClass("open"), d.show(), this.$clearResults.removeClass("is-visible")) : (d.fadeOut(100), b.find(".accordion-section-content").slideDown("fast"), b.addClass("open"), this.$clearResults.addClass("is-visible")), this.searchTerm = a.target.value, this.pages.search = 1, this.doSearch(1)) | |
- }, | |
- doSearch: function(d) { | |
- var e, f = this, | |
- g = c("#available-menu-items-search"), | |
- h = g.find(".accordion-section-content"), | |
- i = b.template("available-menu-item"); | |
- if (f.currentRequest && f.currentRequest.abort(), !(d < 0)) { | |
- if (d > 1) g.addClass("loading-more"), h.attr("aria-busy", "true"), b.a11y.speak(a.Menus.data.l10n.itemsLoadingMore); | |
- else if ("" === f.searchTerm) return h.html(""), void b.a11y.speak(""); | |
- g.addClass("loading"), f.loading = !0, e = a.previewer.query({ | |
+ search: function(e) { | |
+ var t = g("#available-menu-items-search"), | |
+ n = g("#available-menu-items .accordion-section").not(t); | |
+ e && this.searchTerm !== e.target.value && ("" === e.target.value || t.hasClass("open") ? "" === e.target.value && (t.removeClass("open"), n.show(), this.$clearResults.removeClass("is-visible")) : (n.fadeOut(100), t.find(".accordion-section-content").slideDown("fast"), t.addClass("open"), this.$clearResults.addClass("is-visible")), this.searchTerm = e.target.value, this.pages.search = 1, this.doSearch(1)) | |
+ }, | |
+ doSearch: function(n) { | |
+ var e, i = this, | |
+ a = g("#available-menu-items-search"), | |
+ o = a.find(".accordion-section-content"), | |
+ s = h.template("available-menu-item"); | |
+ if (i.currentRequest && i.currentRequest.abort(), !(n < 0)) { | |
+ if (1 < n) a.addClass("loading-more"), o.attr("aria-busy", "true"), h.a11y.speak(v.Menus.data.l10n.itemsLoadingMore); | |
+ else if ("" === i.searchTerm) return o.html(""), void h.a11y.speak(""); | |
+ a.addClass("loading"), i.loading = !0, e = v.previewer.query({ | |
excludeCustomizedSaved: !0 | |
}), _.extend(e, { | |
- "customize-menus-nonce": a.settings.nonce["customize-menus"], | |
+ "customize-menus-nonce": v.settings.nonce["customize-menus"], | |
wp_customize: "on", | |
- search: f.searchTerm, | |
- page: d | |
- }), f.currentRequest = b.ajax.post("search-available-menu-items-customizer", e), f.currentRequest.done(function(c) { | |
- var e; | |
- 1 === d && h.empty(), g.removeClass("loading loading-more"), h.attr("aria-busy", "false"), g.addClass("open"), f.loading = !1, e = new a.Menus.AvailableItemCollection(c.items), f.collection.add(e.models), e.each(function(a) { | |
- h.append(i(a.attributes)) | |
- }), 20 > e.length ? f.pages.search = -1 : f.pages.search = f.pages.search + 1, e && d > 1 ? b.a11y.speak(a.Menus.data.l10n.itemsFoundMore.replace("%d", e.length)) : e && 1 === d && b.a11y.speak(a.Menus.data.l10n.itemsFound.replace("%d", e.length)) | |
- }), f.currentRequest.fail(function(a) { | |
- a.message && (h.empty().append(c('<li class="nothing-found"></li>').text(a.message)), b.a11y.speak(a.message)), f.pages.search = -1 | |
- }), f.currentRequest.always(function() { | |
- g.removeClass("loading loading-more"), h.attr("aria-busy", "false"), f.loading = !1, f.currentRequest = null | |
+ search: i.searchTerm, | |
+ page: n | |
+ }), i.currentRequest = h.ajax.post("search-available-menu-items-customizer", e), i.currentRequest.done(function(e) { | |
+ var t; | |
+ 1 === n && o.empty(), a.removeClass("loading loading-more"), o.attr("aria-busy", "false"), a.addClass("open"), i.loading = !1, t = new v.Menus.AvailableItemCollection(e.items), i.collection.add(t.models), t.each(function(e) { | |
+ o.append(s(e.attributes)) | |
+ }), t.length < 20 ? i.pages.search = -1 : i.pages.search = i.pages.search + 1, t && 1 < n ? h.a11y.speak(v.Menus.data.l10n.itemsFoundMore.replace("%d", t.length)) : t && 1 === n && h.a11y.speak(v.Menus.data.l10n.itemsFound.replace("%d", t.length)) | |
+ }), i.currentRequest.fail(function(e) { | |
+ e.message && (o.empty().append(g('<li class="nothing-found"></li>').text(e.message)), h.a11y.speak(e.message)), i.pages.search = -1 | |
+ }), i.currentRequest.always(function() { | |
+ a.removeClass("loading loading-more"), o.attr("aria-busy", "false"), i.loading = !1, i.currentRequest = null | |
}) | |
} | |
}, | |
initList: function() { | |
- var b = this; | |
- _.each(a.Menus.data.itemTypes, function(a) { | |
- b.pages[a.type + ":" + a.object] = 0 | |
- }), b.loadItems(a.Menus.data.itemTypes) | |
- }, | |
- loadItems: function(d, e) { | |
- var f, g, h, i, j = this, | |
- k = [], | |
- l = {}; | |
- i = b.template("available-menu-item"), f = _.isString(d) && _.isString(e) ? [{ | |
- type: d, | |
- object: e | |
- }] : d, _.each(f, function(a) { | |
- var b, d = a.type + ":" + a.object; - 1 !== j.pages[d] && (b = c("#available-menu-items-" + a.type + "-" + a.object), b.find(".accordion-section-title").addClass("loading"), l[d] = b, k.push({ | |
- object: a.object, | |
- type: a.type, | |
- page: j.pages[d] | |
+ var t = this; | |
+ _.each(v.Menus.data.itemTypes, function(e) { | |
+ t.pages[e.type + ":" + e.object] = 0 | |
+ }), t.loadItems(v.Menus.data.itemTypes) | |
+ }, | |
+ loadItems: function(e, t) { | |
+ var n, i, a, o, s = this, | |
+ r = [], | |
+ u = {}; | |
+ o = h.template("available-menu-item"), n = _.isString(e) && _.isString(t) ? [{ | |
+ type: e, | |
+ object: t | |
+ }] : e, _.each(n, function(e) { | |
+ var t, n = e.type + ":" + e.object; - 1 !== s.pages[n] && ((t = g("#available-menu-items-" + e.type + "-" + e.object)).find(".accordion-section-title").addClass("loading"), u[n] = t, r.push({ | |
+ object: e.object, | |
+ type: e.type, | |
+ page: s.pages[n] | |
})) | |
- }), 0 !== k.length && (j.loading = !0, g = a.previewer.query({ | |
+ }), 0 !== r.length && (s.loading = !0, i = v.previewer.query({ | |
excludeCustomizedSaved: !0 | |
- }), _.extend(g, { | |
- "customize-menus-nonce": a.settings.nonce["customize-menus"], | |
+ }), _.extend(i, { | |
+ "customize-menus-nonce": v.settings.nonce["customize-menus"], | |
wp_customize: "on", | |
- item_types: k | |
- }), h = b.ajax.post("load-available-menu-items-customizer", g), h.done(function(b) { | |
- var c; | |
- _.each(b.items, function(b, d) { | |
- return 0 === b.length ? (0 === j.pages[d] && l[d].find(".accordion-section-title").addClass("cannot-expand").removeClass("loading").find(".accordion-section-title > button").prop("tabIndex", -1), void(j.pages[d] = -1)) : ("post_type:page" !== d || l[d].hasClass("open") || l[d].find(".accordion-section-title > button").click(), b = new a.Menus.AvailableItemCollection(b), j.collection.add(b.models), c = l[d].find(".available-menu-items-list"), b.each(function(a) { | |
- c.append(i(a.attributes)) | |
- }), void(j.pages[d] += 1)) | |
+ item_types: r | |
+ }), (a = h.ajax.post("load-available-menu-items-customizer", i)).done(function(e) { | |
+ var n; | |
+ _.each(e.items, function(e, t) { | |
+ if (0 === e.length) return 0 === s.pages[t] && u[t].find(".accordion-section-title").addClass("cannot-expand").removeClass("loading").find(".accordion-section-title > button").prop("tabIndex", -1), void(s.pages[t] = -1); | |
+ "post_type:page" !== t || u[t].hasClass("open") || u[t].find(".accordion-section-title > button").click(), e = new v.Menus.AvailableItemCollection(e), s.collection.add(e.models), n = u[t].find(".available-menu-items-list"), e.each(function(e) { | |
+ n.append(o(e.attributes)) | |
+ }), s.pages[t] += 1 | |
}) | |
- }), h.fail(function(a) { | |
- "undefined" != typeof console && console.error && console.error(a) | |
- }), h.always(function() { | |
- _.each(l, function(a) { | |
- a.find(".accordion-section-title").removeClass("loading") | |
- }), j.loading = !1 | |
+ }), a.fail(function(e) { | |
+ "undefined" != typeof console && console.error && console.error(e) | |
+ }), a.always(function() { | |
+ _.each(u, function(e) { | |
+ e.find(".accordion-section-title").removeClass("loading") | |
+ }), s.loading = !1 | |
})) | |
}, | |
itemSectionHeight: function() { | |
- var a, b, c, d, e; | |
- c = window.innerHeight, a = this.$el.find(".accordion-section:not( #available-menu-items-search ) .accordion-section-content"), b = this.$el.find('.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")'), d = 46 * (1 + a.length) + 14, e = c - d, 120 < e && 290 > e && (a.css("max-height", e), b.css("max-height", e - 60)) | |
+ var e, t, n, i; | |
+ n = window.innerHeight, e = this.$el.find(".accordion-section:not( #available-menu-items-search ) .accordion-section-content"), t = this.$el.find('.accordion-section:not( #available-menu-items-search ) .available-menu-items-list:not(":only-child")'), 120 < (i = n - (46 * (1 + e.length) + 14)) && i < 290 && (e.css("max-height", i), t.css("max-height", i - 60)) | |
}, | |
- select: function(a) { | |
- this.selected = c(a), this.selected.siblings(".menu-item-tpl").removeClass("selected"), this.selected.addClass("selected") | |
+ select: function(e) { | |
+ this.selected = g(e), this.selected.siblings(".menu-item-tpl").removeClass("selected"), this.selected.addClass("selected") | |
}, | |
- focus: function(a) { | |
- this.select(c(a.currentTarget)) | |
+ focus: function(e) { | |
+ this.select(g(e.currentTarget)) | |
}, | |
- _submit: function(a) { | |
- "keypress" === a.type && 13 !== a.which && 32 !== a.which || this.submit(c(a.currentTarget)) | |
- }, | |
- submit: function(a) { | |
- var b, d; | |
- a || (a = this.selected), a && this.currentMenuControl && (this.select(a), b = c(this.selected).data("menu-item-id"), d = this.collection.findWhere({ | |
- id: b | |
- }), d && (this.currentMenuControl.addItemToMenu(d.attributes), c(a).find(".menu-item-handle").addClass("item-added"))) | |
+ _submit: function(e) { | |
+ "keypress" === e.type && 13 !== e.which && 32 !== e.which || this.submit(g(e.currentTarget)) | |
+ }, | |
+ submit: function(e) { | |
+ var t, n; | |
+ e || (e = this.selected), e && this.currentMenuControl && (this.select(e), t = g(this.selected).data("menu-item-id"), (n = this.collection.findWhere({ | |
+ id: t | |
+ })) && (this.currentMenuControl.addItemToMenu(n.attributes), g(e).find(".menu-item-handle").addClass("item-added"))) | |
}, | |
- _submitLink: function(a) { | |
- "keypress" === a.type && 13 !== a.which || this.submitLink() | |
+ _submitLink: function(e) { | |
+ "keypress" === e.type && 13 !== e.which || this.submitLink() | |
}, | |
submitLink: function() { | |
- var b, d, e = c("#custom-menu-item-name"), | |
- f = c("#custom-menu-item-url"); | |
- if (this.currentMenuControl) { | |
- if (d = /^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/, "" === e.val()) return void e.addClass("invalid"); | |
- if (!d.test(f.val())) return void f.addClass("invalid"); | |
- b = { | |
- title: e.val(), | |
- url: f.val(), | |
- type: "custom", | |
- type_label: a.Menus.data.l10n.custom_label, | |
- object: "custom" | |
- }, this.currentMenuControl.addItemToMenu(b), f.val("http://"), e.val("") | |
- } | |
- }, | |
- _submitNew: function(a) { | |
- var b; | |
- "keypress" === a.type && 13 !== a.which || this.addingNew || (b = c(a.target).closest(".accordion-section"), this.submitNew(b)) | |
- }, | |
- submitNew: function(d) { | |
- var e, f = this, | |
- g = d.find(".create-item-input"), | |
- h = g.val(), | |
- i = d.find(".available-menu-items-list"), | |
- j = i.data("type"), | |
- k = i.data("object"), | |
- l = i.data("type_label"); | |
- if (this.currentMenuControl && "post_type" === j) { | |
- if ("" === c.trim(g.val())) return g.addClass("invalid"), void g.focus(); | |
- g.removeClass("invalid"), d.find(".accordion-section-title").addClass("loading"), f.addingNew = !0, g.attr("disabled", "disabled"), e = a.Menus.insertAutoDraftPost({ | |
- post_title: h, | |
- post_type: k | |
- }), e.done(function(e) { | |
- var h, i, m; | |
- h = new a.Menus.AvailableItemModel({ | |
+ var e, t, n = g("#custom-menu-item-name"), | |
+ i = g("#custom-menu-item-url"); | |
+ this.currentMenuControl && (t = /^((\w+:)?\/\/\w.*|\w+:(?!\/\/$)|\/|\?|#)/, "" !== n.val() ? t.test(i.val()) ? (e = { | |
+ title: n.val(), | |
+ url: i.val(), | |
+ type: "custom", | |
+ type_label: v.Menus.data.l10n.custom_label, | |
+ object: "custom" | |
+ }, this.currentMenuControl.addItemToMenu(e), i.val("http://"), n.val("")) : i.addClass("invalid") : n.addClass("invalid")) | |
+ }, | |
+ _submitNew: function(e) { | |
+ var t; | |
+ "keypress" === e.type && 13 !== e.which || this.addingNew || (t = g(e.target).closest(".accordion-section"), this.submitNew(t)) | |
+ }, | |
+ submitNew: function(a) { | |
+ var o = this, | |
+ s = a.find(".create-item-input"), | |
+ e = s.val(), | |
+ t = a.find(".available-menu-items-list"), | |
+ r = t.data("type"), | |
+ u = t.data("object"), | |
+ d = t.data("type_label"); | |
+ if (this.currentMenuControl && "post_type" === r) { | |
+ if ("" === g.trim(s.val())) return s.addClass("invalid"), void s.focus(); | |
+ s.removeClass("invalid"), a.find(".accordion-section-title").addClass("loading"), o.addingNew = !0, s.attr("disabled", "disabled"), v.Menus.insertAutoDraftPost({ | |
+ post_title: e, | |
+ post_type: u | |
+ }).done(function(e) { | |
+ var t, n, i; | |
+ t = new v.Menus.AvailableItemModel({ | |
id: "post-" + e.post_id, | |
- title: g.val(), | |
- type: j, | |
- type_label: l, | |
- object: k, | |
+ title: s.val(), | |
+ type: r, | |
+ type_label: d, | |
+ object: u, | |
object_id: e.post_id, | |
url: e.url | |
- }), f.currentMenuControl.addItemToMenu(h.attributes), a.Menus.availableMenuItemsPanel.collection.add(h), i = d.find(".available-menu-items-list"), m = c(b.template("available-menu-item")(h.attributes)), m.find(".menu-item-handle:first").addClass("item-added"), i.prepend(m), i.scrollTop(), g.val("").removeAttr("disabled"), f.addingNew = !1, d.find(".accordion-section-title").removeClass("loading") | |
+ }), o.currentMenuControl.addItemToMenu(t.attributes), v.Menus.availableMenuItemsPanel.collection.add(t), n = a.find(".available-menu-items-list"), (i = g(h.template("available-menu-item")(t.attributes))).find(".menu-item-handle:first").addClass("item-added"), n.prepend(i), n.scrollTop(), s.val("").removeAttr("disabled"), o.addingNew = !1, a.find(".accordion-section-title").removeClass("loading") | |
}) | |
} | |
}, | |
- open: function(b) { | |
- var d, e = this; | |
- this.currentMenuControl = b, this.itemSectionHeight(), a.section.has("publish_settings") && a.section("publish_settings").collapse(), c("body").addClass("adding-menu-items"), d = function() { | |
- e.close(), c(this).off("click", d) | |
- }, c("#customize-preview").on("click", d), _(this.currentMenuControl.getMenuItemControls()).each(function(a) { | |
- a.collapseForm() | |
+ open: function(e) { | |
+ var t, n = this; | |
+ this.currentMenuControl = e, this.itemSectionHeight(), v.section.has("publish_settings") && v.section("publish_settings").collapse(), g("body").addClass("adding-menu-items"), t = function() { | |
+ n.close(), g(this).off("click", t) | |
+ }, g("#customize-preview").on("click", t), _(this.currentMenuControl.getMenuItemControls()).each(function(e) { | |
+ e.collapseForm() | |
}), this.$el.find(".selected").removeClass("selected"), this.$search.focus() | |
}, | |
- close: function(a) { | |
- a = a || {}, a.returnFocus && this.currentMenuControl && this.currentMenuControl.container.find(".add-new-menu-item").focus(), this.currentMenuControl = null, this.selected = null, c("body").removeClass("adding-menu-items"), c("#available-menu-items .menu-item-handle.item-added").removeClass("item-added"), this.$search.val("").trigger("keyup") | |
+ close: function(e) { | |
+ (e = e || {}).returnFocus && this.currentMenuControl && this.currentMenuControl.container.find(".add-new-menu-item").focus(), this.currentMenuControl = null, this.selected = null, g("body").removeClass("adding-menu-items"), g("#available-menu-items .menu-item-handle.item-added").removeClass("item-added"), this.$search.val("").trigger("keyup") | |
}, | |
- keyboardAccessible: function(a) { | |
- var b = 13 === a.which, | |
- d = 27 === a.which, | |
- e = 9 === a.which && a.shiftKey, | |
- f = c(a.target).is(this.$search); | |
- b && !this.$search.val() || (f && e ? (this.currentMenuControl.container.find(".add-new-menu-item").focus(), a.preventDefault()) : d && this.close({ | |
+ keyboardAccessible: function(e) { | |
+ var t = 13 === e.which, | |
+ n = 27 === e.which, | |
+ i = 9 === e.which && e.shiftKey, | |
+ a = g(e.target).is(this.$search); | |
+ t && !this.$search.val() || (a && i ? (this.currentMenuControl.container.find(".add-new-menu-item").focus(), e.preventDefault()) : n && this.close({ | |
returnFocus: !0 | |
})) | |
} | |
- }), a.Menus.MenusPanel = a.Panel.extend({ | |
+ }), v.Menus.MenusPanel = v.Panel.extend({ | |
attachEvents: function() { | |
- a.Panel.prototype.attachEvents.call(this); | |
- var b = this, | |
- d = b.container.find(".panel-meta"), | |
- e = d.find(".customize-help-toggle"), | |
- f = d.find(".customize-panel-description"), | |
- g = c("#screen-options-wrap"), | |
- h = d.find(".customize-screen-options-toggle"); | |
- h.on("click keydown", function(b) { | |
- if (!a.utils.isKeydownButNotEnterEvent(b)) return b.preventDefault(), f.not(":hidden") && (f.slideUp("fast"), e.attr("aria-expanded", "false")), "true" === h.attr("aria-expanded") ? (h.attr("aria-expanded", "false"), d.removeClass("open"), d.removeClass("active-menu-screen-options"), g.slideUp("fast")) : (h.attr("aria-expanded", "true"), d.addClass("open"), d.addClass("active-menu-screen-options"), g.slideDown("fast")), !1 | |
- }), e.on("click keydown", function(b) { | |
- a.utils.isKeydownButNotEnterEvent(b) || (b.preventDefault(), "true" === h.attr("aria-expanded") && (h.attr("aria-expanded", "false"), e.attr("aria-expanded", "true"), d.addClass("open"), d.removeClass("active-menu-screen-options"), g.slideUp("fast"), f.slideDown("fast"))) | |
+ v.Panel.prototype.attachEvents.call(this); | |
+ var t = this.container.find(".panel-meta"), | |
+ n = t.find(".customize-help-toggle"), | |
+ i = t.find(".customize-panel-description"), | |
+ a = g("#screen-options-wrap"), | |
+ o = t.find(".customize-screen-options-toggle"); | |
+ o.on("click keydown", function(e) { | |
+ if (!v.utils.isKeydownButNotEnterEvent(e)) return e.preventDefault(), i.not(":hidden") && (i.slideUp("fast"), n.attr("aria-expanded", "false")), "true" === o.attr("aria-expanded") ? (o.attr("aria-expanded", "false"), t.removeClass("open"), t.removeClass("active-menu-screen-options"), a.slideUp("fast")) : (o.attr("aria-expanded", "true"), t.addClass("open"), t.addClass("active-menu-screen-options"), a.slideDown("fast")), !1 | |
+ }), n.on("click keydown", function(e) { | |
+ v.utils.isKeydownButNotEnterEvent(e) || (e.preventDefault(), "true" === o.attr("aria-expanded") && (o.attr("aria-expanded", "false"), n.attr("aria-expanded", "true"), t.addClass("open"), t.removeClass("active-menu-screen-options"), a.slideUp("fast"), i.slideDown("fast"))) | |
}) | |
}, | |
ready: function() { | |
- var c = this; | |
- c.container.find(".hide-column-tog").click(function() { | |
- c.saveManageColumnsState() | |
- }), a.section("menu_locations", function(c) { | |
- c.headContainer.prepend(b.template("nav-menu-locations-header")(a.Menus.data)) | |
+ var e = this; | |
+ e.container.find(".hide-column-tog").click(function() { | |
+ e.saveManageColumnsState() | |
+ }), v.section("menu_locations", function(e) { | |
+ e.headContainer.prepend(h.template("nav-menu-locations-header")(v.Menus.data)) | |
}) | |
}, | |
saveManageColumnsState: _.debounce(function() { | |
- var a = this; | |
- a._updateHiddenColumnsRequest && a._updateHiddenColumnsRequest.abort(), a._updateHiddenColumnsRequest = b.ajax.post("hidden-columns", { | |
- hidden: a.hidden(), | |
- screenoptionnonce: c("#screenoptionnonce").val(), | |
+ var e = this; | |
+ e._updateHiddenColumnsRequest && e._updateHiddenColumnsRequest.abort(), e._updateHiddenColumnsRequest = h.ajax.post("hidden-columns", { | |
+ hidden: e.hidden(), | |
+ screenoptionnonce: g("#screenoptionnonce").val(), | |
page: "nav-menus" | |
- }), a._updateHiddenColumnsRequest.always(function() { | |
- a._updateHiddenColumnsRequest = null | |
+ }), e._updateHiddenColumnsRequest.always(function() { | |
+ e._updateHiddenColumnsRequest = null | |
}) | |
}, 2e3), | |
checked: function() {}, | |
unchecked: function() {}, | |
hidden: function() { | |
- return c(".hide-column-tog").not(":checked").map(function() { | |
- var a = this.id; | |
- return a.substring(0, a.length - 5) | |
+ return g(".hide-column-tog").not(":checked").map(function() { | |
+ var e = this.id; | |
+ return e.substring(0, e.length - 5) | |
}).get().join(",") | |
} | |
- }), a.Menus.MenuSection = a.Section.extend({ | |
- initialize: function(b, d) { | |
- var e = this; | |
- a.Section.prototype.initialize.call(e, b, d), e.deferred.initSortables = c.Deferred() | |
+ }), v.Menus.MenuSection = v.Section.extend({ | |
+ initialize: function(e, t) { | |
+ v.Section.prototype.initialize.call(this, e, t), this.deferred.initSortables = g.Deferred() | |
}, | |
ready: function() { | |
- var b, d, e = this; | |
- if ("undefined" == typeof e.params.menu_id) throw new Error("params.menu_id was not defined"); | |
- e.active.validate = function() { | |
- return !!a.has(e.id) && !!a(e.id).get() | |
- }, e.populateControls(), e.navMenuLocationSettings = {}, e.assignedLocations = new a.Value([]), a.each(function(a, b) { | |
- var c = b.match(/^nav_menu_locations\[(.+?)]/); | |
- c && (e.navMenuLocationSettings[c[1]] = a, a.bind(function() { | |
- e.refreshAssignedLocations() | |
- })) | |
- }), e.assignedLocations.bind(function(a) { | |
- e.updateAssignedLocationsInSectionTitle(a) | |
- }), e.refreshAssignedLocations(), a.bind("pane-contents-reflowed", function() { | |
- e.contentContainer.parent().length && (e.container.find(".menu-item .menu-item-reorder-nav button").attr({ | |
+ var e, t, i = this; | |
+ if (void 0 === i.params.menu_id) throw new Error("params.menu_id was not defined"); | |
+ i.active.validate = function() { | |
+ return !!v.has(i.id) && !!v(i.id).get() | |
+ }, i.populateControls(), i.navMenuLocationSettings = {}, i.assignedLocations = new v.Value([]), v.each(function(e, t) { | |
+ var n = t.match(/^nav_menu_locations\[(.+?)]/); | |
+ n && (i.navMenuLocationSettings[n[1]] = e).bind(function() { | |
+ i.refreshAssignedLocations() | |
+ }) | |
+ }), i.assignedLocations.bind(function(e) { | |
+ i.updateAssignedLocationsInSectionTitle(e) | |
+ }), i.refreshAssignedLocations(), v.bind("pane-contents-reflowed", function() { | |
+ i.contentContainer.parent().length && (i.container.find(".menu-item .menu-item-reorder-nav button").attr({ | |
tabindex: "0", | |
"aria-hidden": "false" | |
- }), e.container.find(".menu-item.move-up-disabled .menus-move-up").attr({ | |
+ }), i.container.find(".menu-item.move-up-disabled .menus-move-up").attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
- }), e.container.find(".menu-item.move-down-disabled .menus-move-down").attr({ | |
+ }), i.container.find(".menu-item.move-down-disabled .menus-move-down").attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
- }), e.container.find(".menu-item.move-left-disabled .menus-move-left").attr({ | |
+ }), i.container.find(".menu-item.move-left-disabled .menus-move-left").attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
- }), e.container.find(".menu-item.move-right-disabled .menus-move-right").attr({ | |
+ }), i.container.find(".menu-item.move-right-disabled .menus-move-right").attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
})) | |
- }), d = function() { | |
- var a = "field-" + c(this).val() + "-active"; | |
- e.contentContainer.toggleClass(a, c(this).prop("checked")) | |
- }, b = a.panel("nav_menus").contentContainer.find(".metabox-prefs:first").find(".hide-column-tog"), b.each(d), b.on("click", d) | |
+ }), t = function() { | |
+ var e = "field-" + g(this).val() + "-active"; | |
+ i.contentContainer.toggleClass(e, g(this).prop("checked")) | |
+ }, (e = v.panel("nav_menus").contentContainer.find(".metabox-prefs:first").find(".hide-column-tog")).each(t), e.on("click", t) | |
}, | |
populateControls: function() { | |
- var b, c, d, e, f, g, h, i, j, k = this; | |
- b = k.id + "[name]", g = a.control(b), g || (g = new a.controlConstructor.nav_menu_name(b, { | |
+ var e, t, n, i, a, o, s, r, u, d = this; | |
+ e = d.id + "[name]", (o = v.control(e)) || (o = new v.controlConstructor.nav_menu_name(e, { | |
type: "nav_menu_name", | |
- label: a.Menus.data.l10n.menuNameLabel, | |
- section: k.id, | |
+ label: v.Menus.data.l10n.menuNameLabel, | |
+ section: d.id, | |
priority: 0, | |
settings: { | |
- "default": k.id | |
+ default: d.id | |
} | |
- }), a.control.add(g), g.active.set(!0)), f = a.control(k.id), f || (f = new a.controlConstructor.nav_menu(k.id, { | |
+ }), v.control.add(o), o.active.set(!0)), (a = v.control(d.id)) || (a = new v.controlConstructor.nav_menu(d.id, { | |
type: "nav_menu", | |
- section: k.id, | |
+ section: d.id, | |
priority: 998, | |
settings: { | |
- "default": k.id | |
+ default: d.id | |
}, | |
- menu_id: k.params.menu_id | |
- }), a.control.add(f), f.active.set(!0)), c = k.id + "[locations]", h = a.control(c), h || (h = new a.controlConstructor.nav_menu_locations(c, { | |
- section: k.id, | |
+ menu_id: d.params.menu_id | |
+ }), v.control.add(a), a.active.set(!0)), t = d.id + "[locations]", (s = v.control(t)) || (s = new v.controlConstructor.nav_menu_locations(t, { | |
+ section: d.id, | |
priority: 999, | |
settings: { | |
- "default": k.id | |
+ default: d.id | |
}, | |
- menu_id: k.params.menu_id | |
- }), a.control.add(h.id, h), f.active.set(!0)), d = k.id + "[auto_add]", i = a.control(d), i || (i = new a.controlConstructor.nav_menu_auto_add(d, { | |
+ menu_id: d.params.menu_id | |
+ }), v.control.add(s.id, s), a.active.set(!0)), n = d.id + "[auto_add]", (r = v.control(n)) || (r = new v.controlConstructor.nav_menu_auto_add(n, { | |
type: "nav_menu_auto_add", | |
label: "", | |
- section: k.id, | |
+ section: d.id, | |
priority: 1e3, | |
settings: { | |
- "default": k.id | |
+ default: d.id | |
} | |
- }), a.control.add(i), i.active.set(!0)), e = k.id + "[delete]", j = a.control(e), j || (j = new a.Control(e, { | |
- section: k.id, | |
+ }), v.control.add(r), r.active.set(!0)), i = d.id + "[delete]", (u = v.control(i)) || (u = new v.Control(i, { | |
+ section: d.id, | |
priority: 1001, | |
templateId: "nav-menu-delete-button" | |
- }), a.control.add(j.id, j), j.active.set(!0), j.deferred.embedded.done(function() { | |
- j.container.find("button").on("click", function() { | |
- var b = k.params.menu_id, | |
- c = a.Menus.getMenuControl(b); | |
- c.setting.set(!1) | |
+ }), v.control.add(u.id, u), u.active.set(!0), u.deferred.embedded.done(function() { | |
+ u.container.find("button").on("click", function() { | |
+ var e = d.params.menu_id; | |
+ v.Menus.getMenuControl(e).setting.set(!1) | |
}) | |
})) | |
}, | |
refreshAssignedLocations: function() { | |
- var a = this, | |
- b = a.params.menu_id, | |
- c = []; | |
- _.each(a.navMenuLocationSettings, function(a, d) { | |
- a() === b && c.push(d) | |
- }), a.assignedLocations.set(c) | |
- }, | |
- updateAssignedLocationsInSectionTitle: function(b) { | |
- var d, e = this; | |
- d = e.container.find(".accordion-section-title:first"), d.find(".menu-in-location").remove(), _.each(b, function(b) { | |
- var e, f; | |
- e = c('<span class="menu-in-location"></span>'), f = a.Menus.data.locationSlugMappedToName[b], e.text(a.Menus.data.l10n.menuLocation.replace("%s", f)), d.append(e) | |
- }), e.container.toggleClass("assigned-to-menu-location", 0 !== b.length) | |
- }, | |
- onChangeExpanded: function(b, d) { | |
- var e, f = this; | |
- b && (wpNavMenu.menuList = f.contentContainer, wpNavMenu.targetList = wpNavMenu.menuList, c("#menu-to-edit").removeAttr("id"), wpNavMenu.menuList.attr("id", "menu-to-edit").addClass("menu"), _.each(a.section(f.id).controls(), function(a) { | |
- "nav_menu_item" === a.params.type && a.actuallyEmbed() | |
- }), d.completeCallback && (e = d.completeCallback), d.completeCallback = function() { | |
- "resolved" !== f.deferred.initSortables.state() && (wpNavMenu.initSortables(), f.deferred.initSortables.resolve(wpNavMenu.menuList), a.control("nav_menu[" + String(f.params.menu_id) + "]").reflowMenuItems()), _.isFunction(e) && e() | |
- }), a.Section.prototype.onChangeExpanded.call(f, b, d) | |
+ var n = this.params.menu_id, | |
+ i = []; | |
+ _.each(this.navMenuLocationSettings, function(e, t) { | |
+ e() === n && i.push(t) | |
+ }), this.assignedLocations.set(i) | |
+ }, | |
+ updateAssignedLocationsInSectionTitle: function(e) { | |
+ var i; | |
+ (i = this.container.find(".accordion-section-title:first")).find(".menu-in-location").remove(), _.each(e, function(e) { | |
+ var t, n; | |
+ t = g('<span class="menu-in-location"></span>'), n = v.Menus.data.locationSlugMappedToName[e], t.text(v.Menus.data.l10n.menuLocation.replace("%s", n)), i.append(t) | |
+ }), this.container.toggleClass("assigned-to-menu-location", 0 !== e.length) | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ var n, i = this; | |
+ e && (wpNavMenu.menuList = i.contentContainer, wpNavMenu.targetList = wpNavMenu.menuList, g("#menu-to-edit").removeAttr("id"), wpNavMenu.menuList.attr("id", "menu-to-edit").addClass("menu"), _.each(v.section(i.id).controls(), function(e) { | |
+ "nav_menu_item" === e.params.type && e.actuallyEmbed() | |
+ }), t.completeCallback && (n = t.completeCallback), t.completeCallback = function() { | |
+ "resolved" !== i.deferred.initSortables.state() && (wpNavMenu.initSortables(), i.deferred.initSortables.resolve(wpNavMenu.menuList), v.control("nav_menu[" + String(i.params.menu_id) + "]").reflowMenuItems()), _.isFunction(n) && n() | |
+ }), v.Section.prototype.onChangeExpanded.call(i, e, t) | |
}, | |
highlightNewItemButton: function() { | |
- a.utils.highlightButton(this.contentContainer.find(".add-new-menu-item"), { | |
+ v.utils.highlightButton(this.contentContainer.find(".add-new-menu-item"), { | |
delay: 2e3 | |
}) | |
} | |
- }), a.Menus.createNavMenu = function(b) { | |
- var d, f, g; | |
- return f = a.Menus.generatePlaceholderAutoIncrementId(), d = "nav_menu[" + String(f) + "]", g = a.create(d, d, {}, { | |
+ }), v.Menus.createNavMenu = function(e) { | |
+ var t, n; | |
+ return n = v.Menus.generatePlaceholderAutoIncrementId(), t = "nav_menu[" + String(n) + "]", v.create(t, t, {}, { | |
type: "nav_menu", | |
- transport: a.Menus.data.settingTransport, | |
- previewer: a.previewer | |
- }), g.set(c.extend({}, a.Menus.data.defaultSettingValues.nav_menu, { | |
- name: b || "" | |
- })), a.section.add(new a.Menus.MenuSection(d, { | |
+ transport: v.Menus.data.settingTransport, | |
+ previewer: v.previewer | |
+ }).set(g.extend({}, v.Menus.data.defaultSettingValues.nav_menu, { | |
+ name: e || "" | |
+ })), v.section.add(new v.Menus.MenuSection(t, { | |
panel: "nav_menus", | |
- title: e(b), | |
- customizeAction: a.Menus.data.l10n.customizingMenus, | |
+ title: d(e), | |
+ customizeAction: v.Menus.data.l10n.customizingMenus, | |
priority: 10, | |
- menu_id: f | |
+ menu_id: n | |
})) | |
- }, a.Menus.NewMenuSection = a.Section.extend({ | |
+ }, v.Menus.NewMenuSection = v.Section.extend({ | |
attachEvents: function() { | |
- function c() { | |
- var b = 0; | |
- return a.each(function(a) { | |
- j.test(a.id) && !1 !== a.get() && (b += 1) | |
- }), b | |
- } | |
- | |
- function d() { | |
- h.find(".add-new-menu-notice").prop("hidden", c() > 0) | |
- } | |
+ var t = this, | |
+ e = t.container, | |
+ n = t.contentContainer, | |
+ i = /^nav_menu\[/; | |
- function e(a) { | |
- j.test(a.id) && (a.bind(d), d()) | |
+ function a() { | |
+ var t; | |
+ e.find(".add-new-menu-notice").prop("hidden", (t = 0, v.each(function(e) { | |
+ i.test(e.id) && !1 !== e.get() && (t += 1) | |
+ }), 0 < t)) | |
} | |
- function f(a) { | |
- j.test(a.id) && (a.unbind(d), d()) | |
+ function o(e) { | |
+ i.test(e.id) && (e.bind(a), a()) | |
} | |
- var g = this, | |
- h = g.container, | |
- i = g.contentContainer, | |
- j = /^nav_menu\[/; | |
- g.headContainer.find(".accordion-section-title").replaceWith(b.template("nav-menu-create-menu-section-title")), h.on("click", ".customize-add-menu-button", function() { | |
- g.expand() | |
- }), i.on("keydown", ".menu-name-field", function(a) { | |
- 13 === a.which && g.submit() | |
- }), i.on("click", "#customize-new-menu-submit", function(a) { | |
- g.submit(), a.stopPropagation(), a.preventDefault() | |
- }), a.each(e), a.bind("add", e), a.bind("removed", f), d(), a.Section.prototype.attachEvents.apply(g, arguments) | |
+ t.headContainer.find(".accordion-section-title").replaceWith(h.template("nav-menu-create-menu-section-title")), e.on("click", ".customize-add-menu-button", function() { | |
+ t.expand() | |
+ }), n.on("keydown", ".menu-name-field", function(e) { | |
+ 13 === e.which && t.submit() | |
+ }), n.on("click", "#customize-new-menu-submit", function(e) { | |
+ t.submit(), e.stopPropagation(), e.preventDefault() | |
+ }), v.each(o), v.bind("add", o), v.bind("removed", function(e) { | |
+ i.test(e.id) && (e.unbind(a), a()) | |
+ }), a(), v.Section.prototype.attachEvents.apply(t, arguments) | |
}, | |
ready: function() { | |
this.populateControls() | |
}, | |
populateControls: function() { | |
- var b, c, d, e, f, g, h = this; | |
- b = h.id + "[name]", e = a.control(b), e || (e = new a.controlConstructor.nav_menu_name(b, { | |
- label: a.Menus.data.l10n.menuNameLabel, | |
- description: a.Menus.data.l10n.newMenuNameDescription, | |
- section: h.id, | |
+ var e, t, n, i, a, o, s = this; | |
+ e = s.id + "[name]", (i = v.control(e)) || (i = new v.controlConstructor.nav_menu_name(e, { | |
+ label: v.Menus.data.l10n.menuNameLabel, | |
+ description: v.Menus.data.l10n.newMenuNameDescription, | |
+ section: s.id, | |
priority: 0 | |
- }), a.control.add(e.id, e), e.active.set(!0)), c = h.id + "[locations]", f = a.control(c), f || (f = new a.controlConstructor.nav_menu_locations(c, { | |
- section: h.id, | |
+ }), v.control.add(i.id, i), i.active.set(!0)), t = s.id + "[locations]", (a = v.control(t)) || (a = new v.controlConstructor.nav_menu_locations(t, { | |
+ section: s.id, | |
priority: 1, | |
menu_id: "", | |
isCreating: !0 | |
- }), a.control.add(c, f), f.active.set(!0)), d = h.id + "[submit]", g = a.control(d), g || (g = new a.Control(d, { | |
- section: h.id, | |
+ }), v.control.add(t, a), a.active.set(!0)), n = s.id + "[submit]", (o = v.control(n)) || (o = new v.Control(n, { | |
+ section: s.id, | |
priority: 1, | |
templateId: "nav-menu-submit-new-button" | |
- }), a.control.add(d, g), g.active.set(!0)) | |
+ }), v.control.add(n, o), o.active.set(!0)) | |
}, | |
submit: function() { | |
- var d, e = this, | |
- f = e.contentContainer, | |
- g = f.find(".menu-name-field").first(), | |
- h = g.val(); | |
- return h ? (d = a.Menus.createNavMenu(h), g.val(""), g.removeClass("invalid"), f.find(".assigned-menu-location input[type=checkbox]").each(function() { | |
- var b, e = c(this); | |
- e.prop("checked") && (b = a("nav_menu_locations[" + e.data("location-id") + "]"), b.set(d.params.menu_id), e.prop("checked", !1)) | |
- }), b.a11y.speak(a.Menus.data.l10n.menuAdded), void d.focus({ | |
+ var t, e = this.contentContainer, | |
+ n = e.find(".menu-name-field").first(), | |
+ i = n.val(); | |
+ if (!i) return n.addClass("invalid"), void n.focus(); | |
+ t = v.Menus.createNavMenu(i), n.val(""), n.removeClass("invalid"), e.find(".assigned-menu-location input[type=checkbox]").each(function() { | |
+ var e = g(this); | |
+ e.prop("checked") && (v("nav_menu_locations[" + e.data("location-id") + "]").set(t.params.menu_id), e.prop("checked", !1)) | |
+ }), h.a11y.speak(v.Menus.data.l10n.menuAdded), t.focus({ | |
completeCallback: function() { | |
- d.highlightNewItemButton() | |
+ t.highlightNewItemButton() | |
} | |
- })) : (g.addClass("invalid"), void g.focus()) | |
+ }) | |
}, | |
- selectDefaultLocation: function(b) { | |
- var c = a.control(this.id + "[locations]"), | |
- d = {}; | |
- null !== b && (d[b] = !0), c.setSelections(d) | |
+ selectDefaultLocation: function(e) { | |
+ var t = v.control(this.id + "[locations]"), | |
+ n = {}; | |
+ null !== e && (n[e] = !0), t.setSelections(n) | |
} | |
- }), a.Menus.MenuLocationControl = a.Control.extend({ | |
- initialize: function(b, c) { | |
- var d = this, | |
- e = b.match(/^nav_menu_locations\[(.+?)]/); | |
- d.themeLocation = e[1], a.Control.prototype.initialize.call(d, b, c) | |
+ }), v.Menus.MenuLocationControl = v.Control.extend({ | |
+ initialize: function(e, t) { | |
+ var n = e.match(/^nav_menu_locations\[(.+?)]/); | |
+ this.themeLocation = n[1], v.Control.prototype.initialize.call(this, e, t) | |
}, | |
ready: function() { | |
- var b = this, | |
- c = /^nav_menu\[(-?\d+)]/; | |
- b.setting.validate = function(a) { | |
- return "" === a ? 0 : parseInt(a, 10) | |
- }, b.container.find(".create-menu").on("click", function() { | |
- var b = a.section("add_menu"); | |
- b.selectDefaultLocation(this.dataset.locationId), b.focus() | |
- }), b.container.find(".edit-menu").on("click", function() { | |
- var c = b.setting(); | |
- a.section("nav_menu[" + c + "]").focus() | |
- }), b.setting.bind("change", function() { | |
- var a = 0 !== b.setting(); | |
- b.container.find(".create-menu").toggleClass("hidden", a), b.container.find(".edit-menu").toggleClass("hidden", !a) | |
- }), a.bind("add", function(a) { | |
- var d, f, g = a.id.match(c); | |
- g && !1 !== a() && (f = g[1], d = new Option(e(a().name), f), b.container.find("select").append(d)) | |
- }), a.bind("remove", function(a) { | |
- var d, e = a.id.match(c); | |
- e && (d = parseInt(e[1], 10), b.setting() === d && b.setting.set(""), b.container.find("option[value=" + d + "]").remove()) | |
- }), a.bind("change", function(a) { | |
- var d, f = a.id.match(c); | |
- f && (d = parseInt(f[1], 10), !1 === a() ? (b.setting() === d && b.setting.set(""), b.container.find("option[value=" + d + "]").remove()) : b.container.find("option[value=" + d + "]").text(e(a().name))) | |
+ var a = this, | |
+ o = /^nav_menu\[(-?\d+)]/; | |
+ a.setting.validate = function(e) { | |
+ return "" === e ? 0 : parseInt(e, 10) | |
+ }, a.container.find(".create-menu").on("click", function() { | |
+ var e = v.section("add_menu"); | |
+ e.selectDefaultLocation(this.dataset.locationId), e.focus() | |
+ }), a.container.find(".edit-menu").on("click", function() { | |
+ var e = a.setting(); | |
+ v.section("nav_menu[" + e + "]").focus() | |
+ }), a.setting.bind("change", function() { | |
+ var e = 0 !== a.setting(); | |
+ a.container.find(".create-menu").toggleClass("hidden", e), a.container.find(".edit-menu").toggleClass("hidden", !e) | |
+ }), v.bind("add", function(e) { | |
+ var t, n, i = e.id.match(o); | |
+ i && !1 !== e() && (n = i[1], t = new Option(d(e().name), n), a.container.find("select").append(t)) | |
+ }), v.bind("remove", function(e) { | |
+ var t, n = e.id.match(o); | |
+ n && (t = parseInt(n[1], 10), a.setting() === t && a.setting.set(""), a.container.find("option[value=" + t + "]").remove()) | |
+ }), v.bind("change", function(e) { | |
+ var t, n = e.id.match(o); | |
+ n && (t = parseInt(n[1], 10), !1 === e() ? (a.setting() === t && a.setting.set(""), a.container.find("option[value=" + t + "]").remove()) : a.container.find("option[value=" + t + "]").text(d(e().name))) | |
}) | |
} | |
- }), a.Menus.MenuItemControl = a.Control.extend({ | |
- initialize: function(b, d) { | |
- var e = this; | |
- e.expanded = new a.Value(!1), e.expandedArgumentsQueue = [], e.expanded.bind(function(a) { | |
- var b = e.expandedArgumentsQueue.shift(); | |
- b = c.extend({}, e.defaultExpandedArguments, b), e.onChangeExpanded(a, b) | |
- }), a.Control.prototype.initialize.call(e, b, d), e.active.validate = function() { | |
- var b, c = a.section(e.section()); | |
- return b = !!c && c.active() | |
+ }), v.Menus.MenuItemControl = v.Control.extend({ | |
+ initialize: function(e, t) { | |
+ var n = this; | |
+ n.expanded = new v.Value(!1), n.expandedArgumentsQueue = [], n.expanded.bind(function(e) { | |
+ var t = n.expandedArgumentsQueue.shift(); | |
+ t = g.extend({}, n.defaultExpandedArguments, t), n.onChangeExpanded(e, t) | |
+ }), v.Control.prototype.initialize.call(n, e, t), n.active.validate = function() { | |
+ var e = v.section(n.section()); | |
+ return !!e && e.active() | |
} | |
}, | |
embed: function() { | |
- var b, c = this, | |
- d = c.section(); | |
- d && (b = a.section(d), (b && b.expanded() || a.settings.autofocus.control === c.id) && c.actuallyEmbed()) | |
+ var e, t = this.section(); | |
+ t && ((e = v.section(t)) && e.expanded() || v.settings.autofocus.control === this.id) && this.actuallyEmbed() | |
}, | |
actuallyEmbed: function() { | |
- var a = this; | |
- "resolved" !== a.deferred.embedded.state() && (a.renderContent(), a.deferred.embedded.resolve()) | |
+ "resolved" !== this.deferred.embedded.state() && (this.renderContent(), this.deferred.embedded.resolve()) | |
}, | |
ready: function() { | |
- if ("undefined" == typeof this.params.menu_item_id) throw new Error("params.menu_item_id was not defined"); | |
+ if (void 0 === this.params.menu_item_id) throw new Error("params.menu_item_id was not defined"); | |
this._setupControlToggle(), this._setupReorderUI(), this._setupUpdateUI(), this._setupRemoveUI(), this._setupLinksUI(), this._setupTitleUI() | |
}, | |
_setupControlToggle: function() { | |
- var b = this; | |
- this.container.find(".menu-item-handle").on("click", function(d) { | |
- d.preventDefault(), d.stopPropagation(); | |
- var e = b.getMenuControl(), | |
- f = c(d.target).is(".item-delete, .item-delete *"), | |
- g = c(d.target).is(".add-new-menu-item, .add-new-menu-item *"); | |
- !c("body").hasClass("adding-menu-items") || f || g || a.Menus.availableMenuItemsPanel.close(), e.isReordering || e.isSorting || b.toggleForm() | |
+ var a = this; | |
+ this.container.find(".menu-item-handle").on("click", function(e) { | |
+ e.preventDefault(), e.stopPropagation(); | |
+ var t = a.getMenuControl(), | |
+ n = g(e.target).is(".item-delete, .item-delete *"), | |
+ i = g(e.target).is(".add-new-menu-item, .add-new-menu-item *"); | |
+ !g("body").hasClass("adding-menu-items") || n || i || v.Menus.availableMenuItemsPanel.close(), t.isReordering || t.isSorting || a.toggleForm() | |
}) | |
}, | |
_setupReorderUI: function() { | |
- var a, d, e = this; | |
- a = b.template("menu-item-reorder-nav"), e.container.find(".item-controls").after(a), d = e.container.find(".menu-item-reorder-nav"), d.find(".menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right").on("click", function() { | |
- var a = c(this); | |
- a.focus(); | |
- var b = a.is(".menus-move-up"), | |
- d = a.is(".menus-move-down"), | |
- f = a.is(".menus-move-left"), | |
- g = a.is(".menus-move-right"); | |
- b ? e.moveUp() : d ? e.moveDown() : f ? e.moveLeft() : g && e.moveRight(), a.focus() | |
+ var e, o = this; | |
+ e = h.template("menu-item-reorder-nav"), o.container.find(".item-controls").after(e), o.container.find(".menu-item-reorder-nav").find(".menus-move-up, .menus-move-down, .menus-move-left, .menus-move-right").on("click", function() { | |
+ var e = g(this); | |
+ e.focus(); | |
+ var t = e.is(".menus-move-up"), | |
+ n = e.is(".menus-move-down"), | |
+ i = e.is(".menus-move-left"), | |
+ a = e.is(".menus-move-right"); | |
+ t ? o.moveUp() : n ? o.moveDown() : i ? o.moveLeft() : a && o.moveRight(), e.focus() | |
}) | |
}, | |
_setupUpdateUI: function() { | |
- var b, c = this, | |
- d = c.setting(); | |
- c.elements = {}, c.elements.url = new a.Element(c.container.find(".edit-menu-item-url")), c.elements.title = new a.Element(c.container.find(".edit-menu-item-title")), c.elements.attr_title = new a.Element(c.container.find(".edit-menu-item-attr-title")), c.elements.target = new a.Element(c.container.find(".edit-menu-item-target")), c.elements.classes = new a.Element(c.container.find(".edit-menu-item-classes")), c.elements.xfn = new a.Element(c.container.find(".edit-menu-item-xfn")), c.elements.description = new a.Element(c.container.find(".edit-menu-item-description")), _.each(c.elements, function(a, b) { | |
- a.bind(function(d) { | |
- a.element.is("input[type=checkbox]") && (d = d ? a.element.val() : ""); | |
- var e = c.setting(); | |
- e && e[b] !== d && (e = _.clone(e), e[b] = d, c.setting.set(e)) | |
- }), d && ("classes" !== b && "xfn" !== b || !_.isArray(d[b]) ? a.set(d[b]) : a.set(d[b].join(" "))) | |
- }), c.setting.bind(function(b, d) { | |
- var e, f = c.params.menu_item_id, | |
- g = [], | |
- h = []; | |
- !1 === b ? (e = a.control("nav_menu[" + String(d.nav_menu_term_id) + "]"), c.container.remove(), _.each(e.getMenuItemControls(), function(a) { | |
- d.menu_item_parent === a.setting().menu_item_parent && a.setting().position > d.position ? g.push(a) : a.setting().menu_item_parent === f && h.push(a) | |
- }), _.each(g, function(a) { | |
- var b = _.clone(a.setting()); | |
- b.position += h.length, a.setting.set(b) | |
- }), _.each(h, function(a, b) { | |
- var c = _.clone(a.setting()); | |
- c.position = d.position + b, c.menu_item_parent = d.menu_item_parent, a.setting.set(c) | |
- }), e.debouncedReflowMenuItems()) : (_.each(b, function(a, d) { | |
- c.elements[d] && c.elements[d].set(b[d]) | |
- }), c.container.find(".menu-item-data-parent-id").val(b.menu_item_parent), b.position === d.position && b.menu_item_parent === d.menu_item_parent || c.getMenuControl().debouncedReflowMenuItems()) | |
- }), b = function() { | |
- c.elements.url.element.toggleClass("invalid", c.setting.notifications.has("invalid_url")) | |
- }, c.setting.notifications.bind("add", b), c.setting.notifications.bind("removed", b) | |
+ var e, s = this, | |
+ t = s.setting(); | |
+ s.elements = {}, s.elements.url = new v.Element(s.container.find(".edit-menu-item-url")), s.elements.title = new v.Element(s.container.find(".edit-menu-item-title")), s.elements.attr_title = new v.Element(s.container.find(".edit-menu-item-attr-title")), s.elements.target = new v.Element(s.container.find(".edit-menu-item-target")), s.elements.classes = new v.Element(s.container.find(".edit-menu-item-classes")), s.elements.xfn = new v.Element(s.container.find(".edit-menu-item-xfn")), s.elements.description = new v.Element(s.container.find(".edit-menu-item-description")), _.each(s.elements, function(n, i) { | |
+ n.bind(function(e) { | |
+ n.element.is("input[type=checkbox]") && (e = e ? n.element.val() : ""); | |
+ var t = s.setting(); | |
+ t && t[i] !== e && ((t = _.clone(t))[i] = e, s.setting.set(t)) | |
+ }), t && ("classes" !== i && "xfn" !== i || !_.isArray(t[i]) ? n.set(t[i]) : n.set(t[i].join(" "))) | |
+ }), s.setting.bind(function(n, i) { | |
+ var e, t = s.params.menu_item_id, | |
+ a = [], | |
+ o = []; | |
+ !1 === n ? (e = v.control("nav_menu[" + String(i.nav_menu_term_id) + "]"), s.container.remove(), _.each(e.getMenuItemControls(), function(e) { | |
+ i.menu_item_parent === e.setting().menu_item_parent && e.setting().position > i.position ? a.push(e) : e.setting().menu_item_parent === t && o.push(e) | |
+ }), _.each(a, function(e) { | |
+ var t = _.clone(e.setting()); | |
+ t.position += o.length, e.setting.set(t) | |
+ }), _.each(o, function(e, t) { | |
+ var n = _.clone(e.setting()); | |
+ n.position = i.position + t, n.menu_item_parent = i.menu_item_parent, e.setting.set(n) | |
+ }), e.debouncedReflowMenuItems()) : (_.each(n, function(e, t) { | |
+ s.elements[t] && s.elements[t].set(n[t]) | |
+ }), s.container.find(".menu-item-data-parent-id").val(n.menu_item_parent), n.position === i.position && n.menu_item_parent === i.menu_item_parent || s.getMenuControl().debouncedReflowMenuItems()) | |
+ }), e = function() { | |
+ s.elements.url.element.toggleClass("invalid", s.setting.notifications.has("invalid_url")) | |
+ }, s.setting.notifications.bind("add", e), s.setting.notifications.bind("removed", e) | |
}, | |
_setupRemoveUI: function() { | |
- var d, e = this; | |
- d = e.container.find(".item-delete"), d.on("click", function() { | |
- var d, f, g, h = !0; | |
- c("body").hasClass("adding-menu-items") || (h = !1), f = e.container.nextAll(".customize-control-nav_menu_item:visible").first(), g = e.container.prevAll(".customize-control-nav_menu_item:visible").first(), d = f.length ? f.find(!1 === h ? ".item-edit" : ".item-delete").first() : g.length ? g.find(!1 === h ? ".item-edit" : ".item-delete").first() : e.container.nextAll(".customize-control-nav_menu").find(".add-new-menu-item").first(), e.container.slideUp(function() { | |
- e.setting.set(!1), b.a11y.speak(a.Menus.data.l10n.itemDeleted), d.focus() | |
- }), e.setting.set(!1) | |
+ var a = this; | |
+ a.container.find(".item-delete").on("click", function() { | |
+ var e, t, n, i = !0; | |
+ g("body").hasClass("adding-menu-items") || (i = !1), t = a.container.nextAll(".customize-control-nav_menu_item:visible").first(), n = a.container.prevAll(".customize-control-nav_menu_item:visible").first(), e = t.length ? t.find(!1 === i ? ".item-edit" : ".item-delete").first() : n.length ? n.find(!1 === i ? ".item-edit" : ".item-delete").first() : a.container.nextAll(".customize-control-nav_menu").find(".add-new-menu-item").first(), a.container.slideUp(function() { | |
+ a.setting.set(!1), h.a11y.speak(v.Menus.data.l10n.itemDeleted), e.focus() | |
+ }), a.setting.set(!1) | |
}) | |
}, | |
_setupLinksUI: function() { | |
- var b; | |
- b = this.container.find("a.original-link"), b.on("click", function(b) { | |
- b.preventDefault(), a.previewer.previewUrl(b.target.toString()) | |
+ this.container.find("a.original-link").on("click", function(e) { | |
+ e.preventDefault(), v.previewer.previewUrl(e.target.toString()) | |
}) | |
}, | |
_setupTitleUI: function() { | |
- var b, d = this; | |
- d.container.find(".edit-menu-item-title").on("blur", function() { | |
- c(this).val(c.trim(c(this).val())) | |
- }), b = d.container.find(".menu-item-title"), d.setting.bind(function(d) { | |
- var e, f; | |
- d && (e = c.trim(d.title), f = e || d.original_title || a.Menus.data.l10n.untitled, d._invalid && (f = a.Menus.data.l10n.invalidTitleTpl.replace("%s", f)), e || d.original_title ? b.text(f).removeClass("no-title") : b.text(f).addClass("no-title")) | |
+ var i; | |
+ this.container.find(".edit-menu-item-title").on("blur", function() { | |
+ g(this).val(g.trim(g(this).val())) | |
+ }), i = this.container.find(".menu-item-title"), this.setting.bind(function(e) { | |
+ var t, n; | |
+ e && (n = (t = g.trim(e.title)) || e.original_title || v.Menus.data.l10n.untitled, e._invalid && (n = v.Menus.data.l10n.invalidTitleTpl.replace("%s", n)), t || e.original_title ? i.text(n).removeClass("no-title") : i.text(n).addClass("no-title")) | |
}) | |
}, | |
getDepth: function() { | |
- var b = this, | |
- c = b.setting(), | |
- d = 0; | |
- if (!c) return 0; | |
- for (; c && c.menu_item_parent && (d += 1, b = a.control("nav_menu_item[" + c.menu_item_parent + "]"));) c = b.setting(); | |
- return d | |
+ var e = this, | |
+ t = e.setting(), | |
+ n = 0; | |
+ if (!t) return 0; | |
+ for (; t && t.menu_item_parent && (n += 1, e = v.control("nav_menu_item[" + t.menu_item_parent + "]"));) t = e.setting(); | |
+ return n | |
}, | |
renderContent: function() { | |
- var b, c = this, | |
- d = c.setting(); | |
- c.params.title = d.title || "", c.params.depth = c.getDepth(), c.container.data("item-depth", c.params.depth), b = ["menu-item", "menu-item-depth-" + String(c.params.depth), "menu-item-" + d.object, "menu-item-edit-inactive"], d._invalid ? (b.push("menu-item-invalid"), c.params.title = a.Menus.data.l10n.invalidTitleTpl.replace("%s", c.params.title)) : "draft" === d.status && (b.push("pending"), c.params.title = a.Menus.data.pendingTitleTpl.replace("%s", c.params.title)), c.params.el_classes = b.join(" "), c.params.item_type_label = d.type_label, c.params.item_type = d.type, c.params.url = d.url, c.params.target = d.target, c.params.attr_title = d.attr_title, c.params.classes = _.isArray(d.classes) ? d.classes.join(" ") : d.classes, c.params.attr_title = d.attr_title, c.params.xfn = d.xfn, c.params.description = d.description, c.params.parent = d.menu_item_parent, c.params.original_title = d.original_title || "", c.container.addClass(c.params.el_classes), a.Control.prototype.renderContent.call(c) | |
+ var e, t = this, | |
+ n = t.setting(); | |
+ t.params.title = n.title || "", t.params.depth = t.getDepth(), t.container.data("item-depth", t.params.depth), e = ["menu-item", "menu-item-depth-" + String(t.params.depth), "menu-item-" + n.object, "menu-item-edit-inactive"], n._invalid ? (e.push("menu-item-invalid"), t.params.title = v.Menus.data.l10n.invalidTitleTpl.replace("%s", t.params.title)) : "draft" === n.status && (e.push("pending"), t.params.title = v.Menus.data.pendingTitleTpl.replace("%s", t.params.title)), t.params.el_classes = e.join(" "), t.params.item_type_label = n.type_label, t.params.item_type = n.type, t.params.url = n.url, t.params.target = n.target, t.params.attr_title = n.attr_title, t.params.classes = _.isArray(n.classes) ? n.classes.join(" ") : n.classes, t.params.attr_title = n.attr_title, t.params.xfn = n.xfn, t.params.description = n.description, t.params.parent = n.menu_item_parent, t.params.original_title = n.original_title || "", t.container.addClass(t.params.el_classes), v.Control.prototype.renderContent.call(t) | |
}, | |
getMenuControl: function() { | |
- var b = this, | |
- c = b.setting(); | |
- return c && c.nav_menu_term_id ? a.control("nav_menu[" + c.nav_menu_term_id + "]") : null | |
+ var e = this.setting(); | |
+ return e && e.nav_menu_term_id ? v.control("nav_menu[" + e.nav_menu_term_id + "]") : null | |
}, | |
expandControlSection: function() { | |
- var a = this.container.closest(".accordion-section"); | |
- a.hasClass("open") || a.find(".accordion-section-title:first").trigger("click") | |
+ var e = this.container.closest(".accordion-section"); | |
+ e.hasClass("open") || e.find(".accordion-section-title:first").trigger("click") | |
}, | |
- _toggleExpanded: a.Section.prototype._toggleExpanded, | |
- expand: a.Section.prototype.expand, | |
- expandForm: function(a) { | |
- this.expand(a) | |
- }, | |
- collapse: a.Section.prototype.collapse, | |
- collapseForm: function(a) { | |
- this.collapse(a) | |
- }, | |
- toggleForm: function(a, b) { | |
- "undefined" == typeof a && (a = !this.expanded()), a ? this.expand(b) : this.collapse(b) | |
- }, | |
- onChangeExpanded: function(b, c) { | |
- var d, e, f, g = this; | |
- return d = this.container, e = d.find(".menu-item-settings:first"), "undefined" == typeof b && (b = !e.is(":visible")), e.is(":visible") === b ? void(c && c.completeCallback && c.completeCallback()) : void(b ? (a.control.each(function(a) { | |
- g.params.type === a.params.type && g !== a && a.collapseForm() | |
- }), f = function() { | |
- d.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active"), g.container.trigger("expanded"), c && c.completeCallback && c.completeCallback() | |
- }, d.find(".item-edit").attr("aria-expanded", "true"), e.slideDown("fast", f), g.container.trigger("expand")) : (f = function() { | |
- d.addClass("menu-item-edit-inactive").removeClass("menu-item-edit-active"), g.container.trigger("collapsed"), c && c.completeCallback && c.completeCallback() | |
- }, g.container.trigger("collapse"), d.find(".item-edit").attr("aria-expanded", "false"), e.slideUp("fast", f))) | |
- }, | |
- focus: function(b) { | |
- b = b || {}; | |
- var c, d = this, | |
- e = b.completeCallback; | |
- c = function() { | |
- d.expandControlSection(), b.completeCallback = function() { | |
- var a; | |
- a = d.container.find(".menu-item-settings").find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible"), a.first().focus(), e && e() | |
- }, d.expandForm(b) | |
- }, a.section.has(d.section()) ? a.section(d.section()).expand({ | |
- completeCallback: c | |
- }) : c() | |
+ _toggleExpanded: v.Section.prototype._toggleExpanded, | |
+ expand: v.Section.prototype.expand, | |
+ expandForm: function(e) { | |
+ this.expand(e) | |
+ }, | |
+ collapse: v.Section.prototype.collapse, | |
+ collapseForm: function(e) { | |
+ this.collapse(e) | |
+ }, | |
+ toggleForm: function(e, t) { | |
+ void 0 === e && (e = !this.expanded()), e ? this.expand(t) : this.collapse(t) | |
+ }, | |
+ onChangeExpanded: function(e, t) { | |
+ var n, i, a, o = this; | |
+ i = (n = this.container).find(".menu-item-settings:first"), void 0 === e && (e = !i.is(":visible")), i.is(":visible") !== e ? e ? (v.control.each(function(e) { | |
+ o.params.type === e.params.type && o !== e && e.collapseForm() | |
+ }), a = function() { | |
+ n.removeClass("menu-item-edit-inactive").addClass("menu-item-edit-active"), o.container.trigger("expanded"), t && t.completeCallback && t.completeCallback() | |
+ }, n.find(".item-edit").attr("aria-expanded", "true"), i.slideDown("fast", a), o.container.trigger("expand")) : (a = function() { | |
+ n.addClass("menu-item-edit-inactive").removeClass("menu-item-edit-active"), o.container.trigger("collapsed"), t && t.completeCallback && t.completeCallback() | |
+ }, o.container.trigger("collapse"), n.find(".item-edit").attr("aria-expanded", "false"), i.slideUp("fast", a)) : t && t.completeCallback && t.completeCallback() | |
+ }, | |
+ focus: function(e) { | |
+ var t, n = this, | |
+ i = (e = e || {}).completeCallback; | |
+ t = function() { | |
+ n.expandControlSection(), e.completeCallback = function() { | |
+ n.container.find(".menu-item-settings").find("input, select, textarea, button, object, a[href], [tabindex]").filter(":visible").first().focus(), i && i() | |
+ }, n.expandForm(e) | |
+ }, v.section.has(n.section()) ? v.section(n.section()).expand({ | |
+ completeCallback: t | |
+ }) : t() | |
}, | |
moveUp: function() { | |
- this._changePosition(-1), b.a11y.speak(a.Menus.data.l10n.movedUp) | |
+ this._changePosition(-1), h.a11y.speak(v.Menus.data.l10n.movedUp) | |
}, | |
moveDown: function() { | |
- this._changePosition(1), b.a11y.speak(a.Menus.data.l10n.movedDown) | |
+ this._changePosition(1), h.a11y.speak(v.Menus.data.l10n.movedDown) | |
}, | |
moveLeft: function() { | |
- this._changeDepth(-1), b.a11y.speak(a.Menus.data.l10n.movedLeft) | |
+ this._changeDepth(-1), h.a11y.speak(v.Menus.data.l10n.movedLeft) | |
}, | |
moveRight: function() { | |
- this._changeDepth(1), b.a11y.speak(a.Menus.data.l10n.movedRight) | |
+ this._changeDepth(1), h.a11y.speak(v.Menus.data.l10n.movedRight) | |
}, | |
- _changePosition: function(a) { | |
- var b, d, e = this, | |
- f = _.clone(e.setting()), | |
- g = []; | |
- if (1 !== a && -1 !== a) throw new Error("Offset changes by 1 are only supported."); | |
- if (e.setting()) { | |
- if (_(e.getMenuControl().getMenuItemControls()).each(function(a) { | |
- a.setting().menu_item_parent === f.menu_item_parent && g.push(a.setting) | |
- }), g.sort(function(a, b) { | |
- return a().position - b().position | |
- }), d = _.indexOf(g, e.setting), -1 === d) throw new Error("Expected setting to be among siblings."); | |
- 0 === d && a < 0 || d === g.length - 1 && a > 0 || (b = g[d + a], b && b.set(c.extend(_.clone(b()), { | |
- position: f.position | |
- })), f.position += a, e.setting.set(f)) | |
+ _changePosition: function(e) { | |
+ var t, n, i = this, | |
+ a = _.clone(i.setting()), | |
+ o = []; | |
+ if (1 !== e && -1 !== e) throw new Error("Offset changes by 1 are only supported."); | |
+ if (i.setting()) { | |
+ if (_(i.getMenuControl().getMenuItemControls()).each(function(e) { | |
+ e.setting().menu_item_parent === a.menu_item_parent && o.push(e.setting) | |
+ }), o.sort(function(e, t) { | |
+ return e().position - t().position | |
+ }), -1 === (n = _.indexOf(o, i.setting))) throw new Error("Expected setting to be among siblings."); | |
+ 0 === n && e < 0 || n === o.length - 1 && 0 < e || ((t = o[n + e]) && t.set(g.extend(_.clone(t()), { | |
+ position: a.position | |
+ })), a.position += e, i.setting.set(a)) | |
} | |
}, | |
- _changeDepth: function(b) { | |
- if (1 !== b && -1 !== b) throw new Error("Offset changes by 1 are only supported."); | |
- var d, e, f, g = this, | |
- h = _.clone(g.setting()), | |
- i = []; | |
- if (_(g.getMenuControl().getMenuItemControls()).each(function(a) { | |
- a.setting().menu_item_parent === h.menu_item_parent && i.push(a) | |
- }), i.sort(function(a, b) { | |
- return a.setting().position - b.setting().position | |
- }), d = _.indexOf(i, g), -1 === d) throw new Error("Expected control to be among siblings."); | |
- if (-1 === b) { | |
- if (!h.menu_item_parent) return; | |
- f = a.control("nav_menu_item[" + h.menu_item_parent + "]"), _(i).chain().slice(d).each(function(a, b) { | |
- a.setting.set(c.extend({}, a.setting(), { | |
- menu_item_parent: g.params.menu_item_id, | |
- position: b | |
+ _changeDepth: function(e) { | |
+ if (1 !== e && -1 !== e) throw new Error("Offset changes by 1 are only supported."); | |
+ var t, n, i, a = this, | |
+ o = _.clone(a.setting()), | |
+ s = []; | |
+ if (_(a.getMenuControl().getMenuItemControls()).each(function(e) { | |
+ e.setting().menu_item_parent === o.menu_item_parent && s.push(e) | |
+ }), s.sort(function(e, t) { | |
+ return e.setting().position - t.setting().position | |
+ }), -1 === (t = _.indexOf(s, a))) throw new Error("Expected control to be among siblings."); | |
+ if (-1 === e) { | |
+ if (!o.menu_item_parent) return; | |
+ i = v.control("nav_menu_item[" + o.menu_item_parent + "]"), _(s).chain().slice(t).each(function(e, t) { | |
+ e.setting.set(g.extend({}, e.setting(), { | |
+ menu_item_parent: a.params.menu_item_id, | |
+ position: t | |
})) | |
- }), _(g.getMenuControl().getMenuItemControls()).each(function(a) { | |
- var b, d; | |
- d = a.setting().menu_item_parent === f.setting().menu_item_parent && a.setting().position > f.setting().position, d && (b = _.clone(a.setting()), a.setting.set(c.extend(b, { | |
- position: b.position + 1 | |
+ }), _(a.getMenuControl().getMenuItemControls()).each(function(e) { | |
+ var t; | |
+ e.setting().menu_item_parent === i.setting().menu_item_parent && e.setting().position > i.setting().position && (t = _.clone(e.setting()), e.setting.set(g.extend(t, { | |
+ position: t.position + 1 | |
}))) | |
- }), h.position = f.setting().position + 1, h.menu_item_parent = f.setting().menu_item_parent, g.setting.set(h) | |
- } else if (1 === b) { | |
- if (0 === d) return; | |
- e = i[d - 1], h.menu_item_parent = e.params.menu_item_id, h.position = 0, _(g.getMenuControl().getMenuItemControls()).each(function(a) { | |
- a.setting().menu_item_parent === h.menu_item_parent && (h.position = Math.max(h.position, a.setting().position)) | |
- }), h.position += 1, g.setting.set(h) | |
+ }), o.position = i.setting().position + 1, o.menu_item_parent = i.setting().menu_item_parent, a.setting.set(o) | |
+ } else if (1 === e) { | |
+ if (0 === t) return; | |
+ n = s[t - 1], o.menu_item_parent = n.params.menu_item_id, o.position = 0, _(a.getMenuControl().getMenuItemControls()).each(function(e) { | |
+ e.setting().menu_item_parent === o.menu_item_parent && (o.position = Math.max(o.position, e.setting().position)) | |
+ }), o.position += 1, a.setting.set(o) | |
} | |
} | |
- }), a.Menus.MenuNameControl = a.Control.extend({ | |
+ }), v.Menus.MenuNameControl = v.Control.extend({ | |
ready: function() { | |
- var b = this; | |
- if (b.setting) { | |
- var c = b.setting(); | |
- b.nameElement = new a.Element(b.container.find(".menu-name-field")), b.nameElement.bind(function(a) { | |
- var c = b.setting(); | |
- c && c.name !== a && (c = _.clone(c), c.name = a, b.setting.set(c)) | |
- }), c && b.nameElement.set(c.name), b.setting.bind(function(a) { | |
- a && b.nameElement.set(a.name) | |
+ var n = this; | |
+ if (n.setting) { | |
+ var e = n.setting(); | |
+ n.nameElement = new v.Element(n.container.find(".menu-name-field")), n.nameElement.bind(function(e) { | |
+ var t = n.setting(); | |
+ t && t.name !== e && ((t = _.clone(t)).name = e, n.setting.set(t)) | |
+ }), e && n.nameElement.set(e.name), n.setting.bind(function(e) { | |
+ e && n.nameElement.set(e.name) | |
}) | |
} | |
} | |
- }), a.Menus.MenuLocationsControl = a.Control.extend({ | |
+ }), v.Menus.MenuLocationsControl = v.Control.extend({ | |
ready: function() { | |
- var b = this; | |
- b.container.find(".assigned-menu-location").each(function() { | |
- var d = c(this), | |
- f = d.find("input[type=checkbox]"), | |
- g = new a.Element(f), | |
- h = a("nav_menu_locations[" + f.data("location-id") + "]"), | |
- i = "" === b.params.menu_id, | |
- j = i ? _.noop : function(a) { | |
- g.set(a) | |
+ var u = this; | |
+ u.container.find(".assigned-menu-location").each(function() { | |
+ var n = g(this), | |
+ e = n.find("input[type=checkbox]"), | |
+ t = new v.Element(e), | |
+ i = v("nav_menu_locations[" + e.data("location-id") + "]"), | |
+ a = "" === u.params.menu_id, | |
+ o = a ? _.noop : function(e) { | |
+ t.set(e) | |
}, | |
- k = i ? _.noop : function(a) { | |
- h.set(a ? b.params.menu_id : 0) | |
+ s = a ? _.noop : function(e) { | |
+ i.set(e ? u.params.menu_id : 0) | |
}, | |
- l = function(b) { | |
- var c = a("nav_menu[" + String(b) + "]"); | |
- b && c && c() ? d.find(".theme-location-set").show().find("span").text(e(c().name)) : d.find(".theme-location-set").hide() | |
+ r = function(e) { | |
+ var t = v("nav_menu[" + String(e) + "]"); | |
+ e && t && t() ? n.find(".theme-location-set").show().find("span").text(d(t().name)) : n.find(".theme-location-set").hide() | |
}; | |
- j(h.get() === b.params.menu_id), f.on("change", function() { | |
- k(this.checked) | |
- }), h.bind(function(a) { | |
- j(a === b.params.menu_id), l(a) | |
- }), l(h.get()) | |
+ o(i.get() === u.params.menu_id), e.on("change", function() { | |
+ s(this.checked) | |
+ }), i.bind(function(e) { | |
+ o(e === u.params.menu_id), r(e) | |
+ }), r(i.get()) | |
}) | |
}, | |
- setSelections: function(a) { | |
- this.container.find(".menu-location").each(function(b, c) { | |
- var d = c.dataset.locationId; | |
- c.checked = d in a && a[d] | |
+ setSelections: function(i) { | |
+ this.container.find(".menu-location").each(function(e, t) { | |
+ var n = t.dataset.locationId; | |
+ t.checked = n in i && i[n] | |
}) | |
} | |
- }), a.Menus.MenuAutoAddControl = a.Control.extend({ | |
+ }), v.Menus.MenuAutoAddControl = v.Control.extend({ | |
ready: function() { | |
- var b = this, | |
- c = b.setting(); | |
- b.active.validate = function() { | |
- var c, d = a.section(b.section()); | |
- return c = !!d && d.active() | |
- }, b.autoAddElement = new a.Element(b.container.find("input[type=checkbox].auto_add")), b.autoAddElement.bind(function(a) { | |
- var c = b.setting(); | |
- c && c.name !== a && (c = _.clone(c), c.auto_add = a, b.setting.set(c)) | |
- }), c && b.autoAddElement.set(c.auto_add), b.setting.bind(function(a) { | |
- a && b.autoAddElement.set(a.auto_add) | |
+ var n = this, | |
+ e = n.setting(); | |
+ n.active.validate = function() { | |
+ var e = v.section(n.section()); | |
+ return !!e && e.active() | |
+ }, n.autoAddElement = new v.Element(n.container.find("input[type=checkbox].auto_add")), n.autoAddElement.bind(function(e) { | |
+ var t = n.setting(); | |
+ t && t.name !== e && ((t = _.clone(t)).auto_add = e, n.setting.set(t)) | |
+ }), e && n.autoAddElement.set(e.auto_add), n.setting.bind(function(e) { | |
+ e && n.autoAddElement.set(e.auto_add) | |
}) | |
} | |
- }), a.Menus.MenuControl = a.Control.extend({ | |
+ }), v.Menus.MenuControl = v.Control.extend({ | |
ready: function() { | |
- var b, d, f, g = this, | |
- h = a.section(g.section()), | |
- i = g.params.menu_id, | |
- j = g.setting(); | |
- if ("undefined" == typeof this.params.menu_id) throw new Error("params.menu_id was not defined"); | |
- g.active.validate = function() { | |
- var a; | |
- return a = !!h && h.active() | |
- }, g.$controlSection = h.headContainer, g.$sectionContent = g.container.closest(".accordion-section-content"), this._setupModel(), a.section(g.section(), function(a) { | |
- a.deferred.initSortables.done(function(a) { | |
- g._setupSortable(a) | |
+ var t, e, n, i = this, | |
+ a = v.section(i.section()), | |
+ o = i.params.menu_id, | |
+ s = i.setting(); | |
+ if (void 0 === this.params.menu_id) throw new Error("params.menu_id was not defined"); | |
+ i.active.validate = function() { | |
+ return !!a && a.active() | |
+ }, i.$controlSection = a.headContainer, i.$sectionContent = i.container.closest(".accordion-section-content"), this._setupModel(), v.section(i.section(), function(e) { | |
+ e.deferred.initSortables.done(function(e) { | |
+ i._setupSortable(e) | |
}) | |
- }), this._setupAddition(), this._setupTitle(), j && (b = e(j.name), a.control.each(function(c) { | |
- c.extended(a.controlConstructor.widget_form) && "nav_menu" === c.params.widget_id_base && (c.container.find(".nav-menu-widget-form-controls:first").show(), c.container.find(".nav-menu-widget-no-menus-message:first").hide(), f = c.container.find("select"), 0 === f.find("option[value=" + String(i) + "]").length && f.append(new Option(b, i))) | |
- }), d = c("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )"), d.find(".nav-menu-widget-form-controls:first").show(), d.find(".nav-menu-widget-no-menus-message:first").hide(), f = d.find(".widget-inside select:first"), 0 === f.find("option[value=" + String(i) + "]").length && f.append(new Option(b, i))), _.defer(function() { | |
- g.updateInvitationVisibility() | |
+ }), this._setupAddition(), this._setupTitle(), s && (t = d(s.name), v.control.each(function(e) { | |
+ e.extended(v.controlConstructor.widget_form) && "nav_menu" === e.params.widget_id_base && (e.container.find(".nav-menu-widget-form-controls:first").show(), e.container.find(".nav-menu-widget-no-menus-message:first").hide(), 0 === (n = e.container.find("select")).find("option[value=" + String(o) + "]").length && n.append(new Option(t, o))) | |
+ }), (e = g("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").show(), e.find(".nav-menu-widget-no-menus-message:first").hide(), 0 === (n = e.find(".widget-inside select:first")).find("option[value=" + String(o) + "]").length && n.append(new Option(t, o))), _.defer(function() { | |
+ i.updateInvitationVisibility() | |
}) | |
}, | |
_setupModel: function() { | |
- var b = this, | |
- c = b.params.menu_id; | |
- b.setting.bind(function(d) { | |
- var f; | |
- !1 === d ? b._handleDeletion() : (f = e(d.name), a.control.each(function(b) { | |
- if (b.extended(a.controlConstructor.widget_form) && "nav_menu" === b.params.widget_id_base) { | |
- var d = b.container.find("select"); | |
- d.find("option[value=" + String(c) + "]").text(f) | |
- } | |
+ var n = this, | |
+ i = n.params.menu_id; | |
+ n.setting.bind(function(e) { | |
+ var t; | |
+ !1 === e ? n._handleDeletion() : (t = d(e.name), v.control.each(function(e) { | |
+ e.extended(v.controlConstructor.widget_form) && "nav_menu" === e.params.widget_id_base && e.container.find("select").find("option[value=" + String(i) + "]").text(t) | |
})) | |
}) | |
}, | |
- _setupSortable: function(b) { | |
- var c = this; | |
- if (!b.is(c.$sectionContent)) throw new Error("Unexpected menuList."); | |
- b.on("sortstart", function() { | |
- c.isSorting = !0 | |
- }), b.on("sortstop", function() { | |
+ _setupSortable: function(e) { | |
+ var t = this; | |
+ if (!e.is(t.$sectionContent)) throw new Error("Unexpected menuList."); | |
+ e.on("sortstart", function() { | |
+ t.isSorting = !0 | |
+ }), e.on("sortstop", function() { | |
setTimeout(function() { | |
- var b = c.$sectionContent.sortable("toArray"), | |
- d = [], | |
- e = 0, | |
- f = 10; | |
- c.isSorting = !1, c.$sectionContent.scrollLeft(0), _.each(b, function(b) { | |
- var c, e, f; | |
- f = b.match(/^customize-control-nav_menu_item-(-?\d+)$/, ""), f && (c = parseInt(f[1], 10), e = a.control("nav_menu_item[" + String(c) + "]"), e && d.push(e)) | |
- }), _.each(d, function(a) { | |
- if (!1 !== a.setting()) { | |
- var b = _.clone(a.setting()); | |
- e += 1, f += 1, b.position = e, a.priority(f), b.menu_item_parent = parseInt(a.container.find(".menu-item-data-parent-id").val(), 10), b.menu_item_parent || (b.menu_item_parent = 0), a.setting.set(b) | |
+ var e = t.$sectionContent.sortable("toArray"), | |
+ a = [], | |
+ n = 0, | |
+ i = 10; | |
+ t.isSorting = !1, t.$sectionContent.scrollLeft(0), _.each(e, function(e) { | |
+ var t, n, i; | |
+ (i = e.match(/^customize-control-nav_menu_item-(-?\d+)$/, "")) && (t = parseInt(i[1], 10), (n = v.control("nav_menu_item[" + String(t) + "]")) && a.push(n)) | |
+ }), _.each(a, function(e) { | |
+ if (!1 !== e.setting()) { | |
+ var t = _.clone(e.setting()); | |
+ n += 1, i += 1, t.position = n, e.priority(i), t.menu_item_parent = parseInt(e.container.find(".menu-item-data-parent-id").val(), 10), t.menu_item_parent || (t.menu_item_parent = 0), e.setting.set(t) | |
} | |
}) | |
}) | |
- }), c.isReordering = !1, this.container.find(".reorder-toggle").on("click", function() { | |
- c.toggleReordering(!c.isReordering) | |
+ }), t.isReordering = !1, this.container.find(".reorder-toggle").on("click", function() { | |
+ t.toggleReordering(!t.isReordering) | |
}) | |
}, | |
_setupAddition: function() { | |
- var b = this; | |
- this.container.find(".add-new-menu-item").on("click", function(d) { | |
- b.$sectionContent.hasClass("reordering") || (c("body").hasClass("adding-menu-items") ? (c(this).attr("aria-expanded", "false"), a.Menus.availableMenuItemsPanel.close(), d.stopPropagation()) : (c(this).attr("aria-expanded", "true"), a.Menus.availableMenuItemsPanel.open(b))) | |
+ var t = this; | |
+ this.container.find(".add-new-menu-item").on("click", function(e) { | |
+ t.$sectionContent.hasClass("reordering") || (g("body").hasClass("adding-menu-items") ? (g(this).attr("aria-expanded", "false"), v.Menus.availableMenuItemsPanel.close(), e.stopPropagation()) : (g(this).attr("aria-expanded", "true"), v.Menus.availableMenuItemsPanel.open(t))) | |
}) | |
}, | |
_handleDeletion: function() { | |
- var d, e, f, g = this, | |
- h = g.params.menu_id, | |
- i = 0; | |
- d = a.section(g.section()), e = function() { | |
- d.container.remove(), a.section.remove(d.id) | |
- }, d && d.expanded() ? d.collapse({ | |
+ var e, t, n, i = this.params.menu_id, | |
+ a = 0; | |
+ e = v.section(this.section()), t = function() { | |
+ e.container.remove(), v.section.remove(e.id) | |
+ }, e && e.expanded() ? e.collapse({ | |
completeCallback: function() { | |
- e(), b.a11y.speak(a.Menus.data.l10n.menuDeleted), a.panel("nav_menus").focus() | |
+ t(), h.a11y.speak(v.Menus.data.l10n.menuDeleted), v.panel("nav_menus").focus() | |
} | |
- }) : e(), a.each(function(a) { | |
- /^nav_menu\[/.test(a.id) && !1 !== a() && (i += 1) | |
- }), a.control.each(function(b) { | |
- if (b.extended(a.controlConstructor.widget_form) && "nav_menu" === b.params.widget_id_base) { | |
- var c = b.container.find("select"); | |
- c.val() === String(h) && c.prop("selectedIndex", 0).trigger("change"), b.container.find(".nav-menu-widget-form-controls:first").toggle(0 !== i), b.container.find(".nav-menu-widget-no-menus-message:first").toggle(0 === i), b.container.find("option[value=" + String(h) + "]").remove() | |
+ }) : t(), v.each(function(e) { | |
+ /^nav_menu\[/.test(e.id) && !1 !== e() && (a += 1) | |
+ }), v.control.each(function(e) { | |
+ if (e.extended(v.controlConstructor.widget_form) && "nav_menu" === e.params.widget_id_base) { | |
+ var t = e.container.find("select"); | |
+ t.val() === String(i) && t.prop("selectedIndex", 0).trigger("change"), e.container.find(".nav-menu-widget-form-controls:first").toggle(0 !== a), e.container.find(".nav-menu-widget-no-menus-message:first").toggle(0 === a), e.container.find("option[value=" + String(i) + "]").remove() | |
} | |
- }), f = c("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )"), f.find(".nav-menu-widget-form-controls:first").toggle(0 !== i), f.find(".nav-menu-widget-no-menus-message:first").toggle(0 === i), f.find("option[value=" + String(h) + "]").remove() | |
+ }), (n = g("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0 !== a), n.find(".nav-menu-widget-no-menus-message:first").toggle(0 === a), n.find("option[value=" + String(i) + "]").remove() | |
}, | |
_setupTitle: function() { | |
- var b = this; | |
- b.setting.bind(function(d) { | |
- if (d) { | |
- var f = a.section(b.section()), | |
- g = b.params.menu_id, | |
- h = f.headContainer.find(".accordion-section-title"), | |
- i = f.contentContainer.find(".customize-section-title h3"), | |
- j = f.headContainer.find(".menu-in-location"), | |
- k = i.find(".customize-action"), | |
- l = e(d.name); | |
- h.text(l), j.length && j.appendTo(h), i.text(l), k.length && k.prependTo(i), a.control.each(function(a) { | |
- /^nav_menu_locations\[/.test(a.id) && a.container.find("option[value=" + g + "]").text(l) | |
- }), f.contentContainer.find(".customize-control-checkbox input").each(function() { | |
- c(this).prop("checked") && c(".current-menu-location-name-" + c(this).data("location-id")).text(l) | |
+ var u = this; | |
+ u.setting.bind(function(e) { | |
+ if (e) { | |
+ var t = v.section(u.section()), | |
+ n = u.params.menu_id, | |
+ i = t.headContainer.find(".accordion-section-title"), | |
+ a = t.contentContainer.find(".customize-section-title h3"), | |
+ o = t.headContainer.find(".menu-in-location"), | |
+ s = a.find(".customize-action"), | |
+ r = d(e.name); | |
+ i.text(r), o.length && o.appendTo(i), a.text(r), s.length && s.prependTo(a), v.control.each(function(e) { | |
+ /^nav_menu_locations\[/.test(e.id) && e.container.find("option[value=" + n + "]").text(r) | |
+ }), t.contentContainer.find(".customize-control-checkbox input").each(function() { | |
+ g(this).prop("checked") && g(".current-menu-location-name-" + g(this).data("location-id")).text(r) | |
}) | |
} | |
}) | |
}, | |
- toggleReordering: function(c) { | |
- var d = this.container.find(".add-new-menu-item"), | |
- e = this.container.find(".reorder-toggle"), | |
- f = this.$sectionContent.find(".item-title"); | |
- c = Boolean(c), c !== this.$sectionContent.hasClass("reordering") && (this.isReordering = c, this.$sectionContent.toggleClass("reordering", c), this.$sectionContent.sortable(this.isReordering ? "disable" : "enable"), this.isReordering ? (d.attr({ | |
+ toggleReordering: function(e) { | |
+ var t = this.container.find(".add-new-menu-item"), | |
+ n = this.container.find(".reorder-toggle"), | |
+ i = this.$sectionContent.find(".item-title"); | |
+ (e = Boolean(e)) !== this.$sectionContent.hasClass("reordering") && (this.isReordering = e, this.$sectionContent.toggleClass("reordering", e), this.$sectionContent.sortable(this.isReordering ? "disable" : "enable"), this.isReordering ? (t.attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
- }), e.attr("aria-label", a.Menus.data.l10n.reorderLabelOff), b.a11y.speak(a.Menus.data.l10n.reorderModeOn), f.attr("aria-hidden", "false")) : (d.removeAttr("tabindex aria-hidden"), e.attr("aria-label", a.Menus.data.l10n.reorderLabelOn), b.a11y.speak(a.Menus.data.l10n.reorderModeOff), f.attr("aria-hidden", "true")), c && _(this.getMenuItemControls()).each(function(a) { | |
- a.collapseForm() | |
+ }), n.attr("aria-label", v.Menus.data.l10n.reorderLabelOff), h.a11y.speak(v.Menus.data.l10n.reorderModeOn), i.attr("aria-hidden", "false")) : (t.removeAttr("tabindex aria-hidden"), n.attr("aria-label", v.Menus.data.l10n.reorderLabelOn), h.a11y.speak(v.Menus.data.l10n.reorderModeOff), i.attr("aria-hidden", "true")), e && _(this.getMenuItemControls()).each(function(e) { | |
+ e.collapseForm() | |
})) | |
}, | |
getMenuItemControls: function() { | |
- var b = this, | |
- c = [], | |
- d = b.params.menu_id; | |
- return a.control.each(function(a) { | |
- "nav_menu_item" === a.params.type && a.setting() && d === a.setting().nav_menu_term_id && c.push(a) | |
- }), c | |
+ var t = [], | |
+ n = this.params.menu_id; | |
+ return v.control.each(function(e) { | |
+ "nav_menu_item" === e.params.type && e.setting() && n === e.setting().nav_menu_term_id && t.push(e) | |
+ }), t | |
}, | |
reflowMenuItems: function() { | |
- var a, b = this, | |
- c = b.getMenuItemControls(); | |
- a = function(b) { | |
- var c = [], | |
- d = b.currentParent; | |
- _.each(b.menuItemControls, function(a) { | |
- d === a.setting().menu_item_parent && c.push(a) | |
- }), c.sort(function(a, b) { | |
- return a.setting().position - b.setting().position | |
- }), _.each(c, function(c) { | |
- b.currentAbsolutePosition += 1, c.priority.set(b.currentAbsolutePosition), c.container.hasClass("menu-item-depth-" + String(b.currentDepth)) || (_.each(c.container.prop("className").match(/menu-item-depth-\d+/g), function(a) { | |
- c.container.removeClass(a) | |
- }), c.container.addClass("menu-item-depth-" + String(b.currentDepth))), c.container.data("item-depth", b.currentDepth), b.currentDepth += 1, b.currentParent = c.params.menu_item_id, a(b), b.currentDepth -= 1, b.currentParent = d | |
- }), c.length && (_(c).each(function(a) { | |
- a.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"), 0 === b.currentDepth ? a.container.addClass("move-left-disabled") : 10 === b.currentDepth && a.container.addClass("move-right-disabled") | |
- }), c[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled", 1 === c.length), c[c.length - 1].container.addClass("move-down-disabled").toggleClass("move-up-disabled", 1 === c.length)) | |
- }, a({ | |
- menuItemControls: c, | |
+ var e, t = this.getMenuItemControls(); | |
+ (e = function(n) { | |
+ var t = [], | |
+ i = n.currentParent; | |
+ _.each(n.menuItemControls, function(e) { | |
+ i === e.setting().menu_item_parent && t.push(e) | |
+ }), t.sort(function(e, t) { | |
+ return e.setting().position - t.setting().position | |
+ }), _.each(t, function(t) { | |
+ n.currentAbsolutePosition += 1, t.priority.set(n.currentAbsolutePosition), t.container.hasClass("menu-item-depth-" + String(n.currentDepth)) || (_.each(t.container.prop("className").match(/menu-item-depth-\d+/g), function(e) { | |
+ t.container.removeClass(e) | |
+ }), t.container.addClass("menu-item-depth-" + String(n.currentDepth))), t.container.data("item-depth", n.currentDepth), n.currentDepth += 1, n.currentParent = t.params.menu_item_id, e(n), n.currentDepth -= 1, n.currentParent = i | |
+ }), t.length && (_(t).each(function(e) { | |
+ e.container.removeClass("move-up-disabled move-down-disabled move-left-disabled move-right-disabled"), 0 === n.currentDepth ? e.container.addClass("move-left-disabled") : 10 === n.currentDepth && e.container.addClass("move-right-disabled") | |
+ }), t[0].container.addClass("move-up-disabled").addClass("move-right-disabled").toggleClass("move-down-disabled", 1 === t.length), t[t.length - 1].container.addClass("move-down-disabled").toggleClass("move-up-disabled", 1 === t.length)) | |
+ })({ | |
+ menuItemControls: t, | |
currentParent: 0, | |
currentDepth: 0, | |
currentAbsolutePosition: 0 | |
- }), b.updateInvitationVisibility(c), b.container.find(".reorder-toggle").toggle(c.length > 1) | |
+ }), this.updateInvitationVisibility(t), this.container.find(".reorder-toggle").toggle(1 < t.length) | |
}, | |
debouncedReflowMenuItems: _.debounce(function() { | |
this.reflowMenuItems.apply(this, arguments) | |
}, 0), | |
- addItemToMenu: function(d) { | |
- var e, f, g, h, i, j = this, | |
- k = 0, | |
- l = 10; | |
- return _.each(j.getMenuItemControls(), function(a) { | |
- !1 !== a.setting() && (l = Math.max(l, a.priority()), 0 === a.setting().menu_item_parent && (k = Math.max(k, a.setting().position))) | |
- }), k += 1, l += 1, d = c.extend({}, a.Menus.data.defaultSettingValues.nav_menu_item, d, { | |
- nav_menu_term_id: j.params.menu_id, | |
- original_title: d.title, | |
- position: k | |
- }), delete d.id, i = a.Menus.generatePlaceholderAutoIncrementId(), e = "nav_menu_item[" + String(i) + "]", f = { | |
+ addItemToMenu: function(e) { | |
+ var t, n, i, a, o, s = 0, | |
+ r = 10; | |
+ return _.each(this.getMenuItemControls(), function(e) { | |
+ !1 !== e.setting() && (r = Math.max(r, e.priority()), 0 === e.setting().menu_item_parent && (s = Math.max(s, e.setting().position))) | |
+ }), s += 1, r += 1, delete(e = g.extend({}, v.Menus.data.defaultSettingValues.nav_menu_item, e, { | |
+ nav_menu_term_id: this.params.menu_id, | |
+ original_title: e.title, | |
+ position: s | |
+ })).id, o = v.Menus.generatePlaceholderAutoIncrementId(), t = "nav_menu_item[" + String(o) + "]", n = { | |
type: "nav_menu_item", | |
- transport: a.Menus.data.settingTransport, | |
- previewer: a.previewer | |
- }, g = a.create(e, e, {}, f), g.set(d), h = new a.controlConstructor.nav_menu_item(e, { | |
+ transport: v.Menus.data.settingTransport, | |
+ previewer: v.previewer | |
+ }, (i = v.create(t, t, {}, n)).set(e), a = new v.controlConstructor.nav_menu_item(t, { | |
type: "nav_menu_item", | |
- section: j.id, | |
- priority: l, | |
+ section: this.id, | |
+ priority: r, | |
settings: { | |
- "default": e | |
+ default: t | |
}, | |
- menu_item_id: i | |
- }), a.control.add(h), g.preview(), j.debouncedReflowMenuItems(), b.a11y.speak(a.Menus.data.l10n.itemAdded), h | |
+ menu_item_id: o | |
+ }), v.control.add(a), i.preview(), this.debouncedReflowMenuItems(), h.a11y.speak(v.Menus.data.l10n.itemAdded), a | |
}, | |
- updateInvitationVisibility: function(a) { | |
- var b = a || this.getMenuItemControls(); | |
- this.container.find(".new-menu-item-invitation").toggle(0 === b.length) | |
+ updateInvitationVisibility: function(e) { | |
+ var t = e || this.getMenuItemControls(); | |
+ this.container.find(".new-menu-item-invitation").toggle(0 === t.length) | |
} | |
- }), a.Menus.NewMenuControl = a.Control.extend({ | |
+ }), v.Menus.NewMenuControl = v.Control.extend({ | |
initialize: function() { | |
- "undefined" != typeof console && console.warn && console.warn("[DEPRECATED] wp.customize.NewMenuControl will be removed. Please use wp.customize.Menus.createNavMenu() instead."), a.Control.prototype.initialize.apply(this, arguments) | |
+ "undefined" != typeof console && console.warn && console.warn("[DEPRECATED] wp.customize.NewMenuControl will be removed. Please use wp.customize.Menus.createNavMenu() instead."), v.Control.prototype.initialize.apply(this, arguments) | |
}, | |
ready: function() { | |
this._bindHandlers() | |
}, | |
_bindHandlers: function() { | |
- var a = this, | |
- b = c("#customize-control-new_menu_name input"), | |
- d = c("#create-new-menu-submit"); | |
- b.on("keydown", function(b) { | |
- 13 === b.which && a.submit() | |
- }), d.on("click", function(b) { | |
- a.submit(), b.stopPropagation(), b.preventDefault() | |
+ var t = this, | |
+ e = g("#customize-control-new_menu_name input"), | |
+ n = g("#create-new-menu-submit"); | |
+ e.on("keydown", function(e) { | |
+ 13 === e.which && t.submit() | |
+ }), n.on("click", function(e) { | |
+ t.submit(), e.stopPropagation(), e.preventDefault() | |
}) | |
}, | |
submit: function() { | |
- var c, d = this, | |
- e = d.container.closest(".accordion-section-new-menu"), | |
- f = e.find(".menu-name-field").first(), | |
- g = f.val(); | |
- return g ? (c = a.Menus.createNavMenu(g), f.val(""), f.removeClass("invalid"), b.a11y.speak(a.Menus.data.l10n.menuAdded), void c.focus()) : (f.addClass("invalid"), void f.focus()) | |
+ var e, t = this.container.closest(".accordion-section-new-menu").find(".menu-name-field").first(), | |
+ n = t.val(); | |
+ if (!n) return t.addClass("invalid"), void t.focus(); | |
+ e = v.Menus.createNavMenu(n), t.val(""), t.removeClass("invalid"), h.a11y.speak(v.Menus.data.l10n.menuAdded), e.focus() | |
} | |
- }), c.extend(a.controlConstructor, { | |
- nav_menu_location: a.Menus.MenuLocationControl, | |
- nav_menu_item: a.Menus.MenuItemControl, | |
- nav_menu: a.Menus.MenuControl, | |
- nav_menu_name: a.Menus.MenuNameControl, | |
- new_menu: a.Menus.NewMenuControl, | |
- nav_menu_locations: a.Menus.MenuLocationsControl, | |
- nav_menu_auto_add: a.Menus.MenuAutoAddControl | |
- }), c.extend(a.panelConstructor, { | |
- nav_menus: a.Menus.MenusPanel | |
- }), c.extend(a.sectionConstructor, { | |
- nav_menu: a.Menus.MenuSection, | |
- new_menu: a.Menus.NewMenuSection | |
- }), a.bind("ready", function() { | |
- a.Menus.availableMenuItemsPanel = new a.Menus.AvailableMenuItemsPanelView({ | |
- collection: a.Menus.availableMenuItems | |
- }), a.bind("saved", function(b) { | |
- (b.nav_menu_updates || b.nav_menu_item_updates) && a.Menus.applySavedData(b) | |
- }), a.state("changesetStatus").bind(function(b) { | |
- "publish" === b && (a("nav_menus_created_posts")._value = []) | |
- }), a.previewer.bind("focus-nav-menu-item-control", a.Menus.focusMenuItemControl) | |
- }), a.Menus.applySavedData = function(d) { | |
- var e = {}, | |
- f = {}; | |
- _(d.nav_menu_updates).each(function(d) { | |
- var f, g, h, i, j, k, l, m, n, o, p, q, r; | |
- if ("inserted" === d.status) { | |
- if (!d.previous_term_id) throw new Error("Expected previous_term_id"); | |
- if (!d.term_id) throw new Error("Expected term_id"); | |
- if (f = "nav_menu[" + String(d.previous_term_id) + "]", !a.has(f)) throw new Error("Expected setting to exist: " + f); | |
- if (i = a(f), !a.section.has(f)) throw new Error("Expected control to exist: " + f); | |
- if (m = a.section(f), l = i.get(), !l) throw new Error("Did not expect setting to be empty (deleted)."); | |
- l = c.extend(_.clone(l), d.saved_value), e[d.previous_term_id] = d.term_id, g = "nav_menu[" + String(d.term_id) + "]", j = a.create(g, g, l, { | |
+ }), g.extend(v.controlConstructor, { | |
+ nav_menu_location: v.Menus.MenuLocationControl, | |
+ nav_menu_item: v.Menus.MenuItemControl, | |
+ nav_menu: v.Menus.MenuControl, | |
+ nav_menu_name: v.Menus.MenuNameControl, | |
+ new_menu: v.Menus.NewMenuControl, | |
+ nav_menu_locations: v.Menus.MenuLocationsControl, | |
+ nav_menu_auto_add: v.Menus.MenuAutoAddControl | |
+ }), g.extend(v.panelConstructor, { | |
+ nav_menus: v.Menus.MenusPanel | |
+ }), g.extend(v.sectionConstructor, { | |
+ nav_menu: v.Menus.MenuSection, | |
+ new_menu: v.Menus.NewMenuSection | |
+ }), v.bind("ready", function() { | |
+ v.Menus.availableMenuItemsPanel = new v.Menus.AvailableMenuItemsPanelView({ | |
+ collection: v.Menus.availableMenuItems | |
+ }), v.bind("saved", function(e) { | |
+ (e.nav_menu_updates || e.nav_menu_item_updates) && v.Menus.applySavedData(e) | |
+ }), v.state("changesetStatus").bind(function(e) { | |
+ "publish" === e && (v("nav_menus_created_posts")._value = []) | |
+ }), v.previewer.bind("focus-nav-menu-item-control", v.Menus.focusMenuItemControl) | |
+ }), v.Menus.applySavedData = function(e) { | |
+ var f = {}, | |
+ u = {}; | |
+ _(e.nav_menu_updates).each(function(i) { | |
+ var e, t, n, a, o, s, r, u, d, c, l, m, p; | |
+ if ("inserted" === i.status) { | |
+ if (!i.previous_term_id) throw new Error("Expected previous_term_id"); | |
+ if (!i.term_id) throw new Error("Expected term_id"); | |
+ if (e = "nav_menu[" + String(i.previous_term_id) + "]", !v.has(e)) throw new Error("Expected setting to exist: " + e); | |
+ if (a = v(e), !v.section.has(e)) throw new Error("Expected control to exist: " + e); | |
+ if (u = v.section(e), !(r = a.get())) throw new Error("Did not expect setting to be empty (deleted)."); | |
+ r = g.extend(_.clone(r), i.saved_value), f[i.previous_term_id] = i.term_id, t = "nav_menu[" + String(i.term_id) + "]", o = v.create(t, t, r, { | |
type: "nav_menu", | |
- transport: a.Menus.data.settingTransport, | |
- previewer: a.previewer | |
- }), r = m.expanded(), r && m.collapse(), n = new a.Menus.MenuSection(g, { | |
+ transport: v.Menus.data.settingTransport, | |
+ previewer: v.previewer | |
+ }), (p = u.expanded()) && u.collapse(), d = new v.Menus.MenuSection(t, { | |
panel: "nav_menus", | |
- title: l.name, | |
- customizeAction: a.Menus.data.l10n.customizingMenus, | |
+ title: r.name, | |
+ customizeAction: v.Menus.data.l10n.customizingMenus, | |
type: "nav_menu", | |
- priority: m.priority.get(), | |
- menu_id: d.term_id | |
- }), a.section.add(n), a.control.each(function(b) { | |
- if (b.extended(a.controlConstructor.widget_form) && "nav_menu" === b.params.widget_id_base) { | |
- var c, e, f; | |
- c = b.container.find("select"), e = c.find("option[value=" + String(d.previous_term_id) + "]"), f = c.find("option[value=" + String(d.term_id) + "]"), f.prop("selected", e.prop("selected")), e.remove() | |
- } | |
- }), i.callbacks.disable(), i.set(!1), i.preview(), j.preview(), i._dirty = !1, m.container.remove(), a.section.remove(f), q = 0, a.each(function(a) { | |
- /^nav_menu\[/.test(a.id) && !1 !== a() && (q += 1) | |
- }), p = c("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )"), p.find(".nav-menu-widget-form-controls:first").toggle(0 !== q), p.find(".nav-menu-widget-no-menus-message:first").toggle(0 === q), p.find("option[value=" + String(d.previous_term_id) + "]").remove(), b.customize.control.each(function(a) { | |
- /^nav_menu_locations\[/.test(a.id) && a.container.find("option[value=" + String(d.previous_term_id) + "]").remove() | |
- }), a.each(function(b) { | |
- var c = a.state("saved").get(); | |
- /^nav_menu_locations\[/.test(b.id) && b.get() === d.previous_term_id && (b.set(d.term_id), b._dirty = !1, a.state("saved").set(c), b.preview()) | |
- }), r && n.expand() | |
- } else if ("updated" === d.status) { | |
- if (h = "nav_menu[" + String(d.term_id) + "]", !a.has(h)) throw new Error("Expected setting to exist: " + h); | |
- k = a(h), _.isEqual(d.saved_value, k.get()) || (o = a.state("saved").get(), k.set(d.saved_value), k._dirty = !1, a.state("saved").set(o)) | |
+ priority: u.priority.get(), | |
+ menu_id: i.term_id | |
+ }), v.section.add(d), v.control.each(function(e) { | |
+ var t, n; | |
+ e.extended(v.controlConstructor.widget_form) && "nav_menu" === e.params.widget_id_base && (n = (t = e.container.find("select")).find("option[value=" + String(i.previous_term_id) + "]"), t.find("option[value=" + String(i.term_id) + "]").prop("selected", n.prop("selected")), n.remove()) | |
+ }), a.callbacks.disable(), a.set(!1), a.preview(), o.preview(), a._dirty = !1, u.container.remove(), v.section.remove(e), m = 0, v.each(function(e) { | |
+ /^nav_menu\[/.test(e.id) && !1 !== e() && (m += 1) | |
+ }), (l = g("#available-widgets-list .widget-tpl:has( input.id_base[ value=nav_menu ] )")).find(".nav-menu-widget-form-controls:first").toggle(0 !== m), l.find(".nav-menu-widget-no-menus-message:first").toggle(0 === m), l.find("option[value=" + String(i.previous_term_id) + "]").remove(), h.customize.control.each(function(e) { | |
+ /^nav_menu_locations\[/.test(e.id) && e.container.find("option[value=" + String(i.previous_term_id) + "]").remove() | |
+ }), v.each(function(e) { | |
+ var t = v.state("saved").get(); | |
+ /^nav_menu_locations\[/.test(e.id) && e.get() === i.previous_term_id && (e.set(i.term_id), e._dirty = !1, v.state("saved").set(t), e.preview()) | |
+ }), p && d.expand() | |
+ } else if ("updated" === i.status) { | |
+ if (n = "nav_menu[" + String(i.term_id) + "]", !v.has(n)) throw new Error("Expected setting to exist: " + n); | |
+ s = v(n), _.isEqual(i.saved_value, s.get()) || (c = v.state("saved").get(), s.set(i.saved_value), s._dirty = !1, v.state("saved").set(c)) | |
} | |
- }), _(d.nav_menu_item_updates).each(function(a) { | |
- a.previous_post_id && (f[a.previous_post_id] = a.post_id) | |
- }), _(d.nav_menu_item_updates).each(function(b) { | |
- var c, d, g, h, i, j, k; | |
- if ("inserted" === b.status) { | |
- if (!b.previous_post_id) throw new Error("Expected previous_post_id"); | |
- if (!b.post_id) throw new Error("Expected post_id"); | |
- if (c = "nav_menu_item[" + String(b.previous_post_id) + "]", !a.has(c)) throw new Error("Expected setting to exist: " + c); | |
- if (g = a(c), !a.control.has(c)) throw new Error("Expected control to exist: " + c); | |
- if (j = a.control(c), i = g.get(), !i) throw new Error("Did not expect setting to be empty (deleted)."); | |
- if (i = _.clone(i), i.menu_item_parent < 0) { | |
- if (!f[i.menu_item_parent]) throw new Error("inserted ID for menu_item_parent not available"); | |
- i.menu_item_parent = f[i.menu_item_parent] | |
+ }), _(e.nav_menu_item_updates).each(function(e) { | |
+ e.previous_post_id && (u[e.previous_post_id] = e.post_id) | |
+ }), _(e.nav_menu_item_updates).each(function(e) { | |
+ var t, n, i, a, o, s, r; | |
+ if ("inserted" === e.status) { | |
+ if (!e.previous_post_id) throw new Error("Expected previous_post_id"); | |
+ if (!e.post_id) throw new Error("Expected post_id"); | |
+ if (t = "nav_menu_item[" + String(e.previous_post_id) + "]", !v.has(t)) throw new Error("Expected setting to exist: " + t); | |
+ if (i = v(t), !v.control.has(t)) throw new Error("Expected control to exist: " + t); | |
+ if (s = v.control(t), !(o = i.get())) throw new Error("Did not expect setting to be empty (deleted)."); | |
+ if ((o = _.clone(o)).menu_item_parent < 0) { | |
+ if (!u[o.menu_item_parent]) throw new Error("inserted ID for menu_item_parent not available"); | |
+ o.menu_item_parent = u[o.menu_item_parent] | |
} | |
- e[i.nav_menu_term_id] && (i.nav_menu_term_id = e[i.nav_menu_term_id]), d = "nav_menu_item[" + String(b.post_id) + "]", h = a.create(d, d, i, { | |
+ f[o.nav_menu_term_id] && (o.nav_menu_term_id = f[o.nav_menu_term_id]), n = "nav_menu_item[" + String(e.post_id) + "]", a = v.create(n, n, o, { | |
type: "nav_menu_item", | |
- transport: a.Menus.data.settingTransport, | |
- previewer: a.previewer | |
- }), k = new a.controlConstructor.nav_menu_item(d, { | |
+ transport: v.Menus.data.settingTransport, | |
+ previewer: v.previewer | |
+ }), r = new v.controlConstructor.nav_menu_item(n, { | |
type: "nav_menu_item", | |
- menu_id: b.post_id, | |
- section: "nav_menu[" + String(i.nav_menu_term_id) + "]", | |
- priority: j.priority.get(), | |
+ menu_id: e.post_id, | |
+ section: "nav_menu[" + String(o.nav_menu_term_id) + "]", | |
+ priority: s.priority.get(), | |
settings: { | |
- "default": d | |
+ default: n | |
}, | |
- menu_item_id: b.post_id | |
- }), j.container.remove(), a.control.remove(c), a.control.add(k), g.callbacks.disable(), g.set(!1), g.preview(), h.preview(), g._dirty = !1, k.container.toggleClass("menu-item-edit-inactive", j.container.hasClass("menu-item-edit-inactive")) | |
+ menu_item_id: e.post_id | |
+ }), s.container.remove(), v.control.remove(t), v.control.add(r), i.callbacks.disable(), i.set(!1), i.preview(), a.preview(), i._dirty = !1, r.container.toggleClass("menu-item-edit-inactive", s.container.hasClass("menu-item-edit-inactive")) | |
} | |
- }), _.each(d.widget_nav_menu_updates, function(b, c) { | |
- var d = a(c); | |
- d && (d._value = b, d.preview()) | |
+ }), _.each(e.widget_nav_menu_updates, function(e, t) { | |
+ var n = v(t); | |
+ n && (n._value = e, n.preview()) | |
}) | |
- }, a.Menus.focusMenuItemControl = function(b) { | |
- var c = a.Menus.getMenuItemControl(b); | |
- c && c.focus() | |
- }, a.Menus.getMenuControl = function(b) { | |
- return a.control("nav_menu[" + b + "]") | |
- }, a.Menus.getMenuItemControl = function(b) { | |
- return a.control(d(b)) | |
+ }, v.Menus.focusMenuItemControl = function(e) { | |
+ var t = v.Menus.getMenuItemControl(e); | |
+ t && t.focus() | |
+ }, v.Menus.getMenuControl = function(e) { | |
+ return v.control("nav_menu[" + e + "]") | |
+ }, v.Menus.getMenuItemControl = function(e) { | |
+ return v.control("nav_menu_item[" + e + "]") | |
} | |
}(wp.customize, wp, jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/customize-widgets.min.js build-unminified/wp-admin/js/customize-widgets.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/customize-widgets.min.js 2018-10-05 18:05:58.446169451 -0500 | |
+++ build-unminified/wp-admin/js/customize-widgets.min.js 2018-10-05 18:05:17.945891103 -0500 | |
@@ -1,26 +1,7 @@ | |
-! function(a, b) { | |
- function c(a, b) { | |
- function c(d) { | |
- d || (a.expanded.unbind(c), b.focus()) | |
- } | |
- a.focus(), a.expanded.bind(c) | |
- } | |
- | |
- function d(a) { | |
- var b, c = { | |
- number: null, | |
- id_base: null | |
- }; | |
- return b = a.match(/^(.+)-(\d+)$/), b ? (c.id_base = b[1], c.number = parseInt(b[2], 10)) : c.id_base = a, c | |
- } | |
- | |
- function e(a) { | |
- var b, c = d(a); | |
- return b = "widget_" + c.id_base, c.number && (b += "[" + c.number + "]"), b | |
- } | |
- if (a && a.customize) { | |
- var f, g = a.customize; | |
- g.Widgets = g.Widgets || {}, g.Widgets.savedWidgetIds = {}, g.Widgets.data = _wpCustomizeWidgetsSettings || {}, f = g.Widgets.data.l10n, g.Widgets.WidgetModel = Backbone.Model.extend({ | |
+! function(p, m) { | |
+ if (p && p.customize) { | |
+ var f, v = p.customize; | |
+ v.Widgets = v.Widgets || {}, v.Widgets.savedWidgetIds = {}, v.Widgets.data = _wpCustomizeWidgetsSettings || {}, f = v.Widgets.data.l10n, v.Widgets.WidgetModel = Backbone.Model.extend({ | |
id: null, | |
temp_id: null, | |
classname: null, | |
@@ -36,32 +17,32 @@ | |
width: null, | |
height: null, | |
search_matched: !0 | |
- }), g.Widgets.WidgetCollection = Backbone.Collection.extend({ | |
- model: g.Widgets.WidgetModel, | |
- doSearch: function(a) { | |
- this.terms !== a && (this.terms = a, this.terms.length > 0 && this.search(this.terms), "" === this.terms && this.each(function(a) { | |
- a.set("search_matched", !0) | |
+ }), v.Widgets.WidgetCollection = Backbone.Collection.extend({ | |
+ model: v.Widgets.WidgetModel, | |
+ doSearch: function(e) { | |
+ this.terms !== e && (this.terms = e, 0 < this.terms.length && this.search(this.terms), "" === this.terms && this.each(function(e) { | |
+ e.set("search_matched", !0) | |
})) | |
}, | |
- search: function(a) { | |
- var b, c; | |
- a = a.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), a = a.replace(/ /g, ")(?=.*"), b = new RegExp("^(?=.*" + a + ").+", "i"), this.each(function(a) { | |
- c = [a.get("name"), a.get("id"), a.get("description")].join(" "), a.set("search_matched", b.test(c)) | |
+ search: function(e) { | |
+ var t, i; | |
+ e = (e = e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")).replace(/ /g, ")(?=.*"), t = new RegExp("^(?=.*" + e + ").+", "i"), this.each(function(e) { | |
+ i = [e.get("name"), e.get("id"), e.get("description")].join(" "), e.set("search_matched", t.test(i)) | |
}) | |
} | |
- }), g.Widgets.availableWidgets = new g.Widgets.WidgetCollection(g.Widgets.data.availableWidgets), g.Widgets.SidebarModel = Backbone.Model.extend({ | |
+ }), v.Widgets.availableWidgets = new v.Widgets.WidgetCollection(v.Widgets.data.availableWidgets), v.Widgets.SidebarModel = Backbone.Model.extend({ | |
after_title: null, | |
after_widget: null, | |
before_title: null, | |
before_widget: null, | |
- "class": null, | |
+ class: null, | |
description: null, | |
id: null, | |
name: null, | |
is_rendered: !1 | |
- }), g.Widgets.SidebarCollection = Backbone.Collection.extend({ | |
- model: g.Widgets.SidebarModel | |
- }), g.Widgets.registeredSidebars = new g.Widgets.SidebarCollection(g.Widgets.data.registeredSidebars), g.Widgets.AvailableWidgetsPanelView = a.Backbone.View.extend({ | |
+ }), v.Widgets.SidebarCollection = Backbone.Collection.extend({ | |
+ model: v.Widgets.SidebarModel | |
+ }), v.Widgets.registeredSidebars = new v.Widgets.SidebarCollection(v.Widgets.data.registeredSidebars), v.Widgets.AvailableWidgetsPanelView = p.Backbone.View.extend({ | |
el: "#available-widgets", | |
events: { | |
"input #widgets-search": "search", | |
@@ -77,17 +58,17 @@ | |
$clearResults: null, | |
searchMatchesCount: null, | |
initialize: function() { | |
- var a = this; | |
- this.$search = b("#widgets-search"), this.$clearResults = this.$el.find(".clear-results"), _.bindAll(this, "close"), this.listenTo(this.collection, "change", this.updateList), this.updateList(), this.searchMatchesCount = this.collection.length, b("#customize-controls, #available-widgets .customize-section-title").on("click keydown", function(c) { | |
- var d = b(c.target).is(".add-new-widget, .add-new-widget *"); | |
- b("body").hasClass("adding-widget") && !d && a.close() | |
+ var i = this; | |
+ this.$search = m("#widgets-search"), this.$clearResults = this.$el.find(".clear-results"), _.bindAll(this, "close"), this.listenTo(this.collection, "change", this.updateList), this.updateList(), this.searchMatchesCount = this.collection.length, m("#customize-controls, #available-widgets .customize-section-title").on("click keydown", function(e) { | |
+ var t = m(e.target).is(".add-new-widget, .add-new-widget *"); | |
+ m("body").hasClass("adding-widget") && !t && i.close() | |
}), this.$clearResults.on("click", function() { | |
- a.$search.val("").focus().trigger("keyup") | |
- }), g.previewer.bind("url", this.close) | |
+ i.$search.val("").focus().trigger("keyup") | |
+ }), v.previewer.bind("url", this.close) | |
}, | |
- search: function(a) { | |
- var b; | |
- this.collection.doSearch(a.target.value), this.updateSearchMatchesCount(), this.announceSearchMatches(), this.selected && !this.selected.is(":visible") && (this.selected.removeClass("selected"), this.selected = null), this.selected && !a.target.value && (this.selected.removeClass("selected"), this.selected = null), !this.selected && a.target.value && (b = this.$el.find("> .widget-tpl:visible:first"), b.length && this.select(b)), "" !== a.target.value ? this.$clearResults.addClass("is-visible") : "" === a.target.value && this.$clearResults.removeClass("is-visible"), this.searchMatchesCount ? this.$el.removeClass("no-widgets-found") : this.$el.addClass("no-widgets-found") | |
+ search: function(e) { | |
+ var t; | |
+ this.collection.doSearch(e.target.value), this.updateSearchMatchesCount(), this.announceSearchMatches(), this.selected && !this.selected.is(":visible") && (this.selected.removeClass("selected"), this.selected = null), this.selected && !e.target.value && (this.selected.removeClass("selected"), this.selected = null), !this.selected && e.target.value && (t = this.$el.find("> .widget-tpl:visible:first")).length && this.select(t), "" !== e.target.value ? this.$clearResults.addClass("is-visible") : "" === e.target.value && this.$clearResults.removeClass("is-visible"), this.searchMatchesCount ? this.$el.removeClass("no-widgets-found") : this.$el.addClass("no-widgets-found") | |
}, | |
updateSearchMatchesCount: function() { | |
this.searchMatchesCount = this.collection.where({ | |
@@ -95,320 +76,321 @@ | |
}).length | |
}, | |
announceSearchMatches: _.debounce(function() { | |
- var b = f.widgetsFound.replace("%d", this.searchMatchesCount); | |
- this.searchMatchesCount || (b = f.noWidgetsFound), a.a11y.speak(b) | |
+ var e = f.widgetsFound.replace("%d", this.searchMatchesCount); | |
+ this.searchMatchesCount || (e = f.noWidgetsFound), p.a11y.speak(e) | |
}, 500), | |
updateList: function() { | |
- this.collection.each(function(a) { | |
- var c = b("#widget-tpl-" + a.id); | |
- c.toggle(a.get("search_matched") && !a.get("is_disabled")), a.get("is_disabled") && c.is(this.selected) && (this.selected = null) | |
- }) | |
- }, | |
- select: function(a) { | |
- this.selected = b(a), this.selected.siblings(".widget-tpl").removeClass("selected"), this.selected.addClass("selected") | |
- }, | |
- focus: function(a) { | |
- this.select(b(a.currentTarget)) | |
- }, | |
- _submit: function(a) { | |
- "keypress" === a.type && 13 !== a.which && 32 !== a.which || this.submit(b(a.currentTarget)) | |
- }, | |
- submit: function(a) { | |
- var c, d, e; | |
- a || (a = this.selected), a && this.currentSidebarControl && (this.select(a), c = b(this.selected).data("widget-id"), d = this.collection.findWhere({ | |
- id: c | |
- }), d && (e = this.currentSidebarControl.addWidget(d.get("id_base")), e && e.focus(), this.close())) | |
- }, | |
- open: function(a) { | |
- this.currentSidebarControl = a, _(this.currentSidebarControl.getWidgetFormControls()).each(function(a) { | |
- a.params.is_wide && a.collapseForm() | |
- }), g.section.has("publish_settings") && g.section("publish_settings").collapse(), b("body").addClass("adding-widget"), this.$el.find(".selected").removeClass("selected"), this.collection.doSearch(""), g.settings.browser.mobile || this.$search.focus() | |
- }, | |
- close: function(a) { | |
- a = a || {}, a.returnFocus && this.currentSidebarControl && this.currentSidebarControl.container.find(".add-new-widget").focus(), this.currentSidebarControl = null, this.selected = null, b("body").removeClass("adding-widget"), this.$search.val("") | |
- }, | |
- keyboardAccessible: function(a) { | |
- var c = 13 === a.which, | |
- d = 27 === a.which, | |
- e = 40 === a.which, | |
- f = 38 === a.which, | |
- g = 9 === a.which, | |
- h = a.shiftKey, | |
- i = null, | |
- j = this.$el.find("> .widget-tpl:visible:first"), | |
- k = this.$el.find("> .widget-tpl:visible:last"), | |
- l = b(a.target).is(this.$search), | |
- m = b(a.target).is(".widget-tpl:visible:last"); | |
- return e || f ? (e ? l ? i = j : this.selected && 0 !== this.selected.nextAll(".widget-tpl:visible").length && (i = this.selected.nextAll(".widget-tpl:visible:first")) : f && (l ? i = k : this.selected && 0 !== this.selected.prevAll(".widget-tpl:visible").length && (i = this.selected.prevAll(".widget-tpl:visible:first"))), this.select(i), void(i ? i.focus() : this.$search.focus())) : void(c && !this.$search.val() || (c ? this.submit() : d && this.close({ | |
+ this.collection.each(function(e) { | |
+ var t = m("#widget-tpl-" + e.id); | |
+ t.toggle(e.get("search_matched") && !e.get("is_disabled")), e.get("is_disabled") && t.is(this.selected) && (this.selected = null) | |
+ }) | |
+ }, | |
+ select: function(e) { | |
+ this.selected = m(e), this.selected.siblings(".widget-tpl").removeClass("selected"), this.selected.addClass("selected") | |
+ }, | |
+ focus: function(e) { | |
+ this.select(m(e.currentTarget)) | |
+ }, | |
+ _submit: function(e) { | |
+ "keypress" === e.type && 13 !== e.which && 32 !== e.which || this.submit(m(e.currentTarget)) | |
+ }, | |
+ submit: function(e) { | |
+ var t, i, n; | |
+ e || (e = this.selected), e && this.currentSidebarControl && (this.select(e), t = m(this.selected).data("widget-id"), (i = this.collection.findWhere({ | |
+ id: t | |
+ })) && ((n = this.currentSidebarControl.addWidget(i.get("id_base"))) && n.focus(), this.close())) | |
+ }, | |
+ open: function(e) { | |
+ this.currentSidebarControl = e, _(this.currentSidebarControl.getWidgetFormControls()).each(function(e) { | |
+ e.params.is_wide && e.collapseForm() | |
+ }), v.section.has("publish_settings") && v.section("publish_settings").collapse(), m("body").addClass("adding-widget"), this.$el.find(".selected").removeClass("selected"), this.collection.doSearch(""), v.settings.browser.mobile || this.$search.focus() | |
+ }, | |
+ close: function(e) { | |
+ (e = e || {}).returnFocus && this.currentSidebarControl && this.currentSidebarControl.container.find(".add-new-widget").focus(), this.currentSidebarControl = null, this.selected = null, m("body").removeClass("adding-widget"), this.$search.val("") | |
+ }, | |
+ keyboardAccessible: function(e) { | |
+ var t = 13 === e.which, | |
+ i = 27 === e.which, | |
+ n = 40 === e.which, | |
+ s = 38 === e.which, | |
+ d = 9 === e.which, | |
+ a = e.shiftKey, | |
+ o = null, | |
+ r = this.$el.find("> .widget-tpl:visible:first"), | |
+ l = this.$el.find("> .widget-tpl:visible:last"), | |
+ c = m(e.target).is(this.$search), | |
+ g = m(e.target).is(".widget-tpl:visible:last"); | |
+ if (n || s) return n ? c ? o = r : this.selected && 0 !== this.selected.nextAll(".widget-tpl:visible").length && (o = this.selected.nextAll(".widget-tpl:visible:first")) : s && (c ? o = l : this.selected && 0 !== this.selected.prevAll(".widget-tpl:visible").length && (o = this.selected.prevAll(".widget-tpl:visible:first"))), this.select(o), void(o ? o.focus() : this.$search.focus()); | |
+ t && !this.$search.val() || (t ? this.submit() : i && this.close({ | |
returnFocus: !0 | |
- }), this.currentSidebarControl && g && (h && l || !h && m) && (this.currentSidebarControl.container.find(".add-new-widget").focus(), a.preventDefault()))) | |
+ }), this.currentSidebarControl && d && (a && c || !a && g) && (this.currentSidebarControl.container.find(".add-new-widget").focus(), e.preventDefault())) | |
} | |
- }), g.Widgets.formSyncHandlers = { | |
- rss: function(a, c, d) { | |
- var e = c.find(".widget-error:first"), | |
- f = b("<div>" + d + "</div>").find(".widget-error:first"); | |
- e.length && f.length ? e.replaceWith(f) : e.length ? e.remove() : f.length && c.find(".widget-content:first").prepend(f) | |
+ }), v.Widgets.formSyncHandlers = { | |
+ rss: function(e, t, i) { | |
+ var n = t.find(".widget-error:first"), | |
+ s = m("<div>" + i + "</div>").find(".widget-error:first"); | |
+ n.length && s.length ? n.replaceWith(s) : n.length ? n.remove() : s.length && t.find(".widget-content:first").prepend(s) | |
} | |
- }, g.Widgets.WidgetControl = g.Control.extend({ | |
+ }, v.Widgets.WidgetControl = v.Control.extend({ | |
defaultExpandedArguments: { | |
duration: "fast", | |
- completeCallback: b.noop | |
+ completeCallback: m.noop | |
}, | |
- initialize: function(a, c) { | |
- var d = this; | |
- d.widgetControlEmbedded = !1, d.widgetContentEmbedded = !1, d.expanded = new g.Value(!1), d.expandedArgumentsQueue = [], d.expanded.bind(function(a) { | |
- var c = d.expandedArgumentsQueue.shift(); | |
- c = b.extend({}, d.defaultExpandedArguments, c), d.onChangeExpanded(a, c) | |
- }), d.altNotice = !0, g.Control.prototype.initialize.call(d, a, c) | |
+ initialize: function(e, t) { | |
+ var i = this; | |
+ i.widgetControlEmbedded = !1, i.widgetContentEmbedded = !1, i.expanded = new v.Value(!1), i.expandedArgumentsQueue = [], i.expanded.bind(function(e) { | |
+ var t = i.expandedArgumentsQueue.shift(); | |
+ t = m.extend({}, i.defaultExpandedArguments, t), i.onChangeExpanded(e, t) | |
+ }), i.altNotice = !0, v.Control.prototype.initialize.call(i, e, t) | |
}, | |
ready: function() { | |
- var a = this; | |
- a.section() ? g.section(a.section(), function(b) { | |
- var c = function(d) { | |
- d && (a.embedWidgetControl(), b.expanded.unbind(c)) | |
+ var n = this; | |
+ n.section() ? v.section(n.section(), function(t) { | |
+ var i = function(e) { | |
+ e && (n.embedWidgetControl(), t.expanded.unbind(i)) | |
}; | |
- b.expanded() ? c(!0) : b.expanded.bind(c) | |
- }) : a.embedWidgetControl() | |
+ t.expanded() ? i(!0) : t.expanded.bind(i) | |
+ }) : n.embedWidgetControl() | |
}, | |
embedWidgetControl: function() { | |
- var a, c = this; | |
- c.widgetControlEmbedded || (c.widgetControlEmbedded = !0, a = b(c.params.widget_control), c.container.append(a), c._setupModel(), c._setupWideWidget(), c._setupControlToggle(), c._setupWidgetTitle(), c._setupReorderUI(), c._setupHighlightEffects(), c._setupUpdateUI(), c._setupRemoveUI()) | |
+ var e, t = this; | |
+ t.widgetControlEmbedded || (t.widgetControlEmbedded = !0, e = m(t.params.widget_control), t.container.append(e), t._setupModel(), t._setupWideWidget(), t._setupControlToggle(), t._setupWidgetTitle(), t._setupReorderUI(), t._setupHighlightEffects(), t._setupUpdateUI(), t._setupRemoveUI()) | |
}, | |
embedWidgetContent: function() { | |
- var a, c = this; | |
- c.embedWidgetControl(), c.widgetContentEmbedded || (c.widgetContentEmbedded = !0, c.notifications.container = c.getNotificationsContainerElement(), c.notifications.render(), a = b(c.params.widget_content), c.container.find(".widget-content:first").append(a), b(document).trigger("widget-added", [c.container.find(".widget:first")])) | |
+ var e, t = this; | |
+ t.embedWidgetControl(), t.widgetContentEmbedded || (t.widgetContentEmbedded = !0, t.notifications.container = t.getNotificationsContainerElement(), t.notifications.render(), e = m(t.params.widget_content), t.container.find(".widget-content:first").append(e), m(document).trigger("widget-added", [t.container.find(".widget:first")])) | |
}, | |
_setupModel: function() { | |
- var a, b = this; | |
- a = function() { | |
- g.Widgets.savedWidgetIds[b.params.widget_id] = !0 | |
- }, g.bind("ready", a), g.bind("saved", a), this._updateCount = 0, this.isWidgetUpdating = !1, this.liveUpdateMode = !0, this.setting.bind(function(a, c) { | |
- _(c).isEqual(a) || b.isWidgetUpdating || b.updateWidget({ | |
- instance: a | |
+ var e, i = this; | |
+ e = function() { | |
+ v.Widgets.savedWidgetIds[i.params.widget_id] = !0 | |
+ }, v.bind("ready", e), v.bind("saved", e), this._updateCount = 0, this.isWidgetUpdating = !1, this.liveUpdateMode = !0, this.setting.bind(function(e, t) { | |
+ _(t).isEqual(e) || i.isWidgetUpdating || i.updateWidget({ | |
+ instance: e | |
}) | |
}) | |
}, | |
_setupWideWidget: function() { | |
- var a, c, d, e, f, h = this; | |
- !this.params.is_wide || b(window).width() <= 640 || (a = this.container.find(".widget-inside"), c = a.find("> .form"), d = b(".wp-full-overlay-sidebar-content:first"), this.container.addClass("wide-widget-control"), this.container.find(".form:first").css({ | |
+ var s, d, e, t, i, a = this; | |
+ !this.params.is_wide || m(window).width() <= 640 || (s = this.container.find(".widget-inside"), d = s.find("> .form"), e = m(".wp-full-overlay-sidebar-content:first"), this.container.addClass("wide-widget-control"), this.container.find(".form:first").css({ | |
"max-width": this.params.width, | |
"min-height": this.params.height | |
- }), f = function() { | |
- var d, e = h.container.offset().top, | |
- f = b(window).height(), | |
- g = c.outerHeight(); | |
- a.css("max-height", f), d = Math.max(0, Math.min(Math.max(e, 0), f - g)), a.css("top", d) | |
- }, e = b("#customize-theme-controls"), this.container.on("expand", function() { | |
- f(), d.on("scroll", f), b(window).on("resize", f), e.on("expanded collapsed", f) | |
+ }), i = function() { | |
+ var e, t = a.container.offset().top, | |
+ i = m(window).height(), | |
+ n = d.outerHeight(); | |
+ s.css("max-height", i), e = Math.max(0, Math.min(Math.max(t, 0), i - n)), s.css("top", e) | |
+ }, t = m("#customize-theme-controls"), this.container.on("expand", function() { | |
+ i(), e.on("scroll", i), m(window).on("resize", i), t.on("expanded collapsed", i) | |
}), this.container.on("collapsed", function() { | |
- d.off("scroll", f), b(window).off("resize", f), e.off("expanded collapsed", f) | |
- }), g.each(function(a) { | |
- 0 === a.id.indexOf("sidebars_widgets[") && a.bind(function() { | |
- h.container.hasClass("expanded") && f() | |
+ e.off("scroll", i), m(window).off("resize", i), t.off("expanded collapsed", i) | |
+ }), v.each(function(e) { | |
+ 0 === e.id.indexOf("sidebars_widgets[") && e.bind(function() { | |
+ a.container.hasClass("expanded") && i() | |
}) | |
})) | |
}, | |
_setupControlToggle: function() { | |
- var a, b = this; | |
- this.container.find(".widget-top").on("click", function(a) { | |
- a.preventDefault(); | |
- var c = b.getSidebarWidgetsControl(); | |
- c.isReordering || b.expanded(!b.expanded()) | |
- }), a = this.container.find(".widget-control-close"), a.on("click", function(a) { | |
- a.preventDefault(), b.collapse(), b.container.find(".widget-top .widget-action:first").focus() | |
+ var t = this; | |
+ this.container.find(".widget-top").on("click", function(e) { | |
+ e.preventDefault(), t.getSidebarWidgetsControl().isReordering || t.expanded(!t.expanded()) | |
+ }), this.container.find(".widget-control-close").on("click", function(e) { | |
+ e.preventDefault(), t.collapse(), t.container.find(".widget-top .widget-action:first").focus() | |
}) | |
}, | |
_setupWidgetTitle: function() { | |
- var a, b = this; | |
- a = function() { | |
- var a = b.setting().title, | |
- c = b.container.find(".in-widget-title"); | |
- a ? c.text(": " + a) : c.text("") | |
- }, this.setting.bind(a), a() | |
+ var e, i = this; | |
+ e = function() { | |
+ var e = i.setting().title, | |
+ t = i.container.find(".in-widget-title"); | |
+ e ? t.text(": " + e) : t.text("") | |
+ }, this.setting.bind(e), e() | |
}, | |
_setupReorderUI: function() { | |
- var c, d, e, h, i, j = this; | |
- c = function(a) { | |
- a.siblings(".selected").removeClass("selected"), a.addClass("selected"); | |
- var b = a.data("id") === j.params.sidebar_id; | |
- j.container.find(".move-widget-btn").prop("disabled", b) | |
- }, this.container.find(".widget-title-action").after(b(g.Widgets.data.tpl.widgetReorderNav)), i = _.template(g.Widgets.data.tpl.moveWidgetArea), d = b(i({ | |
- sidebars: _(g.Widgets.registeredSidebars.toArray()).pluck("attributes") | |
- })), this.container.find(".widget-top").after(d), h = function() { | |
- var a, e = d.find("li"), | |
- f = 0; | |
- a = e.filter(function() { | |
- return b(this).data("id") === j.params.sidebar_id | |
+ var d, t, e, i, o = this; | |
+ d = function(e) { | |
+ e.siblings(".selected").removeClass("selected"), e.addClass("selected"); | |
+ var t = e.data("id") === o.params.sidebar_id; | |
+ o.container.find(".move-widget-btn").prop("disabled", t) | |
+ }, this.container.find(".widget-title-action").after(m(v.Widgets.data.tpl.widgetReorderNav)), i = _.template(v.Widgets.data.tpl.moveWidgetArea), t = m(i({ | |
+ sidebars: _(v.Widgets.registeredSidebars.toArray()).pluck("attributes") | |
+ })), this.container.find(".widget-top").after(t), (e = function() { | |
+ var n, e = t.find("li"), | |
+ s = 0; | |
+ n = e.filter(function() { | |
+ return m(this).data("id") === o.params.sidebar_id | |
}), e.each(function() { | |
- var d, e, h, i = b(this); | |
- d = i.data("id"), e = g.Widgets.registeredSidebars.get(d), h = e.get("is_rendered"), i.toggle(h), h && (f += 1), i.hasClass("selected") && !h && c(a) | |
- }), f > 1 ? j.container.find(".move-widget").show() : j.container.find(".move-widget").hide() | |
- }, h(), g.Widgets.registeredSidebars.on("change:is_rendered", h), e = this.container.find(".widget-reorder-nav"), e.find(".move-widget, .move-widget-down, .move-widget-up").each(function() { | |
- b(this).prepend(j.container.find(".widget-title").text() + ": ") | |
- }).on("click keypress", function(c) { | |
- if ("keypress" !== c.type || 13 === c.which || 32 === c.which) | |
- if (b(this).focus(), b(this).is(".move-widget")) j.toggleWidgetMoveArea(); | |
+ var e, t, i = m(this); | |
+ e = i.data("id"), t = v.Widgets.registeredSidebars.get(e).get("is_rendered"), i.toggle(t), t && (s += 1), i.hasClass("selected") && !t && d(n) | |
+ }), 1 < s ? o.container.find(".move-widget").show() : o.container.find(".move-widget").hide() | |
+ })(), v.Widgets.registeredSidebars.on("change:is_rendered", e), this.container.find(".widget-reorder-nav").find(".move-widget, .move-widget-down, .move-widget-up").each(function() { | |
+ m(this).prepend(o.container.find(".widget-title").text() + ": ") | |
+ }).on("click keypress", function(e) { | |
+ if ("keypress" !== e.type || 13 === e.which || 32 === e.which) | |
+ if (m(this).focus(), m(this).is(".move-widget")) o.toggleWidgetMoveArea(); | |
else { | |
- var d = b(this).is(".move-widget-down"), | |
- e = b(this).is(".move-widget-up"), | |
- g = j.getWidgetSidebarPosition(); | |
- if (e && 0 === g || d && g === j.getSidebarWidgetsControl().setting().length - 1) return; | |
- e ? (j.moveUp(), a.a11y.speak(f.widgetMovedUp)) : (j.moveDown(), a.a11y.speak(f.widgetMovedDown)), b(this).focus() | |
+ var t = m(this).is(".move-widget-down"), | |
+ i = m(this).is(".move-widget-up"), | |
+ n = o.getWidgetSidebarPosition(); | |
+ if (i && 0 === n || t && n === o.getSidebarWidgetsControl().setting().length - 1) return; | |
+ i ? (o.moveUp(), p.a11y.speak(f.widgetMovedUp)) : (o.moveDown(), p.a11y.speak(f.widgetMovedDown)), m(this).focus() | |
} | |
- }), this.container.find(".widget-area-select").on("click keypress", "li", function(a) { | |
- "keypress" === a.type && 13 !== a.which && 32 !== a.which || (a.preventDefault(), c(b(this))) | |
+ }), this.container.find(".widget-area-select").on("click keypress", "li", function(e) { | |
+ "keypress" === e.type && 13 !== e.which && 32 !== e.which || (e.preventDefault(), d(m(this))) | |
}), this.container.find(".move-widget-btn").click(function() { | |
- j.getSidebarWidgetsControl().toggleReordering(!1); | |
- var a, b, c, d, e, f = j.params.sidebar_id, | |
- h = j.container.find(".widget-area-select li.selected").data("id"); | |
- a = g("sidebars_widgets[" + f + "]"), b = g("sidebars_widgets[" + h + "]"), c = Array.prototype.slice.call(a()), d = Array.prototype.slice.call(b()), e = j.getWidgetSidebarPosition(), c.splice(e, 1), d.push(j.params.widget_id), a(c), b(d), j.focus() | |
+ o.getSidebarWidgetsControl().toggleReordering(!1); | |
+ var e, t, i, n, s, d = o.params.sidebar_id, | |
+ a = o.container.find(".widget-area-select li.selected").data("id"); | |
+ e = v("sidebars_widgets[" + d + "]"), t = v("sidebars_widgets[" + a + "]"), i = Array.prototype.slice.call(e()), n = Array.prototype.slice.call(t()), s = o.getWidgetSidebarPosition(), i.splice(s, 1), n.push(o.params.widget_id), e(i), t(n), o.focus() | |
}) | |
}, | |
_setupHighlightEffects: function() { | |
- var a = this; | |
+ var e = this; | |
this.container.on("mouseenter click", function() { | |
- a.setting.previewer.send("highlight-widget", a.params.widget_id) | |
+ e.setting.previewer.send("highlight-widget", e.params.widget_id) | |
}), this.setting.bind(function() { | |
- a.setting.previewer.send("highlight-widget", a.params.widget_id) | |
+ e.setting.previewer.send("highlight-widget", e.params.widget_id) | |
}) | |
}, | |
_setupUpdateUI: function() { | |
- var a, c, d, e, h, i = this; | |
- a = this.container.find(".widget:first"), c = a.find(".widget-content:first"), d = this.container.find(".widget-control-save"), d.val(f.saveBtnLabel), d.attr("title", f.saveBtnTooltip), d.removeClass("button-primary"), d.on("click", function(a) { | |
- a.preventDefault(), i.updateWidget({ | |
+ var i, e, t, n, s, d = this; | |
+ e = (i = this.container.find(".widget:first")).find(".widget-content:first"), (t = this.container.find(".widget-control-save")).val(f.saveBtnLabel), t.attr("title", f.saveBtnTooltip), t.removeClass("button-primary"), t.on("click", function(e) { | |
+ e.preventDefault(), d.updateWidget({ | |
disable_form: !0 | |
}) | |
- }), e = _.debounce(function() { | |
- i.updateWidget() | |
- }, 250), c.on("keydown", "input", function(a) { | |
- 13 === a.which && (a.preventDefault(), i.updateWidget({ | |
+ }), n = _.debounce(function() { | |
+ d.updateWidget() | |
+ }, 250), e.on("keydown", "input", function(e) { | |
+ 13 === e.which && (e.preventDefault(), d.updateWidget({ | |
ignoreActiveElement: !0 | |
})) | |
- }), c.on("change input propertychange", ":input", function(a) { | |
- i.liveUpdateMode && ("change" === a.type || this.checkValidity && this.checkValidity()) && e() | |
+ }), e.on("change input propertychange", ":input", function(e) { | |
+ d.liveUpdateMode && ("change" === e.type || this.checkValidity && this.checkValidity()) && n() | |
}), this.setting.previewer.channel.bind("synced", function() { | |
- i.container.removeClass("previewer-loading") | |
- }), g.previewer.bind("widget-updated", function(a) { | |
- a === i.params.widget_id && i.container.removeClass("previewer-loading") | |
- }), h = g.Widgets.formSyncHandlers[this.params.widget_id_base], h && b(document).on("widget-synced", function(b, c) { | |
- a.is(c) && h.apply(document, arguments) | |
+ d.container.removeClass("previewer-loading") | |
+ }), v.previewer.bind("widget-updated", function(e) { | |
+ e === d.params.widget_id && d.container.removeClass("previewer-loading") | |
+ }), (s = v.Widgets.formSyncHandlers[this.params.widget_id_base]) && m(document).on("widget-synced", function(e, t) { | |
+ i.is(t) && s.apply(document, arguments) | |
}) | |
}, | |
- onChangeActive: function(a, b) { | |
- this.container.toggleClass("widget-rendered", a), b.completeCallback && b.completeCallback() | |
+ onChangeActive: function(e, t) { | |
+ this.container.toggleClass("widget-rendered", e), t.completeCallback && t.completeCallback() | |
}, | |
_setupRemoveUI: function() { | |
- var a, b, c = this; | |
- a = this.container.find(".widget-control-remove"), a.on("click", function(a) { | |
- a.preventDefault(); | |
- var b; | |
- b = c.container.next().is(".customize-control-widget_form") ? c.container.next().find(".widget-action:first") : c.container.prev().is(".customize-control-widget_form") ? c.container.prev().find(".widget-action:first") : c.container.next(".customize-control-sidebar_widgets").find(".add-new-widget:first"), c.container.slideUp(function() { | |
- var a, d, e = g.Widgets.getSidebarWidgetControlContainingWidget(c.params.widget_id); | |
- e && (a = e.setting().slice(), d = _.indexOf(a, c.params.widget_id), -1 !== d && (a.splice(d, 1), e.setting(a), b.focus())) | |
+ var e, t, s = this; | |
+ (e = this.container.find(".widget-control-remove")).on("click", function(e) { | |
+ var n; | |
+ e.preventDefault(), n = s.container.next().is(".customize-control-widget_form") ? s.container.next().find(".widget-action:first") : s.container.prev().is(".customize-control-widget_form") ? s.container.prev().find(".widget-action:first") : s.container.next(".customize-control-sidebar_widgets").find(".add-new-widget:first"), s.container.slideUp(function() { | |
+ var e, t, i = v.Widgets.getSidebarWidgetControlContainingWidget(s.params.widget_id); | |
+ i && (e = i.setting().slice(), -1 !== (t = _.indexOf(e, s.params.widget_id)) && (e.splice(t, 1), i.setting(e), n.focus())) | |
}) | |
- }), b = function() { | |
- a.text(f.removeBtnLabel), a.attr("title", f.removeBtnTooltip) | |
- }, this.params.is_new ? g.bind("saved", b) : b() | |
- }, | |
- _getInputs: function(a) { | |
- return b(a).find(":input[name]") | |
- }, | |
- _getInputsSignature: function(a) { | |
- var c = _(a).map(function(a) { | |
- var c, d = b(a); | |
- return c = d.is(":checkbox, :radio") ? [d.attr("id"), d.attr("name"), d.prop("value")] : [d.attr("id"), d.attr("name")], c.join(",") | |
- }); | |
- return c.join(";") | |
- }, | |
- _getInputState: function(a) { | |
- return a = b(a), a.is(":radio, :checkbox") ? a.prop("checked") : a.is("select[multiple]") ? a.find("option:selected").map(function() { | |
- return b(this).val() | |
- }).get() : a.val() | |
- }, | |
- _setInputState: function(a, c) { | |
- a = b(a), a.is(":radio, :checkbox") ? a.prop("checked", c) : a.is("select[multiple]") ? (c = b.isArray(c) ? _.map(c, function(a) { | |
- return String(a) | |
- }) : [], a.find("option").each(function() { | |
- b(this).prop("selected", -1 !== _.indexOf(c, String(this.value))) | |
- })) : a.val(c) | |
+ }), t = function() { | |
+ e.text(f.removeBtnLabel), e.attr("title", f.removeBtnTooltip) | |
+ }, this.params.is_new ? v.bind("saved", t) : t() | |
+ }, | |
+ _getInputs: function(e) { | |
+ return m(e).find(":input[name]") | |
+ }, | |
+ _getInputsSignature: function(e) { | |
+ return _(e).map(function(e) { | |
+ var t = m(e); | |
+ return (t.is(":checkbox, :radio") ? [t.attr("id"), t.attr("name"), t.prop("value")] : [t.attr("id"), t.attr("name")]).join(",") | |
+ }).join(";") | |
+ }, | |
+ _getInputState: function(e) { | |
+ return (e = m(e)).is(":radio, :checkbox") ? e.prop("checked") : e.is("select[multiple]") ? e.find("option:selected").map(function() { | |
+ return m(this).val() | |
+ }).get() : e.val() | |
+ }, | |
+ _setInputState: function(e, t) { | |
+ (e = m(e)).is(":radio, :checkbox") ? e.prop("checked", t) : e.is("select[multiple]") ? (t = m.isArray(t) ? _.map(t, function(e) { | |
+ return String(e) | |
+ }) : [], e.find("option").each(function() { | |
+ m(this).prop("selected", -1 !== _.indexOf(t, String(this.value))) | |
+ })) : e.val(t) | |
}, | |
getSidebarWidgetsControl: function() { | |
- var a, b; | |
- if (a = "sidebars_widgets[" + this.params.sidebar_id + "]", b = g.control(a)) return b | |
+ var e, t; | |
+ if (e = "sidebars_widgets[" + this.params.sidebar_id + "]", t = v.control(e)) return t | |
}, | |
- updateWidget: function(c) { | |
- var d, e, h, i, j, k, l, m, n, o, p, q = this; | |
- q.embedWidgetContent(), c = b.extend({ | |
+ updateWidget: function(a) { | |
+ var e, o, r, l, c, t, i, g, n, s, u, h = this; | |
+ h.embedWidgetContent(), e = (a = m.extend({ | |
instance: null, | |
complete: null, | |
ignoreActiveElement: !1 | |
- }, c), d = c.instance, e = c.complete, this._updateCount += 1, j = this._updateCount, h = this.container.find(".widget:first"), i = h.find(".widget-content:first"), i.find(".widget-error").remove(), this.container.addClass("widget-form-loading"), this.container.addClass("previewer-loading"), n = g.state("processing"), n(n() + 1), this.liveUpdateMode || this.container.addClass("widget-form-disabled"), k = {}, k.action = "update-widget", k.wp_customize = "on", k.nonce = g.settings.nonce["update-widget"], k.customize_theme = g.settings.theme.stylesheet, k.customized = a.customize.previewer.query().customized, l = b.param(k), m = this._getInputs(i), m.each(function() { | |
- b(this).data("state" + j, q._getInputState(this)) | |
- }), l += d ? "&" + b.param({ | |
- sanitized_widget_setting: JSON.stringify(d) | |
- }) : "&" + m.serialize(), l += "&" + i.find("~ :input").serialize(), this._previousUpdateRequest && this._previousUpdateRequest.abort(), o = b.post(a.ajax.settings.url, l), this._previousUpdateRequest = o, o.done(function(a) { | |
- var d, k, l, n, o = !1; | |
- return "0" === a ? (g.previewer.preview.iframe.hide(), void g.previewer.login().done(function() { | |
- q.updateWidget(c), g.previewer.preview.iframe.show() | |
- })) : "-1" === a ? void g.previewer.cheatin() : void(a.success ? (k = b("<div>" + a.data.form + "</div>"), l = q._getInputs(k), n = q._getInputsSignature(m) === q._getInputsSignature(l), n && !q.liveUpdateMode && (q.liveUpdateMode = !0, q.container.removeClass("widget-form-disabled"), q.container.find('input[name="savewidget"]').hide()), n && q.liveUpdateMode ? (m.each(function(a) { | |
- var d, e, f, g = b(this), | |
- h = b(l[a]); | |
- d = g.data("state" + j), e = q._getInputState(h), g.data("sanitized", e), f = !_.isEqual(d, e) && (c.ignoreActiveElement || !g.is(document.activeElement)), f && q._setInputState(g, e) | |
- }), b(document).trigger("widget-synced", [h, a.data.form])) : q.liveUpdateMode ? (q.liveUpdateMode = !1, q.container.find('input[name="savewidget"]').show(), o = !0) : (i.html(a.data.form), q.container.removeClass("widget-form-disabled"), b(document).trigger("widget-updated", [h])), p = !o && !_(q.setting()).isEqual(a.data.instance), p ? (q.isWidgetUpdating = !0, q.setting(a.data.instance), q.isWidgetUpdating = !1) : q.container.removeClass("previewer-loading"), e && e.call(q, null, { | |
- noChange: !p, | |
+ }, a)).instance, o = a.complete, this._updateCount += 1, c = this._updateCount, r = this.container.find(".widget:first"), (l = r.find(".widget-content:first")).find(".widget-error").remove(), this.container.addClass("widget-form-loading"), this.container.addClass("previewer-loading"), (n = v.state("processing"))(n() + 1), this.liveUpdateMode || this.container.addClass("widget-form-disabled"), (t = { | |
+ action: "update-widget", | |
+ wp_customize: "on" | |
+ }).nonce = v.settings.nonce["update-widget"], t.customize_theme = v.settings.theme.stylesheet, t.customized = p.customize.previewer.query().customized, i = m.param(t), (g = this._getInputs(l)).each(function() { | |
+ m(this).data("state" + c, h._getInputState(this)) | |
+ }), i += e ? "&" + m.param({ | |
+ sanitized_widget_setting: JSON.stringify(e) | |
+ }) : "&" + g.serialize(), i += "&" + l.find("~ :input").serialize(), this._previousUpdateRequest && this._previousUpdateRequest.abort(), s = m.post(p.ajax.settings.url, i), (this._previousUpdateRequest = s).done(function(e) { | |
+ var t, i, d, n, s = !1; | |
+ if ("0" === e) return v.previewer.preview.iframe.hide(), void v.previewer.login().done(function() { | |
+ h.updateWidget(a), v.previewer.preview.iframe.show() | |
+ }); | |
+ "-1" !== e ? e.success ? (i = m("<div>" + e.data.form + "</div>"), d = h._getInputs(i), (n = h._getInputsSignature(g) === h._getInputsSignature(d)) && !h.liveUpdateMode && (h.liveUpdateMode = !0, h.container.removeClass("widget-form-disabled"), h.container.find('input[name="savewidget"]').hide()), n && h.liveUpdateMode ? (g.each(function(e) { | |
+ var t, i, n = m(this), | |
+ s = m(d[e]); | |
+ t = n.data("state" + c), i = h._getInputState(s), n.data("sanitized", i), !_.isEqual(t, i) && (a.ignoreActiveElement || !n.is(document.activeElement)) && h._setInputState(n, i) | |
+ }), m(document).trigger("widget-synced", [r, e.data.form])) : h.liveUpdateMode ? (h.liveUpdateMode = !1, h.container.find('input[name="savewidget"]').show(), s = !0) : (l.html(e.data.form), h.container.removeClass("widget-form-disabled"), m(document).trigger("widget-updated", [r])), (u = !s && !_(h.setting()).isEqual(e.data.instance)) ? (h.isWidgetUpdating = !0, h.setting(e.data.instance), h.isWidgetUpdating = !1) : h.container.removeClass("previewer-loading"), o && o.call(h, null, { | |
+ noChange: !u, | |
ajaxFinished: !0 | |
- })) : (d = f.error, a.data && a.data.message && (d = a.data.message), e ? e.call(q, d) : i.prepend('<p class="widget-error"><strong>' + d + "</strong></p>"))) | |
- }), o.fail(function(a, b) { | |
- e && e.call(q, b) | |
- }), o.always(function() { | |
- q.container.removeClass("widget-form-loading"), m.each(function() { | |
- b(this).removeData("state" + j) | |
+ })) : (t = f.error, e.data && e.data.message && (t = e.data.message), o ? o.call(h, t) : l.prepend('<p class="widget-error"><strong>' + t + "</strong></p>")) : v.previewer.cheatin() | |
+ }), s.fail(function(e, t) { | |
+ o && o.call(h, t) | |
+ }), s.always(function() { | |
+ h.container.removeClass("widget-form-loading"), g.each(function() { | |
+ m(this).removeData("state" + c) | |
}), n(n() - 1) | |
}) | |
}, | |
expandControlSection: function() { | |
- g.Control.prototype.expand.call(this) | |
+ v.Control.prototype.expand.call(this) | |
}, | |
- _toggleExpanded: g.Section.prototype._toggleExpanded, | |
- expand: g.Section.prototype.expand, | |
+ _toggleExpanded: v.Section.prototype._toggleExpanded, | |
+ expand: v.Section.prototype.expand, | |
expandForm: function() { | |
this.expand() | |
}, | |
- collapse: g.Section.prototype.collapse, | |
+ collapse: v.Section.prototype.collapse, | |
collapseForm: function() { | |
this.collapse() | |
}, | |
- toggleForm: function(a) { | |
- "undefined" == typeof a && (a = !this.expanded()), this.expanded(a) | |
+ toggleForm: function(e) { | |
+ void 0 === e && (e = !this.expanded()), this.expanded(e) | |
}, | |
- onChangeExpanded: function(a, b) { | |
- var c, d, e, f, h, i, j = this; | |
- return j.embedWidgetControl(), a && j.embedWidgetContent(), b.unchanged ? void(a && g.Control.prototype.expand.call(j, { | |
- completeCallback: b.completeCallback | |
- })) : (c = this.container.find("div.widget:first"), d = c.find(".widget-inside:first"), i = this.container.find(".widget-top button.widget-action"), h = function() { | |
- g.control.each(function(a) { | |
- j.params.type === a.params.type && j !== a && a.collapse() | |
- }), e = function() { | |
- j.container.removeClass("expanding"), j.container.addClass("expanded"), c.addClass("open"), i.attr("aria-expanded", "true"), j.container.trigger("expanded") | |
- }, b.completeCallback && (f = e, e = function() { | |
- f(), b.completeCallback() | |
- }), j.params.is_wide ? d.fadeIn(b.duration, e) : d.slideDown(b.duration, e), j.container.trigger("expand"), j.container.addClass("expanding") | |
- }, void(a ? g.section.has(j.section()) ? g.section(j.section()).expand({ | |
- completeCallback: h | |
- }) : h() : (e = function() { | |
- j.container.removeClass("collapsing"), j.container.removeClass("expanded"), c.removeClass("open"), i.attr("aria-expanded", "false"), j.container.trigger("collapsed") | |
- }, b.completeCallback && (f = e, e = function() { | |
- f(), b.completeCallback() | |
- }), j.container.trigger("collapse"), j.container.addClass("collapsing"), j.params.is_wide ? d.fadeOut(b.duration, e) : d.slideUp(b.duration, function() { | |
- c.css({ | |
+ onChangeExpanded: function(e, t) { | |
+ var i, n, s, d, a, o, r = this; | |
+ r.embedWidgetControl(), e && r.embedWidgetContent(), t.unchanged ? e && v.Control.prototype.expand.call(r, { | |
+ completeCallback: t.completeCallback | |
+ }) : (i = this.container.find("div.widget:first"), n = i.find(".widget-inside:first"), o = this.container.find(".widget-top button.widget-action"), a = function() { | |
+ v.control.each(function(e) { | |
+ r.params.type === e.params.type && r !== e && e.collapse() | |
+ }), s = function() { | |
+ r.container.removeClass("expanding"), r.container.addClass("expanded"), i.addClass("open"), o.attr("aria-expanded", "true"), r.container.trigger("expanded") | |
+ }, t.completeCallback && (d = s, s = function() { | |
+ d(), t.completeCallback() | |
+ }), r.params.is_wide ? n.fadeIn(t.duration, s) : n.slideDown(t.duration, s), r.container.trigger("expand"), r.container.addClass("expanding") | |
+ }, e ? v.section.has(r.section()) ? v.section(r.section()).expand({ | |
+ completeCallback: a | |
+ }) : a() : (s = function() { | |
+ r.container.removeClass("collapsing"), r.container.removeClass("expanded"), i.removeClass("open"), o.attr("aria-expanded", "false"), r.container.trigger("collapsed") | |
+ }, t.completeCallback && (d = s, s = function() { | |
+ d(), t.completeCallback() | |
+ }), r.container.trigger("collapse"), r.container.addClass("collapsing"), r.params.is_wide ? n.fadeOut(t.duration, s) : n.slideUp(t.duration, function() { | |
+ i.css({ | |
width: "", | |
margin: "" | |
- }), e() | |
- })))) | |
+ }), s() | |
+ }))) | |
}, | |
getWidgetSidebarPosition: function() { | |
- var a, b; | |
- if (a = this.getSidebarWidgetsControl().setting(), b = _.indexOf(a, this.params.widget_id), b !== -1) return b | |
+ var e, t; | |
+ if (e = this.getSidebarWidgetsControl().setting(), -1 !== (t = _.indexOf(e, this.params.widget_id))) return t | |
}, | |
moveUp: function() { | |
this._moveWidgetByOne(-1) | |
@@ -416,103 +398,99 @@ | |
moveDown: function() { | |
this._moveWidgetByOne(1) | |
}, | |
- _moveWidgetByOne: function(a) { | |
- var b, c, d, e; | |
- b = this.getWidgetSidebarPosition(), c = this.getSidebarWidgetsControl().setting, d = Array.prototype.slice.call(c()), e = d[b + a], d[b + a] = this.params.widget_id, d[b] = e, c(d) | |
- }, | |
- toggleWidgetMoveArea: function(a) { | |
- var c, d = this; | |
- c = this.container.find(".move-widget-area"), "undefined" == typeof a && (a = !c.hasClass("active")), a && (c.find(".selected").removeClass("selected"), c.find("li").filter(function() { | |
- return b(this).data("id") === d.params.sidebar_id | |
- }).addClass("selected"), this.container.find(".move-widget-btn").prop("disabled", !0)), c.toggleClass("active", a) | |
+ _moveWidgetByOne: function(e) { | |
+ var t, i, n, s; | |
+ t = this.getWidgetSidebarPosition(), i = this.getSidebarWidgetsControl().setting, s = (n = Array.prototype.slice.call(i()))[t + e], n[t + e] = this.params.widget_id, n[t] = s, i(n) | |
+ }, | |
+ toggleWidgetMoveArea: function(e) { | |
+ var t, i = this; | |
+ t = this.container.find(".move-widget-area"), void 0 === e && (e = !t.hasClass("active")), e && (t.find(".selected").removeClass("selected"), t.find("li").filter(function() { | |
+ return m(this).data("id") === i.params.sidebar_id | |
+ }).addClass("selected"), this.container.find(".move-widget-btn").prop("disabled", !0)), t.toggleClass("active", e) | |
}, | |
highlightSectionAndControl: function() { | |
- var a; | |
- a = this.container.is(":hidden") ? this.container.closest(".control-section") : this.container, b(".highlighted").removeClass("highlighted"), a.addClass("highlighted"), setTimeout(function() { | |
- a.removeClass("highlighted") | |
+ var e; | |
+ e = this.container.is(":hidden") ? this.container.closest(".control-section") : this.container, m(".highlighted").removeClass("highlighted"), e.addClass("highlighted"), setTimeout(function() { | |
+ e.removeClass("highlighted") | |
}, 500) | |
} | |
- }), g.Widgets.WidgetsPanel = g.Panel.extend({ | |
+ }), v.Widgets.WidgetsPanel = v.Panel.extend({ | |
ready: function() { | |
- var a = this; | |
- g.Panel.prototype.ready.call(a), a.deferred.embedded.done(function() { | |
- var c, d, e, h, i; | |
- c = a.container.find(".panel-meta"), d = b("<div></div>", { | |
- "class": "no-widget-areas-rendered-notice" | |
- }), c.append(d), h = function() { | |
- return _.filter(a.sections(), function(a) { | |
- return a.active() | |
+ var n = this; | |
+ v.Panel.prototype.ready.call(n), n.deferred.embedded.done(function() { | |
+ var e, s, t, d, i; | |
+ e = n.container.find(".panel-meta"), s = m("<div></div>", { | |
+ class: "no-widget-areas-rendered-notice" | |
+ }), e.append(s), d = function() { | |
+ return _.filter(n.sections(), function(e) { | |
+ return e.active() | |
}).length | |
}, i = function() { | |
- var a = h(); | |
- return 0 === a || a !== g.Widgets.data.registeredSidebars.length | |
- }, e = function() { | |
- var a, c, e, i = h(); | |
- d.empty(), e = g.Widgets.data.registeredSidebars.length, i !== e && (0 !== i ? (c = e - i, a = f.someAreasShown[c]) : a = f.noAreasShown, a && d.append(b("<p></p>", { | |
- text: a | |
- })), d.append(b("<p></p>", { | |
+ var e = d(); | |
+ return 0 === e || e !== v.Widgets.data.registeredSidebars.length | |
+ }, (t = function() { | |
+ var e, t, i, n = d(); | |
+ s.empty(), n !== (i = v.Widgets.data.registeredSidebars.length) && ((e = 0 !== n ? (t = i - n, f.someAreasShown[t]) : f.noAreasShown) && s.append(m("<p></p>", { | |
+ text: e | |
+ })), s.append(m("<p></p>", { | |
text: f.navigatePreview | |
}))) | |
- }, e(), d.toggle(i()), g.previewer.deferred.active.done(function() { | |
- d.toggle(i()) | |
- }), g.bind("pane-contents-reflowed", function() { | |
- var a = "resolved" === g.previewer.deferred.active.state() ? "fast" : 0; | |
- e(), i() ? d.slideDown(a) : d.slideUp(a) | |
+ })(), s.toggle(i()), v.previewer.deferred.active.done(function() { | |
+ s.toggle(i()) | |
+ }), v.bind("pane-contents-reflowed", function() { | |
+ var e = "resolved" === v.previewer.deferred.active.state() ? "fast" : 0; | |
+ t(), i() ? s.slideDown(e) : s.slideUp(e) | |
}) | |
}) | |
}, | |
isContextuallyActive: function() { | |
- var a = this; | |
- return a.active() | |
+ return this.active() | |
} | |
- }), g.Widgets.SidebarSection = g.Section.extend({ | |
+ }), v.Widgets.SidebarSection = v.Section.extend({ | |
ready: function() { | |
- var a, b = this; | |
- g.Section.prototype.ready.call(this), a = g.Widgets.registeredSidebars.get(b.params.sidebarId), b.active.bind(function(b) { | |
- a.set("is_rendered", b) | |
- }), a.set("is_rendered", b.active()) | |
+ var t; | |
+ v.Section.prototype.ready.call(this), t = v.Widgets.registeredSidebars.get(this.params.sidebarId), this.active.bind(function(e) { | |
+ t.set("is_rendered", e) | |
+ }), t.set("is_rendered", this.active()) | |
} | |
- }), g.Widgets.SidebarControl = g.Control.extend({ | |
+ }), v.Widgets.SidebarControl = v.Control.extend({ | |
ready: function() { | |
this.$controlSection = this.container.closest(".control-section"), this.$sectionContent = this.container.closest(".accordion-section-content"), this._setupModel(), this._setupSortable(), this._setupAddition(), this._applyCardinalOrderClassNames() | |
}, | |
_setupModel: function() { | |
- var a = this; | |
- this.setting.bind(function(c, e) { | |
- var f, h, i; | |
- h = _(e).difference(c), c = _(c).filter(function(a) { | |
- var b = d(a); | |
- return !!g.Widgets.availableWidgets.findWhere({ | |
- id_base: b.id_base | |
+ var o = this; | |
+ this.setting.bind(function(i, e) { | |
+ var t, n, s; | |
+ n = _(e).difference(i), i = _(i).filter(function(e) { | |
+ var t = w(e); | |
+ return !!v.Widgets.availableWidgets.findWhere({ | |
+ id_base: t.id_base | |
}) | |
- }), f = _(c).map(function(b) { | |
- var c = g.Widgets.getWidgetFormControlForWidget(b); | |
- return c || (c = a.addWidget(b)), c | |
- }), f.sort(function(a, b) { | |
- var d = _.indexOf(c, a.params.widget_id), | |
- e = _.indexOf(c, b.params.widget_id); | |
- return d - e | |
- }), i = 0, _(f).each(function(b) { | |
- b.priority(i), b.section(a.section()), i += 1 | |
- }), a.priority(i), a._applyCardinalOrderClassNames(), _(f).each(function(b) { | |
- b.params.sidebar_id = a.params.sidebar_id | |
- }), _(h).each(function(c) { | |
+ }), (t = _(i).map(function(e) { | |
+ var t = v.Widgets.getWidgetFormControlForWidget(e); | |
+ return t || (t = o.addWidget(e)), t | |
+ })).sort(function(e, t) { | |
+ return _.indexOf(i, e.params.widget_id) - _.indexOf(i, t.params.widget_id) | |
+ }), s = 0, _(t).each(function(e) { | |
+ e.priority(s), e.section(o.section()), s += 1 | |
+ }), o.priority(s), o._applyCardinalOrderClassNames(), _(t).each(function(e) { | |
+ e.params.sidebar_id = o.params.sidebar_id | |
+ }), _(n).each(function(a) { | |
setTimeout(function() { | |
- var e, f, h, i, j, k = !1; | |
- g.each(function(b) { | |
- if (b.id !== a.setting.id && 0 === b.id.indexOf("sidebars_widgets[") && "sidebars_widgets[wp_inactive_widgets]" !== b.id) { | |
- var d, e = b(); | |
- d = _.indexOf(e, c), -1 !== d && (k = !0) | |
+ var e, t, i, n, s, d = !1; | |
+ v.each(function(e) { | |
+ if (e.id !== o.setting.id && 0 === e.id.indexOf("sidebars_widgets[") && "sidebars_widgets[wp_inactive_widgets]" !== e.id) { | |
+ var t = e(); - 1 !== _.indexOf(t, a) && (d = !0) | |
} | |
- }), k || (e = g.Widgets.getWidgetFormControlForWidget(c), f = e && b.contains(document, e.container[0]) && !b.contains(a.$sectionContent[0], e.container[0]), e && !f && (g.control.remove(e.id), e.container.remove()), g.Widgets.savedWidgetIds[c] && (h = g.value("sidebars_widgets[wp_inactive_widgets]")().slice(), h.push(c), g.value("sidebars_widgets[wp_inactive_widgets]")(_(h).unique())), i = d(c).id_base, j = g.Widgets.availableWidgets.findWhere({ | |
- id_base: i | |
- }), j && !j.get("is_multi") && j.set("is_disabled", !1)) | |
+ }), d || (t = (e = v.Widgets.getWidgetFormControlForWidget(a)) && m.contains(document, e.container[0]) && !m.contains(o.$sectionContent[0], e.container[0]), e && !t && (v.control.remove(e.id), e.container.remove()), v.Widgets.savedWidgetIds[a] && ((i = v.value("sidebars_widgets[wp_inactive_widgets]")().slice()).push(a), v.value("sidebars_widgets[wp_inactive_widgets]")(_(i).unique())), n = w(a).id_base, (s = v.Widgets.availableWidgets.findWhere({ | |
+ id_base: n | |
+ })) && !s.get("is_multi") && s.set("is_disabled", !1)) | |
}) | |
}) | |
}) | |
}, | |
_setupSortable: function() { | |
- var a = this; | |
+ var i = this; | |
this.isReordering = !1, this.$sectionContent.sortable({ | |
items: "> .customize-control-widget_form", | |
handle: ".widget-top", | |
@@ -520,136 +498,149 @@ | |
tolerance: "pointer", | |
connectWith: ".accordion-section-content:has(.customize-control-sidebar_widgets)", | |
update: function() { | |
- var c, d = a.$sectionContent.sortable("toArray"); | |
- c = b.map(d, function(a) { | |
- return b("#" + a).find(":input[name=widget-id]").val() | |
- }), a.setting(c) | |
+ var e, t = i.$sectionContent.sortable("toArray"); | |
+ e = m.map(t, function(e) { | |
+ return m("#" + e).find(":input[name=widget-id]").val() | |
+ }), i.setting(e) | |
} | |
}), this.$controlSection.find(".accordion-section-title").droppable({ | |
accept: ".customize-control-widget_form", | |
over: function() { | |
- var b = g.section(a.section.get()); | |
- b.expand({ | |
+ v.section(i.section.get()).expand({ | |
allowMultiple: !0, | |
completeCallback: function() { | |
- g.section.each(function(a) { | |
- a.container.find(".customize-control-sidebar_widgets").length && a.container.find(".accordion-section-content:first").sortable("refreshPositions") | |
+ v.section.each(function(e) { | |
+ e.container.find(".customize-control-sidebar_widgets").length && e.container.find(".accordion-section-content:first").sortable("refreshPositions") | |
}) | |
} | |
}) | |
} | |
}), this.container.find(".reorder-toggle").on("click", function() { | |
- a.toggleReordering(!a.isReordering) | |
+ i.toggleReordering(!i.isReordering) | |
}) | |
}, | |
_setupAddition: function() { | |
- var a = this; | |
+ var t = this; | |
this.container.find(".add-new-widget").on("click", function() { | |
- var c = b(this); | |
- a.$sectionContent.hasClass("reordering") || (b("body").hasClass("adding-widget") ? (c.attr("aria-expanded", "false"), g.Widgets.availableWidgetsPanel.close()) : (c.attr("aria-expanded", "true"), g.Widgets.availableWidgetsPanel.open(a))) | |
+ var e = m(this); | |
+ t.$sectionContent.hasClass("reordering") || (m("body").hasClass("adding-widget") ? (e.attr("aria-expanded", "false"), v.Widgets.availableWidgetsPanel.close()) : (e.attr("aria-expanded", "true"), v.Widgets.availableWidgetsPanel.open(t))) | |
}) | |
}, | |
_applyCardinalOrderClassNames: function() { | |
- var a = []; | |
- return _.each(this.setting(), function(b) { | |
- var c = g.Widgets.getWidgetFormControlForWidget(b); | |
- c && a.push(c) | |
- }), 0 === a.length || 1 === g.Widgets.registeredSidebars.length && a.length <= 1 ? void this.container.find(".reorder-toggle").hide() : (this.container.find(".reorder-toggle").show(), b(a).each(function() { | |
- b(this.container).removeClass("first-widget").removeClass("last-widget").find(".move-widget-down, .move-widget-up").prop("tabIndex", 0) | |
- }), _.first(a).container.addClass("first-widget").find(".move-widget-up").prop("tabIndex", -1), void _.last(a).container.addClass("last-widget").find(".move-widget-down").prop("tabIndex", -1)) | |
- }, | |
- toggleReordering: function(b) { | |
- var c = this.$sectionContent.find(".add-new-widget"), | |
- d = this.container.find(".reorder-toggle"), | |
- e = this.$sectionContent.find(".widget-title"); | |
- b = Boolean(b), b !== this.$sectionContent.hasClass("reordering") && (this.isReordering = b, this.$sectionContent.toggleClass("reordering", b), b ? (_(this.getWidgetFormControls()).each(function(a) { | |
- a.collapse() | |
- }), c.attr({ | |
+ var i = []; | |
+ _.each(this.setting(), function(e) { | |
+ var t = v.Widgets.getWidgetFormControlForWidget(e); | |
+ t && i.push(t) | |
+ }), 0 === i.length || 1 === v.Widgets.registeredSidebars.length && i.length <= 1 ? this.container.find(".reorder-toggle").hide() : (this.container.find(".reorder-toggle").show(), m(i).each(function() { | |
+ m(this.container).removeClass("first-widget").removeClass("last-widget").find(".move-widget-down, .move-widget-up").prop("tabIndex", 0) | |
+ }), _.first(i).container.addClass("first-widget").find(".move-widget-up").prop("tabIndex", -1), _.last(i).container.addClass("last-widget").find(".move-widget-down").prop("tabIndex", -1)) | |
+ }, | |
+ toggleReordering: function(e) { | |
+ var t = this.$sectionContent.find(".add-new-widget"), | |
+ i = this.container.find(".reorder-toggle"), | |
+ n = this.$sectionContent.find(".widget-title"); | |
+ (e = Boolean(e)) !== this.$sectionContent.hasClass("reordering") && (this.isReordering = e, this.$sectionContent.toggleClass("reordering", e), e ? (_(this.getWidgetFormControls()).each(function(e) { | |
+ e.collapse() | |
+ }), t.attr({ | |
tabindex: "-1", | |
"aria-hidden": "true" | |
- }), d.attr("aria-label", f.reorderLabelOff), a.a11y.speak(f.reorderModeOn), e.attr("aria-hidden", "true")) : (c.removeAttr("tabindex aria-hidden"), d.attr("aria-label", f.reorderLabelOn), a.a11y.speak(f.reorderModeOff), e.attr("aria-hidden", "false"))) | |
+ }), i.attr("aria-label", f.reorderLabelOff), p.a11y.speak(f.reorderModeOn), n.attr("aria-hidden", "true")) : (t.removeAttr("tabindex aria-hidden"), i.attr("aria-label", f.reorderLabelOn), p.a11y.speak(f.reorderModeOff), n.attr("aria-hidden", "false"))) | |
}, | |
getWidgetFormControls: function() { | |
- var a = []; | |
- return _(this.setting()).each(function(b) { | |
- var c = e(b), | |
- d = g.control(c); | |
- d && a.push(d) | |
- }), a | |
- }, | |
- addWidget: function(a) { | |
- var c, e, f, h, i, j, k, l, m, n, o = this, | |
- p = "widget_form", | |
- q = d(a), | |
- r = q.number, | |
- s = q.id_base, | |
- t = g.Widgets.availableWidgets.findWhere({ | |
- id_base: s | |
+ var n = []; | |
+ return _(this.setting()).each(function(e) { | |
+ var t = function(e) { | |
+ var t, i = w(e); | |
+ t = "widget_" + i.id_base, i.number && (t += "[" + i.number + "]"); | |
+ return t | |
+ }(e), | |
+ i = v.control(t); | |
+ i && n.push(i) | |
+ }), n | |
+ }, | |
+ addWidget: function(n) { | |
+ var e, t, i, s, d, a, o, r, l, c = this, | |
+ g = "widget_form", | |
+ u = w(n), | |
+ h = u.number, | |
+ p = u.id_base, | |
+ f = v.Widgets.availableWidgets.findWhere({ | |
+ id_base: p | |
}); | |
- return !!t && (!(r && !t.get("is_multi")) && (t.get("is_multi") && !r && (t.set("multi_number", t.get("multi_number") + 1), r = t.get("multi_number")), c = b.trim(b("#widget-tpl-" + t.get("id")).html()), t.get("is_multi") ? c = c.replace(/<[^<>]+>/g, function(a) { | |
- return a.replace(/__i__|%i%/g, r) | |
- }) : t.set("is_disabled", !0), e = b(c), f = b("<li/>").addClass("customize-control").addClass("customize-control-" + p).append(e), f.find("> .widget-icon").remove(), t.get("is_multi") && (f.find('input[name="widget_number"]').val(r), f.find('input[name="multi_number"]').val(r)), a = f.find('[name="widget-id"]').val(), f.hide(), i = "widget_" + t.get("id_base"), t.get("is_multi") && (i += "[" + r + "]"), f.attr("id", "customize-control-" + i.replace(/\]/g, "").replace(/\[/g, "-")), j = g.has(i), j || (m = { | |
- transport: g.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")] ? "postMessage" : "refresh", | |
+ return !!f && (!(h && !f.get("is_multi")) && (f.get("is_multi") && !h && (f.set("multi_number", f.get("multi_number") + 1), h = f.get("multi_number")), e = m.trim(m("#widget-tpl-" + f.get("id")).html()), f.get("is_multi") ? e = e.replace(/<[^<>]+>/g, function(e) { | |
+ return e.replace(/__i__|%i%/g, h) | |
+ }) : f.set("is_disabled", !0), t = m(e), (i = m("<li/>").addClass("customize-control").addClass("customize-control-" + g).append(t)).find("> .widget-icon").remove(), f.get("is_multi") && (i.find('input[name="widget_number"]').val(h), i.find('input[name="multi_number"]').val(h)), n = i.find('[name="widget-id"]').val(), i.hide(), d = "widget_" + f.get("id_base"), f.get("is_multi") && (d += "[" + h + "]"), i.attr("id", "customize-control-" + d.replace(/\]/g, "").replace(/\[/g, "-")), (a = v.has(d)) || (l = { | |
+ transport: v.Widgets.data.selectiveRefreshableWidgets[f.get("id_base")] ? "postMessage" : "refresh", | |
previewer: this.setting.previewer | |
- }, n = g.create(i, i, "", m), n.set({})), h = g.controlConstructor[p], k = new h(i, { | |
+ }, v.create(d, d, "", l).set({})), s = v.controlConstructor[g], o = new s(d, { | |
settings: { | |
- "default": i | |
+ default: d | |
}, | |
- content: f, | |
- sidebar_id: o.params.sidebar_id, | |
- widget_id: a, | |
- widget_id_base: t.get("id_base"), | |
- type: p, | |
- is_new: !j, | |
- width: t.get("width"), | |
- height: t.get("height"), | |
- is_wide: t.get("is_wide") | |
- }), g.control.add(k), g.each(function(b) { | |
- if (b.id !== o.setting.id && 0 === b.id.indexOf("sidebars_widgets[")) { | |
- var c = b().slice(), | |
- d = _.indexOf(c, a); - 1 !== d && (c.splice(d), b(c)) | |
+ content: i, | |
+ sidebar_id: c.params.sidebar_id, | |
+ widget_id: n, | |
+ widget_id_base: f.get("id_base"), | |
+ type: g, | |
+ is_new: !a, | |
+ width: f.get("width"), | |
+ height: f.get("height"), | |
+ is_wide: f.get("is_wide") | |
+ }), v.control.add(o), v.each(function(e) { | |
+ if (e.id !== c.setting.id && 0 === e.id.indexOf("sidebars_widgets[")) { | |
+ var t = e().slice(), | |
+ i = _.indexOf(t, n); - 1 !== i && (t.splice(i), e(t)) | |
} | |
- }), l = this.setting().slice(), -1 === _.indexOf(l, a) && (l.push(a), this.setting(l)), f.slideDown(function() { | |
- j && k.updateWidget({ | |
- instance: k.setting() | |
+ }), r = this.setting().slice(), -1 === _.indexOf(r, n) && (r.push(n), this.setting(r)), i.slideDown(function() { | |
+ a && o.updateWidget({ | |
+ instance: o.setting() | |
}) | |
- }), k)) | |
+ }), o)) | |
} | |
- }), b.extend(g.panelConstructor, { | |
- widgets: g.Widgets.WidgetsPanel | |
- }), b.extend(g.sectionConstructor, { | |
- sidebar: g.Widgets.SidebarSection | |
- }), b.extend(g.controlConstructor, { | |
- widget_form: g.Widgets.WidgetControl, | |
- sidebar_widgets: g.Widgets.SidebarControl | |
- }), g.bind("ready", function() { | |
- g.Widgets.availableWidgetsPanel = new g.Widgets.AvailableWidgetsPanelView({ | |
- collection: g.Widgets.availableWidgets | |
- }), g.previewer.bind("highlight-widget-control", g.Widgets.highlightWidgetFormControl), g.previewer.bind("focus-widget-control", g.Widgets.focusWidgetFormControl) | |
- }), g.Widgets.highlightWidgetFormControl = function(a) { | |
- var b = g.Widgets.getWidgetFormControlForWidget(a); | |
- b && b.highlightSectionAndControl() | |
- }, g.Widgets.focusWidgetFormControl = function(a) { | |
- var b = g.Widgets.getWidgetFormControlForWidget(a); | |
- b && b.focus() | |
- }, g.Widgets.getSidebarWidgetControlContainingWidget = function(a) { | |
- var b = null; | |
- return g.control.each(function(c) { | |
- "sidebar_widgets" === c.params.type && -1 !== _.indexOf(c.setting(), a) && (b = c) | |
- }), b | |
- }, g.Widgets.getWidgetFormControlForWidget = function(a) { | |
- var b = null; | |
- return g.control.each(function(c) { | |
- "widget_form" === c.params.type && c.params.widget_id === a && (b = c) | |
- }), b | |
- }, b(document).on("widget-added", function(a, b) { | |
- var e, f, h, i; | |
- e = d(b.find("> .widget-inside > .form > .widget-id").val()), "nav_menu" === e.id_base && (f = g.control("widget_nav_menu[" + String(e.number) + "]"), f && (h = b.find('select[name*="nav_menu"]'), i = b.find(".edit-selected-nav-menu > button"), 0 !== h.length && 0 !== i.length && (h.on("change", function() { | |
- g.section.has("nav_menu[" + h.val() + "]") ? i.parent().show() : i.parent().hide() | |
- }), i.on("click", function() { | |
- var a = g.section("nav_menu[" + h.val() + "]"); | |
- a && c(a, f) | |
- })))) | |
+ }), m.extend(v.panelConstructor, { | |
+ widgets: v.Widgets.WidgetsPanel | |
+ }), m.extend(v.sectionConstructor, { | |
+ sidebar: v.Widgets.SidebarSection | |
+ }), m.extend(v.controlConstructor, { | |
+ widget_form: v.Widgets.WidgetControl, | |
+ sidebar_widgets: v.Widgets.SidebarControl | |
+ }), v.bind("ready", function() { | |
+ v.Widgets.availableWidgetsPanel = new v.Widgets.AvailableWidgetsPanelView({ | |
+ collection: v.Widgets.availableWidgets | |
+ }), v.previewer.bind("highlight-widget-control", v.Widgets.highlightWidgetFormControl), v.previewer.bind("focus-widget-control", v.Widgets.focusWidgetFormControl) | |
+ }), v.Widgets.highlightWidgetFormControl = function(e) { | |
+ var t = v.Widgets.getWidgetFormControlForWidget(e); | |
+ t && t.highlightSectionAndControl() | |
+ }, v.Widgets.focusWidgetFormControl = function(e) { | |
+ var t = v.Widgets.getWidgetFormControlForWidget(e); | |
+ t && t.focus() | |
+ }, v.Widgets.getSidebarWidgetControlContainingWidget = function(t) { | |
+ var i = null; | |
+ return v.control.each(function(e) { | |
+ "sidebar_widgets" === e.params.type && -1 !== _.indexOf(e.setting(), t) && (i = e) | |
+ }), i | |
+ }, v.Widgets.getWidgetFormControlForWidget = function(t) { | |
+ var i = null; | |
+ return v.control.each(function(e) { | |
+ "widget_form" === e.params.type && e.params.widget_id === t && (i = e) | |
+ }), i | |
+ }, m(document).on("widget-added", function(e, t) { | |
+ var i, s, d, n; | |
+ "nav_menu" === (i = w(t.find("> .widget-inside > .form > .widget-id").val())).id_base && (s = v.control("widget_nav_menu[" + String(i.number) + "]")) && (d = t.find('select[name*="nav_menu"]'), n = t.find(".edit-selected-nav-menu > button"), 0 !== d.length && 0 !== n.length && (d.on("change", function() { | |
+ v.section.has("nav_menu[" + d.val() + "]") ? n.parent().show() : n.parent().hide() | |
+ }), n.on("click", function() { | |
+ var i, n, e = v.section("nav_menu[" + d.val() + "]"); | |
+ e && (n = s, (i = e).focus(), i.expanded.bind(function e(t) { | |
+ t || (i.expanded.unbind(e), n.focus()) | |
+ })) | |
+ }))) | |
}) | |
} | |
+ | |
+ function w(e) { | |
+ var t, i = { | |
+ number: null, | |
+ id_base: null | |
+ }; | |
+ return (t = e.match(/^(.+)-(\d+)$/)) ? (i.id_base = t[1], i.number = parseInt(t[2], 10)) : i.id_base = e, i | |
+ } | |
}(window.wp, jQuery); | |
\ No newline at end of file | |
diff -ru build-before-upgrades-unminified/wp-admin/js/dashboard.min.js build-unminified/wp-admin/js/dashboard.min.js | |
--- build-before-upgrades-unminified/wp-admin/js/dashboard.min.js 2018-10-05 18:05:50.922117715 -0500 | |
+++ build-unminified/wp-admin/js/dashboard.min.js 2018-10-05 18:05:13.261858932 -0500 | |
@@ -1,129 +1,125 @@ | |
var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad; | |
-window.wp = window.wp || {}, jQuery(document).ready(function(a) { | |
- function b() { | |
- if (!(document.documentMode && document.documentMode < 9)) { | |
- a("body").append('<div class="quick-draft-textarea-clone" style="display: none;"></div>'); | |
- var b = a(".quick-draft-textarea-clone"), | |
- c = a("#content"), | |
- d = c.height(), | |
- e = a(window).height() - 100; | |
- b.css({ | |
- "font-family": c.css("font-family"), | |
- "font-size": c.css("font-size"), | |
- "line-height": c.css("line-height"), | |
- "padding-bottom": c.css("paddingBottom"), | |
- "padding-left": c.css("paddingLeft"), | |
- "padding-right": c.css("paddingRight"), | |
- "padding-top": c.css("paddingTop"), | |
- "white-space": "pre-wrap", | |
- "word-wrap": "break-word", | |
- display: "none" | |
- }), c.on("focus input propertychange", function() { | |
- var f = a(this), | |
- g = f.val() + " ", | |
- h = b.css("width", f.css("width")).text(g).outerHeight() + 2; | |
- c.css("overflow-y", "auto"), h === d || h >= e && d >= e || (d = h > e ? e : h, c.css("overflow", "hidden"), f.css("height", d + "px")) | |
- }) | |
- } | |
- } | |
- var c, d = a("#welcome-panel"), | |
- e = a("#wp_welcome_panel-hide"); | |
- c = function(b) { | |
- a.post(ajaxurl, { | |
+window.wp = window.wp || {}, jQuery(document).ready(function(c) { | |
+ var t, n = c("#welcome-panel"), | |
+ e = c("#wp_welcome_panel-hide"); | |
+ t = function(e) { | |
+ c.post(ajaxurl, { | |
action: "update-welcome-panel", | |
- visible: b, | |
- welcomepanelnonce: a("#welcomepanelnonce").val() | |
+ visible: e, | |
+ welcomepanelnonce: c("#welcomepanelnonce").val() | |
}) | |
- }, d.hasClass("hidden") && e.prop("checked") && d.removeClass("hidden"), a(".welcome-panel-close, .welcome-panel-dismiss a", d).click(function(b) { | |
- b.preventDefault(), d.addClass("hidden"), c(0), a("#wp_welcome_panel-hide").prop("checked", !1) | |
+ }, n.hasClass("hidden") && e.prop("checked") && n.removeClass("hidden"), c(".welcome-panel-close, .welcome-panel-dismiss a", n).click(function(e) { | |
+ e.preventDefault(), n.addClass("hidden"), t(0), c("#wp_welcome_panel-hide").prop("checked", !1) | |
}), e.click(function() { | |
- d.toggleClass("hidden", !this.checked), c(this.checked ? 1 : 0) | |
- }), ajaxWidgets = ["dashboard_primary"], ajaxPopulateWidgets = function(b) { | |
- function c(b, c) { | |
- var d, e = a("#" + c + " div.inside:visible").find(".widget-loading"); | |
- e.length && (d = e.parent(), setTimeout(function() { | |
- d.load(ajaxurl + "?action=dashboard-widgets&widget=" + c + "&pagenow=" + pagenow, "", function() { | |
- d.hide().slideDown("normal", function() { | |
- a(this).css("display", "") | |
+ n.toggleClass("hidden", !this.checked), t(this.checked ? 1 : 0) | |
+ }), ajaxWidgets = ["dashboard_primary"], (ajaxPopulateWidgets = function(e) { | |
+ function t(e, t) { | |
+ var n, o = c("#" + t + " div.inside:visible").find(".widget-loading"); | |
+ o.length && (n = o.parent(), setTimeout(function() { | |
+ n.load(ajaxurl + "?action=dashboard-widgets&widget=" + t + "&pagenow=" + pagenow, "", function() { | |
+ n.hide().slideDown("normal", function() { | |
+ c(this).css("display", "") | |
}) | |
}) | |
- }, 500 * b)) | |
+ }, 500 * e)) | |
} | |
- b ? (b = b.toString(), a.inArray(b, ajaxWidgets) !== -1 && c(0, b)) : a.each(ajaxWidgets, c) | |
- }, ajaxPopulateWidgets(), postboxes.add_postbox_toggles(pagenow, { | |
+ e ? (e = e.toString(), -1 !== c.inArray(e, ajaxWidgets) && t(0, e)) : c.each(ajaxWidgets, t) | |
+ })(), postboxes.add_postbox_toggles(pagenow, { | |
pbshow: ajaxPopulateWidgets | |
- }), quickPressLoad = function() { | |
- var c, d = a("#quickpost-action"); | |
- a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled", !1), c = a("#quick-press").submit(function(b) { | |
- function d() { | |
- var b = a(".drafts ul li").first(); | |
- b.css("background", "#fffbe5"), setTimeout(function() { | |
- b.css("background", "none") | |
- }, 1e3) | |
- } | |
- b.preventDefault(), a("#dashboard_quick_press #publishing-action .spinner").show(), a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled", !0), a.post(c.attr("action"), c.serializeArray(), function(b) { | |
- a("#dashboard_quick_press .inside").html(b), a("#quick-press").removeClass("initial-form"), quickPressLoad(), d(), a("#title").focus() | |
- }) | |
- }), a("#publish").click(function() { | |
- d.val("post-quickpress-publish") | |
- }), a("#title, #tags-input, #content").each(function() { | |
- var b = a(this), | |
- c = a("#" + this.id + "-prompt-text"); | |
- "" === this.value && c.removeClass("screen-reader-text"), c.click(function() { | |
- a(this).addClass("screen-reader-text"), b.focus() | |
- }), b.blur(function() { | |
- "" === this.value && c.removeClass("screen-reader-text") | |
- }), b.focus(function() { | |
- c.addClass("screen-reader-text") | |
- }) | |
- }), a("#quick-press").on("click focusin", function() { | |
- wpActiveEditor = "content" | |
- }), b() | |
- }, quickPressLoad(), a(".meta-box-sortables").sortable("option", "containment", "#wpwrap") | |
-}), jQuery(function(a) { | |
+ }), (quickPressLoad = function() { | |
+ var t, e = c("#quickpost-action"); | |
+ c('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled", !1), t = c("#quick-press").submit(function(e) { | |
+ e.preventDefault(), c("#dashboard_quick_press #publishing-action .spinner").show(), c('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled", !0), c.post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment