Merge the new dashboard design into core.
Merges https://github.com/growthdesigner/wp-dash. props lessbloat, joen, helen, dbernar1, kraftbj, ryelle, tillkruess, grapplerulrich, markjaquith. see #25824. Built from https://develop.svn.wordpress.org/trunk@26144 git-svn-id: http://core.svn.wordpress.org/trunk@26055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8564963b8
commit
809b335f7a
|
@ -126,13 +126,7 @@ ul#adminmenu > li.current > a.current:after {
|
|||
border-right-color: #eee;
|
||||
}
|
||||
|
||||
#dashboard_right_now .t,
|
||||
#dashboard_right_now .b {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.row-actions,
|
||||
#dashboard_recent_comments .subsubsub,
|
||||
.plugins .row-actions-visible,
|
||||
.row-actions {
|
||||
color: #ddd;
|
||||
|
@ -552,8 +546,7 @@ div.dashboard-widget-submit input:hover,
|
|||
color: #2ea2cc;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item,
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit {
|
||||
#the-comment-list .comment-item {
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
@ -580,9 +573,6 @@ p.submit {
|
|||
table.widefat span.delete a,
|
||||
table.widefat span.trash a,
|
||||
table.widefat span.spam a,
|
||||
#dashboard_recent_comments .delete a,
|
||||
#dashboard_recent_comments .trash a,
|
||||
#dashboard_recent_comments .spam a,
|
||||
.plugins a.delete,
|
||||
#all-plugins-table .plugins a.delete,
|
||||
#search-plugins-table .plugins a.delete,
|
||||
|
@ -596,9 +586,6 @@ table.widefat span.spam a,
|
|||
table.widefat span.delete a:hover,
|
||||
table.widefat span.trash a:hover,
|
||||
table.widefat span.spam a:hover,
|
||||
#dashboard_recent_comments .delete a:hover,
|
||||
#dashboard_recent_comments .trash a:hover,
|
||||
#dashboard_recent_comments .spam a:hover,
|
||||
.plugins a.delete:hover,
|
||||
#all-plugins-table .plugins a.delete:hover,
|
||||
#search-plugins-table .plugins a.delete:hover,
|
||||
|
@ -771,10 +758,6 @@ div#plugin-information-header {
|
|||
border-color: #666;
|
||||
}
|
||||
|
||||
#dashboard_secondary div.dashboard-widget-content ul li a {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
input.readonly, textarea.readonly {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
@ -929,20 +912,14 @@ a.post-format-icon:hover:before {
|
|||
}
|
||||
|
||||
#the-comment-list .unapproved th,
|
||||
#the-comment-list .unapproved td,
|
||||
#dashboard_recent_comments #the-comment-list .unapproved {
|
||||
#the-comment-list .unapproved td {
|
||||
background-color: #fefaf7;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved th.check-column,
|
||||
#dashboard_recent_comments #the-comment-list .unapproved {
|
||||
#the-comment-list .unapproved th.check-column {
|
||||
border-left: 4px solid #d54e21;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments #the-comment-list .unapproved .avatar {
|
||||
margin-left: -4px;
|
||||
}
|
||||
|
||||
#the-comment-list .approve a {
|
||||
color: #006505;
|
||||
}
|
||||
|
@ -1038,8 +1015,7 @@ p.popular-tags,
|
|||
|
||||
.postbox h3,
|
||||
#namediv h3,
|
||||
#submitdiv h3,
|
||||
#dashboard_recent_comments .comment {
|
||||
#submitdiv h3 {
|
||||
color: #555;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
@ -1165,10 +1141,7 @@ abbr.required,
|
|||
.widget-control-remove:hover,
|
||||
table.widefat .delete a:hover,
|
||||
table.widefat .trash a:hover,
|
||||
table.widefat .spam a:hover,
|
||||
#dashboard_recent_comments .delete a:hover,
|
||||
#dashboard_recent_comments .trash a:hover
|
||||
#dashboard_recent_comments .spam a:hover {
|
||||
table.widefat .spam a:hover {
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
|
@ -2197,13 +2170,7 @@ body.login {
|
|||
border-right: 4px solid #d54e21;
|
||||
}
|
||||
|
||||
.rtl #the-comment-list .unapproved th.check-column,
|
||||
.rtl #dashboard_recent_comments #the-comment-list .unapproved {
|
||||
.rtl #the-comment-list .unapproved th.check-column {
|
||||
border-left: none;
|
||||
border-right: 4px solid #d54e21;
|
||||
}
|
||||
|
||||
.rtl #dashboard_recent_comments #the-comment-list .unapproved .avatar {
|
||||
margin-left: 10px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -141,10 +141,6 @@ table.fixed td {
|
|||
overflow: visible;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||
float: none;
|
||||
}
|
||||
|
||||
#dashboard-widgets h3 a {
|
||||
height: 14px;
|
||||
line-height: 14px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -141,10 +141,6 @@ table.fixed td {
|
|||
overflow: visible;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||
float: none;
|
||||
}
|
||||
|
||||
#dashboard-widgets h3 a {
|
||||
height: 14px;
|
||||
line-height: 14px;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -904,7 +904,6 @@ input[readonly] {
|
|||
|
||||
div.sidebar-name h3,
|
||||
#menu-management .nav-tab,
|
||||
#dashboard_plugins h5,
|
||||
a.rsswidget,
|
||||
#dashboard_right_now td.b,
|
||||
#dashboard-widgets h4,
|
||||
|
@ -2439,6 +2438,18 @@ html.wp-toolbar {
|
|||
min-height: 250px;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox-container {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
#dashboard-widgets-wrap {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* one column on the dash */
|
||||
@media only screen and (max-width: 799px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
|
@ -2453,7 +2464,7 @@ html.wp-toolbar {
|
|||
}
|
||||
|
||||
/* two columns on the dash, but keep the setting if one is selected */
|
||||
@media only screen and (min-width: 800px) and (max-width: 1200px) {
|
||||
@media only screen and (min-width: 800px) and (max-width: 1399px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
width: 49.5%;
|
||||
}
|
||||
|
@ -2494,6 +2505,28 @@ html.wp-toolbar {
|
|||
}
|
||||
}
|
||||
|
||||
/* three columns on the dash */
|
||||
@media only screen and (min-width: 1400px) and (max-width: 1800px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
width: 33.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-1 {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dashboard-widgets #postbox-container-4 .empty-container {
|
||||
border: 0 none;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* one column on the post write/edit screen */
|
||||
@media only screen and (max-width: 850px) {
|
||||
#poststuff {
|
||||
|
@ -2633,20 +2666,6 @@ html.wp-toolbar {
|
|||
margin: 0 8px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo {
|
||||
margin: 0 -12px;
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo .avatar {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo div {
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
#the-comment-list td.comment p.comment-author {
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
|
@ -2834,6 +2853,491 @@ html.wp-toolbar {
|
|||
list-style-type: none;
|
||||
}
|
||||
|
||||
/* Dashboard WordPress news */
|
||||
|
||||
#dashboard_rss .inside {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_rss .widget-loading,
|
||||
#dashboard_rss .dashboard-widget-control-form {
|
||||
padding: 12px 12px 0;
|
||||
}
|
||||
|
||||
body #dashboard-widgets .postbox form .submit {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.rssSummary {
|
||||
color: #999;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.rss-widget {
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 13px;
|
||||
padding: 8px 12px 12px;
|
||||
}
|
||||
|
||||
.rss-widget:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.rss-widget a {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.rss-widget span,
|
||||
.rss-widget span.rss-date {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.rss-widget span.rss-date {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.rss-widget ul li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Dashboard right now */
|
||||
|
||||
#dash-right-now ul {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#dash-right-now li {
|
||||
width: 50%;
|
||||
float: right;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#dash-right-now .inside {
|
||||
margin-bottom: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dash-right-now .main {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#dash-right-now .main p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mu-storage {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Dashboard right now - Colors */
|
||||
|
||||
#dash-right-now li a:before {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
#dash-right-now .sub {
|
||||
color: #bfbbbb;
|
||||
background: #f5f5f5;
|
||||
border-top-color: #dedede;
|
||||
padding: 12px 12px 6px 12px;
|
||||
border-top: 1px solid;
|
||||
}
|
||||
|
||||
#dash-right-now .sub h4 {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
#dash-right-now .sub p {
|
||||
margin: 0 0 .5em;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#dash-right-now .warning a:before {
|
||||
color: #d54e21;
|
||||
}
|
||||
|
||||
/* Dashboard right now - Icons */
|
||||
#dash-right-now li a:before {
|
||||
content: '\f159';
|
||||
font: normal 20px/1 'dashicons';
|
||||
speak: none;
|
||||
display: block;
|
||||
float: right;
|
||||
margin: 0 0 0 5px;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
#dash-right-now .page-count a:before {
|
||||
content: '\f105';
|
||||
}
|
||||
|
||||
#dash-right-now .post-count a:before {
|
||||
content: '\f109';
|
||||
}
|
||||
|
||||
#dash-right-now .comment-count a:before {
|
||||
content: '\f101';
|
||||
}
|
||||
|
||||
#dash-right-now .comment-mod-count a:before {
|
||||
content: '\f125';
|
||||
}
|
||||
|
||||
#dash-right-now .storage-count a:before {
|
||||
content: '\f104';
|
||||
}
|
||||
|
||||
#dash-right-now .storage-count.warning a:before {
|
||||
content: '\f153';
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft */
|
||||
|
||||
#dashboard_quick_draft div.updated {
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #eee;
|
||||
border-width: 1px 0 1px 1px;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft form {
|
||||
padding: 0 12px 1px 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts,
|
||||
#dashboard_quick_draft .easy-blogging {
|
||||
padding: 8px 12px 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox .inside {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft - Form styling */
|
||||
|
||||
input#save-post {
|
||||
float: left;
|
||||
}
|
||||
|
||||
form.initial-form label.prompt {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
form.initial-form input#title {
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
form.initial-form.quickpress-open label.prompt {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
form.initial-form.quickpress-open input#title {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft input,
|
||||
#dashboard_quick_draft textarea {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing:border-box;
|
||||
-webkit-box-sizing:border-box;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox form .submit {
|
||||
margin: -39px 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#description-wrap {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text,
|
||||
.textarea-wrap #content-prompt-text {
|
||||
color: #BBB;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text {
|
||||
font-size: 1.1em;
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.initial-form #description-wrap,
|
||||
.initial-form p.submit {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input-text-wrap,
|
||||
.textarea-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.input-text-wrap .prompt,
|
||||
.textarea-wrap .prompt {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.textarea-wrap #content-prompt-text {
|
||||
font-size: 1.1em;
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.textarea-wrap textarea#content {
|
||||
margin: 0 0 8px;
|
||||
padding: 6px 7px;
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft - Drafts list */
|
||||
|
||||
#dashboard_quick_draft .drafts {
|
||||
border-top: 1px solid #eee;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts abbr {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts h4 {
|
||||
margin: 0 0 8px 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts .view-all {
|
||||
float: left;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_rss a.rsswidget {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#draft-list {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#draft-list li {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#draft-list li time {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
#draft-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#draft-list .draft-title {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#draft-list .draft-title a,
|
||||
#draft-list .draft-title time {
|
||||
float: right;
|
||||
margin: 0 0 0 5px;
|
||||
}
|
||||
|
||||
/* Dashboard activity widget */
|
||||
|
||||
#dashboard-widgets #dashboard_activity h4 {
|
||||
margin: 0 12px 8px 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_activity h4.comment-meta {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity h4.comment-meta {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#dashboard_activity ul {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#dashboard_activity .comment-meta span.approve:before {
|
||||
content: '\f227';
|
||||
font: 20px/.5 "dashicons";
|
||||
margin-right: 12px;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
#dashboard_activity .inside {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity {
|
||||
overflow: hidden;
|
||||
padding: 0 12px 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity p {
|
||||
color: #999;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity .smiley {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity .smiley:before {
|
||||
content: '\f328';
|
||||
font: normal 120px/1 'dashicons';
|
||||
speak: none;
|
||||
display: block;
|
||||
margin: 0 0 0 5px;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
#dashboard_activity .subsubsub {
|
||||
float: none;
|
||||
border-top: 1px solid #eeeeee;
|
||||
margin-top: 0;
|
||||
padding: 8px 12px 0 12px;
|
||||
}
|
||||
|
||||
#future-posts .show-more,
|
||||
#published-posts .show-more {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#future-posts ul,
|
||||
#published-posts ul {
|
||||
clear: both;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#future-posts li,
|
||||
#published-posts li {
|
||||
overflow: hidden;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
#future-posts ul span,
|
||||
#published-posts ul span {
|
||||
color: #bbb;
|
||||
float: right;
|
||||
margin-left: 8px;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.activity-block {
|
||||
border-bottom: 1px solid #eee;
|
||||
overflow: hidden;
|
||||
padding: 8px 0 0;
|
||||
}
|
||||
|
||||
.activity-block:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.activity-block .subsubsub li {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* Dashboard activity widget - Comments */
|
||||
|
||||
#the-comment-list tr.undo, #the-comment-list div.undo {
|
||||
background: none;
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
#the-comment-list .alternate,
|
||||
#the-comment-list .alt {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#the-comment-list .comment {
|
||||
background: #f5f5f5;
|
||||
padding: 12px;
|
||||
position: relative;
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
#the-comment-list img {
|
||||
position: absolute;
|
||||
right: 13px;
|
||||
top: 13px;
|
||||
}
|
||||
|
||||
#the-comment-list .dashboard-comment-wrap {
|
||||
padding-right: 63px;
|
||||
}
|
||||
|
||||
#the-comment-list .dashboard-comment-wrap blockquote {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 {
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.row-actions {
|
||||
margin: 4px 0 0 0;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item:first-child {
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved {
|
||||
background: #f7fcfe;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background: #d54e21;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
/* Browse happy box */
|
||||
|
||||
#dashboard-widgets #dashboard_browser_nag.postbox .inside {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 870px) {
|
||||
.welcome-panel .welcome-panel-column,
|
||||
.welcome-panel .welcome-panel-column:first-child {
|
||||
|
@ -7752,122 +8256,51 @@ h3:hover .edit-box {
|
|||
}
|
||||
|
||||
/* Recent Comments */
|
||||
#dashboard_recent_comments h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .inside {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .comment-meta .approve {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .subsubsub {
|
||||
float: none;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
#the-comment-list {
|
||||
#latest-comments #the-comment-list {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item {
|
||||
#activity-widget #latest-comments #the-comment-list .comment-item {
|
||||
padding: 1em 12px;
|
||||
border-top: 1px solid;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
#the-comment-list .pingback {
|
||||
#latest-comments #the-comment-list .pingback {
|
||||
padding-right: 12px !important;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item,
|
||||
#the-comment-list #replyrow {
|
||||
margin: 0 -12px;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item:first-child {
|
||||
#latest-comments #the-comment-list .comment-item:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item .avatar {
|
||||
float: right;
|
||||
margin: 0 0 5px 10px;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 {
|
||||
#latest-comments #the-comment-list .comment-item h4 {
|
||||
line-height: 1.5em;
|
||||
margin-top: 0;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 cite {
|
||||
#latest-comments #the-comment-list .comment-item h4 cite {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item blockquote,
|
||||
#the-comment-list .comment-item blockquote p {
|
||||
#latest-comments #the-comment-list .comment-item blockquote,
|
||||
#latest-comments #the-comment-list .comment-item blockquote p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments #the-comment-list .trackback blockquote,
|
||||
#dashboard_recent_comments #the-comment-list .pingback blockquote {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.row-actions {
|
||||
#latest-comments #the-comment-list .comment-item p.row-actions {
|
||||
margin: 3px 0 0;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* QuickPress */
|
||||
#header-logo {
|
||||
display: none;
|
||||
}
|
||||
/* QuickDraft */
|
||||
|
||||
#site-heading:before {
|
||||
top: 3px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
font: normal 18px/1 'dashicons';
|
||||
speak: none;
|
||||
color: #727272;
|
||||
content: '\f120';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.no-js #dashboard_quick_press {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .easy-blogging {
|
||||
padding: 0 8px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .prompt {
|
||||
color: #bbb;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#dashboard_quick_press div.updated {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#title-wrap label,
|
||||
#tags-input-wrap label {
|
||||
#title-wrap label {
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
|
@ -7878,90 +8311,11 @@ h3:hover .edit-box {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
#tags-input-wrap #tags-input {
|
||||
outline: none;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text {
|
||||
font-size: 1.3em;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
#tags-input-wrap #tags-input-prompt-text {
|
||||
font-size: 1em;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap,
|
||||
#dashboard_quick_press .textarea-wrap {
|
||||
margin: 0 0 .7em 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .textarea-wrap {
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .wp-media-buttons {
|
||||
margin: 0 1px 2px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .wp-media-buttons a {
|
||||
color: #777;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit input {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
|
||||
margin: 0 1px 0 0.7em;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit .spinner {
|
||||
vertical-align: middle;
|
||||
margin: 4px 0 0 6px;
|
||||
}
|
||||
|
||||
/* Recent Drafts */
|
||||
#dashboard_recent_drafts ul,
|
||||
#dashboard_recent_drafts p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts ul li {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts h4 {
|
||||
line-height: 1.7em;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts h4 abbr {
|
||||
font-weight: normal;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
/* Feeds */
|
||||
.rss-widget ul {
|
||||
margin: 0;
|
||||
|
@ -7997,33 +8351,6 @@ a.rsswidget {
|
|||
content: '\2014';
|
||||
}
|
||||
|
||||
/* Plugins */
|
||||
#dashboard_plugins h4 {
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
#dashboard_plugins h5 {
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
display: inline;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
#dashboard_plugins h5 a {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
#dashboard_plugins .inside span {
|
||||
font-size: 12px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#dashboard_plugins p {
|
||||
margin: 0.3em 0 1.4em;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.dashboard-comment-wrap {
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -904,7 +904,6 @@ input[readonly] {
|
|||
|
||||
div.sidebar-name h3,
|
||||
#menu-management .nav-tab,
|
||||
#dashboard_plugins h5,
|
||||
a.rsswidget,
|
||||
#dashboard_right_now td.b,
|
||||
#dashboard-widgets h4,
|
||||
|
@ -2439,6 +2438,18 @@ html.wp-toolbar {
|
|||
min-height: 250px;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox-container {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
#dashboard-widgets-wrap {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* one column on the dash */
|
||||
@media only screen and (max-width: 799px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
|
@ -2453,7 +2464,7 @@ html.wp-toolbar {
|
|||
}
|
||||
|
||||
/* two columns on the dash, but keep the setting if one is selected */
|
||||
@media only screen and (min-width: 800px) and (max-width: 1200px) {
|
||||
@media only screen and (min-width: 800px) and (max-width: 1399px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
width: 49.5%;
|
||||
}
|
||||
|
@ -2494,6 +2505,28 @@ html.wp-toolbar {
|
|||
}
|
||||
}
|
||||
|
||||
/* three columns on the dash */
|
||||
@media only screen and (min-width: 1400px) and (max-width: 1800px) {
|
||||
#wpbody-content #dashboard-widgets .postbox-container {
|
||||
width: 33.5%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-1 {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
#wpbody-content #dashboard-widgets #postbox-container-3,
|
||||
#wpbody-content #dashboard-widgets #postbox-container-4 {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#dashboard-widgets #postbox-container-4 .empty-container {
|
||||
border: 0 none;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* one column on the post write/edit screen */
|
||||
@media only screen and (max-width: 850px) {
|
||||
#poststuff {
|
||||
|
@ -2633,20 +2666,6 @@ html.wp-toolbar {
|
|||
margin: 0 8px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo {
|
||||
margin: 0 -12px;
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo .avatar {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments div.undo div {
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
#the-comment-list td.comment p.comment-author {
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
|
@ -2834,6 +2853,491 @@ html.wp-toolbar {
|
|||
list-style-type: none;
|
||||
}
|
||||
|
||||
/* Dashboard WordPress news */
|
||||
|
||||
#dashboard_rss .inside {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_rss .widget-loading,
|
||||
#dashboard_rss .dashboard-widget-control-form {
|
||||
padding: 12px 12px 0;
|
||||
}
|
||||
|
||||
body #dashboard-widgets .postbox form .submit {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dashboard-widget-control-form p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.rssSummary {
|
||||
color: #999;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.rss-widget {
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 13px;
|
||||
padding: 8px 12px 12px;
|
||||
}
|
||||
|
||||
.rss-widget:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.rss-widget a {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.rss-widget span,
|
||||
.rss-widget span.rss-date {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.rss-widget span.rss-date {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.rss-widget ul li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Dashboard right now */
|
||||
|
||||
#dash-right-now ul {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#dash-right-now li {
|
||||
width: 50%;
|
||||
float: left;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#dash-right-now .inside {
|
||||
margin-bottom: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dash-right-now .main {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#dash-right-now .main p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mu-storage {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Dashboard right now - Colors */
|
||||
|
||||
#dash-right-now li a:before {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
#dash-right-now .sub {
|
||||
color: #bfbbbb;
|
||||
background: #f5f5f5;
|
||||
border-top-color: #dedede;
|
||||
padding: 12px 12px 6px 12px;
|
||||
border-top: 1px solid;
|
||||
}
|
||||
|
||||
#dash-right-now .sub h4 {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
#dash-right-now .sub p {
|
||||
margin: 0 0 .5em;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#dash-right-now .warning a:before {
|
||||
color: #d54e21;
|
||||
}
|
||||
|
||||
/* Dashboard right now - Icons */
|
||||
#dash-right-now li a:before {
|
||||
content: '\f159';
|
||||
font: normal 20px/1 'dashicons';
|
||||
speak: none;
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 5px 0 0;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
#dash-right-now .page-count a:before {
|
||||
content: '\f105';
|
||||
}
|
||||
|
||||
#dash-right-now .post-count a:before {
|
||||
content: '\f109';
|
||||
}
|
||||
|
||||
#dash-right-now .comment-count a:before {
|
||||
content: '\f101';
|
||||
}
|
||||
|
||||
#dash-right-now .comment-mod-count a:before {
|
||||
content: '\f125';
|
||||
}
|
||||
|
||||
#dash-right-now .storage-count a:before {
|
||||
content: '\f104';
|
||||
}
|
||||
|
||||
#dash-right-now .storage-count.warning a:before {
|
||||
content: '\f153';
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft */
|
||||
|
||||
#dashboard_quick_draft div.updated {
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #eee;
|
||||
border-width: 1px 1px 1px 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft form {
|
||||
padding: 0 12px 1px 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts,
|
||||
#dashboard_quick_draft .easy-blogging {
|
||||
padding: 8px 12px 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox .inside {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft - Form styling */
|
||||
|
||||
input#save-post {
|
||||
float: right;
|
||||
}
|
||||
|
||||
form.initial-form label.prompt {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
form.initial-form input#title {
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
form.initial-form.quickpress-open label.prompt {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
form.initial-form.quickpress-open input#title {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft input,
|
||||
#dashboard_quick_draft textarea {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing:border-box;
|
||||
-webkit-box-sizing:border-box;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
#dashboard-widgets .postbox form .submit {
|
||||
margin: -39px 0;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#description-wrap {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text,
|
||||
.textarea-wrap #content-prompt-text {
|
||||
color: #BBB;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text {
|
||||
font-size: 1.1em;
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.initial-form #description-wrap,
|
||||
.initial-form p.submit {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input-text-wrap,
|
||||
.textarea-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.input-text-wrap .prompt,
|
||||
.textarea-wrap .prompt {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.textarea-wrap #content-prompt-text {
|
||||
font-size: 1.1em;
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.textarea-wrap textarea#content {
|
||||
margin: 0 0 8px;
|
||||
padding: 6px 7px;
|
||||
}
|
||||
|
||||
/* Dashboard Quick Draft - Drafts list */
|
||||
|
||||
#dashboard_quick_draft .drafts {
|
||||
border-top: 1px solid #eee;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts abbr {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts h4 {
|
||||
margin: 0 0 8px 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#dashboard_quick_draft .drafts .view-all {
|
||||
float: right;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_rss a.rsswidget {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#draft-list {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#draft-list li {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#draft-list li time {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
#draft-list p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#draft-list .draft-title {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#draft-list .draft-title a,
|
||||
#draft-list .draft-title time {
|
||||
float: left;
|
||||
margin: 0 5px 0 0;
|
||||
}
|
||||
|
||||
/* Dashboard activity widget */
|
||||
|
||||
#dashboard-widgets #dashboard_activity h4 {
|
||||
margin: 0 0 8px 12px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_activity h4.comment-meta {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity h4.comment-meta {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#dashboard_activity ul {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#dashboard_activity .comment-meta span.approve:before {
|
||||
content: '\f227';
|
||||
font: 20px/.5 "dashicons";
|
||||
margin-left: 12px;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
#dashboard_activity .inside {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity {
|
||||
overflow: hidden;
|
||||
padding: 0 12px 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity p {
|
||||
color: #999;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity .smiley {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_activity .no-activity .smiley:before {
|
||||
content: '\f328';
|
||||
font: normal 120px/1 'dashicons';
|
||||
speak: none;
|
||||
display: block;
|
||||
margin: 0 5px 0 0;
|
||||
padding: 0;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
#dashboard_activity .subsubsub {
|
||||
float: none;
|
||||
border-top: 1px solid #eeeeee;
|
||||
margin-top: 0;
|
||||
padding: 8px 12px 0 12px;
|
||||
}
|
||||
|
||||
#future-posts .show-more,
|
||||
#published-posts .show-more {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#future-posts ul,
|
||||
#published-posts ul {
|
||||
clear: both;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#future-posts li,
|
||||
#published-posts li {
|
||||
overflow: hidden;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
#future-posts ul span,
|
||||
#published-posts ul span {
|
||||
color: #bbb;
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.activity-block {
|
||||
border-bottom: 1px solid #eee;
|
||||
overflow: hidden;
|
||||
padding: 8px 0 0;
|
||||
}
|
||||
|
||||
.activity-block:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.activity-block .subsubsub li {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* Dashboard activity widget - Comments */
|
||||
|
||||
#the-comment-list tr.undo, #the-comment-list div.undo {
|
||||
background: none;
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
#the-comment-list .alternate,
|
||||
#the-comment-list .alt {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#the-comment-list .comment {
|
||||
background: #f5f5f5;
|
||||
padding: 12px;
|
||||
position: relative;
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
#the-comment-list img {
|
||||
position: absolute;
|
||||
left: 13px;
|
||||
top: 13px;
|
||||
}
|
||||
|
||||
#the-comment-list .dashboard-comment-wrap {
|
||||
padding-left: 63px;
|
||||
}
|
||||
|
||||
#the-comment-list .dashboard-comment-wrap blockquote {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 {
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.row-actions {
|
||||
margin: 4px 0 0 0;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item:first-child {
|
||||
border-top: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved {
|
||||
background: #f7fcfe;
|
||||
}
|
||||
|
||||
#the-comment-list .unapproved:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
background: #d54e21;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
/* Browse happy box */
|
||||
|
||||
#dashboard-widgets #dashboard_browser_nag.postbox .inside {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 870px) {
|
||||
.welcome-panel .welcome-panel-column,
|
||||
.welcome-panel .welcome-panel-column:first-child {
|
||||
|
@ -7752,122 +8256,51 @@ h3:hover .edit-box {
|
|||
}
|
||||
|
||||
/* Recent Comments */
|
||||
#dashboard_recent_comments h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .inside {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .comment-meta .approve {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments .subsubsub {
|
||||
float: none;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
#the-comment-list {
|
||||
#latest-comments #the-comment-list {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item {
|
||||
#activity-widget #latest-comments #the-comment-list .comment-item {
|
||||
padding: 1em 12px;
|
||||
border-top: 1px solid;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
#the-comment-list .pingback {
|
||||
#latest-comments #the-comment-list .pingback {
|
||||
padding-left: 12px !important;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item,
|
||||
#the-comment-list #replyrow {
|
||||
margin: 0 -12px;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item:first-child {
|
||||
#latest-comments #the-comment-list .comment-item:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item .avatar {
|
||||
float: left;
|
||||
margin: 0 10px 5px 0;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 {
|
||||
#latest-comments #the-comment-list .comment-item h4 {
|
||||
line-height: 1.5em;
|
||||
margin-top: 0;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item h4 cite {
|
||||
#latest-comments #the-comment-list .comment-item h4 cite {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item blockquote,
|
||||
#the-comment-list .comment-item blockquote p {
|
||||
#latest-comments #the-comment-list .comment-item blockquote,
|
||||
#latest-comments #the-comment-list .comment-item blockquote p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#dashboard_recent_comments #the-comment-list .trackback blockquote,
|
||||
#dashboard_recent_comments #the-comment-list .pingback blockquote {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.row-actions {
|
||||
#latest-comments #the-comment-list .comment-item p.row-actions {
|
||||
margin: 3px 0 0;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* QuickPress */
|
||||
#header-logo {
|
||||
display: none;
|
||||
}
|
||||
/* QuickDraft */
|
||||
|
||||
#site-heading:before {
|
||||
top: 3px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
font: normal 18px/1 'dashicons';
|
||||
speak: none;
|
||||
color: #727272;
|
||||
content: '\f120';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.no-js #dashboard_quick_press {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .easy-blogging {
|
||||
padding: 0 8px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .prompt {
|
||||
color: #bbb;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#dashboard_quick_press div.updated {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#title-wrap label,
|
||||
#tags-input-wrap label {
|
||||
#title-wrap label {
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
|
@ -7878,90 +8311,11 @@ h3:hover .edit-box {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
#tags-input-wrap #tags-input {
|
||||
outline: none;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
#title-wrap #title-prompt-text {
|
||||
font-size: 1.3em;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
#tags-input-wrap #tags-input-prompt-text {
|
||||
font-size: 1em;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap,
|
||||
#dashboard_quick_press .textarea-wrap {
|
||||
margin: 0 0 .7em 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .input-text-wrap {
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .textarea-wrap {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .wp-media-buttons {
|
||||
margin: 0 0 2px 1px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#dashboard_quick_press .wp-media-buttons a {
|
||||
color: #777;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit input {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
|
||||
margin: 0 0.7em 0 1px;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit .spinner {
|
||||
vertical-align: middle;
|
||||
margin: 4px 6px 0 0;
|
||||
}
|
||||
|
||||
/* Recent Drafts */
|
||||
#dashboard_recent_drafts ul,
|
||||
#dashboard_recent_drafts p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts ul li {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts h4 {
|
||||
line-height: 1.7em;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#dashboard_recent_drafts h4 abbr {
|
||||
font-weight: normal;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
/* Feeds */
|
||||
.rss-widget ul {
|
||||
margin: 0;
|
||||
|
@ -7997,33 +8351,6 @@ a.rsswidget {
|
|||
content: '\2014';
|
||||
}
|
||||
|
||||
/* Plugins */
|
||||
#dashboard_plugins h4 {
|
||||
line-height: 1.7em;
|
||||
}
|
||||
|
||||
#dashboard_plugins h5 {
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
display: inline;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
#dashboard_plugins h5 a {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
#dashboard_plugins .inside span {
|
||||
font-size: 12px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
#dashboard_plugins p {
|
||||
margin: 0.3em 0 1.4em;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.dashboard-comment-wrap {
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -234,17 +234,8 @@ function wp_ajax_dashboard_widgets() {
|
|||
require_once ABSPATH . 'wp-admin/includes/dashboard.php';
|
||||
|
||||
switch ( $_GET['widget'] ) {
|
||||
case 'dashboard_incoming_links' :
|
||||
wp_dashboard_incoming_links();
|
||||
break;
|
||||
case 'dashboard_primary' :
|
||||
wp_dashboard_primary();
|
||||
break;
|
||||
case 'dashboard_secondary' :
|
||||
wp_dashboard_secondary();
|
||||
break;
|
||||
case 'dashboard_plugins' :
|
||||
wp_dashboard_plugins();
|
||||
case 'dashboard_rss' :
|
||||
wp_dashboard_rss();
|
||||
break;
|
||||
}
|
||||
wp_die();
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -730,7 +730,7 @@ function get_others_pending($user_id) {
|
|||
*/
|
||||
function wp_dashboard_quick_press_output() {
|
||||
_deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' );
|
||||
wp_dashboard_quick_press();
|
||||
wp_dashboard_quick_draft();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -29,11 +29,6 @@ if ( wp_is_mobile() )
|
|||
$title = __('Dashboard');
|
||||
$parent_file = 'index.php';
|
||||
|
||||
if ( is_user_admin() )
|
||||
add_screen_option('layout_columns', array('max' => 4, 'default' => 1) );
|
||||
else
|
||||
add_screen_option('layout_columns', array('max' => 4, 'default' => 2) );
|
||||
|
||||
$help = '<p>' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '</p>';
|
||||
|
||||
// Not using chaining here, so as to be parseable by PHP4.
|
||||
|
@ -47,47 +42,42 @@ $screen->add_help_tab( array(
|
|||
|
||||
// Help tabs
|
||||
|
||||
$help = '<p>' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '</p>';
|
||||
$help .= '<p>' . __('Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '</p>';
|
||||
$help = '<p>' . __( 'The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.' ) . '</p>';
|
||||
$help .= '<p>' . __( 'Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.' ) . '</p>';
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
'id' => 'help-navigation',
|
||||
'title' => __('Navigation'),
|
||||
'title' => __( 'Navigation' ),
|
||||
'content' => $help,
|
||||
) );
|
||||
|
||||
$help = '<p>' . __('You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.') . '</p>';
|
||||
$help .= '<p>' . __('<strong>Screen Options</strong> - Use the Screen Options tab to choose which Dashboard boxes to show, and how many columns to display.') . '</p>';
|
||||
$help .= '<p>' . __('<strong>Drag and Drop</strong> - To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.') . '</p>';
|
||||
$help .= '<p>' . __('<strong>Box Controls</strong> - Click the title bar of the box to expand or collapse it. In addition, some boxes have configurable content, and will show a “Configure” link in the title bar if you hover over it.') . '</p>';
|
||||
$help = '<p>' . __( 'You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.' ) . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Screen Options</strong> - Use the Screen Options tab to choose which Dashboard boxes to show.' ) . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Drag and Drop</strong> - To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.' ) . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Box Controls</strong> - Click the title bar of the box to expand or collapse it. In addition, some boxes have configurable content, and will show a “Configure” link in the title bar if you hover over it.' ) . '</p>';
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
'id' => 'help-layout',
|
||||
'title' => __('Layout'),
|
||||
'title' => __( 'Layout' ),
|
||||
'content' => $help,
|
||||
) );
|
||||
|
||||
$help = '<p>' . __('The boxes on your Dashboard screen are:') . '</p>';
|
||||
$help = '<p>' . __( 'The boxes on your Dashboard screen are:' ) . '</p>';
|
||||
if ( current_user_can( 'edit_posts' ) )
|
||||
$help .= '<p>' . __('<strong>Right Now</strong> - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '</p>';
|
||||
if ( current_user_can( 'moderate_comments' ) )
|
||||
$help .= '<p>' . __('<strong>Recent Comments</strong> - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '</p>';
|
||||
if ( current_user_can( 'publish_posts' ) )
|
||||
$help .= '<p>' . __('<strong>Incoming Links</strong> - Shows links to your site found by Google Blog Search.') . '</p>';
|
||||
if ( current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
|
||||
$help .= '<p>' . __('<strong>QuickPress</strong> - Allows you to create a new post and either publish it or save it as a draft.') . '</p>';
|
||||
$help .= '<p>' . __('<strong>Recent Drafts</strong> - Displays links to the 5 most recent draft posts you’ve started.') . '</p>';
|
||||
}
|
||||
$help .= '<p>' . __('<strong>WordPress Blog</strong> - Latest news from the official WordPress project.') . '</p>';
|
||||
$help .= '<p>' . __('<strong>Other WordPress News</strong> - Shows the <a href="http://planet.wordpress.org" target="_blank">WordPress Planet</a> feed. You can configure it to show a different feed of your choosing.') . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Site Content</strong> - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Activity</strong> - Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
|
||||
if ( is_blog_admin() && current_user_can( 'edit_posts' ) )
|
||||
$help .= '<p>' . __( "<strong>Quick Draft</strong> - Allows you to create a new post and save it as a draft. Also displays links to the 5 most recent draft posts you've started." ) . '</p>';
|
||||
if ( ! is_multisite() && current_user_can( 'install_plugins' ) )
|
||||
$help .= '<p>' . __('<strong>Plugins</strong> - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '</p>';
|
||||
$help .= '<p>' . __( '<strong>WordPress News</strong> - Latest news from the official WordPress project, the <a href="http://planet.wordpress.org/">WordPress Planet</a>, and popular and recent plugins.' ) . '</p>';
|
||||
else
|
||||
$help .= '<p>' . __( '<strong>WordPress News</strong> - Latest news from the official WordPress project, the <a href="http://planet.wordpress.org/">WordPress Planet</a>.' ) . '</p>';
|
||||
if ( current_user_can( 'edit_theme_options' ) )
|
||||
$help .= '<p>' . __('<strong>Welcome</strong> - Shows links for some of the most common tasks when setting up a new site.') . '</p>';
|
||||
$help .= '<p>' . __( '<strong>Welcome</strong> - Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
'id' => 'help-content',
|
||||
'title' => __('Content'),
|
||||
'title' => __( 'Content' ),
|
||||
'content' => $help,
|
||||
) );
|
||||
|
||||
|
@ -99,16 +89,16 @@ $screen->set_help_sidebar(
|
|||
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
|
||||
);
|
||||
|
||||
include (ABSPATH . 'wp-admin/admin-header.php');
|
||||
include ( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
$today = current_time('mysql', 1);
|
||||
$today = current_time( 'mysql', 1 );
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
|
||||
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
|
||||
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
|
||||
$classes = 'welcome-panel';
|
||||
|
||||
$option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
|
||||
|
@ -132,15 +122,12 @@ $today = current_time('mysql', 1);
|
|||
do_action( 'welcome_panel' );
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="dashboard-widgets-wrap">
|
||||
|
||||
<?php wp_dashboard(); ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div><!-- dashboard-widgets-wrap -->
|
||||
<div id="dashboard-widgets-wrap">
|
||||
<?php wp_dashboard(); ?>
|
||||
</div><!-- dashboard-widgets-wrap -->
|
||||
|
||||
</div><!-- wrap -->
|
||||
|
||||
<?php require(ABSPATH . 'wp-admin/admin-footer.php'); ?>
|
||||
<?php require( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
|
|
@ -29,10 +29,7 @@ jQuery(document).ready( function($) {
|
|||
|
||||
// These widgets are sometimes populated via ajax
|
||||
ajaxWidgets = [
|
||||
'dashboard_incoming_links',
|
||||
'dashboard_primary',
|
||||
'dashboard_secondary',
|
||||
'dashboard_plugins'
|
||||
'dashboard_rss'
|
||||
];
|
||||
|
||||
ajaxPopulateWidgets = function(el) {
|
||||
|
@ -66,28 +63,32 @@ jQuery(document).ready( function($) {
|
|||
quickPressLoad = function() {
|
||||
var act = $('#quickpost-action'), t;
|
||||
t = $('#quick-press').submit( function() {
|
||||
$('#dashboard_quick_press #publishing-action .spinner').show();
|
||||
$('#dashboard_quick_draft #publishing-action .spinner').show();
|
||||
$('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);
|
||||
|
||||
if ( 'post' == act.val() ) {
|
||||
act.val( 'post-quickpress-publish' );
|
||||
$.post( t.attr( 'action' ), t.serializeArray(), function( data ) {
|
||||
// Replace the form, and prepend the published post.
|
||||
$('#dashboard_quick_draft .inside').html( data );
|
||||
$('#quick-press').removeClass('initial-form');
|
||||
quickPressLoad();
|
||||
highlightLatestPost();
|
||||
$('#title').focus();
|
||||
});
|
||||
|
||||
function highlightLatestPost () {
|
||||
var latestPost = $('#draft-list li').first();
|
||||
latestPost.css('background', '#fffbe5');
|
||||
setTimeout(function () {
|
||||
latestPost.css('background', 'none');
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
$('#dashboard_quick_press div.inside').load( t.attr( 'action' ), t.serializeArray(), function() {
|
||||
$('#dashboard_quick_press #publishing-action .spinner').hide();
|
||||
$('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', false);
|
||||
$('#dashboard_quick_press ul').next('p').remove();
|
||||
$('#dashboard_quick_press ul').find('li').each( function() {
|
||||
$('#dashboard_recent_drafts ul').prepend( this );
|
||||
} ).end().remove();
|
||||
quickPressLoad();
|
||||
} );
|
||||
return false;
|
||||
} );
|
||||
|
||||
$('#publish').click( function() { act.val( 'post-quickpress-publish' ); } );
|
||||
|
||||
$('#title, #tags-input').each( function() {
|
||||
$('#title, #tags-input, #content').each( function() {
|
||||
var input = $(this), prompt = $('#' + this.id + '-prompt-text');
|
||||
|
||||
if ( '' === this.value )
|
||||
|
@ -109,9 +110,39 @@ jQuery(document).ready( function($) {
|
|||
});
|
||||
|
||||
$('#quick-press').on( 'click focusin', function() {
|
||||
$(this).addClass("quickpress-open");
|
||||
$("#description-wrap, p.submit").slideDown(200);
|
||||
wpActiveEditor = 'content';
|
||||
});
|
||||
};
|
||||
quickPressLoad();
|
||||
|
||||
// Activity Widget
|
||||
$( '.show-more a' ).on( 'click', function(e) {
|
||||
$( this ).fadeOut().closest('.activity-block').find( 'li.hidden' ).fadeIn().removeClass( 'hidden' );
|
||||
e.preventDefault();
|
||||
})
|
||||
|
||||
// Dashboard columns
|
||||
jQuery(document).ready(function ($) {
|
||||
// Update main column count on load
|
||||
updateColumnCount();
|
||||
});
|
||||
|
||||
jQuery(window).resize( _.debounce( function(){
|
||||
updateColumnCount();
|
||||
}, 30) );
|
||||
|
||||
function updateColumnCount() {
|
||||
var cols = 1,
|
||||
windowWidth = parseInt(jQuery(window).width());
|
||||
if (799 < windowWidth && 1299 > windowWidth)
|
||||
cols = 2;
|
||||
if (1300 < windowWidth && 1799 > windowWidth)
|
||||
cols = 3;
|
||||
if (1800 < windowWidth)
|
||||
cols = 4;
|
||||
jQuery('.metabox-holder').attr('class', jQuery('.metabox-holder').attr('class').replace(/columns-\d+/, 'columns-' + cols));
|
||||
}
|
||||
|
||||
} );
|
||||
|
|
|
@ -1 +1 @@
|
|||
var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(a){var b=a("#welcome-panel"),c=a("#wp_welcome_panel-hide"),d=function(b){a.post(ajaxurl,{action:"update-welcome-panel",visible:b,welcomepanelnonce:a("#welcomepanelnonce").val()})};b.hasClass("hidden")&&c.prop("checked")&&b.removeClass("hidden"),a(".welcome-panel-close, .welcome-panel-dismiss a",b).click(function(c){c.preventDefault(),b.addClass("hidden"),d(0),a("#wp_welcome_panel-hide").prop("checked",!1)}),c.click(function(){b.toggleClass("hidden",!this.checked),d(this.checked?1:0)}),ajaxWidgets=["dashboard_incoming_links","dashboard_primary","dashboard_secondary","dashboard_plugins"],ajaxPopulateWidgets=function(b){function c(b,c){var d,e=a("#"+c+" div.inside:visible").find(".widget-loading");e.length&&(d=e.parent(),setTimeout(function(){d.load(ajaxurl+"?action=dashboard-widgets&widget="+c,"",function(){d.hide().slideDown("normal",function(){a(this).css("display","")})})},500*b))}b?(b=b.toString(),-1!=a.inArray(b,ajaxWidgets)&&c(0,b)):a.each(ajaxWidgets,c)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),quickPressLoad=function(){var b,c=a("#quickpost-action");b=a("#quick-press").submit(function(){return a("#dashboard_quick_press #publishing-action .spinner").show(),a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),"post"==c.val()&&c.val("post-quickpress-publish"),a("#dashboard_quick_press div.inside").load(b.attr("action"),b.serializeArray(),function(){a("#dashboard_quick_press #publishing-action .spinner").hide(),a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!1),a("#dashboard_quick_press ul").next("p").remove(),a("#dashboard_quick_press ul").find("li").each(function(){a("#dashboard_recent_drafts ul").prepend(this)}).end().remove(),quickPressLoad()}),!1}),a("#publish").click(function(){c.val("post-quickpress-publish")}),a("#title, #tags-input").each(function(){var b=a(this),c=a("#"+this.id+"-prompt-text");""===this.value&&c.removeClass("screen-reader-text"),c.click(function(){a(this).addClass("screen-reader-text"),b.focus()}),b.blur(function(){""===this.value&&c.removeClass("screen-reader-text")}),b.focus(function(){c.addClass("screen-reader-text")})}),a("#quick-press").on("click focusin",function(){wpActiveEditor="content"})},quickPressLoad()});
|
||||
var ajaxWidgets,ajaxPopulateWidgets,quickPressLoad;jQuery(document).ready(function(a){function b(){var a=1,b=parseInt(jQuery(window).width());b>799&&1299>b&&(a=2),b>1300&&1799>b&&(a=3),b>1800&&(a=4),jQuery(".metabox-holder").attr("class",jQuery(".metabox-holder").attr("class").replace(/columns-\d+/,"columns-"+a))}var c=a("#welcome-panel"),d=a("#wp_welcome_panel-hide"),e=function(b){a.post(ajaxurl,{action:"update-welcome-panel",visible:b,welcomepanelnonce:a("#welcomepanelnonce").val()})};c.hasClass("hidden")&&d.prop("checked")&&c.removeClass("hidden"),a(".welcome-panel-close, .welcome-panel-dismiss a",c).click(function(b){b.preventDefault(),c.addClass("hidden"),e(0),a("#wp_welcome_panel-hide").prop("checked",!1)}),d.click(function(){c.toggleClass("hidden",!this.checked),e(this.checked?1:0)}),ajaxWidgets=["dashboard_rss"],ajaxPopulateWidgets=function(b){function c(b,c){var d,e=a("#"+c+" div.inside:visible").find(".widget-loading");e.length&&(d=e.parent(),setTimeout(function(){d.load(ajaxurl+"?action=dashboard-widgets&widget="+c,"",function(){d.hide().slideDown("normal",function(){a(this).css("display","")})})},500*b))}b?(b=b.toString(),-1!=a.inArray(b,ajaxWidgets)&&c(0,b)):a.each(ajaxWidgets,c)},ajaxPopulateWidgets(),postboxes.add_postbox_toggles(pagenow,{pbshow:ajaxPopulateWidgets}),quickPressLoad=function(){var b,c=a("#quickpost-action");b=a("#quick-press").submit(function(){function c(){var b=a("#draft-list li").first();b.css("background","#fffbe5"),setTimeout(function(){b.css("background","none")},1e3)}return a("#dashboard_quick_draft #publishing-action .spinner").show(),a('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop("disabled",!0),a.post(b.attr("action"),b.serializeArray(),function(b){a("#dashboard_quick_draft .inside").html(b),a("#quick-press").removeClass("initial-form"),quickPressLoad(),c(),a("#title").focus()}),!1}),a("#publish").click(function(){c.val("post-quickpress-publish")}),a("#title, #tags-input, #content").each(function(){var b=a(this),c=a("#"+this.id+"-prompt-text");""===this.value&&c.removeClass("screen-reader-text"),c.click(function(){a(this).addClass("screen-reader-text"),b.focus()}),b.blur(function(){""===this.value&&c.removeClass("screen-reader-text")}),b.focus(function(){c.addClass("screen-reader-text")})}),a("#quick-press").on("click focusin",function(){a(this).addClass("quickpress-open"),a("#description-wrap, p.submit").slideDown(200),wpActiveEditor="content"})},quickPressLoad(),a(".show-more a").on("click",function(b){a(this).fadeOut().closest(".activity-block").find("li.hidden").fadeIn().removeClass("hidden"),b.preventDefault()}),jQuery(document).ready(function(){b()}),jQuery(window).resize(_.debounce(function(){b()},30))});
|
|
@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
|
|||
|
||||
$(window).resize(function(){ tb_position(); });
|
||||
|
||||
$('#dashboard_plugins, .plugins').on( 'click', 'a.thickbox', function() {
|
||||
$('.plugins').on( 'click', 'a.thickbox', function() {
|
||||
tb_click.call(this);
|
||||
|
||||
$('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
|
||||
|
|
|
@ -1 +1 @@
|
|||
var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>720?720:c,f=0;return a("body.admin-bar").length&&(f=28),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85-f)))})},a(window).resize(function(){tb_position()}),a("#dashboard_plugins, .plugins").on("click","a.thickbox",function(){return tb_click.call(this),a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"}),a("#TB_ajaxWindowTitle").html("<strong>"+plugininstallL10n.plugin_information+"</strong> "+a(this).attr("title")),!1}),a("#plugin-information #sidemenu a").click(function(){var b=a(this).attr("name");return a("#plugin-information-header a.current").removeClass("current"),a(this).addClass("current"),a("#section-holder div.section").hide(),a("#section-"+b).show(),!1}),a("a.install-now").click(function(){return confirm(plugininstallL10n.ays)})});
|
||||
var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>720?720:c,f=0;return a("body.admin-bar").length&&(f=28),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85-f)))})},a(window).resize(function(){tb_position()}),a(".plugins").on("click","a.thickbox",function(){return tb_click.call(this),a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"}),a("#TB_ajaxWindowTitle").html("<strong>"+plugininstallL10n.plugin_information+"</strong> "+a(this).attr("title")),!1}),a("#plugin-information #sidemenu a").click(function(){var b=a(this).attr("name");return a("#plugin-information-header a.current").removeClass("current"),a(this).addClass("current"),a("#section-holder div.section").hide(),a("#section-"+b).show(),!1}),a("a.install-now").click(function(){return confirm(plugininstallL10n.ays)})});
|
|
@ -66,8 +66,6 @@ function redirect_post($post_id = '') {
|
|||
$location = add_query_arg( 'message', 3, wp_get_referer() );
|
||||
$location = explode('#', $location);
|
||||
$location = $location[0] . '#postcustom';
|
||||
} elseif ( 'post-quickpress-save-cont' == $_POST['action'] ) {
|
||||
$location = "post.php?action=edit&post=$post_id&message=7";
|
||||
} else {
|
||||
$location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) );
|
||||
}
|
||||
|
@ -96,30 +94,40 @@ if ( ! $sendback ||
|
|||
}
|
||||
|
||||
switch($action) {
|
||||
case 'post-quickdraft-save':
|
||||
// Check nonce and capabilities
|
||||
$nonce = $_REQUEST['_wpnonce'];
|
||||
$error_msg = false;
|
||||
if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
|
||||
$error_msg = 'Unable to submit this form, please refresh and try again.';
|
||||
|
||||
if ( ! current_user_can( 'edit_posts' ) )
|
||||
$error_msg = "Oops, you don't have access to add new drafts.";
|
||||
|
||||
if ( $error_msg )
|
||||
return wp_dashboard_quick_draft( $error_msg );
|
||||
|
||||
$post = get_post( $_REQUEST['post_ID'] );
|
||||
check_admin_referer( 'add-' . $post->post_type );
|
||||
edit_post();
|
||||
// output the quickdraft dashboard widget
|
||||
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
||||
wp_dashboard_quick_draft();
|
||||
exit;
|
||||
break;
|
||||
|
||||
case 'postajaxpost':
|
||||
case 'post':
|
||||
case 'post-quickpress-publish':
|
||||
case 'post-quickpress-save':
|
||||
check_admin_referer('add-' . $post_type);
|
||||
// Check nonce and capabilities
|
||||
$nonce = $_REQUEST['_wpnonce'];
|
||||
$error_msg = false;
|
||||
if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
|
||||
$error_msg = 'Unable to submit this form, please refresh and try again.';
|
||||
|
||||
if ( 'post-quickpress-publish' == $action )
|
||||
$_POST['publish'] = 'publish'; // tell write_post() to publish
|
||||
if ( ! current_user_can( 'edit_posts' ) )
|
||||
$error_msg = "Oops, you don't have access to add new drafts.";
|
||||
|
||||
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
|
||||
$_POST['comment_status'] = get_option('default_comment_status');
|
||||
$_POST['ping_status'] = get_option('default_ping_status');
|
||||
$post_id = edit_post();
|
||||
} else {
|
||||
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();
|
||||
}
|
||||
|
||||
if ( 0 === strpos( $action, 'post-quickpress' ) ) {
|
||||
$_POST['post_ID'] = $post_id;
|
||||
// output the quickpress dashboard widget
|
||||
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
||||
wp_dashboard_quick_press();
|
||||
exit;
|
||||
}
|
||||
|
||||
redirect_post($post_id);
|
||||
exit();
|
||||
|
|
|
@ -904,7 +904,7 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
|||
if ( $link == '' ) {
|
||||
echo "<li>$title{$date}{$summary}{$author}</li>";
|
||||
} else {
|
||||
echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
|
||||
echo "<li><div class='rss-title-row'><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}</div>{$summary}{$author}</li>";
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
|
|
Loading…
Reference in New Issue