Admin dashboard widget, namespace EOS, remove unused widgets
This commit is contained in:
@@ -34,6 +34,10 @@
|
||||
.icon-shield:before {
|
||||
content: "\f334";
|
||||
}
|
||||
.icon-calendar:before {
|
||||
content: "\f469";
|
||||
}
|
||||
|
||||
|
||||
#adminmenu #toplevel_page_sportspress .menu-icon-generic div.wp-menu-image:before,
|
||||
#adminmenu #menu-posts-sp_event .menu-icon-sp_event div.wp-menu-image:before,
|
||||
@@ -42,6 +46,108 @@
|
||||
font-family: sportspress, dashicons !important;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .inside {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li {
|
||||
width: 50%;
|
||||
float: left;
|
||||
padding: 0;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
border-top: 1px solid #ececec;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.countdown {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.events-scheduled {
|
||||
border-right: 1px solid #ececec;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li a {
|
||||
display: block;
|
||||
color: #aaa;
|
||||
padding: 9px 12px;
|
||||
-webkit-transition: all ease .5s;
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li a:before {
|
||||
font-family: sportspress, dashicons;
|
||||
speak: none;
|
||||
font-weight: 400;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
margin: 0;
|
||||
text-indent: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
content: "\f145";
|
||||
font-size: 2em;
|
||||
position: relative;
|
||||
width: auto;
|
||||
line-height: 1.2em;
|
||||
color: #464646;
|
||||
float: left;
|
||||
margin-right: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.countdown a:before {
|
||||
content: "\f469";
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.events-scheduled a:before,
|
||||
#sportspress_dashboard_status .sp_status_list li.events-published a:before {
|
||||
color: #999;
|
||||
font-size: 2.5em;
|
||||
line-height: 1em;
|
||||
margin-left: -3px;
|
||||
margin-right: 9px;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.events-scheduled a:before {
|
||||
color: #ffba00;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li.events-published a:before {
|
||||
color: #21759b;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li strong {
|
||||
font-size: 18px;
|
||||
line-height: 1.2em;
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
color: #21759b;
|
||||
}
|
||||
|
||||
#sportspress_dashboard_status .sp_status_list li a:hover,
|
||||
#sportspress_dashboard_status .sp_status_list li a:hover strong,
|
||||
#sportspress_dashboard_status .sp_status_list li a:hover:before {
|
||||
color: #2ea2cc;
|
||||
}
|
||||
|
||||
.sportspress-message {
|
||||
border-left-color: #6bc2a5 !important;
|
||||
}
|
||||
@@ -72,8 +178,6 @@
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
||||
}
|
||||
|
||||
.widget[id*="sp_recent_events-"] .widget-title h4:before,
|
||||
.widget[id*="sp_future_events-"] .widget-title h4:before,
|
||||
.widget[id*="sp_countdown-"] .widget-title h4:before,
|
||||
.widget[id*="sp_events_calendar-"] .widget-title h4:before,
|
||||
.widget[id*="sp_player_list-"] .widget-title h4:before,
|
||||
|
||||
Binary file not shown.
@@ -10,4 +10,5 @@
|
||||
<glyph unicode="" d="M384 435.2h-51.2v-51.2h51.2v51.2zM435.2 435.2h-25.6v-76.8h-102.4v76.8h-102.4v-76.8h-102.4v76.8h-25.6c-14.16 0-25.6-11.44-25.6-25.6v-358.4c0-14.16 11.44-25.6 25.6-25.6h358.4c14.16 0 25.6 11.44 25.6 25.6v358.4c0 14.16-11.44 25.6-25.6 25.6zM409.6 76.8h-307.2v230.4h307.2v-230.4zM179.2 435.2h-51.2v-51.2h51.2v51.2zM281.6 256h-51.2v-51.2h51.2v51.2zM358.4 256h-51.2v-51.2h51.2v51.2zM204.8 179.2h-51.2v-51.2h51.2v51.2zM204.8 256h-51.2v-51.2h51.2v51.2zM281.6 179.2h-51.2v-51.2h51.2v51.2zM358.4 179.2h-51.2v-51.2h51.2v51.2z" />
|
||||
<glyph unicode="" d="M440.909 303.257c-40.525 94.336-105.779 166.17-138.778 152.73-56.038-22.784 33.408-132.199-241.817-244.071-23.782-9.651-29.799-48.333-19.84-71.45 9.933-23.117 42.445-46.131 66.227-36.48 4.096 1.664 19.225 6.528 19.225 6.528 16.973-22.784 34.739-9.267 41.063-23.757 7.577-17.408 24.038-55.219 29.619-68.070 5.632-12.851 18.329-24.781 27.546-21.274 9.165 3.507 40.473 15.437 52.455 19.968s14.848 15.232 11.187 23.654c-3.942 9.063-20.122 11.725-24.729 22.323-4.634 10.599-19.712 44.519-24.038 55.219-5.888 14.541 6.631 26.368 24.832 28.262 125.286 13.056 148.711-64.333 191.36-46.976 32.921 13.466 26.214 109.056-14.31 203.392zM426.803 150.246c-7.322-2.969-56.627 35.891-88.141 109.235-31.488 73.318-27.52 140.339-20.224 143.309 7.322 2.995 55.424-43.93 86.938-117.248 31.462-73.293 28.749-132.327 21.427-135.296z" />
|
||||
<glyph unicode="" d="M425.76 154.48c-6.16-15.76-14-29.84-23.2-42s-20.24-24.080-33.040-35.68c-12.8-11.52-24.56-21.2-35.36-28.88-10.88-7.6-22.080-14.88-33.84-21.68-11.84-6.8-20.16-11.44-25.12-13.92-4.96-2.4-8.96-4.24-11.92-5.52-2.24-1.2-4.64-1.68-7.28-1.68s-5.040 0.64-7.28 1.68c-3.040 1.28-6.88 3.12-11.92 5.52-5.040 2.4-13.36 7.040-25.12 13.92-11.76 6.8-23.040 14-33.84 21.68-10.88 7.68-22.56 17.28-35.36 28.88-12.8 11.52-23.84 23.36-33.040 35.68s-16.96 26.24-23.2 42c-6.32 15.76-9.44 31.76-9.44 47.76v215.040c0 4.8 1.68 9.12 5.28 12.64s7.76 5.28 12.64 5.28h322.56c4.8 0 9.12-1.68 12.64-5.28s5.28-7.76 5.28-12.64v-215.040c0-16-3.2-32-9.44-47.76zM384 384h-256v-181.92c0-33.36 22.4-67.52 67.12-102.32 17.92-14 38.24-27.040 60.88-38.96v0 0 0 0c22.64 11.92 42.96 24.96 60.88 38.96 44.72 34.88 67.12 68.96 67.12 102.32v181.92zM304.72 122.8c-14.32-11.6-30.56-22.4-48.72-32.24v0 0 267.68h102.4v-150.72c0-27.6-17.92-55.84-53.68-84.72z" />
|
||||
<glyph unicode="" d="M256 465.92c-130.073 0-235.52-105.472-235.52-235.52 0-130.073 105.447-235.52 235.52-235.52s235.52 105.447 235.52 235.52c0 130.074-105.447 235.52-235.52 235.52zM256 46.080c-101.811 0-184.32 82.534-184.32 184.32s82.509 184.32 184.32 184.32 184.32-82.534 184.32-184.32-82.509-184.32-184.32-184.32zM273.92 363.52h-35.84v-140.544l87.168-87.168 25.344 25.344-76.672 76.672z" />
|
||||
</font></defs></svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Binary file not shown.
@@ -171,9 +171,9 @@ jQuery(document).ready(function($){
|
||||
}
|
||||
|
||||
// Select all checkboxes
|
||||
$(".sp-data-table thead .sp-select-all").change(function() {
|
||||
$table = $(this).closest(".sp-data-table");
|
||||
$table.find("tbody input[type=checkbox]").prop("checked", $(this).prop("checked"));
|
||||
$(".sp-select-all").change(function() {
|
||||
$range = $(this).closest(".sp-select-all-range");
|
||||
$range.find("input[type=checkbox]").prop("checked", $(this).prop("checked"));
|
||||
});
|
||||
|
||||
// Check if all checkboxes are checked already
|
||||
@@ -266,4 +266,12 @@ jQuery(document).ready(function($){
|
||||
return event.keyCode != 13;
|
||||
});
|
||||
|
||||
// Dashboard countdown
|
||||
$("#sportspress_dashboard_status .sp_status_list li.countdown").each(function() {
|
||||
var $this = $(this), finalDate = $(this).data('countdown');
|
||||
$this.countdown(finalDate, function(event) {
|
||||
$this.find('strong').html(event.strftime("%D "+localized_strings.days+" %H:%M:%S"));
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user