Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin settings #4

Merged
merged 13 commits into from
Apr 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/deployment.xml
.idea/misc.xml
.idea/workspace.xml
.idea/modules.xml
.idea/vcs.xml
.idea/woocommerce-wcs.iml
woocommerce-wirecard-checkout-seamless/vendor/*
.idea/php.xml
.idea/*
woocommerce-wirecard-checkout-seamless/vendor/*
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions woocommerce-wirecard-checkout-seamless/assets/scripts/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* Shop System Plugins - Terms of Use
*
* The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
* (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
* products and services.
*
* They have been tested and approved for full functionality in the standard configuration
* (status on delivery) of the corresponding shop system. They are under General Public
* License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
* the same terms.
*
* However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
* occurring when used in an enhanced, customized shop system configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and requires a
* comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
* functionality neither does Wirecard CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
* for customized shop systems or installed plugins of other vendors of plugins within the same
* shop system.
*
* Customers are responsible for testing the plugin's functionality before starting productive
* operation.
*
* By installing the plugin into the shop system the customer agrees to these terms of use.
* Please do not use the plugin if you do not agree to these terms of use!
*/

wpOnload = function () {
var tabs = document.querySelectorAll("nav > a[data-target]");
var removeClass = function (el, cls) {
var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
if (el.className.match(reg)) {
el.className = el.className.replace(reg, ' ');
}
};
for (var i = 0; i < tabs.length; i++) {
tabs[i].addEventListener('click', function () {
removeClass(document.querySelector("nav > a[data-target].nav-tab-active"),'nav-tab-active');
removeClass(document.querySelector(".tab-content.panel > .tab-pane.active"), 'active');
this.className = this.className + ' nav-tab-active';
var tabPane = document.querySelector(".tab-content.panel > .tab-pane" + this.getAttribute('data-target'));
tabPane.className = tabPane.className + ' active';
});
}
}
129 changes: 129 additions & 0 deletions woocommerce-wirecard-checkout-seamless/assets/styles/admin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
/**
* Shop System Plugins - Terms of Use
*
* The plugins offered are provided free of charge by Wirecard Central Eastern Europe GmbH
* (abbreviated to Wirecard CEE) and are explicitly not part of the Wirecard CEE range of
* products and services.
*
* They have been tested and approved for full functionality in the standard configuration
* (status on delivery) of the corresponding shop system. They are under General Public
* License Version 2 (GPLv2) and can be used, developed and passed on to third parties under
* the same terms.
*
* However, Wirecard CEE does not provide any guarantee or accept any liability for any errors
* occurring when used in an enhanced, customized shop system configuration.
*
* Operation in an enhanced, customized configuration is at your own risk and requires a
* comprehensive test phase by the user of the plugin.
*
* Customers use the plugins at their own risk. Wirecard CEE does not guarantee their full
* functionality neither does Wirecard CEE assume liability for any disadvantages related to
* the use of the plugins. Additionally, Wirecard CEE does not guarantee the full functionality
* for customized shop systems or installed plugins of other vendors of plugins within the same
* shop system.
*
* Customers are responsible for testing the plugin's functionality before starting productive
* operation.
*
* By installing the plugin into the shop system the customer agrees to these terms of use.
* Please do not use the plugin if you do not agree to these terms of use!
*/

.wcs-chkbx-switch {
display: inline-block;
position: relative;
width: 50px;
height: 24px;
}

.wcs-chkbx-switch > input {
display: none;
}

.wcs-chkbx-switch > .wcs-chkbx-switch-slider {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
cursor: pointer;
background-color: #ccc;
-webkit-transition: .2s;
-moz-transition: .2s;
-ms-transition: .2s;
-o-transition: .2s;
transition: .2s;
}

.wcs-chkbx-switch > .wcs-chkbx-switch-slider:before {
position: absolute;
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: #fff;
content: "";
-webkit-transition: .2s;
-moz-transition: .2s;
-ms-transition: .2s;
-o-transition: .2s;
transition: .2s;
}

.wcs-chkbx-switch > input + .wcs-chkbx-switch-slider {
background-color: #ccc;
}

.wcs-chkbx-switch > input:checked + .wcs-chkbx-switch-slider {
background-color: #8fbC3b;
}

.wcs-chkbx-switch > input:checked + .wcs-chkbx-switch-slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}

.wcs-tabs > a, .wcs-tabs > a:active, .wcs-tabs > a:focus {
background-color: #f8f8f8;
}

.wcs-tabs > a:hover {
background-color: #fff;
}

.wcs-tabs > a.nav-tab-active {
background-color: #fff;
border-bottom: 1px solid #fff;
}

.tab-content.panel {
margin-top: -13px;
border-radius: 0 0 3px 3px;
border: 1px solid #ccc;
border-top: none;
background-color: #fff;
padding: 20px 20px;
}

.tab-content.panel > .tab-pane {
display: none;
}

.tab-content.panel > .tab-pane.active {
display: block;
}

.woo-wcs-settings-header-wrapper {
margin: auto;
min-width: 200px;
max-width: 1024px;
}

.woo-wcs-settings-header-wrapper p:first-of-type {
text-transform: uppercase;
}

.titledesc {
text-align: right;
}
Loading