Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
trgino committed Sep 24, 2024
1 parent 134c86e commit f40ee54
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 80 deletions.
315 changes: 314 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,314 @@
.form-signin { width: 100%; max-width: 400px!important; padding: 25px; margin: auto;}.mb-3 { margin-bottom: 1rem !important;}.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%;}.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0;}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0;}.input-group>.form-control, .input-group>.form-select { position: relative; flex: 1 1 auto; width: 1%; min-width: 0;}.text-primary { --bs-text-opacity: 1; color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;}.input-group-text { display: flex; align-items: center; padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; text-align: center; white-space: nowrap; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: .25rem;}.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0;}.input-group > .form-control, .input-group > .form-select { position: relative; flex: 1 1 auto; width: 1%; min-width: 0;}.text-center { text-align: center !important;}.mb-2 { margin-bottom: .5rem !important;}.form-control { display: block; width: 100%; padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: .25rem; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;}button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit;}.g-1, .gy-1 { --bs-gutter-y: 0.25rem;}.g-1, .gx-1 { --bs-gutter-x: 0.25rem;}.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); width: 100%;}.col-8 { flex: 0 0 auto; width: 66.66666667%;}.col-4 { flex: 0 0 auto; width: 33.33333333%;}.mb-3 { margin-bottom: 1rem !important;}.shadow { margin-top: 10px!important; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; padding-top: 20px!important;}.rounded { border-radius: .25rem!important;}.bg-white { --bs-bg-opacity: 1; background-color: rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important;}.border { border: 1px solid #dee2e6!important;}.table { --bs-table-bg: transparent; --bs-table-accent-bg: transparent; --bs-table-striped-color: #212529; --bs-table-striped-bg: rgba(0, 0, 0, 0.05); --bs-table-active-color: #212529; --bs-table-active-bg: rgba(0, 0, 0, 0.1); --bs-table-hover-color: #212529; --bs-table-hover-bg: rgba(0, 0, 0, 0.075); width: 100%; margin-bottom: 1rem; color: #212529; vertical-align: top; border-color: #dee2e6;}.table>tbody { vertical-align: inherit;}tbody, td, tfoot, th, thead, tr { border-color: inherit; border-style: solid; border-width: 0;}.table>:not(caption)>*>* { padding: .5rem .5rem; background-color: var(--bs-table-bg); border-bottom-width: 1px; box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);}.py-2 { padding-top: .5rem!important; padding-bottom: .5rem!important;}.px-3 { padding-right: 1rem!important; padding-left: 1rem!important;}.form-check-input[type=radio] { border-radius: 50%;}.form-check .form-check-input { float: left; margin-right: 10px;}.p-1 { padding: .25rem!important;}.form-check-input { width: .5em; height: 0.5em; margin-top: .4em; vertical-align: top; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; border: 1px solid rgba(0,0,0,.25); -webkit-appearance: none; -moz-appearance: none; appearance: none; -webkit-print-color-adjust: exact; color-adjust: exact;}button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit;}[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) { cursor: pointer;}.w-100 { width: 100%!important;}.btn-group-lg>.btn, .btn-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .3rem;}.btn-primary { color: #fff!important; background-color: #0d6efd!important; border-color: #0d6efd!important;}.btn { display: inline-block; font-weight: 400; line-height: 1.5; color: #212529; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;}.text-danger h5{ --bs-text-opacity: 1; color: #dc3545!important;}.form-check-input:checked[type=radio] { background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e);}.form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd;}.form-check-input[type=radio] { border-radius: 50%;}.p-1 { padding: .25rem!important;}.wid100{ width: 100%!important;}
.mb-3 {
margin-bottom: 1rem !important;
}

.input-group {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: stretch;
width: 100%;
}

.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation)> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
margin-left: -1px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

.input-group>.form-control,
.input-group>.form-select {
position: relative;
flex: 1 1 auto;
width: 1%;
min-width: 0;
}

.text-primary {
--bs-text-opacity: 1;
color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.input-group-text {
display: flex;
align-items: center;
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: center;
white-space: nowrap;
background-color: #e9ecef;
border: 1px solid #ced4da;
border-radius: .25rem;
}

.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
margin-left: -1px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

.input-group>.form-control,
.input-group>.form-select {
position: relative;
flex: 1 1 auto;
width: 1%;
min-width: 0;
}

.text-center {
text-align: center !important;
}

.mb-2 {
margin-bottom: .5rem !important;
}

.form-control {
display: block;
width: 100%;
padding: .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: .25rem;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
margin-bottom: 0 !important;
}

button,
input,
optgroup,
select,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}

.g-1,
.gy-1 {
--bs-gutter-y: 0.25rem;
}

.g-1,
.gx-1 {
--bs-gutter-x: 0.25rem;
}

.row {
--bs-gutter-x: 1.5rem;
--bs-gutter-y: 0;
display: flex;
flex-wrap: wrap;
margin-top: calc(-1 * var(--bs-gutter-y));
width: 100%;
}

.col-8 {
flex: 0 0 auto;
width: 66.66666667%;
}

.col-4 {
flex: 0 0 auto;
width: 33.33333333%;
}

.mb-3 {
margin-bottom: 1rem !important;
}

.shadow {
margin-top: 10px !important;
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
padding-top: 20px !important;
}

.rounded {
border-radius: .25rem !important;
}

.bg-white {
--bs-bg-opacity: 1;
background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}

.border {
border: 1px solid #dee2e6 !important;
}

.table {
--bs-table-bg: transparent;
--bs-table-accent-bg: transparent;
--bs-table-striped-color: #212529;
--bs-table-striped-bg: rgba(0, 0, 0, 0.05);
--bs-table-active-color: #212529;
--bs-table-active-bg: rgba(0, 0, 0, 0.1);
--bs-table-hover-color: #212529;
--bs-table-hover-bg: rgba(0, 0, 0, 0.075);
width: 100%;
margin-bottom: 1rem;
color: #212529;
vertical-align: top;
border-color: #dee2e6;
}

.table>tbody {
vertical-align: inherit;
}

tbody,
td,
tfoot,
th,
thead,
tr {
border-color: inherit;
border-style: solid;
border-width: 0;
}

.table>:not(caption)>*>* {
padding: .5rem .5rem;
background-color: var(--bs-table-bg);
border-bottom-width: 1px;
box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.py-2 {
padding-top: .5rem !important;
padding-bottom: .5rem !important;
}

.px-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}

.form-check-input[type=radio] {
border-radius: 50%;
}

.form-check .form-check-input {
float: left;
margin-right: 10px;
}

.p-1 {
padding: .25rem !important;
}

.form-check-input {
width: .5em;
height: 0.5em;
margin-top: .4em;
vertical-align: top;
background-color: #fff;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
border: 1px solid rgba(0, 0, 0, .25);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-print-color-adjust: exact;
color-adjust: exact;
}

button,
input,
optgroup,
select,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}

[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
cursor: pointer;
}

.w-100 {
width: 100% !important;
}

.btn-group-lg>.btn,
.btn-lg {
padding: .5rem 1rem;
font-size: 1.25rem;
border-radius: .3rem;
}

.btn-primary {
color: #fff !important;
background-color: #0d6efd !important;
border-color: #0d6efd !important;
}

.btn {
display: inline-block;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: center;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
background-color: transparent;
border: 1px solid transparent;
padding: .375rem .75rem;
font-size: 1rem;
border-radius: .25rem;
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.text-danger h5 {
--bs-text-opacity: 1;
color: #dc3545 !important;
}

.form-check-input:checked[type=radio] {
background-image: url("data:image/svg+xml,%3Csvgxmlns='http://www.w3.org/2000/svg'viewBox='-4-488'%3E%3Ccircler='2'fill='%23fff'/%3E%3C/svg%3E");
}

.form-check-input:checked {
background-color: #0d6efd;
border-color: #0d6efd;
}

.form-check-input[type=radio] {
border-radius: 50%;
}

.p-1 {
padding: .25rem !important;
}

.wid100 {
width: 100% !important;
}
6 changes: 3 additions & 3 deletions class/class-parolapara.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getToken()
return false;
}

public function getInstallment($par)
public function getInstallment($par, $order)
{

$token = $this->getToken();
Expand Down Expand Up @@ -76,7 +76,7 @@ public function getInstallment($par)
$html .= 'tag="' . $total . '"';
$html .= '<label class="form-check-label" for="tno' . $taksitler->installments_number . '"><strong>' . $text_value . '</strong></label></div></td>';

$html .= '<td class="px-3 py-2" id="instalmentTd' . $key . '"><label for="tno1">' . $total . ' </label></td>';
$html .= '<td class="px-3 py-2" id="instalmentTd' . $key . '"><label for="tno1">' . $total . ' ' . $order->get_currency() . ' </label></td>';
$html .= '<td class="px-3 py-2 text-primary"><strong></strong></td></tr>';
$html .= '<input type="hidden" name="tsx' . $taksitler->installments_number . '" value="' . $taksitler->hash_key . '">';
}
Expand Down Expand Up @@ -121,7 +121,7 @@ public function start3d($order_id)

$items = json_encode($items);

$okUrl = get_site_url() . "/wc-api/parolapara_complete_payment";
$okUrl = get_site_url(get_current_blog_id(), '/wc-api/parolapara_complete_payment');
$failUrl = $order->get_checkout_payment_url(true);

$amount = floatval($this->fixNumberFormat($_REQUEST['odenecek_tutar']));
Expand Down
Loading

0 comments on commit f40ee54

Please sign in to comment.