first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,653 @@
/* Kludge for too-wide forums dropdown */
#poststuff #bbp_forum_attributes select#parent_id,
#poststuff #bbp_topic_attributes select#parent_id,
#poststuff #bbp_reply_attributes select#bbp_forum_id,
#poststuff #bbp_reply_attributes select#bbp_reply_to {
max-width: 170px;
}
/* Version Badge */
.bbp-badge {
transform-origin: top right;
animation: swoop 16s infinite linear;
}
.bbp-bee {
font: 400 80px/1 dashicons !important;
color: #000;
position: absolute;
height: 60px;
width: 60px;
}
.bbp-hive {
font: 400 150px/1 dashicons !important;
color: #ccc;
position: absolute;
height: 150px;
width: 150px;
top: 0;
left: 0;
display: block;
}
.bbp-bee::before {
content: "\f451";
}
.bbp-hive::before {
content: "\f449";
}
.notice-bbpress {
border-right: 4px solid #78cd95;
padding-right: 36px;
background-color: rgb(235, 255, 235);
position: relative;
}
.notice-bbpress .bbpress-logo-icon {
position: absolute;
height: auto;
width: auto;
padding: 7px 9px;
top: 50%;
right: 0;
transform: translateY(-50%);
font: 400 24px/1 dashicons !important;
}
.notice-bbpress .bbpress-logo-icon::before {
content: "\f477";
color: #555;
}
@keyframes buzz {
0% {
left: -2px;
top: -1px;
}
25% {
left: 1px;
top: 2px;
}
50% {
left: -3px;
top: -1px;
}
75% {
left: 2px;
top: 1px;
}
0% {
left: -2px;
top: -1px;
}
}
@keyframes swoop {
0% {
transform: rotate(-95deg);
}
100% {
transform: rotate(-455deg);
}
}
.about-wrap .bbp-badge {
position: absolute;
left: 50px;
top: 50px;
height: 25px;
width: 25px;
}
body.rtl .about-wrap .bbp-badge {
left: auto;
right: 50px;
}
/* Dashicons */
th .bbp_forums_column::before,
#dashboard_right_now a.bbp-glance-forums::before,
#adminmenu #menu-posts-forum .wp-menu-image::before {
content: "\f449";
}
th .bbp_topics_column::before,
#dashboard_right_now a.bbp-glance-topics::before,
#adminmenu #menu-posts-topic .wp-menu-image::before {
content: "\f450";
}
th .bbp_replies_column::before,
#dashboard_right_now a.bbp-glance-replies::before,
#adminmenu #menu-posts-reply .wp-menu-image::before {
content: "\f451";
}
#dashboard_right_now a.bbp-glance-topic-tags::before {
content: "\f323";
}
#dashboard_right_now a.bbp-glance-users::before {
content: "\f110";
}
th .bbp_forums_column,
th .bbp_topics_column,
th .bbp_replies_column {
height: 16px;
width: 16px;
}
th .bbp_forums_column::before,
th .bbp_topics_column::before,
th .bbp_replies_column::before {
font: 400 20px/0.5 dashicons;
speak: none;
display: inline-block;
padding: 0;
top: 4px;
right: -4px;
position: relative;
vertical-align: top;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
color: #444;
}
/* Deprecated Dashboard Metabox */
#bbp-dashboard-right-now p.sub,
#bbp-dashboard-right-now .table,
#bbp-dashboard-right-now .versions {
margin: -12px;
}
#bbp-dashboard-right-now .inside {
font-size: 12px;
padding-top: 20px;
margin-bottom: 0;
}
#bbp-dashboard-right-now p.sub {
padding: 5px 0 15px;
color: #8f8f8f;
font-size: 14px;
position: absolute;
top: -17px;
right: 15px;
}
body.rtl #bbp-dashboard-right-now p.sub {
left: 15px;
right: 0;
}
#bbp-dashboard-right-now .table {
margin: 0;
padding: 0;
position: relative;
}
#bbp-dashboard-right-now .table_content {
float: right;
border-top: #ececec 1px solid;
width: 45%;
}
body.rtl #bbp-dashboard-right-now .table_content {
float: left;
}
#bbp-dashboard-right-now .table_discussion {
float: left;
border-top: #ececec 1px solid;
width: 45%;
}
body.rtl #bbp-dashboard-right-now .table_discussion {
float: right;
}
#bbp-dashboard-right-now table td {
padding: 3px 0;
white-space: nowrap;
}
#bbp-dashboard-right-now table tr.first td {
border-top: none;
}
#bbp-dashboard-right-now td.b {
padding-left: 6px;
text-align: left;
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
font-size: 14px;
width: 1%;
}
body.rtl #bbp-dashboard-right-now td.b {
padding-right: 6px;
padding-left: 0;
}
#bbp-dashboard-right-now td.b a {
font-size: 18px;
}
#bbp-dashboard-right-now td.b a:hover {
color: #d54e21;
}
#bbp-dashboard-right-now .t {
font-size: 12px;
padding-left: 12px;
padding-top: 6px;
color: #777;
}
body.rtl #bbp-dashboard-right-now .t {
padding-right: 12px;
padding-left: 0;
}
#bbp-dashboard-right-now .t a {
white-space: nowrap;
}
#bbp-dashboard-right-now .spam {
color: #f00;
}
#bbp-dashboard-right-now .waiting {
color: #e66f00;
}
#bbp-dashboard-right-now .approved {
color: #0f0;
}
#bbp-dashboard-right-now .versions {
padding: 6px 10px 12px;
clear: both;
}
#bbp-dashboard-right-now .versions .b {
font-weight: 700;
}
#bbp-dashboard-right-now a.button {
float: left;
clear: left;
position: relative;
top: -5px;
}
body.rtl #bbp-dashboard-right-now a.button {
float: right;
clear: right;
}
/* List Tables */
body.post-type-forum #minor-publishing,
body.post-type-forum #save-post {
display: none;
}
body.post-type-forum strong.label,
body.post-type-topic strong.label,
body.post-type-reply strong.label {
display: inline-block;
width: 60px;
}
.column-bbp_forum_topic_count,
.column-bbp_forum_reply_count,
.column-bbp_topic_reply_count,
.column-bbp_topic_voice_count {
width: 8% !important;
}
.column-author,
.column-bbp_forum_mods,
.column-bbp_reply_author,
.column-bbp_topic_author {
width: 10% !important;
}
.column-bbp_topic_forum,
.column-bbp_reply_forum,
.column-bbp_reply_topic {
width: 10% !important;
}
.column-bbp_forum_freshness,
.column-bbp_topic_freshness {
width: 10% !important;
}
.column-bbp_user_role,
.column-bbp_forum_created,
.column-bbp_topic_created,
.column-bbp_reply_created {
width: 15% !important;
}
.column-bbp_topic_reply_author,
.column-bbp_forum_topic_author {
width: 25% !important;
}
.column-bbp_topic_reply_author .avatar,
.column-bbp_forum_topic_author .avatar {
float: right;
margin-left: 10px;
}
#bbp_moderators {
width: 100%;
}
#bbp_forum_attributes hr {
border-style: solid;
border-width: 1px;
border-color: #ccc #ccc #fff #fff;
}
body.post-type-forum tbody .status-closed,
body.post-type-topic tbody .status-closed,
body.post-type-reply tbody .status-closed {
background-color: #f5f5f5;
}
body.post-type-forum tbody .status-closed:nth-child(odd),
body.post-type-topic tbody .status-closed:nth-child(odd),
body.post-type-reply tbody .status-closed:nth-child(odd) {
background-color: #f0f0f0;
}
body.post-type-forum tbody .status-spam,
body.post-type-topic tbody .status-spam,
body.post-type-reply tbody .status-spam,
#bbp-reply-list .status-trash {
background-color: #fee;
}
body.post-type-forum tbody .status-spam:nth-child(odd),
body.post-type-topic tbody .status-spam:nth-child(odd),
body.post-type-reply tbody .status-spam:nth-child(odd),
#bbp-reply-list .status-trash:nth-child(odd) {
background-color: #fdd;
}
body.post-type-forum tbody .status-pending,
body.post-type-topic tbody .status-pending,
body.post-type-reply tbody .status-pending {
background-color: #fff2e8;
}
body.post-type-forum tbody .status-pending:nth-child(odd),
body.post-type-topic tbody .status-pending:nth-child(odd),
body.post-type-reply tbody .status-pending:nth-child(odd) {
background-color: #fff7f1;
}
body.post-type-forum tbody .status-closed td,
body.post-type-topic tbody .status-closed td,
body.post-type-reply tbody .status-closed td,
body.post-type-forum tbody .status-spam td,
body.post-type-topic tbody .status-spam td,
body.post-type-reply tbody .status-spam td,
#bbp-reply-list .status-trash td {
color: #999;
}
body.post-type-forum tbody .row-actions .unspam a,
body.post-type-topic tbody .row-actions .unspam a,
body.post-type-reply tbody .row-actions .unspam a,
body.post-type-forum tbody .row-actions .approved a,
body.post-type-topic tbody .row-actions .approved a,
body.post-type-reply tbody .row-actions .approved a {
color: #006505;
}
/* User Relationships */
#bbp_topic_engagements_metabox .avatar,
#bbp_topic_favorites_metabox .avatar,
#bbp_topic_subscriptions_metabox .avatar {
margin: 3px;
}
/* Converter */
.bbp-converter-settings-wrap {
float: right;
width: 55%;
}
#poststuff.bbp-converter-monitor-wrap {
float: left;
width: 43%;
margin-right: 2%;
min-width: 200px;
}
#bbp-converter-monitor h2 {
position: relative;
}
#bbp-converter-monitor .inside {
margin: 0;
padding: 5px;
border-bottom: 1px solid #e5e5e5;
}
#bbp-converter-monitor div.actions {
padding: 10px;
background: #fafafa;
clear: both;
}
#bbp-converter-spinner {
margin: 4px 0;
}
div.bbp-converter-log,
div.bbp-converter-warning {
padding: 5px 5px 5px 0;
}
div.bbp-converter-log.started {
height: 300px;
overflow: auto;
}
div.bbp-converter-log p {
margin: 0;
padding: 2px;
}
div.bbp-converter-log p:only-child {
float: none;
margin-bottom: 0;
}
div.bbp-converter-log div {
padding: 10px;
margin: 5px;
background: #f4f4f4;
border: 1px solid #ddd;
}
div.bbp-converter-log div code {
margin-top: 5px;
display: block;
}
div.bbp-converter-log .step {
text-align: left;
font-weight: 600;
}
div.bbp-converter-log .output {
margin: 0 5px;
}
div.bbp-converter-log .mini-step {
padding: 3px 5px;
vertical-align: middle;
font-size: 8px;
font-weight: 600;
border-radius: 6px;
background-color: #aaa;
color: #fff;
}
#bbp-converter-monitor .bbp-progress-bar {
position: absolute;
right: 0;
height: 1px;
width: 0;
background-color: #00b9eb;
transition-property: width;
transition-timing-function: ease-out;
transition-duration: 1s;
}
#bbp-converter-monitor #bbp-converter-step-percentage {
bottom: 1px;
}
#bbp-converter-monitor #bbp-converter-total-percentage {
bottom: 0;
}
#bbp-converter-stop {
display: none;
}
#bbp-converter-status {
font-weight: 400;
font-size: 12px;
color: #aaa;
display: block;
margin-top: 2px;
}
.bbp-converter-db-password-wrapper {
display: inline-block;
position: relative;
}
.bbp-converter-db-pass::-webkit-credentials-auto-fill-button {
display: none;
visibility: hidden;
pointer-events: none;
position: absolute;
left: 0;
}
button.bbp-db-pass-toggle {
border: none;
background: transparent;
position: absolute;
left: 3px;
top: 3px;
padding: 0;
margin: 0;
cursor: pointer;
color: #aaa;
height: 25px;
width: 25px;
font: 400 20px/1 dashicons !important;
}
button.bbp-db-pass-toggle:hover {
color: #888;
}
button.bbp-db-pass-toggle.text::after {
content: "\f530";
}
button.bbp-db-pass-toggle.password::after {
content: "\f177";
}
@media screen and ( max-width: 782px ) {
.bbp-converter-db-password-wrapper {
width: 100%;
}
#poststuff.bbp-converter-monitor-wrap,
.bbp-converter-settings-wrap {
float: none;
width: 100%;
margin: 20px 0;
}
button.bbp-db-pass-toggle {
height: 35px;
width: 35px;
font: 400 20px/1 dashicons !important;
}
}
/* Tools */
td.bbp-tool-title strong {
display: block;
}
td.bbp-tool-title p {
margin: 0;
}
.manage-column.column-components {
width: 20%;
}
.manage-column.column-version {
width: 11%;
}
.manage-column.column-overhead {
width: 13%;
}
.nav-tab-wrapper a span.awaiting-mod {
display: inline-block;
vertical-align: top;
margin: 3px 1px 0 0;
padding: 0 5px;
min-width: 7px;
height: 17px;
border-radius: 11px;
background-color: #ca4a1f;
color: #fff;
font-size: 9px;
line-height: 17px;
text-align: center;
z-index: 26;
}
/* Retro TV corners for contributor avatars */
.dashboard_page_bbp-credits .wp-person img {
border-radius: 20px;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,653 @@
/* Kludge for too-wide forums dropdown */
#poststuff #bbp_forum_attributes select#parent_id,
#poststuff #bbp_topic_attributes select#parent_id,
#poststuff #bbp_reply_attributes select#bbp_forum_id,
#poststuff #bbp_reply_attributes select#bbp_reply_to {
max-width: 170px;
}
/* Version Badge */
.bbp-badge {
transform-origin: top left;
animation: swoop 16s infinite linear;
}
.bbp-bee {
font: 400 80px/1 dashicons !important;
color: #000;
position: absolute;
height: 60px;
width: 60px;
}
.bbp-hive {
font: 400 150px/1 dashicons !important;
color: #ccc;
position: absolute;
height: 150px;
width: 150px;
top: 0;
right: 0;
display: block;
}
.bbp-bee::before {
content: "\f451";
}
.bbp-hive::before {
content: "\f449";
}
.notice-bbpress {
border-left: 4px solid #78cd95;
padding-left: 36px;
background-color: rgb(235, 255, 235);
position: relative;
}
.notice-bbpress .bbpress-logo-icon {
position: absolute;
height: auto;
width: auto;
padding: 7px 9px;
top: 50%;
left: 0;
transform: translateY(-50%);
font: 400 24px/1 dashicons !important;
}
.notice-bbpress .bbpress-logo-icon::before {
content: "\f477";
color: #555;
}
@keyframes buzz {
0% {
right: -2px;
top: -1px;
}
25% {
right: 1px;
top: 2px;
}
50% {
right: -3px;
top: -1px;
}
75% {
right: 2px;
top: 1px;
}
0% {
right: -2px;
top: -1px;
}
}
@keyframes swoop {
0% {
transform: rotate(95deg);
}
100% {
transform: rotate(455deg);
}
}
.about-wrap .bbp-badge {
position: absolute;
right: 50px;
top: 50px;
height: 25px;
width: 25px;
}
body.rtl .about-wrap .bbp-badge {
right: auto;
left: 50px;
}
/* Dashicons */
th .bbp_forums_column::before,
#dashboard_right_now a.bbp-glance-forums::before,
#adminmenu #menu-posts-forum .wp-menu-image::before {
content: "\f449";
}
th .bbp_topics_column::before,
#dashboard_right_now a.bbp-glance-topics::before,
#adminmenu #menu-posts-topic .wp-menu-image::before {
content: "\f450";
}
th .bbp_replies_column::before,
#dashboard_right_now a.bbp-glance-replies::before,
#adminmenu #menu-posts-reply .wp-menu-image::before {
content: "\f451";
}
#dashboard_right_now a.bbp-glance-topic-tags::before {
content: "\f323";
}
#dashboard_right_now a.bbp-glance-users::before {
content: "\f110";
}
th .bbp_forums_column,
th .bbp_topics_column,
th .bbp_replies_column {
height: 16px;
width: 16px;
}
th .bbp_forums_column::before,
th .bbp_topics_column::before,
th .bbp_replies_column::before {
font: 400 20px/0.5 dashicons;
speak: none;
display: inline-block;
padding: 0;
top: 4px;
left: -4px;
position: relative;
vertical-align: top;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-decoration: none !important;
color: #444;
}
/* Deprecated Dashboard Metabox */
#bbp-dashboard-right-now p.sub,
#bbp-dashboard-right-now .table,
#bbp-dashboard-right-now .versions {
margin: -12px;
}
#bbp-dashboard-right-now .inside {
font-size: 12px;
padding-top: 20px;
margin-bottom: 0;
}
#bbp-dashboard-right-now p.sub {
padding: 5px 0 15px;
color: #8f8f8f;
font-size: 14px;
position: absolute;
top: -17px;
left: 15px;
}
body.rtl #bbp-dashboard-right-now p.sub {
right: 15px;
left: 0;
}
#bbp-dashboard-right-now .table {
margin: 0;
padding: 0;
position: relative;
}
#bbp-dashboard-right-now .table_content {
float: left;
border-top: #ececec 1px solid;
width: 45%;
}
body.rtl #bbp-dashboard-right-now .table_content {
float: right;
}
#bbp-dashboard-right-now .table_discussion {
float: right;
border-top: #ececec 1px solid;
width: 45%;
}
body.rtl #bbp-dashboard-right-now .table_discussion {
float: left;
}
#bbp-dashboard-right-now table td {
padding: 3px 0;
white-space: nowrap;
}
#bbp-dashboard-right-now table tr.first td {
border-top: none;
}
#bbp-dashboard-right-now td.b {
padding-right: 6px;
text-align: right;
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
font-size: 14px;
width: 1%;
}
body.rtl #bbp-dashboard-right-now td.b {
padding-left: 6px;
padding-right: 0;
}
#bbp-dashboard-right-now td.b a {
font-size: 18px;
}
#bbp-dashboard-right-now td.b a:hover {
color: #d54e21;
}
#bbp-dashboard-right-now .t {
font-size: 12px;
padding-right: 12px;
padding-top: 6px;
color: #777;
}
body.rtl #bbp-dashboard-right-now .t {
padding-left: 12px;
padding-right: 0;
}
#bbp-dashboard-right-now .t a {
white-space: nowrap;
}
#bbp-dashboard-right-now .spam {
color: #f00;
}
#bbp-dashboard-right-now .waiting {
color: #e66f00;
}
#bbp-dashboard-right-now .approved {
color: #0f0;
}
#bbp-dashboard-right-now .versions {
padding: 6px 10px 12px;
clear: both;
}
#bbp-dashboard-right-now .versions .b {
font-weight: 700;
}
#bbp-dashboard-right-now a.button {
float: right;
clear: right;
position: relative;
top: -5px;
}
body.rtl #bbp-dashboard-right-now a.button {
float: left;
clear: left;
}
/* List Tables */
body.post-type-forum #minor-publishing,
body.post-type-forum #save-post {
display: none;
}
body.post-type-forum strong.label,
body.post-type-topic strong.label,
body.post-type-reply strong.label {
display: inline-block;
width: 60px;
}
.column-bbp_forum_topic_count,
.column-bbp_forum_reply_count,
.column-bbp_topic_reply_count,
.column-bbp_topic_voice_count {
width: 8% !important;
}
.column-author,
.column-bbp_forum_mods,
.column-bbp_reply_author,
.column-bbp_topic_author {
width: 10% !important;
}
.column-bbp_topic_forum,
.column-bbp_reply_forum,
.column-bbp_reply_topic {
width: 10% !important;
}
.column-bbp_forum_freshness,
.column-bbp_topic_freshness {
width: 10% !important;
}
.column-bbp_user_role,
.column-bbp_forum_created,
.column-bbp_topic_created,
.column-bbp_reply_created {
width: 15% !important;
}
.column-bbp_topic_reply_author,
.column-bbp_forum_topic_author {
width: 25% !important;
}
.column-bbp_topic_reply_author .avatar,
.column-bbp_forum_topic_author .avatar {
float: left;
margin-right: 10px;
}
#bbp_moderators {
width: 100%;
}
#bbp_forum_attributes hr {
border-style: solid;
border-width: 1px;
border-color: #ccc #fff #fff #ccc;
}
body.post-type-forum tbody .status-closed,
body.post-type-topic tbody .status-closed,
body.post-type-reply tbody .status-closed {
background-color: #f5f5f5;
}
body.post-type-forum tbody .status-closed:nth-child(odd),
body.post-type-topic tbody .status-closed:nth-child(odd),
body.post-type-reply tbody .status-closed:nth-child(odd) {
background-color: #f0f0f0;
}
body.post-type-forum tbody .status-spam,
body.post-type-topic tbody .status-spam,
body.post-type-reply tbody .status-spam,
#bbp-reply-list .status-trash {
background-color: #fee;
}
body.post-type-forum tbody .status-spam:nth-child(odd),
body.post-type-topic tbody .status-spam:nth-child(odd),
body.post-type-reply tbody .status-spam:nth-child(odd),
#bbp-reply-list .status-trash:nth-child(odd) {
background-color: #fdd;
}
body.post-type-forum tbody .status-pending,
body.post-type-topic tbody .status-pending,
body.post-type-reply tbody .status-pending {
background-color: #fff2e8;
}
body.post-type-forum tbody .status-pending:nth-child(odd),
body.post-type-topic tbody .status-pending:nth-child(odd),
body.post-type-reply tbody .status-pending:nth-child(odd) {
background-color: #fff7f1;
}
body.post-type-forum tbody .status-closed td,
body.post-type-topic tbody .status-closed td,
body.post-type-reply tbody .status-closed td,
body.post-type-forum tbody .status-spam td,
body.post-type-topic tbody .status-spam td,
body.post-type-reply tbody .status-spam td,
#bbp-reply-list .status-trash td {
color: #999;
}
body.post-type-forum tbody .row-actions .unspam a,
body.post-type-topic tbody .row-actions .unspam a,
body.post-type-reply tbody .row-actions .unspam a,
body.post-type-forum tbody .row-actions .approved a,
body.post-type-topic tbody .row-actions .approved a,
body.post-type-reply tbody .row-actions .approved a {
color: #006505;
}
/* User Relationships */
#bbp_topic_engagements_metabox .avatar,
#bbp_topic_favorites_metabox .avatar,
#bbp_topic_subscriptions_metabox .avatar {
margin: 3px;
}
/* Converter */
.bbp-converter-settings-wrap {
float: left;
width: 55%;
}
#poststuff.bbp-converter-monitor-wrap {
float: right;
width: 43%;
margin-left: 2%;
min-width: 200px;
}
#bbp-converter-monitor h2 {
position: relative;
}
#bbp-converter-monitor .inside {
margin: 0;
padding: 5px;
border-bottom: 1px solid #e5e5e5;
}
#bbp-converter-monitor div.actions {
padding: 10px;
background: #fafafa;
clear: both;
}
#bbp-converter-spinner {
margin: 4px 0;
}
div.bbp-converter-log,
div.bbp-converter-warning {
padding: 5px 0 5px 5px;
}
div.bbp-converter-log.started {
height: 300px;
overflow: auto;
}
div.bbp-converter-log p {
margin: 0;
padding: 2px;
}
div.bbp-converter-log p:only-child {
float: none;
margin-bottom: 0;
}
div.bbp-converter-log div {
padding: 10px;
margin: 5px;
background: #f4f4f4;
border: 1px solid #ddd;
}
div.bbp-converter-log div code {
margin-top: 5px;
display: block;
}
div.bbp-converter-log .step {
text-align: right;
font-weight: 600;
}
div.bbp-converter-log .output {
margin: 0 5px;
}
div.bbp-converter-log .mini-step {
padding: 3px 5px;
vertical-align: middle;
font-size: 8px;
font-weight: 600;
border-radius: 6px;
background-color: #aaa;
color: #fff;
}
#bbp-converter-monitor .bbp-progress-bar {
position: absolute;
left: 0;
height: 1px;
width: 0;
background-color: #00b9eb;
transition-property: width;
transition-timing-function: ease-out;
transition-duration: 1s;
}
#bbp-converter-monitor #bbp-converter-step-percentage {
bottom: 1px;
}
#bbp-converter-monitor #bbp-converter-total-percentage {
bottom: 0;
}
#bbp-converter-stop {
display: none;
}
#bbp-converter-status {
font-weight: 400;
font-size: 12px;
color: #aaa;
display: block;
margin-top: 2px;
}
.bbp-converter-db-password-wrapper {
display: inline-block;
position: relative;
}
.bbp-converter-db-pass::-webkit-credentials-auto-fill-button {
display: none;
visibility: hidden;
pointer-events: none;
position: absolute;
right: 0;
}
button.bbp-db-pass-toggle {
border: none;
background: transparent;
position: absolute;
right: 3px;
top: 3px;
padding: 0;
margin: 0;
cursor: pointer;
color: #aaa;
height: 25px;
width: 25px;
font: 400 20px/1 dashicons !important;
}
button.bbp-db-pass-toggle:hover {
color: #888;
}
button.bbp-db-pass-toggle.text::after {
content: "\f530";
}
button.bbp-db-pass-toggle.password::after {
content: "\f177";
}
@media screen and ( max-width: 782px ) {
.bbp-converter-db-password-wrapper {
width: 100%;
}
#poststuff.bbp-converter-monitor-wrap,
.bbp-converter-settings-wrap {
float: none;
width: 100%;
margin: 20px 0;
}
button.bbp-db-pass-toggle {
height: 35px;
width: 35px;
font: 400 20px/1 dashicons !important;
}
}
/* Tools */
td.bbp-tool-title strong {
display: block;
}
td.bbp-tool-title p {
margin: 0;
}
.manage-column.column-components {
width: 20%;
}
.manage-column.column-version {
width: 11%;
}
.manage-column.column-overhead {
width: 13%;
}
.nav-tab-wrapper a span.awaiting-mod {
display: inline-block;
vertical-align: top;
margin: 3px 0 0 1px;
padding: 0 5px;
min-width: 7px;
height: 17px;
border-radius: 11px;
background-color: #ca4a1f;
color: #fff;
font-size: 9px;
line-height: 17px;
text-align: center;
z-index: 26;
}
/* Retro TV corners for contributor avatars */
.dashboard_page_bbp-credits .wp-person img {
border-radius: 20px;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,46 @@
(function () {
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
var field = document.getElementById( 'bbp-badge' ),
bee = document.getElementById( 'bbp-bee' ),
max_x = field.clientWidth - bee.offsetWidth,
max_y = field.clientHeight - bee.offsetHeight,
angle = 95,
offset = 95,
duration = 4,
canvas = 50,
start = null,
variance = 1;
function step( timestamp ) {
var progress, x, y;
if ( start === null ) {
start = timestamp;
variance = 1;
angle = 95;
}
progress = ( timestamp - start ) / duration / 1000;
angle = ( 360 * progress ) + offset;
x = variance * Math.sin( progress * 2 * Math.PI );
y = Math.cos( progress * 2 * Math.PI );
bee.style.left = max_x / 2 + ( canvas * x ) + 'px';
bee.style.bottom = max_y / 2 + ( canvas * y ) + 'px';
bee.style.transform = 'rotate(' + angle + 'deg)';
bee.style.webkitTransform = 'rotate(' + angle + 'deg)';
// Reset
if ( progress >= 1 ) {
start = null;
}
requestAnimationFrame( step );
}
requestAnimationFrame( step );
})();

View File

@@ -0,0 +1,3 @@
/*! This file is automatically generated. */
!function(){function e(t){var u,w,b;null===l&&(l=t,d=1,a=95),a=360*(u=(t-l)/r/1e3)+m,w=d*Math.sin(2*u*Math.PI),b=Math.cos(2*u*Math.PI),n.style.left=i/2+s*w+"px",n.style.bottom=o/2+s*b+"px",n.style.transform="rotate("+a+"deg)",n.style.webkitTransform="rotate("+a+"deg)",u>=1&&(l=null),requestAnimationFrame(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;var t=document.getElementById("bbp-badge"),n=document.getElementById("bbp-bee"),i=t.clientWidth-n.offsetWidth,o=t.clientHeight-n.offsetHeight,a=95,m=95,r=4,s=50,l=null,d=1;requestAnimationFrame(e)}();

View File

@@ -0,0 +1,15 @@
jQuery( document ).ready( function() {
var bbp_author_id = jQuery( '#bbp_author_id' );
bbp_author_id.suggest(
bbp_author_id.data( 'ajax-url' ),
{
minchars: 1, // Allow single-digit user IDs
onSelect: function() {
var value = this.value;
bbp_author_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
}
}
);
} );

View File

@@ -0,0 +1,3 @@
/*! This file is automatically generated. */
jQuery(document).ready(function(){var a=jQuery("#bbp_author_id");a.suggest(a.data("ajax-url"),{minchars:1,onSelect:function(){var u=this.value;a.val(u.substr(0,u.indexOf(" ")))}})});

View File

@@ -0,0 +1,344 @@
/*jshint sub:true*/
/* global document, jQuery, ajaxurl, BBP_Converter */
jQuery( document ).ready( function ( $ ) {
'use strict';
// Variables
var message = $( '#bbp-converter-message' ),
stop = $( '#bbp-converter-stop' ),
start = $( '#bbp-converter-start' ),
restart = $( '#_bbp_converter_restart' ),
status = $( '#bbp-converter-status' ),
spinner = $( '#bbp-converter-spinner' ),
settings = $( '#bbp-converter-settings' ),
password = $( '#_bbp_converter_db_pass' ),
toggle = $( '.bbp-db-pass-toggle' ),
step_p = $( '#bbp-converter-step-percentage' ),
total_p = $( '#bbp-converter-total-percentage' ),
fields = settings.find( 'table:first-of-type input, table:first-of-type select' );
/**
* Show/hide db password button toggle
*
* @since 2.6.0 bbPress (r6676)
*
* @param {element} e
*/
toggle.on( 'click', function( e ) {
var type = ( password.attr( 'type' ) === 'password' ) ? 'text' : 'password';
password.attr( 'type', type );
toggle
.toggleClass( 'password' )
.toggleClass( 'text' );
e.preventDefault();
});
/**
* Start button click
*
* @since 2.6.0 bbPress (r6470)
*
* @param {element} e
*/
start.on( 'click', function( e ) {
bbp_converter_user_start();
e.preventDefault();
} );
/**
* Stop button click
*
* @since 2.6.0 bbPress (r6470)
*
* @param {element} e
*/
$( stop ).on( 'click', function( e ) {
bbp_converter_user_stop();
e.preventDefault();
} );
/**
* Start the converter
*
* @since 2.6.0 bbPress (r6470)
*
* @returns {void}
*/
function bbp_converter_user_start() {
bbp_converter_start();
}
/**
* Stop the converter
*
* @since 2.6.0 bbPress (r6470)
*
* @returns {void}
*/
function bbp_converter_user_stop() {
bbp_converter_stop(
BBP_Converter.strings.button_continue,
BBP_Converter.strings.import_stopped_user
);
}
/**
* Return values of converter settings
*
* @since 2.6.0 bbPress (r6470)
*
* @returns {converterL#2.bbp_converter_settings.values}
*/
function bbp_converter_settings() {
var values = {};
$.each( settings.serializeArray(), function( i, field ) {
values[ field.name ] = field.value;
} );
if ( values['_bbp_converter_restart'] ) {
restart.removeAttr( 'checked' );
}
if ( values['_bbp_converter_delay_time'] ) {
BBP_Converter.state.delay = parseInt( values['_bbp_converter_delay_time'], 10 ) * 1000;
}
values['action'] = 'bbp_converter_process';
values['_ajax_nonce'] = BBP_Converter.ajax_nonce;
return values;
}
/**
* Run the converter step
*
* @since 2.6.0 bbPress (r6470)
*
* @returns {void}
*/
function bbp_converter_post() {
$.post( ajaxurl, bbp_converter_settings(), function( response ) {
// Parse the json response
try {
var data = response.data;
// Success
if ( true === response.success ) {
bbp_converter_step( data );
// Failure
} else {
bbp_converter_stop();
}
} catch( e ) {
bbp_converter_stop();
}
}, 'json' );
}
/**
* Process the next step
*
* @since 2.6.0 bbPress (r6600)
*
* @param {object} data
* @returns {void}
*/
function bbp_converter_step( data ) {
// Bail if not running
if ( ! BBP_Converter.state.running ) {
return;
}
// Do the step
bbp_converter_log( data.progress );
bbp_converter_percentages( data.step_percent, data.total_percent );
bbp_converter_status( data );
bbp_converter_wait();
// Done
if ( data.current_step === data.final_step ) {
bbp_converter_stop(
BBP_Converter.strings.button_start,
BBP_Converter.strings.import_complete
);
}
}
/**
* Wait to do the next AJAX request
*
* @since 2.6.0 bbPress (r6600)
*
* @returns {void}
*/
function bbp_converter_wait() {
clearTimeout( BBP_Converter.state.running );
// Bail if not running
if ( ! BBP_Converter.state.running ) {
return;
}
// Wait, then POST
BBP_Converter.state.running = setTimeout( function() {
bbp_converter_post();
}, parseInt( BBP_Converter.state.delay, 10 ) );
}
/**
* Start the converter and set the various flags
*
* @since 2.6.0 bbPress (r6600)
*
* @returns {void}
*/
function bbp_converter_start() {
clearTimeout( BBP_Converter.state.running );
clearInterval( BBP_Converter.state.status );
BBP_Converter.state.running = true;
var log = BBP_Converter.strings.start_continue;
if ( false === BBP_Converter.state.started ) {
log = BBP_Converter.strings.start_start;
BBP_Converter.state.started = true;
}
bbp_converter_update(
BBP_Converter.strings.button_continue,
log,
BBP_Converter.strings.status_starting
);
message.addClass( 'started' );
start.hide();
stop.show();
console.log( fields );
spinner.css( 'visibility', 'visible' );
fields.prop( 'readonly', true );
bbp_converter_post();
}
/**
* Stop the converter, and update the UI
*
* @since 2.6.0 bbPress (r6470)
*
* @param {string} button New text for button
* @param {string} log New text to add to import monitor
*
* @returns {void}
*/
function bbp_converter_stop( button, log ) {
clearTimeout( BBP_Converter.state.running );
clearInterval( BBP_Converter.state.status );
BBP_Converter.state.running = false;
BBP_Converter.state.status = false;
if ( ! button ) {
button = BBP_Converter.strings.button_continue;
}
if ( ! log ) {
log = BBP_Converter.strings.status_stopped;
}
bbp_converter_update(
button,
log,
BBP_Converter.strings.status_stopped
);
start.show();
stop.hide();
spinner.css( 'visibility', 'hidden' );
fields.prop( 'readonly', false );
}
/**
* Update the various screen texts
*
* @since 2.6.0 bbPress (r6600)
*
* @param {string} b_text
* @param {string} p_text
* @param {string} s_text
*
* @returns {void}
*/
function bbp_converter_update( b_text, p_text, s_text ) {
start.val( b_text );
bbp_converter_log( p_text );
status.text( s_text );
}
/**
* Update the status
*
* @since 2.6.0 bbPress (r6513)
*
* @param {object} data
*
* @returns {void}
*/
function bbp_converter_status( data ) {
var remaining = parseInt( BBP_Converter.state.delay, 10 ) / 1000;
status.text( BBP_Converter.strings.status_counting.replace( '%s', remaining ) );
clearInterval( BBP_Converter.state.status );
BBP_Converter.state.status = setInterval( function() {
remaining--;
status.text( BBP_Converter.strings.status_counting.replace( '%s', remaining ) );
if ( remaining <= 0 ) {
clearInterval( BBP_Converter.state.status );
if ( parseInt( data.current_step, 10 ) < parseInt( data.final_step, 10 ) ) {
status.text( BBP_Converter.strings.status_up_next.replace( '%s', data.current_step ) );
} else {
status.text( BBP_Converter.strings.status_complete );
}
}
}, 1000 );
}
/**
* Prepend some text to the import monitor
*
* @since 2.6.0 bbPress (r6470)
*
* @param {string} text Text to prepend to the import monitor
*
* @returns {void}
*/
function bbp_converter_log( text ) {
text = '<p>' + text + '</p>';
message.prepend( text );
}
/**
* Prepend some text to the import monitor
*
* @since 2.6.0 bbPress (r6470)
*
* @returns {void}
*/
function bbp_converter_percentages( step_percent, total_percent ) {
step_p.width( step_percent + '%' );
total_p.width( total_percent + '%' );
}
} );

View File

@@ -0,0 +1,3 @@
/*! This file is automatically generated. */
jQuery(document).ready(function(t){"use strict";function e(){i()}function r(){c(BBP_Converter.strings.button_continue,BBP_Converter.strings.import_stopped_user)}function n(){var e={};return t.each(d.serializeArray(),function(t,r){e[r.name]=r.value}),e._bbp_converter_restart&&g.removeAttr("checked"),e._bbp_converter_delay_time&&(BBP_Converter.state.delay=1e3*parseInt(e._bbp_converter_delay_time,10)),e.action="bbp_converter_process",e._ajax_nonce=BBP_Converter.ajax_nonce,e}function s(){t.post(ajaxurl,n(),function(t){try{var e=t.data;!0===t.success?o(e):c()}catch(t){c()}},"json")}function o(t){BBP_Converter.state.running&&(p(t.progress),B(t.step_percent,t.total_percent),u(t),a(),t.current_step===t.final_step&&c(BBP_Converter.strings.button_start,BBP_Converter.strings.import_complete))}function a(){clearTimeout(BBP_Converter.state.running),BBP_Converter.state.running&&(BBP_Converter.state.running=setTimeout(function(){s()},parseInt(BBP_Converter.state.delay,10)))}function i(){clearTimeout(BBP_Converter.state.running),clearInterval(BBP_Converter.state.status),BBP_Converter.state.running=!0;var t=BBP_Converter.strings.start_continue;!1===BBP_Converter.state.started&&(t=BBP_Converter.strings.start_start,BBP_Converter.state.started=!0),_(BBP_Converter.strings.button_continue,t,BBP_Converter.strings.status_starting),v.addClass("started"),b.hide(),l.show(),console.log(h),P.css("visibility","visible"),h.prop("readonly",!0),s()}function c(t,e){clearTimeout(BBP_Converter.state.running),clearInterval(BBP_Converter.state.status),BBP_Converter.state.running=!1,BBP_Converter.state.status=!1,t||(t=BBP_Converter.strings.button_continue),e||(e=BBP_Converter.strings.status_stopped),_(t,e,BBP_Converter.strings.status_stopped),b.show(),l.hide(),P.css("visibility","hidden"),h.prop("readonly",!1)}function _(t,e,r){b.val(t),p(e),C.text(r)}function u(t){var e=parseInt(BBP_Converter.state.delay,10)/1e3;C.text(BBP_Converter.strings.status_counting.replace("%s",e)),clearInterval(BBP_Converter.state.status),BBP_Converter.state.status=setInterval(function(){e--,C.text(BBP_Converter.strings.status_counting.replace("%s",e)),e<=0&&(clearInterval(BBP_Converter.state.status),parseInt(t.current_step,10)<parseInt(t.final_step,10)?C.text(BBP_Converter.strings.status_up_next.replace("%s",t.current_step)):C.text(BBP_Converter.strings.status_complete))},1e3)}function p(t){t="<p>"+t+"</p>",v.prepend(t)}function B(t,e){m.width(t+"%"),x.width(e+"%")}var v=t("#bbp-converter-message"),l=t("#bbp-converter-stop"),b=t("#bbp-converter-start"),g=t("#_bbp_converter_restart"),C=t("#bbp-converter-status"),P=t("#bbp-converter-spinner"),d=t("#bbp-converter-settings"),f=t("#_bbp_converter_db_pass"),y=t(".bbp-db-pass-toggle"),m=t("#bbp-converter-step-percentage"),x=t("#bbp-converter-total-percentage"),h=d.find("table:first-of-type input, table:first-of-type select");y.on("click",function(t){var e="password"===f.attr("type")?"text":"password";f.attr("type",e),y.toggleClass("password").toggleClass("text"),t.preventDefault()}),b.on("click",function(t){e(),t.preventDefault()}),t(l).on("click",function(t){r(),t.preventDefault()})});

View File

@@ -0,0 +1,17 @@
jQuery( document ).ready(function() {
jQuery( '#misc-publishing-actions' ).find( '.misc-pub-section' ).first().remove();
jQuery( '#save-action' ).remove();
var bbp_topic_id = jQuery( '#bbp_topic_id' );
bbp_topic_id.suggest(
bbp_topic_id.data( 'ajax-url' ),
{
onSelect: function() {
var value = this.value;
bbp_topic_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
}
}
);
} );

View File

@@ -0,0 +1,3 @@
/*! This file is automatically generated. */
jQuery(document).ready(function(){jQuery("#misc-publishing-actions").find(".misc-pub-section").first().remove(),jQuery("#save-action").remove();var e=jQuery("#bbp_topic_id");e.suggest(e.data("ajax-url"),{onSelect:function(){var i=this.value;e.val(i.substr(0,i.indexOf(" ")))}})});

View File

@@ -0,0 +1,4 @@
jQuery( document ).ready( function() {
jQuery( '#misc-publishing-actions' ).find( '.misc-pub-section' ).first().remove();
jQuery( '#save-action' ).remove();
} );

View File

@@ -0,0 +1,3 @@
/*! This file is automatically generated. */
jQuery(document).ready(function(){jQuery("#misc-publishing-actions").find(".misc-pub-section").first().remove(),jQuery("#save-action").remove()});