Privacy: add a postbox that is shown when editing the privacy policy page, and where plugins and core will output suggested content and additional privacy info. First run.

Props melchoyce, azaozz.
See #43620.

git-svn-id: https://develop.svn.wordpress.org/trunk@42980 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2018-04-16 08:52:18 +00:00
parent 1a40a17275
commit 257842079c
9 changed files with 526 additions and 2 deletions
+4 -2
View File
@@ -2990,7 +2990,8 @@ img {
/* Metabox collapse arrow indicators */
.sidebar-name .toggle-indicator:before,
.js .meta-box-sortables .postbox .toggle-indicator:before,
.bulk-action-notice .toggle-indicator:before {
.bulk-action-notice .toggle-indicator:before,
.privacy-text-box .toggle-indicator:before {
content: "\f142";
display: inline-block;
font: normal 20px/1 dashicons;
@@ -3002,7 +3003,8 @@ img {
.js .widgets-holder-wrap.closed .toggle-indicator:before,
.js .meta-box-sortables .postbox.closed .handlediv .toggle-indicator:before,
.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before {
.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator:before,
.privacy-text-box.closed .toggle-indicator:before {
content: "\f140";
}
+62
View File
@@ -646,6 +646,68 @@ span.wp-media-buttons-icon:before {
margin-bottom: 20px;
}
/* Sugested text for privacy policy postbox */
.privacy-text-box {
margin: 10px 0 0;
}
.privacy-text-box-head {
border-left: 4px solid #ffb900;
border-bottom: 1px solid #e5e5e5;
box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.privacy-text-box .privacy-text-box-head.hndle {
cursor: pointer;
}
.privacy-text-box-head p {
padding: 0 12px 14px;
margin: 0;
}
.privacy-text-box-body {
height: 320px;
overflow: auto;
}
#privacy-text-box .inside {
margin: 0;
}
.privacy-text-box h3 {
font-size: 1em;
margin: 1em 0;
}
.privacy-text-section .privacy-text-copy-button {
float: right;
margin-top: -1.8em;
}
.privacy-text-section {
padding: 1px 14px 1px 12px;
border-top: 1px solid #e3e3e3;
border-left: 4px solid transparent;
}
.privacy-text-section.text-updated {
border-left-color: #46b450;
background-color: #ecf7ed;
}
.privacy-text-section.text-removed {
border-left-color: #dc3232;
background-color: #fbeaea;
}
.closed .privacy-text-box-body {
display: none;
}
/*------------------------------------------------------------------------------
11.1 - Custom Fields
------------------------------------------------------------------------------*/