File indexing completed on 2024-12-29 05:24:50

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  *
0022  * Created: 31.05.2017
0023  */
0024 
0025 ?>
0026 <style>
0027 
0028 input[type="radio"] {
0029     /*display: none;*/
0030     vertical-align: top;
0031 }
0032 /* Support box**/
0033 
0034 .donation-widget.tabs {
0035     position: relative;
0036     max-width: 425px;
0037     min-width: 320px;
0038     margin-bottom: 2.5rem !important;
0039     margin-top: 25px;
0040     border: 1px solid #e1e1e1;
0041 }
0042 
0043 form, p, blockquote, th, td {
0044     margin: 0;
0045     padding: 0;
0046 }
0047 
0048 .tabs {
0049     margin-bottom: 0 !important;
0050     margin-left: 0;
0051 }
0052 
0053 .tabs:before, .tabs:after {
0054     content: " ";
0055     display: table;
0056 }
0057 
0058 .donation-widget.tabs .tabs-footer {
0059     background-color: #fff;
0060     padding: 0px 0 18px;
0061     text-align: center;
0062 }
0063 
0064 .donation-widget.tabs .tabs-footer .dw-btn.basic-color-background {
0065     background-color: #092d63;
0066     box-shadow: 0 2px 0 0 #061f45;
0067 }
0068 
0069 .donation-widget.tabs .tabs-footer .dw-btn, .donation-widget.tabs .ty-content .dw-btn {
0070     width: 75.8%;
0071     height: 54px;
0072     margin-bottom: 20px;
0073     text-transform: none;
0074     background-color: transparent;
0075     border-radius: 4px;
0076     box-shadow: 0 2px 0 0 transparent;
0077     color: #fff;
0078     line-height: 27px;
0079 }
0080 
0081 .mdl-button {
0082     background: 0 0;
0083     border: none;
0084     border-radius: 2px;
0085     color: #000;
0086     position: relative;
0087     height: 36px;
0088     margin: 0;
0089     min-width: 64px;
0090     padding: 0 16px;
0091     display: inline-block;
0092     font-family: "Roboto","Helvetica","Arial",sans-serif;
0093     font-size: 14px;
0094     font-weight: 500;
0095     text-transform: uppercase;
0096     letter-spacing: 0;
0097     overflow: hidden;
0098     will-change: box-shadow;
0099     transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);
0100     outline: none;
0101     cursor: pointer;
0102     text-decoration: none;
0103     text-align: center;
0104     line-height: 36px;
0105     vertical-align: middle;
0106 }
0107 
0108 .tabs-header.basic-color-background {
0109     background-color: #092d63;
0110 }
0111 
0112 .tabs-header {
0113     position: relative;
0114     height: 66px;
0115     padding: 8px;
0116     background-color: #41a2d8;
0117 }
0118 
0119 .tabs-header .header-content .display-amount {
0120     color: #fff;
0121     line-height: 15px;
0122 }
0123 
0124 .tabs-content:before, .tabs-content:after {
0125     content: " ";
0126     display: table;
0127 }
0128 
0129 .tabs-header .header-content {
0130     position: relative;
0131     height: 20px;
0132     top: calc(50% - 8px);
0133     padding: 0 15.4% 0 15.4%;
0134 }
0135 
0136 .tabs-header .header-content .display-amount span {
0137     font-size: 18.2px;
0138 }
0139 
0140 .donation-widget.tabs .tabs-content {
0141     position: relative;
0142     width: 100%;
0143     padding: 0;
0144     margin: 0;
0145 }
0146 
0147 .donation-widget.tabs .tabs-content .content.step-1 {
0148     /*padding: 0 10%;*/
0149 }
0150 
0151 .tabs-content>.content.active {
0152     display: block;
0153     float: none;
0154 }
0155 
0156 .tabs-content>.content {
0157     display: none;
0158     float: left;
0159     padding: 1.5rem 0;
0160     width: 100%;
0161 }
0162 
0163 .tabs-content {
0164     background-color: white;
0165 }
0166 
0167 ul.suggested-amounts.less-margin {
0168     margin-bottom: 28px !important;
0169 }
0170 
0171 ul.suggested-amounts li.amount-item:hover .item-text .amount, ul.suggested-amounts li.amount-item:hover .item-text #custom_amount, ul.suggested-amounts li.amount-item .mdl-radio.is-checked .item-text .amount, ul.suggested-amounts li.amount-item .mdl-radio.is-checked .item-text #custom_amount {
0172     opacity: .95;
0173 }
0174 ul.suggested-amounts li.amount-item .item-text {
0175     display: inline-block;
0176     position: relative;
0177     margin-left: 23px;
0178 }
0179 ul.suggested-amounts li.amount-item .item-text .unit-wrapper {
0180     position: absolute;
0181     display: inline-block;
0182     left: 0;
0183 }
0184 ul.suggested-amounts li.amount-item .item-text .unit, ul.suggested-amounts li.amount-item .item-text .desc {
0185     color: #231f20;
0186     opacity: .6;
0187     font-size: 13px;
0188 }
0189 
0190 ul.suggested-amounts li.amount-item .item-text .unit {
0191     position: absolute;
0192     top: 0;
0193     right: 3px;
0194     line-height: 10px;
0195 }
0196 ul.suggested-amounts li.amount-item .item-text .amount, ul.suggested-amounts li.amount-item .item-text #custom_amount {
0197     /*font-family: SourceSansPro-Semibold;*/
0198     color: #000;
0199     font-size: 24px;
0200     opacity: .65;
0201 }
0202 ul.suggested-amounts {
0203     position: relative;
0204     margin: 27px 16px 48px 16px;
0205     list-style-type: none;
0206 }
0207 
0208 .tabs-header {
0209     position: relative;
0210     height: 66px;
0211     padding: 8px;
0212     background-color: #41a2d8;
0213 }
0214 
0215 ul.suggested-amounts li.amount-item:last-child {
0216     border-bottom: none;
0217     padding-bottom: 0;
0218 }
0219 
0220 .donation-widget ul.suggested-amounts li.amount-item .mdl-radio {
0221     width: 100%;
0222 }
0223 ul.suggested-amounts li.amount-item .mdl-radio {
0224     line-height: 15px;
0225 }
0226 .donation-widget .donation-form .header-content div, .donation-widget .donation-form .header-content input, .donation-widget .donation-form .header-content label, .donation-widget .donation-form .header-content a, .donation-widget .donation-form .header-content span, .donation-widget .donation-form .suggested-amounts div, .donation-widget .donation-form .suggested-amounts input, .donation-widget .donation-form .suggested-amounts label, .donation-widget .donation-form .suggested-amounts a, .donation-widget .donation-form .suggested-amounts span, .donation-widget .donation-form .mdl-select-field div, .donation-widget .donation-form .mdl-select-field input, .donation-widget .donation-form .mdl-select-field label, .donation-widget .donation-form .mdl-select-field a, .donation-widget .donation-form .mdl-select-field span, .donation-widget .donation-form .mdl-button div, .donation-widget .donation-form .mdl-button input, .donation-widget .donation-form .mdl-button label, .donation-widget .donation-form .mdl-button a, .donation-widget .donation-form .mdl-button span, .donation-widget #thank_you .header-content div, .donation-widget #thank_you .header-content input, .donation-widget #thank_you .header-content label, .donation-widget #thank_you .header-content a, .donation-widget #thank_you .header-content span, .donation-widget #thank_you .suggested-amounts div, .donation-widget #thank_you .suggested-amounts input, .donation-widget #thank_you .suggested-amounts label, .donation-widget #thank_you .suggested-amounts a, .donation-widget #thank_you .suggested-amounts span, .donation-widget #thank_you .mdl-select-field div, .donation-widget #thank_you .mdl-select-field input, .donation-widget #thank_you .mdl-select-field label, .donation-widget #thank_you .mdl-select-field a, .donation-widget #thank_you .mdl-select-field span, .donation-widget #thank_you .mdl-button div, .donation-widget #thank_you .mdl-button input, .donation-widget #thank_you .mdl-button label, .donation-widget #thank_you .mdl-button a, .donation-widget #thank_you .mdl-button span {
0227     /*font-family: "SourceSansPro-Regular", "Roboto","Helvetica","Arial";*/
0228     font-style: normal;
0229     /*font-size: 12px;*/
0230     letter-spacing: 0;
0231 }
0232 label {
0233     font-size: 1.4rem;
0234     color: #4d4d4d;
0235     cursor: pointer;
0236     display: block;
0237     font-weight: normal;
0238     line-height: 1.5;
0239     margin-bottom: 0;
0240 }
0241 
0242 ul.suggested-amounts li.amount-item .item-text {
0243     display: inline-block;
0244     position: relative;
0245     margin-left: 23px;
0246 }
0247 
0248 ul.suggested-amounts li.amount-item .item-text .unit-wrapper {
0249     position: absolute;
0250     display: inline-block;
0251     left: 0;
0252 }
0253 
0254 ul.suggested-amounts li.amount-item .item-text #custom_amount {
0255     margin-top: -8px;
0256 }
0257 
0258 ul.suggested-amounts li.amount-item .item-text .amount input, ul.suggested-amounts li.amount-item .item-text #custom_amount input {
0259     width: 50%;
0260     margin: 0;
0261     border: 0;
0262     border-bottom: 1px solid #d0d0d0;
0263     padding: 0;
0264     box-shadow: none;
0265     background-color: white;
0266 }
0267 
0268 ul.suggested-amounts li.amount-item:last-child .item-text .desc {
0269     margin-top: 4px;
0270 }
0271 
0272 ul.suggested-amounts li.amount-item .item-text .desc {
0273     font-size: 14px;
0274 }
0275 
0276 ul.suggested-amounts li.amount-item .item-text .unit, ul.suggested-amounts li.amount-item .item-text .desc {
0277     color: #231f20;
0278     opacity: .6;
0279     font-size: 13px;
0280 }
0281 
0282 ul.suggested-amounts li.amount-item .item-text .desc {
0283     display: block;
0284     margin-top: 3px;
0285 }
0286 
0287 .mdl-radio__outer-circle {
0288     display: none;
0289     position: absolute;
0290     top: 4px;
0291     left: 0;
0292     display: inline-block;
0293     box-sizing: border-box;
0294     width: 16px;
0295     height: 16px;
0296     margin: 0;
0297     cursor: pointer;
0298     border: 2px solid rgba(0,0,0,.54);
0299     border-radius: 50%;
0300     z-index: 2;
0301 }
0302 
0303 .mdl-radio__inner-circle {
0304     display: none;
0305     position: absolute;
0306     z-index: 1;
0307     margin: 0;
0308     top: 8px;
0309     left: 4px;
0310     box-sizing: border-box;
0311     width: 8px;
0312     height: 8px;
0313     cursor: pointer;
0314     transition-duration: .28s;
0315     transition-timing-function: cubic-bezier(.4,0,.2,1);
0316     transition-property: transform;
0317     transition-property: transform,-webkit-transform;
0318     -webkit-transform: scale3d(0,0,0);
0319     transform: scale3d(0,0,0);
0320     border-radius: 50%;
0321     background: rgb(63,81,181);
0322 }
0323 
0324 ul.suggested-amounts li.amount-item .mdl-radio .mdl-radio__outer-circle {
0325     display: none;
0326     top: 0;
0327     width: 13px;
0328     height: 13px;
0329     border-color: #b2b1b1;
0330     transition-duration: .14s;
0331     transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
0332 }
0333 
0334 ul.suggested-amounts li.amount-item {
0335     border-bottom: dotted thin #E7E7E7;
0336     padding: 16px 0 7px;
0337 }
0338 
0339 .donation-widget ul.suggested-amounts li.amount-item .mdl-radio {
0340     width: 100%;
0341 }
0342 
0343 ul.suggested-amounts li.amount-item .mdl-radio {
0344     line-height: 15px;
0345 }
0346 
0347 .mdl-btn-group {
0348     width: 180px;
0349     margin: 0 auto;
0350 }
0351 
0352 
0353 .mdl-btn-group.active-basic-color-background div.active {
0354     background-color: #092d63;
0355     color: #ffffff;
0356 }
0357 
0358 .mdl-btn-group.active-basic-color-background div {
0359     border-color: #092d63;
0360     color: #092d63;
0361 }
0362 
0363 .mdl-btn-group div.active {
0364     background-color: #41a2d8;
0365     color: #fff;
0366 }
0367 
0368 .mdl-btn-group div:first-child {
0369     border-radius: 3px 0 0 3px;
0370 }
0371 
0372 .mdl-btn-group div {
0373     display: inline-block;
0374     float: left;
0375     line-height: 40px;
0376     font-size: 12px;
0377     width: 90px;
0378     border: 1px solid #41a2d8;
0379     border-right: 0;
0380     vertical-align: middle;
0381     text-align: center;
0382     color: #41a2d8;
0383     cursor: pointer;
0384 }
0385 
0386 .mdl-btn-group.active-basic-color-background div:last-child {
0387     border-color: #092d63;
0388 }
0389 
0390 .mdl-btn-group.active-basic-color-background div {
0391     border-color: #092d63;
0392     color: #092d63;
0393 }
0394 
0395 .mdl-btn-group div:last-child {
0396     border-radius: 0 3px 3px 0;
0397     border-right: 1px solid #41a2d8;
0398 }
0399 
0400 ul.suggested-amounts li.amount-item .mdl-radio .mdl-radio__outer-circle {
0401     display: none;
0402     top: 0;
0403     width: 13px;
0404     height: 13px;
0405     border-color: #b2b1b1;
0406     transition-duration: .14s;
0407     transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
0408 }
0409 
0410 .mdl-radio.is-upgraded {
0411     padding-left: 24px;
0412 }
0413 
0414 .mdl-radio, .mdl-radio__button {
0415     line-height: 24px;
0416 }
0417 
0418 .mdl-radio {
0419     position: relative;
0420     font-size: 16px;
0421     display: inline-block;
0422     box-sizing: border-box;
0423     margin: 0;
0424     padding-left: 0;
0425 }
0426 
0427 .mdl-accordion, .mdl-button, .mdl-card, .mdl-checkbox, .mdl-dropdown-menu, .mdl-icon-toggle, .mdl-item, .mdl-radio, .mdl-slider, .mdl-switch, .mdl-tabs__tab, a {
0428     -webkit-tap-highlight-color: transparent;
0429     -webkit-tap-highlight-color: rgba(255,255,255,0);
0430 }
0431 </style>
0432 
0433 <!--<link href="/theme/flatui/css/support_box.css" rel="stylesheet">-->
0434 
0435 <main id="explore-content">
0436     <section class="wrapper" id="products-wrapper">
0437         <div class="container-fluid">
0438             <div class="row">
0439                 <div class="sidebar-left col-md-2"></div>
0440                 <div class="content col-md-8">
0441                     <h2>Become a Supporter</h2>
0442                     <p>Help us support the creatives on our platform to keep it growing.
0443                     </p>
0444                     <p>Your donation supports all creators via a one time donation that lasts a full year.</p>
0445                     
0446                     <div class="tabs donation-widget ">
0447                     
0448                         <form class="donation-form" id="new_donation" action="/support-old/pay" accept-charset="UTF-8" data-remote="true" method="post">
0449                       
0450                                 <input type="hidden" id="currency-symbol" value="$">
0451                                 <input type="hidden" name="provider" value="paypal" id="provider">
0452 
0453                                 <div class="tabs-header non-selectable basic-color-background">
0454                                   <div class="header-content">
0455                                     <span class="display-amount">
0456                                       <span class="step-1 active">Choose amount for a year</span>
0457                                     </span>
0458                                   </div>
0459                                 </div>
0460 
0461                                 <div class="tabs-content">
0462                                   <div class="content step-1 active" id="donor-form-step-1"> 
0463                                     <ul class="suggested-amounts less-margin">
0464                                         <li class="amount-item">
0465                                           <label class="mdl-radio mdl-js-radio is-upgraded" for="sam-15" data-upgraded=",MaterialRadio">
0466                                               <input class="suggested-amount mdl-radio__button" checked id="sam-15" type="radio" value="15" name="amount_predefined">
0467                                             <span class="mdl-radio__label">
0468                                               <span class="item-text">
0469                                                 <span class="unit-wrapper">
0470                                                   <span class="unit">$</span>
0471                                                 </span>
0472                                                 <span class="amount">15</span>
0473                                               </span>
0474                                             </span>
0475                                           <span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span></label>
0476                                         </li>
0477                                         <li class="amount-item">
0478                                           <label class="mdl-radio mdl-js-radio is-upgraded" for="sam-25" data-upgraded=",MaterialRadio">
0479                                               <input class="suggested-amount mdl-radio__button" id="sam-25" type="radio" value="25" name="amount_predefined">
0480                                             <span class="mdl-radio__label">
0481                                               <span class="item-text">
0482                                                 <span class="unit-wrapper">
0483                                                   <span class="unit">$</span>
0484                                                 </span>
0485                                                 <span class="amount">25</span>
0486                                               </span>
0487                                             </span>
0488                                           <span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span></label>
0489                                         </li>
0490                                         <li class="amount-item">
0491                                           <label class="mdl-radio mdl-js-radio is-upgraded" for="sam-50" data-upgraded=",MaterialRadio">
0492                                               <input class="suggested-amount mdl-radio__button" id="sam-50" type="radio" value="50 " name="amount_predefined">
0493                                             <span class="mdl-radio__label">
0494                                               <span class="item-text">
0495                                                 <span class="unit-wrapper">
0496                                                   <span class="unit">$</span>
0497                                                 </span>
0498                                                 <span class="amount">50 </span>
0499                                               </span>
0500                                             </span>
0501                                           <span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span></label>
0502                                         </li>
0503                                         <li class="amount-item">
0504                                           <label class="mdl-radio mdl-js-radio is-upgraded" for="sam-100" data-upgraded=",MaterialRadio">
0505                                               <input class="suggested-amount mdl-radio__button" id="sam-100" type="radio" value="100 " name="amount_predefined">
0506                                             <span class="mdl-radio__label">
0507                                               <span class="item-text">
0508                                                 <span class="unit-wrapper">
0509                                                   <span class="unit">$</span>
0510                                                 </span>
0511                                                 <span class="amount">100 </span>
0512                                               </span>
0513                                             </span>
0514                                           <span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span></label>
0515                                         </li>
0516                                         <li class="amount-item">
0517                                           <label class="mdl-radio mdl-js-radio is-upgraded" for="custom_amount_item" data-upgraded=",MaterialRadio">
0518                                             <input class="suggested-amount mdl-radio__button" id="custom_amount_item" type="radio" value="0" name="amount_predefined">
0519                                             <span class="mdl-radio__label">
0520                                               <span class="item-text">
0521                                                 <span class="unit-wrapper">
0522                                                   <span class="unit">$</span>
0523                                                 </span>
0524                                                 <span class="amount">
0525                                                   <input id="custom_amount" min="16" step="any" inputmode="numeric" type="number" name="amount_handish">
0526                                                 </span>
0527                                                 <span class="desc">Enter a free amount > $15</span>
0528                                               </span>
0529                                             </span>
0530                                           <span class="mdl-radio__outer-circle"></span><span class="mdl-radio__inner-circle"></span></label>
0531                                         </li>
0532                                     </ul>
0533                                     <!--
0534                                     <div class="mdl-grid ">
0535                                         <div class="mdl-cell mdl-cell--12-col">
0536                                             <div class="mdl-btn-group active-basic-color-background">
0537                                                 <div value="" style="" class="active">One time</div>
0538                                                 <div value="true" style="">Yearly</div>
0539                                             </div>
0540 
0541                                             <input type="hidden" name="recurring" id="recurring" value="">
0542                                         </div>
0543                                     </div>            
0544                                     -->
0545                                   </div> 
0546                                   
0547                                 <div class="tabs-footer">
0548                                     <?php if (Zend_Auth::getInstance()->hasIdentity()) {?>
0549                                   <button type="submit" class="dw-btn mdl-button mdl-js-button mdl-js-ripple-effect step-3 basic-color-background" data-upgraded=",MaterialButton,MaterialRipple">
0550                                     <span class="donate" id="linkButton">
0551                                       <span class="amount">
0552                                         <span isolate="">Donate via PayPal</span>
0553                                       </span>
0554                                     </span>
0555                                     </button>
0556                                      <?php }else{
0557                                         echo "Please login to donate";
0558                                     }?>
0559                                 </div>
0560                            
0561                           </form>
0562                     </div>
0563                     
0564                     
0565                 </div>
0566                 <div class="sidebar-right col-md-2"></div>
0567             </div>
0568             <section class="explore-footer text-center">
0569                 
0570             </section>
0571         </div>
0572     </section>
0573 </main>
0574 
0575 <script>
0576     $(document).ready(function(){
0577         $("#custom_amount").click(function(){
0578             $('.mdl-radio__button').removeAttr('checked');
0579             $('#custom_amount_item').prop("checked", true);            
0580         });
0581 
0582         $('#plingListOpen').click(function(){
0583             $('#plingList').trigger( "click" );       
0584         });
0585 
0586     });
0587 </script>