installed plugin W3 Total Cache version 2.3.2

This commit is contained in:
2023-06-05 11:23:16 +00:00
committed by Gitium
parent d9b3c97e40
commit 51ea2ff21c
2730 changed files with 334913 additions and 0 deletions

View File

@ -0,0 +1,49 @@
* {
margin: 0;
padding: 0;
color: #464646;
}
html, body {
height: 100%;
}
body {
line-height: 1.4em;
}
body, input {
font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
font-size: 13px;
}
a {
color: #21759B;
}
a:hover {
color: #D54E21;
}
.button, input[type="button"], input[type="submit"] {
font-size: 11px;
line-height: 16px;
background: #f2f2f2 url(../img/white-grad.png) repeat-x scroll left top;
border: 1px solid #bbb;
color: #464646;
text-shadow: 0 1px 0 #fff;
cursor: pointer;
padding: 2px 8px;
border-radius: 11px;
-webkit-border-radius: 11px;
-moz-border-radius: 11px;
}
.button:hover, input[type="button"]:hover, input[type="submit"]:hover {
border-color: #666;
color: #000;
}
.button:active, input[type="button"]:active, input[type="submit"]:active {
background: #f2f2f2 url(../img/white-grad-active.png) repeat-x scroll left top;
}

View File

@ -0,0 +1,10 @@
#wp-admin-bar-w3tc > a .awaiting-mod,
#wp-admin-bar-w3tc_feature_showcase a .awaiting-mod {
background-color: #d63638;
border-radius: 9px;
color: #fff;
font-size: 11px;
height: 18px;
min-width: 18px;
padding: 0 5px;
}

View File

@ -0,0 +1,167 @@
@media screen and (max-width: 320px) {
.w3tc-card-container {
grid-template-columns: 1fr;
}
}
@media screen and (max-width: 900px) {
.w3tc-card-container {
grid-template-columns: 1fr 1fr;
}
}
@media screen and (min-width: 900px) {
.w3tc-card-container {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media screen and (min-width: 1400px) {
.w3tc-card-container {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}
.w3tc-page-container {
max-width: 1234px;
padding: 0;
}
#w3tc_dashboard_banner {
max-width: 1234px;
width: 100%;
}
.w3tc-card-container {
display: grid;
grid-gap: 2em;
}
.w3tc-card {
background: #fff;
border: 1px solid #ddd;
display: flex;
flex-direction: column;
position: relative;
}
.w3tc-card-title {
height: 2.5em;
}
.w3tc-card-title.w3tc-card-premium {
background-color: #2d4149;
}
.w3tc-card-title.w3tc-card-premium > p {
color: #fff;
}
.w3tc-card-title.w3tc-card-premium > p.w3tc-card-pro {
color: #30bec3;
margin: 0;
}
.w3tc-card-title > p:first-child {
font-size: 1.3em;
margin: 0;
white-space: nowrap;
}
.w3tc-card-body {
flex-grow: 10;
}
.w3tc-card-title,
.w3tc-card-body {
padding: 10px 10px 15px 10px;
}
.w3tc-card-icon {
border-top: 3px solid #000;
border-bottom: 1px solid #ddd;
height: 60px;
padding: 20px 0;
text-align: center;
}
.w3tc-card-icon .dashicons {
font-size: 60px;
height: 60px;
width: 60px;
}
.w3tc-card-icon-inactive {
border-top-color: #aaa;
}
.w3tc-card-icon img {
max-height: 60px;
}
.w3tc-card-upgrade {
background: #e7e7e7;
}
.w3tc-card-ribbon-new {
height: 75px;
overflow: hidden;
position: absolute;
right: -5px; top: -5px;
text-align: right;
width: 75px;
z-index: 1;
}
.w3tc-card-ribbon-new span {
background: #30bec3;
box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
color: #fff;
display: block;
font-size: 12px;
font-weight: bold;
line-height: 20px;
position: absolute;
right: -21px;
text-transform: uppercase;
text-align: center;
top: 19px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg); /* Needed for Safari */
width: 100px;
}
.w3tc-card-ribbon-new span::before {
border-left: 3px solid #30bec3;
border-right: 3px solid transparent;
border-bottom: 3px solid transparent;
border-top: 3px solid #30bec3;
content: '';
left: 0px;
position: absolute;
top: 100%;
z-index: -1;
}
.w3tc-card-ribbon-new span::after {
border-right: 3px solid #30bec3;
border-left: 3px solid transparent;
border-bottom: 3px solid transparent;
border-top: 3px solid #30bec3;
content: '';
position: absolute;
right: 0%;
top: 100%;
z-index: -1;
}
.w3tc-card-footer {
margin: 0 0 10px 10px;
}
.w3tc-card-footer > div {
display: inline-block;
text-align: center;
vertical-align: middle;
width: 50%;
}

View File

@ -0,0 +1,550 @@
#w3tc_lightbox_content .metabox-holder {
padding-top: 0;
}
/* make mismatch in popup resizing invisible, border shows them well */
#w3tc_lightbox_content .postbox {
border: none;
}
#overlay {
background: #666;
font-size:12px;
}
.ui-widget-overlay {
background-color: #666;
position: absolute;
opacity: 0.6;
top:0;
left:0;
}
.lightbox,.ui-dialog {
position: absolute;
background: #fdfdfd;
padding: 20px;
border: 1px solid #bbb;
border-radius: 11px;
-webkit-border-radius: 11px;
-moz-border-radius: 11px;
}
.lightbox h3 {
margin-top: 0;
}
.lightbox-close,.ui-dialog-titlebar-close {
cursor: pointer;
position: absolute;
text-decoration: underline;
right: 20px;
z-index: 9999;
}
.lightbox-loader {
background: url(../img/wpspin_light.gif) no-repeat center center;
}
.lightbox-content {
position: relative;
font-size:12px;
}
#recom_container {
top: 90px;
bottom: 120px;
overflow: auto;
position: absolute;
width: 100%;
}
#recom_container_bottom {
bottom: 0;
width: 100%;
position: absolute;
}
#recom_container_bottom p {
margin-top: 0;
}
#recom_container_bottom fieldset {
margin: 0;
}
th.minify-files-add, td.minify-files-add {
width: 40px;
text-align: center;
}
#w3tc-self-test {
top: 170px;
bottom: 40px;
overflow: auto;
position: absolute;
width: 100%;
}
#w3tc-self-test ul {
list-style: none;
}
#w3tc-self-test-bottom {
bottom: 0;
width: 100%;
position: absolute;
}
.w3tc-self-test-hint {
font-size: 0.8em;
font-style: italic;
color: #999;
}
/**
###################
## Overlays
###################
*/
.w3tc-overlay {
background-color: #fff;
}
.w3tc-overlay .content {
padding: 10px 10px 10px 10px;
}
.w3tc-overlay p, .w3tc-overlay label, .w3tc-overlay option {
font-family:Arial, Verdana,sans-serif;
}
.w3tc-overlay p {
line-height: 1.72222;
margin: 0 0 15px;
}
.w3tc-overlay label {
line-height: 1.9986363100000002em;
font-weight:bold;
}
.w3tc-overlay .btn {
border: none;
font-size: 15px;
font-weight: normal;
line-height: 1.4;
border-radius: 4px;
padding: 10px 15px;
-webkit-font-smoothing: subpixel-antialiased;
-webkit-transition: 0.25s linear;
transition: 0.25s linear;
color: #ffffff;
}
.w3tc-overlay .btn:hover,
.w3tc-overlay .btn:focus {
color: #ffffff;
}
.w3tc-overlay .btn:active,
.w3tc-overlay .btn.active {
outline: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.w3tc-overlay .btn.disabled,
.w3tc-overlay .btn[disabled],
fieldset[disabled] .btn {
background-color: #bdc3c7;
color: rgba(255, 255, 255, 0.75);
opacity: 0.7;
filter: alpha(opacity=70);
}
.w3tc-overlay .btn > [class^="fui-"] {
margin: 0 1px;
position: relative;
line-height: 1;
top: 1px;
}
.w3tc-overlay .btn-xs.btn > [class^="fui-"] {
font-size: 11px;
top: 0;
}
.w3tc-overlay .btn-hg.btn > [class^="fui-"] {
top: 2px;
}
.w3tc-overlay .btn-default {
color: #ffffff;
background-color: #bdc3c7;
}
.w3tc-overlay .btn-primary {
color: #ffffff;
background-color: #1abc9c;
}
#w3tc-support-us ul {margin:0;padding:0;}
#w3tc-support-us li { display: inline-block; margin-right: 15px;}
.w3tc-overlay .image {
/*background-color: transparent; /* make the button transparent */
background-repeat: no-repeat; /* make the background image appear only once */
background-position: 10px 6px; /* equivalent to 'top left' */
border: none; /* assuming we don't want any borders */
cursor: pointer; /* make the cursor like hovering over an <a> element */
padding-left: 16px; /* make text start to the right of the image */
vertical-align: middle; /* align the text vertically centered */
}
.w3tc-overlay .w3tc-support-us h3 {
font-size: 16pt;
}
.w3tc-overlay .font-palette-dark-skies {
color:#666
}
.w3tc-overlay .btn {
border-bottom:solid 2px #000;
font-weight:bolder;
}
.w3tc-overlay .form-control.w3tc-size {
height:32px;
line-height:26px;
margin:0;
padding:0 5px 0 5px;
}
.w3tc-overlay input[type=button] {
cursor: pointer;
}
.w3tc-overlay input[type=text].form-control {
width:425px;
}
.w3tc-overlay select.w3tc-size {
height:32px;
width:250px;
margin:0;
padding:0px 5px 0px 5px;
font-weight: normal;
border: 2px solid #bdc3c7;
color: #34495e;
font-size: 15px;
border-radius: 6px;
-webkit-box-shadow: none;
box-shadow: none;
-webkit-transition: border .25s linear, color .25s linear, background-color .25s linear;
transition: border .25s linear, color .25s linear, background-color .25s linear;
}
.w3tc-overlay .btn.w3tc-size {
margin:0;
padding:5px 10px 5px 10px;
}
.w3tc-overlay .btn.palette-light-grey {
background-color: #cccccc;
border-bottom-color: #aeaeae;
}
.w3tc-overlay .btn-default.palette-twitter:active,
.w3tc-overlay .btn-default.palette-twitter.active,
.w3tc-overlay .btn.palette-twitter {
background-color: #00acee;
color: #fff;
border-bottom-color: #0092cb;
padding:5px 10px 5px 37px;
background-image: url(../img/overlay/twitter-bird-dark-bgs.png);
}
.w3tc-overlay .btn-default.palette-wordpress:active,
.w3tc-overlay .btn-default.palette-wordpress.active,
.w3tc-overlay .btn.palette-wordpress{
background-color: #1585b6;
color: #fff;
border-bottom-color: #12719b;
padding:5px 10px 5px 37px;
background-image: url(../img/overlay/wordpress-logo-simplified-rgb.png);
}
.w3tc-overlay .btn.save:active,
.w3tc-overlay .btn.save.active,
.w3tc-overlay .btn.save {
background-position: 10px 5px; /* equivalent to 'top left' */
padding:5px 10px 5px 37px;
background-image: url(../img/overlay/save-close.png);
}
.w3tc-overlay .btn.secure:active,
.w3tc-overlay .btn.secure.active,
.w3tc-overlay .btn.secure {
background-position: 10px 5px; /* equivalent to 'top left' */
padding:5px 10px 5px 37px;
background-image: url(../img/overlay/save-close.png);
text-decoration: none;
}
.w3tc-overlay btn.palette-turquoise {
border-bottom-color: #1abc9c;
}
.w3tc-overlay input[type=checkbox].css-checkbox {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height:1px;
width:1px;
margin:-1px;
padding:0;
border:0;
}
.w3tc-overlay input[type=checkbox].css-checkbox + label.css-label {
padding-left:20px;
height:17px;
display:inline-block;
line-height:18px;
background-repeat:no-repeat;
background-position: 0 0;
font-size:15px;
vertical-align:middle;
cursor:pointer;
}
.w3tc-overlay input[type=checkbox].css-checkbox:checked + label.css-label {
background-position: 0 -17px;
}
.w3tc-overlay .css-label{ background-image:url(../img/overlay/gray-check.png); }
.w3tc-overlay {
position: absolute;
background: #fdfdfd;
border: 1px solid #bbb;
border-radius: 6px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
}
.w3tc-overlay header {
background-color: #f3f3f3;
color: #cacaca;
height:20px;
border-bottom: dashed 1px #c0c0c0;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-moz-border-top-left-radius: 6px;
-moz-border-top-right-radius: 6px;
}
.w3tc-overlay #w3tc-support-us header {
height:100px;
background-repeat:no-repeat;
background-position: 10px 7px;
background-image: url(../img/overlay/ceo.png);
}
.w3tc-overlay #w3tc-support-us header h2, header h3 {
margin:0;padding:0;
}
.w3tc-overlay #w3tc-support-us header div.left h2 {
font-size:20px;
color: #7b7b7b;
margin-top:10px;
margin-bottom:10px;
}
.w3tc-overlay #w3tc-support-us header div.left {
margin-top:10px;
padding-right:20px;
margin-left:110px;
border-right:solid 2px #FFF;
height:80px;
}
.w3tc-overlay #w3tc-support-us div.right {
margin-top: 5px;
line-height: 100px;
height: 100px;
padding-right: 40px;
}
.w3tc-overlay .w3tc-support-us header h3 {
font-size:14px;
}
.w3tc-overlay .palette-turquoise {
background-color: #1abc9c;
border-bottom-color: #16a085;
}
.w3tc_signup_email {
margin-bottom: 5px;
}
.w3tc-overlay-logo {
margin-top: -57px;
height:57px;
width:94px;
background-repeat:no-repeat;
background-position: 0 0;
background-image: url(../img/overlay/overlay-logo.png);
}
.w3tc-overlay .lightbox-close {
height: 20px;
width: 20px;
margin-right: -20px;
padding-top: 5px;
background-repeat: no-repeat;
background-position: 0 5px;
background-image: url(../img/overlay/overlay-close.png);
}
.w3tchelp_content {
padding: 10px 20px 20px 20px;
}
.w3tchelp_content li {
font-family: Arial, Verdana,sans-serif;
font-size: 13px;
}
/* isolated styles */
.w3tc_overlay_footer {
padding: 0 10px 10px 10px;
clear:both;
}
.w3tc_overlay_content {
padding: 10px 10px 10px 10px;
}
.w3tc_overlay_upgrade_header {
background-color: #f3f3f3;
color: #cacaca;
height: calc(100% - 80px);
box-sizing: border-box;
}
.w3tc_overlay_upgrade_content_l {
width: 290px;
float:left;
}
.w3tc_overlay_upgrade_content_r {
width: calc(100% - 310px);
padding-left: 20px;
float: left;
}
.w3tc_overlay_upgrade_description {
clear: both;
}
.w3tc_overlay_upgrade_left_h {
font-weight: bold;
font-size: 1.4em;
float: left;
margin: 1em 0;
color: #23282d;
line-height: 29px;
}
.w3tc_overlay_upgrade_right_h {
font-weight: bold;
float: right;
margin: 1em 0;
color: #23282d;
font-size: 2.0em;
}
.w3tc_overlay_upgrade_right_text {
font-weight: normal;
}
.w3tc_change_label {
color:black;
font-weight:inherit;
}
@media only screen and (max-device-width: 480px) {
.w3tc_overlay_upgrade_content_l {
display: none;
}
.w3tc_overlay_upgrade_content_r {
width: inherit;
padding: none;
float: none;
}
}
/**
* Colors.
*/
/* "tp" is Turquoise Pearl, courtesty of https://hexcolor.co/hex/30bec4. */
input.w3tc-palette-tp,
a.w3tc-palette-tp {
background-color: #30bec4;
color: #fff;
}
/* A button with an icon gauge to the right. */
#w3tc_upgrade_header .w3tc-gauge-tp {
background-image: url(../img/overlay/gauge-bg-tp.png);
background-position: calc(100% - 15px) center;
background-repeat: no-repeat;
text-decoration: none;
padding: 7px 60px 7px 12px;
}
/**
* Upgrade modal.
*/
#w3tc-upgrade {
padding: 10px;
box-sizing: border-box;
}
/* The close button will be different for the upgrade modal. */
.w3tc-overlay-upgrade .lightbox-close {
border-radius: 50%;
padding: 0;
background-position: 8px;
margin: 0;
top: -12px;
right: -12px;
width: 25px;
height: 25px;
}
#w3tc_upgrade_header {
display: flex;
background: #000;
border-bottom: 5px solid #30bec4;
color: #fff;
height: 75px;
position: relative;
}
#w3tc_upgrade_header > div {
flex: 1;
}
#w3tc_upgrade_header > div:first-child div {
position: absolute;
top: 17px;
left: 90px;
font-size: 20px;
line-height: 20px;
}
/* Go faster now button. It could be an anchor or an input. */
#w3tc_upgrade_header > div:nth-child(2) > *:first-child {
position: absolute;
top: 20px;
right: 90px;
}
/* Ensure a consistent background with the iframe and the modal elements. */
.w3tc-overlay-upgrade,
.w3tc_overlay_upgrade_header,
.w3tc-overlay-upgrade .lightbox-close {
background-color: #f1f1f1;
}

View File

@ -0,0 +1,709 @@
#w3tc h2.logo {
width: 224px;
height: 44px;
background: url("../img/W3TC_dashboard_logo_title.png") top right no-repeat;
text-indent: -9999px;
margin:5px 0 10px 0;
padding:0;
}
#icon-w3tc_general {
display: none;
}
.w3tc-enabled {
color: #090;
font-weight: 700
}
.w3tc-disabled {
color: #f00;
font-weight: 700
}
.w3tc-empty {
font-weight: 700;
font-style: italic
}
.w3tc-success {
background: #bfb
}
.w3tc-error {
background: #f99
}
div.w3tc-error.inline {
display:inline-block;
}
input.w3tc-error, textarea.w3tc-error {
background: none;
border: 1px solid #f99
}
.w3tc-status {
padding: 5px
}
#w3tc-help ul {
columns: 2;
list-style-type: disc;
margin: 1em 2% 1em 2%;
}
#w3tc-help a {
text-decoration: none;
}
#w3tc-help a:hover {
text-decoration: underline;
}
#w3tc acronym {
border-bottom: 1px dotted #666
}
#w3tc ul {
list-style: disc outside;
margin-left: 15px;
margin-top: 0;
margin-bottom: 0;
}
#w3tc ul.w3tc-incomp-plugins {
list-style: disc outside;
margin-left: 17px;
margin-top: 0;
margin-bottom: 0;
}
#w3tc ul.w3tc-incomp-plugins li div{
width: 150px;
display: inline-block;
}
#w3tc blockquote {
font-style: italic;
}
#w3tc blockquote cite {
font-weight: 400;
}
#w3tc optgroup {
font-style: normal;
}
#w3tc optgroup option {
text-indent: 20px;
}
#w3tc h5 {
margin: 0
}
#w3tc hr {
clear: both;
margin-top: 10px
}
#w3tc #toc a, #qa a {
text-decoration: none
}
#w3tc #toc a:hover, #qa a:hover {
text-decoration: underline
}
#w3tc #toc ul {
margin: 0;
padding: 0
}
#w3tc #toc li {
margin: 0;
padding: 0
}
#w3tc #qa {
clear: both;
padding: 10px;
}
#w3tc #qa, #w3tc #about, #w3tc #install {
width: 760px;
}
#w3tc fieldset {
margin: 1em 0;
background: #fdfdfd;
padding: 0 1em;
border: 1px solid #bbb;
border-radius: 11px;
-webkit-border-radius: 11px;
-moz-border-radius: 11px;
}
#w3tc fieldset .submit,
#cachegroups_form .submit {
margin: 1em 0 0 0;
padding: 0;
}
#w3tc fieldset legend {
color: #999;
padding: 0 5px;
font-weight: bold;
}
#w3tc fieldset legend a:hover {
text-decoration: none;
}
#w3tc pre.code {
color: #000;
margin: 1em 0;
overflow: auto;
background: #eee;
padding: 12px 15px;
border: 1px solid #ccc;
}
#w3tc pre.console {
color: #ccc;
margin: 1em 0;
overflow: auto;
background: #000;
padding: 12px 15px;
border: 1px solid #ccc;
}
#w3tc-cdn-general th {
width: 400px;
}
#cdn_cnames li {
padding: 5px;
cursor: ns-resize;
}
#cdn_cnames li:hover {
background: #e9e9e9;
}
#cdn_cnames li span, .w3tc_cdn_cname_comment {
padding-left: 10px;
color: #999;
}
#mobile_groups th,
#referrer_groups th,
.w3tc_cachegroups th,
#mobile_groups td,
#referrer_groups td,
.w3tc_cachegroups td,
#cachegroups_form .form-table th {
padding: 10px 10px 10px 15px;
}
#mobile_groups li,
#referrer_groups li,
.w3tc_cachegroups li {
cursor: ns-resize;
list-style: none;
background: #f0f0f0;
margin-bottom: 1em;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
}
#mobile_groups li:hover,
#referrer_groups li:hover,
.w3tc_cachegroups li:hover {
background: #e9e9e9;
}
#mobile_groups li table,
#referrer_groups li table,
.w3tc_cachegroups li table {
margin: 0;
}
.mobile_group,
.referrer_group,
.cookiegroup_name {
font-weight: bold;
}
.w3tc-rules {
display: none;
margin: 1em 0;
padding: 0;
background: none;
}
.minify-files {
margin-bottom: 1em;
}
.minify-files li {
padding: 2px;
list-style: none;
background: #f0f0f0;
cursor: ns-resize;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
line-height: 100%;
}
.minify-files li:hover {
background: #e9e9e9;
}
.minify-files th,
.minify-files td {
width: auto;
line-height: 100%;
padding: 3px 3px;
font-weight: normal;
text-align: left;
}
#support_loading, .w3tc-checking {
height: 32px;
background: url(../img/wpspin_light.gif) left center no-repeat;
padding-left: 38px;
line-height: 32px;
margin: 1em 0;
font-weight: bold;
}
#w3tc .postbox .inside {
padding: 0 10px;
}
#w3tc .postbox .hndle {
cursor: auto;
border-bottom: 1px solid #ccd0d4; /* WP 5.5 */
}
#w3tc .postbox-header {
border-bottom: 0; /* WP 5.5 */
}
#w3tc .postbox .handlediv {
float: right; /* WP 5.5 */
}
#pgcache_reject_roles label, #newrelic_accept_roles label, #cdn_reject_roles label {
margin-right: 15px;
}
#minify_form fieldset{
padding-bottom: 10px;
}
#minify_form .html-tag{
font-weight: bold;
color: #107e0e;
float: right;
}
#minify_form fieldset label{
margin-bottom: 5px;
margin-right:10px;
}
#minify_table td {
padding: 0;
}
#minify_table table td {
white-space: nowrap;
padding: 0;
}
#minify_table .placement {
width: 110px;
}
#minify_table .options {
padding-left: 10px;
}
.recom_js_type {
width:160px;
}
.w3tc-missing-files ul {
margin-left:5px;
}
#w3tc .updated p, #w3tc_dashboard p, #w3tc_general p, #w3tc_cdn p { line-height: 30px}
#w3tc .updated p, #w3tc_general p, #w3tc_cdn p { line-height: 30px}
#w3tc #application ul {
margin-top:0;
}
#monitoring td label{
display: block;
}
#monitoring td label input {
margin-right: 5px;
}
.w3tc-required-changes strong {
font-weight: bold;
font-family: courier, sans-serif;
}
.minify_auto_test, .w3tc-loading {
height: 16px;
background: url(../img/wpspin_light.gif) right top no-repeat;
width: 16px;
}
.create-error p {
margin:0;
}
.create-error {
padding: 3px;
display:none;
}
#w3tc_extensions table.extensions .column-name {
width:180px;
}
#wpbody-content .metabox-holder.extension-settings {
padding-top: 0;
}
#w3tc .subsubsub {
margin-left: 0;
}
#edge-mode.updated p {
line-height: 20px;
}
td.w3tc-td-with-button {
line-height: 28px;
}
.w3tc_loading {
position:absolute;
width: 100%;
text-align: center;
}
.w3tc_hidden {
visibility: hidden;
}
.w3tc_none {
display: none;
}
th.w3tc_config_checkbox {
padding-top: 15px;
}
td.w3tc_config_value_text {
padding-top: 20px;
}
.w3tc_cdn_cnames_readonly {
margin-top: .5em;
margin-right: 20px;
margin-bottom: .5em;
}
.w3tchelp_loading_outer {
width: 100%;
margin-top: 50px;
}
.w3tchelp_loading_inner {
margin-left: auto;
margin-right: auto;
}
.w3tc_menu_item_pro {
color: #0FA9B5;
}
.w3tc_menu_item_pro:hover {
color: #ddd;
}
#toplevel_page_w3tc_dashboard li a[href="admin.php?page=w3tc_support"] {
color: red;
}
.w3tc_popup_form {
padding: 20px;
}
.w3tc_reject_roles label {
font-weight: normal;
}
/*---*/
/* js bound to id */
th.w3tc_extensions_manage_column_check {
padding: 0 0 0 5px;
vertical-align: middle;
width: 2.2em;
}
#browsercache_security_xfo_allow {
padding-top:0;
padding-bottom:4px;
}
.lightbox-content-padded {
padding: 15px;
}
.w3tcbc_qrf {
width: 100%;
}
.w3tcbc_qrf th {
text-align: left;
}
.w3tcbc_qrf td code {
white-space: nowrap;
}
/**
* Go pro features.
*/
.w3tc-gopro-more .dashicons {
font-size: 1em;
margin-left: -3px;
vertical-align: baseline;
}
.w3tc-gopro-description {
display: block;
max-height: 0px;
transition: max-height 0.5s ease-out;
overflow: hidden;
}
.w3tc-gopro-action {
margin-top: 15px;
}
.button.w3tc-gopro-button {
border-color: darkgreen;
box-shadow: 0 1px 0 darkgreen;
background: green;
color: #fff;
}
.button.w3tc-gopro-button:hover,
.button.w3tc-gopro-button:focus {
border-color: green;
box-shadow: 0 1px 0 green;
background: #009900;
color: #fff;
}
table:not(.w3tc-pro-feature) .w3tc-gopro {
border-left: 3px solid green;
margin: 5px -20px 5px -13px;
box-shadow: 0 5px 5px -3px #888;
background: #efefef;
padding: 10px;
background-image: linear-gradient( to right, #f1f1f1, #f1f1f1, #f1f1f1, #f1f1f1, #e7f3f3, #56bec1, #16252c );
position: relative;
padding-right: 280px;
}
/* Pro features on the Extensions page. */
#the-list .w3tc-gopro {
margin-right: -10px;
padding-right: 196px;
}
/**
* A Table for a pro feature.
*/
table.w3tc-pro-feature {
box-shadow: 0 5px 5px -3px #888;
margin-left: -10px;
margin-bottom: 45px;
width: calc(100% + 20px);
background: #fff;
position: relative;
}
table.w3tc-pro-feature:after,
table:not(.w3tc-pro-feature) .w3tc-gopro:after {
background-image: url("../img/transparent-comet.png");
background-repeat: no-repeat;
background-position: top right;
background-size: 100% 100%;
content:"";
width: 321px;
height: 174px;
position: absolute;
top: 0;
right: 0;
}
table.w3tc-pro-feature th,
table.w3tc-pro-feature td {
display: block;
box-sizing: border-box;
clear: both;
padding: 12px;
margin: 0;
}
table.w3tc-pro-feature th {
background: #294149;
color: #fff;
border-bottom: 5px solid #65bbbd;
width: 100%;
}
table.w3tc-pro-feature td {
background-image: linear-gradient( to right, #f1f1f1, #f1f1f1, #f1f1f1, #e7f3f3, #56bec1, #16252c );
padding-right: 401.25px;
}
/* Size of comet background for pro features not in a pro table. */
table:not(.w3tc-pro-feature) .w3tc-gopro:after {
width: 280px;
height: 152px;
}
/* Size of comet background for pro features on Extensions page. */
#the-list .plugin-description .w3tc-gopro:after {
width: 196px;
height: 106px;
}
@media ( max-width: 782px ) {
table.w3tc-pro-feature:after {
background-image: none;
}
table.w3tc-pro-feature td {
background-image: none;
}
table.w3tc-pro-feature td {
padding: 12px;
}
/* Pro features that aren't a <table>. A <tr> for example - User Experience > Lazy Load Google Maps. */
table:not(.w3tc-pro-feature) .w3tc-gopro {
padding-right: initial;
background: #efefef;
}
table:not(.w3tc-pro-feature) .w3tc-gopro:after {
background: none;
}
}
/**
* Banner ad on dashboard.
*/
#w3tc_dashboard_banner {
margin-right: 200px;
}
#w3tc #w3tc_dashboard_banner .inside {
background-image: url("../img/transparent-comet-moon.png"), linear-gradient( to right, #fff 60%, #56bec1 100% );
background-repeat: no-repeat;
background-position: top right;
background-size: contain;
margin: 0;
padding: 0 250px 12px 12px;
}
#w3tc_dashboard_banner .inside > p:first-of-type {
margin-top: 0;
padding-top: 1em;
}
#w3tc_dashboard_banner .postbox .hndle {
background: #eee;
border-bottom: 3px solid #65bbbd;
}
#w3tc_dashboard_banner .w3tc-postbox-ad {
position: absolute;
top: 13px;
right: 10px;
font-size: 12px;
max-width: calc( 100% - 200px );
}
@media screen and (max-width: 960px) {
#w3tc #w3tc_dashboard_banner {
margin: 45px auto auto auto;
}
#w3tc #w3tc_dashboard_banner .inside {
background: none;
padding: 12px;
}
#w3tc #w3tc_dashboard_banner .inside > p:first-of-type {
padding-top: initial;
}
}
/**
* Labels.
*/
.w3tc-label {
color: #fff;
padding: 0px 4px;
border-radius: 5px;
display: inline-block;
font-size: 11px;
}
.w3tc-label-success {
background: green;
}
.w3tc-label-danger {
/* Same color as "update plugin count" in WP Dashboard left nav. */
background: #ca4a1f;;
}
/* Learn more links */
a > span.dashicons-external {
text-decoration: none;
}
.w3tc-control-after {
vertical-align: middle;
}
td .w3tc-control-after span {
vertical-align: text-top;
}
.w3tc-ftp-form input[type="text"],
.w3tc-ftp-form input[type="password"] {
width: 100%;
}

View File

@ -0,0 +1,322 @@
* {
margin: 0;
padding: 0;
color: #333;
}
html, body {
height: 100%;
}
body {
line-height: 1em;
background: #fff;
padding: 0;
margin: 0;
}
body, td, textarea, input, select {
font-family: Arial, "Bitstream Vera Sans", Helvetica, Verdana, sans-serif;
font-size: 13px;
}
p {
margin: 1em 0;
}
h1 {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 23px;
line-height: 29px;
margin: 0 0 1em 0;
text-shadow: 0 1px 0 #FFFFFF;
}
ul {
list-style: none;
}
li {
margin: 1em 0;
}
a {
color: #21759B;
}
a:hover {
color: #D54E21;
}
#content {
padding: 20px;
}
.clear {
clear: both;
}
.button, input[type="button"], input[type="submit"] {
font-size: 11px;
line-height: 16px;
background: #f2f2f2 url(../img/white-grad.png) repeat-x scroll left top;
border: 1px solid #bbb;
color: #464646;
text-shadow: 0 1px 0 #fff;
cursor: pointer;
padding: 2px 8px;
border-radius: 11px;
-webkit-border-radius: 11px;
-moz-border-radius: 11px;
}
.button:hover, input[type="button"]:hover, input[type="submit"]:hover {
border-color: #666;
color: #000;
}
.button:active, input[type="button"]:active, input[type="submit"]:active {
background: #F2F2F2 url(../img/white-grad-active.png) repeat-x scroll left top;
}
input.button-primary {
background: url(../img/button-grad.png) repeat-x scroll left top #21759B;
border-color: #298CBA;
color: #FFFFFF;
font-weight: bold;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}
input.button-primary:active, button.button-primary:active, a.button-primary:active {
background: url(../img/button-grad-active.png) repeat-x scroll left top #21759B;
color: #EAF2FA;
}
input.button-primary:hover, button.button-primary:hover, a.button-primary:hover, a.button-primary:focus, a.button-primary:active {
border-color: #13455B;
color: #EAF2FA;
}
.log {
border: 1px solid #464646;
height: 279px;
overflow: auto;
}
.log div {
padding: 3px;
border-bottom: 1px solid #464646;
}
.log-success {
background: #bfb;
}
.log-error {
background: #f99;
}
.empty {
font-weight: 700;
font-style: italic;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table td, th {
border: 1px solid #ccc;
padding: 3px 2px;
}
.table th {
background: #eee;
}
.queue td {
font-size: 10px;
}
.updated, .error {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid;
padding: 0 0.6em;
margin: 0.5em 0;
}
.updated {
background: #ffffe0;
border-color: #e6db55;
}
.error {
background-color: #ffebe8;
border-color: #cc0000;
}
.updated p, .error p {
line-height: 1;
margin: 0.5em 0;
padding: 2px;
}
.tab-selected {
font-weight: 700;
}
.rules {
width: 100%;
font-size: 9px;
}
.ps-rules {
margin: 1em 0;
background: #fff url(../img/ps_bar.gif) repeat-y;
}
.ps-rules a {
color: #00f;
text-decoration: none;
}
.ps-rules li,
.ps-rules p {
margin: 0;
}
.ps-rule {
clear: left;
}
.ps-rule {
line-height: 20px;
}
.ps-rule:hover {
background: #eee url(../img/ps_bar.gif) repeat-y;
}
.ps-icon {
width: 31px;
height: 20px;
position: relative;
float: left;
}
.ps-icon div {
display: block;
background: url(../img/ps_scores.png);
width: 14px;
height: 14px;
position: relative;
top: 3px;
left: 8px;
}
.ps-priority-high .ps-icon div {
background-position: 0;
}
.ps-priority-medium .ps-icon div {
background-position: -14px;
}
.ps-priority-low .ps-icon div {
background-position: -28px;
}
.ps-expand {
float: left;
width: 30px;
height: 20px;
text-align: center;
}
.ps-expand a {
color: #66d;
}
.ps-expander {
display: none;
background: #fff url(../img/ps_grad.gif) repeat-x;
margin-left: 31px;
padding: 10px 0 10px 30px;
}
.ps-blocks {
}
.ps-block p {
margin-bottom: 1em;
}
.ps-urls {
margin-bottom: 1em;
}
.ps-url {
list-style: disc inside;
}
.media-item .filename {
line-height: 36px;
overflow: hidden;
text-align: left;
}
.media-item {
min-height: 36px;
position: relative;
margin-top: -1px;
width: 100%;
}
.progress {
line-height: 2em;
padding: 0;
overflow: hidden;
margin-bottom: 2px;
border: 1px solid #d1d1d1;
background: #f7f7f7;
background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#f7f7f7));
background-image: -webkit-linear-gradient(bottom, #fff, #f7f7f7);
background-image: -moz-linear-gradient(bottom, #fff, #f7f7f7);
background-image: -o-linear-gradient(bottom, #fff, #f7f7f7);
background-image: linear-gradient(to top, #fff, #f7f7f7);
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}
.bar {
z-index: 9;
width: 0;
background-color: #8cc1e9;
background-image: -webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));
background-image: -webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);
background-image: -moz-linear-gradient(bottom, #72a7cf, #8cc1e9);
background-image: -o-linear-gradient(bottom, #72a7cf, #8cc1e9);
background-image: linear-gradient(to top, #72a7cf, #8cc1e9);
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3);
box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.progress .percent {
z-index: 10;
position: relative;
width: 200px;
padding: 0 8px;
text-shadow: 0 1px 0 rgba(255,255,255,0.4);
color: rgba(0,0,0,0.6);
}
.original {
position: relative;
height: 34px;
}

View File

@ -0,0 +1,31 @@
.w3tc-setupguide-table th,
.w3tc-setupguide-table td {
text-align: left;
}
#w3tc-dbc-table th,
#w3tc-objcache-table th,
#w3tc-browsercache-table td {
white-space: nowrap;
}
.w3tc-option-disabled {
color: darkgray;
}
#w3tc-browsercache-table tr {
vertical-align: top;
}
.w3tc-option-recommended {
font-size: 0.9em;
}
#w3tc-options-menu {
max-width: 155px;
}
#w3tc-options-menu li {
hyphens: auto;
overflow-wrap: break-word;
}

View File

@ -0,0 +1,97 @@
.w3tc-manual-link {
background-color: #efefef;
}
.w3tc-manual-link p {
margin: 10px;
padding:0;
font-size:12px;
}
#w3tc-dashboard-widgets ul {
margin: 0;
padding: 0;
}
#w3tc-dashboard-widgets li {
list-style-type: none;
margin-bottom: 15px;
}
#w3tc-dashboard-widgets ul.w3tc-visible-ul li {
list-style-type: disc;
margin-bottom: 0;
}
#w3tc-dashboard-widgets #normal-sortables #w3tc_spreadtheword label{
display: block;
width: 70px;
float: left;
line-height: 30px;
}
#w3tc-dashboard-widgets h3.hndle img {
vertical-align: middle;
margin-right:10px;
}
.w3tc_generic_widgetservice_label {
font-weight: bold;
margin-left: 10px;
display: inline-block;
width: 270px;
}
.w3tc_generic_widgetservice_radio_outer {
float: left;
margin-top: 1px;
}
#w3tc_spreadtheword .inside {
margin-right: 30px;
}
#w3tc_services p {
margin-left: 30px;
}
#w3tc-dashboard-widgets #normal-sortables .postbox {
width:360px;
}
#w3tc-dashboard-widgets #side-sortables .postbox {
border:none;
box-shadow:none;
-webkit-box-shadow: none;
-webkit-border-radius: 0;
border-radius: 0;
}
#w3tc-dashboard-widgets .handle-actions {
display: none; /* WP 5.5 - Dashboard widget reordering not working, so disable. */
}
#w3tc-dashboard-widgets .hndle {
display: block; /* WP 5.5 */
}
#postbox-container-right {
width: 196px;
white-space: nowrap;
display: inline-block;
float: right;
margin-left: -200px;
}
#w3tc-dashboard-widgets #postbox-container-3 {
width: 100%;white-space: normal;
}
.w3tc-enabled {
color: #090;
font-weight: 700
}
.w3tc-disabled {
color: #f00;
font-weight: 700
}
#normal-sortables #w3tc_new_relic {
width: 360px;
}

View File

@ -0,0 +1,177 @@
/* Main container */
#w3tc-wizard-container {
background: #fff;
padding: 10px;
border-radius: 8px;
max-width: 900px;
}
/* Header */
#w3tc_wizard_header {
background: #0e1920;
border-bottom: 6px solid #cdeae7;
height: 6em;
position: relative;
}
/* Main title */
#w3tc_wizard_title {
color: #fff;
position: absolute;
bottom: 0;
}
/* Title text: "TOTAL CACHE:" */
#w3tc_wizard_title > span:nth-of-type(1),
#w3tc_wizard_title > span:nth-of-type(2),
#w3tc_wizard_title > span:nth-of-type(3) {
font-size: 2.5em;
}
/* Title text: "CACHE" */
#w3tc_wizard_title > span:nth-of-type(2) {
color: #30bec4;
}
/* Title text: "$this->config['title']" */
#w3tc_wizard_title > span:nth-of-type(4) {
font-size: 2.1em;
font-style: italic;
}
/* Wizard icon (w3 cube with shadow) */
#w3tc_wizard_icon {
position: absolute;
top: 10px;
left: -2px;
}
/**
* Left nav / steps.
*/
ul#w3tc-options-menu {
position: absolute;
left: 0;
top: 30px;
margin: 0;
}
#w3tc-options-menu li {
display: block;
padding: 5px;
margin: 0;
border: 1px solid #ddd;
border-bottom: 0;
}
#w3tc-options-menu li:last-of-type {
border-bottom: 1px solid #ddd;
}
/* Active step */
#w3tc-options-menu li.is-active {
background-color: #0073aa;
color: #fff;
}
/* Wizard content */
#w3tc_wizard_content {
background-image:
url(../img/moon-bottom-left.png),
url(../img/moon-bottom-right.png);
background-size: 15% !Important;
background-repeat:
no-repeat,
no-repeat;
background-position:
bottom left,
bottom right;
background-size:
auto,
auto 60%;
min-height: 545px;
padding-bottom: 70px;
padding-right: 160px;
position: relative;
}
/* Footer */
#w3tc_wizard_footer {
width: 100%;
}
/* Buttons */
#w3tc-wizard-buttons {
display: flex;
}
#w3tc-wizard-buttons > span {
flex: 1;
}
/* All buttons. */
#w3tc-wizard-buttons > span > button {
width: 100%;
border: 0;
padding: 10px 0;
cursor: pointer;
}
/* Next and Dashboard buttons. */
#w3tc-wizard-next:enabled,
#w3tc-wizard-dashboard {
background-color: #825772;
color: #fff;
}
/* Miscellaneous */
#w3tc_wizard_title,
#w3tc_wizard_content {
padding-left: 160px;
}
.w3tc-overlay {
display: none;
}
#wpfooter {
position: relative;
}
/* Spinner */
.spinner.inline {
float: none;
visibility: visible;
vertical-align: top;
margin-left: 0px;
}
.spinner.spinner-left {
margin-left: 5px;
}
/* Notices */
.w3tc_note,
#setting-error-tgmpa {
display: none;
visibility: hidden;
}
.w3tc-notice-recommended {
padding-top: 5px;
}
.w3tc-notice-recommended .dashicons-lightbulb {
color: #00a0d2;
}
#w3tc-dbcache-recommended {
margin: 10px 0px;
}
/* Tables */
.widefat thead th,
.widefat td {
line-height: 1em;
}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 16 16"><defs><path id="bEaEbzNdf" d="M10.39 6.69C10.79 6.9 11.26 6.9 11.67 6.7C12.35 6.36 13.75 5.68 14.43 5.34C14.71 5.2 14.71 4.8 14.43 4.65C13.12 3.96 9.87 2.25 8.56 1.57C8.11 1.33 7.57 1.3 7.09 1.49C6.33 1.8 4.85 2.4 4.11 2.7C3.78 2.84 3.76 3.29 4.07 3.46C5.46 4.17 8.97 5.96 10.39 6.69Z"/><path id="aSR8reqKk" d="M9.02 14.58C8.7 14.76 8.33 14.45 8.46 14.11C8.97 12.77 10.26 9.32 10.81 7.87C10.92 7.57 11.13 7.33 11.41 7.19C12.17 6.8 13.89 5.92 14.62 5.54C14.83 5.44 15.06 5.64 14.99 5.86C14.55 7.17 13.45 10.49 13.02 11.79C12.89 12.19 12.62 12.53 12.25 12.73C11.42 13.21 9.78 14.15 9.02 14.58Z"/><path id="b5dPBHXJfL" d="M3.95 3.7L10.24 6.91L10.39 7.01L10.5 7.13L10.58 7.28L10.62 7.45L10.62 7.62L10.58 7.79L8.23 14.02L8.14 14.18L8.02 14.3L7.87 14.37L7.7 14.41L7.53 14.39L7.36 14.33L1.64 10.97L1.39 10.78L1.2 10.55L1.07 10.28L1 9.99L1 9.68L1.07 9.38L3.04 4.06L3.13 3.89L3.26 3.76L3.42 3.67L3.59 3.63L3.77 3.64L3.95 3.7ZM3.76 9.39L4.66 8.34L4.66 9.93L5.06 10.11L6.23 8.91L7.38 9.51L6.79 9.86L6.91 10.05L6.98 10.2L7.02 10.33L7.01 10.42L6.95 10.49L6.84 10.53L6.74 10.51L6.62 10.43L6.48 10.29L6.3 10.11L6.15 10.11L6.01 10.1L5.89 10.1L5.79 10.11L5.7 10.11L6.1 10.65L6.47 11.04L6.82 11.27L7.15 11.35L7.45 11.28L7.76 11.03L7.88 10.74L7.86 10.47L7.75 10.24L7.61 10.11L7.7 10.04L7.82 9.94L7.97 9.82L8.17 9.68L8.39 9.51L6.18 8.19L5.22 9.16L5.13 7.66L4.73 7.44L3.9 8.42L3.9 6.9L3.28 6.58L3.28 9.09L3.76 9.39Z"/></defs><g><g><g><use fill="#000" fill-opacity="1" opacity="1" xlink:href="#bEaEbzNdf"/></g><g><use fill="#000" fill-opacity="1" opacity="1" xlink:href="#aSR8reqKk"/></g><g><use fill="#000" fill-opacity="1" opacity="1" xlink:href="#b5dPBHXJfL"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><metadata>Generated by IcoMoon</metadata><defs><font id="w3tc" horiz-adv-x="1024"><font-face ascent="960" descent="-64" units-per-em="1024"/><glyph horiz-adv-x="512"/><glyph d="M664.96 531.84c25.6-13.44 55.68-13.44 81.92-0.64 43.52 21.76 133.12 65.28 176.64 87.040 17.92 8.96 17.92 34.56 0 44.16-83.84 44.16-291.84 153.6-375.68 197.12-28.8 15.36-63.36 17.28-94.080 5.12-48.64-19.84-143.36-58.24-190.72-77.44-21.12-8.96-22.4-37.76-2.56-48.64 88.96-45.44 313.6-160 404.48-206.72zM577.28 26.88c-20.48-11.52-44.16 8.32-35.84 30.080 32.64 85.76 115.2 306.56 150.4 399.36 7.040 19.2 20.48 34.56 38.4 43.52 48.64 24.96 158.72 81.28 205.44 105.6 13.44 6.4 28.16-6.4 23.68-20.48-28.16-83.84-98.56-296.32-126.080-379.52-8.32-25.6-25.6-47.36-49.28-60.16-53.12-30.72-158.080-90.88-206.72-118.4zM252.8 723.2l402.56-205.44 9.6-6.4 7.040-7.68 5.12-9.6 2.56-10.88v-10.88l-2.56-10.88-150.4-398.72-5.76-10.24-7.68-7.68-9.6-4.48-10.88-2.56-10.88 1.28-10.88 3.84-366.080 215.040-16 12.16-12.16 14.72-8.32 17.28-4.48 18.56v19.84l4.48 19.2 126.080 340.48 5.76 10.88 8.32 8.32 10.24 5.76 10.88 2.56 11.52-0.64 11.52-3.84zM240.64 359.040l57.6 67.2v-101.76l25.6-11.52 74.88 76.8 73.6-38.4-37.76-22.4 7.68-12.16 4.48-9.6 2.56-8.32-0.64-5.76-3.84-4.48-7.040-2.56-6.4 1.28-7.68 5.12-20.48 20.48h-9.6l-8.96 0.64h-7.68l-6.4-0.64h-5.76l25.6-34.56 23.68-24.96 22.4-14.72 21.12-5.12 19.2 4.48 19.84 16 7.68 18.56-1.28 17.28-7.040 14.72-8.96 8.32 5.76 4.48 7.68 6.4 9.6 7.68 12.8 8.96 14.080 10.88-141.44 84.48-61.44-62.080-5.76 96-25.6 14.080-53.12-62.72v97.28l-39.68 20.48v-160.64l30.72-19.2z" glyph-name="menu-icon" unicode="A"/></font></defs></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Logo" x="0" y="0" viewBox="0 0 174 24" xml:space="preserve" style="enable-background:new 0 0 174 24"><style type="text/css">.st0{fill:#000}.st1{fill:url(#SVGID_1_)}.st2{fill:url(#SVGID_2_)}</style><g><g><g><path d="M73.379,15.362l0.03,0.092c-0.102,2.639-0.876,4.651-2.322,6.043c-1.446,1.39-3.544,2.085-6.292,2.085 c-2.759,0-5.004-0.855-6.73-2.565c-1.728-1.709-2.59-3.93-2.59-6.658V9.663c0-2.721,0.829-4.936,2.489-6.653 c1.661-1.714,3.82-2.572,6.478-2.572c2.82,0,4.977,0.717,6.468,2.148c1.493,1.431,2.336,3.467,2.53,6.103l-0.031,0.093h-5.043 c-0.071-1.462-0.396-2.55-0.973-3.26c-0.579-0.711-1.562-1.066-2.951-1.066c-1.176,0-2.101,0.476-2.775,1.429 c-0.674,0.954-1.011,2.202-1.011,3.746v4.729c0,1.555,0.368,2.812,1.104,3.769c0.736,0.958,1.748,1.437,3.036,1.437 c1.246,0,2.13-0.334,2.651-1.005c0.522-0.669,0.819-1.734,0.891-3.198H73.379z" class="st0"/><path d="M13.187,17.275c0-0.793-0.261-1.406-0.781-1.839c-0.521-0.432-1.457-0.89-2.806-1.375 c-2.82-0.896-4.91-1.855-6.269-2.882c-1.359-1.024-2.039-2.505-2.039-4.441c0-1.885,0.809-3.41,2.43-4.573 C5.342,1,7.397,0.418,9.892,0.418c2.473,0,4.499,0.641,6.078,1.923c1.578,1.282,2.342,2.934,2.291,4.952L18.23,7.386h-5.027 c0-0.895-0.302-1.626-0.906-2.186c-0.603-0.561-1.435-0.842-2.499-0.842c-1.042,0-1.86,0.232-2.453,0.696 C6.754,5.517,6.458,6.088,6.458,6.768c0,0.66,0.298,1.188,0.896,1.585c0.599,0.396,1.719,0.893,3.364,1.491 c2.535,0.762,4.444,1.699,5.726,2.811c1.282,1.112,1.923,2.643,1.923,4.589c0,1.977-0.763,3.525-2.291,4.643 c-1.527,1.117-3.554,1.676-6.078,1.676c-2.535,0-4.726-0.641-6.575-1.923c-1.85-1.283-2.75-3.13-2.698-5.539l0.031-0.093h5.043 c0,1.297,0.347,2.225,1.042,2.78c0.695,0.557,1.748,0.834,3.158,0.834c1.074,0,1.872-0.216,2.4-0.648 C12.924,18.541,13.187,17.974,13.187,17.275" class="st0"/><polygon points="19.577 .567 19.577 5.016 25.685 5.016 25.685 23.37 30.323 23.37 30.323 5.016 36.393 5.016 36.393 .567" class="st0"/><polygon points="130.629 .567 130.629 5.016 136.737 5.016 136.737 23.37 141.375 23.37 141.375 5.016 147.445 5.016 147.445 .567" class="st0"/><polygon points="162.791 .567 162.791 9.728 155.248 9.728 155.248 .567 150.649 .567 150.649 23.37 155.248 23.37 155.248 14.173 162.791 14.173 162.791 23.37 167.39 23.37 167.39 .567" class="st0"/><path d="M101.775,15.549v7.815h-5.268V0.561h8.477c2.683,0,4.812,0.692,6.387,2.076 c1.574,1.384,2.362,3.192,2.362,5.427c0,2.244-0.789,4.054-2.362,5.426c-1.575,1.374-3.704,2.06-6.387,2.06H101.775z M101.775,11.478h3.209c1.14,0,2.007-0.315,2.603-0.947c0.596-0.631,0.894-1.443,0.894-2.434c0-1.014-0.298-1.843-0.894-2.492 c-0.595-0.646-1.462-0.97-2.603-0.97h-3.209V11.478z" class="st0"/><path d="M93.306,22.301c-2.66-3.08-6.816-7.855-8.989-10.408l8.989-10.445V0.567h-1.418h-3.799 c-2.413,2.851-4.79,5.589-7.203,8.436V0.567h-4.6V23.37h4.6v-8.437l7.24,8.437h3.763h1.418V22.301z" class="st0"/><polygon points="119.906 .566 112.062 23.369 116.964 23.369 124.997 .566" class="st0"/><polygon points="42.247 .566 34.402 23.369 39.304 23.369 47.337 .566" class="st0"/><g><linearGradient id="SVGID_1_" x1="58.064" x2="43.843" y1="15.344" y2="10.168" gradientUnits="userSpaceOnUse"><stop offset=".056" style="stop-color:#000"/><stop offset="1" style="stop-color:#000;stop-opacity:.2"/></linearGradient><polygon points="47.337 .567 44.883 7.533 47.337 14.554 42.41 14.554 40.844 18.998 48.732 18.998 50.24 23.369 55.143 23.369" class="st1"/></g><g><linearGradient id="SVGID_2_" x1="135.723" x2="121.502" y1="15.344" y2="10.168" gradientUnits="userSpaceOnUse"><stop offset=".056" style="stop-color:#000"/><stop offset="1" style="stop-color:#000;stop-opacity:.2"/></linearGradient><polygon points="124.996 .567 122.542 7.533 124.996 14.554 120.069 14.554 118.504 18.998 126.392 18.998 127.899 23.369 132.802 23.369" class="st2"/></g></g></g></g><path d="M170.618,0.945h-0.696v1.895h-0.469V0.945h-0.688V0.565h1.853V0.945z" class="st0"/><path d="M171.497,0.565l0.584,1.649l0.581-1.649h0.615v2.274h-0.47V2.218l0.047-1.073l-0.614,1.695h-0.321l-0.612-1.693 l0.047,1.072v0.622h-0.469V0.565H171.497z" class="st0"/></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,36 @@
/**
* File: feature-counter.js
*
* JavaScript for feature counters.
*
* @since 2.1.0
*
* @global W3TCFeatureShowcaseData
*/
jQuery(function() {
var $adminmenuTopItem = jQuery( '#wp-admin-bar-w3tc > a' ),
$adminmenuItem = jQuery ( '#wp-admin-bar-w3tc_feature_showcase a' ),
$menuItem = jQuery( '#toplevel_page_w3tc_dashboard.wp-not-current-submenu a[href="admin.php?page=w3tc_dashboard"] .wp-menu-name' ),
$submenuItem = jQuery( '#toplevel_page_w3tc_dashboard a[href="admin.php?page=w3tc_feature_showcase"]' ),
markup = ' <span class="awaiting-mod count-' +
W3TCFeatureShowcaseData.unseenCount +
'"><span class="feature-count">' +
W3TCFeatureShowcaseData.unseenCount +
'</span></span>';
if ( W3TCFeatureShowcaseData.unseenCount > 0 ) {
if ( $adminmenuItem.length ) {
$adminmenuTopItem.append( markup );
$adminmenuItem.append( markup );
}
if ( $menuItem.length ) {
$menuItem.append( markup );
}
if ( $submenuItem.length ) {
$submenuItem.append( markup );
}
}
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
lazyload version 12.2.0
author
https://www.andreaverlicchi.eu/lazyload/
https://github.com/verlok/lazyload

View File

@ -0,0 +1,521 @@
var W3tc_Lightbox = {
window: jQuery(window),
container: null,
options: null,
create: function() {
var me = this;
this.container = jQuery('<div class="' + this.options.id + '"><div class="lightbox-close">' + this.options.close + '</div><div id="w3tc_lightbox_content" class="lightbox-content"></div></div>').css({
top: 0,
left: 0,
width: 0,
height: 0,
position: 'fixed',
'z-index': 9991,
display: 'none'
});
jQuery('body').append(this.container);
me.resize();
this.window.resize(function() {
me.resize();
});
this.window.scroll(function() {
me.resize();
});
this.container.find('.lightbox-close').on( 'click', function() {
me.close();
});
jQuery(document).keyup(function(e) {
if (e.keyCode == 27) { me.close(); } // esc
});
},
open: function(options) {
this.options = jQuery.extend({
id: 'lightbox',
close: 'Close window',
width: 0,
height: 0,
maxWidth: 0,
maxHeight: 0,
minWidth: 0,
minHeight: 0,
widthPercent: 0.6,
heightPercent: 0.8,
content: null,
url: null,
callback: null
}, options);
this.create();
this.resize();
if (this.options.content) {
this.content(this.options.content);
} else if (this.options.url) {
this.load(this.options.url, this.options.callback);
if (typeof ga != 'undefined') {
var w3tc_action = this.options.url.match(/w3tc_action=([^&]+)/);
if (window.w3tc_ga) {
if (w3tc_action && w3tc_action[1])
w3tc_ga('send', 'pageview', 'overlays/' + w3tc_action[1]);
else {
var w3tc_action = this.options.url.match(/&(w3tc_[^&]+)&/);
if (w3tc_action && w3tc_action[1])
w3tc_ga('send', 'pageview', 'overlays/' + w3tc_action[1]);
}
}
}
}
W3tc_Overlay.show();
this.container.show();
},
close: function() {
if (this.options.onClose)
this.options.onClose();
this.container.remove();
W3tc_Overlay.hide();
},
resize: function() {
var width = (this.options.width ? this.options.width : this.window.width() * this.options.widthPercent);
var height = (this.options.height ? this.options.height : this.window.height() * this.options.heightPercent);
if (!this.options.maxWidth)
this.options.maxWidth = this.window.width();
if (!this.options.maxHeight)
this.options.maxHeight = this.window.height();
if (this.options.maxWidth && width > this.options.maxWidth) {
width = this.options.maxWidth;
} else if (width < this.options.minWidth) {
width = this.options.minWidth;
}
if (this.options.maxHeight && height > this.options.maxHeight) {
height = this.options.maxHeight;
} else if (height < this.options.minHeight) {
height = this.options.minHeight;
}
this.container.css({
width: width,
height: height
});
this.container.css({
top: (this.window.height() / 2 - this.container.outerHeight() / 2)>=0 ? this.window.height() / 2 - this.container.outerHeight() / 2 : 0,
left: (this.window.width() / 2 - this.container.outerWidth() / 2)>=0 ? this.window.width() / 2 - this.container.outerWidth() / 2 : 0
});
jQuery('.lightbox-content', this.container).css({
width: width,
height: height
});
},
load: function(url, callback) {
this.content('');
this.loading(true);
var me = this;
jQuery.get(url, {}, function(content) {
me.loading(false);
if (content.substr(0, 9) === 'Location ') {
w3tc_beforeupload_unbind();
window.location = content.substr(9);
return;
}
me.content(content);
if (callback) {
callback.call(this, me);
}
});
},
/**
* adds all controls of the form to the url
*/
load_form: function(url, form_selector, callback) {
data = {}
var v = jQuery(form_selector).find('input').each(function(i) {
var name = jQuery(this).attr('name');
var type = jQuery(this).attr('type');
if (type == 'radio' || type == 'checkbox' ) {
if (!jQuery(this).prop('checked'))
return;
}
if (name)
data[name] = jQuery(this).val();
});
this.content('');
this.loading(true);
var me = this;
jQuery.post(url, data, function(content) {
me.loading(false);
if (content.substr(0, 9) === 'Location ') {
w3tc_beforeupload_unbind();
window.location = content.substr(9);
return;
}
me.content(content);
if (callback) {
callback.call(this, me);
}
});
},
content: function(content) {
return this.container.find('.lightbox-content').html(content);
},
width: function(width) {
if (width === undefined) {
return this.container.width();
} else {
this.container.css('width', width);
return this.resize();
}
},
height: function(height) {
if (height === undefined) {
return this.container.height();
} else {
this.container.css('height', height);
return this.resize();
}
},
loading: function(loading) {
if (loading)
this.container.find('.lightbox-content').addClass('lightbox-loader');
else
this.container.find('.lightbox-content').removeClass('lightbox-loader');
}
};
var W3tc_Overlay = {
window: jQuery(window),
container: null,
create: function() {
var me = this;
this.container = jQuery('<div id="overlay" />').css({
top: 0,
left: 0,
width: 0,
height: 0,
position: 'fixed',
'z-index': 9990,
display: 'none',
opacity: 0.6
});
jQuery('#w3tc').append(this.container);
this.window.resize(function() {
me.resize();
});
this.window.scroll(function() {
me.resize();
});
},
show: function() {
this.create();
this.resize();
this.container.show();
},
hide: function() {
this.container.remove();
},
resize: function() {
this.container.css({
width: this.window.width(),
height: this.window.height()
});
}
};
var w3tc_minify_recommendations_checked = {};
function w3tc_lightbox_minify_recommendations(nonce) {
W3tc_Lightbox.open({
width: 1000,
url: 'admin.php?page=w3tc_minify&w3tc_test_minify_recommendations&_wpnonce=' + nonce,
callback: function(lightbox) {
var theme = jQuery('#recom_theme').val();
if (jQuery.ui && jQuery.ui.sortable) {
jQuery("#recom_js_files,#recom_css_files").sortable({
axis: 'y',
stop: function() {
jQuery(this).find('li').each(function(index) {
jQuery(this).find('td:eq(1)').html((index + 1) + '.');
});
}
});
}
if (w3tc_minify_recommendations_checked[theme] !== undefined) {
jQuery('#recom_js_files :text,#recom_css_files :text').each(function() {
var hash = jQuery(this).parents('li').find('[name=recom_js_template]').val() + ':' + jQuery(this).val();
if (w3tc_minify_recommendations_checked[theme][hash] !== undefined) {
var checkbox = jQuery(this).parents('li').find(':checkbox');
if (w3tc_minify_recommendations_checked[theme][hash]) {
checkbox.attr('checked', 'checked');
} else {
checkbox.removeAttr('checked');
}
}
});
}
jQuery('#recom_theme').change(function() {
jQuery('#recom_js_files :checkbox,#recom_css_files :checkbox').each(function() {
var li = jQuery(this).parents('li');
var hash = li.find('[name=recom_js_template]').val() + ':' + li.find(':text').val();
if (w3tc_minify_recommendations_checked[theme] === undefined) {
w3tc_minify_recommendations_checked[theme] = {};
}
w3tc_minify_recommendations_checked[theme][hash] = jQuery(this).is(':checked');
});
lightbox.load('admin.php?page=w3tc_minify&w3tc_test_minify_recommendations&theme_key=' + jQuery(this).val() + '&_wpnonce=' + nonce, lightbox.options.callback);
});
jQuery('#recom_js_check').on( 'click', function() {
if (jQuery('#recom_js_files :checkbox:checked').length) {
jQuery('#recom_js_files :checkbox').removeAttr('checked');
} else {
jQuery('#recom_js_files :checkbox').attr('checked', 'checked');
}
return false;
});
jQuery('#recom_css_check').on( 'click', function() {
if (jQuery('#recom_css_files :checkbox:checked').length) {
jQuery('#recom_css_files :checkbox').removeAttr('checked');
} else {
jQuery('#recom_css_files :checkbox').attr('checked', 'checked');
}
return false;
});
jQuery('.recom_apply', lightbox.container).on( 'click', function() {
var theme = jQuery('#recom_theme').val();
jQuery('#js_files li').each(function() {
if (jQuery(this).find(':text').attr('name').indexOf('js_files[' + theme + ']') != -1) {
jQuery(this).remove();
}
});
jQuery('#css_files li').each(function() {
if (jQuery(this).find(':text').attr('name').indexOf('css_files[' + theme + ']') != -1) {
jQuery(this).remove();
}
});
jQuery('#recom_js_files li').each(function() {
if (jQuery(this).find(':checkbox:checked').length) {
w3tc_minify_js_file_add(theme, jQuery(this).find('[name=recom_js_template]').val(), jQuery(this).find('[name=recom_js_location]').val(), jQuery(this).find('[name=recom_js_file]').val());
}
});
jQuery('#recom_css_files li').each(function() {
if (jQuery(this).find(':checkbox:checked').length) {
w3tc_minify_css_file_add(theme, jQuery(this).find('[name=recom_css_template]').val(), jQuery(this).find('[name=recom_css_file]').val());
}
});
w3tc_minify_js_theme(theme);
w3tc_minify_css_theme(theme);
w3tc_input_enable('.js_enabled', jQuery('#minify_js_enable:checked').length);
w3tc_input_enable('.css_enabled', jQuery('#minify_css_enable:checked').length);
lightbox.close();
});
}
});
}
function w3tc_lightbox_self_test(nonce) {
W3tc_Lightbox.open({
width: 800,
minHeight: 300,
url: 'admin.php?page=w3tc_dashboard&w3tc_test_self&_wpnonce=' + w3tc_nonce,
callback: function(lightbox) {
jQuery('.button-primary', lightbox.container).on( 'click', function() {
lightbox.close();
});
}
});
}
function w3tc_lightbox_upgrade(nonce, data_src, renew_key) {
var client_id = '';
if (window.w3tc_ga) {
w3tc_ga(function(tracker) {
client_id = tracker.get('clientId');
});
}
W3tc_Lightbox.open({
id: 'w3tc-overlay',
close: '',
width: 800,
height: 350,
url: 'admin.php?page=w3tc_dashboard&w3tc_licensing_upgrade&_wpnonce=' +
encodeURIComponent(nonce) + '&data_src=' + encodeURIComponent(data_src) +
(renew_key ? '&renew_key=' + encodeURIComponent(renew_key) : '') +
(client_id ? '&client_id=' + encodeURIComponent(client_id) : ''),
callback: function(lightbox) {
lightbox.options.height = jQuery('#w3tc-upgrade').outerHeight();
jQuery('.button-primary', lightbox.container).on( 'click', function() {
lightbox.close();
});
jQuery('#w3tc-purchase', lightbox.container).on( 'click', function() {
lightbox.close();
w3tc_lightbox_buy_plugin(nonce, data_src, renew_key, client_id);
});
jQuery('#w3tc-purchase-link', lightbox.container).on( 'click', function() {
lightbox.close();
jQuery([document.documentElement, document.body]).animate({
scrollTop: jQuery("#licensing").offset().top
}, 2000);
});
// Allow for customizations of the "upgrade" overlay specifically.
jQuery( '.w3tc-overlay' ).addClass( 'w3tc-overlay-upgrade' );
lightbox.resize();
}
});
}
function w3tc_lightbox_buy_plugin(nonce, data_src, renew_key, client_id) {
W3tc_Lightbox.open({
width: 800,
minHeight: 350,
maxWidth: jQuery(window).width() - 40,
maxHeight: jQuery(window).height() - 40,
url: 'admin.php?page=w3tc_dashboard&w3tc_licensing_buy_plugin' +
'&_wpnonce=' + encodeURIComponent(nonce) +
'&data_src=' + encodeURIComponent(data_src) +
(renew_key ? '&renew_key=' + encodeURIComponent(renew_key) : '') +
(client_id ? '&client_id=' + encodeURIComponent(client_id) : ''),
callback: function(lightbox) {
var w3tc_license_listener = function(event) {
if (event.origin.substr(event.origin.length - 12) !== ".w3-edge.com")
return;
var data = event.data.split(' ');
if (data[0] === 'license') {
// legacy purchase
w3tc_lightbox_save_licence_key(function() {
lightbox.close();
});
} else if (data[0] === 'v2_license') {
// reset default timeout
var iframe = document.getElementById('buy_frame');
if (iframe.contentWindow && iframe.contentWindow.postMessage)
iframe.contentWindow.postMessage('v2_license_accepted', '*');
lightbox.options.onClose = function() {
window.location = window.location + '&refresh';
}
w3tc_lightbox_save_licence_key(data[1], nonce, function() {
jQuery('#buy_frame').attr('src', data[3]);
});
}
}
if (window.addEventListener) {
addEventListener("message", w3tc_license_listener, false)
} else if (attachEvent) {
attachEvent("onmessage", w3tc_license_listener);
}
jQuery('.button-primary', lightbox.container).on( 'click', function() {
lightbox.close();
});
}
});
}
function w3tc_lightbox_save_licence_key(license_key, nonce, callback) {
jQuery('#plugin_license_key').val(license_key);
var params = {
w3tc_default_save_licence_key: 1,
license_key: license_key,
_wpnonce: nonce
};
jQuery.post('admin.php?page=w3tc_dashboard', params, function(data) {
callback();
}, 'json').fail(callback);
}
jQuery(function() {
jQuery('.button-minify-recommendations').on( 'click', function() {
var nonce = jQuery(this).metadata().nonce;
w3tc_lightbox_minify_recommendations(nonce);
return false;
});
jQuery('.button-self-test').on( 'click', function() {
var nonce = jQuery(this).metadata().nonce;
w3tc_lightbox_self_test(nonce);
return false;
});
jQuery('.button-buy-plugin').on( 'click', function() {
var data_src = jQuery(this).data('src');
var nonce = jQuery(this).data('nonce');
if (!nonce) {
nonce = w3tc_nonce;
}
var renew_key = jQuery(this).data('renew-key');
w3tc_lightbox_upgrade(nonce, data_src, renew_key);
jQuery('#w3tc-license-instruction').show();
return false;
});
jQuery('body').on('click', '.w3tc_lightbox_close', function() {
W3tc_Lightbox.close();
});
});

View File

@ -0,0 +1,140 @@
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J<>örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
*
*/
/**
* Sets the type of metadata to use. Metadata is encoded in JSON, and each property
* in the JSON will become a property of the element itself.
*
* There are four supported types of metadata storage:
*
* attr: Inside an attribute. The name parameter indicates *which* attribute.
*
* class: Inside the class attribute, wrapped in curly braces: { }
*
* elem: Inside a child element (e.g. a script tag). The
* name parameter indicates *which* element.
* html5: Values are stored in data-* attributes.
*
* The metadata for an element is loaded the first time the element is accessed via jQuery.
*
* As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
* matched by expr, then redefine the metadata type and run another $(expr) for other elements.
*
* @name $.metadata.setType
*
* @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("class")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from the class attribute
*
* @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("attr", "data")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a "data" attribute
*
* @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
* @before $.metadata.setType("elem", "script")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a nested script element
*
* @example <p id="one" class="some_class" data-item_id="1" data-item_label="Label">This is a p</p>
* @before $.metadata.setType("html5")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a series of data-* attributes
*
* @param String type The encoding type
* @param String name The name of the attribute to be used to get metadata (optional)
* @cat Plugins/Metadata
* @descr Sets the type of encoding to be used when loading metadata for the first time
* @type undefined
* @see metadata()
*/
(function($) {
$.extend({
metadata : {
defaults : {
type: 'class',
name: 'metadata',
cre: /({.*})/,
single: 'metadata'
},
setType: function( type, name ){
this.defaults.type = type;
this.defaults.name = name;
},
get: function( elem, opts ){
var settings = $.extend({},this.defaults,opts);
// check for empty string in single property
if ( !settings.single.length ) settings.single = 'metadata';
var data = $.data(elem, settings.single);
// returned cached data if it already exists
if ( data ) return data;
data = "{}";
var getObject = function(data) {
if(typeof data != "string") return data;
data = eval("(" + data + ")");
return data;
};
if ( settings.type == "html5" ) {
var object = {};
$( elem.attributes ).each(function() {
var name = this.nodeName;
if(name.match(/^data-/)) name = name.replace(/^data-/, '');
else return true;
object[name] = getObject(this.nodeValue);
});
} else {
if ( settings.type == "class" ) {
var m = settings.cre.exec( elem.className );
if ( m )
data = m[1];
} else if ( settings.type == "elem" ) {
if( !elem.getElementsByTagName ) return;
var e = elem.getElementsByTagName(settings.name);
if ( e.length )
data = $.trim(e[0].innerHTML);
} else if ( elem.getAttribute != undefined ) {
var attr = elem.getAttribute( settings.name );
if ( attr )
data = attr;
}
object = getObject(data.indexOf("{") < 0 ? "{" + data + "}" : data);
}
$.data( elem, settings.single, object );
return object;
}
}
});
/**
* Returns the metadata object for the first member of the jQuery object.
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the defaults
* @type jQuery
* @cat Plugins/Metadata
*/
$.fn.metadata = function( opts ){
return $.metadata.get( this[0], opts );
};
})(jQuery);

View File

@ -0,0 +1,22 @@
jQuery(document).ready(function() {
jQuery('textarea[w3tc-data-validator="regexps"]').change(function() {
var v = jQuery(this).val();
var items = v.split("\n");
for (var n = 0; n < items.length; n++) {
var regexp = items[n].trim();
if (regexp.length > 0) {
try {
new RegExp(regexp);
} catch(e) {
var error = 'Contains invalid regexp ' + regexp +', please fix';
console.log(error);
jQuery(this)[0].setCustomValidity(error);
return;
}
}
}
jQuery(this)[0].setCustomValidity('');
});
});

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,771 @@
function w3tc_seconds_to_string(seconds) {
var string = '', days, hours, minutes;
days = Math.floor(seconds / 86400);
if (days) {
seconds -= days * 86400;
string += days + 'd ';
}
hours = Math.floor(seconds / 3600);
if (hours) {
seconds -= hours * 3600;
string += hours + 'h ';
}
minutes = Math.floor(seconds / 60);
if (minutes) {
seconds -= minutes * 60;
string += minutes + 'm ';
}
if (seconds) {
string += seconds + 's';
}
return string;
}
var W3tc_Popup_Cdn_Export_File = {
paused: 0,
limit: 25,
retry_seconds: 10,
seconds_elapsed: 0,
timer: null,
nonce: '',
files: [],
initialized: false,
upload_files: [],
set_progress: function(percent) {
jQuery('#cdn_export_file_progress .bar').width(percent + '%');
jQuery('#cdn_export_file_progress .percent').html(percent + '%');
},
set_status: function(status) {
jQuery('#cdn_export_file_status').html(status);
},
set_processed: function(processed) {
jQuery('#cdn_export_file_processed').html(processed);
},
set_button_text: function(text) {
jQuery('#cdn_export_file_start').val(text);
},
set_last_response: function() {
var date = new Date();
jQuery('#cdn_export_file_last_response').html(date.toLocaleTimeString() + ' ' + date.toLocaleDateString());
},
set_elapsed: function(text) {
jQuery('#cdn_export_file_elapsed').html(text);
},
add_log: function(path, result, error) {
jQuery('#cdn_export_file_log').prepend('<div class="log-' + (result == 1 ? 'success' : 'error') + '">' + path + ' <strong>' + error + '</strong></div>');
},
clear_log: function() {
jQuery('#cdn_export_file_log').html('');
},
process: function() {
if (this.paused) {
return;
}
if (!this.initialized) {
this.upload_files = this.files.slice(0);
this.initialized = true;
}
to_upload = this.upload_files.slice(0, this.limit);
var me = this;
if (to_upload.length) {
jQuery.ajax({
type: 'POST',
url: 'admin.php?page=w3tc_cdn',
data: {
w3tc_cdn_export_process: 1,
'files[]': to_upload,
_wpnonce: this.nonce
},
dataType: 'json',
success: function(data) {
me.set_last_response();
me.process_callback(data);
},
error: function() {
me.set_last_response();
me.retry(me.retry_seconds);
}
});
}
},
retry: function(seconds) {
if (this.paused) {
return;
}
this.set_status('request failed (retry in ' + seconds + 's)');
if (seconds) {
var me = this;
setTimeout(function() {
me.retry(--seconds);
}, 1000);
} else {
this.set_status('processing');
this.process();
}
},
process_callback: function(data) {
var failed = false;
for (var i = 0; i < data.results.length; i++) {
var remote_path = data.results[i].file;
for (var n = 0; n < this.upload_files.length; n++) {
if (this.upload_files[n] == remote_path) {
this.upload_files.splice(n, 1);
break;
}
}
this.add_log(remote_path, data.results[i].result, data.results[i].error);
if (data.results[i].result == -1) {
failed = true;
break;
}
}
if (failed) {
this.set_progress(0);
this.set_processed(1);
this.set_status('failed');
this.set_button_text('Start');
clearInterval(this.timer);
} else {
var count_processed = this.files.length - this.upload_files.length;
this.set_progress((count_processed * 100 / this.files.length).toFixed(0));
this.set_processed(count_processed);
if (this.upload_files.length) {
this.process();
} else {
this.set_status('done');
this.set_button_text('Start');
clearInterval(this.timer);
}
}
},
timer_callback: function() {
this.seconds_elapsed++;
this.set_elapsed(w3tc_seconds_to_string(this.seconds_elapsed));
},
init: function() {
var me = this;
jQuery('#cdn_export_file_start').click(function() {
if (this.value == 'Pause') {
me.paused = 1;
me.set_button_text('Resume');
me.set_status('paused');
clearInterval(me.timer);
} else {
if (this.value == 'Start') {
me.seconds_elapsed = 0;
me.initialized = false;
me.clear_log();
me.set_progress(0);
me.set_processed(0);
me.set_elapsed('-');
}
me.paused = 0;
me.set_button_text('Pause');
me.set_status('processing');
me.timer = setInterval(function() {
me.timer_callback();
}, 1000);
}
me.process();
});
}
};
var W3tc_Popup_Cdn_Export_Library = {
paused: 0,
limit: 25,
offset: 0,
retry_seconds: 10,
seconds_elapsed: 0,
timer: null,
nonce: '',
set_progress: function(percent) {
jQuery('#cdn_export_library_progress .bar').width(percent + '%');
jQuery('#cdn_export_library_progress .percent').html(percent + '%');
},
set_status: function(status) {
jQuery('#cdn_export_library_status').html(status);
},
set_processed: function(processed) {
jQuery('#cdn_export_library_processed').html(processed);
},
set_total: function(total) {
jQuery('#cdn_export_library_total').html(total);
},
set_button_text: function(text) {
jQuery('#cdn_export_library_start').val(text);
},
set_last_response: function() {
var date = new Date();
jQuery('#cdn_export_library_last_response').html(date.toLocaleTimeString() + ' ' + date.toLocaleDateString());
},
set_elapsed: function(text) {
jQuery('#cdn_export_library_elapsed').html(text);
},
add_log: function(path, result, error) {
jQuery('#cdn_export_library_log').prepend('<div class="log-' + (result == 1 ? 'success' : 'error') + '">' + path + ' <strong>' + error + '</strong></div>');
},
clear_log: function() {
jQuery('#cdn_export_library_log').html('');
},
process: function() {
if (this.paused) {
return;
}
var me = this;
jQuery.ajax({
type: 'POST',
url: 'admin.php?page=w3tc_cdn',
data: {
w3tc_cdn_export_library_process: 1,
limit: this.limit,
offset: this.offset,
_wpnonce: this.nonce
},
dataType: 'json',
success: function(data) {
me.set_last_response();
me.process_callback(data);
},
error: function() {
me.set_last_response();
me.retry(me.retry_seconds);
}
});
},
retry: function(seconds) {
if (this.paused) {
return;
}
this.set_status('request failed (retry in ' + seconds + 's)');
if (seconds) {
var me = this;
setTimeout(function() {
me.retry(--seconds);
}, 1000);
} else {
this.set_status('processing');
this.process();
}
},
process_callback: function(data, status) {
this.offset += data.count;
this.set_total(data.total);
this.set_processed(this.offset);
this.set_progress((this.offset * 100 / data.total).toFixed(0));
var failed = false;
for (var i = 0; i < data.results.length; i++) {
this.add_log(data.results[i].remote_path, data.results[i].result, data.results[i].error);
if (data.results[i].result == -1) {
failed = true;
break;
}
}
if (failed) {
this.set_progress(0);
this.set_processed(1);
this.set_status('failed');
this.set_button_text('Start');
clearInterval(this.timer);
} else {
if (this.offset < data.total) {
this.process();
} else {
this.set_status('done');
this.set_button_text('Start');
clearInterval(this.timer);
}
}
},
timer_callback: function() {
this.seconds_elapsed++;
this.set_elapsed(w3tc_seconds_to_string(this.seconds_elapsed));
},
init: function() {
var me = this;
jQuery('#cdn_export_library_start').click(function() {
if (this.value == 'Pause') {
me.paused = 1;
me.set_status('paused');
me.set_button_text('Resume');
clearInterval(me.timer);
} else {
if (this.value == 'Start') {
me.offset = 0;
me.seconds_elapsed = 0;
me.clear_log();
me.set_progress(0);
me.set_elapsed('-');
}
me.paused = 0;
me.set_status('processing');
me.set_button_text('Pause');
me.timer = setInterval(function() {
me.timer_callback();
}, 1000);
}
me.process();
});
}
};
var W3tc_Popup_Cdn_Import_Library = {
paused: 0,
limit: 5,
offset: 0,
retry_seconds: 10,
seconds_elapsed: 0,
timer: null,
nonce: '',
cdn_host: '',
set_progress: function(percent) {
jQuery('#cdn_import_library_progress .bar').width(percent + '%');
jQuery('#cdn_import_library_progress .percent').html(percent + '%');
},
set_status: function(status) {
jQuery('#cdn_import_library_status').html(status);
},
set_processed: function(processed) {
jQuery('#cdn_import_library_processed').html(processed);
},
set_total: function(total) {
jQuery('#cdn_import_library_total').html(total);
},
set_button_text: function(text) {
jQuery('#cdn_import_library_start').val(text);
},
set_last_response: function() {
var date = new Date();
jQuery('#cdn_import_library_last_response').html(date.toLocaleTimeString() + ' ' + date.toLocaleDateString());
},
set_elapsed: function(text) {
jQuery('#cdn_import_library_elapsed').html(text);
},
is_redirect_permanent: function() {
return (jQuery('#cdn_import_library_redirect_permanent:checked').length > 0);
},
is_redirect_cdn: function() {
return (jQuery('#cdn_import_library_redirect_cdn:checked').length > 0);
},
add_log: function(path, result, error) {
jQuery('#cdn_import_library_log').prepend('<div class="log-' + (result == 1 ? 'success' : 'error') + '">' + path + ' <strong>' + error + '</strong></div>');
},
clear_log: function() {
jQuery('#cdn_import_library_log').html('');
},
add_rule: function(src, dst) {
if (/^https?:\/\//.test(src)) {
return;
}
if (this.is_redirect_cdn()) {
dst = 'http://' + (this.cdn_host.length > 0 ? this.cdn_host : document.location.host) + '/' + dst;
} else {
dst = '/' + dst;
}
if (src.indexOf('/') != 0) {
src = '/' + src;
}
var rules = jQuery('#cdn_import_library_rules');
rules.val(rules.val() + 'Redirect ' + (this.is_redirect_permanent() ? '302 ' : '') + src + ' ' + dst + '\r\n');
},
clear_rules: function() {
jQuery('#cdn_import_library_rules').val('');
},
process: function() {
if (this.paused) {
return;
}
var me = this;
var cdn_import_external = jQuery("input#cdn_import_external").is(":checked");
jQuery.ajax({
type: 'POST',
url: 'admin.php?page=w3tc_cdn',
data: {
w3tc_cdn_import_library_process: 1,
limit: this.limit,
offset: this.offset,
_wpnonce: this.nonce,
cdn_import_external: cdn_import_external
},
dataType: 'json',
success: function(data) {
me.set_last_response();
me.process_callback(data);
},
error: function() {
me.set_last_response();
me.retry(me.retry_seconds);
}
});
},
retry: function(seconds) {
if (this.paused) {
return;
}
this.set_status('request failed (retry in ' + seconds + 's)');
if (seconds) {
var me = this;
setTimeout(function() {
me.retry(--seconds);
}, 1000);
} else {
this.set_status('processing');
this.process();
}
},
process_callback: function(data) {
this.offset += data.count;
this.set_total(data.total);
this.set_processed(this.offset);
this.set_progress((this.offset * 100 / data.total).toFixed(0));
var failed = false;
for (var i = 0; i < data.results.length; i++) {
this.add_log(data.results[i].src, data.results[i].result, data.results[i].error);
if (data.results[i].result == 1) {
this.add_rule(data.results[i].src, data.results[i].dst);
} else if (data.results[i].result == -1) {
failed = true;
break;
}
}
if (failed) {
this.set_progress(0);
this.set_processed(1);
this.set_status('failed');
this.set_button_text('Start');
clearInterval(this.timer);
} else {
if (this.offset < data.total) {
this.process();
} else {
this.set_status('done');
this.set_button_text('Start');
clearInterval(this.timer);
}
}
},
timer_callback: function() {
this.seconds_elapsed++;
this.set_elapsed(w3tc_seconds_to_string(this.seconds_elapsed));
},
init: function() {
var me = this;
jQuery('#cdn_import_library_start').click(function() {
if (this.value == 'Pause') {
me.paused = 1;
me.set_button_text('Resume');
me.set_status('paused');
clearInterval(me.timer);
} else {
if (this.value == 'Start') {
me.offset = 0;
me.seconds_elapsed = 0;
me.clear_log();
me.set_progress(0);
me.clear_rules();
me.set_elapsed('-');
}
me.paused = 0;
me.set_button_text('Pause');
me.set_status('processing');
me.timer = setInterval(function() {
me.timer_callback();
}, 1000);
}
me.process();
});
}
};
var W3tc_Popup_Cdn_Rename_Domain = {
paused: 0,
limit: 25,
offset: 0,
retry_seconds: 10,
seconds_elapsed: 0,
timer: null,
nonce: '',
set_progress: function(percent) {
jQuery('#cdn_rename_domain_progress .bar').width(percent + '%');
jQuery('#cdn_rename_domain_progress .percent').html(percent + '%');
},
set_status: function(status) {
jQuery('cdn_rename_domain_status').html(status);
},
set_processed: function(processed) {
jQuery('#cdn_rename_domain_processed').html(processed);
},
set_total: function(total) {
jQuery('#cdn_rename_domain_total').html(total);
},
set_button_text: function(text) {
jQuery('#cdn_rename_domain_start').val(text);
},
set_last_response: function() {
var date = new Date();
jQuery('#cdn_rename_domain_last_response').html(date.toLocaleTimeString() + ' ' + date.toLocaleDateString());
},
set_elapsed: function(text) {
jQuery('#cdn_rename_domain_elapsed').html(text);
},
add_log: function(path, result, error) {
jQuery('#cdn_rename_domain_log').prepend('<div class="log-' + (result == 1 ? 'success' : 'error') + '">' + path + ' <strong>' + error + '</strong></div>');
},
clear_log: function() {
jQuery('#cdn_rename_domain_log').html('');
},
get_domain_names: function() {
return jQuery('#cdn_rename_domain_names').val();
},
process: function() {
if (this.paused) {
return;
}
var me = this;
jQuery.ajax({
type: 'POST',
url: 'admin.php?page=w3tc_cdn',
data: {
w3tc_cdn_rename_domain_process: 1,
names: this.get_domain_names(),
limit: this.limit,
offset: this.offset,
_wpnonce: this.nonce
},
dataType: 'json',
success: function(data) {
me.set_last_response();
me.process_callback(data);
},
error: function() {
me.set_last_response();
me.retry(me.retry_seconds);
}
});
},
retry: function(seconds) {
if (this.paused) {
return;
}
this.set_status('request failed (retry in ' + seconds + 's)');
if (seconds) {
var me = this;
setTimeout(function() {
me.retry(--seconds);
}, 1000);
} else {
this.set_status('processing');
this.process();
}
},
process_callback: function(data) {
this.offset += data.count;
this.set_total(data.total);
this.set_processed(this.offset);
this.set_progress((this.offset * 100 / data.total).toFixed(0));
var failed = false;
for (var i = 0; i < data.results.length; i++) {
this.add_log(data.results[i].old, data.results[i].result, data.results[i].error);
if (data.results[i].result == -1) {
failed = true;
break;
}
}
if (failed) {
this.set_progress(0);
this.set_processed(1);
this.set_status('failed');
this.set_button_text('Start');
clearInterval(this.timer);
} else {
if (this.offset < data.total) {
this.process();
} else {
this.set_status('done');
this.set_button_text('Start');
clearInterval(this.timer);
}
}
},
timer_callback: function() {
this.seconds_elapsed++;
this.set_elapsed(w3tc_seconds_to_string(this.seconds_elapsed));
},
init: function(cdn_host) {
var me = this;
this.cdn_host = cdn_host;
jQuery('#cdn_rename_domain_start').click(function() {
if (this.value == 'Pause') {
me.paused = 1;
me.set_button_text('Resume');
me.set_status('paused');
clearInterval(me.timer);
} else {
if (this.value == 'Start') {
if (!me.get_domain_names()) {
alert('Empty domains to rename!');
return;
}
me.offset = 0;
me.seconds_elapsed = 0;
me.clear_log();
me.set_progress(0);
me.set_elapsed('-');
}
me.paused = 0;
me.set_button_text('Pause');
me.set_status('processing');
me.timer = setInterval(function() {
me.timer_callback();
}, 1000);
}
me.process();
});
}
};
function w3tc_ps_expand(expand) {
jQuery('.ps-rule').each(function() {
var e = jQuery(this).find('.ps-expander');
var a = jQuery(this).find('.ps-expand a');
if (!expand) {
e.hide();
a.html('+');
} else {
e.show();
a.html('-');
}
});
}
jQuery(function() {
jQuery('.tab').click(function() {
jQuery('.tab').removeClass('tab-selected');
jQuery('.tab-content').hide();
jQuery(this).addClass('tab-selected');
jQuery(this.rel).show();
});
jQuery('.cdn_queue_delete').click(function() {
return confirm('Are you sure you want to remove this file from the queue?');
});
jQuery('.cdn_queue_empty').click(function() {
return confirm('Are you sure you want to empty the queue?');
});
jQuery('.ps-rule').click(function() {
var e = jQuery(this).find('.ps-expander');
var a = jQuery(this).find('.ps-expand a');
if (e.is(':visible')) {
e.hide();
a.html('+');
} else {
e.show();
a.html('-');
}
return false;
});
jQuery('.ps-rule p a,.ps-expander').click(function(event) {
event.stopPropagation();
});
jQuery('.ps-expand-all').click(function() {
w3tc_ps_expand(1);
});
jQuery('.ps-collapse-all').click(function() {
w3tc_ps_expand(0);
});
});

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
jQuery(function() {
var ajaxurl = window.ajaxurl;
jQuery(document).ready(function() {
var forumLoading = jQuery('#w3tc_latest').find('div.inside:visible').find('.widget-loading');
if (forumLoading.length) {
var forumLoadingParent = forumLoading.parent();
setTimeout(function() {
forumLoadingParent.load(
ajaxurl + '?action=w3tc_widget_latest_ajax&_wpnonce=' +
jQuery(forumLoading).metadata().nonce,
function () {
forumLoadingParent.hide().slideDown('normal',
function() {
jQuery(this).css('display', '');
});
});
}, 500);
}
var newsLoading = jQuery('#w3tc_latest_news').find('div.inside:visible').find('.widget-loading');
if (newsLoading.length) {
var newsLoadingParent = newsLoading.parent();
setTimeout(function() {
newsLoadingParent.load(
ajaxurl + '?action=w3tc_widget_latest_news_ajax&_wpnonce=' +
jQuery(newsLoading).metadata().nonce,
function () {
newsLoadingParent.hide().slideDown('normal',
function() {
jQuery(this).css('display', '');
});
});
}, 500);
}
jQuery('.w3tc_generic_widgetservice_radio').click(function () {
var o = jQuery(this);
jQuery('#w3tc_generic_widgetservices_name').val(o.data('name'));
jQuery('#w3tc_generic_widgetservices_value').val(o.data('value'));
jQuery('#w3tc_generic_widgetservices_form_hash').val(o.data('form_hash'));
});
jQuery('#buy-w3-service-cancel').on('click', function () {
jQuery('input:radio[name=service]:checked').prop('checked', false);
jQuery('#buy-w3-service-area').empty();
jQuery('#buy-w3-service').attr("disabled", "disabled");
});
});
});

View File

@ -0,0 +1,121 @@
/**
* File: wizard.js
*
* JavaScript for the wizard.
*
* @since 2.0.0
*/
jQuery(function() {
var $container = jQuery( '#w3tc-wizard-container'),
$skipLink = $container.find( '#w3tc-wizard-skip-link '),
$skipButton = $container.find( '#w3tc-wizard-skip '),
$nextButton = $container.find( '#w3tc-wizard-next '),
$previousButton = $container.find( '#w3tc-wizard-previous ');
jQuery( '.button-buy-plugin' ).parent().remove();
$skipLink.on( 'click', skipFunction );
$skipButton.on( 'click', skipFunction );
jQuery( window ).on( 'beforeunload', function() {
return W3TC_Wizard.beforeunloadText;
});
// Listen for clicks to go to the W3TC Dashboard.
$container.find( '#w3tc-wizard-dashboard' ).on( 'click', function () {
jQuery( window ).off( 'beforeunload' );
document.location = W3TC_SetupGuide.dashboardUrl;
});
/**
* Process the skip action.
*
* Saves and option to mark the wizard completed.
*
* @since 2.0.0
*/
function skipFunction() {
var $this = jQuery( this ),
nodeName = $this.prop('nodeName'),
page = location.href.replace(/^.+page=/, '' );
jQuery( window ).off( 'beforeunload' );
if ( 'BUTTON' === nodeName ) {
$this
.prop( 'disabled', true )
.css( 'color', '#000' )
.text( 'Skipping...' );
}
// GA.
if ( window.w3tc_ga ) {
w3tc_ga( 'send', 'event', 'button', page, 'skip' );
}
jQuery.ajax({
method: 'POST',
url: ajaxurl,
data: {
_wpnonce: $container.find( '[name="_wpnonce"]' ).val(),
action: "w3tc_wizard_skip"
}
})
.done(function( response ) {
if ( 'BUTTON' === nodeName ) {
$this.text( 'Redirecting...' );
}
window.location.replace( location.href.replace(/page=.+$/, 'page=w3tc_dashboard') );
})
.fail(function() {
if ( 'BUTTON' === nodeName ) {
$this.text( 'Error with Ajax; reloading page...' );
}
location.reload();
});
};
$previousButton.on( 'click', function() {
var $currentSlide = $container.find( '.w3tc-wizard-slides:visible' ),
$previousSlide = $currentSlide.prev( '.w3tc-wizard-slides' );
if ( $previousSlide.length ) {
$currentSlide.hide();
$previousSlide.show();
$nextButton.prop( 'disabled', false );
}
// Hide the previous button and show the skip button on the first slide.
if ( 0 === $previousSlide.prev( '.w3tc-wizard-slides' ).length ) {
$previousButton.closest( 'span' ).hide();
$skipButton.closest( 'span' ).show();
}
w3tc_wizard_actions( $previousSlide );
});
$nextButton.on( 'click', function() {
var $currentSlide = $container.find( '.w3tc-wizard-slides:visible' ),
$nextSlide = $currentSlide.next( '.w3tc-wizard-slides' );
if ( $skipButton.is( ':visible' ) ) {
$skipButton.closest( 'span' ).hide();
$previousButton.closest( 'span' ).show();
}
if ( $nextSlide.length ) {
$currentSlide.hide();
$nextSlide.show();
}
// Disable the next button on the last slide.
if ( 0 === $nextSlide.next( '.w3tc-wizard-slides' ).length ) {
jQuery( this ).prop( 'disabled', 'disabled' );
}
w3tc_wizard_actions( $nextSlide );
});
});

View File

@ -0,0 +1,58 @@
<?php
$message = file_get_contents( 'php://input' );
// switch blog before any action
try {
$message_object = json_decode( $message, true );
} catch ( \Exception $e ) {
echo 'Failed to parse message';
exit();
}
if ( isset( $message_object['Type'] ) && isset( $message_object['Message'] ) ) {
if ( $message_object['Type'] == 'Notification' ) {
$w3tc_message = $message_object['Message'];
$w3tc_message_object = json_decode( $w3tc_message );
if ( isset( $w3tc_message_object->blog_id ) ) {
global $w3_current_blog_id;
$w3_current_blog_id = $w3tc_message_object->blog_id;
}
if ( isset( $w3tc_message_object->host ) && !is_null( $w3tc_message_object->host ) ) {
$_SERVER['HTTP_HOST'] = $w3tc_message_object->host;
}
}
else if ( $message_object['Type'] != 'SubscriptionConfirmation' ) {
echo 'Unsupported message type';
exit();
}
}
/**
* W3 Total Cache SNS module
*/
define( 'W3TC_WP_LOADING', true );
if ( !defined( 'ABSPATH' ) ) {
if ( file_exists( dirname( __FILE__ ) . '/../../../../wp-load.php' ) ) {
require_once dirname( __FILE__ ) . '/../../../../wp-load.php';
}
else {
require_once dirname( __FILE__ ) . '/../../w3tc-wp-loader.php';
}
}
if ( !defined( 'W3TC_DIR' ) ) {
define( 'W3TC_DIR', realpath( dirname( __FILE__ ) . '/..' ) );
}
if ( !@is_dir( W3TC_DIR ) || !file_exists( W3TC_DIR . '/w3-total-cache-api.php' ) ) {
@header( 'X-Robots-Tag: noarchive, noodp, nosnippet' );
echo sprintf( '<strong>W3 Total Cache Error:</strong> some files appear to be missing or out of place. Please re-install plugin or remove <strong>%s</strong>. <br />', dirname( __FILE__ ) );
}
require_once W3TC_DIR . '/w3-total-cache-api.php';
$server = \W3TC\Dispatcher::component( 'Enterprise_SnsServer' );
$server->process_message( $message_object );