Plugin Directory

Changeset 2841630


Ignore:
Timestamp:
12/30/2022 06:24:03 PM (3 years ago)
Author:
best2pay
Message:

halva widget final

Location:
best2pay-payment-method-visamastercard
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • best2pay-payment-method-visamastercard/best2pay-payment_method.php

    r2841590 r2841630  
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.2.6
     20 * Version: 1.2.7
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    7373                    $this->title = 'Оплатить заказ Частями';
    7474                    $this->icon = plugins_url('halva.svg', __FILE__);
    75                     $this->description = '<iframe style="border:none; width:100%; height:220px;" src="'.plugins_url('halva_widget.php', __FILE__).'"></iframe>';
     75                    $this->description = '<iframe style="width:100%;height:180px;border:none;" src="'.plugins_url('halva_widget.php', __FILE__).'?amount='.print_r(WC()->cart->cart_contents_total, true).'"></iframe>';
    7676                    break;
    7777                case 2:
  • best2pay-payment-method-visamastercard/halva_widget.php

    r2841590 r2841630  
    1 <!DOCTYPE html>
    2 <html>
    3 <head>
    4     <meta charset="utf-8">
    5     <meta name="viewport" content="width=device-width, initial-scale=1">
    6     <title></title>
    7 </head>
    8 <body>
    9     <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
    10     <link rel="preload" href="/fonts/montserrat.css" as="style"
    11       onload="this.onload=null;this.rel='stylesheet'"/>
    12     <style type="text/css">
    13         html, body { margin: 0 auto; padding: 0; }
    14         .halva_widget {
    15             box-sizing: border-box;
    16             position: relative;
    17             width: 321px;
    18             height: 152px;
    19 /*          left: 23px;*/
    20 /*          top: 39px;*/
    21             background: #FFFFFF;
    22             border: 1px solid #F1F1F1;
    23             box-shadow: 0px 14px 14px rgba(116, 116, 116, 0.09);
    24             border-radius: 12px;
    25             font-family: 'Roboto', sans-serif;
    26             padding-top: 12px;
    27             padding-bottom: 12px;
    28             padding-left: 16px;
    29             padding-right: 16px;
    30             font-size: 14px;
    31             color: #333;
    32             cursor: default;
    33         }
    34         .halva_widget .header .logo {
    35             background: url('/halva_logo.svg');
    36             /* position: absolute; */
    37             width: 84.83px;
    38             height: 24px;
    39         }
    40         .halva_widget p.desc {
    41             width: 125px;
    42             height: 18px;
    43             font-family: 'Montserrat';
    44     /*          font-family: 'Roboto', sans-serif;*/
    45             font-style: normal;
    46             font-weight: 400;
    47             font-size: 14px;
    48             line-height: 125%;
    49             /* identical to box height, or 18px */
    50             color: #333333;
    51             /* Inside auto layout */
    52             flex: none;
    53             order: 0;
    54             flex-grow: 0;
    55             width: 100%;
    56         }
    57         .halva_widget .graph .items {
    58             display: grid;
    59             grid-template-columns: 63.25px 63.25px 63.25px 63.25px;
    60             grid-column-gap: 12px;
    61             width: 100%;
    62             padding: 0;
    63             margin: 0 auto;
    64         }
    65         .halva_widget .graph .items .item:first-child::before {
    66             background: #25BF61;
    67         }
    68         .halva_widget .graph .items .item::before {
    69             content: "";
    70             position: absolute;
    71             width: 100%;
    72             height: 6px;
    73             border-radius: 20px;
    74             background: #F1F1F1;
    75         }
    76         .halva_widget .graph .items .item {
    77             /* width: 25%;*/
    78             list-style: none;
    79             position: relative;
    80         }
    81         .halva_widget .graph .items .item .day {
    82             margin-top: 12px;
    83             font-family: 'Roboto';
    84             font-style: normal;
    85             font-weight: 400;
    86             font-size: 12px;
    87             line-height: 16px;
    88             color: #808080;
    89         }
    90         .halva_widget .graph .items .item .sum {
    91             margin-top: 4px;
    92             font-family: 'Montserrat';
    93             font-style: normal;
    94             font-weight: bold;
    95             font-size: 14px;
    96             line-height: 16px;
    97             /* identical to box height, or 114% */
     1<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
     2<link rel="preload" href="/wp-content/plugins/best2pay-payment-method-visamastercard/fonts/montserrat.css" as="style"
     3  onload="this.onload=null;this.rel='stylesheet'"/>
     4<style type="text/css">
     5    html, body { margin: 0 auto; padding: 0; } 
     6    .halva_widget {
     7        box-sizing: border-box;
     8        position: relative;
     9        width: 321px;
     10        height: 152px;
     11        /*left: 23px;
     12        top: 39px;*/
     13        background: #FFFFFF;
     14        border: 1px solid #F1F1F1;
     15        box-shadow: 0px 14px 14px rgba(116, 116, 116, 0.09);
     16        border-radius: 12px;
     17        font-family: 'Roboto', sans-serif;
     18        padding-top: 12px;
     19        padding-bottom: 12px;
     20        padding-left: 16px;
     21        padding-right: 16px;
     22        font-size: 14px;
     23        color: #333;
     24        cursor: default;
     25    }
     26    .halva_widget .header .logo {
     27        background: url('/wp-content/plugins/best2pay-payment-method-visamastercard/halva_logo.svg');
     28        /* position: absolute; */
     29        width: 84.83px;
     30        height: 24px;
     31    }
     32    .halva_widget p.desc {
     33        width: 125px;
     34        height: 18px;
     35        font-family: 'Montserrat';
     36/*          font-family: 'Roboto', sans-serif;*/
     37        font-style: normal;
     38        font-weight: 400;
     39        font-size: 14px;
     40        line-height: 125%;
     41        /* identical to box height, or 18px */
     42        color: #333333;
     43        /* Inside auto layout */
     44        flex: none;
     45        order: 0;
     46        flex-grow: 0;
     47        width: 100%;
     48    }
     49    .halva_widget .graph .items {
     50        display: grid;
     51        grid-template-columns: 63.25px 63.25px 63.25px 63.25px;
     52        grid-column-gap: 12px;
     53        width: 100%;
     54        padding: 0;
     55        margin: 0 auto;
     56    }
     57    .halva_widget .graph .items .item:first-child::before {
     58        background: #25BF61;
     59    }
     60    .halva_widget .graph .items .item::before {
     61        content: "";
     62        position: absolute;
     63        width: 100%;
     64        height: 6px;
     65        border-radius: 20px;
     66        background: #F1F1F1;
     67    }
     68    .halva_widget .graph .items .item {
     69        /* width: 25%;*/
     70        list-style: none;
     71        position: relative;
     72    }
     73    .halva_widget .graph .items .item .day {
     74        margin-top: 12px;
     75        font-family: 'Roboto';
     76        font-style: normal;
     77        font-weight: 400;
     78        font-size: 12px;
     79        line-height: 16px;
     80        color: #808080;
     81        white-space: nowrap;
     82    }
     83    .halva_widget .graph .items .item .sum {
     84        margin-top: 4px;
     85        font-family: 'Montserrat';
     86        font-style: normal;
     87        font-weight: bold;
     88        font-size: 14px;
     89        line-height: 16px;
     90        /* identical to box height, or 114% */
    9891
    9992
    100             color: #333333;
    101         }
    102     </style>
    103     <div class="halva_widget">
    104         <div class="header">
    105             <div class="logo"></div>
    106             <!-- ? -->
    107         </div>
    108         <p class="desc">Разбить на части <b>без переплат</b></p>
    109         <div class="graph">
    110             <ul class="items">
    111                 <li class="item">
    112                     <div class="day">Сегодня</div>
    113                     <div class="sum">1025 ₽</div>
    114                 </li>
    115                 <li class="item">
    116                     <div class="day">10 марта</div>
    117                     <div class="sum">1025 ₽</div>
    118                 </li>
    119                 <li class="item">
    120                     <div class="day">24 марта</div>
    121                     <div class="sum">1025 ₽</div>
    122                 </li>
    123                 <li class="item">
    124                     <div class="day">7 апреля</div>
    125                     <div class="sum">1025 ₽</div>
    126                 </li>
    127             </ul>
    128         </div>
     93        color: #333333;
     94    }
     95</style>
     96<?php
     97$part = round(intval($_REQUEST['amount']) / 4, 2);
     98$arr = [
     99    'января',
     100    'февраля',
     101    'марта',
     102    'апреля',
     103    'мая',
     104    'июня',
     105    'июля',
     106    'августа',
     107    'сентября',
     108    'октября',
     109    'ноября',
     110    'декабря'
     111];
     112?>
     113<div class="halva_widget">
     114    <div class="header">
     115        <div class="logo"></div>
     116        <!-- ? -->
    129117    </div>
    130 </body>
    131 </html>
     118    <p class="desc">Разбить на части <b>без переплат</b></p>
     119    <div class="graph">
     120        <ul class="items">
     121            <li class="item">
     122                <div class="day">Сегодня</div>
     123                <div class="sum"><?php echo $part; ?> ₽</div>
     124            </li>
     125            <?php for ($i=1; $i<=3; $i++) {
     126            $time = mktime(0, 0, 0, date("m"), date("d")+14*$i, date("Y"));
     127            ?>
     128            <li class="item">
     129                <div class="day"><?php echo date("d", $time) . ' ' . $arr[date('m', $time)-1]; ?></div>
     130                <div class="sum"><?php echo $part; ?> ₽</div>
     131            </li>
     132            <?php } ?>
     133        </ul>
     134    </div>
     135</div>
  • best2pay-payment-method-visamastercard/readme.txt

    r2841590 r2841630  
    55Requires at least: 4.7
    66Requires PHP: 7.4
    7 Stable tag: 1.2.6
     7Stable tag: 1.2.7
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • best2pay-payment-method-visamastercard/trunk/best2pay-payment_method.php

    r2841590 r2841630  
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.2.6
     20 * Version: 1.2.7
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    7373                    $this->title = 'Оплатить заказ Частями';
    7474                    $this->icon = plugins_url('halva.svg', __FILE__);
    75                     $this->description = '<iframe style="border:none; width:100%; height:220px;" src="'.plugins_url('halva_widget.php', __FILE__).'"></iframe>';
     75                    $this->description = '<iframe style="width:100%;height:180px;border:none;" src="'.plugins_url('halva_widget.php', __FILE__).'?amount='.print_r(WC()->cart->cart_contents_total, true).'"></iframe>';
    7676                    break;
    7777                case 2:
  • best2pay-payment-method-visamastercard/trunk/halva_widget.php

    r2841590 r2841630  
    1 <!DOCTYPE html>
    2 <html>
    3 <head>
    4     <meta charset="utf-8">
    5     <meta name="viewport" content="width=device-width, initial-scale=1">
    6     <title></title>
    7 </head>
    8 <body>
    9     <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
    10     <link rel="preload" href="/fonts/montserrat.css" as="style"
    11       onload="this.onload=null;this.rel='stylesheet'"/>
    12     <style type="text/css">
    13         html, body { margin: 0 auto; padding: 0; }
    14         .halva_widget {
    15             box-sizing: border-box;
    16             position: relative;
    17             width: 321px;
    18             height: 152px;
    19 /*          left: 23px;*/
    20 /*          top: 39px;*/
    21             background: #FFFFFF;
    22             border: 1px solid #F1F1F1;
    23             box-shadow: 0px 14px 14px rgba(116, 116, 116, 0.09);
    24             border-radius: 12px;
    25             font-family: 'Roboto', sans-serif;
    26             padding-top: 12px;
    27             padding-bottom: 12px;
    28             padding-left: 16px;
    29             padding-right: 16px;
    30             font-size: 14px;
    31             color: #333;
    32             cursor: default;
    33         }
    34         .halva_widget .header .logo {
    35             background: url('/halva_logo.svg');
    36             /* position: absolute; */
    37             width: 84.83px;
    38             height: 24px;
    39         }
    40         .halva_widget p.desc {
    41             width: 125px;
    42             height: 18px;
    43             font-family: 'Montserrat';
    44     /*          font-family: 'Roboto', sans-serif;*/
    45             font-style: normal;
    46             font-weight: 400;
    47             font-size: 14px;
    48             line-height: 125%;
    49             /* identical to box height, or 18px */
    50             color: #333333;
    51             /* Inside auto layout */
    52             flex: none;
    53             order: 0;
    54             flex-grow: 0;
    55             width: 100%;
    56         }
    57         .halva_widget .graph .items {
    58             display: grid;
    59             grid-template-columns: 63.25px 63.25px 63.25px 63.25px;
    60             grid-column-gap: 12px;
    61             width: 100%;
    62             padding: 0;
    63             margin: 0 auto;
    64         }
    65         .halva_widget .graph .items .item:first-child::before {
    66             background: #25BF61;
    67         }
    68         .halva_widget .graph .items .item::before {
    69             content: "";
    70             position: absolute;
    71             width: 100%;
    72             height: 6px;
    73             border-radius: 20px;
    74             background: #F1F1F1;
    75         }
    76         .halva_widget .graph .items .item {
    77             /* width: 25%;*/
    78             list-style: none;
    79             position: relative;
    80         }
    81         .halva_widget .graph .items .item .day {
    82             margin-top: 12px;
    83             font-family: 'Roboto';
    84             font-style: normal;
    85             font-weight: 400;
    86             font-size: 12px;
    87             line-height: 16px;
    88             color: #808080;
    89         }
    90         .halva_widget .graph .items .item .sum {
    91             margin-top: 4px;
    92             font-family: 'Montserrat';
    93             font-style: normal;
    94             font-weight: bold;
    95             font-size: 14px;
    96             line-height: 16px;
    97             /* identical to box height, or 114% */
     1<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
     2<link rel="preload" href="/wp-content/plugins/best2pay-payment-method-visamastercard/fonts/montserrat.css" as="style"
     3  onload="this.onload=null;this.rel='stylesheet'"/>
     4<style type="text/css">
     5    html, body { margin: 0 auto; padding: 0; } 
     6    .halva_widget {
     7        box-sizing: border-box;
     8        position: relative;
     9        width: 321px;
     10        height: 152px;
     11        /*left: 23px;
     12        top: 39px;*/
     13        background: #FFFFFF;
     14        border: 1px solid #F1F1F1;
     15        box-shadow: 0px 14px 14px rgba(116, 116, 116, 0.09);
     16        border-radius: 12px;
     17        font-family: 'Roboto', sans-serif;
     18        padding-top: 12px;
     19        padding-bottom: 12px;
     20        padding-left: 16px;
     21        padding-right: 16px;
     22        font-size: 14px;
     23        color: #333;
     24        cursor: default;
     25    }
     26    .halva_widget .header .logo {
     27        background: url('/wp-content/plugins/best2pay-payment-method-visamastercard/halva_logo.svg');
     28        /* position: absolute; */
     29        width: 84.83px;
     30        height: 24px;
     31    }
     32    .halva_widget p.desc {
     33        width: 125px;
     34        height: 18px;
     35        font-family: 'Montserrat';
     36/*          font-family: 'Roboto', sans-serif;*/
     37        font-style: normal;
     38        font-weight: 400;
     39        font-size: 14px;
     40        line-height: 125%;
     41        /* identical to box height, or 18px */
     42        color: #333333;
     43        /* Inside auto layout */
     44        flex: none;
     45        order: 0;
     46        flex-grow: 0;
     47        width: 100%;
     48    }
     49    .halva_widget .graph .items {
     50        display: grid;
     51        grid-template-columns: 63.25px 63.25px 63.25px 63.25px;
     52        grid-column-gap: 12px;
     53        width: 100%;
     54        padding: 0;
     55        margin: 0 auto;
     56    }
     57    .halva_widget .graph .items .item:first-child::before {
     58        background: #25BF61;
     59    }
     60    .halva_widget .graph .items .item::before {
     61        content: "";
     62        position: absolute;
     63        width: 100%;
     64        height: 6px;
     65        border-radius: 20px;
     66        background: #F1F1F1;
     67    }
     68    .halva_widget .graph .items .item {
     69        /* width: 25%;*/
     70        list-style: none;
     71        position: relative;
     72    }
     73    .halva_widget .graph .items .item .day {
     74        margin-top: 12px;
     75        font-family: 'Roboto';
     76        font-style: normal;
     77        font-weight: 400;
     78        font-size: 12px;
     79        line-height: 16px;
     80        color: #808080;
     81        white-space: nowrap;
     82    }
     83    .halva_widget .graph .items .item .sum {
     84        margin-top: 4px;
     85        font-family: 'Montserrat';
     86        font-style: normal;
     87        font-weight: bold;
     88        font-size: 14px;
     89        line-height: 16px;
     90        /* identical to box height, or 114% */
    9891
    9992
    100             color: #333333;
    101         }
    102     </style>
    103     <div class="halva_widget">
    104         <div class="header">
    105             <div class="logo"></div>
    106             <!-- ? -->
    107         </div>
    108         <p class="desc">Разбить на части <b>без переплат</b></p>
    109         <div class="graph">
    110             <ul class="items">
    111                 <li class="item">
    112                     <div class="day">Сегодня</div>
    113                     <div class="sum">1025 ₽</div>
    114                 </li>
    115                 <li class="item">
    116                     <div class="day">10 марта</div>
    117                     <div class="sum">1025 ₽</div>
    118                 </li>
    119                 <li class="item">
    120                     <div class="day">24 марта</div>
    121                     <div class="sum">1025 ₽</div>
    122                 </li>
    123                 <li class="item">
    124                     <div class="day">7 апреля</div>
    125                     <div class="sum">1025 ₽</div>
    126                 </li>
    127             </ul>
    128         </div>
     93        color: #333333;
     94    }
     95</style>
     96<?php
     97$part = round(intval($_REQUEST['amount']) / 4, 2);
     98$arr = [
     99    'января',
     100    'февраля',
     101    'марта',
     102    'апреля',
     103    'мая',
     104    'июня',
     105    'июля',
     106    'августа',
     107    'сентября',
     108    'октября',
     109    'ноября',
     110    'декабря'
     111];
     112?>
     113<div class="halva_widget">
     114    <div class="header">
     115        <div class="logo"></div>
     116        <!-- ? -->
    129117    </div>
    130 </body>
    131 </html>
     118    <p class="desc">Разбить на части <b>без переплат</b></p>
     119    <div class="graph">
     120        <ul class="items">
     121            <li class="item">
     122                <div class="day">Сегодня</div>
     123                <div class="sum"><?php echo $part; ?> ₽</div>
     124            </li>
     125            <?php for ($i=1; $i<=3; $i++) {
     126            $time = mktime(0, 0, 0, date("m"), date("d")+14*$i, date("Y"));
     127            ?>
     128            <li class="item">
     129                <div class="day"><?php echo date("d", $time) . ' ' . $arr[date('m', $time)-1]; ?></div>
     130                <div class="sum"><?php echo $part; ?> ₽</div>
     131            </li>
     132            <?php } ?>
     133        </ul>
     134    </div>
     135</div>
  • best2pay-payment-method-visamastercard/trunk/readme.txt

    r2841590 r2841630  
    55Requires at least: 4.7
    66Requires PHP: 7.4
    7 Stable tag: 1.2.6
     7Stable tag: 1.2.7
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.