first commit
This commit is contained in:
@@ -0,0 +1,321 @@
|
||||
/*!***************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/acf-dark.scss ***!
|
||||
\***************************************************************************************************************************************************************************************************************/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Dark mode
|
||||
*
|
||||
* WordPress plugin: https://en-au.wordpress.org/plugins/dark-mode/
|
||||
* Github Documentation: https://github.com/danieltj27/Dark-Mode/wiki/Help:-Plugin-Compatibility-Guide
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Global
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-box {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-box .title,
|
||||
.acf-box .footer {
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-box h2 {
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-box table, .acf-box tbody, .acf-box tr {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.acf-thead {
|
||||
color: #bbc8d4;
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-tfoot {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-table.-clear,
|
||||
.acf-table.-clear tr {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.acf-loading-overlay {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Fields
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-fields > .acf-field {
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-left > .acf-field:before {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-border {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-field[data-width] + .acf-field[data-width] {
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-input-prepend,
|
||||
.acf-input-append {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-fields > .acf-tab-wrap {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-fields.-sidebar:before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-fields.-sidebar.-left:before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
background: #23282d;
|
||||
}
|
||||
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-fields.-sidebar.-left > .acf-tab-wrap.-left .acf-tab-group li.active a {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-file-uploader .show-if-value {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-file-uploader .show-if-value .file-icon {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-oembed {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-oembed .title {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-gallery {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-main {
|
||||
background: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side .acf-gallery-side-info {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-button-group label:not(.selected) {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-switch:not(.-on) {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-switch:not(.-on) .acf-switch-slider {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-link .link-wrap {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-relationship .filters {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-relationship .selection {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-relationship .selection .choices,
|
||||
.acf-relationship .selection .choices-list,
|
||||
.acf-relationship .selection .values {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-taxonomy-field .categorychecklist-holder {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
.acf-google-map {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-google-map .title {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.acf-accordion {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
.acf-field.acf-accordion .acf-accordion-content > .acf-fields {
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-flexible-content .layout {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle .acf-fc-layout-order {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
|
||||
#wpbody .acf-table {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#wpbody .acf-table > tbody > tr,
|
||||
#wpbody .acf-table > thead > tr {
|
||||
background: transparent;
|
||||
}
|
||||
#wpbody .acf-table > tbody > tr > td,
|
||||
#wpbody .acf-table > tbody > tr > th,
|
||||
#wpbody .acf-table > thead > tr > td,
|
||||
#wpbody .acf-table > thead > tr > th {
|
||||
border-color: #191f25;
|
||||
}
|
||||
|
||||
.acf-field select optgroup, .acf-field select optgroup:nth-child(2n) {
|
||||
background: #50626f;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Field Group
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
#acf-field-group-fields .acf-field-list-wrap {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-list .no-fields-message {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object {
|
||||
background-color: #32373c;
|
||||
border-color: #191f25;
|
||||
color: #bbc8d4;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object table, #acf-field-group-fields .acf-field-object tbody, #acf-field-group-fields .acf-field-object tr, #acf-field-group-fields .acf-field-object td, #acf-field-group-fields .acf-field-object th {
|
||||
background: transparent;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object .acf-field .acf-label {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object.ui-sortable-helper {
|
||||
border-color: #191f25;
|
||||
box-shadow: none;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object.ui-sortable-placeholder {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
box-shadow: none;
|
||||
}
|
||||
#acf-field-group-fields .acf-field-object + .acf-field-object-tab::before,
|
||||
#acf-field-group-fields .acf-field-object + .acf-field-object-accordion::before {
|
||||
background-color: #2d3136;
|
||||
border-color: #23282d;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Admin: Tools
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-meta-box-wrap .acf-fields {
|
||||
background-color: #50626f;
|
||||
border-color: #191f25;
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-dark.css.map*/
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,144 @@
|
||||
/*!******************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/pro/acf-pro-field-group.scss ***!
|
||||
\******************************************************************************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Vars
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/* colors */
|
||||
/* acf-field */
|
||||
/* responsive */
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* ACF 6 ↓
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Mixins
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Flexible Content
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-field-setting-fc_layout .acf-toggle-fc-layout {
|
||||
width: 34px;
|
||||
height: 31px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
left: 20.83%;
|
||||
right: 20.83%;
|
||||
top: 33.33%;
|
||||
bottom: 33.33%;
|
||||
}
|
||||
.acf-field-setting-fc_layout .toggle-indicator::before {
|
||||
z-index: -1;
|
||||
content: "";
|
||||
display: inline-flex;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: -28px;
|
||||
background-color: currentColor;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
-webkit-mask-size: contain;
|
||||
mask-size: contain;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-position: center;
|
||||
mask-position: center;
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
}
|
||||
.rtl .acf-field-setting-fc_layout .toggle-indicator::before {
|
||||
margin-left: 0px;
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
z-index: 100;
|
||||
left: 8px;
|
||||
}
|
||||
|
||||
.acf-field-setting-fc_layout .toggle-indicator.open::before {
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-up.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-up.svg);
|
||||
}
|
||||
.acf-field-setting-fc_layout .toggle-indicator.closed::before {
|
||||
-webkit-mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
mask-image: url(../../../images/icons/icon-chevron-down.svg);
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-flexible-content-field-label-name {
|
||||
padding-left: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta {
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta li {
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display {
|
||||
float: left;
|
||||
width: 100%;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-left {
|
||||
width: calc(50% - 4px);
|
||||
float: left;
|
||||
clear: left;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-right {
|
||||
width: calc(50% - 4px);
|
||||
float: left;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min {
|
||||
width: calc(25% - 5px);
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-max {
|
||||
width: calc(25% - 10px);
|
||||
float: left;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,
|
||||
.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend {
|
||||
min-width: 60px;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fc_draggable,
|
||||
.acf-field-setting-fc_layout .reorder-layout {
|
||||
cursor: grab;
|
||||
}
|
||||
.acf-field-setting-fc_layout .acf-fl-actions a {
|
||||
padding: 1px 0;
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Clone
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-field-object-clone {
|
||||
/* group */
|
||||
/* seamless */
|
||||
}
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper,
|
||||
.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-pro-field-group.css.map*/
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.acf-field-setting-fc_layout .acf-toggle-fc-layout{width:34px;height:31px;margin:0;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer;left:20.83%;right:20.83%;top:33.33%;bottom:33.33%}.acf-field-setting-fc_layout .toggle-indicator::before{z-index:-1;content:"";display:inline-flex;width:20px;height:20px;margin-left:-28px;background-color:currentColor;border:none;border-radius:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.rtl .acf-field-setting-fc_layout .toggle-indicator::before{margin-left:0px;position:absolute;top:9px;z-index:100;left:8px}.acf-field-setting-fc_layout .toggle-indicator.open::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-up.svg);mask-image:url(../../../images/icons/icon-chevron-up.svg)}.acf-field-setting-fc_layout .toggle-indicator.closed::before{-webkit-mask-image:url(../../../images/icons/icon-chevron-down.svg);mask-image:url(../../../images/icons/icon-chevron-down.svg)}.acf-field-setting-fc_layout .acf-flexible-content-field-label-name{padding-left:5px}.acf-field-setting-fc_layout .acf-fc-meta{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta li{margin:0 0 10px;padding:0}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display{float:left;width:100%;padding-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-left{width:calc(50% - 4px);float:left;clear:left;margin-right:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-right{width:calc(50% - 4px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-min{width:calc(25% - 5px);float:left;margin-right:5px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-max{width:calc(25% - 10px);float:left;margin-left:4px}.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-label .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-name .acf-input-prepend,.acf-field-setting-fc_layout .acf-fc-meta .acf-fc-meta-display .acf-input-prepend{min-width:60px}.acf-field-setting-fc_layout .acf-fc_draggable,.acf-field-setting-fc_layout .reorder-layout{cursor:grab}.acf-field-setting-fc_layout .acf-fl-actions a{padding:1px 0;font-size:13px;line-height:20px}.acf-field-object-clone[data-display=seamless] .acf-field-setting-instructions,.acf-field-object-clone[data-display=seamless] .acf-field-setting-layout,.acf-field-object-clone[data-display=seamless] .acf-field-setting-wrapper,.acf-field-object-clone[data-display=seamless] .acf-field-setting-conditional_logic{display:none}
|
@@ -0,0 +1,773 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/advanced-custom-fields-pro/assets/src/sass/pro/acf-pro-input.scss ***!
|
||||
\************************************************************************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Vars
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/* colors */
|
||||
/* acf-field */
|
||||
/* responsive */
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* ACF 6 ↓
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Mixins
|
||||
*
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Repeater
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-repeater {
|
||||
/* table */
|
||||
/* row handle (add/remove) */
|
||||
/* add in spacer to th (force correct width) */
|
||||
/* row */
|
||||
/* sortable */
|
||||
/* layouts */
|
||||
/*
|
||||
&.-row > table > tbody > tr:before,
|
||||
&.-block > table > tbody > tr:before {
|
||||
content: "";
|
||||
display: table-row;
|
||||
height: 2px;
|
||||
background: #f00;
|
||||
}
|
||||
*/
|
||||
/* empty */
|
||||
/* collapsed */
|
||||
/* collapsed (block layout) */
|
||||
/* collapsed (table layout) */
|
||||
}
|
||||
.acf-repeater > table {
|
||||
margin: 0 0 8px;
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-repeater > table > tbody tr.acf-divider:not(:first-child) > td {
|
||||
border-top: 10px solid #EAECF0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle {
|
||||
width: 16px;
|
||||
text-align: center !important;
|
||||
vertical-align: middle !important;
|
||||
position: relative;
|
||||
/* icons */
|
||||
/* .order */
|
||||
/* remove */
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input-wrap {
|
||||
width: 45px;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input::-webkit-outer-spin-button,
|
||||
.acf-repeater .acf-row-handle .acf-order-input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-order-input {
|
||||
-moz-appearance: textfield;
|
||||
text-align: center;
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-icon {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: -8px 0 0 -2px;
|
||||
/* minus icon */
|
||||
}
|
||||
.acf-repeater .acf-row-handle .acf-icon.-minus {
|
||||
top: 50%;
|
||||
/* ie fix */
|
||||
}
|
||||
body.browser-msie .acf-repeater .acf-row-handle .acf-icon.-minus {
|
||||
top: 25px;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order {
|
||||
background: #f4f4f4;
|
||||
cursor: move;
|
||||
color: #aaa;
|
||||
text-shadow: #fff 0 1px 0;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order:hover {
|
||||
color: #666;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.order + td {
|
||||
border-left-color: #DFDFDF;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.pagination {
|
||||
cursor: auto;
|
||||
}
|
||||
.acf-repeater .acf-row-handle.remove {
|
||||
background: #F9F9F9;
|
||||
border-left-color: #DFDFDF;
|
||||
}
|
||||
.acf-repeater th.acf-row-handle:before {
|
||||
content: "";
|
||||
width: 16px;
|
||||
display: block;
|
||||
height: 1px;
|
||||
}
|
||||
.acf-repeater .acf-row {
|
||||
/* hide clone */
|
||||
/* hover */
|
||||
}
|
||||
.acf-repeater .acf-row.acf-clone {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row:hover, .acf-repeater .acf-row.-hover {
|
||||
/* icons */
|
||||
}
|
||||
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon {
|
||||
display: block;
|
||||
}
|
||||
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift {
|
||||
display: none;
|
||||
}
|
||||
body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.show-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.show-on-shift {
|
||||
display: block;
|
||||
}
|
||||
body.acf-keydown-shift .acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.hide-on-shift, body.acf-keydown-shift .acf-repeater .acf-row.-hover > .acf-row-handle .acf-icon.hide-on-shift {
|
||||
display: none;
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-helper {
|
||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-placeholder {
|
||||
visibility: visible !important;
|
||||
}
|
||||
.acf-repeater > table > tbody > tr.ui-sortable-placeholder td {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-repeater.-row > table > tbody > tr > td, .acf-repeater.-block > table > tbody > tr > td {
|
||||
border-top-color: #E1E1E1;
|
||||
}
|
||||
.acf-repeater.-empty > table > thead > tr > th {
|
||||
border-bottom: 0 none;
|
||||
}
|
||||
.acf-repeater.-empty.-row > table, .acf-repeater.-empty.-block > table {
|
||||
display: none;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-field {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > td.acf-field.-collapsed-target {
|
||||
display: table-cell !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > * {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target {
|
||||
display: block !important;
|
||||
}
|
||||
.acf-repeater .acf-row.-collapsed > .acf-fields > .acf-field.-collapsed-target[data-width] {
|
||||
float: none !important;
|
||||
width: auto !important;
|
||||
}
|
||||
.acf-repeater.-table .acf-row.-collapsed .acf-field.-collapsed-target {
|
||||
border-left-color: #dfdfdf;
|
||||
}
|
||||
.acf-repeater.-max .acf-icon[data-event=add-row] {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-repeater > .acf-actions .acf-button {
|
||||
float: right;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
.acf-repeater > .acf-actions .acf-tablenav {
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.acf-repeater > .acf-actions .acf-tablenav .current-page {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Flexible Content
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-flexible-content {
|
||||
position: relative;
|
||||
}
|
||||
.acf-flexible-content > .clones {
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content > .values {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.acf-flexible-content > .values > .ui-sortable-placeholder {
|
||||
visibility: visible !important;
|
||||
border: 1px dashed #b4b9be;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
}
|
||||
.acf-flexible-content .layout {
|
||||
position: relative;
|
||||
margin: 20px 0 0;
|
||||
background: #fff;
|
||||
border: 1px solid #ccd0d4;
|
||||
}
|
||||
.acf-flexible-content .layout:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-handle {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding: 8px 10px;
|
||||
cursor: move;
|
||||
border-bottom: #ccd0d4 solid 1px;
|
||||
color: #444;
|
||||
font-size: 14px;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-order {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
line-height: 20px;
|
||||
margin: 0 2px 0 0;
|
||||
background: #F1F1F1;
|
||||
font-size: 12px;
|
||||
color: #444;
|
||||
}
|
||||
html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-order {
|
||||
float: right;
|
||||
margin-right: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
.acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout .acf-fc-layout-controls .acf-icon.-duplicate {
|
||||
visibility: hidden;
|
||||
}
|
||||
html[dir=rtl] .acf-flexible-content .layout .acf-fc-layout-controls {
|
||||
right: auto;
|
||||
left: 9px;
|
||||
}
|
||||
.acf-flexible-content .layout.is-selected {
|
||||
border-color: #7e8993;
|
||||
}
|
||||
.acf-flexible-content .layout.is-selected .acf-fc-layout-handle {
|
||||
border-color: #7e8993;
|
||||
}
|
||||
.acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout:hover .acf-fc-layout-controls .acf-icon.-duplicate, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-plus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-minus, .acf-flexible-content .layout.-hover .acf-fc-layout-controls .acf-icon.-duplicate {
|
||||
visibility: visible;
|
||||
}
|
||||
.acf-flexible-content .layout.-collapsed > .acf-fc-layout-handle {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
.acf-flexible-content .layout.-collapsed > .acf-fields,
|
||||
.acf-flexible-content .layout.-collapsed > .acf-table {
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table {
|
||||
border: 0 none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table > tbody > tr {
|
||||
background: #fff;
|
||||
}
|
||||
.acf-flexible-content .layout > .acf-table > thead > tr > th {
|
||||
background: #F9F9F9;
|
||||
}
|
||||
.acf-flexible-content .no-value-message {
|
||||
padding: 19px;
|
||||
border: #ccc dashed 2px;
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
.acf-flexible-content.-empty > .no-value-message {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.acf-fc-popup {
|
||||
padding: 5px 0;
|
||||
z-index: 900001;
|
||||
min-width: 135px;
|
||||
}
|
||||
.acf-fc-popup ul, .acf-fc-popup li {
|
||||
list-style: none;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.acf-fc-popup li {
|
||||
position: relative;
|
||||
float: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.acf-fc-popup .badge {
|
||||
display: inline-block;
|
||||
border-radius: 8px;
|
||||
font-size: 9px;
|
||||
line-height: 15px;
|
||||
padding: 0 5px;
|
||||
background: #d54e21;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
vertical-align: top;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
.acf-fc-popup a {
|
||||
color: #eee;
|
||||
padding: 5px 10px;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
.acf-fc-popup a:hover {
|
||||
background: #0073aa;
|
||||
color: #fff;
|
||||
}
|
||||
.acf-fc-popup a.disabled {
|
||||
color: #888;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
*
|
||||
* Galery
|
||||
*
|
||||
*---------------------------------------------------------------------------------------------*/
|
||||
.acf-gallery {
|
||||
border: #ccd0d4 solid 1px;
|
||||
height: 400px;
|
||||
position: relative;
|
||||
/* main */
|
||||
/* attachments */
|
||||
/* attachment */
|
||||
/* toolbar */
|
||||
/* sidebar */
|
||||
/* side info */
|
||||
/* side data */
|
||||
/* column widths */
|
||||
/* resizable */
|
||||
}
|
||||
.acf-gallery .acf-gallery-main {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #fff;
|
||||
z-index: 2;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachments {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 48px;
|
||||
left: 0;
|
||||
padding: 5px;
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment {
|
||||
width: 25%;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
/* hover */
|
||||
/* sortable */
|
||||
/* active */
|
||||
/* icon */
|
||||
/* rtl */
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin {
|
||||
margin: 5px;
|
||||
border: #d5d9dd solid 1px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: #eee;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .margin:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 100%;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .thumbnail {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: translate(50%, 50%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail {
|
||||
transform: translate(-50%, 50%);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .thumbnail img {
|
||||
display: block;
|
||||
height: auto;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment .thumbnail img {
|
||||
transform: translate(50%, -50%);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .filename {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 5%;
|
||||
background: #F4F4F4;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
border-top: #DFDFDF solid 1px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
max-height: 90%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment .actions {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment:hover .actions {
|
||||
display: block;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-helper .margin {
|
||||
border: none;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin {
|
||||
background: #F1F1F1;
|
||||
border: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.ui-sortable-placeholder .margin * {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.active .margin {
|
||||
box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 5px #0073aa;
|
||||
}
|
||||
.acf-gallery .acf-gallery-attachment.-icon .thumbnail img {
|
||||
transform: translate(-50%, -70%);
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-attachment {
|
||||
float: right;
|
||||
}
|
||||
.acf-gallery.sidebar-open {
|
||||
/* hide attachment actions when sidebar is open */
|
||||
/* allow sidebar to move over main for small widths (widget edit box) */
|
||||
}
|
||||
.acf-gallery.sidebar-open .acf-gallery-attachment .actions {
|
||||
display: none;
|
||||
}
|
||||
.acf-gallery.sidebar-open .acf-gallery-side {
|
||||
z-index: 2;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
padding: 10px;
|
||||
border-top: #d5d9dd solid 1px;
|
||||
background: #fff;
|
||||
min-height: 28px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar .acf-hl li {
|
||||
line-height: 24px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-toolbar .bulk-actions-select {
|
||||
width: auto;
|
||||
margin: 0 1px 0 0;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 0;
|
||||
background: #F9F9F9;
|
||||
border-left: #ccd0d4 solid 1px;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side .acf-gallery-side-inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 349px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin: -10px 0 15px -10px;
|
||||
background: #F1F1F1;
|
||||
border-bottom: #DFDFDF solid 1px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info:after {
|
||||
display: block;
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-info {
|
||||
margin-left: 0;
|
||||
margin-right: -10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info img {
|
||||
float: left;
|
||||
width: auto;
|
||||
max-width: 65px;
|
||||
max-height: 65px;
|
||||
margin: 0 10px 1px 0;
|
||||
background: #FFFFFF;
|
||||
padding: 3px;
|
||||
border: #ccd0d4 solid 1px;
|
||||
border-radius: 1px;
|
||||
/* rtl */
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-info img {
|
||||
float: right;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info p {
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
margin: 3px 0;
|
||||
word-break: break-all;
|
||||
color: #666;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info p strong {
|
||||
color: #000;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a.acf-gallery-edit {
|
||||
color: #21759b;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a.acf-gallery-remove {
|
||||
color: #bc0b0b;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-info a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 48px;
|
||||
left: 0;
|
||||
overflow: auto;
|
||||
overflow-x: inherit;
|
||||
padding: 10px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-label,
|
||||
.acf-gallery .acf-gallery-side-data th.label {
|
||||
color: #666666;
|
||||
font-size: 12px;
|
||||
line-height: 25px;
|
||||
padding: 0 4px 8px 0 !important;
|
||||
width: auto !important;
|
||||
vertical-align: top;
|
||||
}
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-data .acf-label,
|
||||
html[dir=rtl] .acf-gallery .acf-gallery-side-data th.label {
|
||||
padding: 0 0 8px 4px !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-label label,
|
||||
.acf-gallery .acf-gallery-side-data th.label label {
|
||||
font-weight: normal;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data .acf-input,
|
||||
.acf-gallery .acf-gallery-side-data td.field {
|
||||
padding: 0 0 8px !important;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data textarea {
|
||||
min-height: 0;
|
||||
height: 60px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data p.help {
|
||||
font-size: 12px;
|
||||
}
|
||||
.acf-gallery .acf-gallery-side-data p.help:hover {
|
||||
font-weight: normal;
|
||||
}
|
||||
.acf-gallery[data-columns="1"] .acf-gallery-attachment {
|
||||
width: 100%;
|
||||
}
|
||||
.acf-gallery[data-columns="2"] .acf-gallery-attachment {
|
||||
width: 50%;
|
||||
}
|
||||
.acf-gallery[data-columns="3"] .acf-gallery-attachment {
|
||||
width: 33.333%;
|
||||
}
|
||||
.acf-gallery[data-columns="4"] .acf-gallery-attachment {
|
||||
width: 25%;
|
||||
}
|
||||
.acf-gallery[data-columns="5"] .acf-gallery-attachment {
|
||||
width: 20%;
|
||||
}
|
||||
.acf-gallery[data-columns="6"] .acf-gallery-attachment {
|
||||
width: 16.666%;
|
||||
}
|
||||
.acf-gallery[data-columns="7"] .acf-gallery-attachment {
|
||||
width: 14.285%;
|
||||
}
|
||||
.acf-gallery[data-columns="8"] .acf-gallery-attachment {
|
||||
width: 12.5%;
|
||||
}
|
||||
.acf-gallery .ui-resizable-handle {
|
||||
display: block;
|
||||
position: absolute;
|
||||
}
|
||||
.acf-gallery .ui-resizable-s {
|
||||
bottom: -5px;
|
||||
cursor: ns-resize;
|
||||
height: 7px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* media modal selected */
|
||||
.acf-media-modal .attachment.acf-selected {
|
||||
box-shadow: 0 0 0 3px #fff inset, 0 0 0 7px #0073aa inset !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .check {
|
||||
display: none !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .thumbnail {
|
||||
opacity: 0.25 !important;
|
||||
}
|
||||
.acf-media-modal .attachment.acf-selected .attachment-preview:before {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.acf-admin-single-options-page .select2-dropdown {
|
||||
border-color: #6BB5D8 !important;
|
||||
margin-top: -5px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
|
||||
}
|
||||
.acf-admin-single-options-page .select2-dropdown.select2-dropdown--above {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option[aria-selected=true] {
|
||||
background-color: #F9FAFB !important;
|
||||
color: #667085;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option[aria-selected=true]:hover {
|
||||
color: #399CCB;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
|
||||
color: #fff !important;
|
||||
background-color: #0783BE !important;
|
||||
}
|
||||
.acf-admin-single-options-page .select2-dropdown .select2-results__option {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.acf-create-options-page-popup ~ .select2-container {
|
||||
z-index: 999999999;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
*
|
||||
* ACF Blocks
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
.acf-block-component .components-placeholder {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.acf-block-component .acf-block-fields {
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
font-size: 13px;
|
||||
line-height: 1.4em;
|
||||
color: #444;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
}
|
||||
.acf-block-component .acf-block-fields.acf-empty-block-fields {
|
||||
border: 1px solid #1e1e1e;
|
||||
padding: 12px;
|
||||
}
|
||||
.components-panel .acf-block-component .acf-block-fields.acf-empty-block-fields {
|
||||
border: none;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
html[dir=rtl] .acf-block-component .acf-block-fields {
|
||||
text-align: right;
|
||||
}
|
||||
.acf-block-component .acf-block-fields p {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.acf-block-body .acf-block-fields {
|
||||
border: #adb2ad solid 1px;
|
||||
}
|
||||
.acf-block-body .acf-block-fields .acf-tab-wrap .acf-tab-group {
|
||||
margin-left: 0;
|
||||
padding: 16px 20px 0;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field.acf-accordion {
|
||||
border-color: #adb2ad;
|
||||
}
|
||||
.acf-block-body .acf-fields > .acf-field.acf-accordion .acf-accordion-title {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.acf-block-body .acf-button, .acf-block-body .acf-link a.button {
|
||||
color: #2271b1 !important;
|
||||
border-color: #2271b1;
|
||||
background: #f6f7f7;
|
||||
vertical-align: top;
|
||||
}
|
||||
.acf-block-body .acf-button.button-primary:hover, .acf-block-body .acf-link a.button.button-primary:hover {
|
||||
color: white !important;
|
||||
}
|
||||
.acf-block-body .acf-button:hover, .acf-block-body .acf-link a.button:hover {
|
||||
color: #0a4b78 !important;
|
||||
}
|
||||
.acf-block-body .acf-block-preview {
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
.acf-block-panel .acf-block-fields {
|
||||
border-top: #ddd solid 1px;
|
||||
border-bottom: #ddd solid 1px;
|
||||
min-height: 1px;
|
||||
}
|
||||
.acf-block-panel .acf-block-fields:empty {
|
||||
border-top: none;
|
||||
}
|
||||
.acf-block-panel .acf-block-fields .acf-tab-wrap {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.components-panel__body .acf-block-panel {
|
||||
margin: 16px -16px -16px;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=acf-pro-input.css.map*/
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,39 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
var __webpack_exports__ = {};
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-escaped-html-notice.js ***!
|
||||
\*********************************************************************************/
|
||||
(function ($, undefined) {
|
||||
const $notice = $('.acf-escaped-html-notice');
|
||||
$notice.on('click', '.notice-dismiss', function (e) {
|
||||
const $target = $(e.target).closest('.acf-escaped-html-notice');
|
||||
let to_dismiss = 'escaped_html';
|
||||
if ($target.hasClass('acf-will-escape')) {
|
||||
to_dismiss = 'to_be_escaped';
|
||||
}
|
||||
$.ajax({
|
||||
url: ajaxurl,
|
||||
data: {
|
||||
'action': 'acf/dismiss_escaped_html_notice',
|
||||
'nonce': acf_escaped_html_notice.nonce,
|
||||
'notice': to_dismiss
|
||||
},
|
||||
type: 'post'
|
||||
});
|
||||
});
|
||||
$notice.on('click', '.acf-show-more-details', function (e) {
|
||||
e.preventDefault();
|
||||
const $link = $(e.target);
|
||||
const $details = $link.closest('.acf-escaped-html-notice').find('.acf-error-details');
|
||||
if ($details.is(':hidden')) {
|
||||
$details.slideDown(100);
|
||||
$link.text(acf_escaped_html_notice.hide_details);
|
||||
} else {
|
||||
$details.slideUp(100);
|
||||
$link.text(acf_escaped_html_notice.show_details);
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-escaped-html-notice.js.map
|
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"acf-escaped-html-notice.js","mappings":";;;;;AAAA,CAAE,UAAWA,CAAC,EAAEC,SAAS,EAAG;EAE3B,MAAMC,OAAO,GAAGF,CAAC,CAAE,0BAA2B,CAAC;EAE/CE,OAAO,CAACC,EAAE,CAAE,OAAO,EAAE,iBAAiB,EAAE,UAAUC,CAAC,EAAG;IACrD,MAAMC,OAAO,GAAGL,CAAC,CAAEI,CAAC,CAACE,MAAO,CAAC,CAACC,OAAO,CAAE,0BAA2B,CAAC;IAEnE,IAAIC,UAAU,GAAG,cAAc;IAC/B,IAAKH,OAAO,CAACI,QAAQ,CAAE,iBAAkB,CAAC,EAAG;MAC5CD,UAAU,GAAG,eAAe;IAC7B;IAEAR,CAAC,CAACU,IAAI,CAAE;MACPC,GAAG,EAAEC,OAAO;MACZC,IAAI,EAAE;QACL,QAAQ,EAAE,iCAAiC;QAC3C,OAAO,EAAEC,uBAAuB,CAACC,KAAK;QACtC,QAAQ,EAAEP;MACX,CAAC;MACDQ,IAAI,EAAE;IACP,CAAE,CAAC;EACJ,CAAE,CAAC;EAEHd,OAAO,CAACC,EAAE,CAAE,OAAO,EAAE,wBAAwB,EAAE,UAAUC,CAAC,EAAG;IAC5DA,CAAC,CAACa,cAAc,CAAC,CAAC;IAElB,MAAMC,KAAK,GAAGlB,CAAC,CAAEI,CAAC,CAACE,MAAO,CAAC;IAC3B,MAAMa,QAAQ,GAAGD,KAAK,CAACX,OAAO,CAAE,0BAA2B,CAAC,CAACa,IAAI,CAAE,oBAAqB,CAAC;IAEzF,IAAKD,QAAQ,CAACE,EAAE,CAAE,SAAU,CAAC,EAAG;MAC/BF,QAAQ,CAACG,SAAS,CAAE,GAAI,CAAC;MACzBJ,KAAK,CAACK,IAAI,CAAET,uBAAuB,CAACU,YAAa,CAAC;IACnD,CAAC,MAAM;MACNL,QAAQ,CAACM,OAAO,CAAE,GAAI,CAAC;MACvBP,KAAK,CAACK,IAAI,CAAET,uBAAuB,CAACY,YAAa,CAAC;IACnD;EACD,CAAE,CAAC;AAEJ,CAAC,EAAIC,MAAO,CAAC,C","sources":["webpack://advanced-custom-fields-pro/./src/advanced-custom-fields-pro/assets/src/js/acf-escaped-html-notice.js"],"sourcesContent":["( function ( $, undefined ) {\n\n\tconst $notice = $( '.acf-escaped-html-notice' );\n\n\t$notice.on( 'click', '.notice-dismiss', function( e ) {\n\t\tconst $target = $( e.target ).closest( '.acf-escaped-html-notice' );\n\n\t\tlet to_dismiss = 'escaped_html';\n\t\tif ( $target.hasClass( 'acf-will-escape' ) ) {\n\t\t\tto_dismiss = 'to_be_escaped';\n\t\t}\n\n\t\t$.ajax( {\n\t\t\turl: ajaxurl,\n\t\t\tdata: {\n\t\t\t\t'action': 'acf/dismiss_escaped_html_notice',\n\t\t\t\t'nonce': acf_escaped_html_notice.nonce,\n\t\t\t\t'notice': to_dismiss,\n\t\t\t},\n\t\t\ttype: 'post'\n\t\t} );\n\t} );\n\n\t$notice.on( 'click', '.acf-show-more-details', function( e ) {\n\t\te.preventDefault();\n\n\t\tconst $link = $( e.target );\n\t\tconst $details = $link.closest( '.acf-escaped-html-notice' ).find( '.acf-error-details' );\n\n\t\tif ( $details.is( ':hidden' ) ) {\n\t\t\t$details.slideDown( 100 );\n\t\t\t$link.text( acf_escaped_html_notice.hide_details );\n\t\t} else {\n\t\t\t$details.slideUp( 100 );\n\t\t\t$link.text( acf_escaped_html_notice.show_details );\n\t\t}\n\t} );\n\n} )( jQuery );\n"],"names":["$","undefined","$notice","on","e","$target","target","closest","to_dismiss","hasClass","ajax","url","ajaxurl","data","acf_escaped_html_notice","nonce","type","preventDefault","$link","$details","find","is","slideDown","text","hide_details","slideUp","show_details","jQuery"],"sourceRoot":""}
|
@@ -0,0 +1 @@
|
||||
!function(e,t){const c=e(".acf-escaped-html-notice");c.on("click",".notice-dismiss",(function(t){let c="escaped_html";e(t.target).closest(".acf-escaped-html-notice").hasClass("acf-will-escape")&&(c="to_be_escaped"),e.ajax({url:ajaxurl,data:{action:"acf/dismiss_escaped_html_notice",nonce:acf_escaped_html_notice.nonce,notice:c},type:"post"})})),c.on("click",".acf-show-more-details",(function(t){t.preventDefault();const c=e(t.target),a=c.closest(".acf-escaped-html-notice").find(".acf-error-details");a.is(":hidden")?(a.slideDown(100),c.text(acf_escaped_html_notice.hide_details)):(a.slideUp(100),c.text(acf_escaped_html_notice.show_details))}))}(jQuery);
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,402 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js":
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
/**
|
||||
* internalPostTypeSettingsManager
|
||||
*
|
||||
* Model for handling events in the settings metaboxes of internal post types
|
||||
*
|
||||
* @since 6.1
|
||||
*/
|
||||
const internalPostTypeSettingsManager = new acf.Model({
|
||||
id: 'internalPostTypeSettingsManager',
|
||||
wait: 'ready',
|
||||
events: {
|
||||
'blur .acf_slugify_to_key': 'onChangeSlugify',
|
||||
'blur .acf_singular_label': 'onChangeSingularLabel',
|
||||
'blur .acf_plural_label': 'onChangePluralLabel',
|
||||
'change .acf_hierarchical_switch': 'onChangeHierarchical',
|
||||
'click .acf-regenerate-labels': 'onClickRegenerateLabels',
|
||||
'click .acf-clear-labels': 'onClickClearLabels',
|
||||
'change .rewrite_slug_field': 'onChangeURLSlug',
|
||||
'keyup .rewrite_slug_field': 'onChangeURLSlug'
|
||||
},
|
||||
onChangeSlugify: function (e, $el) {
|
||||
const name = $el.val();
|
||||
const $keyInput = $('.acf_slugified_key');
|
||||
|
||||
// Generate field key.
|
||||
if ($keyInput.val().trim() == '') {
|
||||
let slug = acf.strSanitize(name.trim()).replaceAll('_', '-');
|
||||
slug = acf.applyFilters('generate_internal_post_type_name', slug, this);
|
||||
let slugLength = 0;
|
||||
if ('taxonomy' === acf.get('screen')) {
|
||||
slugLength = 32;
|
||||
} else if ('post_type' === acf.get('screen')) {
|
||||
slugLength = 20;
|
||||
}
|
||||
if (slugLength) {
|
||||
slug = slug.substring(0, slugLength);
|
||||
}
|
||||
$keyInput.val(slug);
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
// check we should init.
|
||||
if (!['taxonomy', 'post_type'].includes(acf.get('screen'))) return;
|
||||
|
||||
// select2
|
||||
const template = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
const $parentSelect = $(selection.element.parentElement);
|
||||
const $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.element.innerHTML));
|
||||
let isDefault = false;
|
||||
if ($parentSelect.filter('.acf-taxonomy-manage_terms, .acf-taxonomy-edit_terms, .acf-taxonomy-delete_terms').length && selection.id === 'manage_categories') {
|
||||
isDefault = true;
|
||||
} else if ($parentSelect.filter('.acf-taxonomy-assign_terms').length && selection.id === 'edit_posts') {
|
||||
isDefault = true;
|
||||
} else if (selection.id === 'taxonomy_key' || selection.id === 'post_type_key' || selection.id === 'default') {
|
||||
isDefault = true;
|
||||
}
|
||||
if (isDefault) {
|
||||
$selection.append('<span class="acf-select2-default-pill">' + acf.__('Default') + '</span>');
|
||||
}
|
||||
$selection.data('element', selection.element);
|
||||
return $selection;
|
||||
};
|
||||
acf.newSelect2($('select.query_var'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-manage_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-edit_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-delete_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.acf-taxonomy-assign_terms'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
acf.newSelect2($('select.meta_box'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
const permalinkRewrite = acf.newSelect2($('select.permalink_rewrite'), {
|
||||
field: false,
|
||||
templateSelection: template,
|
||||
templateResult: template
|
||||
});
|
||||
$('.rewrite_slug_field').trigger('change');
|
||||
permalinkRewrite.on('change', function (e) {
|
||||
$('.rewrite_slug_field').trigger('change');
|
||||
});
|
||||
},
|
||||
onChangeURLSlug: function (e, $el) {
|
||||
const $field = $('div.acf-field.acf-field-permalink-rewrite');
|
||||
const rewriteType = $field.find('select').find('option:selected').val();
|
||||
const originalInstructions = $field.data(rewriteType + '_instructions');
|
||||
const siteURL = $field.data('site_url');
|
||||
const $permalinkDesc = $field.find('p.description').first();
|
||||
if (rewriteType === 'taxonomy_key' || rewriteType === 'post_type_key') {
|
||||
var slugvalue = $('.acf_slugified_key').val().trim();
|
||||
} else {
|
||||
var slugvalue = $el.val().trim();
|
||||
}
|
||||
if (!slugvalue.length) slugvalue = '{slug}';
|
||||
$permalinkDesc.html($('<span>' + originalInstructions + '</span>').text().replace('{slug}', '<strong>' + $('<span>' + siteURL + '/' + slugvalue + '</span>').text() + '</strong>'));
|
||||
},
|
||||
onChangeSingularLabel: function (e, $el) {
|
||||
const label = $el.val();
|
||||
this.updateLabels(label, 'singular', false);
|
||||
},
|
||||
onChangePluralLabel: function (e, $el) {
|
||||
const label = $el.val();
|
||||
this.updateLabels(label, 'plural', false);
|
||||
},
|
||||
onChangeHierarchical: function (e, $el) {
|
||||
const hierarchical = $el.is(':checked');
|
||||
if ('taxonomy' === acf.get('screen')) {
|
||||
let text = $('.acf-field-meta-box').data('tags_meta_box');
|
||||
if (hierarchical) {
|
||||
text = $('.acf-field-meta-box').data('categories_meta_box');
|
||||
}
|
||||
$('#acf_taxonomy-meta_box').find('option:first').text(text).trigger('change');
|
||||
}
|
||||
this.updatePlaceholders(hierarchical);
|
||||
},
|
||||
onClickRegenerateLabels: function (e, $el) {
|
||||
this.updateLabels($('.acf_singular_label').val(), 'singular', true);
|
||||
this.updateLabels($('.acf_plural_label').val(), 'plural', true);
|
||||
},
|
||||
onClickClearLabels: function (e, $el) {
|
||||
this.clearLabels();
|
||||
},
|
||||
updateLabels(label, type, force) {
|
||||
$('[data-label][data-replace="' + type + '"').each((index, element) => {
|
||||
var $input = $(element).find('input[type="text"]').first();
|
||||
if (!force && $input.val() != '') return;
|
||||
if (label == '') return;
|
||||
$input.val($(element).data('transform') === 'lower' ? $(element).data('label').replace('%s', label.toLowerCase()) : $(element).data('label').replace('%s', label));
|
||||
});
|
||||
},
|
||||
clearLabels() {
|
||||
$('[data-label]').each((index, element) => {
|
||||
$(element).find('input[type="text"]').first().val('');
|
||||
});
|
||||
},
|
||||
updatePlaceholders(heirarchical) {
|
||||
if (acf.get('screen') == 'post_type') {
|
||||
var singular = acf.__('Post');
|
||||
var plural = acf.__('Posts');
|
||||
if (heirarchical) {
|
||||
singular = acf.__('Page');
|
||||
plural = acf.__('Pages');
|
||||
}
|
||||
} else {
|
||||
var singular = acf.__('Tag');
|
||||
var plural = acf.__('Tags');
|
||||
if (heirarchical) {
|
||||
singular = acf.__('Category');
|
||||
plural = acf.__('Categories');
|
||||
}
|
||||
}
|
||||
$('[data-label]').each((index, element) => {
|
||||
var useReplacement = $(element).data('replace') === 'plural' ? plural : singular;
|
||||
if ($(element).data('transform') === 'lower') {
|
||||
useReplacement = useReplacement.toLowerCase();
|
||||
}
|
||||
$(element).find('input[type="text"]').first().attr('placeholder', $(element).data('label').replace('%s', useReplacement));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* advancedSettingsMetaboxManager
|
||||
*
|
||||
* Screen options functionality for internal post types
|
||||
*
|
||||
* @since 6.1
|
||||
*/
|
||||
const advancedSettingsMetaboxManager = new acf.Model({
|
||||
id: 'advancedSettingsMetaboxManager',
|
||||
wait: 'load',
|
||||
events: {
|
||||
'change .acf-advanced-settings-toggle': 'onToggleACFAdvancedSettings',
|
||||
'change #screen-options-wrap #acf-advanced-settings-hide': 'onToggleScreenOptionsAdvancedSettings'
|
||||
},
|
||||
initialize: function () {
|
||||
this.$screenOptionsToggle = $('#screen-options-wrap #acf-advanced-settings-hide:first');
|
||||
this.$ACFAdvancedToggle = $('.acf-advanced-settings-toggle:first');
|
||||
this.render();
|
||||
},
|
||||
isACFAdvancedSettingsChecked: function () {
|
||||
// Screen option is hidden by filter.
|
||||
if (!this.$ACFAdvancedToggle.length) {
|
||||
return false;
|
||||
}
|
||||
return this.$ACFAdvancedToggle.prop('checked');
|
||||
},
|
||||
isScreenOptionsAdvancedSettingsChecked: function () {
|
||||
// Screen option is hidden by filter.
|
||||
if (!this.$screenOptionsToggle.length) {
|
||||
return false;
|
||||
}
|
||||
return this.$screenOptionsToggle.prop('checked');
|
||||
},
|
||||
onToggleScreenOptionsAdvancedSettings: function () {
|
||||
if (this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
if (!this.isACFAdvancedSettingsChecked()) {
|
||||
this.$ACFAdvancedToggle.trigger('click');
|
||||
}
|
||||
} else {
|
||||
if (this.isACFAdvancedSettingsChecked()) {
|
||||
this.$ACFAdvancedToggle.trigger('click');
|
||||
}
|
||||
}
|
||||
},
|
||||
onToggleACFAdvancedSettings: function () {
|
||||
if (this.isACFAdvancedSettingsChecked()) {
|
||||
if (!this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
this.$screenOptionsToggle.trigger('click');
|
||||
}
|
||||
} else {
|
||||
if (this.isScreenOptionsAdvancedSettingsChecked()) {
|
||||
this.$screenOptionsToggle.trigger('click');
|
||||
}
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
// On render, sync screen options to ACF's setting.
|
||||
this.onToggleACFAdvancedSettings();
|
||||
}
|
||||
});
|
||||
const linkFieldGroupsManger = new acf.Model({
|
||||
id: 'linkFieldGroupsManager',
|
||||
events: {
|
||||
'click .acf-link-field-groups': 'linkFieldGroups'
|
||||
},
|
||||
linkFieldGroups: function () {
|
||||
let popup = false;
|
||||
const step1 = function () {
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax({
|
||||
action: 'acf/link_field_groups'
|
||||
}),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: step2
|
||||
});
|
||||
};
|
||||
const step2 = function (response) {
|
||||
popup = acf.newPopup({
|
||||
title: response.data.title,
|
||||
content: response.data.content,
|
||||
width: '600px'
|
||||
});
|
||||
popup.$el.addClass('acf-link-field-groups-popup');
|
||||
popup.on('submit', 'form', step3);
|
||||
};
|
||||
const step3 = function (e) {
|
||||
e.preventDefault();
|
||||
const $select = popup.$('select');
|
||||
const val = $select.val();
|
||||
if (!val.length) {
|
||||
$select.focus();
|
||||
return;
|
||||
}
|
||||
acf.startButtonLoading(popup.$('.button'));
|
||||
|
||||
// get HTML
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax({
|
||||
action: 'acf/link_field_groups',
|
||||
field_groups: val
|
||||
}),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: step4
|
||||
});
|
||||
};
|
||||
const step4 = function (response) {
|
||||
popup.content(response.data.content);
|
||||
if (wp.a11y && wp.a11y.speak && acf.__) {
|
||||
wp.a11y.speak(acf.__('Field groups linked successfully.'), 'polite');
|
||||
}
|
||||
popup.$('button.acf-close-popup').focus();
|
||||
};
|
||||
step1();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/acf-internal-post-type.js ***!
|
||||
\********************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-internal-post-type.js */ "./src/advanced-custom-fields-pro/assets/src/js/_acf-internal-post-type.js");
|
||||
/* harmony import */ var _acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_internal_post_type_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-internal-post-type.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,672 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js":
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (() => {
|
||||
|
||||
(function ($) {
|
||||
/**
|
||||
* CloneDisplayFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var CloneDisplayFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'display',
|
||||
render: function () {
|
||||
// vars
|
||||
var display = this.field.val();
|
||||
|
||||
// set data attribute used by CSS to hide/show
|
||||
this.$fieldObject.attr('data-display', display);
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(CloneDisplayFieldSetting);
|
||||
|
||||
/**
|
||||
* ClonePrefixLabelFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var ClonePrefixLabelFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'prefix_label',
|
||||
render: function () {
|
||||
// vars
|
||||
var prefix = '';
|
||||
|
||||
// if checked
|
||||
if (this.field.val()) {
|
||||
prefix = this.fieldObject.prop('label') + ' ';
|
||||
}
|
||||
|
||||
// update HTML
|
||||
this.$('code').html(prefix + '%field_label%');
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(ClonePrefixLabelFieldSetting);
|
||||
|
||||
/**
|
||||
* ClonePrefixNameFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var ClonePrefixNameFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'clone',
|
||||
name: 'prefix_name',
|
||||
render: function () {
|
||||
// vars
|
||||
var prefix = '';
|
||||
|
||||
// if checked
|
||||
if (this.field.val()) {
|
||||
prefix = this.fieldObject.prop('name') + '_';
|
||||
}
|
||||
|
||||
// update HTML
|
||||
this.$('code').html(prefix + '%field_name%');
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(ClonePrefixNameFieldSetting);
|
||||
|
||||
/**
|
||||
* cloneFieldSelectHelper
|
||||
*
|
||||
* Customizes the clone field setting Select2 isntance
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var cloneFieldSelectHelper = new acf.Model({
|
||||
filters: {
|
||||
select2_args: 'select2Args'
|
||||
},
|
||||
select2Args: function (options, $select, data, $el, instance) {
|
||||
// check
|
||||
if (data.ajaxAction == 'acf/fields/clone/query') {
|
||||
// remain open on select
|
||||
options.closeOnSelect = false;
|
||||
|
||||
// customize ajaxData function
|
||||
instance.data.ajaxData = this.ajaxData;
|
||||
}
|
||||
|
||||
// return
|
||||
return options;
|
||||
},
|
||||
ajaxData: function (data) {
|
||||
// find current fields
|
||||
data.fields = {};
|
||||
|
||||
// loop
|
||||
acf.getFieldObjects().map(function (fieldObject) {
|
||||
// append
|
||||
data.fields[fieldObject.prop('key')] = {
|
||||
key: fieldObject.prop('key'),
|
||||
type: fieldObject.prop('type'),
|
||||
label: fieldObject.prop('label'),
|
||||
ancestors: fieldObject.getParents().length
|
||||
};
|
||||
});
|
||||
|
||||
// append title
|
||||
data.title = $('#title').val();
|
||||
|
||||
// return
|
||||
return data;
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js":
|
||||
/*!*******************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js ***!
|
||||
\*******************************************************************************************/
|
||||
/***/ (() => {
|
||||
|
||||
(function ($) {
|
||||
/**
|
||||
* CloneDisplayFieldSetting
|
||||
*
|
||||
* Extra logic for this field setting
|
||||
*
|
||||
* @date 18/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
|
||||
var FlexibleContentLayoutFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'flexible_content',
|
||||
name: 'fc_layout',
|
||||
events: {
|
||||
'blur .layout-label': 'onChangeLabel',
|
||||
'blur .layout-name': 'onChangeName',
|
||||
'click .add-layout': 'onClickAdd',
|
||||
'click .acf-field-settings-fc_head': 'onClickEdit',
|
||||
'click .acf-field-setting-fc-duplicate': 'onClickDuplicate',
|
||||
'click .acf-field-setting-fc-delete': 'onClickDelete',
|
||||
'changed:layoutLabel': 'updateLayoutTitles',
|
||||
'changed:layoutName': 'updateLayoutTitles'
|
||||
},
|
||||
$input: function (name) {
|
||||
return $('#' + this.getInputId() + '-' + name);
|
||||
},
|
||||
$list: function () {
|
||||
return this.$('.acf-field-list:first');
|
||||
},
|
||||
getInputId: function () {
|
||||
return this.fieldObject.getInputId() + '-layouts-' + this.field.get('id');
|
||||
},
|
||||
// get all sub fields
|
||||
getFields: function () {
|
||||
return acf.getFieldObjects({
|
||||
parent: this.$el
|
||||
});
|
||||
},
|
||||
// get immediate children
|
||||
getChildren: function () {
|
||||
return acf.getFieldObjects({
|
||||
list: this.$list()
|
||||
});
|
||||
},
|
||||
initialize: function () {
|
||||
// add sortable
|
||||
var $tbody = this.$el.parent();
|
||||
if (!$tbody.hasClass('ui-sortable')) {
|
||||
$tbody.sortable({
|
||||
items: '> .acf-field-setting-fc_layout',
|
||||
handle: '.acf-fc_draggable',
|
||||
forceHelperSize: true,
|
||||
forcePlaceholderSize: true,
|
||||
scroll: true,
|
||||
stop: this.proxy(function (event, ui) {
|
||||
this.fieldObject.save();
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// add meta to sub fields
|
||||
this.updateFieldLayouts();
|
||||
this.updateLayoutTitles();
|
||||
},
|
||||
updateFieldLayouts: function () {
|
||||
this.getChildren().map(this.updateFieldLayout, this);
|
||||
},
|
||||
updateFieldLayout: function (field) {
|
||||
field.prop('parent_layout', this.get('id'));
|
||||
},
|
||||
updateLayoutTitles: function () {
|
||||
const label = this.get('layoutLabel');
|
||||
const name = this.get('layoutName');
|
||||
const $layoutHeaderLabelText = this.$el.find('> .acf-label .acf-fc-layout-label');
|
||||
if (label) {
|
||||
$layoutHeaderLabelText.html(label);
|
||||
}
|
||||
const $layoutHeaderNameText = this.$el.find('> .acf-label .acf-fc-layout-name span');
|
||||
if (name) {
|
||||
$layoutHeaderNameText.html(name);
|
||||
$layoutHeaderNameText.parent().css('display', '');
|
||||
} else {
|
||||
$layoutHeaderNameText.parent().css('display', 'none');
|
||||
}
|
||||
},
|
||||
onClickEdit: function (e) {
|
||||
const $target = $(e.target);
|
||||
if ($target.hasClass('acf-btn') || $target.hasClass('copyable') || $target.parent().hasClass('acf-btn') || $target.parent().hasClass('copyable')) {
|
||||
return;
|
||||
}
|
||||
this.isOpen() ? this.close() : this.open();
|
||||
},
|
||||
isOpen: function (e) {
|
||||
const $settings = this.$el.children('.acf-field-layout-settings');
|
||||
return $settings.hasClass('open');
|
||||
},
|
||||
open: function (element, isAddingLayout) {
|
||||
const $settings = element ? element.children('.acf-field-layout-settings') : this.$el.children('.acf-field-layout-settings');
|
||||
const toggle = element ? element.find('.toggle-indicator').first() : this.$el.find('.toggle-indicator').first();
|
||||
|
||||
// action (show)
|
||||
acf.doAction('show', $settings);
|
||||
|
||||
// open
|
||||
if (isAddingLayout) {
|
||||
$settings.slideDown({
|
||||
complete: function () {
|
||||
$settings.find('.layout-label').trigger('focus');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$settings.slideDown();
|
||||
}
|
||||
toggle.addClass('open');
|
||||
if (toggle.hasClass('closed')) {
|
||||
toggle.removeClass('closed');
|
||||
}
|
||||
$settings.addClass('open');
|
||||
},
|
||||
close: function () {
|
||||
const $settings = this.$el.children('.acf-field-layout-settings');
|
||||
const toggle = this.$el.find('.toggle-indicator').first();
|
||||
|
||||
// close
|
||||
$settings.slideUp();
|
||||
$settings.removeClass('open');
|
||||
toggle.removeClass('open');
|
||||
if (!toggle.hasClass('closed')) {
|
||||
toggle.addClass('closed');
|
||||
}
|
||||
|
||||
// action (hide)
|
||||
acf.doAction('hide', $settings);
|
||||
},
|
||||
onChangeLabel: function (e, $el) {
|
||||
var label = $el.val();
|
||||
this.set('layoutLabel', label);
|
||||
this.$el.attr('data-layout-label', label);
|
||||
var $name = this.$input('name');
|
||||
|
||||
// render name
|
||||
if ($name.val() == '') {
|
||||
acf.val($name, acf.strSanitize(label));
|
||||
this.$el.find('.layout-name').trigger('blur');
|
||||
}
|
||||
},
|
||||
onChangeName: function (e, $el) {
|
||||
var name = $el.val();
|
||||
this.set('layoutName', name);
|
||||
this.$el.attr('data-layout-name', name);
|
||||
},
|
||||
onClickAdd: function (e, $el) {
|
||||
e.preventDefault();
|
||||
var prevKey = this.get('id');
|
||||
var newKey = acf.uniqid('layout_');
|
||||
|
||||
// duplicate
|
||||
$layout = acf.duplicate({
|
||||
$el: this.$el,
|
||||
search: prevKey,
|
||||
replace: newKey,
|
||||
after: function ($el, $el2) {
|
||||
var $list = $el2.find('.acf-field-list:first');
|
||||
|
||||
// remove sub fields
|
||||
$list.children('.acf-field-object').remove();
|
||||
|
||||
// show empty
|
||||
$list.addClass('-empty');
|
||||
|
||||
// reset layout meta values
|
||||
$el2.attr('data-layout-label', '');
|
||||
$el2.attr('data-layout-name', '');
|
||||
$el2.find('.acf-fc-meta input').val('');
|
||||
$el2.find('label.acf-fc-layout-label').html(acf.__('Layout'));
|
||||
}
|
||||
});
|
||||
|
||||
// get layout
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// update hidden input
|
||||
layout.$input('key').val(newKey);
|
||||
!this.isOpen() ? this.open(layout.$el, true) : layout.$el.find('.layout-label').trigger('focus');
|
||||
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
},
|
||||
onClickDuplicate: function (e, $el) {
|
||||
e.preventDefault();
|
||||
var prevKey = this.get('id');
|
||||
var newKey = acf.uniqid('layout_');
|
||||
|
||||
// duplicate
|
||||
$layout = acf.duplicate({
|
||||
$el: this.$el,
|
||||
search: prevKey,
|
||||
replace: newKey
|
||||
});
|
||||
|
||||
// get all fields in new layout similar to fieldManager.onDuplicateField().
|
||||
// important to run field.wipe() before making any changes to the "parent_layout" prop
|
||||
// to ensure the correct input is modified.
|
||||
var children = acf.getFieldObjects({
|
||||
parent: $layout
|
||||
});
|
||||
if (children.length) {
|
||||
// loop
|
||||
children.map(function (child) {
|
||||
// wipe field
|
||||
child.wipe();
|
||||
|
||||
// if the child is open, re-fire the open method to ensure it's initialised correctly.
|
||||
if (child.isOpen()) {
|
||||
child.open();
|
||||
}
|
||||
|
||||
// update parent
|
||||
child.updateParent();
|
||||
});
|
||||
|
||||
// action
|
||||
acf.doAction('duplicate_field_objects', children, this.fieldObject, this.fieldObject);
|
||||
}
|
||||
|
||||
// get layout
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// get current label/names so we can prepare to append 'copy'
|
||||
var label = layout.get('layoutLabel');
|
||||
var name = layout.get('layoutName');
|
||||
var end = name.split('_').pop();
|
||||
var copy = acf.__('copy');
|
||||
|
||||
// increase suffix "1"
|
||||
if (acf.isNumeric(end)) {
|
||||
var i = end * 1 + 1;
|
||||
label = label.replace(end, i);
|
||||
name = name.replace(end, i);
|
||||
|
||||
// increase suffix "(copy1)"
|
||||
} else if (end.indexOf(copy) === 0) {
|
||||
var i = end.replace(copy, '') * 1;
|
||||
i = i ? i + 1 : 2;
|
||||
|
||||
// replace
|
||||
label = label.replace(end, copy + i);
|
||||
name = name.replace(end, copy + i);
|
||||
|
||||
// add default "(copy)"
|
||||
} else {
|
||||
label += ' (' + copy + ')';
|
||||
name += '_' + copy;
|
||||
}
|
||||
|
||||
// update inputs and data attributes which will trigger header label updates too.
|
||||
layout.$input('label').val(label);
|
||||
layout.set('layoutLabel', label);
|
||||
layout.$el.attr('data-layout-label', label);
|
||||
layout.$input('name').val(name);
|
||||
layout.set('layoutName', name);
|
||||
layout.$el.attr('data-layout-name', name);
|
||||
|
||||
// update hidden input
|
||||
layout.$input('key').val(newKey);
|
||||
!this.isOpen() ? this.open(layout.$el, true) : layout.$el.find('.layout-label').trigger('focus');
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
},
|
||||
onClickDelete: function (e, $el) {
|
||||
e.preventDefault();
|
||||
// Bypass confirmation when holding down "shift" key.
|
||||
if (e.shiftKey) {
|
||||
return this.delete();
|
||||
}
|
||||
|
||||
// add class
|
||||
this.$el.addClass('-hover');
|
||||
|
||||
// add tooltip
|
||||
var tooltip = acf.newTooltip({
|
||||
confirmRemove: true,
|
||||
target: $el,
|
||||
context: this,
|
||||
confirm: function () {
|
||||
this.delete();
|
||||
},
|
||||
cancel: function () {
|
||||
this.$el.removeClass('-hover');
|
||||
}
|
||||
});
|
||||
},
|
||||
delete: function () {
|
||||
var $siblings = this.$el.siblings('.acf-field-setting-fc_layout');
|
||||
|
||||
// validate
|
||||
if (!$siblings.length) {
|
||||
alert(acf.__('Flexible Content requires at least 1 layout'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// delete sub fields
|
||||
this.getFields().map(function (child) {
|
||||
child.delete({
|
||||
animate: false
|
||||
});
|
||||
});
|
||||
|
||||
// remove tr
|
||||
acf.remove(this.$el);
|
||||
|
||||
// save
|
||||
this.fieldObject.save();
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(FlexibleContentLayoutFieldSetting);
|
||||
|
||||
/**
|
||||
* flexibleContentHelper
|
||||
*
|
||||
* description
|
||||
*
|
||||
* @date 19/4/18
|
||||
* @since 5.6.9
|
||||
*
|
||||
* @param type $var Description. Default.
|
||||
* @return type Description.
|
||||
*/
|
||||
|
||||
var flexibleContentHelper = new acf.Model({
|
||||
actions: {
|
||||
sortstop_field_object: 'updateParentLayout',
|
||||
change_field_object_parent: 'updateParentLayout'
|
||||
},
|
||||
updateParentLayout: function (fieldObject) {
|
||||
var parent = fieldObject.getParent();
|
||||
|
||||
// delete meta
|
||||
if (!parent || parent.prop('type') !== 'flexible_content') {
|
||||
fieldObject.prop('parent_layout', null);
|
||||
return;
|
||||
}
|
||||
|
||||
// get layout
|
||||
var $layout = fieldObject.$el.closest('.acf-field-setting-fc_layout');
|
||||
var layout = acf.getFieldSetting($layout);
|
||||
|
||||
// check if previous prop exists
|
||||
// - if not, set prop to allow following code to trigger 'change' and save the field
|
||||
if (!fieldObject.has('parent_layout')) {
|
||||
fieldObject.prop('parent_layout', 0);
|
||||
}
|
||||
|
||||
// update meta
|
||||
fieldObject.prop('parent_layout', layout.get('id'));
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js":
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js ***!
|
||||
\***********************************************************************************/
|
||||
/***/ (() => {
|
||||
|
||||
(function ($) {
|
||||
/*
|
||||
* Repeater
|
||||
*
|
||||
* This field type requires some extra logic for its settings
|
||||
*
|
||||
* @type function
|
||||
* @date 24/10/13
|
||||
* @since 5.0.0
|
||||
*
|
||||
* @param n/a
|
||||
* @return n/a
|
||||
*/
|
||||
|
||||
var RepeaterCollapsedFieldSetting = acf.FieldSetting.extend({
|
||||
type: 'repeater',
|
||||
name: 'collapsed',
|
||||
events: {
|
||||
'focus select': 'onFocus'
|
||||
},
|
||||
onFocus: function (e, $el) {
|
||||
// vars
|
||||
var $select = $el;
|
||||
|
||||
// collapsed
|
||||
var choices = [];
|
||||
|
||||
// keep 'null' choice
|
||||
choices.push({
|
||||
label: $select.find('option[value=""]').text(),
|
||||
value: ''
|
||||
});
|
||||
|
||||
// find sub fields
|
||||
var $list = this.fieldObject.$('.acf-field-list:first');
|
||||
var fields = acf.getFieldObjects({
|
||||
list: $list
|
||||
});
|
||||
|
||||
// loop
|
||||
fields.map(function (field) {
|
||||
choices.push({
|
||||
label: field.prop('label'),
|
||||
value: field.prop('key')
|
||||
});
|
||||
});
|
||||
|
||||
// render
|
||||
acf.renderSelect($select, choices);
|
||||
}
|
||||
});
|
||||
acf.registerFieldSetting(RepeaterCollapsedFieldSetting);
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/acf-pro-field-group.js ***!
|
||||
\*********************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-setting-repeater.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-repeater.js");
|
||||
/* harmony import */ var _acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_repeater_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_acf-setting-flexible-content.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-flexible-content.js");
|
||||
/* harmony import */ var _acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_flexible_content_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_acf-setting-clone.js */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-setting-clone.js");
|
||||
/* harmony import */ var _acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_acf_setting_clone_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
|
||||
|
||||
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-pro-field-group.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,260 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js":
|
||||
/*!**********************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js ***!
|
||||
\**********************************************************************************/
|
||||
/***/ (() => {
|
||||
|
||||
(function ($, undefined) {
|
||||
const parentPageSelectTemplate = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
|
||||
// Hides the optgroup for the "No Parent" option.
|
||||
if (selection.children && 'None' === selection.text) {
|
||||
return;
|
||||
}
|
||||
if ('acfOptionsPages' === selection.text) {
|
||||
selection.text = acf.__('Options Pages');
|
||||
}
|
||||
return $('<span class="acf-selection"></span>').data('element', selection.element).html(acf.escHtml(selection.text));
|
||||
};
|
||||
const defaultPillTemplate = function (selection) {
|
||||
if ('undefined' === typeof selection.element) {
|
||||
return selection;
|
||||
}
|
||||
const $selection = $('<span class="acf-selection"></span>');
|
||||
$selection.html(acf.escHtml(selection.element.innerHTML));
|
||||
if (selection.id === 'options' || selection.id === 'edit_posts') {
|
||||
$selection.append('<span class="acf-select2-default-pill">' + acf.__('Default') + '</span>');
|
||||
}
|
||||
$selection.data('element', selection.element);
|
||||
return $selection;
|
||||
};
|
||||
const UIOptionsPageManager = new acf.Model({
|
||||
id: 'UIOptionsPageManager',
|
||||
wait: 'ready',
|
||||
events: {
|
||||
'change .acf-options-page-parent_slug': 'toggleMenuPositionDesc'
|
||||
},
|
||||
initialize: function () {
|
||||
if ('ui_options_page' !== acf.get('screen')) {
|
||||
return;
|
||||
}
|
||||
acf.newSelect2($('select.acf-options-page-parent_slug'), {
|
||||
field: false,
|
||||
templateSelection: parentPageSelectTemplate,
|
||||
templateResult: parentPageSelectTemplate,
|
||||
dropdownCssClass: 'field-type-select-results'
|
||||
});
|
||||
acf.newSelect2($('select.acf-options-page-capability'), {
|
||||
field: false,
|
||||
templateSelection: defaultPillTemplate,
|
||||
templateResult: defaultPillTemplate
|
||||
});
|
||||
acf.newSelect2($('select.acf-options-page-data_storage'), {
|
||||
field: false,
|
||||
templateSelection: defaultPillTemplate,
|
||||
templateResult: defaultPillTemplate
|
||||
});
|
||||
this.toggleMenuPositionDesc();
|
||||
},
|
||||
toggleMenuPositionDesc: function (e, $el) {
|
||||
const parentPage = $('select.acf-options-page-parent_slug').val();
|
||||
if ('none' === parentPage) {
|
||||
$('.acf-menu-position-desc-child').hide();
|
||||
$('.acf-menu-position-desc-parent').show();
|
||||
} else {
|
||||
$('.acf-menu-position-desc-parent').hide();
|
||||
$('.acf-menu-position-desc-child').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
const optionsPageModalManager = new acf.Model({
|
||||
id: 'optionsPageModalManager',
|
||||
events: {
|
||||
'change .location-rule-value': 'createOptionsPage'
|
||||
},
|
||||
createOptionsPage: function (e) {
|
||||
const $locationSelect = $(e.target);
|
||||
if ('add_new_options_page' !== $locationSelect.val()) {
|
||||
return;
|
||||
}
|
||||
let popup = false;
|
||||
const getForm = function () {
|
||||
const fieldGroupTitle = $('.acf-headerbar-title-field').val();
|
||||
const ajaxData = {
|
||||
action: 'acf/create_options_page',
|
||||
acf_parent_page_choices: this.acf.data.optionPageParentOptions ? this.acf.data.optionPageParentOptions : []
|
||||
};
|
||||
if (fieldGroupTitle.length) {
|
||||
ajaxData.field_group_title = fieldGroupTitle;
|
||||
}
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax(ajaxData),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: populateForm
|
||||
});
|
||||
};
|
||||
const populateForm = function (response) {
|
||||
popup = acf.newPopup({
|
||||
title: response.data.title,
|
||||
content: response.data.content,
|
||||
width: '600px'
|
||||
});
|
||||
popup.$el.addClass('acf-create-options-page-popup');
|
||||
|
||||
// Hack to focus with the cursor at the end of the input.
|
||||
const $pageTitle = popup.$el.find('#acf_ui_options_page-page_title');
|
||||
const pageTitleVal = $pageTitle.val();
|
||||
$pageTitle.focus().val('').val(pageTitleVal);
|
||||
acf.newSelect2($('#acf_ui_options_page-parent_slug'), {
|
||||
field: false,
|
||||
templateSelection: parentPageSelectTemplate,
|
||||
templateResult: parentPageSelectTemplate,
|
||||
dropdownCssClass: 'field-type-select-results'
|
||||
});
|
||||
popup.on('submit', 'form', validateForm);
|
||||
};
|
||||
const validateForm = function (e) {
|
||||
e.preventDefault();
|
||||
acf.validateForm({
|
||||
form: $('#acf-create-options-page-form'),
|
||||
success: submitForm,
|
||||
failure: onFail
|
||||
});
|
||||
};
|
||||
const submitForm = function () {
|
||||
const formValues = $('#acf-create-options-page-form').serializeArray();
|
||||
const ajaxData = {
|
||||
action: 'acf/create_options_page'
|
||||
};
|
||||
formValues.forEach(setting => {
|
||||
ajaxData[setting.name] = setting.value;
|
||||
});
|
||||
$.ajax({
|
||||
url: acf.get('ajaxurl'),
|
||||
data: acf.prepareForAjax(ajaxData),
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: populateLocationSelect
|
||||
});
|
||||
};
|
||||
const onFail = function (e) {
|
||||
const $form = $('#acf-create-options-page-form');
|
||||
const $fieldNotices = $form.find('.acf-field .acf-error-message');
|
||||
|
||||
// Hide the general validation failed notice.
|
||||
$form.find('.acf-notice').first().remove();
|
||||
|
||||
// Update class for inline notices and move into field label.
|
||||
$fieldNotices.each(function () {
|
||||
const $label = $(this).closest('.acf-field').find('.acf-label:first');
|
||||
$(this).attr('class', 'acf-options-page-modal-error').appendTo($label);
|
||||
});
|
||||
};
|
||||
const populateLocationSelect = function (response) {
|
||||
if (response.success && response.data.menu_slug) {
|
||||
$locationSelect.prepend('<option value="' + response.data.menu_slug + '">' + response.data.page_title + '</option>');
|
||||
$locationSelect.val(response.data.menu_slug);
|
||||
popup.close();
|
||||
} else if (!response.success && response.data.error) {
|
||||
alert(response.data.error);
|
||||
}
|
||||
};
|
||||
getForm();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||||
(() => {
|
||||
"use strict";
|
||||
/*!*************************************************************************************!*\
|
||||
!*** ./src/advanced-custom-fields-pro/assets/src/js/pro/acf-pro-ui-options-page.js ***!
|
||||
\*************************************************************************************/
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_acf-ui-options-page */ "./src/advanced-custom-fields-pro/assets/src/js/pro/_acf-ui-options-page.js");
|
||||
/* harmony import */ var _acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_acf_ui_options_page__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=acf-pro-ui-options-page.js.map
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(()=>{var e={412:()=>{!function(e,t){const a=function(t){return void 0===t.element?t:t.children&&"None"===t.text?void 0:("acfOptionsPages"===t.text&&(t.text=acf.__("Options Pages")),e('<span class="acf-selection"></span>').data("element",t.element).html(acf.escHtml(t.text)))},n=function(t){if(void 0===t.element)return t;const a=e('<span class="acf-selection"></span>');return a.html(acf.escHtml(t.element.innerHTML)),"options"!==t.id&&"edit_posts"!==t.id||a.append('<span class="acf-select2-default-pill">'+acf.__("Default")+"</span>"),a.data("element",t.element),a};new acf.Model({id:"UIOptionsPageManager",wait:"ready",events:{"change .acf-options-page-parent_slug":"toggleMenuPositionDesc"},initialize:function(){"ui_options_page"===acf.get("screen")&&(acf.newSelect2(e("select.acf-options-page-parent_slug"),{field:!1,templateSelection:a,templateResult:a,dropdownCssClass:"field-type-select-results"}),acf.newSelect2(e("select.acf-options-page-capability"),{field:!1,templateSelection:n,templateResult:n}),acf.newSelect2(e("select.acf-options-page-data_storage"),{field:!1,templateSelection:n,templateResult:n}),this.toggleMenuPositionDesc())},toggleMenuPositionDesc:function(t,a){"none"===e("select.acf-options-page-parent_slug").val()?(e(".acf-menu-position-desc-child").hide(),e(".acf-menu-position-desc-parent").show()):(e(".acf-menu-position-desc-parent").hide(),e(".acf-menu-position-desc-child").show())}}),new acf.Model({id:"optionsPageModalManager",events:{"change .location-rule-value":"createOptionsPage"},createOptionsPage:function(t){const n=e(t.target);if("add_new_options_page"!==n.val())return;let o=!1;const s=function(t){o=acf.newPopup({title:t.data.title,content:t.data.content,width:"600px"}),o.$el.addClass("acf-create-options-page-popup");const n=o.$el.find("#acf_ui_options_page-page_title"),s=n.val();n.focus().val("").val(s),acf.newSelect2(e("#acf_ui_options_page-parent_slug"),{field:!1,templateSelection:a,templateResult:a,dropdownCssClass:"field-type-select-results"}),o.on("submit","form",c)},c=function(t){t.preventDefault(),acf.validateForm({form:e("#acf-create-options-page-form"),success:i,failure:l})},i=function(){const t=e("#acf-create-options-page-form").serializeArray(),a={action:"acf/create_options_page"};t.forEach((e=>{a[e.name]=e.value})),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},l=function(t){const a=e("#acf-create-options-page-form"),n=a.find(".acf-field .acf-error-message");a.find(".acf-notice").first().remove(),n.each((function(){const t=e(this).closest(".acf-field").find(".acf-label:first");e(this).attr("class","acf-options-page-modal-error").appendTo(t)}))},p=function(e){e.success&&e.data.menu_slug?(n.prepend('<option value="'+e.data.menu_slug+'">'+e.data.page_title+"</option>"),n.val(e.data.menu_slug),o.close()):!e.success&&e.data.error&&alert(e.data.error)};!function(){const t=e(".acf-headerbar-title-field").val(),a={action:"acf/create_options_page",acf_parent_page_choices:this.acf.data.optionPageParentOptions?this.acf.data.optionPageParentOptions:[]};t.length&&(a.field_group_title=t),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:s})}()}})}(jQuery)}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";a(412)})()})();
|
Reference in New Issue
Block a user