Version Description
Give version 1.8 is a major update. Please make sure you make a backup of your database before updating.
Download this release
Release Info
Developer | webdevmattcrom |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 1.8.8 |
Comparing to | |
See all releases |
Code changes from version 1.8.7.1 to 1.8.8
- assets/css/give-admin-rtl.css +18 -34
- assets/css/give-admin-rtl.min.css +1 -1
- assets/css/give-admin.css +18 -34
- assets/css/give-admin.min.css +1 -1
- assets/images/admin/give-form-mockup.png +0 -0
- assets/images/give-form-mockup.png +0 -0
- assets/js/admin/admin-scripts.js +218 -119
- assets/js/admin/admin-scripts.min.js +1 -1
- assets/js/frontend/give-checkout-global.js +12 -13
- assets/js/frontend/give-checkout-global.min.js +1 -1
- assets/js/frontend/give.all.min.js +1 -1
- assets/scss/admin/forms.scss +3 -3
- assets/scss/admin/payment-history.scss +242 -213
- assets/scss/admin/settings.scss +0 -46
- assets/sourcemaps/give-admin.css.map +1 -1
- give.php +16 -12
- includes/actions.php +1 -1
- includes/admin/admin-actions.php +36 -0
- includes/admin/admin-pages.php +4 -2
- includes/admin/class-addon-activation-banner.php +13 -5
- includes/admin/class-admin-settings.php +18 -5
- includes/admin/class-api-keys-table.php +10 -3
- includes/admin/class-give-settings.php +43 -7
- includes/admin/customers/customer-actions.php +136 -112
- includes/admin/customers/customers.php +41 -27
- includes/admin/forms/class-metabox-form-data.php +104 -103
- includes/admin/forms/dashboard-columns.php +3 -3
- includes/admin/give-metabox-functions.php +26 -16
- includes/admin/payments/actions.php +1 -1
- includes/admin/payments/class-payments-table.php +7 -2
- includes/admin/payments/view-order-details.php +8 -5
- includes/admin/reporting/class-gateways-reports-table.php +2 -2
- includes/admin/reporting/class-give-graph.php +12 -6
- includes/admin/reporting/graphing.php +2 -2
- includes/admin/reporting/reports.php +1 -251
- includes/admin/settings/class-settings-display.php +34 -34
- includes/admin/{reporting → tools}/class-settings-export.php +13 -13
- includes/admin/tools/class-settings-logs.php +5 -5
- includes/admin/{reporting/tools → tools/data}/class-give-tools-delete-test-transactions.php +1 -1
- includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-all-stats.php +2 -2
- includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-customer-stats.php +0 -0
- includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-form-stats.php +2 -2
- includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-income.php +0 -0
- includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-single-customer-stats.php +0 -0
- includes/admin/{reporting/tools → tools/data}/class-give-tools-reset-stats.php +0 -0
- includes/admin/{reporting/tools → tools/data}/tools-actions.php +6 -6
- includes/admin/{reporting → tools}/export/class-batch-export-customers.php +1 -1
- includes/admin/{reporting → tools}/export/class-batch-export-forms.php +39 -52
- includes/admin/{reporting → tools}/export/class-batch-export-payments.php +21 -25
- includes/admin/{reporting → tools}/export/class-batch-export.php +0 -0
- includes/admin/{reporting → tools/export}/class-export-earnings.php +3 -3
- includes/admin/{reporting → tools/export}/class-export.php +3 -3
- includes/admin/{reporting → tools}/export/export-actions.php +5 -5
- includes/admin/{reporting → tools}/export/export-functions.php +2 -3
- includes/admin/{reporting → tools/export}/pdf-reports.php +77 -32
- includes/admin/{reporting → tools/logs}/class-api-requests-logs-list-table.php +4 -4
- includes/admin/{reporting → tools/logs}/class-gateway-error-logs-list-table.php +0 -0
- includes/admin/{reporting → tools/logs}/class-sales-logs-list-table.php +10 -10
- includes/admin/{reporting → tools/logs}/logs.php +28 -5
- includes/admin/{reporting/tools.php → tools/views/html-admin-page-data.php} +16 -32
- includes/admin/tools/views/html-admin-page-exports.php +275 -0
- includes/admin/upgrades/upgrade-functions.php +43 -10
- includes/admin/welcome.php +263 -211
- includes/ajax-functions.php +36 -29
- includes/api/class-give-api.php +93 -12
- includes/class-give-donate-form.php +17 -17
- includes/class-give-gravatars.php +5 -5
- includes/class-give-html-elements.php +91 -46
- includes/class-give-logging.php +2 -2
- includes/class-give-roles.php +2 -1
- includes/deprecated/deprecated-actions.php +9 -1
- includes/deprecated/deprecated-filters.php +30 -14
- includes/deprecated/deprecated-functions.php +220 -5
- includes/emails/template.php +1 -1
- includes/formatting.php +15 -12
- includes/forms/functions.php +3 -3
- includes/forms/template.php +28 -30
- includes/gateways/functions.php +1 -1
- includes/gateways/offline-donations.php +10 -10
- includes/gateways/paypal-standard.php +2 -2
- includes/install.php +32 -9
- includes/misc-functions.php +208 -141
- includes/payments/class-give-payment.php +81 -82
- includes/payments/functions.php +4 -4
- includes/post-types.php +1 -1
- includes/price-functions.php +24 -2
- includes/process-donation.php +46 -49
assets/css/give-admin-rtl.css
CHANGED
@@ -806,7 +806,7 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
|
|
806 |
margin-left: -4px; }
|
807 |
|
808 |
.give-money-symbol-after {
|
809 |
-
margin-right: -
|
810 |
|
811 |
.give_options_panel input[type="text"] {
|
812 |
padding: 5px;
|
@@ -1069,7 +1069,7 @@ ASIDE
|
|
1069 |
|
1070 |
#give-metabox-form-data .give-metabox-tabs {
|
1071 |
margin: 0;
|
1072 |
-
|
1073 |
float: right;
|
1074 |
line-height: 1em;
|
1075 |
padding: 0 0 10px;
|
@@ -1118,7 +1118,7 @@ ASIDE
|
|
1118 |
display: block;
|
1119 |
position: absolute;
|
1120 |
bottom: 0;
|
1121 |
-
right:
|
1122 |
width: 170px;
|
1123 |
max-height: 250px;
|
1124 |
overflow-y: scroll; }
|
@@ -1712,37 +1712,6 @@ p.give-field-description, .cmb2-metabox-description {
|
|
1712 |
#give-download-sysinfo {
|
1713 |
margin: 0; }
|
1714 |
|
1715 |
-
.cmb2-id-api .cmb-td {
|
1716 |
-
padding: 0; }
|
1717 |
-
|
1718 |
-
.cmb2-id-api table th {
|
1719 |
-
padding: 10px 8px; }
|
1720 |
-
|
1721 |
-
.cmb2-id-api .give-ajax-user-search {
|
1722 |
-
padding: 3px 5px; }
|
1723 |
-
|
1724 |
-
.give_user_search_wrap {
|
1725 |
-
position: relative;
|
1726 |
-
overflow: visible; }
|
1727 |
-
|
1728 |
-
.give_user_search_results {
|
1729 |
-
position: absolute;
|
1730 |
-
right: 0;
|
1731 |
-
top: 27px;
|
1732 |
-
z-index: 100; }
|
1733 |
-
.give_user_search_results a.give-ajax-user-cancel {
|
1734 |
-
position: absolute;
|
1735 |
-
left: 6px;
|
1736 |
-
top: 2px; }
|
1737 |
-
.give_user_search_results ul {
|
1738 |
-
padding: 10px 10px 4px;
|
1739 |
-
margin: 0;
|
1740 |
-
background: #f0f0f0;
|
1741 |
-
border: 1px solid #DFDFDF;
|
1742 |
-
width: 300px;
|
1743 |
-
max-height: 200px;
|
1744 |
-
overflow-y: scroll; }
|
1745 |
-
|
1746 |
#api .tablenav .actions {
|
1747 |
overflow: visible; }
|
1748 |
|
@@ -2236,6 +2205,21 @@ input.give-price-field {
|
|
2236 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
2237 |
padding-top: 0; }
|
2238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2239 |
/**
|
2240 |
* Give Admin Dashboard SCSS
|
2241 |
*
|
806 |
margin-left: -4px; }
|
807 |
|
808 |
.give-money-symbol-after {
|
809 |
+
margin-right: -5px; }
|
810 |
|
811 |
.give_options_panel input[type="text"] {
|
812 |
padding: 5px;
|
1069 |
|
1070 |
#give-metabox-form-data .give-metabox-tabs {
|
1071 |
margin: 0;
|
1072 |
+
max-width: 170px;
|
1073 |
float: right;
|
1074 |
line-height: 1em;
|
1075 |
padding: 0 0 10px;
|
1118 |
display: block;
|
1119 |
position: absolute;
|
1120 |
bottom: 0;
|
1121 |
+
right: 166px;
|
1122 |
width: 170px;
|
1123 |
max-height: 250px;
|
1124 |
overflow-y: scroll; }
|
1712 |
#give-download-sysinfo {
|
1713 |
margin: 0; }
|
1714 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1715 |
#api .tablenav .actions {
|
1716 |
overflow: visible; }
|
1717 |
|
2205 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
2206 |
padding-top: 0; }
|
2207 |
|
2208 |
+
.give-select-chosen .spinner {
|
2209 |
+
position: absolute;
|
2210 |
+
left: 5px;
|
2211 |
+
top: 2px;
|
2212 |
+
z-index: 999; }
|
2213 |
+
|
2214 |
+
.give-select-chosen-ajax .spinner {
|
2215 |
+
visibility: visible; }
|
2216 |
+
|
2217 |
+
.give-select-chosen-ajax .chosen-search input[type="text"] {
|
2218 |
+
background-image: none !important; }
|
2219 |
+
|
2220 |
+
.give-select-chosen-ajax.chosen-container-single .chosen-search input[type="text"] {
|
2221 |
+
background-image: none !important; }
|
2222 |
+
|
2223 |
/**
|
2224 |
* Give Admin Dashboard SCSS
|
2225 |
*
|
assets/css/give-admin-rtl.min.css
CHANGED
@@ -6,4 +6,4 @@
|
|
6 |
* @subpackage: SCSS/Admin
|
7 |
* @copyright: Copyright (c) 2016, WordImpress
|
8 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
-
*/#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;right:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:rtl;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:right;word-wrap:break-word}.qtip-titlebar{padding:5px 10px 5px 35px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;left:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{left:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:rtl}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,right top,right bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,right top,right bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:-4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:-4px 4px 5px rgba(0,0,0,.4);box-shadow:-4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 10px 0 35px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,right top,right bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{left:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:left;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;height:100%;width:100%;right:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;right:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 0 0 5px}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-left:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 12px 20px 1px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-left:0;margin-right:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-left:0;margin-left:-4px}.give-money-symbol-after{margin-right:-1px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-right:8px}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:right;border-bottom:none;padding-left:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:right;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-right:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:left}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-left:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-left:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 11px 12px 14px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}input.shortcode-input{width:100%}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{padding-right:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 162px 1em 20px!important;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:right;width:135px;padding:0;margin:2px -150px 0 0;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-left:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:left;width:36px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:right!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#give-metabox-form-data .give-metabox-tabs{margin:0;min-width:170px;float:right;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-left:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;right:0;background-color:#fafafa;border-left:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;right:170px;width:170px;max-height:250px;overflow-y:scroll}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-left:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span{display:none}#give-metabox-form-data .give_options_panel{padding-right:40px}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}.give-docs-link{text-align:left;margin-left:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:right;margin:0 0 1em 1em!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;right:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-right:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-right:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:right}#give-dashboard-widgets-wrap #give-date-range-options>span{float:right;line-height:30px;font-style:italic;padding:0 0 0 5px}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:left}#give-graphs-filter .tablenav{margin:0 17px 0 0}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-right:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-left:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:right}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:left;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:right}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-left:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h3.reports-earnings-title,body.give_forms_page_give-reports h3.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-left:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px -11px -16px 0;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px 0 8px -12px}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 0 5px 5px;box-sizing:border-box;float:right;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;left:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-left:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:left}#give-logs-filter .tablenav.top{float:right;clear:none;margin-top:0}.welcome-h1{margin-left:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;left:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:right}.feature-section div.last-feature{margin-left:0;margin-right:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 0 10px 20px}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px -5px 20px 0;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 5px 4px 10px;padding:1px 12px;border-right:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 15px 0 0}.give-radio-inline li:first-child{margin-right:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;right:-10px;top:-10px}.give-image-thumb img{max-width:400px;border:4px solid #fff}.cmb-type-give-title label,.give-setting-tab-header h2{float:right;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 0 0 4px;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}.cmb2-id-api .cmb-td{padding:0}.cmb2-id-api table th{padding:10px 8px}.cmb2-id-api .give-ajax-user-search{padding:3px 5px}.give_user_search_wrap{position:relative;overflow:visible}.give_user_search_results{position:absolute;right:0;top:27px;z-index:100}.give_user_search_results a.give-ajax-user-cancel{position:absolute;left:6px;top:2px}.give_user_search_results ul{padding:10px 10px 4px;margin:0;background:#f0f0f0;border:1px solid #DFDFDF;width:300px;max-height:200px;overflow-y:scroll}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 10px 0 0;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 1.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:1.5% center;outline:0;background-size:16px;width:100%}.give-settings-page{margin-top:20px}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:right;width:30.5%;min-height:180px;margin:20px 0 20px 1%}.give-settings-page .give-license-key label{margin:0 10px 0 0;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;left:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-right:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;left:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:right;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;left:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:right;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-right:5px}#give-payments-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:right}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-left:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-right:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-payment-fees .fee-label{font-weight:400;color:#666}.give-admin-box .right{float:left}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-left:10px}#give-donation-overview th{text-align:right}#give-donation-overview .give-select-chosen{width:196px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-left:0}#give-edit-order-form .column .description{padding-left:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:left;min-width:200px}#give-donation-overview ul li.remove{text-align:left}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-left:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-left:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 0 0 3px}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{float:right;margin:0}.give_forms_page_give-donors .tablenav.top{float:left;clear:none}#give-customer-card-wrapper{margin-right:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 0 15px 15px;text-align:center;float:right}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-left:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-left:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;left:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-left:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{right:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:right;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:right}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-right:2px!important}}.mce-primary.mce-give-primary button{padding-left:10px;padding-right:10px}.wp-core-ui .give-admin-button{padding-right:7px;padding-left:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-left:10px;padding-right:10px}.mce-sc-popup a{text-decoration:underline}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-right:5px;margin-left:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-left:4px solid transparent;border-right:4px solid transparent;margin:0 6px 0 3px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-left:5px}div.sc-menu{display:none;position:absolute;top:100%;right:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-top:1em}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}
|
6 |
* @subpackage: SCSS/Admin
|
7 |
* @copyright: Copyright (c) 2016, WordImpress
|
8 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
+
*/#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;right:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:rtl;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:right;word-wrap:break-word}.qtip-titlebar{padding:5px 10px 5px 35px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;left:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{left:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:rtl}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:-1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,right top,right bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,right top,right bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:-4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:-4px 4px 5px rgba(0,0,0,.4);box-shadow:-4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 10px 0 35px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,right top,right bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{left:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:left;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;height:100%;width:100%;right:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;right:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 0 0 5px}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-right:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-left:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 12px 20px 1px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-left:0;margin-right:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-left:0;margin-left:-4px}.give-money-symbol-after{margin-right:-5px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-right:8px}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:right;border-bottom:none;padding-left:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:right;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-right:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:left}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-left:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-left:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 11px 12px 14px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}input.shortcode-input{width:100%}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{padding-right:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 162px 1em 20px!important;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:right;width:135px;padding:0;margin:2px -150px 0 0;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-left:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:left;width:36px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:right!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:right;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-left:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;right:0;background-color:#fafafa;border-left:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;right:166px;width:170px;max-height:250px;overflow-y:scroll}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-left:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span{display:none}#give-metabox-form-data .give_options_panel{padding-right:40px}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}.give-docs-link{text-align:left;margin-left:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:right;margin:0 0 1em 1em!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;right:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-right:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-right:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:right}#give-dashboard-widgets-wrap #give-date-range-options>span{float:right;line-height:30px;font-style:italic;padding:0 0 0 5px}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:left}#give-graphs-filter .tablenav{margin:0 17px 0 0}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-right:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-left:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:right}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:left;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:right}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-left:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h3.reports-earnings-title,body.give_forms_page_give-reports h3.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-left:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px -11px -16px 0;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px 0 8px -12px}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 0 5px 5px;box-sizing:border-box;float:right;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;left:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-left:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:left}#give-logs-filter .tablenav.top{float:right;clear:none;margin-top:0}.welcome-h1{margin-left:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;left:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:right}.feature-section div.last-feature{margin-left:0;margin-right:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 0 10px 20px}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px -5px 20px 0;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 5px 4px 10px;padding:1px 12px;border-right:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 15px 0 0}.give-radio-inline li:first-child{margin-right:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;right:-10px;top:-10px}.give-image-thumb img{max-width:400px;border:4px solid #fff}.cmb-type-give-title label,.give-setting-tab-header h2{float:right;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 0 0 4px;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 10px 0 0;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 1.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:1.5% center;outline:0;background-size:16px;width:100%}.give-settings-page{margin-top:20px}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:right;width:30.5%;min-height:180px;margin:20px 0 20px 1%}.give-settings-page .give-license-key label{margin:0 10px 0 0;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;left:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-right:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;left:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:right;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;left:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:right;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-right:5px}#give-payments-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:right}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-left:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-right:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-payment-fees .fee-label{font-weight:400;color:#666}.give-admin-box .right{float:left}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-left:10px}#give-donation-overview th{text-align:right}#give-donation-overview .give-select-chosen{width:196px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-left:0}#give-edit-order-form .column .description{padding-left:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:left;min-width:200px}#give-donation-overview ul li.remove{text-align:left}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-left:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;left:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-left:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 0 0 3px}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{float:right;margin:0}.give_forms_page_give-donors .tablenav.top{float:left;clear:none}#give-customer-card-wrapper{margin-right:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 0 15px 15px;text-align:center;float:right}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-left:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-left:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;left:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-left:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{right:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:right;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:right}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-right:2px!important}}.mce-primary.mce-give-primary button{padding-left:10px;padding-right:10px}.wp-core-ui .give-admin-button{padding-right:7px;padding-left:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-left:10px;padding-right:10px}.mce-sc-popup a{text-decoration:underline}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-right:5px;margin-left:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-left:4px solid transparent;border-right:4px solid transparent;margin:0 6px 0 3px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-left:5px}div.sc-menu{display:none;position:absolute;top:100%;right:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-top:1em}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}
|
assets/css/give-admin.css
CHANGED
@@ -806,7 +806,7 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
|
|
806 |
margin-right: -4px; }
|
807 |
|
808 |
.give-money-symbol-after {
|
809 |
-
margin-left: -
|
810 |
|
811 |
.give_options_panel input[type="text"] {
|
812 |
padding: 5px;
|
@@ -1069,7 +1069,7 @@ ASIDE
|
|
1069 |
|
1070 |
#give-metabox-form-data .give-metabox-tabs {
|
1071 |
margin: 0;
|
1072 |
-
|
1073 |
float: left;
|
1074 |
line-height: 1em;
|
1075 |
padding: 0 0 10px;
|
@@ -1118,7 +1118,7 @@ ASIDE
|
|
1118 |
display: block;
|
1119 |
position: absolute;
|
1120 |
bottom: 0;
|
1121 |
-
left:
|
1122 |
width: 170px;
|
1123 |
max-height: 250px;
|
1124 |
overflow-y: scroll; }
|
@@ -1713,37 +1713,6 @@ p.give-field-description, .cmb2-metabox-description {
|
|
1713 |
#give-download-sysinfo {
|
1714 |
margin: 0; }
|
1715 |
|
1716 |
-
.cmb2-id-api .cmb-td {
|
1717 |
-
padding: 0; }
|
1718 |
-
|
1719 |
-
.cmb2-id-api table th {
|
1720 |
-
padding: 10px 8px; }
|
1721 |
-
|
1722 |
-
.cmb2-id-api .give-ajax-user-search {
|
1723 |
-
padding: 3px 5px; }
|
1724 |
-
|
1725 |
-
.give_user_search_wrap {
|
1726 |
-
position: relative;
|
1727 |
-
overflow: visible; }
|
1728 |
-
|
1729 |
-
.give_user_search_results {
|
1730 |
-
position: absolute;
|
1731 |
-
left: 0;
|
1732 |
-
top: 27px;
|
1733 |
-
z-index: 100; }
|
1734 |
-
.give_user_search_results a.give-ajax-user-cancel {
|
1735 |
-
position: absolute;
|
1736 |
-
right: 6px;
|
1737 |
-
top: 2px; }
|
1738 |
-
.give_user_search_results ul {
|
1739 |
-
padding: 10px 10px 4px;
|
1740 |
-
margin: 0;
|
1741 |
-
background: #f0f0f0;
|
1742 |
-
border: 1px solid #DFDFDF;
|
1743 |
-
width: 300px;
|
1744 |
-
max-height: 200px;
|
1745 |
-
overflow-y: scroll; }
|
1746 |
-
|
1747 |
#api .tablenav .actions {
|
1748 |
overflow: visible; }
|
1749 |
|
@@ -2237,6 +2206,21 @@ input.give-price-field {
|
|
2237 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
2238 |
padding-top: 0; }
|
2239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2240 |
/**
|
2241 |
* Give Admin Dashboard SCSS
|
2242 |
*
|
806 |
margin-right: -4px; }
|
807 |
|
808 |
.give-money-symbol-after {
|
809 |
+
margin-left: -5px; }
|
810 |
|
811 |
.give_options_panel input[type="text"] {
|
812 |
padding: 5px;
|
1069 |
|
1070 |
#give-metabox-form-data .give-metabox-tabs {
|
1071 |
margin: 0;
|
1072 |
+
max-width: 170px;
|
1073 |
float: left;
|
1074 |
line-height: 1em;
|
1075 |
padding: 0 0 10px;
|
1118 |
display: block;
|
1119 |
position: absolute;
|
1120 |
bottom: 0;
|
1121 |
+
left: 166px;
|
1122 |
width: 170px;
|
1123 |
max-height: 250px;
|
1124 |
overflow-y: scroll; }
|
1713 |
#give-download-sysinfo {
|
1714 |
margin: 0; }
|
1715 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1716 |
#api .tablenav .actions {
|
1717 |
overflow: visible; }
|
1718 |
|
2206 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
2207 |
padding-top: 0; }
|
2208 |
|
2209 |
+
.give-select-chosen .spinner {
|
2210 |
+
position: absolute;
|
2211 |
+
right: 5px;
|
2212 |
+
top: 2px;
|
2213 |
+
z-index: 999; }
|
2214 |
+
|
2215 |
+
.give-select-chosen-ajax .spinner {
|
2216 |
+
visibility: visible; }
|
2217 |
+
|
2218 |
+
.give-select-chosen-ajax .chosen-search input[type="text"] {
|
2219 |
+
background-image: none !important; }
|
2220 |
+
|
2221 |
+
.give-select-chosen-ajax.chosen-container-single .chosen-search input[type="text"] {
|
2222 |
+
background-image: none !important; }
|
2223 |
+
|
2224 |
/**
|
2225 |
* Give Admin Dashboard SCSS
|
2226 |
*
|
assets/css/give-admin.min.css
CHANGED
@@ -6,4 +6,4 @@
|
|
6 |
* @subpackage: SCSS/Admin
|
7 |
* @copyright: Copyright (c) 2016, WordImpress
|
8 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
-
*/#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:ltr;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:left;word-wrap:break-word}.qtip-titlebar{padding:5px 35px 5px 10px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:ltr}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;height:100%;width:100%;left:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 5px 0 0}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-right:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 1px 20px 12px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-right:0;margin-left:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-right:0;margin-right:-4px}.give-money-symbol-after{margin-left:-1px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-left:8px}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:left;border-bottom:none;padding-right:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:left;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-left:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:right}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-right:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-right:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 14px 12px 11px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}input.shortcode-input{width:100%}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{padding-left:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 20px 1em 162px!important;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:left;width:135px;padding:0;margin:2px 0 0 -150px;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-right:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:right;width:36px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:left!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#give-metabox-form-data .give-metabox-tabs{margin:0;min-width:170px;float:left;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-right:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;left:0;background-color:#fafafa;border-right:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;left:170px;width:170px;max-height:250px;overflow-y:scroll}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-right:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span{display:none}#give-metabox-form-data .give_options_panel{padding-left:40px}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}.give-docs-link{text-align:right;margin-right:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;left:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-left:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-left:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:left}#give-dashboard-widgets-wrap #give-date-range-options>span{float:left;line-height:30px;font-style:italic;padding:0 5px 0 0}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:right}#give-graphs-filter .tablenav{margin:0 0 0 17px}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-left:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-right:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:left}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:right;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:left}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-right:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h3.reports-earnings-title,body.give_forms_page_give-reports h3.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-right:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px 0 -16px -11px;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px -12px 8px 0}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 5px 5px 0;box-sizing:border-box;float:left;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;right:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-right:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:right}#give-logs-filter .tablenav.top{float:left;clear:none;margin-top:0}.welcome-h1{margin-right:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;right:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:left}.feature-section div.last-feature{margin-right:0;margin-left:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 20px 10px 0}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px 0 20px -5px;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 10px 4px 5px;padding:1px 12px;border-left:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 0 0 15px}.give-radio-inline li:first-child{margin-left:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;left:-10px;top:-10px}.give-image-thumb img{max-width:400px;border:4px solid #fff}.cmb-type-give-title label,.give-setting-tab-header h2{float:left;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 4px 0 0;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}.cmb2-id-api .cmb-td{padding:0}.cmb2-id-api table th{padding:10px 8px}.cmb2-id-api .give-ajax-user-search{padding:3px 5px}.give_user_search_wrap{position:relative;overflow:visible}.give_user_search_results{position:absolute;left:0;top:27px;z-index:100}.give_user_search_results a.give-ajax-user-cancel{position:absolute;right:6px;top:2px}.give_user_search_results ul{padding:10px 10px 4px;margin:0;background:#f0f0f0;border:1px solid #DFDFDF;width:300px;max-height:200px;overflow-y:scroll}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 0 0 10px;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 98.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:98.5% center;outline:0;background-size:16px;width:100%}.give-settings-page{margin-top:20px}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:left;width:30.5%;min-height:180px;margin:20px 1% 20px 0}.give-settings-page .give-license-key label{margin:0 0 0 10px;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;right:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-left:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;right:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:left;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;right:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:left;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-left:5px}#give-payments-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:left}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-right:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-payment-fees .fee-label{font-weight:400;color:#666}.give-admin-box .right{float:right}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#give-donation-overview th{text-align:left}#give-donation-overview .give-select-chosen{width:196px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-right:0}#give-edit-order-form .column .description{padding-right:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:right;min-width:200px}#give-donation-overview ul li.remove{text-align:right}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-right:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 3px 0 0}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{float:left;margin:0}.give_forms_page_give-donors .tablenav.top{float:right;clear:none}#give-customer-card-wrapper{margin-left:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 15px 15px 0;text-align:center;float:left}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-right:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-right:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;right:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-right:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{left:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:left;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:left}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-left:2px!important}}.mce-primary.mce-give-primary button{padding-right:10px;padding-left:10px}.wp-core-ui .give-admin-button{padding-left:7px;padding-right:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-right:10px;padding-left:10px}.mce-sc-popup a{text-decoration:underline}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-left:5px;margin-right:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-right:4px solid transparent;border-left:4px solid transparent;margin:0 3px 0 6px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-right:5px}div.sc-menu{display:none;position:absolute;top:100%;left:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-top:1em}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}
|
6 |
* @subpackage: SCSS/Admin
|
7 |
* @copyright: Copyright (c) 2016, WordImpress
|
8 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
+
*/#qtip-overlay.blurs,.qtip-close{cursor:pointer}.give-clearfix:after,.type-download .addon-content:after{clear:both}.give-clearfix:after,.give-clearfix:before{content:" ";display:table}#give-payments-filter .give-payment-id,.give-item-label-gray{background-color:#929292}.give-item-label-orange{background-color:#ffba00}.give-item-label{padding:.2em .4em .3em;font-size:11px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.give-item-label:hover{color:#fff;text-decoration:none}.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:280px;min-width:50px;font-size:10.5px;line-height:12px;direction:ltr;box-shadow:none;padding:0}.qtip-content,.qtip-titlebar{position:relative;overflow:hidden}.qtip-content{padding:5px 9px;text-align:left;word-wrap:break-word}.qtip-titlebar{padding:5px 35px 5px 10px;border-width:0 0 1px;font-weight:700}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;z-index:11;outline:0;border:1px solid transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-icon .ui-icon,.qtip-titlebar .ui-icon{display:block;text-indent:-1000em;direction:ltr}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;line-height:14px;text-align:center;text-indent:0;font:normal 700 10px/13px Tahoma,sans-serif;color:inherit;background:-100em -100em no-repeat}.qtip-default{border:1px solid #F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-red,.qtip-red .qtip-icon,.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-bootstrap,.qtip-rounded,.qtip-tipsy{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-rounded .qtip-titlebar{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border:0 solid transparent;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,#000));background-image:-webkit-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,#000 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,#000 100%)}.qtip-youtube .qtip-titlebar{background-color:transparent}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #f1f1f1;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"}.qtip-jtools .qtip-content,.qtip-jtools .qtip-titlebar{background:0 0;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px #000}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10px;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10px}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:0 0}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}#qtip-overlay,#qtip-overlay div{top:0;height:100%;width:100%;left:0}.dashicons-give:before,[class*=" give-icon-"],[class^=give-icon-]{line-height:1;font-family:give-icomoon;font-style:normal;font-weight:400}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}#mce-modal-block.mce-reset.mce-fade.mce-in,#qtip-overlay div{opacity:.7;filter:alpha(opacity=70)}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,x:-o-prefocus{visibility:hidden}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml,.qtip .qtip-tip canvas{position:absolute;color:#123456;background:0 0;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed}#qtip-overlay div{position:absolute;background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}@font-face{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");font-weight:400;font-style:normal}[class*=" give-icon-"],[class^=give-icon-]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-icon-lamp:before{content:"\e603"}.give-icon-heart:before{content:"\e604"}.give-icon-question:before{content:"\e602"}.give-icon-info:before{content:"\e601"}.give-icon-new-tab:before{content:"\ea7e"}.give-icon-alert:before{content:"\f02d"}.give-icon-help:before{content:"\e606"}.give-icon-spinner:before{content:"\e605"}.give-icon-spinner2:before{content:"\e607"}.give-icon-plus:before{content:"\e040"}.give-icon-minus:before{content:"\e041"}.give-icon-locked:before{content:"\e600"}#dashboard_right_now .give-forms-count:before,.dashicons-give:before{font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;content:"\e800";speak:none;-moz-osx-font-smoothing:grayscale}.fa-spin{-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@font-face{font-family:give-icomoon;font-weight:400;font-style:normal}.give-metabox-tabs li .give-icon:before{font-family:give-icomoon;src:url(../assets/fonts/icomoon.eot?kdnr3d);src:url(../assets/fonts/icomoon.eot?kdnr3d#iefix) format("embedded-opentype"),url(../assets/fonts/icomoon.woff?kdnr3d) format("woff"),url(../assets/fonts/icomoon.svg?kdnr3d#icomoon) format("svg");speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:12px;vertical-align:top;line-height:20px;margin:0 5px 0 0}.give-metabox-tabs li .give-icon-default:before{content:"\e903"}.give-metabox-tabs li .give-icon-heart:before{content:"\e604"}.give-metabox-tabs li .give-icon-target:before{content:"\e901"}.give-metabox-tabs li .give-icon-display:before{content:"\e90c"}.give-metabox-tabs li .give-icon-edit:before{content:"\e902"}.give-metabox-tabs li .give-icon-checklist:before{position:relative;top:1px;content:"\e900"}.give-metabox-tabs li .give-icon-purse:before{content:"\e8df"}#_give_donation_levels_repeat .cmb-group-title,#_give_donation_levels_repeat .cmb-row>.cmb-remove-group-row,#_give_donation_levels_repeat .cmb-row>.handlediv,.cmb-type-levels-id,.cmb2-id--give-custom-amount-minimum,.cmb2-id--give-custom-amount-text,.cmb2-id--give-display-style,.cmb2-id--give-form-content,.cmb2-id--give-levels-header,.cmb2-id--give-levels-header+.cmb-repeat-group-wrap,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-reveal-label,.cmb2-id--give-set-price,.give-hidden,.post-type-give_forms .tablenav #post-query-submit{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row .cmb2-radio-list label{font-size:12px}div.cmb-type-levels-repeater-header+div.cmb-repeat-group-wrap{padding:0!important;margin:0!important;min-width:100%;max-width:0}.cmb2-id--give-levels-header{padding:10px 12px 0!important;margin:0!important;background:#F7F7F7;border-bottom:none!important}.cmb2-id--give-levels-header .table-container{display:table;width:100%;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;border-left:1px solid #e9e9e9}.cmb2-id--give-levels-header .table-container>.table-row{display:table-row;background:#FCFCFC}.cmb2-id--give-levels-header .table-container>.table-row>.table-cell{display:table-cell;vertical-align:middle;padding:10px 15px;border-right:1px solid #e9e9e9}#_give_donation_levels_repeat .cmbhandle,.cmb2-id--give-levels-header .table-container>.table-row>.table-cell.col-id{display:none}#_give_donation_levels_repeat{background:#F7F7F7;padding:0 1px 20px 12px;box-sizing:border-box}#_give_donation_levels_repeat .cmb-row,#_give_donation_levels_repeat .inside{margin:0}#_give_donation_levels_repeat .cmb-remove-field-row{margin:3px 0 0}#_give_donation_levels_repeat .cmb-remove-field-row .button{height:25px;padding:0 3px}#_give_donation_levels_repeat .cmb-remove-field-row span.dashicons-no{line-height:1.15em}#_give_donation_levels_repeat .cmb-add-row{margin:12px 0 0}.give-time-field{width:65px}.give-money-field{width:75px;margin-right:0;margin-left:0}.give-money-symbol{border:1px solid #DDD;background:#FCFCFC;margin:0;font-size:14px;padding:5px 8px}.give-money-symbol-before{border-right:0;margin-right:-4px}.give-money-symbol-after{margin-left:-5px}.give_options_panel input[type=text]{padding:5px;width:100%}input.give-text-small,input.give-text_small{width:100px!important}input.give-text-medium,input.give-text_medium{width:200px!important}.give-underline{text-decoration:underline}.postbox-container .cmb-row{margin:0}.postbox-container .cmb-row .cmb-th label{padding-left:8px}@media only screen and (min-width:851px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{float:left;border-bottom:none;padding-right:10px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-th{display:none}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row>.cmb-td{float:left;width:100%}.cmb-type-give-default-radio-inline .cmb-td{margin-top:5px}}@media only screen and (min-width:851px) and (max-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{width:100%;padding-top:0}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-type-text-money{width:105px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list input.cmb2-text-money{width:65px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .give-multilevel-text-field{width:160px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list .cmb-type-radio-inline{margin-left:20px}.col-amount{width:70px}.col-text{width:140px}.col-sort{display:none!important}.give-money-field{width:55px}}@media only screen and (min-width:1201px){#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row{float:right}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-row{padding-right:20px}#_give_donation_levels_repeat>.cmb-repeatable-grouping .cmb-field-list>.cmb-remove-field-row.cmb-row{padding-right:0}.col-amount{width:93px}.col-text{width:195px}.col-sort{width:100px}.give-multilevel-text-field{width:205px}}@media only screen and (max-width:850px){div.cmb-type-levels-repeater-header{display:none!important}}.shortcode-wrap{margin:1px 14px 12px 11px}.shortcode-wrap label{margin:0 0 3px;display:block;cursor:default}#side-sortables .cmb-th label:after,.cmb2-id--give-agree-label,.cmb2-id--give-agree-text{display:none}.shortcode-wrap .shortcode-input{margin:0;width:100%}.cmb2-id--give-content-option,.cmb2-id--give-customize-offline-donations,.cmb2-id--give-goal-option,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-terms-option{border-bottom:none!important;margin:0!important}.cmb2-id--give-agree-label,.cmb2-id--give-form-content,.cmb2-id--give-offline-checkout-notes,.cmb2-id--give-offline-donation-enable-billing-fields-single,.cmb2-id--give-set-goal{border-top:1px solid #e9e9e9!important}input.shortcode-input{width:100%}#side-sortables .cmb2-id--give-show-register-form{padding:10px 0 0!important}#side-sortables .cmb2-wrap>.cmb-field-list>.cmb-row{padding-top:10px}#side-sortables .cmb-row .cmb2-metabox-description{padding-bottom:0}.cmb2-metabox-description{line-height:1.5;display:block}.give-tooltip{margin:0 3px;padding:0;font-size:14px;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear;color:rgba(51,51,51,.5);position:relative;top:1px}.give-tooltip:hover{color:#333}#give-metabox-form-data .inside{margin:0;padding:0}#give-metabox-form-data .give-metabox-panel-wrap{background:#fff;overflow:hidden}#give-metabox-form-data .give_options_panel{padding-left:170px}#give-metabox-form-data .give_options_panel .give-field-wrap{padding:1em 20px 1em 162px!important;margin:0;border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-field-wrap>label,#give-metabox-form-data .give_options_panel .give-field-wrap>span.give-field-label{float:left;width:135px;padding:0;margin:2px 0 0 -150px;line-height:18px;font-size:12px;font-weight:400}#give-metabox-form-data .give_options_panel .give-field-wrap .give-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-top:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-field-wrap ul{margin:0}#give-metabox-form-data .give_options_panel .give-field-wrap .mce-container iframe,#give-metabox-form-data .give_options_panel .give-field-wrap textarea{min-height:250px!important}#give-metabox-form-data .give_options_panel .give-field-wrap .wp-editor-wrap{display:inline-block;width:100%}#give-metabox-form-data .give_options_panel textarea.give-field{width:100%}#give-metabox-form-data .give_options_panel .give-field-wrap:hover .give-field-row-actions{display:block}#give-metabox-form-data .give_options_panel .give-field-wrap:last-child{border-bottom:0}#give-metabox-form-data .give_options_panel .give-inline-radio-fields li{display:inline-block;margin-right:15px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section{padding:10px;background:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeatable-fields-section-wrapper{width:100%;background-color:#fff;border-collapse:collapse}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row{border-bottom:15px solid #f5f5f5;background-color:#fff}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-template{display:none}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row:last-child{border-bottom:10px solid #f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-column{padding:0}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove{float:right;width:36px;height:36px;padding:0;display:block;text-align:center;line-height:34px;font-size:21px;font-weight:300;cursor:pointer}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-remove:hover{background-color:red;color:#fff;width:30px;height:30px;border-radius:30px;margin-top:3px;line-height:28px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head{border-bottom:1px solid #eee;cursor:move}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row-head h2{text-align:left!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.closed .toggle-indicator:before{content:"\f140"}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row-wrap{background-color:#f5f5f5}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-add-repeater-field-section-row{margin:5px}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-field-wrap:last-child{border-bottom:1px solid #eee}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-ui-placeholder-state-highlight{background-color:#68bb6c}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-name{border:0!important;padding:0!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-repeater-field-description{color:#aaa;font-size:12px;line-height:18px;display:block;padding-bottom:10px;font-style:italic}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .ui-sortable-helper{display:table!important}#give-metabox-form-data .give_options_panel .give-repeatable-field-section .give-row.ui-sortable-helper{border-bottom:0}#give-metabox-form-data .give-metabox-tabs{margin:0;max-width:170px;float:left;line-height:1em;padding:0 0 10px;position:relative;background-color:#fafafa;border-right:1px solid #eee;box-sizing:border-box}#give-metabox-form-data .give-metabox-tabs:after{content:"";display:block;width:100%;height:9999em;position:absolute;bottom:-9999em;left:0;background-color:#fafafa;border-right:1px solid #eee}#give-metabox-form-data .give-metabox-tabs li{margin:0;padding:0;display:block;position:relative}#give-metabox-form-data .give-metabox-tabs li a{margin:0;padding:10px;display:block;box-shadow:none;text-decoration:none;line-height:20px!important;border-bottom:1px solid #eee;overflow:hidden}#give-metabox-form-data .give-metabox-tabs li a span.give-label{width:122px;display:inline-block}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li{background-color:#f1f1f1}#give-metabox-form-data .give-metabox-tabs .give-metabox-sub-tabs li a{border-bottom-color:#e5e5e5}#give-metabox-form-data .give-metabox-tabs li.active>a{color:#555;position:relative;background-color:#eee}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields.active>a{background-color:#ddd}#give-metabox-form-data .give-metabox-tabs li.has-sub-fields:not(.active):hover ul.give-metabox-sub-tabs{display:block;position:absolute;bottom:0;left:166px;width:170px;max-height:250px;overflow-y:scroll}@media only screen and (min-width:851px) and (max-width:1025px),(max-width:550px){#give-metabox-form-data ul.give-metabox-tabs{min-width:40px}#give-metabox-form-data ul.give-metabox-tabs li>a{text-align:center}#give-metabox-form-data ul.give-metabox-tabs li>a:before{margin-right:0;font-size:15px}#give-metabox-form-data ul.give-metabox-tabs li>a span{display:none}#give-metabox-form-data .give_options_panel{padding-left:40px}}#give-export-payments .give_forms_categories,#give-export-payments .give_forms_tags{min-width:250px;margin:0 0 10px;display:block}#give-export-payments .give_forms_categories input,#give-export-payments .give_forms_tags input{color:#999}#give-export-payments div.chosen-container:first-of-type{margin-top:10px}.give-docs-link{text-align:right;margin-right:15px}.give-docs-link a{color:#999;text-decoration:none;font-style:italic}.give-docs-link a:hover{color:#0073aa}.give-docs-link a span{font-style:normal}.type-download{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:280px;text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:365px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:relative}.type-download:hover{border:1px solid #d1d1d1}.type-download>.featured-img img{border-bottom:1px solid #ddd}.type-download .addon-content{padding:15px 20px}.type-download .addon-content:after,.type-download .addon-content:before{content:" ";display:table}.type-download .addon-content .addon-heading{margin:0 0 10px}.type-download .addon-content .addon-heading a{outline:0;text-decoration:none}.type-download .addon-footer-wrap{border-top:1px solid #ddd;position:absolute;bottom:2px;left:0;width:100%;background-color:#FFF;padding:15px 20px}.give-view-addons-all span.dashicons,.type-download span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.give-view-addons-all span.dashicons{margin-left:3px}#give-dashboard-widgets-wrap .inside{padding-top:0;padding-bottom:0}.give_forms_page_give-reports #give-dashboard-widgets-wrap .inside{padding-left:0}#give-dashboard-widgets-wrap .inside #give-graphs-filter{float:none}#give-dashboard-widgets-wrap .postbox{margin-bottom:10px}#give-dashboard-widgets-wrap table.reports-table{clear:none}#give-dashboard-widgets-wrap #give-date-range-options{float:left}#give-dashboard-widgets-wrap #give-date-range-options>span{float:left;line-height:30px;font-style:italic;padding:0 5px 0 0}#give-graphs-filter,body.give_forms_page_give-payment-history .tablenav-right .tablenav-pages,body.give_forms_page_give-reports .tablenav-right .tablenav-pages{float:right}#give-graphs-filter .tablenav{margin:0 0 0 17px}#give-graphs-filter .tablenav .actions{padding:0}.give-graph .y1Axis{color:#66bb6a!important}.give-graph .y2Axis{color:#546e7a!important}body.give_forms_page_give-payment-history h1.nav-tab-wrapper,body.give_forms_page_give-payment-history h2.nav-tab-wrapper,body.give_forms_page_give-reports h1.nav-tab-wrapper,body.give_forms_page_give-reports h2.nav-tab-wrapper{margin-bottom:10px}body.give_forms_page_give-payment-history .actions,body.give_forms_page_give-reports .actions{padding-top:0}body.give_forms_page_give-payment-history .pagination-links,body.give_forms_page_give-reports .pagination-links{margin-left:10px}body.give_forms_page_give-payment-history p.donor-search,body.give_forms_page_give-reports p.donor-search{margin-right:10px}body.give_forms_page_give-payment-history .tablenav-right #give-reports-view,body.give_forms_page_give-reports .tablenav-right #give-reports-view{margin-top:0}body.give_forms_page_give-payment-history .tablenav-right .actions,body.give_forms_page_give-payment-history p.search-box,body.give_forms_page_give-reports .tablenav-right .actions,body.give_forms_page_give-reports p.search-box{float:left}body.give_forms_page_give-payment-history .reports-table-nav.tablenav.top,body.give_forms_page_give-reports .reports-table-nav.tablenav.top{width:100%;float:none;margin:0 0 10px}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top,body.give_forms_page_give-reports .reports-forms-details-wrap.top{float:right;overflow:hidden}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top #give-reports-filter,body.give_forms_page_give-reports .reports-forms-details-wrap.top #give-reports-filter{float:left}body.give_forms_page_give-payment-history .reports-forms-details-wrap.top>.actions,body.give_forms_page_give-reports .reports-forms-details-wrap.top>.actions{padding-right:0}body.give_forms_page_give-payment-history .tablenav.bottom,body.give_forms_page_give-reports .tablenav.bottom{margin-top:10px}body.give_forms_page_give-payment-history h3.reports-earnings-title,body.give_forms_page_give-reports h3.reports-earnings-title{margin:7px 0 0}body.give_forms_page_give-payment-history .reports-views-wrap,body.give_forms_page_give-reports .reports-views-wrap{padding:3px 0 0}body.give_forms_page_give-payment-history .wrap.give-reports-donors-wrap,body.give_forms_page_give-reports .wrap.give-reports-donors-wrap{margin-right:0;margin-bottom:10px}body.give_forms_page_give-payment-history .widefat tbody td,body.give_forms_page_give-payment-history .widefat tbody th,body.give_forms_page_give-reports .widefat tbody td,body.give_forms_page_give-reports .widefat tbody th{padding-top:12px;padding-bottom:12px}body.give_forms_page_give-reports table.export-options-table tbody td{padding:20px 12px;vertical-align:top}#test-payment-label,.give-mobile-link,table.give-table td{vertical-align:middle}body.give_forms_page_give-reports table.export-options-table .give-export-form{position:relative}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap{background-color:transparent;padding:12px 12px 4px;margin:2px 0 -16px -11px;overflow:auto}body.give_forms_page_give-reports table.export-options-table .give-export-form .notice-wrap .spinner{margin:-2px -12px 8px 0}body.give_forms_page_give-reports table.export-options-table span#give-end-wrap input,body.give_forms_page_give-reports table.export-options-table span#give-start-wrap input{width:100px}#export-donor-options-wrap p{padding:20px 0 0;margin:0;font-weight:700}#export-donor-options-wrap ul{max-width:900px;overflow:hidden}#export-donor-options-wrap ul li{margin:0;padding:0 5px 5px 0;box-sizing:border-box;float:left;width:33%}#give-tools-recount-form .notice-wrap{position:relative;min-height:25px;margin:10px -12px -12px;background:#EFEFEF;padding:10px 12px 12px;border-top:1px solid #E5E5E5}#give-tools-recount-form .notice-wrap .give-progress{position:absolute;top:15px}#give-tools-recount-form .notice-wrap .spinner{position:absolute;right:14px;top:13px;margin:0}#give-tools-recount-form .notice-wrap #give-batch-success{margin-bottom:6px}.give-progress{height:15px;width:95%;border-radius:4px;overflow:hidden}.give-progress>div{height:100%;width:0}.admin-color-fresh .give-export-form .give-progress div,.give-export-form .give-progress div{background:#0073aa}.admin-color-light .give-export-form .give-progress div{background:#888}.admin-color-blue .give-export-form .give-progress div{background:#096484}.admin-color-coffee .give-export-form .give-progress div{background:#c7a589}.admin-color-ectoplasm .give-export-form .give-progress div{background:#a3b745}.admin-color-midnight .give-export-form .give-progress div{background:#e14d43}.admin-color-sunrise .give-export-form .give-progress div{background:#dd823b}.recount-stats-controls form{display:inline}.give-recount-stats-descriptions{margin:8px 0 0;display:block}.give-recount-stats-descriptions span{line-height:24px;font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0;display:none}.social-items-wrap,.social-items-wrap>div,.welcome-h1{display:inline-block}.gateways-report-tablenav .actions.bulkactions{padding-right:0}table.give-table td.row-title h3{margin:0 0 .4em;font-size:1.2em}table.give-table td.row-title p{font-size:13px;font-style:italic;font-weight:400;color:#aaa;margin:0}#give-graphs-filter>.tablenav{height:auto}#give-logs-filter .search-box{float:right}#give-logs-filter .tablenav.top{float:left;clear:none;margin-top:0}.welcome-h1{margin-right:15px!important}.about-wrap h3{margin:1.5em 0 .6em}.about-wrap img{border:none}.give-badge{padding-top:150px;height:52px;width:185px;color:#FFF;font-weight:700;font-size:14px;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.8);margin:0 -5px;position:absolute;top:0;right:0}.introduction{padding:0 0 20px;margin:0 0 20px}.feature-section{margin-top:40px}.feature-section span.dashicons{width:16px;height:16px;font-size:14px;margin:6px 0 0}.feature-section .feature-section-item{width:48%;float:left}.feature-section div.last-feature{margin-right:0;margin-left:4%}[class*=dashboard_page_give-] .about-text,[class^=dashboard_page_give-] .about-text{min-height:0}.social-items-wrap .twitter-item-wrap{margin:0 20px 10px 0}.wp-person img{border-radius:50%}.wp-person a.web{margin:17px 0 0;font-weight:700;font-style:italic}.newsletter-intro{font-size:13px;font-style:italic;color:#777}.give-newsletter-form-wrap{margin:10px 0 20px -5px;max-width:700px}.give-newsletter-form-wrap td{padding:3px}.give-newsletter-form-wrap div.give-newsletter-confirmation{background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 10px 4px 5px;padding:1px 12px;border-left:4px solid #7ad03a;display:none}.give-newsletter-form-wrap div.give-newsletter-confirmation>p{margin:.5em 0;padding:2px}#give_donor_export_form{margin:0 0 5px}.column-status .give-donation-status,.column-status .give-test-mode-transactions-label{display:inline-block}.column-status .give-test-mode-transactions-label{margin:0 5px;vertical-align:middle}.give-settings-page .nav-tab-wrapper{margin-bottom:5px;overflow:visible}.give-settings-page .cmb2-wrap .cmb-type-checkbox input[type=checkbox]{display:block;margin-bottom:5px}.give-settings-page div.give-submit-wrap{margin:20px 0}.give-settings-page .give_forms_page_give-payment-history .postbox .hndle{cursor:default}.give-settings-page .give-input-field{width:25em}.give-settings-page table table input[type=text]{width:15em}.give-setting-tab-header{clear:both;overflow:hidden;margin:30px 0}.give-setting-tab-header h2{margin-top:8px}.give-radio-inline ul{margin-top:0}.give-radio-inline li{display:inline-block;margin:0 0 0 15px}.give-radio-inline li:first-child{margin-left:0}.give-tools-setting-page .bulkactions{overflow:visible}.form-table td.give-radio-inline fieldset li>label{margin:5px 0 0!important}.cmb2-metabox-description,p.give-field-description{color:#aaa;font-style:italic;font-size:13px!important}.give-image-thumb{position:relative;margin-top:14px}.give-image-thumb span.give-delete-image-thumb{position:absolute;background:red;color:#fff;border-radius:30px;left:-10px;top:-10px}.give-image-thumb img{max-width:400px;border:4px solid #fff}.cmb-type-give-title label,.give-setting-tab-header h2{float:left;display:inline-block;width:220px;font-style:italic;color:#AAA;margin:0;font-size:14px}.postbox-container #_give_donation_levels_repeat>.cmb-repeatable-grouping:not(:last-of-type){border-bottom:1px solid #e9e9e9;border-top:none}.cmb-type-enabled-gateways .cmb-td>p:first-of-type{display:none}.cmb-type-checkbox .cmb-td{width:80%}.cmb-type-checkbox .cmb-td label{font-size:13px}.give_settings .cmb2-wrap .cmb-row{display:table-row}.give_settings .cmb2-wrap .cmb-row>.cmb-td,.give_settings .cmb2-wrap .cmb-row>.cmb-th{display:table-cell;float:none}.cmb2-id-give-title label{font-style:italic;color:#AAA;cursor:default}.cmb2-id-give-title>div.cmb-th{padding-bottom:10px}.cmb2-id-give-title>div.cmb-td{padding-bottom:5px}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle{padding:3px 4px 0 0;font-size:15px;font-weight:400;color:#bdbdbd;cursor:move}.give-payment-gatways-list li.ui-sortable-handle span.give-drag-handle:hover{color:#333}.give-email-tags-wrap{margin:5px 0 0}.give-email-tags-wrap code{font-style:normal;padding:1px 2px;font-size:12px}.give-email-tags-wrap span{display:block;color:#AAA;font-style:italic;margin:0 0 2px;font-size:13px}.give-email-tags-wrap .give_price_tag{display:none}#system-info-textarea{width:800px;height:600px;font-family:Menlo,Monaco,monospace;background:#FFF;white-space:pre;overflow:auto;display:block;direction:ltr}#give-download-sysinfo{margin:0}#api .tablenav .actions{overflow:visible}a.give-delete{color:#a00}.give-settings-wrap-licenses .give-license-deactivate{margin:1px 0 0 10px;height:30px}.give-settings-wrap-licenses .give-license-field{background:url(../images/close.png) 98.5% center no-repeat #FFF;background-size:18px}.give-settings-wrap-licenses .give-license-active,.give-settings-wrap-licenses .give-license-active:focus{background-image:url(../images/tick.png);background-color:#FFF;background-repeat:no-repeat;background-position:98.5% center;outline:0;background-size:16px;width:100%}.give-settings-page{margin-top:20px}.give-settings-page .give-settings-wrap-licenses{display:block;position:relative;float:left;width:30.5%;min-height:180px;margin:20px 1% 20px 0}.give-settings-page .give-license-key label{margin:0 0 0 10px;padding:10px 0;display:block;font-size:14px;font-weight:600;cursor:default}.give-settings-page .give-license-block{margin:0 10px}.give-settings-page input[type=text].give-license-field,.give-settings-page input[type=password].give-license-field{width:100%}.give-settings-page .give-license-block input[type=submit]{position:absolute;top:3px;right:10px;height:24px;line-height:22px;padding:0 8px 1px;font-size:11px}.give-settings-page .give-license-status-notice{background:#fff;border-left:4px solid #fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:1px 12px}.give-settings-page .give-license-status-notice p{padding:10px 0;margin:0}.give-settings-page .give-license-status-notice a{color:#444;cursor:pointer}.give-settings-page .give-license-status-notice a:hover{text-decoration:none}.give-settings-page .give-license-status-notice.give-license-expires-soon{border-color:#00a0d2}.give-settings-page .give-license-status-notice.give-inactive,.give-settings-page .give-license-status-notice.give-license-expired{border-color:#e24e4e}.give-settings-page .give-license-status-notice.give-license-error,.give-settings-page .give-license-status-notice.give-license-invalid,.give-settings-page .give-license-status-notice.give-license-item_name_mismatch,.give-settings-page .give-license-status-notice.give-license-missing,.give-settings-page .give-license-status-notice.give-license-no_activations_left,.give-settings-page .give-license-status-notice.give-license-site_inactive{border-color:orange}.give-settings-page .give-license-status-notice.give-license-expiration-date,.give-settings-page .give-license-status-notice.give-license-lifetime-notice{border-color:#46b450}.give-settings-page .give-license-status-notice.give-license-expired a:hover,.give-settings-page .give-license-status-notice.give-license-expires-soon a:hover{text-decoration:none}@media screen and (max-width:1100px){.give-settings-page .give-settings-wrap-licenses{width:45%;min-height:150px}}.give-table thead th{padding:8px 10px!important}.give_settings .cmb-td hr+hr{display:none}.post-type-give_forms .mce-container iframe,.post-type-give_forms .wp-editor-area{min-height:400px}.give-field-description{color:#aaa;font-style:italic;margin:0;padding-top:.5em}h2.give-nav-tab-wrapper{overflow:hidden;height:35px}@media screen and (max-width:600px){.give-settings-page .give-settings-wrap-licenses{width:100%;max-width:320px}.give-nav-tab-wrapper{position:relative;padding-top:0!important}.give-nav-tab-wrapper>a{width:100%;box-sizing:border-box;margin:0}.give-nav-tab-wrapper>a:hover{border-bottom:1px solid #ccc}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper{position:absolute;top:0;right:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav{height:28px;width:30px;border-radius:0;margin:0}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper #give-show-sub-nav>span.dashicons{margin:6px auto 0;display:block}.give-nav-tab-wrapper div.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{top:35px}}.give-sub-nav-tab-wrapper{position:relative;z-index:9999;float:left;display:none}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab{border:1px solid #ccc;border-bottom:0;position:absolute;top:32px;right:0}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a{float:left;background:#fff;padding:6px 10px;clear:both;text-decoration:none;border-bottom:1px solid #ccc;min-width:170px;color:#555;font-size:14px}.give-sub-nav-tab-wrapper nav.give-sub-nav-tab a:hover{background:#e5e5e5}#give-show-sub-nav{text-decoration:none;padding:3px 4px;border-bottom:1px solid #ccc;line-height:0;background:#fff;border-radius:4px;margin-top:5px}#give-show-sub-nav>span.dashicons{font-size:16px;height:16px;width:16px}#give-show-sub-nav:active,#give-show-sub-nav:hover{outline:0;box-shadow:inset 0 0 4px #ddd}#give-payment-filters,.give-submit-wrap{clear:both;background:#f5f5f5;border-color:#dfdfdf;overflow:auto;margin:8px 0;padding:12px;border-width:1px;border-style:solid;font-size:13px;line-height:2.1em}#give-payment-filters p{color:#777}#give-payment-filters ul.subsubsub{margin-bottom:8px}#give-payment-filters label{font-style:italic;margin:0 10px}#give-payment-filters label.give-start-date-label{margin-left:5px}#give-payments-filter ul.subsubsub{margin-bottom:12px}#give-payments-filter .tablenav.top{float:none}#give-payments-filter .tablenav.top .bulkactions{margin-top:1px;padding-top:0}#give-payments-filter .give-email-column-value{font-size:14px;font-weight:700}#give-payments-filter #the-list .check-column input{margin-top:1px}#give-payments-filter .column-details{width:50px}#give-payments-filter .column-amount{width:120px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.forms th#date{width:140px}.give-mobile-link{line-height:32px}.give-mobile-link img{max-width:80%;height:auto;float:left}.give-donation-status>span{display:inline-block;width:12px;height:12px;position:relative;top:1px;margin:0;padding:0;border-radius:50%;background:#888;line-height:16px}#give-payments-filter .give-payment-id,#test-payment-label{padding:.2em .4em .3em;font-size:11px;text-align:center;border-radius:.25em;color:#fff;white-space:nowrap}.give-donation-status.status-pending>span{background-color:#ffba00}.give-donation-status.status-complete>span,.give-donation-status.status-publish>span{background-color:#7ad03a}.give-donation-status.status-refunded>span{background-color:#777}.give-donation-status.status-failed>span{background-color:#a00}.give-donation-status.status-abandoned>span{background-color:#333}.give-donation-status.status-revoked>span{background-color:#d9534f}.give-donation-status.status-give_subscription>span,.give-donation-status.status-renewal>span,.give-donation-status.status-subscription>span{background-color:#5bc0de}#test-payment-label{line-height:1;background-color:#ffba00;margin:0 15px}#test-payment-label:hover{color:#fff;text-decoration:none}#give-payments-filter .give-payment-id{line-height:1;vertical-align:baseline;font-weight:400}.give-admin-box .label,.give-admin-box-inside .strong{font-weight:600}#give-payments-filter .give-payment-id:hover{color:#fff;text-decoration:none}#give-payments-filter .column-details{padding-right:30px}#give-payments-filter .give-donation-status{display:inline-block}#give-order-update .give-donation-status{display:inline-block;float:none;margin:0 10px;position:relative;top:3px}.column-donation_form .donation-level-text-wrap{font-style:italic;display:block}@media handheld,only screen and (max-width:640px){.wp-list-table.forms th{width:auto!important}}.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}.give-admin-box-inside{margin:0;padding:3px 10px;clear:both;border-bottom:1px solid #eee}.give-payment-fees .fee-label{font-weight:400;color:#666}.give-admin-box .right{float:right}#give-order-details .inside,#give-order-update .inside{margin:0;padding:0}#give-order-update input.give_datepicker{width:180px}#give-order-update input[type=number].give-payment-time-hour,#give-order-update input[type=number].give-payment-time-min{width:50px}.give-admin-box-inside:last-child{border-bottom:0}#give-edit-order-form .data-payment-key{word-break:break-all}.give-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#give-donation-overview th{text-align:left}#give-donation-overview .give-select-chosen{width:196px}#give-donation-overview ul,#give-donor-details .order-data-address input,#give-donor-details .order-data-column p.data input,#give-edit-order-form .column input,#give-order-address-country-wrap select{clear:both;display:block}.give-order-data input.small-text{margin:0}#give-order-update span.label{display:inline;width:50px}.give-order-update-box .button-primary{margin-right:0}#give-edit-order-form .column .description{padding-right:10px}#give-donation-overview .inside>ul>li,#give-donation-overview .row>ul>li,#give-edit-order-form .column{display:inline-block;position:relative;vertical-align:top}#give-donation-overview ul{font-size:0}#give-donation-overview ul li{font-size:13px}#give-donation-overview ul li.actions{text-align:right;min-width:200px}#give-donation-overview ul li.remove{text-align:right}#give-donation-overview ul .row{padding:12px;border-bottom:1px solid #eee}#give-order-data .data span{color:#666;font-weight:600}input.give-price-field{width:80px;padding:3px 5px}.give_forms_page_give-payment-history.js .postbox .hndle{cursor:default}#give-payment-notes textarea{min-height:150px}#give-payment-notes #give-add-payment-note{margin:6px 0 15px}#give-billing-details .column>div{margin:0 0 10px}#give-billing-details label{display:block}#give-billing-details .column-container{padding:5px 0 10px}#give-billing-details input[type=text]{width:95%}#give-billing-details .chosen-container{width:98%!important}@media screen and (min-width:1200px){#give-edit-order-form .column{width:33%}#give-donation-overview.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1199px){#give-edit-order-form .column{width:49%}}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}#give-donation-overview .inside,#give-donor-details .inside{margin-top:0}.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables{padding-top:0}.give-select-chosen .spinner{position:absolute;right:5px;top:2px;z-index:999}.give-select-chosen-ajax .spinner{visibility:visible}.give-select-chosen-ajax .chosen-search input[type=text],.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=text]{background-image:none!important}.give-dashboard-widget .give-dashboard-today{text-align:center}.give-dashboard-widget .give-dashboard-today .give-dashboard-date-today{margin:10px 0 0;padding:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-happy-day{padding:3px;margin:0}.give-dashboard-widget .give-dashboard-today .give-dashboard-today-earnings{font-size:42px;color:#4ead61;font-weight:700;margin:15px 0 0;line-height:1}.give-dashboard-widget .give-dashboard-today .give-donations-today{font-size:18px;font-weight:700;margin:0 0 30px;padding:4px 0 1px}.give-dashboard-widget .give-dashboard-today .give-last-seven{font-size:14px;font-weight:700;padding:0;margin:0 0 30px}.give-dashboard-widget .give-table-stats{width:100%;text-align:center;margin:0;table-layout:fixed;border-top:1px solid #ececec;border-spacing:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total,.give-dashboard-widget .give-table-stats .give-dashboard-stat-total-label{padding:0;margin:0}.give-dashboard-widget .give-table-stats .give-dashboard-stat-total{color:#4ead61;font-weight:700;font-size:16px}#give_dashboard_sales>.inside{padding:0}#give_dashboard_sales .give-table-stats td{padding:10px 0}#give_dashboard_sales .give-table-stats td:first-of-type{border-right:1px solid #ececec}#give_dashboard_sales .give-table-stats tr#give-table-stats-tr-1 td{border-bottom:1px solid #ececec}#dashboard_right_now .give-forms-count:before{font-family:give-icomoon;font-style:normal;font-weight:400;line-height:1;font-size:18px;width:18px;height:18px}.give_forms_page_give-donors .wrap>h2{margin-bottom:15px}.give_forms_page_give-donors .nav-tab-wrapper .dashicons{position:relative;top:2px;margin:0 3px 0 0}.give_forms_page_give-donors #give-donors-filter{position:relative}.give_forms_page_give-donors #give-donors-filter p.search-box{float:left;margin:0}.give_forms_page_give-donors .tablenav.top{float:right;clear:none}#give-customer-card-wrapper{margin-left:-1px;z-index:2;min-height:200px}#give-customer-card-wrapper input{font-weight:400}#give-customer-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px}#give-customer-card-wrapper .customer-section table{margin-bottom:0}#give-customer-card-wrapper>div:first-child{padding-top:20px}#give-customer-card-wrapper>div:last-child{padding-bottom:20px;border:none}#give-customer-card-wrapper .avatar-wrap{padding:0 15px 15px 0;text-align:center;float:left}#give-customer-card-wrapper .avatar-wrap img{border-radius:3px}#give-customer-card-wrapper a.delete{text-decoration:none;color:red;margin-right:5px}#give-customer-card-wrapper .donor-bio-header .customer-since{margin:10px 0;font-size:16px}#give-customer-card-wrapper .donor-bio-header .customer-id{display:inline-block;font-size:24px;font-weight:600;margin-right:10px}#give-customer-card-wrapper .donor-bio-header .customer-name-wrap{display:inline-block}#give-customer-card-wrapper .donor-bio-header .customer-edit-link{margin-bottom:15px}.customer-main-wrapper{clear:both;margin:0 0 20px}@media (max-width:655px){.customer-main-wrapper{width:100%}}.customer-main-wrapper table{margin:0}.customer-main-wrapper input{width:200px}#donor-summary{padding:0 20px}#donor-summary:after{font-family:dashicons;content:"\f110";position:absolute;top:10px;right:10px;font-size:100px;color:#F0F0F0;z-index:0}.sc-wrap,button.sc-button:after{position:relative;display:inline-block}#give-customer-card-wrapper .customer-address-wrapper{width:202px}#give-customer-card-wrapper .customer-address-wrapper select,#give-customer-card-wrapper .give_user_search_results ul{width:200px}#give-customer-card-wrapper .customer-address-wrapper span[data-key=line2]{display:table;clear:both}#give-customer-card-wrapper .customer-info{min-height:185px}#give-customer-card-wrapper .info-wrapper{min-height:125px}.customer-info .customer-name{font-size:24px;font-weight:600}.disconnect-user a{font-size:12px;font-weight:400;text-decoration:none}#customer-edit-actions{text-align:center;margin-bottom:20px;line-height:28px}#customer-edit-actions .button-secondary{margin-right:10px}#give-customer-card-wrapper .edit-item{display:none}#give-customer-card-wrapper .give_user_search_results{left:1px;top:16px}#customer-stats-wrapper{margin:0 auto;text-align:center;padding:15px}#customer-stats-wrapper ul{margin:0;padding:0;overflow:hidden}#customer-stats-wrapper ul li{width:50%;float:left;line-height:22px;font-size:14px;margin:0}#customer-stats-wrapper a{text-decoration:none}#customer-stats-wrapper .dashicons{color:#888}#customer-tables-wrapper table{width:100%;text-align:center}#customer-tables-wrapper th{text-align:center}#customer-tables-wrapper .donations tr>td:first-child,#customer-tables-wrapper .donations tr>th:first-child,#customer-tables-wrapper .emails tr>td:first-child,#customer-tables-wrapper .emails tr>th:first-child{text-align:left}#customer-tables-wrapper .donations tr>td:only-child,.delete-customer{text-align:center}#customer-notes-wrapper{min-height:50px}.customer-notes-header img,.customer-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{width:100%;margin-bottom:5px}#give-customer-notes div:nth-of-type(even){background-color:#f9f9f9}#give-customer-notes .customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:0}#give-customer-notes .customer-note-wrapper .note-content-wrap{padding:10px 12px;line-height:20px;font-size:14px}#give-customer-notes .give-no-customer-notes{text-align:center;padding:20px}.customer-note-wrapper span{display:block}@media screen and (max-width:782px){#wp-content-media-buttons a.give-thickbox{padding:6px 14px;line-height:normal;font-size:14px;height:auto}.wp-media-buttons span#give-media-button{margin-top:0!important;margin-left:2px!important}}.mce-primary.mce-give-primary button{padding-right:10px;padding-left:10px}.wp-core-ui .give-admin-button{padding-left:7px;padding-right:7px}.give-admin-button-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}.give-admin-button-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.give-admin-button-icon-update:before{content:"\f463"}.mce-primary.mce-sc-primary button{padding-right:10px;padding-left:10px}.mce-sc-popup a{text-decoration:underline}.mce-sc-popup p{margin-bottom:1em}.mce-sc-popup p.strong{font-weight:600}.mce-sc-popup p.no-margin{margin-bottom:0}.mce-sc-popup p.margin-top{margin-top:1em}.mce-sc-popup .mce-listbox button{text-overflow:ellipsis;overflow:hidden!important}@media screen and (max-width:782px){.wp-media-buttons button.sc-button span{width:18px!important}}.wp-media-buttons button.sc-button{outline:0;padding-left:5px;margin-right:0}.wp-media-buttons button.sc-button:active{margin-bottom:5px}button.sc-button:after{top:-1px;content:'';width:0;height:0;border-top:6px solid #777;border-right:4px solid transparent;border-left:4px solid transparent;margin:0 3px 0 6px}button.sc-button.active:after{top:-2px;border-top:0;border-bottom:6px solid #32373c}.sc-wrap{margin-right:5px}div.sc-menu{display:none;position:absolute;top:100%;left:0;min-width:100%;max-height:410px;font-size:14px;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#fff;border:1px solid rgba(0,0,0,.15);overflow:auto;overflow-x:hidden;padding:5px 0;margin:-2px 0 0;z-index:1002}div.sc-shortcode{display:block;white-space:nowrap;cursor:pointer;padding:6px 12px;margin-bottom:2px}div.sc-shortcode:hover{color:#fff}.give-status-table{margin-bottom:1em}.give-status-table h2{font-size:14px;margin:0}.give-status-table tr:nth-child(2n) td,.give-status-table tr:nth-child(2n) th{background:#fcfcfc}.give-status-table th{font-weight:700;padding:9px}.give-status-table td:first-child{width:33%}.give-status-table td.help{width:1em}.give-status-table td{padding:9px;font-size:1.1em}.give-status-table td mark{background:0 0}.give-status-table td mark.yes{color:#7ad03a}.give-status-table td mark.no{color:#999}.give-status-table td mark.error{color:#a00}.give-status-table td ul{margin:0}.wrap div.give-debug-report-wrapper{margin-top:1em}.give-debug-report{display:none;margin:10px 0;padding:0;position:relative}.give-debug-report textarea{font-family:monospace;width:100%;margin:0;height:300px;padding:20px;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;resize:none;font-size:12px;line-height:20px;outline:0}
|
assets/images/admin/give-form-mockup.png
ADDED
Binary file
|
assets/images/give-form-mockup.png
DELETED
Binary file
|
assets/js/admin/admin-scripts.js
CHANGED
@@ -29,11 +29,37 @@ jQuery.noConflict();
|
|
29 |
* Setup Pretty Chosen Select Fields
|
30 |
*/
|
31 |
var setup_chosen_give_selects = function () {
|
32 |
-
// Setup Chosen Selects
|
33 |
-
$('.give-select-chosen')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
inherit_select_classes : true,
|
35 |
placeholder_text_single : give_vars.one_option,
|
36 |
-
placeholder_text_multiple: give_vars.one_or_more_option
|
37 |
});
|
38 |
|
39 |
// This fixes the Chosen box being 0px wide when the thickbox is opened
|
@@ -41,6 +67,139 @@ jQuery.noConflict();
|
|
41 |
$('.give-select-chosen', '#choose-give-form').css('width', '100%');
|
42 |
});
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
};
|
45 |
|
46 |
/**
|
@@ -54,18 +213,15 @@ jQuery.noConflict();
|
|
54 |
* @returns {string}
|
55 |
*/
|
56 |
function give_unformat_currency(price, dp) {
|
57 |
-
price
|
58 |
-
|
59 |
|
60 |
// Set default value for number of decimals.
|
61 |
-
if (false
|
62 |
price = parseFloat(price).toFixed(dp);
|
63 |
|
64 |
// If price do not have decimal value then set default number of decimals.
|
65 |
-
} else
|
66 |
-
( -1 === decimal_position )
|
67 |
-
|| ( give_vars.currency_decimals > price.substr(decimal_position + 1).length )
|
68 |
-
) {
|
69 |
price = parseFloat(price).toFixed(give_vars.currency_decimals);
|
70 |
}
|
71 |
|
@@ -222,12 +378,12 @@ jQuery.noConflict();
|
|
222 |
variable_prices_html_container = $('.give-donation-level');
|
223 |
|
224 |
// Check for form ID.
|
225 |
-
if (
|
226 |
return false;
|
227 |
}
|
228 |
|
229 |
// Bailout.
|
230 |
-
if(
|
231 |
return false;
|
232 |
}
|
233 |
|
@@ -258,18 +414,18 @@ jQuery.noConflict();
|
|
258 |
});
|
259 |
|
260 |
// Add total donation amount if level changes.
|
261 |
-
$('#give-donation-overview').on('change', 'select[name="give-variable-price"]', function(){
|
262 |
-
var prices
|
263 |
$total_amount = $('#give-payment-total')
|
264 |
|
265 |
-
if(
|
266 |
$total_amount
|
267 |
-
.val(
|
268 |
-
.css(
|
269 |
|
270 |
window.setTimeout(
|
271 |
-
function(){
|
272 |
-
$total_amount.css(
|
273 |
},
|
274 |
1000
|
275 |
);
|
@@ -428,7 +584,7 @@ jQuery.noConflict();
|
|
428 |
donors_export: function () {
|
429 |
|
430 |
// Show / hide Donation Form option when exporting donors
|
431 |
-
$('#
|
432 |
|
433 |
var $this = $(this),
|
434 |
form_id = $('option:selected', $this).val(),
|
@@ -452,7 +608,7 @@ jQuery.noConflict();
|
|
452 |
|
453 |
$.post(ajaxurl, data, function (response) {
|
454 |
price_options_select.remove();
|
455 |
-
$('#
|
456 |
});
|
457 |
} else {
|
458 |
price_options_select.remove();
|
@@ -684,12 +840,11 @@ jQuery.noConflict();
|
|
684 |
/**
|
685 |
* Donor management screen JS
|
686 |
*/
|
687 |
-
var
|
688 |
|
689 |
init : function () {
|
690 |
this.edit_customer();
|
691 |
this.add_email();
|
692 |
-
this.user_search();
|
693 |
this.remove_user();
|
694 |
this.cancel_edit();
|
695 |
this.change_country();
|
@@ -701,19 +856,16 @@ jQuery.noConflict();
|
|
701 |
e.preventDefault();
|
702 |
$('#give-customer-card-wrapper .editable').hide();
|
703 |
$('#give-customer-card-wrapper .edit-item').fadeIn().css('display', 'block');
|
704 |
-
|
705 |
-
},
|
706 |
-
user_search : function () {
|
707 |
-
// Upon selecting a user from the dropdown, we need to update the User ID
|
708 |
-
$('body').on('click.giveSelectUser', '.give_user_search_results a', function (e) {
|
709 |
-
e.preventDefault();
|
710 |
-
var user_id = $(this).data('userid');
|
711 |
-
$('input[name="customerinfo[user_id]"]').val(user_id);
|
712 |
});
|
713 |
},
|
714 |
remove_user : function () {
|
715 |
$('body').on('click', '#disconnect-customer', function (e) {
|
716 |
e.preventDefault();
|
|
|
|
|
|
|
|
|
717 |
var customer_id = $('input[name="customerinfo[id]"]').val();
|
718 |
|
719 |
var postData = {
|
@@ -723,9 +875,7 @@ jQuery.noConflict();
|
|
723 |
};
|
724 |
|
725 |
$.post(ajaxurl, postData, function (response) {
|
726 |
-
|
727 |
window.location.href = window.location.href;
|
728 |
-
|
729 |
}, 'json');
|
730 |
|
731 |
});
|
@@ -747,7 +897,7 @@ jQuery.noConflict();
|
|
747 |
field_name: 'customerinfo[state]'
|
748 |
};
|
749 |
$.post(ajaxurl, data, function (response) {
|
750 |
-
if ('nostates'
|
751 |
$(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="' + data.field_name + '" value="" class="give-edit-toggles medium-text"/>');
|
752 |
} else {
|
753 |
$(':input[name="customerinfo[state]"]').replaceWith(response);
|
@@ -903,11 +1053,11 @@ jQuery.noConflict();
|
|
903 |
$all_sub_fields = $('ul.give-metabox-sub-tabs'),
|
904 |
in_sub_fields = $(this).parents('ul.give-metabox-sub-tabs').length;
|
905 |
|
906 |
-
if (
|
907 |
$li_parent.toggleClass('active');
|
908 |
$sub_field.toggleClass('give-hidden');
|
909 |
|
910 |
-
var $active_subtab_li = $(
|
911 |
|
912 |
// Show hide sub fields if any and exit.
|
913 |
$all_sub_fields.not($sub_field).addClass('give-hidden');
|
@@ -916,7 +1066,7 @@ jQuery.noConflict();
|
|
916 |
$active_subtab_li.addClass('active');
|
917 |
|
918 |
return false;
|
919 |
-
} else if (
|
920 |
// Hide all tab and sub tabs.
|
921 |
$all_tab_links_li.each(function (index, item) {
|
922 |
item = $(item);
|
@@ -926,7 +1076,7 @@ jQuery.noConflict();
|
|
926 |
$('ul.give-metabox-sub-tabs', item).addClass('give-hidden');
|
927 |
}
|
928 |
});
|
929 |
-
} else if(
|
930 |
// Hide all sub tabs.
|
931 |
$('ul.give-metabox-sub-tabs').addClass('give-hidden');
|
932 |
$all_tab_links_li.removeClass('active');
|
@@ -985,10 +1135,10 @@ jQuery.noConflict();
|
|
985 |
})
|
986 |
},
|
987 |
|
988 |
-
setup_media_fields: function() {
|
989 |
var give_media_uploader;
|
990 |
|
991 |
-
$('body').on(
|
992 |
e.preventDefault();
|
993 |
window.give_media_uploader_input_field = $(this);
|
994 |
|
@@ -999,19 +1149,17 @@ jQuery.noConflict();
|
|
999 |
}
|
1000 |
// Extend the wp.media object
|
1001 |
give_media_uploader = wp.media.frames.file_frame = wp.media({
|
1002 |
-
title: give_vars.metabox_fields.media.button_title,
|
1003 |
-
button: {
|
1004 |
text: give_vars.metabox_fields.media.button_title
|
1005 |
}, multiple: false
|
1006 |
});
|
1007 |
|
1008 |
// When a file is selected, grab the URL and set it as the text field's value
|
1009 |
give_media_uploader.on('select', function () {
|
1010 |
-
var attachment
|
1011 |
$input_field = window.give_media_uploader_input_field.prev(),
|
1012 |
-
fvalue= ( 'id' === $input_field.data('fvalue') ? attachment.id : attachment.url );
|
1013 |
-
|
1014 |
-
console.log($input_field);
|
1015 |
|
1016 |
$input_field.val(fvalue);
|
1017 |
});
|
@@ -1365,9 +1513,9 @@ jQuery.noConflict();
|
|
1365 |
|
1366 |
// Get max level id.
|
1367 |
$('input[type="hidden"].give-levels_id', $this).each(function (index, item) {
|
1368 |
-
var $item
|
1369 |
-
current_level = parseInt(
|
1370 |
-
if (max_level_id < current_level
|
1371 |
max_level_id = current_level;
|
1372 |
}
|
1373 |
});
|
@@ -1464,39 +1612,39 @@ jQuery.noConflict();
|
|
1464 |
* Payment history listing page js
|
1465 |
*/
|
1466 |
var Give_Payment_History = {
|
1467 |
-
init
|
1468 |
this.handle_bulk_delete()
|
1469 |
},
|
1470 |
|
1471 |
-
handle_bulk_delete: function(){
|
1472 |
var $payment_filters = $('#give-payments-filter');
|
1473 |
|
1474 |
/**
|
1475 |
* Payment filters
|
1476 |
*/
|
1477 |
-
$payment_filters.on(
|
1478 |
var current_action = $('select[name="action"]', $(this)).val(),
|
1479 |
$payments = [],
|
1480 |
confirm_action_notice = '';
|
1481 |
|
1482 |
-
$('input[name="payment[]"]:checked', $(this)
|
1483 |
-
$payments.push(
|
1484 |
});
|
1485 |
|
1486 |
// Total payment count.
|
1487 |
$payments = $payments.length.toString();
|
1488 |
-
|
1489 |
-
switch (
|
1490 |
case 'delete':
|
1491 |
// Check if admin did not select any payment.
|
1492 |
-
if(
|
1493 |
-
alert(
|
1494 |
return false;
|
1495 |
}
|
1496 |
|
1497 |
// Ask admin before processing.
|
1498 |
confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.delete.delete_payments : give_vars.bulk_action.delete.delete_payment;
|
1499 |
-
if(
|
1500 |
return false;
|
1501 |
}
|
1502 |
|
@@ -1504,14 +1652,14 @@ jQuery.noConflict();
|
|
1504 |
|
1505 |
case 'resend-receipt':
|
1506 |
// Check if admin did not select any payment.
|
1507 |
-
if(
|
1508 |
-
alert(
|
1509 |
return false;
|
1510 |
}
|
1511 |
|
1512 |
// Ask admin before processing.
|
1513 |
confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.resend_receipt.resend_receipts : give_vars.bulk_action.resend_receipt.resend_receipt;
|
1514 |
-
if(
|
1515 |
return false;
|
1516 |
}
|
1517 |
|
@@ -1523,7 +1671,7 @@ jQuery.noConflict();
|
|
1523 |
}
|
1524 |
};
|
1525 |
|
1526 |
-
//On DOM Ready
|
1527 |
$(function () {
|
1528 |
|
1529 |
enable_admin_datepicker();
|
@@ -1532,7 +1680,7 @@ jQuery.noConflict();
|
|
1532 |
Give_Edit_Donation.init();
|
1533 |
Give_Settings.init();
|
1534 |
Give_Reports.init();
|
1535 |
-
|
1536 |
API_Screen.init();
|
1537 |
Give_Export.init();
|
1538 |
Edit_Form_Screen.init();
|
@@ -1545,54 +1693,6 @@ jQuery.noConflict();
|
|
1545 |
jQuery(this).parent().text(jQuery(this).data('rated'));
|
1546 |
});
|
1547 |
|
1548 |
-
// Ajax user search
|
1549 |
-
$('.give-ajax-user-search').on('keyup', function () {
|
1550 |
-
var user_search = $(this).val();
|
1551 |
-
var exclude = '';
|
1552 |
-
|
1553 |
-
if ($(this).data('exclude')) {
|
1554 |
-
exclude = $(this).data('exclude');
|
1555 |
-
}
|
1556 |
-
|
1557 |
-
$('.give-ajax').show();
|
1558 |
-
data = {
|
1559 |
-
action : 'give_search_users',
|
1560 |
-
user_name: user_search,
|
1561 |
-
exclude : exclude
|
1562 |
-
};
|
1563 |
-
|
1564 |
-
document.body.style.cursor = 'wait';
|
1565 |
-
|
1566 |
-
$.ajax({
|
1567 |
-
type : "POST",
|
1568 |
-
data : data,
|
1569 |
-
dataType: "json",
|
1570 |
-
url : ajaxurl,
|
1571 |
-
success : function (search_response) {
|
1572 |
-
$('.give-ajax').hide();
|
1573 |
-
$('.give_user_search_results').removeClass('hidden');
|
1574 |
-
$('.give_user_search_results span').html('');
|
1575 |
-
$(search_response.results).appendTo('.give_user_search_results span');
|
1576 |
-
document.body.style.cursor = 'default';
|
1577 |
-
}
|
1578 |
-
});
|
1579 |
-
});
|
1580 |
-
|
1581 |
-
$('body').on('click.giveSelectUser', '.give_user_search_results span a', function (e) {
|
1582 |
-
e.preventDefault();
|
1583 |
-
var login = $(this).data('login');
|
1584 |
-
$('.give-ajax-user-search').val(login);
|
1585 |
-
$('.give_user_search_results').addClass('hidden');
|
1586 |
-
$('.give_user_search_results span').html('');
|
1587 |
-
});
|
1588 |
-
|
1589 |
-
$('body').on('click.giveCancelUserSearch', '.give_user_search_results a.give-ajax-user-cancel', function (e) {
|
1590 |
-
e.preventDefault();
|
1591 |
-
$('.give-ajax-user-search').val('');
|
1592 |
-
$('.give_user_search_results').addClass('hidden');
|
1593 |
-
$('.give_user_search_results span').html('');
|
1594 |
-
});
|
1595 |
-
|
1596 |
/**
|
1597 |
* Amount format validation form price field setting
|
1598 |
*/
|
@@ -1672,7 +1772,7 @@ jQuery.noConflict();
|
|
1672 |
price_string = give_unformat_currency($(this).val(), false);
|
1673 |
|
1674 |
// Back out.
|
1675 |
-
if (
|
1676 |
$(this).val('');
|
1677 |
return false;
|
1678 |
}
|
@@ -1699,15 +1799,15 @@ jQuery.noConflict();
|
|
1699 |
|
1700 |
var $sub_tab_nav = $(this).next();
|
1701 |
|
1702 |
-
if(
|
1703 |
$sub_tab_nav.toggleClass('give-hidden');
|
1704 |
}
|
1705 |
|
1706 |
return false;
|
1707 |
-
}).on(
|
1708 |
var $sub_tab_nav = $(this).next();
|
1709 |
|
1710 |
-
if(
|
1711 |
$sub_tab_nav.addClass('give-hidden');
|
1712 |
}
|
1713 |
});
|
@@ -1738,7 +1838,7 @@ function give_render_responsive_tabs() {
|
|
1738 |
$hide_tabs = [],
|
1739 |
tab_width = 0;
|
1740 |
|
1741 |
-
if(
|
1742 |
tab_width = 200;
|
1743 |
}
|
1744 |
|
@@ -1811,7 +1911,6 @@ function give_render_responsive_tabs() {
|
|
1811 |
resolve(true);
|
1812 |
});
|
1813 |
|
1814 |
-
|
1815 |
show_tabs.then(function (is_show_tabs) {
|
1816 |
// Hide sub menu tabs.
|
1817 |
if ($hide_tabs.length) {
|
@@ -1844,7 +1943,7 @@ function get_url_params() {
|
|
1844 |
var vars = [], hash;
|
1845 |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
1846 |
for (var i = 0; i < hashes.length; i++) {
|
1847 |
-
hash
|
1848 |
vars[hash[0]] = hash[1];
|
1849 |
}
|
1850 |
return vars;
|
29 |
* Setup Pretty Chosen Select Fields
|
30 |
*/
|
31 |
var setup_chosen_give_selects = function () {
|
32 |
+
// Setup Chosen Selects.
|
33 |
+
var $give_chosen_containers = $('.give-select-chosen');
|
34 |
+
|
35 |
+
// Add loader with each input field.
|
36 |
+
$give_chosen_containers.on('chosen:ready', function () {
|
37 |
+
$(this).next('.chosen-container')
|
38 |
+
.find('input.chosen-search-input')
|
39 |
+
.after('<span class="spinner"></span>');
|
40 |
+
});
|
41 |
+
|
42 |
+
// No results returned from search trigger.
|
43 |
+
$give_chosen_containers.on( 'chosen:no_results', function(){
|
44 |
+
var $container = $(this).next('.chosen-container'),
|
45 |
+
$no_results_li = $container.find('li.no-results'),
|
46 |
+
error_string = '';
|
47 |
+
|
48 |
+
if( $container.hasClass('give-select-chosen-ajax' ) && $no_results_li.length ) {
|
49 |
+
error_string = give_vars.chosen.ajax_search_msg.replace( '{search_term}', '"' + $( 'input', $container ).val() + '"');
|
50 |
+
} else {
|
51 |
+
error_string = give_vars.chosen.no_results_msg.replace( '{search_term}', '"' + $( 'input', $container ).val()+ '"' );
|
52 |
+
}
|
53 |
+
|
54 |
+
$no_results_li.html( error_string );
|
55 |
+
|
56 |
+
});
|
57 |
+
|
58 |
+
// Initiate chosen.
|
59 |
+
$give_chosen_containers.chosen({
|
60 |
inherit_select_classes : true,
|
61 |
placeholder_text_single : give_vars.one_option,
|
62 |
+
placeholder_text_multiple: give_vars.one_or_more_option,
|
63 |
});
|
64 |
|
65 |
// This fixes the Chosen box being 0px wide when the thickbox is opened
|
67 |
$('.give-select-chosen', '#choose-give-form').css('width', '100%');
|
68 |
});
|
69 |
|
70 |
+
// Variables for setting up the typing timer.
|
71 |
+
var typingTimer; // Timer identifier
|
72 |
+
var doneTypingInterval = 342; // Time in ms, Slow - 521ms, Moderate - 342ms, Fast - 300ms
|
73 |
+
|
74 |
+
// Replace options with search results
|
75 |
+
$(document.body).on('keyup', '.give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input', function (e) {
|
76 |
+
|
77 |
+
var val = $(this).val(),
|
78 |
+
$container = $(this).closest('.give-select-chosen'),
|
79 |
+
select = $container.prev(),
|
80 |
+
$search_field = $container.find('input[type="text"]'),
|
81 |
+
variations = $container.hasClass('variations'),
|
82 |
+
lastKey = e.which,
|
83 |
+
search_type = 'give_forms_search';
|
84 |
+
|
85 |
+
// Detect if we have a defined search type, otherwise default to donation forms.
|
86 |
+
if ($container.prev().data('search-type')) {
|
87 |
+
|
88 |
+
// Don't trigger AJAX if this select has all options loaded.
|
89 |
+
if ('no_ajax' === select.data('search-type')) {
|
90 |
+
return;
|
91 |
+
}
|
92 |
+
|
93 |
+
search_type = 'give_' + select.data('search-type') + '_search';
|
94 |
+
}
|
95 |
+
|
96 |
+
// Don't fire if short or is a modifier key (shift, ctrl, apple command key, or arrow keys).
|
97 |
+
if (
|
98 |
+
val.length <= 3 ||
|
99 |
+
! search_type.length ||
|
100 |
+
(
|
101 |
+
(lastKey === 9) || // Tab
|
102 |
+
(lastKey === 13) || // Enter
|
103 |
+
(lastKey === 16) || // Shift
|
104 |
+
(lastKey === 17) || // Ctrl
|
105 |
+
(lastKey === 18) || // Alt
|
106 |
+
(lastKey === 19) || // Pause, Break
|
107 |
+
(lastKey === 20) || // CapsLock
|
108 |
+
(lastKey === 27) || // Esc
|
109 |
+
(lastKey === 33) || // Page Up
|
110 |
+
(lastKey === 34) || // Page Down
|
111 |
+
(lastKey === 35) || // End
|
112 |
+
(lastKey === 36) || // Home
|
113 |
+
(lastKey === 37) || // Left arrow
|
114 |
+
(lastKey === 38) || // Up arrow
|
115 |
+
(lastKey === 39) || // Right arrow
|
116 |
+
(lastKey === 40) || // Down arrow
|
117 |
+
(lastKey === 44) || // PrntScrn
|
118 |
+
(lastKey === 45) || // Insert
|
119 |
+
(lastKey === 144) || // NumLock
|
120 |
+
(lastKey === 145) || // ScrollLock
|
121 |
+
(lastKey === 91) || // WIN Key (Start)
|
122 |
+
(lastKey === 93) || // WIN Menu
|
123 |
+
(lastKey === 224) || // command key
|
124 |
+
(lastKey >= 112 && lastKey <= 123) // F1 to F12lastKey
|
125 |
+
)
|
126 |
+
) {
|
127 |
+
return;
|
128 |
+
}
|
129 |
+
clearTimeout(typingTimer);
|
130 |
+
$container.addClass( 'give-select-chosen-ajax' );
|
131 |
+
|
132 |
+
typingTimer = setTimeout(
|
133 |
+
function () {
|
134 |
+
$.ajax({
|
135 |
+
type : 'GET',
|
136 |
+
url : ajaxurl,
|
137 |
+
data : {
|
138 |
+
action: search_type,
|
139 |
+
s : val
|
140 |
+
},
|
141 |
+
dataType : 'json',
|
142 |
+
beforeSend: function () {
|
143 |
+
select.closest('ul.chosen-results').empty();
|
144 |
+
$search_field.prop( 'disabled', true );
|
145 |
+
},
|
146 |
+
success : function (data) {
|
147 |
+
|
148 |
+
$container.removeClass( 'give-select-chosen-ajax' );
|
149 |
+
|
150 |
+
// Remove all options but those that are selected.
|
151 |
+
$('option:not(:selected)', select).remove();
|
152 |
+
|
153 |
+
if( data.length ) {
|
154 |
+
$.each(data, function (key, item) {
|
155 |
+
// Add any option that doesn't already exist.
|
156 |
+
if (!$('option[value="' + item.id + '"]', select).length) {
|
157 |
+
select.prepend('<option value="' + item.id + '">' + item.name + '</option>');
|
158 |
+
}
|
159 |
+
});
|
160 |
+
|
161 |
+
// Trigger update event.
|
162 |
+
$container.prev('select.give-select-chosen').trigger('chosen:updated');
|
163 |
+
|
164 |
+
} else{
|
165 |
+
|
166 |
+
// Trigger no result message event.
|
167 |
+
$container.prev('select.give-select-chosen').trigger('chosen:no_results');
|
168 |
+
}
|
169 |
+
|
170 |
+
// Ensure the original query is retained within the search input.
|
171 |
+
$search_field.prop( 'disabled', false );
|
172 |
+
$search_field.val(val).focus();
|
173 |
+
|
174 |
+
}
|
175 |
+
}).fail(function (response) {
|
176 |
+
if (window.console && window.console.log) {
|
177 |
+
console.log(response);
|
178 |
+
}
|
179 |
+
}).done(function (response) {
|
180 |
+
$search_field.prop( 'disabled', false );
|
181 |
+
});
|
182 |
+
},
|
183 |
+
doneTypingInterval
|
184 |
+
);
|
185 |
+
});
|
186 |
+
|
187 |
+
$('.give-select-chosen .chosen-search input').each( function() {
|
188 |
+
var type = $(this).parent().parent().parent().prev('select.give-select-chosen').data('search-type');
|
189 |
+
var placeholder = '';
|
190 |
+
|
191 |
+
if ( 'form' === type ) {
|
192 |
+
placeholder = give_vars.search_placeholder;
|
193 |
+
} else {
|
194 |
+
type = 'search_placeholder_' + type;
|
195 |
+
if ( give_vars[type] ) {
|
196 |
+
placeholder = give_vars[type];
|
197 |
+
}
|
198 |
+
}
|
199 |
+
$(this).attr( 'placeholder', placeholder );
|
200 |
+
|
201 |
+
});
|
202 |
+
|
203 |
};
|
204 |
|
205 |
/**
|
213 |
* @returns {string}
|
214 |
*/
|
215 |
function give_unformat_currency(price, dp) {
|
216 |
+
price = accounting.unformat(price, give_vars.decimal_separator).toString();
|
217 |
+
dp = ( 'undefined' == dp ? false : dp );
|
218 |
|
219 |
// Set default value for number of decimals.
|
220 |
+
if (false !== dp) {
|
221 |
price = parseFloat(price).toFixed(dp);
|
222 |
|
223 |
// If price do not have decimal value then set default number of decimals.
|
224 |
+
} else {
|
|
|
|
|
|
|
225 |
price = parseFloat(price).toFixed(give_vars.currency_decimals);
|
226 |
}
|
227 |
|
378 |
variable_prices_html_container = $('.give-donation-level');
|
379 |
|
380 |
// Check for form ID.
|
381 |
+
if (!( give_form_id = $(this).val() )) {
|
382 |
return false;
|
383 |
}
|
384 |
|
385 |
// Bailout.
|
386 |
+
if (!variable_prices_html_container.length) {
|
387 |
return false;
|
388 |
}
|
389 |
|
414 |
});
|
415 |
|
416 |
// Add total donation amount if level changes.
|
417 |
+
$('#give-donation-overview').on('change', 'select[name="give-variable-price"]', function () {
|
418 |
+
var prices = jQuery(this).data('prices'),
|
419 |
$total_amount = $('#give-payment-total')
|
420 |
|
421 |
+
if ($(this).val() in prices) {
|
422 |
$total_amount
|
423 |
+
.val(prices[$(this).val()])
|
424 |
+
.css('background-color', 'yellow');
|
425 |
|
426 |
window.setTimeout(
|
427 |
+
function () {
|
428 |
+
$total_amount.css('background-color', 'white')
|
429 |
},
|
430 |
1000
|
431 |
);
|
584 |
donors_export: function () {
|
585 |
|
586 |
// Show / hide Donation Form option when exporting donors
|
587 |
+
$('#give_donor_export_form').change(function () {
|
588 |
|
589 |
var $this = $(this),
|
590 |
form_id = $('option:selected', $this).val(),
|
608 |
|
609 |
$.post(ajaxurl, data, function (response) {
|
610 |
price_options_select.remove();
|
611 |
+
$('#give_donor_export_form_chosen').after(response);
|
612 |
});
|
613 |
} else {
|
614 |
price_options_select.remove();
|
840 |
/**
|
841 |
* Donor management screen JS
|
842 |
*/
|
843 |
+
var Give_Donor = {
|
844 |
|
845 |
init : function () {
|
846 |
this.edit_customer();
|
847 |
this.add_email();
|
|
|
848 |
this.remove_user();
|
849 |
this.cancel_edit();
|
850 |
this.change_country();
|
856 |
e.preventDefault();
|
857 |
$('#give-customer-card-wrapper .editable').hide();
|
858 |
$('#give-customer-card-wrapper .edit-item').fadeIn().css('display', 'block');
|
859 |
+
$('.give-select-chosen').css('width', '100%');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
860 |
});
|
861 |
},
|
862 |
remove_user : function () {
|
863 |
$('body').on('click', '#disconnect-customer', function (e) {
|
864 |
e.preventDefault();
|
865 |
+
|
866 |
+
if (!confirm(give_vars.disconnect_user)) {
|
867 |
+
return false;
|
868 |
+
}
|
869 |
var customer_id = $('input[name="customerinfo[id]"]').val();
|
870 |
|
871 |
var postData = {
|
875 |
};
|
876 |
|
877 |
$.post(ajaxurl, postData, function (response) {
|
|
|
878 |
window.location.href = window.location.href;
|
|
|
879 |
}, 'json');
|
880 |
|
881 |
});
|
897 |
field_name: 'customerinfo[state]'
|
898 |
};
|
899 |
$.post(ajaxurl, data, function (response) {
|
900 |
+
if ('nostates' === response) {
|
901 |
$(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="' + data.field_name + '" value="" class="give-edit-toggles medium-text"/>');
|
902 |
} else {
|
903 |
$(':input[name="customerinfo[state]"]').replaceWith(response);
|
1053 |
$all_sub_fields = $('ul.give-metabox-sub-tabs'),
|
1054 |
in_sub_fields = $(this).parents('ul.give-metabox-sub-tabs').length;
|
1055 |
|
1056 |
+
if (has_sub_field) {
|
1057 |
$li_parent.toggleClass('active');
|
1058 |
$sub_field.toggleClass('give-hidden');
|
1059 |
|
1060 |
+
var $active_subtab_li = $('li.active', 'ul.give-metabox-sub-tabs');
|
1061 |
|
1062 |
// Show hide sub fields if any and exit.
|
1063 |
$all_sub_fields.not($sub_field).addClass('give-hidden');
|
1066 |
$active_subtab_li.addClass('active');
|
1067 |
|
1068 |
return false;
|
1069 |
+
} else if (!in_sub_fields) {
|
1070 |
// Hide all tab and sub tabs.
|
1071 |
$all_tab_links_li.each(function (index, item) {
|
1072 |
item = $(item);
|
1076 |
$('ul.give-metabox-sub-tabs', item).addClass('give-hidden');
|
1077 |
}
|
1078 |
});
|
1079 |
+
} else if (in_sub_fields) {
|
1080 |
// Hide all sub tabs.
|
1081 |
$('ul.give-metabox-sub-tabs').addClass('give-hidden');
|
1082 |
$all_tab_links_li.removeClass('active');
|
1135 |
})
|
1136 |
},
|
1137 |
|
1138 |
+
setup_media_fields: function () {
|
1139 |
var give_media_uploader;
|
1140 |
|
1141 |
+
$('body').on('click', '.give-media-upload', function (e) {
|
1142 |
e.preventDefault();
|
1143 |
window.give_media_uploader_input_field = $(this);
|
1144 |
|
1149 |
}
|
1150 |
// Extend the wp.media object
|
1151 |
give_media_uploader = wp.media.frames.file_frame = wp.media({
|
1152 |
+
title : give_vars.metabox_fields.media.button_title,
|
1153 |
+
button : {
|
1154 |
text: give_vars.metabox_fields.media.button_title
|
1155 |
}, multiple: false
|
1156 |
});
|
1157 |
|
1158 |
// When a file is selected, grab the URL and set it as the text field's value
|
1159 |
give_media_uploader.on('select', function () {
|
1160 |
+
var attachment = give_media_uploader.state().get('selection').first().toJSON(),
|
1161 |
$input_field = window.give_media_uploader_input_field.prev(),
|
1162 |
+
fvalue = ( 'id' === $input_field.data('fvalue') ? attachment.id : attachment.url );
|
|
|
|
|
1163 |
|
1164 |
$input_field.val(fvalue);
|
1165 |
});
|
1513 |
|
1514 |
// Get max level id.
|
1515 |
$('input[type="hidden"].give-levels_id', $this).each(function (index, item) {
|
1516 |
+
var $item = $(item),
|
1517 |
+
current_level = parseInt($item.val());
|
1518 |
+
if (max_level_id < current_level) {
|
1519 |
max_level_id = current_level;
|
1520 |
}
|
1521 |
});
|
1612 |
* Payment history listing page js
|
1613 |
*/
|
1614 |
var Give_Payment_History = {
|
1615 |
+
init: function () {
|
1616 |
this.handle_bulk_delete()
|
1617 |
},
|
1618 |
|
1619 |
+
handle_bulk_delete: function () {
|
1620 |
var $payment_filters = $('#give-payments-filter');
|
1621 |
|
1622 |
/**
|
1623 |
* Payment filters
|
1624 |
*/
|
1625 |
+
$payment_filters.on('submit', function (e) {
|
1626 |
var current_action = $('select[name="action"]', $(this)).val(),
|
1627 |
$payments = [],
|
1628 |
confirm_action_notice = '';
|
1629 |
|
1630 |
+
$('input[name="payment[]"]:checked', $(this)).each(function (index, item) {
|
1631 |
+
$payments.push($(this).val());
|
1632 |
});
|
1633 |
|
1634 |
// Total payment count.
|
1635 |
$payments = $payments.length.toString();
|
1636 |
+
|
1637 |
+
switch (current_action) {
|
1638 |
case 'delete':
|
1639 |
// Check if admin did not select any payment.
|
1640 |
+
if (!parseInt($payments)) {
|
1641 |
+
alert(give_vars.bulk_action.delete.zero_payment_selected);
|
1642 |
return false;
|
1643 |
}
|
1644 |
|
1645 |
// Ask admin before processing.
|
1646 |
confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.delete.delete_payments : give_vars.bulk_action.delete.delete_payment;
|
1647 |
+
if (!window.confirm(confirm_action_notice.replace('{payment_count}', $payments))) {
|
1648 |
return false;
|
1649 |
}
|
1650 |
|
1652 |
|
1653 |
case 'resend-receipt':
|
1654 |
// Check if admin did not select any payment.
|
1655 |
+
if (!parseInt($payments)) {
|
1656 |
+
alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected);
|
1657 |
return false;
|
1658 |
}
|
1659 |
|
1660 |
// Ask admin before processing.
|
1661 |
confirm_action_notice = ( 1 < $payments ) ? give_vars.bulk_action.resend_receipt.resend_receipts : give_vars.bulk_action.resend_receipt.resend_receipt;
|
1662 |
+
if (!window.confirm(confirm_action_notice.replace('{payment_count}', $payments))) {
|
1663 |
return false;
|
1664 |
}
|
1665 |
|
1671 |
}
|
1672 |
};
|
1673 |
|
1674 |
+
// On DOM Ready.
|
1675 |
$(function () {
|
1676 |
|
1677 |
enable_admin_datepicker();
|
1680 |
Give_Edit_Donation.init();
|
1681 |
Give_Settings.init();
|
1682 |
Give_Reports.init();
|
1683 |
+
Give_Donor.init();
|
1684 |
API_Screen.init();
|
1685 |
Give_Export.init();
|
1686 |
Edit_Form_Screen.init();
|
1693 |
jQuery(this).parent().text(jQuery(this).data('rated'));
|
1694 |
});
|
1695 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1696 |
/**
|
1697 |
* Amount format validation form price field setting
|
1698 |
*/
|
1772 |
price_string = give_unformat_currency($(this).val(), false);
|
1773 |
|
1774 |
// Back out.
|
1775 |
+
if (give_unformat_currency('0', false) === give_unformat_currency($(this).val(), false)) {
|
1776 |
$(this).val('');
|
1777 |
return false;
|
1778 |
}
|
1799 |
|
1800 |
var $sub_tab_nav = $(this).next();
|
1801 |
|
1802 |
+
if (!$sub_tab_nav.is(':hover')) {
|
1803 |
$sub_tab_nav.toggleClass('give-hidden');
|
1804 |
}
|
1805 |
|
1806 |
return false;
|
1807 |
+
}).on('blur', '#give-show-sub-nav', function () {
|
1808 |
var $sub_tab_nav = $(this).next();
|
1809 |
|
1810 |
+
if (!$sub_tab_nav.is(':hover')) {
|
1811 |
$sub_tab_nav.addClass('give-hidden');
|
1812 |
}
|
1813 |
});
|
1838 |
$hide_tabs = [],
|
1839 |
tab_width = 0;
|
1840 |
|
1841 |
+
if (600 < jQuery(window).outerWidth()) {
|
1842 |
tab_width = 200;
|
1843 |
}
|
1844 |
|
1911 |
resolve(true);
|
1912 |
});
|
1913 |
|
|
|
1914 |
show_tabs.then(function (is_show_tabs) {
|
1915 |
// Hide sub menu tabs.
|
1916 |
if ($hide_tabs.length) {
|
1943 |
var vars = [], hash;
|
1944 |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
1945 |
for (var i = 0; i < hashes.length; i++) {
|
1946 |
+
hash = hashes[i].split('=');
|
1947 |
vars[hash[0]] = hash[1];
|
1948 |
}
|
1949 |
return vars;
|
assets/js/admin/admin-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function give_render_responsive_tabs(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),o=jQuery("h2.give-nav-tab-wrapper>a:not(give-not-tab)"),r=[],s=[],c=0;if(600<jQuery(window).outerWidth()&&(c=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var d=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),c+=parseInt(t.outerWidth()),c<i?r.push(t):s.push(t)}),e(!0)});d.then(function(e){if(s.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();s=s.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}var c=new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});c.then(function(e){s.length?(a.html(""),jQuery.each(s,function(e,t){t=jQuery(t),t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}jQuery.noConflict(),function(e){function t(e,t){e=accounting.unformat(e,give_vars.decimal_separator).toString();var i=e.indexOf(".");return 0!=t?e=parseFloat(e).toFixed(t):(-1===i||give_vars.currency_decimals>e.substr(i+1).length)&&(e=parseFloat(e).toFixed(give_vars.currency_decimals)),e}var i=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},n=function(){e(".give-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")})},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(t){var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),"nostates"==t?i.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>'):(i.append(t),i.find("select").chosen())}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-customer, .give-payment-new-customer-cancel",function(t){t.preventDefault(),e(".customer-info").toggle(),e(".new-customer").toggle(),e(".new-customer").is(":visible")?e("#give-new-customer").val(1):e("#give-new-customer").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e('select[name="forms"]').chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},o={init:function(){this.toggle_options(),this.main_setting_update_notice(),this.verify_settings()},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(a.length)return!1;e("h2","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()}),e(this).val("")}}).change()}},r={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_customer_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var o={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,o,function(t){a.remove(),e("#give_customer_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e("#tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"recount-form"===i)a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"});else if("reset-stats"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var o=e("#confirm-reset").is(":checked");if(o)return!0;s=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var r=n.find(".notice-wrap"),s=!1;if(null!==i&&0!==i||(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),s=!0),"recount-form"===a){var c=e('select[name="form_id"]').val();0==c&&(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),s=!0)}if(s)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},s={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var a=e(".give-export-form").find(".give-progress").parent().parent(),o=a.find(".notice-wrap");if(a.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var s=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+s+'<span class="notice-dismiss"></span></p></div>')}else o.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n)}}).fail(function(t){window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},c=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},d={init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e("body").on("click","#edit-customer",function(t){t.preventDefault(),e("#give-customer-card-wrapper .editable").hide(),e("#give-customer-card-wrapper .edit-item").fadeIn().css("display","block")})},user_search:function(){e("body").on("click.giveSelectUser",".give_user_search_results a",function(t){t.preventDefault();var i=e(this).data("userid");e('input[name="customerinfo[user_id]"]').val(i)})},remove_user:function(){e("body").on("click","#disconnect-customer",function(t){t.preventDefault();var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-customer-cancel",function(t){t.preventDefault(),e("#give-customer-card-wrapper .edit-item").hide(),e("#give-customer-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,i,function(t){"nostates"==t?e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="" class="give-edit-toggles medium-text"/>'):e(':input[name="customerinfo[state]"]').replaceWith(t)}),!1})},add_note:function(){e("body").on("click","#add-customer-note",function(t){t.preventDefault();var i={give_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:e("#customer-note").val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(i.customer_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-customer-notes").prepend(t),e(".give-no-customer-notes").hide(),e("#customer-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#customer-note").css("border-color");e("#customer-note").css("border-color","red"),setTimeout(function(){e("#customer-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-customer-delete-confirm").change(function(){var t=e("#give-customer-delete-records"),i=e("#give-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-customer-email").length&&e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="customer-id"]').val(),o=n.find('input[name="additional-email"]').val(),r=n.find('input[name="make-additional-primary"]').is(":checked"),s=n.find('input[name="add_email_nonce"]').val(),c={give_action:"add_donor_email",customer_id:a,email:o,primary:r,_wpnonce:s};e.post(ajaxurl,c,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})}},l={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},u={init:function(){this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events()},handle_metabox_tab_click:function(){var t=e(".give-metabox-tabs a");if(t.on("click",function(i){i.preventDefault();var n=e(this).parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,r=t.parents("li"),s=e("ul.give-metabox-sub-tabs"),c=e(this).parents("ul.give-metabox-sub-tabs").length;if(o){n.toggleClass("active"),a.toggleClass("give-hidden");var d=e("li.active","ul.give-metabox-sub-tabs");return s.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),d.addClass("active"),!1}return c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),e(this).parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),e(this).parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")}),e(this).parent().addClass("active"),e(".give_options_panel").addClass("give-hidden"),e(e(this).attr("href")).removeClass("give-hidden"),!1}),location.hash.length){var i=e('a[href="'+location.hash+'"]',".give-metabox-tabs");i.length&&i.trigger("click")}},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t;e("body").on("click",".give-media-upload",function(i){return i.preventDefault(),window.give_media_uploader_input_field=e(this),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1}),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),i=window.give_media_uploader_input_field.prev(),n="id"===i.data("fvalue")?e.id:e.url;console.log(i),i.val(n)}),void t.open())})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:v,before_remove:null,after_remove:p,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var o=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),r=a+"_field",s="",c="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),c=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(r)&&(s=c+"_field",t.removeClass(r).addClass(s)),a==i.attr("id")&&i.attr("id",c))})}),o++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){_(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);_(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),o=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=a.prev();o.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),s.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),o=e(".give-row-head h2 span",a),r=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(r+": "+n.val()):o.html(r))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),o=n.length;1===o&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),o=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i),a=parseInt(n.val());o<a&&(o=a)}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},v=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),o=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},p=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},g=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},events:{show:function(t,i){var n=e(i.elements.target[0]);n.qtip("option","position.my",void 0==n.data("tooltip-my-position")?"bottom center":n.data("tooltip-my-position")),n.qtip("option","position.at",void 0==n.data("tooltip-target-position")?"top center":n.data("tooltip-target-position"))}}})},h={init:function(){this.handle_bulk_delete()},handle_bulk_delete:function(){var t=e("#give-payments-filter");t.on("submit",function(t){var i=e('select[name="action"]',e(this)).val(),n=[],a="";switch(e('input[name="payment[]"]:checked',e(this)).each(function(t,i){n.push(e(this).val())}),n=n.length.toString(),i){case"delete":if(!parseInt(n))return alert(give_vars.bulk_action["delete"].zero_payment_selected),!1;if(a=1<n?give_vars.bulk_action["delete"].delete_payments:give_vars.bulk_action["delete"].delete_payment,!window.confirm(a.replace("{payment_count}",n)))return!1;break;case"resend-receipt":if(!parseInt(n))return alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected),!1;if(a=1<n?give_vars.bulk_action.resend_receipt.resend_receipts:give_vars.bulk_action.resend_receipt.resend_receipt,!window.confirm(a.replace("{payment_count}",n)))return!1}return!0})}};e(function(){function v(t){t.each(function(){e(this).qtip({style:"qtip-dark qtip-tipsy",content:{text:give_vars.price_format_guide.trim()},show:"",position:{my:"bottom center",at:"top center"}})})}i(),c(),n(),a.init(),o.init(),r.init(),d.init(),l.init(),s.init(),u.init(),h.init(),g(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))}),e(".give-ajax-user-search").on("keyup",function(){var t=e(this).val(),i="";e(this).data("exclude")&&(i=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:i},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})}),e("body").on("click.giveSelectUser",".give_user_search_results span a",function(t){t.preventDefault();var i=e(this).data("login");e(".give-ajax-user-search").val(i),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")});var p=e("input.give-money-field, input.give-price-field"),_=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",y=f===_?1:0;v(p),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){p=e("input.give-money-field, input.give-price-field"),v(p)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){m=(e(this).val().match(new RegExp(_,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(_)&&y<m?e(this).qtip("show"):b?e(this).qtip("show"):e(this).qtip("hide"),m=b=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){return w=t(e(this).val(),!1),parseInt(w)?(w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),void e(this).val(w)):(e(this).val(""),!1)}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),give_render_responsive_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsive_tabs()});
|
1 |
+
function give_render_responsive_tabs(){var e=jQuery(".give-settings-page"),t=jQuery("h2.give-nav-tab-wrapper"),i=e.width(),n=jQuery(".give-sub-nav-tab-wrapper"),a=jQuery("nav",n),o=jQuery("h2.give-nav-tab-wrapper>a:not(give-not-tab)"),r=[],s=[],c=0;if(600<jQuery(window).outerWidth()&&(c=200),!e.length)return!1;t.css({height:"auto",overflow:"visible"}),o.removeClass("give-hidden");var d=new Promise(function(e,t){jQuery.each(o,function(e,t){t=jQuery(t),c+=parseInt(t.outerWidth()),c<i?r.push(t):s.push(t)}),e(!0)});d.then(function(e){if(s.length&&-1!=window.location.search.indexOf("&tab=")){var i={},o=get_url_params();s=s.filter(function(e){var t=-1!=parseInt(e.attr("href").indexOf("&tab="+o.tab));return t&&(i=e),!t}),i.length&&(s.unshift(r.pop()),r.push(i))}var c=new Promise(function(e,t){r.length&&jQuery.each(r,function(e,t){t=jQuery(t),t.hasClass("give-hidden")&&t.removeClass("give-hidden")}),e(!0)});c.then(function(e){s.length?(a.html(""),jQuery.each(s,function(e,t){t=jQuery(t),t.addClass("give-hidden"),t.clone().removeClass().appendTo(a)}),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(n),n.show()):n.hide()})})}function get_url_params(){for(var e,t=[],i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)e=i[n].split("="),t[e[0]]=e[1];return t}jQuery.noConflict(),function(e){function t(e,t){return e=accounting.unformat(e,give_vars.decimal_separator).toString(),t="undefined"!=t&&t,e=!1!==t?parseFloat(e).toFixed(t):parseFloat(e).toFixed(give_vars.currency_decimals)}var i=function(){if(e(".give_datepicker").length>0){var t="mm/dd/yy";e(".give_datepicker").datepicker({dateFormat:t})}},n=function(){var t=e(".give-select-chosen");t.on("chosen:ready",function(){e(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')}),t.on("chosen:no_results",function(){var t=e(this).next(".chosen-container"),i=t.find("li.no-results"),n="";n=t.hasClass("give-select-chosen-ajax")&&i.length?give_vars.chosen.ajax_search_msg.replace("{search_term}",'"'+e("input",t).val()+'"'):give_vars.chosen.no_results_msg.replace("{search_term}",'"'+e("input",t).val()+'"'),i.html(n)}),t.chosen({inherit_select_classes:!0,placeholder_text_single:give_vars.one_option,placeholder_text_multiple:give_vars.one_or_more_option}),e("#post").on("click",".give-thickbox",function(){e(".give-select-chosen","#choose-give-form").css("width","100%")});var i,n=342;e(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",function(t){var a=e(this).val(),o=e(this).closest(".give-select-chosen"),r=o.prev(),s=o.find('input[type="text"]'),c=(o.hasClass("variations"),t.which),d="give_forms_search";if(o.prev().data("search-type")){if("no_ajax"===r.data("search-type"))return;d="give_"+r.data("search-type")+"_search"}a.length<=3||!d.length||9===c||13===c||16===c||17===c||18===c||19===c||20===c||27===c||33===c||34===c||35===c||36===c||37===c||38===c||39===c||40===c||44===c||45===c||144===c||145===c||91===c||93===c||224===c||c>=112&&c<=123||(clearTimeout(i),o.addClass("give-select-chosen-ajax"),i=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:d,s:a},dataType:"json",beforeSend:function(){r.closest("ul.chosen-results").empty(),s.prop("disabled",!0)},success:function(t){o.removeClass("give-select-chosen-ajax"),e("option:not(:selected)",r).remove(),t.length?(e.each(t,function(t,i){e('option[value="'+i.id+'"]',r).length||r.prepend('<option value="'+i.id+'">'+i.name+"</option>")}),o.prev("select.give-select-chosen").trigger("chosen:updated")):o.prev("select.give-select-chosen").trigger("chosen:no_results"),s.prop("disabled",!1),s.val(a).focus()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){s.prop("disabled",!1)})},n))}),e(".give-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),i="";"form"===t?i=give_vars.search_placeholder:(t="search_placeholder_"+t,give_vars[t]&&(i=give_vars[t])),e(this).attr("placeholder",i)})},a={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change(function(){var t=e(this);return data={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"},e.post(ajaxurl,data,function(t){var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),"nostates"==t?i.append('<input type="text" name="give-payment-address[0][state]" value="" class="give-edit-toggles medium-text"/>'):(i.append(t),i.find("select").chosen())}),!1})},add_note:function(){e("#give-add-payment-note").on("click",function(t){t.preventDefault();var i={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#give-payment-note").val()};if(i.note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#give-payment-note").css("border-color");e("#give-payment-note").css("border-color","red"),setTimeout(function(){e("#give-payment-note").css("border-color",n)},500)}})},remove_note:function(){e("body").on("click",".give-delete-payment-note",function(t){if(t.preventDefault(),confirm(give_vars.delete_payment_note)){var i={action:"give_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-customer, .give-payment-new-customer-cancel",function(t){t.preventDefault(),e(".customer-info").toggle(),e(".new-customer").toggle(),e(".new-customer").is(":visible")?e("#give-new-customer").val(1):e("#give-new-customer").val(0)})},resend_receipt:function(){e("body").on("click","#give-resend-receipt",function(e){return confirm(give_vars.resend_receipt)})},variable_price_list:function(){e('select[name="forms"]').chosen().change(function(){var t,i=e(".give-donation-level");return!!(t=e(this).val())&&(!!i.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){t=t.trim(),t?(i.html(t),e('select[name="give-variable-price"]').chosen().change()):i.html("")}}))}),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',function(){var t=jQuery(this).data("prices"),i=e("#give-payment-total");e(this).val()in t&&(i.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout(function(){i.css("background-color","white")},1e3))})}},o={init:function(){this.toggle_options(),this.main_setting_update_notice(),this.verify_settings()},toggle_options:function(){var t=e('input[name="email_access"]',".give-setting-tab-body-general");t.on("change",function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())}).change();var i=e('input[name="form_featured_img"]',".give-setting-tab-body-display");i.on("change",function(){var t=e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val();"enabled"===t?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()}).change();var n=e('input[name="terms"]',".give-setting-tab-body-display");n.on("change",function(){var t=e('input[name="terms"]:checked',".give-setting-tab-body-display").val();"enabled"===t?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())}).change();var a=e('input[name="admin_notices"]',".give-setting-tab-body-emails");a.on("change",function(){var t=e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val();"enabled"===t?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())}).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout(function(){t.slideUp()},5e3)},verify_settings:function(){var t=e("#success_page"),i=e("#failure_page");t.add(i).change(function(){if(t.val()===i.val()){var n='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+give_vars.matched_success_failure_page+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+give_vars.dismiss_notice_text+"</span></button> </div>",a=e("#setting-error-give-matched-success-failure-page");if(a.length)return!1;e("h2","#give-mainform").after(n),a=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",a).click(function(){a.remove()}),e(this).val("")}}).change()}},r={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change(function(){var t=e(this);"other"===t.val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()})},donors_export:function(){e("#give_donor_export_form").change(function(){var t=e(this),i=e("option:selected",t).val(),n=e("#give_customer_export_option");"0"===t.val()?n.show():n.hide();var a=e(".give_price_options_select");if(0!=parseInt(i)){var o={action:"give_check_for_form_price_variations",form_id:i,all_prices:!0};e.post(ajaxurl,o,function(t){a.remove(),e("#give_donor_export_form_chosen").after(t)})}else a.remove()})},recount_stats:function(){e("body").on("change","#recount-stats-type",function(){var t=e("#give-tools-recount-form"),i=e("option:selected",this).data("type"),n=e("#recount-stats-submit"),a=e("#tools-form-dropdown");if(t.find(".notice-wrap").remove(),n.removeClass("button-disabled").attr("disabled",!1),a.hide(),e(".give-recount-stats-descriptions span").hide(),"recount-form"===i)a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"});else if("reset-stats"===i){t.append('<div class="notice-wrap"></div>');var o=t.find(".notice-wrap");o.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+give_vars.reset_stats_warn+"</label></p></div>"),n.addClass("button-disabled").attr("disabled","disabled")}else a.hide(),a.val(0);e("#"+i).show()}),e("body").on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#give-tools-recount-form").submit(function(t){var i=e("#recount-stats-type").val(),n=e(this),a=e("option:selected",this).data("type");if("reset-stats"===a){var o=e("#confirm-reset").is(":checked");if(o)return!0;s=!0}n.find(".notice-wrap").remove(),n.append('<div class="notice-wrap"></div>');var r=n.find(".notice-wrap"),s=!1;if(null!==i&&0!==i||(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_class+"</p></div>"),s=!0),"recount-form"===a){var c=e('select[name="form_id"]').val();0==c&&(r.html('<div class="updated error"><p>'+give_vars.batch_export_no_reqs+"</p></div>"),s=!0)}if(s)return n.find(".button-disabled").removeClass("button-disabled"),!1})}},s={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",function(i){i.preventDefault();var n=e(this).find('input[type="submit"]');if(!n.hasClass("button-disabled")){var a=e(this).serialize();n.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,a,t)}})},process_step:function(t,i,n){e.ajax({type:"POST",url:ajaxurl,data:{form:i,action:"give_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var a=e(".give-export-form").find(".give-progress").parent().parent(),o=a.find(".notice-wrap");if(a.find(".button-disabled").removeClass("button-disabled"),t.error){var r=t.message;o.html('<div class="updated error"><p>'+r+"</p></div>")}else if(t.success){var s=t.message;o.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+s+'<span class="notice-dismiss"></span></p></div>')}else o.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,function(){}),n.process_step(parseInt(t.step),i,n)}}).fail(function(t){window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)})},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",function(){e("#give-batch-success").parent().slideUp("fast")})}},c=function(){e('select[name="give-payment-status"]').on("change",function(){var t=e(this).val();e(".give-donation-status").removeClass(function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")}).addClass("status-"+t)})},d={init:function(){this.edit_customer(),this.add_email(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e("body").on("click","#edit-customer",function(t){t.preventDefault(),e("#give-customer-card-wrapper .editable").hide(),e("#give-customer-card-wrapper .edit-item").fadeIn().css("display","block"),e(".give-select-chosen").css("width","100%")})},remove_user:function(){e("body").on("click","#disconnect-customer",function(t){if(t.preventDefault(),!confirm(give_vars.disconnect_user))return!1;var i=e('input[name="customerinfo[id]"]').val(),n={give_action:"disconnect-userid",customer_id:i,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,n,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e("body").on("click","#give-edit-customer-cancel",function(t){t.preventDefault(),e("#give-customer-card-wrapper .edit-item").hide(),e("#give-customer-card-wrapper .editable").show(),e(".give_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),i={action:"give_get_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,i,function(t){"nostates"===t?e(':input[name="customerinfo[state]"]').replaceWith('<input type="text" name="'+i.field_name+'" value="" class="give-edit-toggles medium-text"/>'):e(':input[name="customerinfo[state]"]').replaceWith(t)}),!1})},add_note:function(){e("body").on("click","#add-customer-note",function(t){t.preventDefault();var i={give_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:e("#customer-note").val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(i.customer_note)e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){e("#give-customer-notes").prepend(t),e(".give-no-customer-notes").hide(),e("#customer-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var n=e("#customer-note").css("border-color");e("#customer-note").css("border-color","red"),setTimeout(function(){e("#customer-note").css("border-color",n)},500)}})},delete_checked:function(){e("#give-customer-delete-confirm").change(function(){var t=e("#give-customer-delete-records"),i=e("#give-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),i.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),i.attr("disabled",!0))})},add_email:function(){e("#add-customer-email").length&&e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var i=e(this),n=i.parent();n.parent().find(".notice-wrap").remove(),n.find(".spinner").css("visibility","visible"),i.attr("disabled",!0);var a=n.find('input[name="customer-id"]').val(),o=n.find('input[name="additional-email"]').val(),r=n.find('input[name="make-additional-primary"]').is(":checked"),s=n.find('input[name="add_email_nonce"]').val(),c={give_action:"add_donor_email",customer_id:a,email:o,primary:r,_wpnonce:s};e.post(ajaxurl,c,function(e){!0===e.success?window.location.href=e.redirect:(i.attr("disabled",!1),n.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),n.find(".spinner").css("visibility","hidden"))},"json")})}},l={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",function(e){return confirm(give_vars.revoke_api_key)})},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",function(e){return confirm(give_vars.regenerate_api_key)})}},v={init:function(){this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events()},handle_metabox_tab_click:function(){var t=e(".give-metabox-tabs a");if(t.on("click",function(i){i.preventDefault();var n=e(this).parent(),a=e("ul.give-metabox-sub-tabs",n),o=a.length,r=t.parents("li"),s=e("ul.give-metabox-sub-tabs"),c=e(this).parents("ul.give-metabox-sub-tabs").length;if(o){n.toggleClass("active"),a.toggleClass("give-hidden");var d=e("li.active","ul.give-metabox-sub-tabs");return s.not(a).addClass("give-hidden"),r.not(n).removeClass("active"),d.addClass("active"),!1}return c?c&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),r.removeClass("active"),e(this).parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),e(this).parents("li.has-sub-fields").addClass("active")):r.each(function(t,i){i=e(i),i.removeClass("active"),i.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",i).addClass("give-hidden")}),e(this).parent().addClass("active"),e(".give_options_panel").addClass("give-hidden"),e(e(this).attr("href")).removeClass("give-hidden"),!1}),location.hash.length){var i=e('a[href="'+location.hash+'"]',".give-metabox-tabs");i.length&&i.trigger("click")}},setup_colorpicker_fields:function(){e(document).ready(function(){var t=e(".give-colorpicker");t.length&&t.each(function(t,i){var n=e(i);n.parents(".give-template").length||n.wpColorPicker()})})},setup_media_fields:function(){var t;e("body").on("click",".give-media-upload",function(i){return i.preventDefault(),window.give_media_uploader_input_field=e(this),t?void t.open():(t=wp.media.frames.file_frame=wp.media({title:give_vars.metabox_fields.media.button_title,button:{text:give_vars.metabox_fields.media.button_title},multiple:!1}),t.on("select",function(){var e=t.state().get("selection").first().toJSON(),i=window.give_media_uploader_input_field.prev(),n="id"===i.data("fvalue")?e.id:e.url;i.val(n)}),void t.open())})},setup_repeatable_fields:function(){jQuery(function(){jQuery(".give-repeatable-field-section").each(function(){var t=e(this),i={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:give_vars.confirm_before_remove_row_text,is_sortable:!0,before_add:null,after_add:u,before_remove:null,after_remove:p,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(t,i){e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,i){e("body").trigger("repeater_field_sorting_stop",[i.item])},update:function(i,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item);var a=e(".give-row",t).not(".give-template");if(a.length){var o=1;a.each(function(t,i){var n=e(".give-field, label",e(i));n.length&&n.each(function(){var t=e(this).parents(".give-field-wrap"),i=e(this);e.each(this.attributes,function(e,n){var a=this.value.replace(/\[/g,"_").replace(/]/g,""),r=a+"_field",s="",c="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(o-1)+"]"),c=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(r)&&(s=c+"_field",t.removeClass(r).addClass(s)),a==i.attr("id")&&i.attr("id",c))})}),o++}),t.trigger("repeater_field_row_reordered",[n.item])}}}};jQuery(this).repeatable_fields(i)})})},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),i=e("body");i.on("click",".give-row-head button",function(){var t=e(this).closest("tr");t.toggleClass("closed"),e(".give-row-body",t).toggle()}),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",function(){g(e(this))}),i.on("repeater_field_sorting_start",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(i).attr("id"))},300)})}),i.on("repeater_field_sorting_stop",function(t,i){var n=e(".wp-editor-area",i);n.length&&n.each(function(t,i){window.setTimeout(function(){var t=e(i).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout(function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")},100)},300)})}),t.each(function(t,i){var n=e(i);g(n),parseInt(n.data("close-tabs"))&&(e(".give-row-head button",n).trigger("click"),e(".give-template",n).removeClass("closed"),e(".give-template .give-row-body",n).show())}),t.on("repeater_field_new_row_added",function(t,i,n){e(".give-colorpicker",e(this)).each(function(t,i){var n=e(i);n.parents(".wp-picker-container").length||n.parents(".give-template").length||n.wpColorPicker()});var a=e("div[data-wp-editor]",n);a.length&&a.each(function(t,i){var n=e(i),a=e(".wp-editor-wrap",n),o=e("textarea",n),r="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=a.prev();o.attr("id",r),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:n.data("wp-editor"),wp_editor_id:r,textarea_name:e("textarea",n).attr("name")},function(t){a.remove(),s.after(t),tinyMCEPreInit.qtInit[o.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:r}),tinyMCEPreInit.mceInit[r]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:r+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+r}),tinymce.init(tinyMCEPreInit.mceInit[r]),quicktags(tinyMCEPreInit.qtInit[r]),QTags._buttonsInit(),window.setTimeout(function(){switchEditors.go(r,"html"),e("#"+r+"-tmce").trigger("click")},100),window.wpActiveEditor||(window.wpActiveEditor=r)})})})},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",function(){var t=e(this).closest("tr"),i=e(".give-row-head h2 span",t),n=i.data("header-title");return(!e(this).val()||e(this).val()!==i.html())&&void(e(this).val()?i.html(n+": "+e(this).val()):i.html(n))}),e(".give-multilevel-text-field").each(function(t,i){if(t){var n=e(i),a=n.closest("tr"),o=e(".give-row-head h2 span",a),r=o.data("header-title");return(!n.val()||n.val()!==o.html())&&void(n.val()?o.html(r+": "+n.val()):o.html(r))}}),t.on("repeater_field_row_deleted",function(){var t=e(this);window.setTimeout(function(){var i=t,n=e(".give-row",i).not(".give-template"),a=e(".give-give_default_radio_inline",n),o=n.length;1===o&&a.prop("checked",!0)},200)}),t.on("repeater_field_new_row_added",function(t,i,n){var a=e(this),o=0;window.setTimeout(function(){e(".give-give_default_radio_inline",a).is(":checked")===!1&&e(".give-row",a).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)},200),e('input[type="hidden"].give-levels_id',a).each(function(t,i){var n=e(i),a=parseInt(n.val());o<a&&(o=a)}),e('input[type="hidden"].give-levels_id',n).val(++o)})}},u=function(t,i){var n=e(t).attr("data-rf-row-count"),a=e(t),o=a.parents(".give-repeatable-field-section");n++,e("*",i).each(function(){e.each(this.attributes,function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",n-1)})}),e(t).attr("data-rf-row-count",n),o.trigger("repeater_field_new_row_added",[t,i])},p=function(t){var i=e(t),n=i.parents(".give-repeatable-field-section"),a=e(t).attr("data-rf-row-count");i.attr("data-rf-row-count",--a),n.trigger("repeater_field_row_deleted")},g=function(t){if(parseInt(t.data("group-numbering"))){var i=e(".give-row-head h2 span",t),n=i.data("header-title");i.each(function(t,i){var a=e(i);a.parents(".give-template").length||a.html(n+": "+t)})}},_=function(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},events:{show:function(t,i){var n=e(i.elements.target[0]);n.qtip("option","position.my",void 0==n.data("tooltip-my-position")?"bottom center":n.data("tooltip-my-position")),n.qtip("option","position.at",void 0==n.data("tooltip-target-position")?"top center":n.data("tooltip-target-position"))}}})},h={init:function(){this.handle_bulk_delete()},handle_bulk_delete:function(){var t=e("#give-payments-filter");t.on("submit",function(t){var i=e('select[name="action"]',e(this)).val(),n=[],a="";switch(e('input[name="payment[]"]:checked',e(this)).each(function(t,i){n.push(e(this).val())}),n=n.length.toString(),i){case"delete":if(!parseInt(n))return alert(give_vars.bulk_action["delete"].zero_payment_selected),!1;if(a=1<n?give_vars.bulk_action["delete"].delete_payments:give_vars.bulk_action["delete"].delete_payment,!window.confirm(a.replace("{payment_count}",n)))return!1;break;case"resend-receipt":if(!parseInt(n))return alert(give_vars.bulk_action.resend_receipt.zero_recipient_selected),!1;if(a=1<n?give_vars.bulk_action.resend_receipt.resend_receipts:give_vars.bulk_action.resend_receipt.resend_receipt,!window.confirm(a.replace("{payment_count}",n)))return!1}return!0})}};e(function(){function u(t){t.each(function(){e(this).qtip({style:"qtip-dark qtip-tipsy",content:{text:give_vars.price_format_guide.trim()},show:"",position:{my:"bottom center",at:"top center"}})})}i(),c(),n(),a.init(),o.init(),r.init(),d.init(),l.init(),s.init(),v.init(),h.init(),_(),e("a.give-rating-link").click(function(){jQuery(this).parent().text(jQuery(this).data("rated"))});var p=e("input.give-money-field, input.give-price-field"),g=give_vars.thousands_separator,f=give_vars.decimal_separator,m="",b="",w="",y=f===g?1:0;u(p),e("#_give_donation_levels_repeat").on("click","button.cmb-add-group-row",function(){window.setTimeout(function(){p=e("input.give-money-field, input.give-price-field"),u(p)},100)}),e("#poststuff").on("keyup","input.give-money-field, input.give-price-field",function(){m=(e(this).val().match(new RegExp(g,"g"))||[]).length,b=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(g)&&y<m?e(this).qtip("show"):b?e(this).qtip("show"):e(this).qtip("hide"),m=b=""}),e("#poststuff").on("focusout","input.give-money-field, input.give-price-field",function(){return w=t(e(this).val(),!1),t("0",!1)===t(e(this).val(),!1)?(e(this).val(""),!1):(w=w.replace(".",f),-1!==w.indexOf("-")&&(w=w.replace("-","")),void e(this).val(w))}),e(".give-settings-page").on("click","#give-show-sub-nav",function(t){t.preventDefault();var i=e(this).next();return i.is(":hover")||i.toggleClass("give-hidden"),!1}).on("blur","#give-show-sub-nav",function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")}),give_render_responsive_tabs()})}(jQuery),jQuery(window).resize(function(){give_render_responsive_tabs()});
|
assets/js/frontend/give-checkout-global.js
CHANGED
@@ -66,22 +66,21 @@ jQuery(function ($) {
|
|
66 |
* @since 1.2
|
67 |
*/
|
68 |
function format_cc_fields() {
|
69 |
-
give_form = $('form.give-form');
|
70 |
|
71 |
//Loop through forms on page and set CC validation
|
72 |
-
give_form.each(function () {
|
73 |
-
|
74 |
-
var
|
75 |
-
|
|
|
76 |
|
77 |
//Only validate if there is a card field
|
78 |
-
if (card_number.length
|
79 |
-
|
|
|
|
|
80 |
}
|
81 |
-
|
82 |
-
card_number.payment('formatCardNumber');
|
83 |
-
card_cvc.payment('formatCardCVC');
|
84 |
-
card_expiry.payment('formatCardExpiry');
|
85 |
});
|
86 |
|
87 |
}
|
@@ -89,7 +88,7 @@ jQuery(function ($) {
|
|
89 |
format_cc_fields();
|
90 |
|
91 |
// Trigger formatting function when gateway changes
|
92 |
-
doc.on('give_gateway_loaded', function () {
|
93 |
format_cc_fields();
|
94 |
});
|
95 |
|
@@ -478,7 +477,7 @@ jQuery(function ($) {
|
|
478 |
price_id = selected_field.data('price-id');
|
479 |
|
480 |
// Check if price ID blank because of dropdown type
|
481 |
-
if (
|
482 |
price_id = selected_field.find('option:selected').data('price-id');
|
483 |
}
|
484 |
|
66 |
* @since 1.2
|
67 |
*/
|
68 |
function format_cc_fields() {
|
69 |
+
var $give_form = $('form.give-form');
|
70 |
|
71 |
//Loop through forms on page and set CC validation
|
72 |
+
$give_form.each(function (index, form) {
|
73 |
+
form = $(form);
|
74 |
+
var card_number = form.find('.card-number'),
|
75 |
+
card_cvc = form.find('.card-cvc'),
|
76 |
+
card_expiry = form.find('.card-expiry');
|
77 |
|
78 |
//Only validate if there is a card field
|
79 |
+
if ( card_number.length ) {
|
80 |
+
card_number.payment('formatCardNumber');
|
81 |
+
card_cvc.payment('formatCardCVC');
|
82 |
+
card_expiry.payment('formatCardExpiry');
|
83 |
}
|
|
|
|
|
|
|
|
|
84 |
});
|
85 |
|
86 |
}
|
88 |
format_cc_fields();
|
89 |
|
90 |
// Trigger formatting function when gateway changes
|
91 |
+
doc.on('give_gateway_loaded', function ( e ) {
|
92 |
format_cc_fields();
|
93 |
});
|
94 |
|
477 |
price_id = selected_field.data('price-id');
|
478 |
|
479 |
// Check if price ID blank because of dropdown type
|
480 |
+
if ( undefined == price_id ) {
|
481 |
price_id = selected_field.find('option:selected').data('price-id');
|
482 |
}
|
483 |
|
assets/js/frontend/give-checkout-global.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){
|
1 |
+
var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){var a=e("form.give-form");a.each(function(a,i){i=e(i);var t=i.find(".card-number"),n=i.find(".card-cvc"),o=i.find(".card-expiry");t.length&&(t.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})}function t(e,a){return"after"==give_global_vars.currency_pos&&(a.format="%v%s"),accounting.formatMoney(e,a).trim()}function n(e){return Math.abs(parseFloat(accounting.unformat(e,give_global_vars.decimal_separator)))}function o(e){var a={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals};return accounting.formatMoney(e,a)}function r(a){var i=[];return a.hasClass("give-form-type-multi")?(e.each(a.find(".give-donation-levels-wrap [data-price-id] "),function(e,a){a=a instanceof jQuery?a:jQuery(a),i.push({price_id:a.data("price-id"),amount:n(a.val())})}),i):i}function d(a){var i=a.parents("form"),t=a.val(),o=a.data("price-id");return void 0==o&&(o=a.find("option:selected").data("price-id")),"custom"===t?(i.find(".give-amount-top").val("").focus(),!1):(i.find(".give-amount-top").val(t),i.find("span.give-amount-top").text(t),e(".give-donation-amount .give-text-input",i).data("amount",n(i.find(".give-final-total-amount").data("total"))),i.find(".give-donation-amount .give-text-input").trigger("blur",[i,t,o]),void e(document).trigger("give_donation_value_updated",[i,t,o]))}function l(){var a=s("form-id"),i=s("payment-mode");if(!a||!i)return!1;var t=e("body").find("#give-form-"+a+"-wrap"),n=t.find("form.give-form"),o=t.hasClass("give-display-modal"),r=t.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+i+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var l=s("level-id"),v=n.find('*[data-price-id="'+l+'"]');v.length>0&&d(v),o?give_open_form_modal(t,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())}function s(e,a){a||(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),t=i.exec(a);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}var v=e(document);v.on("change","#give_cc_address input.card_state, #give_cc_address select",a),i(),v.on("give_gateway_loaded",function(e){i()}),e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},v.on("keyup change",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(){var a=e(this),i=a.parents("form.give-form"),t=a.attr("id"),n=i.find(".card-number"),o=i.find(".card-cvc"),r=i.find(".card-expiry"),d=e.payment.cardType(n.val());if(t.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),a.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d),n.toggleError(!e.payment.validateCardNumber(n.val()))}if(t.indexOf("card_cvc")>-1&&o.toggleError(!e.payment.validateCardCVC(o.val(),d)),t.indexOf("card_expiry")>-1){r.toggleError(!e.payment.validateCardExpiry(r.payment("cardExpiryVal")));var s=r.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}),v.on("submit","#give_payment_mode",function(){var a=e("#give-gateway option:selected").val();if(0==a)return alert(give_global_vars.no_gateway),!1}),v.on("click","#give-payment-mode-select input",function(){var a=e(this).parents("form"),i=e("#give-payment-mode-select li"),t=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),n="";i.removeClass("give-gateway-option-selected"),i.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),n=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),a.attr("action",a.attr("action").replace("payment-mode="+t,"payment-mode="+n))}),v.on("focus",".give-donation-amount .give-text-input",function(a){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var t=i.find(".give-final-total-amount").data("total");e(this).data("amount",n(t)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),v.on("blur",".give-donation-amount .give-text-input",function(a,i,d,l){var s=void 0!=i?i:e(this).closest("form"),v=e(this).data("amount"),c=void 0!=d?d:e(this).val(),g=s.find('input[name="give-form-minimum"]'),u=n(g.val()),m=0==c?u:n(c),p=r(e(this).parents("form")),f="";l=void 0!=l?l:-1;var _={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals},h=t(m,_);if(e(this).val(h),!p.length||-1<l||(e.each(p,function(e,a){if(a.amount===m)return l=a.price_id,!1}),!(-1<l)&&u<=m&&(l="custom")),(m<u||m<1)&&-1===l){e(this).addClass("give-invalid-amount"),_.symbol=give_global_vars.currency_sign,f=give_global_vars.bad_minimum+" "+t(u,_),s.find(".give-submit").prop("disabled",!0);var y=s.find(".give-invalid-minimum");if(0===y.length){var b=e('<div class="give_error give-invalid-minimum">'+f+"</div>").hide();b.insertBefore(s.find(".give-total-wrap")).show()}}else e(this).removeClass("give-invalid-amount"),s.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),s.find(".give-submit").prop("disabled",!1);if(v!==m&&(_.symbol=give_global_vars.currency_sign,s.find(".give-final-total-amount").data("total",m).text(t(m,_))),-1!==l)switch(e('input[name="give-price-id"]',s).val(l),s.find(".give-amount-hidden").val(o(m)),s.find(".give-default-level").removeClass("give-default-level"),!0){case!!s.find(".give-radio-input").length:s.find(".give-radio-input").prop("checked",!1),s.find('.give-radio-input[data-price-id="'+l+'"]').prop("checked",!0).addClass("give-default-level");break;case!!s.find("button.give-donation-level-btn").length:s.find("button.give-donation-level-btn").blur(),s.find('button.give-donation-level-btn[data-price-id="'+l+'"]').focus().addClass("give-default-level");break;case!!s.find("select.give-select-level").length:s.find("select.give-select-level option").prop("selected",!1),s.find('select.give-select-level option[data-price-id="'+l+'"]').prop("selected",!0).addClass("give-default-level")}e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),v.on("click touchend",".give-donation-level-btn",function(a){a.preventDefault(),d(e(this))}),v.on("click touchend",".give-radio-input-level",function(a){d(e(this))}),v.on("change",".give-select-level",function(a){d(e(this))}),l(),v.on("click",".give_terms_links",function(a){a.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1})});
|
assets/js/frontend/give.all.min.js
CHANGED
@@ -6,5 +6,5 @@
|
|
6 |
!function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(s){"use strict";function o(t,e,i,o){this.id=i,this.target=t,this.tooltip=k,this.elements={target:t},this._id=R+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:s(),disabled:I,attr:o,onTooltip:I,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=I}function n(t){return t===k||"object"!==s.type(t)}function r(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function a(t){var e,i,o,a;return n(t)?I:(n(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,n(e)||e.jquery||e.done?e=t.content={text:i=r(e)?I:e}:i=e.text,"ajax"in e&&(o=e.ajax,a=o&&o.once!==I,delete e.ajax,e.text=function(t,e){var n=i||s(this).attr(e.options.content.attr)||"Loading...",r=s.ajax(s.extend({},o,{context:e})).then(o.success,k,o.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return a?n:(e.set("content.text",n),r)}),"title"in e&&(s.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),r(e.title||I)&&(e.title=I))),"position"in t&&n(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&n(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===W?{ready:W}:{event:t.show}),"hide"in t&&n(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&n(t.style)&&(t.style={classes:t.style}),s.each(V,function(){this.sanitize&&this.sanitize(t)}),t)}function h(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)s<n.length&&(i=o);return[i||t,n.pop()]}function l(t,e){var i,s,o;for(i in this.checks)for(s in this.checks[i])(o=new RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}function c(t){return Y.concat("").join(t?"-"+t+" ":" ")}function d(t,e){return e>0?setTimeout(s.proxy(t,this),e):void t.call(this)}function p(t){this.tooltip.hasClass(tt)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=d.call(this,function(){this.toggle(W,t)},this.options.show.delay))}function u(t){if(!this.tooltip.hasClass(tt)&&!this.destroyed){var e=s(t.relatedTarget),i=e.closest(G)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(n){}else this.timers.hide=d.call(this,function(){this.toggle(I,t)},this.options.hide.delay,this)}}function f(t){!this.tooltip.hasClass(tt)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=d.call(this,function(){this.hide(t)},this.options.hide.inactive))}function g(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function m(t,i,o){s(e.body).delegate(t,(i.split?i:i.join("."+R+" "))+"."+R,function(){var t=q.api[s.attr(this,X)];t&&!t.disabled&&o.apply(t,arguments)})}function v(t,i,n){var r,h,l,c,d,p=s(e.body),u=t[0]===e?p:t,f=t.metadata?t.metadata(n.metadata):k,g="html5"===n.metadata.type&&f?f[n.metadata.name]:k,m=t.data(n.metadata.name||"qtipopts");try{m="string"==typeof m?s.parseJSON(m):m}catch(v){}if(c=s.extend(W,{},q.defaults,n,"object"==typeof m?a(m):k,a(g||f)),h=c.position,c.id=i,"boolean"==typeof c.content.text){if(l=t.attr(c.content.attr),c.content.attr===I||!l)return I;c.content.text=l}if(h.container.length||(h.container=p),h.target===I&&(h.target=u),c.show.target===I&&(c.show.target=u),c.show.solo===W&&(c.show.solo=h.container.closest("body")),c.hide.target===I&&(c.hide.target=u),c.position.viewport===W&&(c.position.viewport=h.container),h.container=h.container.eq(0),h.at=new j(h.at,W),h.my=new j(h.my),t.data(R))if(c.overwrite)t.qtip("destroy",!0);else if(c.overwrite===I)return I;return t.attr(H,i),c.suppress&&(d=t.attr("title"))&&t.removeAttr("title").attr(it,d).attr("title",""),r=new o(t,c,i,(!!l)),t.data(R,r),r}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e){var s,o,n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+vt.join(n+" ")+n).split(" "),a=0;if(mt[e])return t.css(mt[e]);for(;s=r[a++];)if((o=t.css(s))!==i)return mt[e]=s,o}function w(t,e){return Math.ceil(parseFloat(b(t,e)))}function _(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.init(this.qtip=t)}function x(t,e){this.options=e,this._ns="-modal",this.init(this.qtip=t)}function C(t,e){this._ns="ie6",this.init(this.qtip=t)}var q,T,j,z,M,W=!0,I=!1,k=null,E="x",S="y",A="width",L="height",P="top",D="left",B="bottom",F="right",N="center",O="flipinvert",$="shift",V={},R="qtip",H="data-hasqtip",X="data-qtip-id",Y=["ui-widget","ui-tooltip"],G="."+R,U="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Q=R+"-fixed",J=R+"-default",K=R+"-focus",Z=R+"-hover",tt=R+"-disabled",et="_replacedByqTip",it="oldtitle",st={ie:function(){for(var t=4,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||I};T=o.prototype,T._when=function(t){return s.when.apply(s,t)},T.render=function(t){if(this.rendered||this.destroyed)return this;var e,i=this,o=this.options,n=this.cache,r=this.elements,a=o.content.text,h=o.content.title,l=o.content.button,c=o.position,d=("."+this._id+" ",[]);return s.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my),this.tooltip=r.tooltip=e=s("<div/>",{id:this._id,"class":[R,J,o.style.classes,n.posClass].join(" "),width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===c.target&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":I,"aria-describedby":this._id+"-content","aria-hidden":W}).toggleClass(tt,this.disabled).attr(X,this.id).data(R,this).appendTo(c.container).append(r.content=s("<div />",{"class":R+"-content",id:this._id+"-content","aria-atomic":W})),this.rendered=-1,this.positioning=W,h&&(this._createTitle(),s.isFunction(h)||d.push(this._updateTitle(h,I))),l&&this._createButton(),s.isFunction(a)||d.push(this._updateContent(a,I)),this.rendered=W,this._setWidget(),s.each(V,function(t){var e;"render"===this.initialize&&(e=this(i))&&(i.plugins[t]=e)}),this._unassignEvents(),this._assignEvents(),this._when(d).then(function(){i._trigger("render"),i.positioning=I,i.hiddenDuringWait||!o.show.ready&&!t||i.toggle(W,n.event,I),i.hiddenDuringWait=I}),q.api[this.id]=this,this},T.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=W;var t,e=this.target,i=e.attr(it);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(t){this.destroy&&this.destroy()});for(t in this.timers)clearTimeout(this.timers[t]);e.removeData(R).removeAttr(X).removeAttr(H).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(it),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=k,delete q.api[this.id]}}return this.destroyed?this.target:(t===W&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()),this.target)},z=T.checks={builtin:{"^id$":function(t,e,i,o){var n=i===W?q.nextid:i,r=R+"-"+n;n!==I&&n.length>0&&!s("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=o},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new j(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(W)||this.toggle(W))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(J,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},T.get=function(t){if(this.destroyed)return this;var e=h(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var ot=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,nt=/^prerender|show\.ready/i;T.set=function(t,e){if(this.destroyed)return this;var i,o=this.rendered,n=I,r=this.options;this.checks;return"string"==typeof t?(i=t,t={},t[i]=e):t=s.extend({},t),s.each(t,function(e,i){if(o&&nt.test(e))return void delete t[e];var a,l=h(r,e.toLowerCase());a=l[0][l[1]],l[0][l[1]]=i&&i.nodeType?s(i):i,n=ot.test(e)||n,t[e]=[l[0],l[1],i,a]}),a(r),this.positioning=W,s.each(t,s.proxy(l,this)),this.positioning=I,this.rendered&&this.tooltip[0].offsetWidth>0&&n&&this.reposition("mouse"===r.position.target?k:this.cache.event),this},T._update=function(t,e,i){var o=this,n=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,n.event,this)||""),s.isFunction(t.then)?(n.waiting=W,t.then(function(t){return n.waiting=I,o._update(t,e)},k,function(t){return o._update(t,e)})):t===I||!t&&""!==t?I:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){o.rendered&&o.tooltip[0].offsetWidth>0&&o.reposition(n.event,!t.length)}))):I},T._waitForContent=function(t){var e=this.cache;return e.waiting=W,(s.fn.imagesLoaded?t.imagesLoaded():s.Deferred().resolve([])).done(function(){e.waiting=I}).promise()},T._updateContent=function(t,e){this._update(t,this.elements.content,e)},T._updateTitle=function(t,e){this._update(t,this.elements.title,e)===I&&this._removeTitle(I)},T._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{"class":R+"-titlebar "+(this.options.style.widget?c("header"):"")}).append(t.title=s("<div />",{id:e,"class":R+"-title","aria-atomic":W})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},T._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=k,t!==I&&this.reposition())},T._createPosClass=function(t){return R+"-pos-"+(t||this.options.position.my).abbrev()},T.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=W;var n,r,a,h,l=this.cache,c=this.tooltip,d=this.options.position,p=d.target,u=d.my,f=d.at,g=d.viewport,m=d.container,v=d.adjust,y=v.method.split(" "),b=c.outerWidth(I),w=c.outerHeight(I),_=0,x=0,C=c.css("position"),q={left:0,top:0},T=c[0].offsetWidth>0,j=i&&"scroll"===i.type,z=s(t),M=m[0].ownerDocument,k=this.mouse;if(s.isArray(p)&&2===p.length)f={x:D,y:P},q={left:p[0],top:p[1]};else if("mouse"===p)f={x:D,y:P},(!v.mouse||this.options.hide.distance)&&l.origin&&l.origin.pageX?i=l.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=l.event:k&&k.pageX&&(i=k),"static"!==C&&(q=m.offset()),M.body.offsetWidth!==(t.innerWidth||M.documentElement.clientWidth)&&(r=s(e.body).offset()),q={left:i.pageX-q.left+(r&&r.left||0),top:i.pageY-q.top+(r&&r.top||0)},v.mouse&&j&&k&&(q.left-=(k.scrollX||0)-z.scrollLeft(),q.top-=(k.scrollY||0)-z.scrollTop());else{if("event"===p?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?l.target=s(i.target):i.target||(l.target=this.elements.target):"event"!==p&&(l.target=s(p.jquery?p:this.elements.target)),p=l.target,p=s(p).eq(0),0===p.length)return this;p[0]===e||p[0]===t?(_=st.iOS?t.innerWidth:p.width(),x=st.iOS?t.innerHeight:p.height(),p[0]===t&&(q={top:(g||p).scrollTop(),left:(g||p).scrollLeft()})):V.imagemap&&p.is("area")?n=V.imagemap(this,p,f,V.viewport?y:I):V.svg&&p&&p[0].ownerSVGElement?n=V.svg(this,p,f,V.viewport?y:I):(_=p.outerWidth(I),x=p.outerHeight(I),q=p.offset()),n&&(_=n.width,x=n.height,r=n.offset,q=n.position),q=this.reposition.offset(p,q,m),(st.iOS>3.1&&st.iOS<4.1||st.iOS>=4.3&&st.iOS<4.33||!st.iOS&&"fixed"===C)&&(q.left-=z.scrollLeft(),q.top-=z.scrollTop()),(!n||n&&n.adjustable!==I)&&(q.left+=f.x===F?_:f.x===N?_/2:0,q.top+=f.y===B?x:f.y===N?x/2:0)}return q.left+=v.x+(u.x===F?-b:u.x===N?-b/2:0),q.top+=v.y+(u.y===B?-w:u.y===N?-w/2:0),V.viewport?(a=q.adjusted=V.viewport(this,q,d,_,x,b,w),r&&a.left&&(q.left+=r.left),r&&a.top&&(q.top+=r.top),a.my&&(this.position.my=a.my)):q.adjusted={left:0,top:0},l.posClass!==(h=this._createPosClass(this.position.my))&&c.removeClass(l.posClass).addClass(l.posClass=h),this._trigger("move",[q,g.elem||g],i)?(delete q.adjusted,o===I||!T||isNaN(q.left)||isNaN(q.top)||"mouse"===p||!s.isFunction(d.effect)?c.css(q):s.isFunction(d.effect)&&(d.effect.call(c,this,s.extend({},q)),c.queue(function(t){s(this).css({opacity:"",height:""}),st.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=I,this):this},T.reposition.offset=function(t,i,o){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!o[0])return i;var r,a,h,l,c=s(t[0].ownerDocument),d=!!st.ie&&"CSS1Compat"!==e.compatMode,p=o[0];do"static"!==(a=s.css(p,"position"))&&("fixed"===a?(h=p.getBoundingClientRect(),n(c,-1)):(h=s(p).position(),h.left+=parseFloat(s.css(p,"borderLeftWidth"))||0,h.top+=parseFloat(s.css(p,"borderTopWidth"))||0),i.left-=h.left+(parseFloat(s.css(p,"marginLeft"))||0),i.top-=h.top+(parseFloat(s.css(p,"marginTop"))||0),r||"hidden"===(l=s.css(p,"overflow"))||"visible"===l||(r=s(p)));while(p=p.offsetParent);return r&&(r[0]!==c[0]||d)&&n(r,1),i};var rt=(j=T.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,N).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?S:E}).prototype;rt.invert=function(t,e){this[t]=this[t]===D?F:this[t]===F?D:e||this[t]},rt.string=function(t){var e=this.x,i=this.y,s=e!==i?"center"===e||"center"!==i&&(this.precedance===S||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?s.join(" "):s},rt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},rt.clone=function(){return new j(this.string(),this.forceY)},T.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&o.event&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=W),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,h,l,c=t?"show":"hide",d=this.options[c],p=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,f=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=t||1===d.target.length,v=!i||d.target.length<2||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!g),a=!r.is(":animated")&&g===t&&v,h=a?k:!!this._trigger(c,[90]),this.destroyed?this:(h!==I&&t&&this.focus(i),!h||a?this:(s.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(o.origin=s.event.fix(this.mouse)),s.isFunction(u.text)&&this._updateContent(u.text,I),s.isFunction(u.title)&&this._updateTitle(u.title,I),!M&&"mouse"===p.target&&p.adjust.mouse&&(s(e).bind("mousemove."+R,this._storeMouse),M=W),f||r.css("width",r.outerWidth(I)),this.reposition(i,arguments[2]),f||r.css("width",""),d.solo&&("string"==typeof d.solo?s(d.solo):s(G,d.solo)).not(r).not(d.target).qtip("hide",s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,M&&!s(G+'[tracking="true"]:visible',d.solo).not(r).length&&(s(e).unbind("mousemove."+R),M=I),this.blur(i)),l=s.proxy(function(){t?(st.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof d.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),d.effect===I||m===I?(r[c](),l()):s.isFunction(d.effect)?(r.stop(1,1),d.effect.call(r,this),r.queue("fx",function(t){l(),t()})):r.fadeTo(90,t?1:0,l),t&&d.target.trigger("qtip-"+this.id+"-inactive"),this))},T.show=function(t){return this.toggle(W,t)},T.hide=function(t){return this.toggle(I,t)},T.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(G),i=this.tooltip,o=parseInt(i[0].style.zIndex,10),n=q.zindex+e.length;return i.hasClass(K)||this._trigger("focus",[n],t)&&(o!==n&&(e.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+K).qtip("blur",t)),i.addClass(K)[0].style.zIndex=n),this},T.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(K),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},T.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(tt):this.disabled):"boolean"!=typeof t&&(t=W),this.rendered&&this.tooltip.toggleClass(tt,t).attr("aria-disabled",t),this.disabled=!!t,this)},T.enable=function(){return this.disable(I)},T._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o,r=n?o:"Close tooltip";e.button&&e.button.remove(),o.jquery?e.button=o:e.button=s("<a />",{"class":"qtip-close "+(this.options.style.widget?"":R+"-icon"),title:r,"aria-label":r}).prepend(s("<span />",{"class":"ui-icon ui-icon-close",html:"×"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(tt)||t.hide(e),I})},T._updateButton=function(t){if(!this.rendered)return I;var e=this.elements.button;t?this._createButton():e.remove()},T._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(tt);i.removeClass(tt),tt=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(tt,s),i.toggleClass("ui-helper-reset "+c(),t).toggleClass(J,this.options.style.def&&!t),e.content&&e.content.toggleClass(c("content"),t),e.titlebar&&e.titlebar.toggleClass(c("header"),t),e.button&&e.button.toggleClass(R+"-icon",!t)},T._storeMouse=function(t){return(this.mouse=s.event.fix(t)).type="mousemove",this},T._bind=function(t,e,i,o,n){if(t&&i&&e.length){var r="."+this._id+(o?"-"+o:"");return s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this)),this}},T._unbind=function(t,e){return t&&s(t).unbind("."+this._id+(e?"-"+e:"")),this},T._trigger=function(t,e,i){var o=s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||k,this.triggering=t,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=I,!o.isDefaultPrevented()},T._bindEvents=function(t,e,i,o,n,r){var a=i.filter(o).add(o.filter(i)),h=[];a.length&&(s.each(e,function(e,i){var o=s.inArray(i,t);o>-1&&h.push(t.splice(o,1)[0])}),h.length&&(this._bind(a,h,function(t){var e=!!this.rendered&&this.tooltip[0].offsetWidth>0;(e?r:n).call(this,t)}),i=i.not(a),o=o.not(a))),this._bind(i,t,n),this._bind(o,e,r)},T._assignInitialEvents=function(t){function e(t){return this.disabled||this.destroyed?I:(this.cache.event=t&&s.event.fix(t),this.cache.target=t&&s(t.target),clearTimeout(this.timers.show),void(this.timers.show=d.call(this,function(){this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)))}var i=this.options,o=i.show.target,n=i.hide.target,r=i.show.event?s.trim(""+i.show.event).split(" "):[],a=i.hide.event?s.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(t){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=W}),this._bindEvents(r,a,o,n,e,function(){return this.timers?void clearTimeout(this.timers.show):I}),(i.show.ready||i.prerender)&&e.call(this,t)},T._assignEvents=function(){var i=this,o=this.options,n=o.position,r=this.tooltip,a=o.show.target,h=o.hide.target,l=n.container,c=n.viewport,d=s(e),m=(s(e.body),s(t)),v=o.show.event?s.trim(""+o.show.event).split(" "):[],y=o.hide.event?s.trim(""+o.hide.event).split(" "):[];s.each(o.events,function(t,e){i._bind(r,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,r)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(d,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),o.hide.fixed?h=h.add(r.addClass(Q)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(h,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0,o=e.parents(G).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",f,"inactive"),this._bind(h.add(r),q.inactiveEvents,f)),this._bindEvents(v,y,a,h,p,u),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof o.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===n.target&&n.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){return this.cache?void(this.cache.onTarget="mouseenter"===t.type):I}),this._bind(d,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(n.adjust.resize||c.length)&&this._bind(s.event.special.resize?c:m,"resize",g),n.adjust.scroll&&this._bind(m.add(n.container),"scroll",g)},T._unassignEvents=function(){var i=this.options,o=i.show.target,n=i.hide.target,r=s.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});o&&o.toArray&&(r=r.concat(o.toArray())),n&&n.toArray&&(r=r.concat(n.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},s(function(){m(G,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(Q)&&!i.hasClass(tt)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.position.adjust.mouse&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(Z,e)}),m("["+X+"]",U,f)}),q=s.fn.qtip=function(t,e,o){var n=(""+t).toLowerCase(),r=k,h=s.makeArray(arguments).slice(1),l=h[h.length-1],c=this[0]?s.data(this[0],R):k;return!arguments.length&&c||"api"===n?c:"string"==typeof t?(this.each(function(){var t=s.data(this,R);if(!t)return W;if(l&&l.timeStamp&&(t.cache.event=l),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,h);else{if(o===i&&!s.isPlainObject(e))return r=t.get(e),I;t.set(e,o)}}),r!==k?r:this):"object"!=typeof t&&arguments.length?void 0:(c=a(s.extend(W,{},t)),this.each(function(t){var e,i;return i=s.isArray(c.id)?c.id[t]:c.id,i=!i||i===I||i.length<1||q.api[i]?q.nextid++:i,e=v(s(this),i,c),e===I?W:(q.api[i]=e,s.each(V,function(){"initialize"===this.initialize&&this(e)}),void e._assignInitialEvents(l))}))},s.qtip=o,q.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o="title",n=s.data(i,"qtip");if(t===o&&n&&"object"==typeof n&&n.options.suppress)return arguments.length<2?s.attr(i,it):(n&&n.options.content.attr===o&&n.cache.attr&&n.set("content.text",e),this.attr(it,e))}return s.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=(s([]),s.fn["clone"+et].apply(this,arguments));return t||e.filter("["+it+"]").attr("title",function(){return s.attr(this,it)}).removeAttr(it),e}},function(t,e){if(!e||s.fn[t+et])return W;var i=s.fn[t+et]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+et]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(H))try{e.triggerHandler("removeqtip")}catch(o){}s["cleanData"+et].apply(this,arguments)}),q.version="2.2.1",q.nextid=0,q.inactiveEvents=U,q.zindex=15e3,q.defaults={prerender:I,id:I,overwrite:W,suppress:W,content:{text:W,attr:"title",title:I,button:I},position:{my:"top left",at:"bottom right",target:I,container:I,viewport:I,adjust:{x:0,y:0,mouse:W,scroll:W,resize:W,method:"flipinvert flipinvert"},effect:function(t,e,i){s(this).animate(e,{duration:200,queue:I})}},show:{target:I,event:"mouseenter",effect:W,delay:90,solo:I,ready:I,autofocus:I},hide:{target:I,event:"mouseleave",effect:W,delay:0,fixed:I,inactive:I,leave:"window",distance:I},style:{classes:"",widget:I,width:I,height:I,def:W},events:{render:k,move:k,show:k,hide:k,toggle:k,visible:k,hidden:k,focus:k,blur:k}};var at,ht="margin",lt="border",ct="color",dt="background-color",pt="transparent",ut=" !important",ft=!!e.createElement("canvas").getContext,gt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,mt={},vt=["Webkit","O","Moz","ms"];if(ft)var yt=t.devicePixelRatio||1,bt=function(){var t=e.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),wt=yt/bt;else var _t=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};s.extend(_.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=s("<div />",{"class":R+"-tip"}).prependTo(t.tooltip),ft?(e=s("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=_t("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(s("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===P||t.y===N&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(W))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===I||e===I?t=I:t===W?t=new j(e.string()):t.string||(t=new j(t),t.fixed=W),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=lt+y(e)+"Width";return(i?w(i,o):w(s.content,o)||w(this._useTitle(t)&&s.titlebar||s.content,o)||w(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=lt+y(t.y)+y(t.x)+"Radius";return st.ie<9?0:w(this._useTitle(t)&&e.titlebar||e.content,i)||w(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||gt.test(s)?I:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),o=lt+y(t[t.precedance])+y(ct),n=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,dt)||r(n,dt)||r(e.content,dt)||r(e.tooltip,dt)||i.css(dt),a[1]=r(i,o,ct)||r(n,o,ct)||r(e.content,o,ct)||r(e.tooltip,o,ct)||e.tooltip.css(o),s("*",i).add(i).css("cssText",dt+":"+pt+ut+";"+lt+":0"+ut+";"),a},_calculateSize:function(t){var e,i,s,o=t.precedance===S,n=this.options.width,r=this.options.height,a="c"===t.abbrev(),h=(o?n:r)*(a?.5:1),l=Math.pow,c=Math.round,d=Math.sqrt(l(h,2)+l(r,2)),p=[this.border/h*d,this.border/r*d];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),e=d+p[2]+p[3]+(a?0:p[0]),i=e/d,s=[c(i*n),c(i*r)],o?s:s.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var s=e[0]*i,o=e[1]*i,n=Math.ceil(s/2),r=Math.ceil(o/2),a={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,n,0,s,o],bc:[0,0,s,0,n,o],rc:[0,0,s,r,0,o],lc:[s,0,s,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(ft||st.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var o,n,r,a,h,l,c,d,p=this.qtip.elements,u=this.element,f=u.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;e||(e=this.qtip.cache.corner||this.corner),v===I?v=e:(v=new j(v),v.precedance=e.precedance,"inherit"===v.x?v.x=e.x:"inherit"===v.y?v.y=e.y:v.x===v.y&&(v[e.precedance]=e[e.precedance])),n=v.precedance,e.precedance===E?this._swapDimensions():this._resetDimensions(),o=this.color=this._parseColours(e),o[1]!==pt?(d=this.border=this._parseWidth(e,e[e.precedance]),g.border&&d<1&&!gt.test(o[1])&&(o[0]=o[1]),this.border=d=g.border!==W?g.border:d):this.border=d=0,c=this.size=this._calculateSize(e),u.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),l=e.precedance===S?[y(v.x===D?d:v.x===F?c[0]-m[0]-d:(c[0]-m[0])/2),y(v.y===P?c[1]-m[1]:0)]:[y(v.x===D?c[0]-m[0]:0),y(v.y===P?d:v.y===B?c[1]-m[1]-d:(c[1]-m[1])/2)],ft?(r=f[0].getContext("2d"),r.restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,wt),h=this._calculateTip(v,this.size,wt),f.attr(A,c[0]*wt).attr(L,c[1]*wt),f.css(A,c[0]).css(L,c[1]),this._drawCoords(r,h),r.fillStyle=o[1],r.fill(),r.translate(l[0]*wt,l[1]*wt),this._drawCoords(r,a),r.fillStyle=o[0],r.fill()):(a=this._calculateTip(v),a="m"+a[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",l[2]=d&&/^(r|b)/i.test(e.string())?8===st.ie?2:1:0,f.css({coordsize:c[0]+d+" "+(c[1]+d),antialias:""+(v.string().indexOf(N)>-1),left:l[0]-l[2]*Number(n===E),top:l[1]-l[2]*Number(n===S),width:c[0]+d,height:c[1]+d}).each(function(t){var e=s(this);e[e.prop?"prop":"attr"]({coordsize:c[0]+d+" "+(c[1]+d),path:a,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!(!d&&!t)),!t&&e.html(_t("stroke",'weight="'+2*d+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){p.tip.css({display:"inline-block",visibility:"visible"})},1),i!==I&&this.calculate(e,c)},calculate:function(t,e){if(!this.enabled)return I;var i,o,n=this,r=this.qtip.elements,a=this.element,h=this.options.offset,l=(r.tooltip.hasClass("ui-widget"),
|
7 |
{});return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),o=[t.x,t.y],i===E&&o.reverse(),s.each(o,function(s,o){var a,c,d;o===N?(a=i===S?D:P,l[a]="50%",l[ht+"-"+a]=-Math.round(e[i===S?0:1]/2)+h):(a=n._parseWidth(t,o,r.tooltip),c=n._parseWidth(t,o,r.content),d=n._parseRadius(t),l[o]=Math.max(-n.border,s?c:h+(d>a?d:-a)))}),l[t[i]]-=e[i===E?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(l),l},reposition:function(t,e,s,o){function n(t,e,i,s,o){t===$&&c.precedance===e&&d[s]&&c[i]!==N?c.precedance=c.precedance===E?S:E:t!==$&&d[s]&&(c[e]=c[e]===N?d[s]>0?s:o:c[e]===s?o:s)}function r(t,e,o){c[t]===N?m[ht+"-"+e]=g[t]=a[ht+"-"+e]-d[e]:(h=a[o]!==i?[d[e],-a[e]]:[-d[e],a[e]],(g[t]=Math.max(h[0],h[1]))>h[0]&&(s[e]-=d[e],g[e]=I),m[a[o]!==i?o:e]=g[t])}if(this.enabled){var a,h,l=e.cache,c=this.corner.clone(),d=s.adjusted,p=e.options.position.adjust.method.split(" "),u=p[0],f=p[1]||p[0],g={left:I,top:I,x:0,y:0},m={};this.corner.fixed!==W&&(n(u,E,S,D,F),n(f,S,E,P,B),c.string()===l.corner.string()&&l.cornerTop===d.top&&l.cornerLeft===d.left||this.update(c,I)),a=this.calculate(c),a.right!==i&&(a.left=-a.right),a.bottom!==i&&(a.top=-a.bottom),a.user=this.offset,(g.left=u===$&&!!d.left)&&r(E,D,F),(g.top=f===$&&!!d.top)&&r(S,P,B),this.element.css(m).toggle(!(g.x&&g.y||c.x===N&&g.y||c.y===N&&g.x)),s.left-=a.left.charAt?a.user:u!==$||g.top||!g.left&&!g.top?a.left+this.border:0,s.top-=a.top.charAt?a.user:f!==$||g.left||!g.left&&!g.top?a.top+this.border:0,l.cornerLeft=d.left,l.cornerTop=d.top,l.corner=c.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),at=V.tip=function(t){return new _(t,t.options.style.tip)},at.initialize="render",at.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=W)}},z.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},s.extend(W,q.defaults,{style:{tip:{corner:W,mimic:I,width:6,height:6,border:W,offset:0}}});var xt,Ct,qt="qtip-modal",Tt="."+qt;Ct=function(){function t(t){if(s.expr[":"].focusable)return s.expr[":"].focusable;var e,i,o,n=!isNaN(s.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(e=t.parentNode,i=e.name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&(o=s("img[usemap=#"+i+"]")[0],!!o&&o.is(":visible"))):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r?t.href||n:n}function i(t){c.length<1&&t.length?t.not("body").blur():c.first().focus()}function o(t){if(h.is(":visible")){var e,o=s(t.target),a=n.tooltip,l=o.closest(G);e=l.length<1?I:parseInt(l[0].style.zIndex,10)>parseInt(a[0].style.zIndex,10),e||o.closest(G)[0]===a[0]||i(o),r=t.target===c[c.length-1]}}var n,r,a,h,l=this,c={};s.extend(l,{init:function(){return h=l.elem=s("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return I}}).hide(),s(e.body).bind("focusin"+Tt,o),s(e).bind("keydown"+Tt,function(t){n&&n.options.show.modal.escape&&27===t.keyCode&&n.hide(t)}),h.bind("click"+Tt,function(t){n&&n.options.show.modal.blur&&n.hide(t)}),l},update:function(e){n=e,c=e.options.show.modal.stealfocus!==I?e.tooltip.find("*").filter(function(){return t(this)}):[]},toggle:function(t,o,r){var c=(s(e.body),t.tooltip),d=t.options.show.modal,p=d.effect,u=o?"show":"hide",f=h.is(":visible"),g=s(Tt).filter(":visible:not(:animated)").not(c);return l.update(t),o&&d.stealfocus!==I&&i(s(":focus")),h.toggleClass("blurs",d.blur),o&&h.appendTo(e.body),h.is(":animated")&&f===o&&a!==I||!o&&g.length?l:(h.stop(W,I),s.isFunction(p)?p.call(h,o):p===I?h[u]():h.fadeTo(parseInt(r,10)||90,o?1:0,function(){o||h.hide()}),o||h.queue(function(t){h.css({left:"",top:""}),s(Tt).length||h.detach(),t()}),a=o,n.destroyed&&(n=k),l)}}),l.init()},Ct=new Ct,s.extend(x.prototype,{init:function(t){var e=t.tooltip;return this.options.on?(t.elements.overlay=Ct.elem,e.addClass(qt).css("z-index",q.modal_zindex+s(Tt).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,o){var n=t.originalEvent;if(t.target===e[0])if(n&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(n.type)&&s(n.relatedTarget).closest(Ct.elem[0]).length)try{t.preventDefault()}catch(r){}else(!n||n&&"tooltipsolo"!==n.type)&&this.toggle(t,"tooltipshow"===t.type,o)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var o=s(Tt),n=q.modal_zindex+o.length,r=parseInt(e[0].style.zIndex,10);Ct.elem[0].style.zIndex=n-1,o.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),o.filter("."+K).qtip("blur",t.originalEvent),e.addClass(K)[0].style.zIndex=n,Ct.update(i);try{t.preventDefault()}catch(a){}}},this._ns,this),void t._bind(e,"tooltiphide",function(t){t.target===e[0]&&s(Tt).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)):this},toggle:function(t,e,i){return t&&t.isDefaultPrevented()?this:void Ct.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(qt),this.qtip._unbind(this.qtip.tooltip,this._ns),Ct.toggle(this.qtip,I),delete this.qtip.elements.overlay}}),xt=V.modal=function(t){return new x(t,t.options.show.modal)},xt.sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:"undefined"==typeof t.show.modal.on&&(t.show.modal.on=W))},q.modal_zindex=q.zindex-200,xt.initialize="render",z.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},s.extend(W,q.defaults,{show:{modal:{on:I,effect:W,blur:W,stealfocus:W,escape:W}}}),V.viewport=function(i,s,o,n,r,a,h){function l(t,e,i,o,n,r,a,h,l){var c=s[n],y=w[t],b=_[t],x=i===$,C=y===n?l:y===r?-l:-l/2,q=b===n?h:b===r?-h:-h/2,T=m[n]+v[n]-(u?0:p[n]),j=T-c,z=c+l-(a===A?f:g)-T,M=C-(w.precedance===t||y===w[e]?q:0)-(b===N?h/2:0);return x?(M=(y===n?1:-1)*C,s[n]+=j>0?j:z>0?-z:0,s[n]=Math.max(-p[n]+v[n],c-M,Math.min(Math.max(-p[n]+v[n]+(a===A?f:g),c+M),s[n],"center"===y?c-C:1e9))):(o*=i===O?2:0,j>0&&(y!==n||z>0)?(s[n]-=M+o,d.invert(t,n)):z>0&&(y!==r||j>0)&&(s[n]-=(y===N?-M:M)+o,d.invert(t,r)),s[n]<m&&-s[n]>z&&(s[n]=c,d=w.clone())),s[n]-c}var c,d,p,u,f,g,m,v,y=o.target,b=i.elements.tooltip,w=o.my,_=o.at,x=o.adjust,C=x.method.split(" "),q=C[0],T=C[1]||C[0],j=o.viewport,z=o.container,M=(i.cache,{left:0,top:0});return j.jquery&&y[0]!==t&&y[0]!==e.body&&"none"!==x.method?(p=z.offset()||M,u="static"===z.css("position"),c="fixed"===b.css("position"),f=j[0]===t?j.width():j.outerWidth(I),g=j[0]===t?j.height():j.outerHeight(I),m={left:c?0:j.scrollLeft(),top:c?0:j.scrollTop()},v=j.offset()||M,"shift"===q&&"shift"===T||(d=w.clone()),M={left:"none"!==q?l(E,S,q,x.x,D,F,A,n,a):0,top:"none"!==T?l(S,E,T,x.y,P,B,L,r,h):0,my:d}):M},V.polys={polygon:function(t,e){var i,s,o,n={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:I},r=0,a=[],h=1,l=1,c=0,d=0;for(r=t.length;r--;)i=[parseInt(t[--r],10),parseInt(t[r+1],10)],i[0]>n.position.right&&(n.position.right=i[0]),i[0]<n.position.left&&(n.position.left=i[0]),i[1]>n.position.bottom&&(n.position.bottom=i[1]),i[1]<n.position.top&&(n.position.top=i[1]),a.push(i);if(s=n.width=Math.abs(n.position.right-n.position.left),o=n.height=Math.abs(n.position.bottom-n.position.top),"c"===e.abbrev())n.position={left:n.position.left+n.width/2,top:n.position.top+n.height/2};else{for(;s>0&&o>0&&h>0&&l>0;)for(s=Math.floor(s/2),o=Math.floor(o/2),e.x===D?h=s:e.x===F?h=n.width-s:h+=Math.floor(s/2),e.y===P?l=o:e.y===B?l=n.height-o:l+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)c=a[r][0]-n.position.left,d=a[r][1]-n.position.top,(e.x===D&&c>=h||e.x===F&&c<=h||e.x===N&&(c<h||c>n.width-h)||e.y===P&&d>=l||e.y===B&&d<=l||e.y===N&&(d<l||d>n.height-l))&&a.splice(r,1);n.position={left:a[0][0],top:a[0][1]}}return n},rect:function(t,e,i,s){return{width:Math.abs(i-t),height:Math.abs(s-e),position:{left:Math.min(t,i),top:Math.min(e,s)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,s,o){var n=V.polys._angles[o.abbrev()],r=0===n?0:i*Math.cos(n*Math.PI),a=s*Math.sin(n*Math.PI);return{width:2*i-Math.abs(r),height:2*s-Math.abs(a),position:{left:t+r,top:e+a},adjustable:I}},circle:function(t,e,i,s){return V.polys.ellipse(t,e,i,i,s)}},V.svg=function(t,i,o){for(var n,r,a,h,l,c,d,p,u,f=(s(e),i[0]),g=s(f.ownerSVGElement),m=f.ownerDocument,v=(parseInt(i.css("stroke-width"),10)||0)/2;!f.getBBox;)f=f.parentNode;if(!f.getBBox||!f.parentNode)return I;switch(f.nodeName){case"ellipse":case"circle":p=V.polys.ellipse(f.cx.baseVal.value,f.cy.baseVal.value,(f.rx||f.r).baseVal.value+v,(f.ry||f.r).baseVal.value+v,o);break;case"line":case"polygon":case"polyline":for(d=f.points||[{x:f.x1.baseVal.value,y:f.y1.baseVal.value},{x:f.x2.baseVal.value,y:f.y2.baseVal.value}],p=[],c=-1,h=d.numberOfItems||d.length;++c<h;)l=d.getItem?d.getItem(c):d[c],p.push.apply(p,[l.x,l.y]);p=V.polys.polygon(p,o);break;default:p=f.getBBox(),p={width:p.width,height:p.height,position:{left:p.x,top:p.y}}}return u=p.position,g=g[0],g.createSVGPoint&&(r=f.getScreenCTM(),d=g.createSVGPoint(),d.x=u.left,d.y=u.top,a=d.matrixTransform(r),u.left=a.x,u.top=a.y),m!==e&&"mouse"!==t.position.target&&(n=s((m.defaultView||m.parentWindow).frameElement).offset(),n&&(u.left+=n.left,u.top+=n.top)),m=s(m),u.left+=m.scrollLeft(),u.top+=m.scrollTop(),p},V.imagemap=function(t,e,i,o){e.jquery||(e=s(e));var n,r,a,h,l,c=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),d=s('img[usemap="#'+e.parent("map").attr("name")+'"]'),p=s.trim(e.attr("coords")),u=p.replace(/,$/,"").split(",");if(!d.length)return I;if("polygon"===c)h=V.polys.polygon(u,i);else{if(!V.polys[c])return I;for(a=-1,l=u.length,r=[];++a<l;)r.push(parseInt(u[a],10));h=V.polys[c].apply(this,r.concat(i))}return n=d.offset(),n.left+=Math.ceil((d.outerWidth(I)-d.width())/2),n.top+=Math.ceil((d.outerHeight(I)-d.height())/2),h.position.left+=n.left,h.position.top+=n.top,h};var jt,zt='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';s.extend(C.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=s(t).scrollTop()+"px")},init:function(i){var o=i.tooltip;s("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=s(zt).appendTo(o),i._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=s("<div/>",{id:R+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,s={height:i.outerHeight(I),width:i.outerWidth(I)},o=this.qtip.plugins.tip,n=this.qtip.elements.tip;e=parseInt(i.css("borderLeftWidth"),10)||0,e={left:-e,top:-e},o&&n&&(t="x"===o.corner.precedance?[A,D]:[L,P],e[t[1]]-=n[t[0]]()),this.bgiframe.css(e).css(s)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,s,o=this.qtip.tooltip,n=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,n.height&&o.css(L,n.height),n.width?o.css(A,n.width):(o.css(A,"").appendTo(this.redrawContainer),e=o.width(),e%2<1&&(e+=1),i=o.css("maxWidth")||"",s=o.css("minWidth")||"",t=(i+s).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1)*parseInt(i,10)||e,s=(s.indexOf("%")>-1?t:1)*parseInt(s,10)||0,e=i+s?Math.min(Math.max(e,s),i):e,o.css(A,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),jt=V.ie6=function(t){return 6===st.ie?new C(t):I},jt.initialize="render",z.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
|
8 |
function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),n=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var o=jQuery(e).data();1!=o["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:n,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),setup_give_tooltips(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}function setup_give_tooltips(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}}),jQuery.fn.qtip.zindex=2147483641}var give_scripts,give_global_vars;jQuery(document).ready(function(e){setup_give_tooltips(),e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),n=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return n.show(),e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){n.hide(),give_fl_trigger(),setup_give_tooltips()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger(),setup_give_tooltips()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var n={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val()};e.post(give_global_vars.ajaxurl,n,function(i){"success"==e.trim(i)?(a.find(".give_errors").remove(),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var n=t.get(0);if("function"!=typeof n.checkValidity||n.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var o=e(this).val();e(this).val(give_global_vars.purchase_loading),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(n).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(o),a.fadeOut(),t.find(".give_errors").remove(),t.find('input[type="submit"].give-submit').before(i))})}})});
|
9 |
-
var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){
|
10 |
function give_open_form_modal(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){if(e.hasClass("give-display-button-only")&&!t.data("content")){var n=jQuery(".give-form-content-wrap",e),i=jQuery(".give-form-title",e),r=jQuery(".give-goal-progress",e),a=jQuery(">.give_error",e),o=jQuery(".give_errors",e);n.length&&!jQuery(".give-form-content-wrap",t).length&&(n.hasClass("give_post_form-content")?t.append(n):t.prepend(n)),o.length&&!jQuery(".give_errors",t).length&&o.each(function(e,n){t.prepend(jQuery(n))}),a.length&&!jQuery(">.give_error",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),r.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(r),i.length&&!jQuery(".give-form-title",t).length&&t.prepend(i),t.data("content","loaded")}},open:function(){var i=jQuery(".mfp-content");i.outerWidth()>=500&&i.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-hidden, .give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),t.children().not(n).show()}}})}function give_fl_trigger(){var e={exclude:['#give-amount, .give-select-level, .multiselect, .give-repeater-table input, input[type="url"]'],customEvent:give_fl_custom_events};jQuery(".float-labels-enabled").floatlabels(e)}function give_fl_custom_events(e){e.hasClass("card-number")&&e.after('<span class="off card-type"/>')}function give_change_html5_form_field_validation_message(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),give_global_vars.form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[t.name])})})})}var give_scripts;jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,i){var r=e("form#"+i);if(r.hasClass("float-labels-enabled")){var a=r.find("#give-card-state-wrap"),o=a.find("#card_state"),l=a.find('label[for="card_state"]');l=l.length?l.text().replace(/[*:]/g,"").trim():"","nostates"===n?o.attr("placeholder",l).parent().removeClass("styled select"):(o.children().first().text(l),o.parent().addClass("styled select")),o.parent().removeClass("is-active"),give_fl_trigger()}}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),i=e(this).parents("form"),r="#give-payment-mode-select",a=e(r),o="";return n.hide(),e("li",a).length>1&&(o=r+", "),i.find(o+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),i=n.find("form.give-form"),r=i.find("#give-amount"),a=r.val();return!a||a<=0?(r.focus(),!1):void give_open_form_modal(n,i)})});
|
6 |
!function(t,e,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.qtip&&t(jQuery)}(function(s){"use strict";function o(t,e,i,o){this.id=i,this.target=t,this.tooltip=k,this.elements={target:t},this._id=R+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:s(),disabled:I,attr:o,onTooltip:I,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=I}function n(t){return t===k||"object"!==s.type(t)}function r(t){return!(s.isFunction(t)||t&&t.attr||t.length||"object"===s.type(t)&&(t.jquery||t.then))}function a(t){var e,i,o,a;return n(t)?I:(n(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,n(e)||e.jquery||e.done?e=t.content={text:i=r(e)?I:e}:i=e.text,"ajax"in e&&(o=e.ajax,a=o&&o.once!==I,delete e.ajax,e.text=function(t,e){var n=i||s(this).attr(e.options.content.attr)||"Loading...",r=s.ajax(s.extend({},o,{context:e})).then(o.success,k,o.error).then(function(t){return t&&a&&e.set("content.text",t),t},function(t,i,s){e.destroyed||0===t.status||e.set("content.text",i+": "+s)});return a?n:(e.set("content.text",n),r)}),"title"in e&&(s.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),r(e.title||I)&&(e.title=I))),"position"in t&&n(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&n(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===W?{ready:W}:{event:t.show}),"hide"in t&&n(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&n(t.style)&&(t.style={classes:t.style}),s.each(V,function(){this.sanitize&&this.sanitize(t)}),t)}function h(t,e){for(var i,s=0,o=t,n=e.split(".");o=o[n[s++]];)s<n.length&&(i=o);return[i||t,n.pop()]}function l(t,e){var i,s,o;for(i in this.checks)for(s in this.checks[i])(o=new RegExp(s,"i").exec(t))&&(e.push(o),("builtin"===i||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}function c(t){return Y.concat("").join(t?"-"+t+" ":" ")}function d(t,e){return e>0?setTimeout(s.proxy(t,this),e):void t.call(this)}function p(t){this.tooltip.hasClass(tt)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=d.call(this,function(){this.toggle(W,t)},this.options.show.delay))}function u(t){if(!this.tooltip.hasClass(tt)&&!this.destroyed){var e=s(t.relatedTarget),i=e.closest(G)[0]===this.tooltip[0],o=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||o))try{t.preventDefault(),t.stopImmediatePropagation()}catch(n){}else this.timers.hide=d.call(this,function(){this.toggle(I,t)},this.options.hide.delay,this)}}function f(t){!this.tooltip.hasClass(tt)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=d.call(this,function(){this.hide(t)},this.options.hide.inactive))}function g(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}function m(t,i,o){s(e.body).delegate(t,(i.split?i:i.join("."+R+" "))+"."+R,function(){var t=q.api[s.attr(this,X)];t&&!t.disabled&&o.apply(t,arguments)})}function v(t,i,n){var r,h,l,c,d,p=s(e.body),u=t[0]===e?p:t,f=t.metadata?t.metadata(n.metadata):k,g="html5"===n.metadata.type&&f?f[n.metadata.name]:k,m=t.data(n.metadata.name||"qtipopts");try{m="string"==typeof m?s.parseJSON(m):m}catch(v){}if(c=s.extend(W,{},q.defaults,n,"object"==typeof m?a(m):k,a(g||f)),h=c.position,c.id=i,"boolean"==typeof c.content.text){if(l=t.attr(c.content.attr),c.content.attr===I||!l)return I;c.content.text=l}if(h.container.length||(h.container=p),h.target===I&&(h.target=u),c.show.target===I&&(c.show.target=u),c.show.solo===W&&(c.show.solo=h.container.closest("body")),c.hide.target===I&&(c.hide.target=u),c.position.viewport===W&&(c.position.viewport=h.container),h.container=h.container.eq(0),h.at=new j(h.at,W),h.my=new j(h.my),t.data(R))if(c.overwrite)t.qtip("destroy",!0);else if(c.overwrite===I)return I;return t.attr(H,i),c.suppress&&(d=t.attr("title"))&&t.removeAttr("title").attr(it,d).attr("title",""),r=new o(t,c,i,(!!l)),t.data(R,r),r}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function b(t,e){var s,o,n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+vt.join(n+" ")+n).split(" "),a=0;if(mt[e])return t.css(mt[e]);for(;s=r[a++];)if((o=t.css(s))!==i)return mt[e]=s,o}function w(t,e){return Math.ceil(parseFloat(b(t,e)))}function _(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.init(this.qtip=t)}function x(t,e){this.options=e,this._ns="-modal",this.init(this.qtip=t)}function C(t,e){this._ns="ie6",this.init(this.qtip=t)}var q,T,j,z,M,W=!0,I=!1,k=null,E="x",S="y",A="width",L="height",P="top",D="left",B="bottom",F="right",N="center",O="flipinvert",$="shift",V={},R="qtip",H="data-hasqtip",X="data-qtip-id",Y=["ui-widget","ui-tooltip"],G="."+R,U="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Q=R+"-fixed",J=R+"-default",K=R+"-focus",Z=R+"-hover",tt=R+"-disabled",et="_replacedByqTip",it="oldtitle",st={ie:function(){for(var t=4,i=e.createElement("div");(i.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&i.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||I};T=o.prototype,T._when=function(t){return s.when.apply(s,t)},T.render=function(t){if(this.rendered||this.destroyed)return this;var e,i=this,o=this.options,n=this.cache,r=this.elements,a=o.content.text,h=o.content.title,l=o.content.button,c=o.position,d=("."+this._id+" ",[]);return s.attr(this.target[0],"aria-describedby",this._id),n.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my),this.tooltip=r.tooltip=e=s("<div/>",{id:this._id,"class":[R,J,o.style.classes,n.posClass].join(" "),width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===c.target&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":I,"aria-describedby":this._id+"-content","aria-hidden":W}).toggleClass(tt,this.disabled).attr(X,this.id).data(R,this).appendTo(c.container).append(r.content=s("<div />",{"class":R+"-content",id:this._id+"-content","aria-atomic":W})),this.rendered=-1,this.positioning=W,h&&(this._createTitle(),s.isFunction(h)||d.push(this._updateTitle(h,I))),l&&this._createButton(),s.isFunction(a)||d.push(this._updateContent(a,I)),this.rendered=W,this._setWidget(),s.each(V,function(t){var e;"render"===this.initialize&&(e=this(i))&&(i.plugins[t]=e)}),this._unassignEvents(),this._assignEvents(),this._when(d).then(function(){i._trigger("render"),i.positioning=I,i.hiddenDuringWait||!o.show.ready&&!t||i.toggle(W,n.event,I),i.hiddenDuringWait=I}),q.api[this.id]=this,this},T.destroy=function(t){function e(){if(!this.destroyed){this.destroyed=W;var t,e=this.target,i=e.attr(it);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),s.each(this.plugins,function(t){this.destroy&&this.destroy()});for(t in this.timers)clearTimeout(this.timers[t]);e.removeData(R).removeAttr(X).removeAttr(H).removeAttr("aria-describedby"),this.options.suppress&&i&&e.attr("title",i).removeAttr(it),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=k,delete q.api[this.id]}}return this.destroyed?this.target:(t===W&&"hide"!==this.triggering||!this.rendered?e.call(this):(this.tooltip.one("tooltiphidden",s.proxy(e,this)),!this.triggering&&this.hide()),this.target)},z=T.checks={builtin:{"^id$":function(t,e,i,o){var n=i===W?q.nextid:i,r=R+"-"+n;n!==I&&n.length>0&&!s("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=o},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(this.position[e]=t[e]=new j(i,"at"===e))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(W)||this.toggle(W))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(J,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(s.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking","mouse"===t.target&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},T.get=function(t){if(this.destroyed)return this;var e=h(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};var ot=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,nt=/^prerender|show\.ready/i;T.set=function(t,e){if(this.destroyed)return this;var i,o=this.rendered,n=I,r=this.options;this.checks;return"string"==typeof t?(i=t,t={},t[i]=e):t=s.extend({},t),s.each(t,function(e,i){if(o&&nt.test(e))return void delete t[e];var a,l=h(r,e.toLowerCase());a=l[0][l[1]],l[0][l[1]]=i&&i.nodeType?s(i):i,n=ot.test(e)||n,t[e]=[l[0],l[1],i,a]}),a(r),this.positioning=W,s.each(t,s.proxy(l,this)),this.positioning=I,this.rendered&&this.tooltip[0].offsetWidth>0&&n&&this.reposition("mouse"===r.position.target?k:this.cache.event),this},T._update=function(t,e,i){var o=this,n=this.cache;return this.rendered&&t?(s.isFunction(t)&&(t=t.call(this.elements.target,n.event,this)||""),s.isFunction(t.then)?(n.waiting=W,t.then(function(t){return n.waiting=I,o._update(t,e)},k,function(t){return o._update(t,e)})):t===I||!t&&""!==t?I:(t.jquery&&t.length>0?e.empty().append(t.css({display:"block",visibility:"visible"})):e.html(t),this._waitForContent(e).then(function(t){o.rendered&&o.tooltip[0].offsetWidth>0&&o.reposition(n.event,!t.length)}))):I},T._waitForContent=function(t){var e=this.cache;return e.waiting=W,(s.fn.imagesLoaded?t.imagesLoaded():s.Deferred().resolve([])).done(function(){e.waiting=I}).promise()},T._updateContent=function(t,e){this._update(t,this.elements.content,e)},T._updateTitle=function(t,e){this._update(t,this.elements.title,e)===I&&this._removeTitle(I)},T._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=s("<div />",{"class":R+"-titlebar "+(this.options.style.widget?c("header"):"")}).append(t.title=s("<div />",{id:e,"class":R+"-title","aria-atomic":W})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(t){s(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(t){s(this).toggleClass("ui-state-hover","mouseover"===t.type)}),this.options.content.button&&this._createButton()},T._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=k,t!==I&&this.reposition())},T._createPosClass=function(t){return R+"-pos-"+(t||this.options.position.my).abbrev()},T.reposition=function(i,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=W;var n,r,a,h,l=this.cache,c=this.tooltip,d=this.options.position,p=d.target,u=d.my,f=d.at,g=d.viewport,m=d.container,v=d.adjust,y=v.method.split(" "),b=c.outerWidth(I),w=c.outerHeight(I),_=0,x=0,C=c.css("position"),q={left:0,top:0},T=c[0].offsetWidth>0,j=i&&"scroll"===i.type,z=s(t),M=m[0].ownerDocument,k=this.mouse;if(s.isArray(p)&&2===p.length)f={x:D,y:P},q={left:p[0],top:p[1]};else if("mouse"===p)f={x:D,y:P},(!v.mouse||this.options.hide.distance)&&l.origin&&l.origin.pageX?i=l.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=l.event:k&&k.pageX&&(i=k),"static"!==C&&(q=m.offset()),M.body.offsetWidth!==(t.innerWidth||M.documentElement.clientWidth)&&(r=s(e.body).offset()),q={left:i.pageX-q.left+(r&&r.left||0),top:i.pageY-q.top+(r&&r.top||0)},v.mouse&&j&&k&&(q.left-=(k.scrollX||0)-z.scrollLeft(),q.top-=(k.scrollY||0)-z.scrollTop());else{if("event"===p?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?l.target=s(i.target):i.target||(l.target=this.elements.target):"event"!==p&&(l.target=s(p.jquery?p:this.elements.target)),p=l.target,p=s(p).eq(0),0===p.length)return this;p[0]===e||p[0]===t?(_=st.iOS?t.innerWidth:p.width(),x=st.iOS?t.innerHeight:p.height(),p[0]===t&&(q={top:(g||p).scrollTop(),left:(g||p).scrollLeft()})):V.imagemap&&p.is("area")?n=V.imagemap(this,p,f,V.viewport?y:I):V.svg&&p&&p[0].ownerSVGElement?n=V.svg(this,p,f,V.viewport?y:I):(_=p.outerWidth(I),x=p.outerHeight(I),q=p.offset()),n&&(_=n.width,x=n.height,r=n.offset,q=n.position),q=this.reposition.offset(p,q,m),(st.iOS>3.1&&st.iOS<4.1||st.iOS>=4.3&&st.iOS<4.33||!st.iOS&&"fixed"===C)&&(q.left-=z.scrollLeft(),q.top-=z.scrollTop()),(!n||n&&n.adjustable!==I)&&(q.left+=f.x===F?_:f.x===N?_/2:0,q.top+=f.y===B?x:f.y===N?x/2:0)}return q.left+=v.x+(u.x===F?-b:u.x===N?-b/2:0),q.top+=v.y+(u.y===B?-w:u.y===N?-w/2:0),V.viewport?(a=q.adjusted=V.viewport(this,q,d,_,x,b,w),r&&a.left&&(q.left+=r.left),r&&a.top&&(q.top+=r.top),a.my&&(this.position.my=a.my)):q.adjusted={left:0,top:0},l.posClass!==(h=this._createPosClass(this.position.my))&&c.removeClass(l.posClass).addClass(l.posClass=h),this._trigger("move",[q,g.elem||g],i)?(delete q.adjusted,o===I||!T||isNaN(q.left)||isNaN(q.top)||"mouse"===p||!s.isFunction(d.effect)?c.css(q):s.isFunction(d.effect)&&(d.effect.call(c,this,s.extend({},q)),c.queue(function(t){s(this).css({opacity:"",height:""}),st.ie&&this.style.removeAttribute("filter"),t()})),this.positioning=I,this):this},T.reposition.offset=function(t,i,o){function n(t,e){i.left+=e*t.scrollLeft(),i.top+=e*t.scrollTop()}if(!o[0])return i;var r,a,h,l,c=s(t[0].ownerDocument),d=!!st.ie&&"CSS1Compat"!==e.compatMode,p=o[0];do"static"!==(a=s.css(p,"position"))&&("fixed"===a?(h=p.getBoundingClientRect(),n(c,-1)):(h=s(p).position(),h.left+=parseFloat(s.css(p,"borderLeftWidth"))||0,h.top+=parseFloat(s.css(p,"borderTopWidth"))||0),i.left-=h.left+(parseFloat(s.css(p,"marginLeft"))||0),i.top-=h.top+(parseFloat(s.css(p,"marginTop"))||0),r||"hidden"===(l=s.css(p,"overflow"))||"visible"===l||(r=s(p)));while(p=p.offsetParent);return r&&(r[0]!==c[0]||d)&&n(r,1),i};var rt=(j=T.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,N).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance="t"===i||"b"===i?S:E}).prototype;rt.invert=function(t,e){this[t]=this[t]===D?F:this[t]===F?D:e||this[t]},rt.string=function(t){var e=this.x,i=this.y,s=e!==i?"center"===e||"center"!==i&&(this.precedance===S||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?s.join(" "):s},rt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},rt.clone=function(){return new j(this.string(),this.forceY)},T.toggle=function(t,i){var o=this.cache,n=this.options,r=this.tooltip;if(i){if(/over|enter/.test(i.type)&&o.event&&/out|leave/.test(o.event.type)&&n.show.target.add(i.target).length===n.show.target.length&&r.has(i.relatedTarget).length)return this;o.event=s.event.fix(i)}if(this.waiting&&!t&&(this.hiddenDuringWait=W),!this.rendered)return t?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,h,l,c=t?"show":"hide",d=this.options[c],p=(this.options[t?"hide":"show"],this.options.position),u=this.options.content,f=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=t||1===d.target.length,v=!i||d.target.length<2||o.target[0]===i.target;return(typeof t).search("boolean|number")&&(t=!g),a=!r.is(":animated")&&g===t&&v,h=a?k:!!this._trigger(c,[90]),this.destroyed?this:(h!==I&&t&&this.focus(i),!h||a?this:(s.attr(r[0],"aria-hidden",!t),t?(this.mouse&&(o.origin=s.event.fix(this.mouse)),s.isFunction(u.text)&&this._updateContent(u.text,I),s.isFunction(u.title)&&this._updateTitle(u.title,I),!M&&"mouse"===p.target&&p.adjust.mouse&&(s(e).bind("mousemove."+R,this._storeMouse),M=W),f||r.css("width",r.outerWidth(I)),this.reposition(i,arguments[2]),f||r.css("width",""),d.solo&&("string"==typeof d.solo?s(d.solo):s(G,d.solo)).not(r).not(d.target).qtip("hide",s.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,M&&!s(G+'[tracking="true"]:visible',d.solo).not(r).length&&(s(e).unbind("mousemove."+R),M=I),this.blur(i)),l=s.proxy(function(){t?(st.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof d.autofocus&&s(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),d.effect===I||m===I?(r[c](),l()):s.isFunction(d.effect)?(r.stop(1,1),d.effect.call(r,this),r.queue("fx",function(t){l(),t()})):r.fadeTo(90,t?1:0,l),t&&d.target.trigger("qtip-"+this.id+"-inactive"),this))},T.show=function(t){return this.toggle(W,t)},T.hide=function(t){return this.toggle(I,t)},T.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=s(G),i=this.tooltip,o=parseInt(i[0].style.zIndex,10),n=q.zindex+e.length;return i.hasClass(K)||this._trigger("focus",[n],t)&&(o!==n&&(e.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+K).qtip("blur",t)),i.addClass(K)[0].style.zIndex=n),this},T.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(K),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},T.disable=function(t){return this.destroyed?this:("toggle"===t?t=!(this.rendered?this.tooltip.hasClass(tt):this.disabled):"boolean"!=typeof t&&(t=W),this.rendered&&this.tooltip.toggleClass(tt,t).attr("aria-disabled",t),this.disabled=!!t,this)},T.enable=function(){return this.disable(I)},T._createButton=function(){var t=this,e=this.elements,i=e.tooltip,o=this.options.content.button,n="string"==typeof o,r=n?o:"Close tooltip";e.button&&e.button.remove(),o.jquery?e.button=o:e.button=s("<a />",{"class":"qtip-close "+(this.options.style.widget?"":R+"-icon"),title:r,"aria-label":r}).prepend(s("<span />",{"class":"ui-icon ui-icon-close",html:"×"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(e){return i.hasClass(tt)||t.hide(e),I})},T._updateButton=function(t){if(!this.rendered)return I;var e=this.elements.button;t?this._createButton():e.remove()},T._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(tt);i.removeClass(tt),tt=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(tt,s),i.toggleClass("ui-helper-reset "+c(),t).toggleClass(J,this.options.style.def&&!t),e.content&&e.content.toggleClass(c("content"),t),e.titlebar&&e.titlebar.toggleClass(c("header"),t),e.button&&e.button.toggleClass(R+"-icon",!t)},T._storeMouse=function(t){return(this.mouse=s.event.fix(t)).type="mousemove",this},T._bind=function(t,e,i,o,n){if(t&&i&&e.length){var r="."+this._id+(o?"-"+o:"");return s(t).bind((e.split?e:e.join(r+" "))+r,s.proxy(i,n||this)),this}},T._unbind=function(t,e){return t&&s(t).unbind("."+this._id+(e?"-"+e:"")),this},T._trigger=function(t,e,i){var o=s.Event("tooltip"+t);return o.originalEvent=i&&s.extend({},i)||this.cache.event||k,this.triggering=t,this.tooltip.trigger(o,[this].concat(e||[])),this.triggering=I,!o.isDefaultPrevented()},T._bindEvents=function(t,e,i,o,n,r){var a=i.filter(o).add(o.filter(i)),h=[];a.length&&(s.each(e,function(e,i){var o=s.inArray(i,t);o>-1&&h.push(t.splice(o,1)[0])}),h.length&&(this._bind(a,h,function(t){var e=!!this.rendered&&this.tooltip[0].offsetWidth>0;(e?r:n).call(this,t)}),i=i.not(a),o=o.not(a))),this._bind(i,t,n),this._bind(o,e,r)},T._assignInitialEvents=function(t){function e(t){return this.disabled||this.destroyed?I:(this.cache.event=t&&s.event.fix(t),this.cache.target=t&&s(t.target),clearTimeout(this.timers.show),void(this.timers.show=d.call(this,function(){this.render("object"==typeof t||i.show.ready)},i.prerender?0:i.show.delay)))}var i=this.options,o=i.show.target,n=i.hide.target,r=i.show.event?s.trim(""+i.show.event).split(" "):[],a=i.hide.event?s.trim(""+i.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(t){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(i.show.event)&&!/mouse(out|leave)/i.test(i.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(t){this._storeMouse(t),this.cache.onTarget=W}),this._bindEvents(r,a,o,n,e,function(){return this.timers?void clearTimeout(this.timers.show):I}),(i.show.ready||i.prerender)&&e.call(this,t)},T._assignEvents=function(){var i=this,o=this.options,n=o.position,r=this.tooltip,a=o.show.target,h=o.hide.target,l=n.container,c=n.viewport,d=s(e),m=(s(e.body),s(t)),v=o.show.event?s.trim(""+o.show.event).split(" "):[],y=o.hide.event?s.trim(""+o.hide.event).split(" "):[];s.each(o.events,function(t,e){i._bind(r,"toggle"===t?["tooltipshow","tooltiphide"]:["tooltip"+t],e,null,r)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(d,["mouseout","blur"],function(t){/select|option/.test(t.target.nodeName)||t.relatedTarget||this.hide(t)}),o.hide.fixed?h=h.add(r.addClass(Q)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(h,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(t){var e=s(t.target),i=this.rendered&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0,o=e.parents(G).filter(this.tooltip[0]).length>0;e[0]===this.target[0]||e[0]===this.tooltip[0]||o||this.target.has(e[0]).length||!i||this.hide(t)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",f,"inactive"),this._bind(h.add(r),q.inactiveEvents,f)),this._bindEvents(v,y,a,h,p,u),this._bind(a.add(r),"mousemove",function(t){if("number"==typeof o.hide.distance){var e=this.cache.origin||{},i=this.options.hide.distance,s=Math.abs;(s(t.pageX-e.pageX)>=i||s(t.pageY-e.pageY)>=i)&&this.hide(t)}this._storeMouse(t)}),"mouse"===n.target&&n.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(t){return this.cache?void(this.cache.onTarget="mouseenter"===t.type):I}),this._bind(d,"mousemove",function(t){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(tt)&&this.tooltip[0].offsetWidth>0&&this.reposition(t)})),(n.adjust.resize||c.length)&&this._bind(s.event.special.resize?c:m,"resize",g),n.adjust.scroll&&this._bind(m.add(n.container),"scroll",g)},T._unassignEvents=function(){var i=this.options,o=i.show.target,n=i.hide.target,r=s.grep([this.elements.target[0],this.rendered&&this.tooltip[0],i.position.container[0],i.position.viewport[0],i.position.container.closest("html")[0],t,e],function(t){return"object"==typeof t});o&&o.toArray&&(r=r.concat(o.toArray())),n&&n.toArray&&(r=r.concat(n.toArray())),this._unbind(r)._unbind(r,"destroy")._unbind(r,"inactive")},s(function(){m(G,["mouseenter","mouseleave"],function(t){var e="mouseenter"===t.type,i=s(t.currentTarget),o=s(t.relatedTarget||t.target),n=this.options;e?(this.focus(t),i.hasClass(Q)&&!i.hasClass(tt)&&clearTimeout(this.timers.hide)):"mouse"===n.position.target&&n.position.adjust.mouse&&n.hide.event&&n.show.target&&!o.closest(n.show.target[0]).length&&this.hide(t),i.toggleClass(Z,e)}),m("["+X+"]",U,f)}),q=s.fn.qtip=function(t,e,o){var n=(""+t).toLowerCase(),r=k,h=s.makeArray(arguments).slice(1),l=h[h.length-1],c=this[0]?s.data(this[0],R):k;return!arguments.length&&c||"api"===n?c:"string"==typeof t?(this.each(function(){var t=s.data(this,R);if(!t)return W;if(l&&l.timeStamp&&(t.cache.event=l),!e||"option"!==n&&"options"!==n)t[n]&&t[n].apply(t,h);else{if(o===i&&!s.isPlainObject(e))return r=t.get(e),I;t.set(e,o)}}),r!==k?r:this):"object"!=typeof t&&arguments.length?void 0:(c=a(s.extend(W,{},t)),this.each(function(t){var e,i;return i=s.isArray(c.id)?c.id[t]:c.id,i=!i||i===I||i.length<1||q.api[i]?q.nextid++:i,e=v(s(this),i,c),e===I?W:(q.api[i]=e,s.each(V,function(){"initialize"===this.initialize&&this(e)}),void e._assignInitialEvents(l))}))},s.qtip=o,q.api={},s.each({attr:function(t,e){if(this.length){var i=this[0],o="title",n=s.data(i,"qtip");if(t===o&&n&&"object"==typeof n&&n.options.suppress)return arguments.length<2?s.attr(i,it):(n&&n.options.content.attr===o&&n.cache.attr&&n.set("content.text",e),this.attr(it,e))}return s.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=(s([]),s.fn["clone"+et].apply(this,arguments));return t||e.filter("["+it+"]").attr("title",function(){return s.attr(this,it)}).removeAttr(it),e}},function(t,e){if(!e||s.fn[t+et])return W;var i=s.fn[t+et]=s.fn[t];s.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),s.ui||(s["cleanData"+et]=s.cleanData,s.cleanData=function(t){for(var e,i=0;(e=s(t[i])).length;i++)if(e.attr(H))try{e.triggerHandler("removeqtip")}catch(o){}s["cleanData"+et].apply(this,arguments)}),q.version="2.2.1",q.nextid=0,q.inactiveEvents=U,q.zindex=15e3,q.defaults={prerender:I,id:I,overwrite:W,suppress:W,content:{text:W,attr:"title",title:I,button:I},position:{my:"top left",at:"bottom right",target:I,container:I,viewport:I,adjust:{x:0,y:0,mouse:W,scroll:W,resize:W,method:"flipinvert flipinvert"},effect:function(t,e,i){s(this).animate(e,{duration:200,queue:I})}},show:{target:I,event:"mouseenter",effect:W,delay:90,solo:I,ready:I,autofocus:I},hide:{target:I,event:"mouseleave",effect:W,delay:0,fixed:I,inactive:I,leave:"window",distance:I},style:{classes:"",widget:I,width:I,height:I,def:W},events:{render:k,move:k,show:k,hide:k,toggle:k,visible:k,hidden:k,focus:k,blur:k}};var at,ht="margin",lt="border",ct="color",dt="background-color",pt="transparent",ut=" !important",ft=!!e.createElement("canvas").getContext,gt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,mt={},vt=["Webkit","O","Moz","ms"];if(ft)var yt=t.devicePixelRatio||1,bt=function(){var t=e.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),wt=yt/bt;else var _t=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};s.extend(_.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=s("<div />",{"class":R+"-tip"}).prependTo(t.tooltip),ft?(e=s("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=_t("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(s("*",i).add(i),["click","mousedown"],function(t){t.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===P||t.y===N&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(W))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===I||e===I?t=I:t===W?t=new j(e.string()):t.string||(t=new j(t),t.fixed=W),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=lt+y(e)+"Width";return(i?w(i,o):w(s.content,o)||w(this._useTitle(t)&&s.titlebar||s.content,o)||w(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=lt+y(t.y)+y(t.x)+"Radius";return st.ie<9?0:w(this._useTitle(t)&&e.titlebar||e.content,i)||w(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||gt.test(s)?I:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),o=lt+y(t[t.precedance])+y(ct),n=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,dt)||r(n,dt)||r(e.content,dt)||r(e.tooltip,dt)||i.css(dt),a[1]=r(i,o,ct)||r(n,o,ct)||r(e.content,o,ct)||r(e.tooltip,o,ct)||e.tooltip.css(o),s("*",i).add(i).css("cssText",dt+":"+pt+ut+";"+lt+":0"+ut+";"),a},_calculateSize:function(t){var e,i,s,o=t.precedance===S,n=this.options.width,r=this.options.height,a="c"===t.abbrev(),h=(o?n:r)*(a?.5:1),l=Math.pow,c=Math.round,d=Math.sqrt(l(h,2)+l(r,2)),p=[this.border/h*d,this.border/r*d];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),e=d+p[2]+p[3]+(a?0:p[0]),i=e/d,s=[c(i*n),c(i*r)],o?s:s.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var s=e[0]*i,o=e[1]*i,n=Math.ceil(s/2),r=Math.ceil(o/2),a={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,n,0,s,o],bc:[0,0,s,0,n,o],rc:[0,0,s,r,0,o],lc:[s,0,s,o,0,r]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(ft||st.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(e,i){if(!this.enabled)return this;var o,n,r,a,h,l,c,d,p=this.qtip.elements,u=this.element,f=u.children(),g=this.options,m=this.size,v=g.mimic,y=Math.round;e||(e=this.qtip.cache.corner||this.corner),v===I?v=e:(v=new j(v),v.precedance=e.precedance,"inherit"===v.x?v.x=e.x:"inherit"===v.y?v.y=e.y:v.x===v.y&&(v[e.precedance]=e[e.precedance])),n=v.precedance,e.precedance===E?this._swapDimensions():this._resetDimensions(),o=this.color=this._parseColours(e),o[1]!==pt?(d=this.border=this._parseWidth(e,e[e.precedance]),g.border&&d<1&&!gt.test(o[1])&&(o[0]=o[1]),this.border=d=g.border!==W?g.border:d):this.border=d=0,c=this.size=this._calculateSize(e),u.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),l=e.precedance===S?[y(v.x===D?d:v.x===F?c[0]-m[0]-d:(c[0]-m[0])/2),y(v.y===P?c[1]-m[1]:0)]:[y(v.x===D?c[0]-m[0]:0),y(v.y===P?d:v.y===B?c[1]-m[1]-d:(c[1]-m[1])/2)],ft?(r=f[0].getContext("2d"),r.restore(),r.save(),r.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,wt),h=this._calculateTip(v,this.size,wt),f.attr(A,c[0]*wt).attr(L,c[1]*wt),f.css(A,c[0]).css(L,c[1]),this._drawCoords(r,h),r.fillStyle=o[1],r.fill(),r.translate(l[0]*wt,l[1]*wt),this._drawCoords(r,a),r.fillStyle=o[0],r.fill()):(a=this._calculateTip(v),a="m"+a[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",l[2]=d&&/^(r|b)/i.test(e.string())?8===st.ie?2:1:0,f.css({coordsize:c[0]+d+" "+(c[1]+d),antialias:""+(v.string().indexOf(N)>-1),left:l[0]-l[2]*Number(n===E),top:l[1]-l[2]*Number(n===S),width:c[0]+d,height:c[1]+d}).each(function(t){var e=s(this);e[e.prop?"prop":"attr"]({coordsize:c[0]+d+" "+(c[1]+d),path:a,fillcolor:o[0],filled:!!t,stroked:!t}).toggle(!(!d&&!t)),!t&&e.html(_t("stroke",'weight="'+2*d+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),t.opera&&setTimeout(function(){p.tip.css({display:"inline-block",visibility:"visible"})},1),i!==I&&this.calculate(e,c)},calculate:function(t,e){if(!this.enabled)return I;var i,o,n=this,r=this.qtip.elements,a=this.element,h=this.options.offset,l=(r.tooltip.hasClass("ui-widget"),
|
7 |
{});return t=t||this.corner,i=t.precedance,e=e||this._calculateSize(t),o=[t.x,t.y],i===E&&o.reverse(),s.each(o,function(s,o){var a,c,d;o===N?(a=i===S?D:P,l[a]="50%",l[ht+"-"+a]=-Math.round(e[i===S?0:1]/2)+h):(a=n._parseWidth(t,o,r.tooltip),c=n._parseWidth(t,o,r.content),d=n._parseRadius(t),l[o]=Math.max(-n.border,s?c:h+(d>a?d:-a)))}),l[t[i]]-=e[i===E?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(l),l},reposition:function(t,e,s,o){function n(t,e,i,s,o){t===$&&c.precedance===e&&d[s]&&c[i]!==N?c.precedance=c.precedance===E?S:E:t!==$&&d[s]&&(c[e]=c[e]===N?d[s]>0?s:o:c[e]===s?o:s)}function r(t,e,o){c[t]===N?m[ht+"-"+e]=g[t]=a[ht+"-"+e]-d[e]:(h=a[o]!==i?[d[e],-a[e]]:[-d[e],a[e]],(g[t]=Math.max(h[0],h[1]))>h[0]&&(s[e]-=d[e],g[e]=I),m[a[o]!==i?o:e]=g[t])}if(this.enabled){var a,h,l=e.cache,c=this.corner.clone(),d=s.adjusted,p=e.options.position.adjust.method.split(" "),u=p[0],f=p[1]||p[0],g={left:I,top:I,x:0,y:0},m={};this.corner.fixed!==W&&(n(u,E,S,D,F),n(f,S,E,P,B),c.string()===l.corner.string()&&l.cornerTop===d.top&&l.cornerLeft===d.left||this.update(c,I)),a=this.calculate(c),a.right!==i&&(a.left=-a.right),a.bottom!==i&&(a.top=-a.bottom),a.user=this.offset,(g.left=u===$&&!!d.left)&&r(E,D,F),(g.top=f===$&&!!d.top)&&r(S,P,B),this.element.css(m).toggle(!(g.x&&g.y||c.x===N&&g.y||c.y===N&&g.x)),s.left-=a.left.charAt?a.user:u!==$||g.top||!g.left&&!g.top?a.left+this.border:0,s.top-=a.top.charAt?a.user:f!==$||g.left||!g.left&&!g.top?a.top+this.border:0,l.cornerLeft=d.left,l.cornerTop=d.top,l.corner=c.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),at=V.tip=function(t){return new _(t,t.options.style.tip)},at.initialize="render",at.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;"object"!=typeof e&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=W)}},z.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},s.extend(W,q.defaults,{style:{tip:{corner:W,mimic:I,width:6,height:6,border:W,offset:0}}});var xt,Ct,qt="qtip-modal",Tt="."+qt;Ct=function(){function t(t){if(s.expr[":"].focusable)return s.expr[":"].focusable;var e,i,o,n=!isNaN(s.attr(t,"tabindex")),r=t.nodeName&&t.nodeName.toLowerCase();return"area"===r?(e=t.parentNode,i=e.name,!(!t.href||!i||"map"!==e.nodeName.toLowerCase())&&(o=s("img[usemap=#"+i+"]")[0],!!o&&o.is(":visible"))):/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r?t.href||n:n}function i(t){c.length<1&&t.length?t.not("body").blur():c.first().focus()}function o(t){if(h.is(":visible")){var e,o=s(t.target),a=n.tooltip,l=o.closest(G);e=l.length<1?I:parseInt(l[0].style.zIndex,10)>parseInt(a[0].style.zIndex,10),e||o.closest(G)[0]===a[0]||i(o),r=t.target===c[c.length-1]}}var n,r,a,h,l=this,c={};s.extend(l,{init:function(){return h=l.elem=s("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return I}}).hide(),s(e.body).bind("focusin"+Tt,o),s(e).bind("keydown"+Tt,function(t){n&&n.options.show.modal.escape&&27===t.keyCode&&n.hide(t)}),h.bind("click"+Tt,function(t){n&&n.options.show.modal.blur&&n.hide(t)}),l},update:function(e){n=e,c=e.options.show.modal.stealfocus!==I?e.tooltip.find("*").filter(function(){return t(this)}):[]},toggle:function(t,o,r){var c=(s(e.body),t.tooltip),d=t.options.show.modal,p=d.effect,u=o?"show":"hide",f=h.is(":visible"),g=s(Tt).filter(":visible:not(:animated)").not(c);return l.update(t),o&&d.stealfocus!==I&&i(s(":focus")),h.toggleClass("blurs",d.blur),o&&h.appendTo(e.body),h.is(":animated")&&f===o&&a!==I||!o&&g.length?l:(h.stop(W,I),s.isFunction(p)?p.call(h,o):p===I?h[u]():h.fadeTo(parseInt(r,10)||90,o?1:0,function(){o||h.hide()}),o||h.queue(function(t){h.css({left:"",top:""}),s(Tt).length||h.detach(),t()}),a=o,n.destroyed&&(n=k),l)}}),l.init()},Ct=new Ct,s.extend(x.prototype,{init:function(t){var e=t.tooltip;return this.options.on?(t.elements.overlay=Ct.elem,e.addClass(qt).css("z-index",q.modal_zindex+s(Tt).length),t._bind(e,["tooltipshow","tooltiphide"],function(t,i,o){var n=t.originalEvent;if(t.target===e[0])if(n&&"tooltiphide"===t.type&&/mouse(leave|enter)/.test(n.type)&&s(n.relatedTarget).closest(Ct.elem[0]).length)try{t.preventDefault()}catch(r){}else(!n||n&&"tooltipsolo"!==n.type)&&this.toggle(t,"tooltipshow"===t.type,o)},this._ns,this),t._bind(e,"tooltipfocus",function(t,i){if(!t.isDefaultPrevented()&&t.target===e[0]){var o=s(Tt),n=q.modal_zindex+o.length,r=parseInt(e[0].style.zIndex,10);Ct.elem[0].style.zIndex=n-1,o.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),o.filter("."+K).qtip("blur",t.originalEvent),e.addClass(K)[0].style.zIndex=n,Ct.update(i);try{t.preventDefault()}catch(a){}}},this._ns,this),void t._bind(e,"tooltiphide",function(t){t.target===e[0]&&s(Tt).filter(":visible").not(e).last().qtip("focus",t)},this._ns,this)):this},toggle:function(t,e,i){return t&&t.isDefaultPrevented()?this:void Ct.toggle(this.qtip,!!e,i)},destroy:function(){this.qtip.tooltip.removeClass(qt),this.qtip._unbind(this.qtip.tooltip,this._ns),Ct.toggle(this.qtip,I),delete this.qtip.elements.overlay}}),xt=V.modal=function(t){return new x(t,t.options.show.modal)},xt.sanitize=function(t){t.show&&("object"!=typeof t.show.modal?t.show.modal={on:!!t.show.modal}:"undefined"==typeof t.show.modal.on&&(t.show.modal.on=W))},q.modal_zindex=q.zindex-200,xt.initialize="render",z.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},s.extend(W,q.defaults,{show:{modal:{on:I,effect:W,blur:W,stealfocus:W,escape:W}}}),V.viewport=function(i,s,o,n,r,a,h){function l(t,e,i,o,n,r,a,h,l){var c=s[n],y=w[t],b=_[t],x=i===$,C=y===n?l:y===r?-l:-l/2,q=b===n?h:b===r?-h:-h/2,T=m[n]+v[n]-(u?0:p[n]),j=T-c,z=c+l-(a===A?f:g)-T,M=C-(w.precedance===t||y===w[e]?q:0)-(b===N?h/2:0);return x?(M=(y===n?1:-1)*C,s[n]+=j>0?j:z>0?-z:0,s[n]=Math.max(-p[n]+v[n],c-M,Math.min(Math.max(-p[n]+v[n]+(a===A?f:g),c+M),s[n],"center"===y?c-C:1e9))):(o*=i===O?2:0,j>0&&(y!==n||z>0)?(s[n]-=M+o,d.invert(t,n)):z>0&&(y!==r||j>0)&&(s[n]-=(y===N?-M:M)+o,d.invert(t,r)),s[n]<m&&-s[n]>z&&(s[n]=c,d=w.clone())),s[n]-c}var c,d,p,u,f,g,m,v,y=o.target,b=i.elements.tooltip,w=o.my,_=o.at,x=o.adjust,C=x.method.split(" "),q=C[0],T=C[1]||C[0],j=o.viewport,z=o.container,M=(i.cache,{left:0,top:0});return j.jquery&&y[0]!==t&&y[0]!==e.body&&"none"!==x.method?(p=z.offset()||M,u="static"===z.css("position"),c="fixed"===b.css("position"),f=j[0]===t?j.width():j.outerWidth(I),g=j[0]===t?j.height():j.outerHeight(I),m={left:c?0:j.scrollLeft(),top:c?0:j.scrollTop()},v=j.offset()||M,"shift"===q&&"shift"===T||(d=w.clone()),M={left:"none"!==q?l(E,S,q,x.x,D,F,A,n,a):0,top:"none"!==T?l(S,E,T,x.y,P,B,L,r,h):0,my:d}):M},V.polys={polygon:function(t,e){var i,s,o,n={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:I},r=0,a=[],h=1,l=1,c=0,d=0;for(r=t.length;r--;)i=[parseInt(t[--r],10),parseInt(t[r+1],10)],i[0]>n.position.right&&(n.position.right=i[0]),i[0]<n.position.left&&(n.position.left=i[0]),i[1]>n.position.bottom&&(n.position.bottom=i[1]),i[1]<n.position.top&&(n.position.top=i[1]),a.push(i);if(s=n.width=Math.abs(n.position.right-n.position.left),o=n.height=Math.abs(n.position.bottom-n.position.top),"c"===e.abbrev())n.position={left:n.position.left+n.width/2,top:n.position.top+n.height/2};else{for(;s>0&&o>0&&h>0&&l>0;)for(s=Math.floor(s/2),o=Math.floor(o/2),e.x===D?h=s:e.x===F?h=n.width-s:h+=Math.floor(s/2),e.y===P?l=o:e.y===B?l=n.height-o:l+=Math.floor(o/2),r=a.length;r--&&!(a.length<2);)c=a[r][0]-n.position.left,d=a[r][1]-n.position.top,(e.x===D&&c>=h||e.x===F&&c<=h||e.x===N&&(c<h||c>n.width-h)||e.y===P&&d>=l||e.y===B&&d<=l||e.y===N&&(d<l||d>n.height-l))&&a.splice(r,1);n.position={left:a[0][0],top:a[0][1]}}return n},rect:function(t,e,i,s){return{width:Math.abs(i-t),height:Math.abs(s-e),position:{left:Math.min(t,i),top:Math.min(e,s)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(t,e,i,s,o){var n=V.polys._angles[o.abbrev()],r=0===n?0:i*Math.cos(n*Math.PI),a=s*Math.sin(n*Math.PI);return{width:2*i-Math.abs(r),height:2*s-Math.abs(a),position:{left:t+r,top:e+a},adjustable:I}},circle:function(t,e,i,s){return V.polys.ellipse(t,e,i,i,s)}},V.svg=function(t,i,o){for(var n,r,a,h,l,c,d,p,u,f=(s(e),i[0]),g=s(f.ownerSVGElement),m=f.ownerDocument,v=(parseInt(i.css("stroke-width"),10)||0)/2;!f.getBBox;)f=f.parentNode;if(!f.getBBox||!f.parentNode)return I;switch(f.nodeName){case"ellipse":case"circle":p=V.polys.ellipse(f.cx.baseVal.value,f.cy.baseVal.value,(f.rx||f.r).baseVal.value+v,(f.ry||f.r).baseVal.value+v,o);break;case"line":case"polygon":case"polyline":for(d=f.points||[{x:f.x1.baseVal.value,y:f.y1.baseVal.value},{x:f.x2.baseVal.value,y:f.y2.baseVal.value}],p=[],c=-1,h=d.numberOfItems||d.length;++c<h;)l=d.getItem?d.getItem(c):d[c],p.push.apply(p,[l.x,l.y]);p=V.polys.polygon(p,o);break;default:p=f.getBBox(),p={width:p.width,height:p.height,position:{left:p.x,top:p.y}}}return u=p.position,g=g[0],g.createSVGPoint&&(r=f.getScreenCTM(),d=g.createSVGPoint(),d.x=u.left,d.y=u.top,a=d.matrixTransform(r),u.left=a.x,u.top=a.y),m!==e&&"mouse"!==t.position.target&&(n=s((m.defaultView||m.parentWindow).frameElement).offset(),n&&(u.left+=n.left,u.top+=n.top)),m=s(m),u.left+=m.scrollLeft(),u.top+=m.scrollTop(),p},V.imagemap=function(t,e,i,o){e.jquery||(e=s(e));var n,r,a,h,l,c=(e.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),d=s('img[usemap="#'+e.parent("map").attr("name")+'"]'),p=s.trim(e.attr("coords")),u=p.replace(/,$/,"").split(",");if(!d.length)return I;if("polygon"===c)h=V.polys.polygon(u,i);else{if(!V.polys[c])return I;for(a=-1,l=u.length,r=[];++a<l;)r.push(parseInt(u[a],10));h=V.polys[c].apply(this,r.concat(i))}return n=d.offset(),n.left+=Math.ceil((d.outerWidth(I)-d.width())/2),n.top+=Math.ceil((d.outerHeight(I)-d.height())/2),h.position.left+=n.left,h.position.top+=n.top,h};var jt,zt='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';s.extend(C.prototype,{_scroll:function(){var e=this.qtip.elements.overlay;e&&(e[0].style.top=s(t).scrollTop()+"px")},init:function(i){var o=i.tooltip;s("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=s(zt).appendTo(o),i._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=s("<div/>",{id:R+"-rcontainer"}).appendTo(e.body),i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&(i._bind(t,["scroll","resize"],this._scroll,this._ns,this),i._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var t,e,i=this.qtip.tooltip,s={height:i.outerHeight(I),width:i.outerWidth(I)},o=this.qtip.plugins.tip,n=this.qtip.elements.tip;e=parseInt(i.css("borderLeftWidth"),10)||0,e={left:-e,top:-e},o&&n&&(t="x"===o.corner.precedance?[A,D]:[L,P],e[t[1]]-=n[t[0]]()),this.bgiframe.css(e).css(s)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t,e,i,s,o=this.qtip.tooltip,n=this.qtip.options.style,r=this.qtip.options.position.container;return this.qtip.drawing=1,n.height&&o.css(L,n.height),n.width?o.css(A,n.width):(o.css(A,"").appendTo(this.redrawContainer),e=o.width(),e%2<1&&(e+=1),i=o.css("maxWidth")||"",s=o.css("minWidth")||"",t=(i+s).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1)*parseInt(i,10)||e,s=(s.indexOf("%")>-1?t:1)*parseInt(s,10)||0,e=i+s?Math.min(Math.max(e,s),i):e,o.css(A,Math.round(e)).appendTo(r)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([t,this.qtip.tooltip],this._ns)}}),jt=V.ie6=function(t){return 6===st.ie?new C(t):I},jt.initialize="render",z.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
|
8 |
function give_load_gateway(e,i){var t=jQuery(e).find("#give-payment-mode-select .give-loading-text"),a=jQuery(e).find("#give-amount").val(),n=jQuery(e).find('input[name="give-form-id"]').val();t.fadeIn();var o=jQuery(e).data();1!=o["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),jQuery.post(give_scripts.ajaxurl+"?payment-mode="+i,{action:"give_load_gateway",give_total:a,give_form_id:n,give_payment_mode:i},function(i){jQuery(e).unblock(),jQuery(e).find("#give_purchase_form_wrap").html(i),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),setup_give_tooltips(),jQuery(document).trigger("give_gateway_loaded",[i,jQuery(e).attr("id")])})}function setup_give_tooltips(){jQuery('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},style:{classes:"qtip-rounded qtip-tipsy"},position:{my:"bottom center",at:"top center"}}),jQuery.fn.qtip.zindex=2147483641}var give_scripts,give_global_vars;jQuery(document).ready(function(e){setup_give_tooltips(),e(".give-loading-text").hide(),e(document).on("click",".give-checkout-login",function(i){var t=e(this),a=e(this).parents("form"),n=e(a).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};return n.show(),e.post(give_scripts.ajaxurl,o,function(i){e(a).find("[id^=give-checkout-login-register]").html(i),e(a).find(".give-submit-button-wrap").hide()}).done(function(){n.hide(),give_fl_trigger(),setup_give_tooltips()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(i){i.preventDefault();var t=e(this),a=e(this).parents("form"),n={action:t.data("action"),form_id:e(a).find('[name="give-form-id"]').val()};e.post(give_scripts.ajaxurl,n,function(i){e(a).find("[id^=give-checkout-login-register]").html(e.parseJSON(i.fields)),e(a).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger(),setup_give_tooltips()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(i){i.preventDefault();var t=e(this).val(),a=e(this).parents("form");e(this).val(give_global_vars.purchase_loading),a.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var n={action:"give_process_donation_login",give_ajax:1,give_user_login:a.find("[name=give_user_login]").val(),give_user_pass:a.find("[name=give_user_pass]").val()};e.post(give_global_vars.ajaxurl,n,function(i){"success"==e.trim(i)?(a.find(".give_errors").remove(),give_load_gateway(a,a.find(".give-gateway-option-selected input").val())):(a.find("[id^=give-login-fields] input[type=submit]").val(t),a.find(".give-loading-animation").fadeOut(),a.find(".give_errors").remove(),a.find("[id^=give-user-login-submit]").before(i))})}),e("select#give-gateway, input.give-gateway").on("change",function(i){i.preventDefault();var t=e(this).val();return"0"==t?(console.log("There was a problem loading the selected gateway"),!1):(give_load_gateway(e(this).parents("form"),t),!1)}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(i){var t=e(this).parents("form.give-form"),a=t.find('input[type="submit"].give-submit + .give-loading-animation');a.fadeIn();var n=t.get(0);if("function"!=typeof n.checkValidity||n.checkValidity()!==!1||(a.fadeOut(),(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)!=!1)){i.preventDefault();var o=e(this).val();e(this).val(give_global_vars.purchase_loading),e.post(give_global_vars.ajaxurl,t.serialize()+"&action=give_process_donation&give_ajax=true",function(i){"success"==e.trim(i)?(t.find(".give_errors").remove(),e(n).submit(),t.trigger("give_form_validation_passed")):(t.find('input[type="submit"].give-submit').val(o),a.fadeOut(),t.find(".give_errors").remove(),t.find('input[type="submit"].give-submit').before(i))})}})});
|
9 |
+
var give_scripts,give_global_vars;jQuery(function(e){function a(){var a=e(this),i=a.parents("form");if("card_state"!=a.attr("id")){i.find("#card_state").empty().append('<option value="1">'+give_global_vars.general_loading+"</option>").prop("disabled",!0);var t={action:"give_get_states",country:a.val(),field_name:"card_state"};e.ajax({type:"POST",data:t,url:give_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){if("nostates"==e){var a='<input type="text" id="card_state" name="card_state" class="cart-state give-input required" value=""/>';i.find('input[name="card_state"], select[name="card_state"]').replaceWith(a)}else i.find('input[name="card_state"], select[name="card_state"]').replaceWith(e);v.trigger("give_checkout_billing_address_updated",[e,i.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}function i(){var a=e("form.give-form");a.each(function(a,i){i=e(i);var t=i.find(".card-number"),n=i.find(".card-cvc"),o=i.find(".card-expiry");t.length&&(t.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})}function t(e,a){return"after"==give_global_vars.currency_pos&&(a.format="%v%s"),accounting.formatMoney(e,a).trim()}function n(e){return Math.abs(parseFloat(accounting.unformat(e,give_global_vars.decimal_separator)))}function o(e){var a={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals};return accounting.formatMoney(e,a)}function r(a){var i=[];return a.hasClass("give-form-type-multi")?(e.each(a.find(".give-donation-levels-wrap [data-price-id] "),function(e,a){a=a instanceof jQuery?a:jQuery(a),i.push({price_id:a.data("price-id"),amount:n(a.val())})}),i):i}function d(a){var i=a.parents("form"),t=a.val(),o=a.data("price-id");return void 0==o&&(o=a.find("option:selected").data("price-id")),"custom"===t?(i.find(".give-amount-top").val("").focus(),!1):(i.find(".give-amount-top").val(t),i.find("span.give-amount-top").text(t),e(".give-donation-amount .give-text-input",i).data("amount",n(i.find(".give-final-total-amount").data("total"))),i.find(".give-donation-amount .give-text-input").trigger("blur",[i,t,o]),void e(document).trigger("give_donation_value_updated",[i,t,o]))}function l(){var a=s("form-id"),i=s("payment-mode");if(!a||!i)return!1;var t=e("body").find("#give-form-"+a+"-wrap"),n=t.find("form.give-form"),o=t.hasClass("give-display-modal"),r=t.hasClass("give-display-reveal");n.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),n.find("input[name=payment-mode][value="+i+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var l=s("level-id"),v=n.find('*[data-price-id="'+l+'"]');v.length>0&&d(v),o?give_open_form_modal(t,n):r&&(n.find(".give-btn-reveal").hide(),n.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())}function s(e,a){a||(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),t=i.exec(a);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}var v=e(document);v.on("change","#give_cc_address input.card_state, #give_cc_address select",a),i(),v.on("give_gateway_loaded",function(e){i()}),e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},v.on("keyup change",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",function(){var a=e(this),i=a.parents("form.give-form"),t=a.attr("id"),n=i.find(".card-number"),o=i.find(".card-cvc"),r=i.find(".card-expiry"),d=e.payment.cardType(n.val());if(t.indexOf("card_number")>-1){var l=i.find(".card-type");null===d?(l.removeClass().addClass("off card-type"),a.removeClass("valid").addClass("error")):l.removeClass().addClass("card-type "+d),n.toggleError(!e.payment.validateCardNumber(n.val()))}if(t.indexOf("card_cvc")>-1&&o.toggleError(!e.payment.validateCardCVC(o.val(),d)),t.indexOf("card_expiry")>-1){r.toggleError(!e.payment.validateCardExpiry(r.payment("cardExpiryVal")));var s=r.payment("cardExpiryVal");i.find(".card-expiry-month").val(s.month),i.find(".card-expiry-year").val(s.year)}}),v.on("submit","#give_payment_mode",function(){var a=e("#give-gateway option:selected").val();if(0==a)return alert(give_global_vars.no_gateway),!1}),v.on("click","#give-payment-mode-select input",function(){var a=e(this).parents("form"),i=e("#give-payment-mode-select li"),t=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),n="";i.removeClass("give-gateway-option-selected"),i.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),n=e('#give-payment-mode-select li.give-gateway-option-selected input[name="payment-mode"]').val(),a.attr("action",a.attr("action").replace("payment-mode="+t,"payment-mode="+n))}),v.on("focus",".give-donation-amount .give-text-input",function(a){var i=e(this).parents("form");e(this).removeClass("invalid-amount");var t=i.find(".give-final-total-amount").data("total");e(this).data("amount",n(t)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),i.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),i.find(".give-btn-level-custom").addClass("give-default-level"),i.find(".give-radio-input").prop("checked",!1),i.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),i.find(".give-select-level").prop("selected",!1),i.find(".give-select-level .give-donation-level-custom").prop("selected",!0)}),v.on("blur",".give-donation-amount .give-text-input",function(a,i,d,l){var s=void 0!=i?i:e(this).closest("form"),v=e(this).data("amount"),c=void 0!=d?d:e(this).val(),g=s.find('input[name="give-form-minimum"]'),u=n(g.val()),m=0==c?u:n(c),p=r(e(this).parents("form")),f="";l=void 0!=l?l:-1;var _={symbol:"",decimal:give_global_vars.decimal_separator,thousand:give_global_vars.thousands_separator,precision:give_global_vars.number_decimals},h=t(m,_);if(e(this).val(h),!p.length||-1<l||(e.each(p,function(e,a){if(a.amount===m)return l=a.price_id,!1}),!(-1<l)&&u<=m&&(l="custom")),(m<u||m<1)&&-1===l){e(this).addClass("give-invalid-amount"),_.symbol=give_global_vars.currency_sign,f=give_global_vars.bad_minimum+" "+t(u,_),s.find(".give-submit").prop("disabled",!0);var y=s.find(".give-invalid-minimum");if(0===y.length){var b=e('<div class="give_error give-invalid-minimum">'+f+"</div>").hide();b.insertBefore(s.find(".give-total-wrap")).show()}}else e(this).removeClass("give-invalid-amount"),s.find(".give-invalid-minimum").slideUp(300,function(){e(this).remove()}),s.find(".give-submit").prop("disabled",!1);if(v!==m&&(_.symbol=give_global_vars.currency_sign,s.find(".give-final-total-amount").data("total",m).text(t(m,_))),-1!==l)switch(e('input[name="give-price-id"]',s).val(l),s.find(".give-amount-hidden").val(o(m)),s.find(".give-default-level").removeClass("give-default-level"),!0){case!!s.find(".give-radio-input").length:s.find(".give-radio-input").prop("checked",!1),s.find('.give-radio-input[data-price-id="'+l+'"]').prop("checked",!0).addClass("give-default-level");break;case!!s.find("button.give-donation-level-btn").length:s.find("button.give-donation-level-btn").blur(),s.find('button.give-donation-level-btn[data-price-id="'+l+'"]').focus().addClass("give-default-level");break;case!!s.find("select.give-select-level").length:s.find("select.give-select-level option").prop("selected",!1),s.find('select.give-select-level option[data-price-id="'+l+'"]').prop("selected",!0).addClass("give-default-level")}e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in")}),v.on("click touchend",".give-donation-level-btn",function(a){a.preventDefault(),d(e(this))}),v.on("click touchend",".give-radio-input-level",function(a){d(e(this))}),v.on("change",".give-select-level",function(a){d(e(this))}),l(),v.on("click",".give_terms_links",function(a){a.preventDefault();var i=e(this).closest("fieldset");return e("[class^=give_terms-]",i).slideToggle(),e("a.give_terms_links",i).toggle(),!1})});
|
10 |
function give_open_form_modal(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:give_global_vars.magnific_options.main_class,closeOnBgClick:give_global_vars.magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){if(e.hasClass("give-display-button-only")&&!t.data("content")){var n=jQuery(".give-form-content-wrap",e),i=jQuery(".give-form-title",e),r=jQuery(".give-goal-progress",e),a=jQuery(">.give_error",e),o=jQuery(".give_errors",e);n.length&&!jQuery(".give-form-content-wrap",t).length&&(n.hasClass("give_post_form-content")?t.append(n):t.prepend(n)),o.length&&!jQuery(".give_errors",t).length&&o.each(function(e,n){t.prepend(jQuery(n))}),a.length&&!jQuery(">.give_error",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),r.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(r),i.length&&!jQuery(".give-form-title",t).length&&t.prepend(i),t.data("content","loaded")}},open:function(){var i=jQuery(".mfp-content");i.outerWidth()>=500&&i.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-hidden, .give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),t.children().not(n).show()}}})}function give_fl_trigger(){var e={exclude:['#give-amount, .give-select-level, .multiselect, .give-repeater-table input, input[type="url"]'],customEvent:give_fl_custom_events};jQuery(".float-labels-enabled").floatlabels(e)}function give_fl_custom_events(e){e.hasClass("card-number")&&e.after('<span class="off card-type"/>')}function give_change_html5_form_field_validation_message(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),give_global_vars.form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(give_global_vars.form_translation[t.name])})})})}var give_scripts;jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,i){var r=e("form#"+i);if(r.hasClass("float-labels-enabled")){var a=r.find("#give-card-state-wrap"),o=a.find("#card_state"),l=a.find('label[for="card_state"]');l=l.length?l.text().replace(/[*:]/g,"").trim():"","nostates"===n?o.attr("placeholder",l).parent().removeClass("styled select"):(o.children().first().text(l),o.parent().addClass("styled select")),o.parent().removeClass("is-active"),give_fl_trigger()}}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),i=e(this).parents("form"),r="#give-payment-mode-select",a=e(r),o="";return n.hide(),e("li",a).length>1&&(o=r+", "),i.find(o+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),i=n.find("form.give-form"),r=i.find("#give-amount"),a=r.val();return!a||a<=0?(r.focus(),!1):void give_open_form_modal(n,i)})});
|
assets/scss/admin/forms.scss
CHANGED
@@ -139,7 +139,7 @@ div.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {
|
|
139 |
|
140 |
.give-money-symbol-after {
|
141 |
//border-left: 0;
|
142 |
-
margin-left: -
|
143 |
}
|
144 |
|
145 |
.give_options_panel input[ type="text"] {
|
@@ -572,7 +572,7 @@ ASIDE
|
|
572 |
|
573 |
.give-metabox-tabs {
|
574 |
margin: 0;
|
575 |
-
|
576 |
float: left;
|
577 |
line-height: 1em;
|
578 |
padding: 0 0 10px;
|
@@ -641,7 +641,7 @@ ASIDE
|
|
641 |
display: block;
|
642 |
position: absolute;
|
643 |
bottom: 0;
|
644 |
-
left:
|
645 |
width: 170px;
|
646 |
max-height: 250px;
|
647 |
overflow-y: scroll;
|
139 |
|
140 |
.give-money-symbol-after {
|
141 |
//border-left: 0;
|
142 |
+
margin-left: -5px;
|
143 |
}
|
144 |
|
145 |
.give_options_panel input[ type="text"] {
|
572 |
|
573 |
.give-metabox-tabs {
|
574 |
margin: 0;
|
575 |
+
max-width: 170px;
|
576 |
float: left;
|
577 |
line-height: 1em;
|
578 |
padding: 0 0 10px;
|
641 |
display: block;
|
642 |
position: absolute;
|
643 |
bottom: 0;
|
644 |
+
left: 166px;
|
645 |
width: 170px;
|
646 |
max-height: 250px;
|
647 |
overflow-y: scroll;
|
assets/scss/admin/payment-history.scss
CHANGED
@@ -9,87 +9,87 @@
|
|
9 |
*/
|
10 |
|
11 |
#give-payment-filters, .give-submit-wrap {
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
}
|
23 |
|
24 |
#give-payment-filters {
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
|
39 |
-
|
40 |
|
41 |
}
|
42 |
|
43 |
#give-payments-filter {
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
-
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
|
73 |
}
|
74 |
|
75 |
tr.status-refunded td {
|
76 |
-
|
77 |
-
|
78 |
}
|
79 |
|
80 |
.wp-list-table.forms th#date {
|
81 |
-
|
82 |
}
|
83 |
|
84 |
.give-mobile-link {
|
85 |
-
|
86 |
-
|
87 |
}
|
88 |
|
89 |
.give-mobile-link img {
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
}
|
94 |
|
95 |
//------------------------------------
|
@@ -97,171 +97,171 @@ tr.status-refunded td {
|
|
97 |
//------------------------------------
|
98 |
|
99 |
.give-donation-status {
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
|
144 |
}
|
145 |
|
146 |
//Test Payment Label
|
147 |
#test-payment-label {
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
}
|
153 |
|
154 |
//ID & link field
|
155 |
#give-payments-filter {
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
|
171 |
}
|
172 |
|
173 |
//Payment View Metabox
|
174 |
#give-order-update {
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
}
|
183 |
|
184 |
//Donation Column
|
185 |
.column-donation_form {
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
}
|
191 |
|
192 |
/*---------------------
|
193 |
Responsiveness
|
194 |
---------------------------*/
|
195 |
@media handheld, only screen and (max-width: 640px) {
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
}
|
200 |
|
201 |
.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {
|
202 |
-
|
203 |
-
|
204 |
}
|
205 |
|
206 |
/* Payment Details
|
207 |
-------------------------------------------------------------- */
|
208 |
.give-admin-box .label {
|
209 |
-
|
210 |
}
|
211 |
|
212 |
.give-admin-box-inside {
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
}
|
218 |
|
219 |
.give-admin-box-inside .strong {
|
220 |
-
|
221 |
}
|
222 |
|
223 |
.give-payment-fees .fee-label {
|
224 |
-
|
225 |
-
|
226 |
}
|
227 |
|
228 |
.give-admin-box .right {
|
229 |
-
|
230 |
}
|
231 |
|
232 |
#give-order-update .inside,
|
233 |
#give-order-details .inside {
|
234 |
-
|
235 |
-
|
236 |
}
|
237 |
|
238 |
#give-order-update input.give_datepicker {
|
239 |
-
|
240 |
}
|
241 |
|
242 |
#give-order-update input[type="number"].give-payment-time-hour,
|
243 |
#give-order-update input[type="number"].give-payment-time-min {
|
244 |
-
|
245 |
}
|
246 |
|
247 |
.give-admin-box-inside:last-child {
|
248 |
-
|
249 |
}
|
250 |
|
251 |
#give-edit-order-form .data-payment-key {
|
252 |
-
|
253 |
}
|
254 |
|
255 |
.give-order-update-box #major-publishing-actions .button-secondary {
|
256 |
-
|
257 |
}
|
258 |
|
259 |
#give-donation-overview th {
|
260 |
-
|
261 |
}
|
262 |
|
263 |
#give-donation-overview .give-select-chosen {
|
264 |
-
|
265 |
}
|
266 |
|
267 |
#give-donation-overview ul,
|
@@ -269,71 +269,71 @@ Responsiveness
|
|
269 |
#give-donor-details .order-data-address input,
|
270 |
#give-edit-order-form .column input,
|
271 |
#give-donor-details .order-data-column p.data input {
|
272 |
-
|
273 |
-
|
274 |
}
|
275 |
|
276 |
.give-order-data input.small-text {
|
277 |
-
|
278 |
}
|
279 |
|
280 |
#give-order-update span.label {
|
281 |
-
|
282 |
-
|
283 |
}
|
284 |
|
285 |
.give-order-update-box .button-primary {
|
286 |
-
|
287 |
}
|
288 |
|
289 |
#give-edit-order-form .column .description {
|
290 |
-
|
291 |
}
|
292 |
|
293 |
#give-edit-order-form .column,
|
294 |
#give-donation-overview .row > ul > li,
|
295 |
#give-donation-overview .inside > ul > li {
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
}
|
300 |
|
301 |
#give-donation-overview ul {
|
302 |
-
|
303 |
|
304 |
-
|
305 |
-
|
306 |
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
|
316 |
-
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
|
323 |
}
|
324 |
|
325 |
#give-order-data .data span {
|
326 |
-
|
327 |
-
|
328 |
}
|
329 |
|
330 |
input.give-price-field {
|
331 |
-
|
332 |
-
|
333 |
}
|
334 |
|
335 |
.give_forms_page_give-payment-history.js .postbox .hndle {
|
336 |
-
|
337 |
}
|
338 |
|
339 |
//------------------------------------------
|
@@ -341,12 +341,12 @@ input.give-price-field {
|
|
341 |
//------------------------------------------
|
342 |
|
343 |
#give-payment-notes {
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
|
351 |
}
|
352 |
|
@@ -356,25 +356,25 @@ input.give-price-field {
|
|
356 |
|
357 |
#give-billing-details {
|
358 |
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
|
379 |
}
|
380 |
|
@@ -383,37 +383,66 @@ input.give-price-field {
|
|
383 |
//------------------------------------------
|
384 |
|
385 |
@media screen and (min-width: 1200px) {
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
|
396 |
}
|
397 |
|
398 |
@media screen and (max-width: 1199px) {
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
}
|
403 |
|
404 |
@media screen and (max-width: 782px) {
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
}
|
409 |
|
410 |
//------------------------------------------
|
411 |
//Donation Details
|
412 |
//------------------------------------------
|
413 |
#give-donor-details .inside, #give-donation-overview .inside {
|
414 |
-
|
415 |
}
|
416 |
|
417 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
}
|
9 |
*/
|
10 |
|
11 |
#give-payment-filters, .give-submit-wrap {
|
12 |
+
clear: both;
|
13 |
+
background: #f5f5f5;
|
14 |
+
border-color: #dfdfdf;
|
15 |
+
overflow: auto;
|
16 |
+
margin: 8px 0;
|
17 |
+
padding: 12px;
|
18 |
+
border-width: 1px;
|
19 |
+
border-style: solid;
|
20 |
+
font-size: 13px;
|
21 |
+
line-height: 2.1em;
|
22 |
}
|
23 |
|
24 |
#give-payment-filters {
|
25 |
+
p {
|
26 |
+
color: #777;
|
27 |
+
}
|
28 |
+
ul.subsubsub {
|
29 |
+
margin-bottom: 8px;
|
30 |
+
}
|
31 |
+
label {
|
32 |
+
font-style: italic;
|
33 |
+
margin: 0 10px;
|
34 |
|
35 |
+
&.give-start-date-label {
|
36 |
+
margin-left: 5px;
|
37 |
+
}
|
38 |
|
39 |
+
}
|
40 |
|
41 |
}
|
42 |
|
43 |
#give-payments-filter {
|
44 |
+
ul.subsubsub {
|
45 |
+
margin-bottom: 12px;
|
46 |
+
}
|
47 |
+
.tablenav.top {
|
48 |
+
float: none;
|
49 |
+
.bulkactions {
|
50 |
+
margin-top: 1px;
|
51 |
+
padding-top: 0;
|
52 |
+
}
|
53 |
|
54 |
+
}
|
55 |
|
56 |
+
.give-email-column-value {
|
57 |
+
font-size: 14px;
|
58 |
+
font-weight: bold;
|
59 |
+
}
|
60 |
|
61 |
+
#the-list .check-column input {
|
62 |
+
margin-top: 1px;
|
63 |
+
}
|
64 |
|
65 |
+
.column-details {
|
66 |
+
width: 50px;
|
67 |
+
}
|
68 |
|
69 |
+
.column-amount {
|
70 |
+
width: 120px;
|
71 |
+
}
|
72 |
|
73 |
}
|
74 |
|
75 |
tr.status-refunded td {
|
76 |
+
background: #cecece;
|
77 |
+
border-top-color: #ccc;
|
78 |
}
|
79 |
|
80 |
.wp-list-table.forms th#date {
|
81 |
+
width: 140px;
|
82 |
}
|
83 |
|
84 |
.give-mobile-link {
|
85 |
+
line-height: 32px;
|
86 |
+
vertical-align: middle;
|
87 |
}
|
88 |
|
89 |
.give-mobile-link img {
|
90 |
+
max-width: 80%;
|
91 |
+
height: auto;
|
92 |
+
float: left;
|
93 |
}
|
94 |
|
95 |
//------------------------------------
|
97 |
//------------------------------------
|
98 |
|
99 |
.give-donation-status {
|
100 |
+
> span {
|
101 |
+
display: inline-block;
|
102 |
+
width: 12px;
|
103 |
+
height: 12px;
|
104 |
+
position: relative;
|
105 |
+
top: 1px;
|
106 |
+
margin: 0;
|
107 |
+
padding: 0;
|
108 |
+
border-radius: 50%;
|
109 |
+
background: #888;
|
110 |
+
line-height: 16px;
|
111 |
+
}
|
112 |
+
|
113 |
+
//Pending
|
114 |
+
&.status-pending > span {
|
115 |
+
background-color: $orange;
|
116 |
+
}
|
117 |
+
|
118 |
+
//Complete
|
119 |
+
&.status-complete > span, &.status-publish > span {
|
120 |
+
background-color: $status-complete;
|
121 |
+
}
|
122 |
+
|
123 |
+
//Refunded
|
124 |
+
&.status-refunded > span {
|
125 |
+
background-color: $status-default;
|
126 |
+
}
|
127 |
+
|
128 |
+
&.status-failed > span {
|
129 |
+
background-color: $red;
|
130 |
+
}
|
131 |
+
|
132 |
+
&.status-abandoned > span {
|
133 |
+
background-color: $dark;
|
134 |
+
}
|
135 |
+
|
136 |
+
&.status-revoked > span {
|
137 |
+
background-color: $status-revoked;
|
138 |
+
}
|
139 |
+
|
140 |
+
&.status-subscription > span, &.status-renewal > span, &.status-give_subscription > span {
|
141 |
+
background-color: $status-subscription;
|
142 |
+
}
|
143 |
|
144 |
}
|
145 |
|
146 |
//Test Payment Label
|
147 |
#test-payment-label {
|
148 |
+
@include give-label();
|
149 |
+
background-color: $orange;
|
150 |
+
margin: 0 15px;
|
151 |
+
vertical-align: middle;
|
152 |
}
|
153 |
|
154 |
//ID & link field
|
155 |
#give-payments-filter {
|
156 |
|
157 |
+
.give-payment-id {
|
158 |
+
@include give-label();
|
159 |
+
font-weight: normal;
|
160 |
+
@extend .give-item-label-gray;
|
161 |
+
}
|
162 |
|
163 |
+
.column-details {
|
164 |
+
padding-right: 30px;
|
165 |
+
}
|
166 |
|
167 |
+
.give-donation-status {
|
168 |
+
display: inline-block;
|
169 |
+
}
|
170 |
|
171 |
}
|
172 |
|
173 |
//Payment View Metabox
|
174 |
#give-order-update {
|
175 |
+
.give-donation-status {
|
176 |
+
display: inline-block;
|
177 |
+
float: none;
|
178 |
+
margin: 0 10px;
|
179 |
+
position: relative;
|
180 |
+
top: 3px;
|
181 |
+
}
|
182 |
}
|
183 |
|
184 |
//Donation Column
|
185 |
.column-donation_form {
|
186 |
+
.donation-level-text-wrap {
|
187 |
+
font-style: italic;
|
188 |
+
display: block;
|
189 |
+
}
|
190 |
}
|
191 |
|
192 |
/*---------------------
|
193 |
Responsiveness
|
194 |
---------------------------*/
|
195 |
@media handheld, only screen and (max-width: 640px) {
|
196 |
+
.wp-list-table.forms th {
|
197 |
+
width: auto !important;
|
198 |
+
}
|
199 |
}
|
200 |
|
201 |
.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {
|
202 |
+
margin-left: -8px;
|
203 |
+
margin-top: -8px;
|
204 |
}
|
205 |
|
206 |
/* Payment Details
|
207 |
-------------------------------------------------------------- */
|
208 |
.give-admin-box .label {
|
209 |
+
font-weight: 600;
|
210 |
}
|
211 |
|
212 |
.give-admin-box-inside {
|
213 |
+
margin: 0;
|
214 |
+
padding: 3px 10px;
|
215 |
+
clear: both;
|
216 |
+
border-bottom: 1px solid #eee;
|
217 |
}
|
218 |
|
219 |
.give-admin-box-inside .strong {
|
220 |
+
font-weight: 600;
|
221 |
}
|
222 |
|
223 |
.give-payment-fees .fee-label {
|
224 |
+
font-weight: normal;
|
225 |
+
color: #666;
|
226 |
}
|
227 |
|
228 |
.give-admin-box .right {
|
229 |
+
float: right;
|
230 |
}
|
231 |
|
232 |
#give-order-update .inside,
|
233 |
#give-order-details .inside {
|
234 |
+
margin: 0;
|
235 |
+
padding: 0;
|
236 |
}
|
237 |
|
238 |
#give-order-update input.give_datepicker {
|
239 |
+
width: 180px;
|
240 |
}
|
241 |
|
242 |
#give-order-update input[type="number"].give-payment-time-hour,
|
243 |
#give-order-update input[type="number"].give-payment-time-min {
|
244 |
+
width: 50px;
|
245 |
}
|
246 |
|
247 |
.give-admin-box-inside:last-child {
|
248 |
+
border-bottom: 0;
|
249 |
}
|
250 |
|
251 |
#give-edit-order-form .data-payment-key {
|
252 |
+
word-break: break-all;
|
253 |
}
|
254 |
|
255 |
.give-order-update-box #major-publishing-actions .button-secondary {
|
256 |
+
margin-right: 10px;
|
257 |
}
|
258 |
|
259 |
#give-donation-overview th {
|
260 |
+
text-align: left;
|
261 |
}
|
262 |
|
263 |
#give-donation-overview .give-select-chosen {
|
264 |
+
width: 196px;
|
265 |
}
|
266 |
|
267 |
#give-donation-overview ul,
|
269 |
#give-donor-details .order-data-address input,
|
270 |
#give-edit-order-form .column input,
|
271 |
#give-donor-details .order-data-column p.data input {
|
272 |
+
clear: both;
|
273 |
+
display: block;
|
274 |
}
|
275 |
|
276 |
.give-order-data input.small-text {
|
277 |
+
margin: 0;
|
278 |
}
|
279 |
|
280 |
#give-order-update span.label {
|
281 |
+
display: inline;
|
282 |
+
width: 50px;
|
283 |
}
|
284 |
|
285 |
.give-order-update-box .button-primary {
|
286 |
+
margin-right: 0;
|
287 |
}
|
288 |
|
289 |
#give-edit-order-form .column .description {
|
290 |
+
padding-right: 10px;
|
291 |
}
|
292 |
|
293 |
#give-edit-order-form .column,
|
294 |
#give-donation-overview .row > ul > li,
|
295 |
#give-donation-overview .inside > ul > li {
|
296 |
+
display: inline-block;
|
297 |
+
position: relative;
|
298 |
+
vertical-align: top;
|
299 |
}
|
300 |
|
301 |
#give-donation-overview ul {
|
302 |
+
font-size: 0;
|
303 |
|
304 |
+
li {
|
305 |
+
font-size: 13px;
|
306 |
|
307 |
+
&.actions {
|
308 |
+
text-align: right;
|
309 |
+
min-width: 200px;
|
310 |
+
}
|
311 |
|
312 |
+
&.remove {
|
313 |
+
text-align: right;
|
314 |
+
}
|
315 |
|
316 |
+
}
|
317 |
|
318 |
+
.row {
|
319 |
+
padding: 12px;
|
320 |
+
border-bottom: 1px solid #eee;
|
321 |
+
}
|
322 |
|
323 |
}
|
324 |
|
325 |
#give-order-data .data span {
|
326 |
+
color: #666;
|
327 |
+
font-weight: 600;
|
328 |
}
|
329 |
|
330 |
input.give-price-field {
|
331 |
+
width: 80px;
|
332 |
+
padding: 3px 5px;
|
333 |
}
|
334 |
|
335 |
.give_forms_page_give-payment-history.js .postbox .hndle {
|
336 |
+
cursor: default;
|
337 |
}
|
338 |
|
339 |
//------------------------------------------
|
341 |
//------------------------------------------
|
342 |
|
343 |
#give-payment-notes {
|
344 |
+
textarea {
|
345 |
+
min-height: 150px;
|
346 |
+
}
|
347 |
+
#give-add-payment-note {
|
348 |
+
margin: 6px 0 15px;
|
349 |
+
}
|
350 |
|
351 |
}
|
352 |
|
356 |
|
357 |
#give-billing-details {
|
358 |
|
359 |
+
.column > div {
|
360 |
+
margin: 0 0 10px;
|
361 |
+
}
|
362 |
|
363 |
+
label {
|
364 |
+
display: block;
|
365 |
+
}
|
366 |
|
367 |
+
.column-container {
|
368 |
+
padding: 5px 0 10px;
|
369 |
+
}
|
370 |
|
371 |
+
input[type="text"] {
|
372 |
+
width: 95%;
|
373 |
+
}
|
374 |
|
375 |
+
.chosen-container {
|
376 |
+
width: 98% !important;
|
377 |
+
}
|
378 |
|
379 |
}
|
380 |
|
383 |
//------------------------------------------
|
384 |
|
385 |
@media screen and (min-width: 1200px) {
|
386 |
+
#give-edit-order-form .column {
|
387 |
+
width: 33%;
|
388 |
+
}
|
389 |
|
390 |
+
#give-donation-overview.columns-4 li.actions {
|
391 |
+
width: 25%;
|
392 |
+
margin-top: 0;
|
393 |
+
margin-right: 0;
|
394 |
+
}
|
395 |
|
396 |
}
|
397 |
|
398 |
@media screen and (max-width: 1199px) {
|
399 |
+
#give-edit-order-form .column {
|
400 |
+
width: 49%;
|
401 |
+
}
|
402 |
}
|
403 |
|
404 |
@media screen and (max-width: 782px) {
|
405 |
+
.order-data-column input[type="email"] {
|
406 |
+
padding: 6px 10px;
|
407 |
+
}
|
408 |
}
|
409 |
|
410 |
//------------------------------------------
|
411 |
//Donation Details
|
412 |
//------------------------------------------
|
413 |
#give-donor-details .inside, #give-donation-overview .inside {
|
414 |
+
margin-top: 0;
|
415 |
}
|
416 |
|
417 |
.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {
|
418 |
+
padding-top: 0;
|
419 |
+
}
|
420 |
+
|
421 |
+
|
422 |
+
//------------------------------------------
|
423 |
+
// Ajax chosen select field
|
424 |
+
//------------------------------------------
|
425 |
+
.give-select-chosen{
|
426 |
+
.spinner {
|
427 |
+
position: absolute;
|
428 |
+
right: 5px;
|
429 |
+
top: 2px;
|
430 |
+
z-index: 999;
|
431 |
+
}
|
432 |
+
}
|
433 |
+
|
434 |
+
.give-select-chosen-ajax {
|
435 |
+
// Show spinner.
|
436 |
+
.spinner{
|
437 |
+
visibility: visible;
|
438 |
+
}
|
439 |
+
|
440 |
+
// Hide search icon.
|
441 |
+
.chosen-search input[type="text"]{
|
442 |
+
background-image: none !important;
|
443 |
+
}
|
444 |
+
}
|
445 |
+
|
446 |
+
.give-select-chosen-ajax.chosen-container-single .chosen-search input[type="text"]{
|
447 |
+
background-image: none !important;
|
448 |
}
|
assets/scss/admin/settings.scss
CHANGED
@@ -221,56 +221,10 @@ p.give-field-description, .cmb2-metabox-description {
|
|
221 |
// API
|
222 |
//--------------------------------------------------------------
|
223 |
|
224 |
-
.cmb2-id-api {
|
225 |
-
|
226 |
-
.cmb-td {
|
227 |
-
padding: 0;
|
228 |
-
}
|
229 |
-
table th {
|
230 |
-
padding: 10px 8px;
|
231 |
-
}
|
232 |
-
|
233 |
-
.give-ajax-user-search {
|
234 |
-
padding: 3px 5px;
|
235 |
-
|
236 |
-
}
|
237 |
-
|
238 |
-
}
|
239 |
-
|
240 |
-
.give_user_search_wrap {
|
241 |
-
position: relative;
|
242 |
-
overflow: visible;
|
243 |
-
}
|
244 |
-
|
245 |
-
.give_user_search_results {
|
246 |
-
position: absolute;
|
247 |
-
left: 0;
|
248 |
-
top: 27px;
|
249 |
-
z-index: 100;
|
250 |
-
|
251 |
-
a.give-ajax-user-cancel {
|
252 |
-
position: absolute;
|
253 |
-
right: 6px;
|
254 |
-
top: 2px;
|
255 |
-
}
|
256 |
-
ul {
|
257 |
-
padding: 10px 10px 4px;
|
258 |
-
margin: 0;
|
259 |
-
background: #f0f0f0;
|
260 |
-
border: 1px solid #DFDFDF;
|
261 |
-
width: 300px;
|
262 |
-
max-height: 200px;
|
263 |
-
overflow-y: scroll;
|
264 |
-
}
|
265 |
-
|
266 |
-
}
|
267 |
-
|
268 |
#api {
|
269 |
-
|
270 |
.tablenav .actions {
|
271 |
overflow: visible;
|
272 |
}
|
273 |
-
|
274 |
}
|
275 |
|
276 |
a.give-delete {
|
221 |
// API
|
222 |
//--------------------------------------------------------------
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
#api {
|
|
|
225 |
.tablenav .actions {
|
226 |
overflow: visible;
|
227 |
}
|
|
|
228 |
}
|
229 |
|
230 |
a.give-delete {
|
assets/sourcemaps/give-admin.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"file":"../scss/give-admin.css","sources":["admin/give-admin.scss","frontend/_mixins.scss","frontend/_variables.scss","plugins/qtip.scss","frontend/fonts.scss","admin/fonts.scss","admin/forms.scss","admin/addons.scss","admin/reports.scss","admin/welcome.scss","admin/logs.scss","admin/settings.scss","admin/payment-history.scss","admin/dashboard.scss","admin/donors.scss","admin/buttons.scss","admin/shortcodes.scss","admin/system-info.scss"],"sourcesContent":["/*!\r\n * Give Admin SCSS/CSS\r\n *\r\n * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner\r\n * @package: Give\r\n * @subpackage: SCSS/Admin\r\n * @copyright: Copyright (c) 2016, WordImpress\r\n * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n@import '../frontend/mixins';\r\n@import '../frontend/variables';\r\n@import '../plugins/qtip';\r\n@import '../frontend/fonts';\r\n@import 'fonts';\r\n@import 'forms';\r\n@import 'addons';\r\n@import 'reports';\r\n@import 'welcome';\r\n@import 'logs';\r\n@import 'settings';\r\n@import 'payment-history';\r\n@import 'dashboard';\r\n@import 'donors';\r\n@import 'buttons';\r\n@import 'shortcodes';\r\n@import 'system-info';\r\n","/**\r\n * Clearfix\r\n */\r\n@mixin clearfix() {\r\n *zoom: 1;\r\n\r\n &:before,\r\n &:after {\r\n content: \" \";\r\n display: table;\r\n }\r\n\r\n &:after {\r\n clear: both;\r\n }\r\n}\r\n\r\n.give-clearfix {\r\n @include clearfix;\r\n}\r\n\r\n/**\r\n * Box Sizing\r\n * https://github.com/timrogers/sass-box-sizing-mixin\r\n */\r\n@mixin box-sizing($box-model) {\r\n -webkit-box-sizing: $box-model; // Safari <= 5\r\n -moz-box-sizing: $box-model; // Firefox <= 19\r\n box-sizing: $box-model;\r\n}\r\n\r\n/**\r\n * CSS3 Easing\r\n */\r\n@mixin easing-transition() {\r\n -moz-transition: 0.2s all linear;\r\n -o-transition: 0.2s all linear;\r\n transition: 0.2s all linear;\r\n}\r\n\r\n//Labels\r\n@mixin give-label() {\r\n padding: .2em .4em .3em;\r\n font-size: 11px;\r\n line-height: 1;\r\n color: #fff;\r\n text-align: center;\r\n white-space: nowrap;\r\n vertical-align: baseline;\r\n border-radius: .25em;\r\n \r\n &:hover {\r\n color:#fff;\r\n text-decoration: none;\r\n }\r\n}\r\n\r\n@mixin give-label-gray() {\r\n background-color: #929292;\r\n}\r\n@mixin give-label-orange() {\r\n background-color: #ffba00;\r\n}\r\n\r\n.give-item-label {\r\n @include give-label();\r\n}\r\n\r\n.give-item-label-gray {\r\n @include give-label-gray();\r\n}\r\n\r\n.give-item-label-orange {\r\n @include give-label-orange();\r\n}\r\n\r\n\r\n.give-item-label {\r\n @include give-label();\r\n}\r\n\r\n//Fields\r\n@mixin give-currency() {\r\n background-color: lighten($light-gray, 2%);\r\n border-top: 1px solid $borders;\r\n border-bottom: 1px solid $borders;\r\n color: $dark;\r\n margin: 0;\r\n padding: 0 12px;\r\n height: 35px;\r\n line-height: 35px;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}\r\n\r\n@mixin give-input() {\r\n border: 1px solid $borders;\r\n background: #FFF;\r\n border-radius: 0;\r\n height: 35px;\r\n line-height: 35px;\r\n padding: 0 12px;\r\n margin: 0;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}","/**\r\n * Give CSS Variables\r\n */\r\n\r\n$green: #7ad03a;\r\n$red: #a00;\r\n$orange: #ffba00;\r\n$blue: #2ea2cc;\r\n$dark: #333;\r\n$borders: #ccc;\r\n$light-gray: #EDEDED;\r\n\r\n//Status\r\n$status-default: #777;\r\n$status-complete: $green;\r\n$status-refunded: $status-default;\r\n$status-subscription: #5bc0de;\r\n$status-revoked: #d9534f;\r\n\r\n//Font sizes\r\n$font-size-medium: 18px;\r\n\r\n$primary: #007ba4;\r\n// Primary colour for buttons (alt)\r\n$primarytext: desaturate(lighten($primary, 50%), 18%);\r\n// Text on primary colour bg\r\n\r\n$secondary: desaturate(lighten($primary, 40%), 21%);\r\n// Secondary buttons\r\n$secondarytext: desaturate(darken($secondary, 60%), 21%);\r\n// Text on secondary colour bg\r\n\r\n$highlight: adjust-hue($primary, 150deg);\r\n// Prices, In stock labels, sales flash\r\n$highlightext: desaturate(lighten($highlight, 50%), 18%);\r\n// Text on highlight colour bg\r\n\r\n$contentbg: #fff;\r\n// Content BG - Tabs (active state)\r\n$subtext: #777;\r\n// small, breadcrumbs etc","/*\n * qTip2 - Pretty powerful tooltips - v2.2.1\n * http://qtip2.com\n *\n * Copyright (c) 2014 \n * Released under the MIT licenses\n * http://jquery.org/license\n *\n * Date: Sun Sep 7 2014 12:09 GMT+0100+0100\n * Plugins: tips modal viewport svg imagemap ie6\n * Styles: core basic css3\n */\n.qtip{\n\tposition: absolute;\n\tleft: -28000px;\n\ttop: -28000px;\n\tdisplay: none;\n\n\tmax-width: 280px;\n\tmin-width: 50px;\n\n\tfont-size: 10.5px;\n\tline-height: 12px;\n\n\tdirection: ltr;\n\n\tbox-shadow: none;\n\tpadding: 0;\n}\n\n\t.qtip-content{\n\t\tposition: relative;\n\t\tpadding: 5px 9px;\n\t\toverflow: hidden;\n\n\t\ttext-align: left;\n\t\tword-wrap: break-word;\n\t}\n\n\t.qtip-titlebar{\n\t\tposition: relative;\n\t\tpadding: 5px 35px 5px 10px;\n\t\toverflow: hidden;\n\n\t\tborder-width: 0 0 1px;\n\t\tfont-weight: bold;\n\t}\n\n\t.qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }\n\n\t/* Default close button class */\n\t.qtip-close{\n\t\tposition: absolute;\n\t\tright: -9px; top: -9px;\n\t\tz-index: 11; /* Overlap .qtip-tip */\n\n\t\tcursor: pointer;\n\t\toutline: medium none;\n\n\t\tborder: 1px solid transparent;\n\t}\n\n\t\t.qtip-titlebar .qtip-close{\n\t\t\tright: 4px; top: 50%;\n\t\t\tmargin-top: -9px;\n\t\t}\n\n\t\t* html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */\n\n\t\t.qtip-titlebar .ui-icon,\n\t\t.qtip-icon .ui-icon{\n\t\t\tdisplay: block;\n\t\t\ttext-indent: -1000em;\n\t\t\tdirection: ltr;\n\t\t}\n\n\t\t.qtip-icon, .qtip-icon .ui-icon{\n\t\t\t-moz-border-radius: 3px;\n\t\t\t-webkit-border-radius: 3px;\n\t\t\tborder-radius: 3px;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t\t.qtip-icon .ui-icon{\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 14px;\n\n\t\t\t\tline-height: 14px;\n\t\t\t\ttext-align: center;\n\t\t\t\ttext-indent: 0;\n\t\t\t\tfont: normal bold 10px/13px Tahoma,sans-serif;\n\n\t\t\t\tcolor: inherit;\n\t\t\t\tbackground: transparent none no-repeat -100em -100em;\n\t\t\t}\n\n/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */\n.qtip-focus{}\n\n/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */\n.qtip-hover{}\n\n/* Default tooltip style */\n.qtip-default{\n\tborder: 1px solid #F1D031;\n\n\tbackground-color: #FFFFA3;\n\tcolor: #555;\n}\n\n\t.qtip-default .qtip-titlebar{\n\t\tbackground-color: #FFEF93;\n\t}\n\n\t.qtip-default .qtip-icon{\n\t\tborder-color: #CCC;\n\t\tbackground: #F1F1F1;\n\t\tcolor: #777;\n\t}\n\n\t.qtip-default .qtip-titlebar .qtip-close{\n\t\tborder-color: #AAA;\n\t\tcolor: #111;\n\t}\n\n\n/*! Light tooltip style */\n.qtip-light{\n\tbackground-color: white;\n\tborder-color: #E2E2E2;\n\tcolor: #454545;\n}\n\n\t.qtip-light .qtip-titlebar{\n\t\tbackground-color: #f1f1f1;\n\t}\n\n\n/*! Dark tooltip style */\n.qtip-dark{\n\tbackground-color: #505050;\n\tborder-color: #303030;\n\tcolor: #f3f3f3;\n}\n\n\t.qtip-dark .qtip-titlebar{\n\t\tbackground-color: #404040;\n\t}\n\n\t.qtip-dark .qtip-icon{\n\t\tborder-color: #444;\n\t}\n\n\t.qtip-dark .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/*! Cream tooltip style */\n.qtip-cream{\n\tbackground-color: #FBF7AA;\n\tborder-color: #F9E98E;\n\tcolor: #A27D35;\n}\n\n\t.qtip-cream .qtip-titlebar{\n\t\tbackground-color: #F0DE7D;\n\t}\n\n\t.qtip-cream .qtip-close .qtip-icon{\n\t\tbackground-position: -82px 0;\n\t}\n\n\n/*! Red tooltip style */\n.qtip-red{\n\tbackground-color: #F78B83;\n\tborder-color: #D95252;\n\tcolor: #912323;\n}\n\n\t.qtip-red .qtip-titlebar{\n\t\tbackground-color: #F06D65;\n\t}\n\n\t.qtip-red .qtip-close .qtip-icon{\n\t\tbackground-position: -102px 0;\n\t}\n\n\t.qtip-red .qtip-icon{\n\t\tborder-color: #D95252;\n\t}\n\n\t.qtip-red .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #D95252;\n\t}\n\n\n/*! Green tooltip style */\n.qtip-green{\n\tbackground-color: #CAED9E;\n\tborder-color: #90D93F;\n\tcolor: #3F6219;\n}\n\n\t.qtip-green .qtip-titlebar{\n\t\tbackground-color: #B0DE78;\n\t}\n\n\t.qtip-green .qtip-close .qtip-icon{\n\t\tbackground-position: -42px 0;\n\t}\n\n\n/*! Blue tooltip style */\n.qtip-blue{\n\tbackground-color: #E5F6FE;\n\tborder-color: #ADD9ED;\n\tcolor: #5E99BD;\n}\n\n\t.qtip-blue .qtip-titlebar{\n\t\tbackground-color: #D0E9F5;\n\t}\n\n\t.qtip-blue .qtip-close .qtip-icon{\n\t\tbackground-position: -2px 0;\n\t}\n\n\n.qtip-shadow{\n\t-webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\t-moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\tbox-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n}\n\n/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */\n.qtip-rounded,\n.qtip-tipsy,\n.qtip-bootstrap{\n\t-moz-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n}\n\n.qtip-rounded .qtip-titlebar{\n\t-moz-border-radius: 4px 4px 0 0;\n\t-webkit-border-radius: 4px 4px 0 0;\n\tborder-radius: 4px 4px 0 0;\n}\n\n/* Youtube tooltip style */\n.qtip-youtube{\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 3px #333;\n\t-moz-box-shadow: 0 0 3px #333;\n\tbox-shadow: 0 0 3px #333;\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tbackground: #4A4A4A;\n\tbackground-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));\n\tbackground-image: -webkit-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -moz-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -ms-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -o-linear-gradient(top,#4A4A4A 0,black 100%);\n}\n\n\t.qtip-youtube .qtip-titlebar{\n\t\tbackground-color: #4A4A4A;\n\t\tbackground-color: rgba(0,0,0,0);\n\t}\n\n\t.qtip-youtube .qtip-content{\n\t\tpadding: .75em;\n\t\tfont: 12px arial,sans-serif;\n\n\t\tfilter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\";\n\t}\n\n\t.qtip-youtube .qtip-icon{\n\t\tborder-color: #222;\n\t}\n\n\t.qtip-youtube .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* jQuery TOOLS Tooltip style */\n.qtip-jtools{\n\tbackground: #232323;\n\tbackground: rgba(0, 0, 0, 0.7);\n\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));\n\tbackground-image: -moz-linear-gradient(top, #717171, #232323);\n\tbackground-image: -webkit-linear-gradient(top, #717171, #232323);\n\tbackground-image: -ms-linear-gradient(top, #717171, #232323);\n\tbackground-image: -o-linear-gradient(top, #717171, #232323);\n\n\tborder: 2px solid #ddd;\n\tborder: 2px solid rgba(241,241,241,1);\n\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 12px #333;\n\t-moz-box-shadow: 0 0 12px #333;\n\tbox-shadow: 0 0 12px #333;\n}\n\n\t/* IE Specific */\n\t.qtip-jtools .qtip-titlebar{\n\t\tbackground-color: transparent;\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)\";\n\t}\n\t.qtip-jtools .qtip-content{\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)\";\n\t}\n\n\t.qtip-jtools .qtip-titlebar,\n\t.qtip-jtools .qtip-content{\n\t\tbackground: transparent;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-jtools .qtip-icon{\n\t\tborder-color: #555;\n\t}\n\n\t.qtip-jtools .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #333;\n\t}\n\n\n/* Cluetip style */\n.qtip-cluetip{\n\t-webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\t-moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\tbox-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\n\tbackground-color: #D9D9C2;\n\tcolor: #111;\n\tborder: 0 dashed transparent;\n}\n\n\t.qtip-cluetip .qtip-titlebar{\n\t\tbackground-color: #87876A;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-cluetip .qtip-icon{\n\t\tborder-color: #808064;\n\t}\n\n\t.qtip-cluetip .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #696952;\n\t\tcolor: #696952;\n\t}\n\n\n/* Tipsy style */\n.qtip-tipsy{\n\tbackground: black;\n\tbackground: rgba(0, 0, 0, .87);\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tfont-size: 11px;\n\tfont-family: 'Lucida Grande', sans-serif;\n\tfont-weight: bold;\n\tline-height: 16px;\n\ttext-shadow: 0 1px black;\n}\n\n\t.qtip-tipsy .qtip-titlebar{\n\t\tpadding: 6px 35px 0 10px;\n\t\tbackground-color: transparent;\n\t}\n\n\t.qtip-tipsy .qtip-content{\n\t\tpadding: 6px 10px;\n\t}\n\n\t.qtip-tipsy .qtip-icon{\n\t\tborder-color: #222;\n\t\ttext-shadow: none;\n\t}\n\n\t.qtip-tipsy .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* Tipped style */\n.qtip-tipped{\n\tborder: 3px solid #959FA9;\n\n\t-moz-border-radius: 3px;\n\t-webkit-border-radius: 3px;\n\tborder-radius: 3px;\n\n\tbackground-color: #F9F9F9;\n\tcolor: #454545;\n\n\tfont-weight: normal;\n\tfont-family: serif;\n}\n\n\t.qtip-tipped .qtip-titlebar{\n\t\tborder-bottom-width: 0;\n\n\t\tcolor: white;\n\t\tbackground: #3A79B8;\n\t\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));\n\t\tbackground-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -moz-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -ms-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -o-linear-gradient(top, #3A79B8, #2E629D);\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)\";\n\t}\n\n\t.qtip-tipped .qtip-icon{\n\t\tborder: 2px solid #285589;\n\t\tbackground: #285589;\n\t}\n\n\t\t.qtip-tipped .qtip-icon .ui-icon{\n\t\t\tbackground-color: #FBFBFB;\n\t\t\tcolor: #555;\n\t\t}\n\n\n/**\n * Twitter Bootstrap style.\n *\n * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.\n * Does not work with IE 7.\n */\n.qtip-bootstrap{\n\t/** Taken from Bootstrap body */\n\tfont-size: 14px;\n\tline-height: 20px;\n\tcolor: #333333;\n\n\t/** Taken from Bootstrap .popover */\n\tpadding: 1px;\n\tbackground-color: #ffffff;\n\tborder: 1px solid #ccc;\n\tborder: 1px solid rgba(0, 0, 0, 0.2);\n\t-webkit-border-radius: 6px;\n\t-moz-border-radius: 6px;\n\tborder-radius: 6px;\n\t-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\tbox-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-webkit-background-clip: padding-box;\n\t-moz-background-clip: padding;\n\tbackground-clip: padding-box;\n}\n\n\t.qtip-bootstrap .qtip-titlebar{\n\t\t/** Taken from Bootstrap .popover-title */\n\t\tpadding: 8px 14px;\n\t\tmargin: 0;\n\t\tfont-size: 14px;\n\t\tfont-weight: normal;\n\t\tline-height: 18px;\n\t\tbackground-color: #f7f7f7;\n\t\tborder-bottom: 1px solid #ebebeb;\n\t\t-webkit-border-radius: 5px 5px 0 0;\n\t\t-moz-border-radius: 5px 5px 0 0;\n\t\tborder-radius: 5px 5px 0 0;\n\t}\n\n\t\t.qtip-bootstrap .qtip-titlebar .qtip-close{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-titlebar .qtip-close{\n\t\t\t * [...]\n\t\t\t * right: 4px;\n\t\t\t * top: 50%;\n\t\t\t * [...]\n\t\t\t * border-style: solid;\n\t\t\t * }\n\t\t\t */\n\t\t\tright: 11px;\n\t\t\ttop: 45%;\n\t\t\tborder-style: none;\n\t\t}\n\n\t.qtip-bootstrap .qtip-content{\n\t\t/** Taken from Bootstrap .popover-content */\n\t\tpadding: 9px 14px;\n\t}\n\n\t.qtip-bootstrap .qtip-icon{\n\t\t/**\n\t\t * Overrides qTip2:\n\t\t * .qtip-default .qtip-icon {\n\t\t * border-color: #CCC;\n\t\t * background: #F1F1F1;\n\t\t * color: #777;\n\t\t * }\n\t\t */\n\t\tbackground: transparent;\n\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-icon .ui-icon{\n\t\t\t * width: 18px;\n\t\t\t * height: 14px;\n\t\t\t * }\n\t\t\t */\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\n\t\t\t/* Taken from Bootstrap .close */\n\t\t\tfloat: right;\n\t\t\tfont-size: 20px;\n\t\t\tfont-weight: bold;\n\t\t\tline-height: 18px;\n\t\t\tcolor: #000000;\n\t\t\ttext-shadow: 0 1px 0 #ffffff;\n\t\t\topacity: 0.2;\n\t\t\tfilter: alpha(opacity=20);\n\t\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon:hover{\n\t\t\t/* Taken from Bootstrap .close:hover */\n\t\t\tcolor: #000000;\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t\topacity: 0.4;\n\t\t\tfilter: alpha(opacity=40);\n\t\t}\n\n\n/* IE9 fix - removes all filters */\n.qtip:not(.ie9haxors) div.qtip-content,\n.qtip:not(.ie9haxors) div.qtip-titlebar{\n\tfilter: none;\n\t-ms-filter: none;\n}\n\n\n.qtip .qtip-tip{\n\tmargin: 0 auto;\n\toverflow: hidden;\n\tz-index: 10;\n\n}\n\n\t/* Opera bug #357 - Incorrect tip position\n\thttps://github.com/Craga89/qTip2/issues/367 */\n\tx:-o-prefocus, .qtip .qtip-tip{\n\t\tvisibility: hidden;\n\t}\n\n\t.qtip .qtip-tip,\n\t.qtip .qtip-tip .qtip-vml,\n\t.qtip .qtip-tip canvas{\n\t\tposition: absolute;\n\n\t\tcolor: #123456;\n\t\tbackground: transparent;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip .qtip-tip canvas{ top: 0; left: 0; }\n\n\t.qtip .qtip-tip .qtip-vml{\n\t\tbehavior: url(#default#VML);\n\t\tdisplay: inline-block;\n\t\tvisibility: visible;\n\t}\n\n\n#qtip-overlay{\n\tposition: fixed;\n\tleft: 0; top: 0;\n\twidth: 100%; height: 100%;\n}\n\n\t/* Applied to modals with show.modal.blur set to true */\n\t#qtip-overlay.blurs{ cursor: pointer; }\n\n\t/* Change opacity of overlay here */\n\t#qtip-overlay div{\n\t\tposition: absolute;\n\t\tleft: 0; top: 0;\n\t\twidth: 100%; height: 100%;\n\n\t\tbackground-color: black;\n\n\t\topacity: 0.7;\n\t\tfilter:alpha(opacity=70);\n\t\t-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)\";\n\t}\n\n\n.qtipmodal-ie6fix{\n\tposition: absolute !important;\n}\n","/**\n * Give Frontend Fonts SCSS\n *\n * Fonts are from icomoon and the src paths need to be relative to template directory.\n * @package Give\n * @subpackage SCSS/Frontend\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n@font-face {\n font-family: 'give-icomoon';\n src: url('../assets/fonts/icomoon.eot?kdnr3d');\n src: url('../assets/fonts/icomoon.eot?kdnr3d#iefix') format('embedded-opentype'),\n url('../assets/fonts/icomoon.woff?kdnr3d') format('woff'),\n url('../assets/fonts/icomoon.svg?kdnr3d#icomoon') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n@mixin iconstyle() {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n // Better Font Rendering\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n[class^=\"give-icon-\"], [class*=\" give-icon-\"] {\n @include iconstyle();\n}\n\n.give-icon-lamp:before {\n content: \"\\e603\";\n}\n\n.give-icon-heart:before {\n content: \"\\e604\";\n}\n\n.give-icon-question:before {\n content: \"\\e602\";\n}\n\n.give-icon-info:before {\n content: \"\\e601\";\n}\n\n.give-icon-new-tab:before {\n content: \"\\ea7e\";\n}\n\n.give-icon-alert:before {\n content: \"\\f02d\";\n}\n\n.give-icon-help:before {\n content: \"\\e606\";\n}\n\n.give-icon-spinner:before {\n content: \"\\e605\";\n}\n\n.give-icon-spinner2:before {\n content: \"\\e607\";\n}\n\n.give-icon-plus:before {\n content: \"\\e040\";\n}\n\n.give-icon-minus:before {\n content: \"\\e041\";\n}\n\n.give-icon-locked:before {\n content: \"\\e600\";\n}\n\n.dashicons-give:before {\n @include iconstyle();\n content: \"\\e800\";\n}\n\n// --------------------------\n// Spinning Icons\n// --------------------------\n\n.fa-spin {\n -webkit-animation: spin 1000ms infinite linear;\n animation: spin 1000ms infinite linear;\n}\n\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","@font-face {\n\tfont-family: 'give-icomoon';\n\tfont-weight: normal;\n\tfont-style: normal;\n}\n\n@mixin admin_fonts() {\n\tfont-family: 'give-icomoon';\n\tsrc: url('../assets/fonts/icomoon.eot?kdnr3d');\n\tsrc: url('../assets/fonts/icomoon.eot?kdnr3d#iefix') format('embedded-opentype'),\n\turl('../assets/fonts/icomoon.woff?kdnr3d') format('woff'),\n\turl('../assets/fonts/icomoon.svg?kdnr3d#icomoon') format('svg');\n\tspeak: none;\n\tfont-style: normal;\n\tfont-weight: normal;\n\tfont-variant: normal;\n\ttext-transform: none;\n\tline-height: 1;\n\n\t// Better Font Rendering\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\n// ---------------------------------\n// Donation form vertical tab icons.\n// ---------------------------------\n.give-metabox-tabs li {\n\n\t.give-icon:before {\n\t\t@include admin_fonts();\n\t\tfont-size: 12px;\n\t\tvertical-align: top;\n\t\tline-height: 20px;\n\t\tmargin: 0 5px 0 0;\n\t}\n\n\t.give-icon-default:before {\n\t\tcontent: \"\\e903\";\n\t}\n\n\t//Donation options tab.\n\t.give-icon-heart:before {\n\t\tcontent: \"\\e604\"; //this is a wp dashicon heart.\n\t}\n\t//Goal tab.\n\t.give-icon-target:before {\n\t\tcontent: \"\\e901\";\n\t}\n\t//Form display tab.\n\t.give-icon-display:before {\n\t\tcontent: \"\\e90c\";\n\t}\n\t//Form content tab.\n\t.give-icon-edit:before {\n\t\tcontent: \"\\e902\";\n\t}\n\t//Form terms tab.\n\t.give-icon-checklist:before {\n\t\tposition: relative;\n\t\ttop: 1px;\n\t\tcontent: \"\\e900\";\n\t}\n\t//Form offline donations tab.\n\t.give-icon-purse:before {\n\t\tcontent: \"\\e8df\";\n\t}\n\n}","/**\r\n * Give Forms SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*------------------------------------\r\nForms CPT\r\n--------------------------------------*/\r\n/* Hide conditional fields */\r\n.cmb2-id--give-set-price,\r\n.cmb2-id--give-levels-header,\r\n.cmb2-id--give-levels-header + .cmb-repeat-group-wrap,\r\n.cmb2-id--give-display-style,\r\n.post-type-give_forms .tablenav #post-query-submit,\r\n.give-hidden,\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-reveal-label,\r\n.cmb2-id--give-custom-amount-minimum,\r\n.cmb2-id--give-custom-amount-text,\r\n.cmb2-id--give-offline-checkout-notes,\r\n.cmb-type-levels-id,\r\n#_give_donation_levels_repeat .cmb-group-title,\r\n#_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row,\r\n#_give_donation_levels_repeat .cmb-row > .handlediv {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Donation Levels Repeating Field */\r\n#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {\r\n\tfont-size: 12px;\r\n}\r\n\r\n//-----------------------------\r\n// Table Rows\r\n//-----------------------------\r\ndiv.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {\r\n\tpadding: 0 !important;\r\n\tmargin: 0 !important;\r\n\tmin-width: 100%;\r\n\tmax-width: 0;\r\n\r\n}\r\n\r\n//-----------------------------\r\n// Multilevel Repeater Header\r\n//-----------------------------\r\n.cmb2-id--give-levels-header {\r\n\tpadding: 10px 12px 0 !important;\r\n\tmargin: 0 !important;\r\n\tbackground: #F7F7F7;\r\n\tborder-bottom: none !important;\r\n\r\n\t.table-container {\r\n\t\tdisplay: table;\r\n\t\twidth: 100%;\r\n\r\n\t\tborder-top: 1px solid #e9e9e9;\r\n\t\tborder-bottom: 1px solid #e9e9e9;\r\n\t\tborder-left: 1px solid #e9e9e9;\r\n\r\n\t\t> .table-row {\r\n\t\t\tdisplay: table-row;\r\n\t\t\tbackground: #FCFCFC;\r\n\r\n\t\t\t> .table-cell {\r\n\t\t\t\tdisplay: table-cell;\r\n\t\t\t\tvertical-align: middle;\r\n\t\t\t\tpadding: 10px 15px;\r\n\t\t\t\tborder-right: 1px solid #e9e9e9;\r\n\t\t\t\t&.col-id {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}\r\n}\r\n\r\n#_give_donation_levels_repeat {\r\n\tbackground: #F7F7F7;\r\n\tpadding: 0 1px 20px 12px;\r\n\tbox-sizing: border-box;\r\n\r\n\t.cmb-row, .inside {\r\n\t\tmargin: 0;\r\n\t}\r\n\t.cmb-remove-field-row {\r\n\t\tmargin: 3px 0 0;\r\n\r\n\t\t.button {\r\n\t\t\theight: 25px;\r\n\t\t\tpadding: 0 3px;\r\n\t\t}\r\n\t\tspan.dashicons-no {\r\n\t\t\tline-height: 1.15em;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.cmbhandle {\r\n\t\tdisplay: none;\r\n\t}\r\n\t.cmb-add-row {\r\n\t\tmargin: 12px 0 0;\r\n\t}\r\n\r\n}\r\n\r\n//---------------------------------------------------\r\n// Field One Offs\r\n//---------------------------------------------------\r\n.give-time-field {\r\n\twidth: 65px;\r\n}\r\n\r\n.give-money-field {\r\n\twidth: 75px;\r\n\tmargin-right: 0;\r\n\tmargin-left: 0;\r\n}\r\n\r\n.give-money-symbol {\r\n\tborder: 1px solid #DDD;\r\n\tbackground: #FCFCFC;\r\n\tmargin: 0;\r\n\tfont-size: 14px;\r\n\tpadding: 5px 8px;\r\n}\r\n\r\n.give-money-symbol-before {\r\n\tborder-right: 0;\r\n\tmargin-right: -4px;\r\n}\r\n\r\n.give-money-symbol-after {\r\n\t//border-left: 0;\r\n\tmargin-left: -1px;\r\n}\r\n\r\n.give_options_panel input[ type=\"text\"] {\r\n\tpadding: 5px;\r\n\twidth: 100%;\r\n}\r\n\r\ninput.give-text_small,\r\ninput.give-text-small {\r\n\twidth: 100px !important;\r\n}\r\n\r\ninput.give-text-medium,\r\ninput.give-text_medium {\r\n\twidth: 200px !important;\r\n}\r\n\r\n.give-underline {\r\n\ttext-decoration: underline;\r\n}\r\n\r\n.postbox-container .cmb-row {\r\n\tmargin: 0;\r\n\r\n\t.cmb-th label {\r\n\t\tpadding-left: 8px;\r\n\t}\r\n\r\n}\r\n\r\n//---------------------------------------------------\r\n// Responsive\r\n//---------------------------------------------------\r\n@media only screen and (min-width: 851px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\t\t> .cmb-row {\r\n\t\t\tfloat: left;\r\n\t\t\tborder-bottom: none;\r\n\t\t\tpadding-right: 10px;\r\n\t\t\t> .cmb-th {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t\t> .cmb-td {\r\n\t\t\t\tfloat: left;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.cmb-type-give-default-radio-inline .cmb-td {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n\r\n}\r\n\r\n/* Smaller Resolution Desktops */\r\n@media only screen and (min-width: 851px) and (max-width: 1201px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t\t> .cmb-remove-field-row {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding-top: 0;\r\n\t\t}\r\n\t\t> .cmb-type-text-money {\r\n\t\t\twidth: 105px;\r\n\t\t}\r\n\t\tinput.cmb2-text-money {\r\n\t\t\twidth: 65px;\r\n\t\t}\r\n\r\n\t\t.give-multilevel-text-field {\r\n\t\t\twidth: 160px;\r\n\t\t}\r\n\t\t.cmb-type-radio-inline {\r\n\t\t\tmargin-left: 20px;\r\n\t\t}\r\n\r\n\t}\r\n\t.col-amount {\r\n\t\twidth: 70px;\r\n\t}\r\n\t.col-text {\r\n\t\twidth: 140px;\r\n\t}\r\n\t.col-sort {\r\n\t\tdisplay: none !important;\r\n\t}\r\n\t.give-money-field {\r\n\t\twidth: 55px;\r\n\t}\r\n}\r\n\r\n@media only screen and (min-width: 1201px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t\t> .cmb-remove-field-row {\r\n\t\t\tfloat: right;\r\n\t\t}\r\n\t\t> .cmb-row {\r\n\t\t\tpadding-right: 20px;\r\n\t\t}\r\n\t\t> .cmb-remove-field-row.cmb-row {\r\n\t\t\tpadding-right: 0;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.col-amount {\r\n\t\twidth: 93px;\r\n\t}\r\n\t.col-text {\r\n\t\twidth: 195px;\r\n\t}\r\n\t.col-sort {\r\n\t\twidth: 100px;\r\n\t}\r\n\t.give-multilevel-text-field {\r\n\t\twidth: 205px;\r\n\t}\r\n\r\n}\r\n\r\n//Small Resolution Repeater\r\n@media only screen and (max-width: 850px) {\r\n\tdiv.cmb-type-levels-repeater-header {\r\n\t\tdisplay: none !important;\r\n\t}\r\n}\r\n\r\n//-------------------------------------\r\n// Publish Metabox\r\n//-------------------------------------\r\n\r\n/*Shortcode Input */\r\n\r\n.shortcode-wrap {\r\n\tmargin: 1px 14px 12px 11px;\r\n\r\n\tlabel {\r\n\t\tmargin: 0 0 3px;\r\n\t\tdisplay: block;\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t.shortcode-input {\r\n\t\tmargin: 0;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n}\r\n\r\n//-------------------------------------\r\n// Content Options\r\n//-------------------------------------\r\n\r\n.cmb2-id--give-content-option,\r\n.cmb2-id--give-terms-option,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single,\r\n.cmb2-id--give-goal-option,\r\n.cmb2-id--give-customize-offline-donations {\r\n\tborder-bottom: none !important;\r\n\tmargin: 0 !important;\r\n}\r\n\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-offline-checkout-notes,\r\n.cmb2-id--give-set-goal,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single {\r\n\tborder-top: 1px solid #e9e9e9 !important;\r\n}\r\n\r\n/*-------------------------------------\r\nTerms and Conditions Metabox\r\n---------------------------------------*/\r\n\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-agree-text {\r\n\tdisplay: none;\r\n}\r\n\r\n/*-------------------------------------\r\nDashboard Columns\r\n-------------------------------------*/\r\n\r\ninput.shortcode-input {\r\n\twidth: 100%;\r\n}\r\n\r\n/*-------------------------------------\r\nASIDE\r\n-------------------------------------*/\r\n\r\n#side-sortables {\r\n\r\n\t.cmb-th label {\r\n\r\n\t\t&:after {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\r\n\t}\r\n\t.cmb2-id--give-show-register-form {\r\n\t\tpadding: 10px 0 0 !important;\r\n\t}\r\n\r\n\t.cmb2-wrap > .cmb-field-list > .cmb-row {\r\n\t\tpadding-top: 10px;\r\n\t}\r\n\r\n\t.cmb-row .cmb2-metabox-description {\r\n\t\tpadding-bottom: 0;\r\n\t}\r\n\r\n}\r\n\r\n.cmb2-metabox-description {\r\n\tfont-size: 13px;\r\n\tline-height: 1.5;\r\n\tdisplay: block;\r\n}\r\n\r\n//-------------------------------------\r\n// Tooltips\r\n//-------------------------------------\r\n.give-tooltip {\r\n\tmargin: 0 3px;\r\n\tpadding: 0;\r\n\tfont-size: 14px;\r\n\t@include easing-transition();\r\n\tcolor: transparentize($dark, 0.5);\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\r\n\t&:hover {\r\n\t\tcolor: $dark;\r\n\t}\r\n\r\n}\r\n\r\n//-------------------------------------\r\n// Metabox Form\r\n// -------------------------------------\r\n#give-metabox-form-data {\r\n\r\n\t.inside {\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\r\n\t.give-metabox-panel-wrap {\r\n\t\tbackground: #fff;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t.give_options_panel {\r\n\t\tpadding-left: 170px;\r\n\r\n\t\t.give-field-wrap {\r\n\t\t\tpadding: 1em 20px 1em 162px !important;\r\n\t\t\tmargin: 0;\r\n\t\t\tborder-bottom: 1px solid #eee;\r\n\r\n\t\t\t> label, > span.give-field-label {\r\n\t\t\t\tfloat: left;\r\n\t\t\t\twidth: 135px;\r\n\t\t\t\tpadding: 0;\r\n\t\t\t\tmargin: 2px 0 0 -150px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t}\r\n\r\n\t\t\t.give-field-description {\r\n\t\t\t\tcolor: #aaaaaa;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tpadding-top: 10px;\r\n\t\t\t\tfont-style: italic;\r\n\t\t\t}\r\n\r\n\t\t\tul {\r\n\t\t\t\tmargin: 0;\r\n\t\t\t}\r\n\r\n\t\t\t.mce-container iframe, textarea {\r\n\t\t\t\tmin-height: 250px !important;\r\n\t\t\t}\r\n\r\n\t\t\t.wp-editor-wrap {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:last-child {\r\n\t\t\tborder-bottom: 0;\r\n\t\t}\r\n\r\n\t\ttextarea.give-field {\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:hover .give-field-row-actions {\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:last-child {\r\n\t\t\tborder-bottom: 0;\r\n\t\t}\r\n\r\n\t\t.give-inline-radio-fields {\r\n\t\t\tli {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\tmargin-right: 15px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.give-repeatable-field-section {\r\n\t\t\tpadding: 10px;\r\n\t\t\tbackground: #f5f5f5;\r\n\r\n\t\t\t.give-repeatable-fields-section-wrapper {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tbackground-color: white;\r\n\t\t\t\tborder-collapse: collapse;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row {\r\n\t\t\t\tborder-bottom: 15px solid #f5f5f5;\r\n\t\t\t\tbackground-color: white;\r\n\t\t\t}\r\n\r\n\t\t\t.give-template {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row:last-child {\r\n\t\t\t\tborder-bottom: 10px solid #f5f5f5;\r\n\t\t\t}\r\n\r\n\t\t\t.give-column {\r\n\t\t\t\tpadding: 0;\r\n\t\t\t}\r\n\r\n\t\t\t.give-remove {\r\n\t\t\t\tfloat: right;\r\n\t\t\t\twidth: 36px;\r\n\t\t\t\theight: 36px;\r\n\t\t\t\tpadding: 0;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 34px;\r\n\t\t\t\tfont-size: 21px;\r\n\t\t\t\tfont-weight: 300;\r\n\t\t\t\tcursor: pointer;\r\n\t\t\t}\r\n\r\n\t\t\t.give-remove:hover {\r\n\t\t\t\tbackground-color: red;\r\n\t\t\t\tcolor: white;\r\n\t\t\t\twidth: 30px;\r\n\t\t\t\theight: 30px;\r\n\t\t\t\tborder-radius: 30px;\r\n\t\t\t\tmargin-top: 3px;\r\n\t\t\t\tline-height: 28px;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row-head {\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t\tcursor: move;\r\n\t\t\t\th2 {\r\n\t\t\t\t\ttext-align: left !important;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.give-row.closed .toggle-indicator:before {\r\n\t\t\t\tcontent: \"\\f140\";\r\n\t\t\t}\r\n\r\n\t\t\t.give-add-repeater-field-section-row-wrap {\r\n\t\t\t\tbackground-color: #f5f5f5;\r\n\t\t\t}\r\n\r\n\t\t\t.give-add-repeater-field-section-row {\r\n\t\t\t\tmargin: 5px 5px;\r\n\t\t\t}\r\n\r\n\t\t\t.give-field-wrap:last-child {\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t}\r\n\r\n\t\t\t.give-ui-placeholder-state-highlight {\r\n\t\t\t\tbackground-color: #68bb6c;\r\n\t\t\t}\r\n\r\n\t\t\t.give-repeater-field-name {\r\n\t\t\t\tborder: 0 !important;\r\n\t\t\t\tpadding: 0 !important;\r\n\t\t\t}\r\n\r\n\t\t\t.give-repeater-field-description {\r\n\t\t\t\tcolor: #aaaaaa;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tpadding-bottom: 10px;\r\n\t\t\t\tfont-style: italic;\r\n\t\t\t}\r\n\r\n\t\t\t// Sortable jquery css fix.\r\n\t\t\t.ui-sortable-helper {\r\n\t\t\t\tdisplay: table !important;\r\n\t\t\t}\r\n\t\t\t.give-row.ui-sortable-helper {\r\n\t\t\t\tborder-bottom: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n//-------------------------------------\r\n// Metabox Tabs\r\n//-------------------------------------\r\n#give-metabox-form-data {\r\n\r\n\t.give-metabox-tabs {\r\n\t\tmargin: 0;\r\n\t\tmin-width: 170px;\r\n\t\tfloat: left;\r\n\t\tline-height: 1em;\r\n\t\tpadding: 0 0 10px;\r\n\t\tposition: relative;\r\n\t\tbackground-color: #fafafa;\r\n\t\tborder-right: 1px solid #eee;\r\n\t\tbox-sizing: border-box;\r\n\r\n\t\t&:after {\r\n\t\t\tcontent: \"\";\r\n\t\t\tdisplay: block;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 9999em;\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: -9999em;\r\n\t\t\tleft: 0;\r\n\t\t\tbackground-color: #fafafa;\r\n\t\t\tborder-right: 1px solid #eee;\r\n\t\t}\r\n\r\n\t\tli {\r\n\t\t\tmargin: 0;\r\n\t\t\tpadding: 0;\r\n\t\t\tdisplay: block;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\ta {\r\n\t\t\t\tmargin: 0;\r\n\t\t\t\tpadding: 10px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tbox-shadow: none;\r\n\t\t\t\ttext-decoration: none;\r\n\t\t\t\tline-height: 20px !important;\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t\toverflow: hidden;\r\n\r\n\t\t\t\tspan.give-label {\r\n\t\t\t\t\twidth: 122px;\r\n\t\t\t\t\tdisplay: inline-block;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t.give-metabox-sub-tabs li {\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\ta {\r\n\t\t\t\tborder-bottom-color: #e5e5e5;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tli.active {\r\n\t\t\t> a {\r\n\t\t\t\tcolor: #555;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tbackground-color: #eee;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tli.has-sub-fields.active > a {\r\n\t\t\tbackground-color: #ddd;\r\n\t\t}\r\n\r\n\t\tli.has-sub-fields:not(.active):hover {\r\n\t\t\tul.give-metabox-sub-tabs {\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tbottom: 0;\r\n\t\t\t\tleft: 170px;\r\n\t\t\t\twidth: 170px;\r\n\t\t\t\tmax-height: 250px;\r\n\t\t\t\toverflow-y: scroll;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\n// Icons only display for tight resolutions.\r\n@media only screen and (min-width: 851px) and (max-width: 1025px),\r\n(max-width: 550px) {\r\n\r\n\t#give-metabox-form-data {\r\n\t\tul.give-metabox-tabs {\r\n\t\t\tmin-width: 40px;\r\n\r\n\t\t\tli > a {\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\t&:before {\r\n\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t\tfont-size: 15px;\r\n\t\t\t\t}\r\n\t\t\t\tspan {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t.give_options_panel {\r\n\t\t\tpadding-left: 40px;\r\n\t\t}\r\n\r\n\t}\r\n\t//#give-metabox-form-data\r\n}\r\n\r\n//-------------------------------------\r\n// Export Form\r\n// -------------------------------------\r\n\r\n#give-export-payments {\r\n\t.give_forms_categories,\r\n\t.give_forms_tags {\r\n\t\tinput {\r\n\t\t\tcolor: #999;\r\n\t\t}\r\n\r\n\t\tmin-width: 250px;\r\n\t\tmargin: 0 0 10px 0;\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\tdiv.chosen-container:first-of-type {\r\n\t\tmargin-top: 10px;\r\n\t}\r\n}\r\n\r\n/*-------------------------------------\r\nDoc Links\r\n-------------------------------------*/\r\n\r\n.give-docs-link {\r\n\ttext-align: right;\r\n\tmargin-right: 15px;\r\n\r\n\ta {\r\n\t\tcolor: #999;\r\n\t\ttext-decoration: none;\r\n\t\tfont-style: italic;\r\n\r\n\t\t&:hover {\r\n\t\t\tcolor: rgb(0, 115, 170);\r\n\t\t}\r\n\t\tspan {\r\n\t\t\tfont-style: normal;\r\n\t\t}\r\n\t}\r\n}","/**\n * Give Add-ons SCSS\n *\n * @description Add-on Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.type-download {\n float: left;\n margin: 0 1em 1em 0 !important;\n padding: 0;\n vertical-align: top;\n width: 280px;\n text-decoration: none;\n color: inherit;\n border: 1px solid #ddd;\n display: block;\n min-height: 365px;\n overflow: hidden;\n background: #f5f5f5;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n -webkit-transition-property: border, background, color;\n transition-property: border, background, color;\n -webkit-transition-duration: .05s;\n transition-duration: .05s;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n position: relative;\n\n &:hover {\n\tborder: 1px solid #d1d1d1;\n }\n\n > .featured-img img {\n\tborder-bottom: 1px solid #ddd;\n }\n\n .addon-content {\n\t@include clearfix;\n\tpadding: 15px 20px;\n\n\t.addon-heading {\n\t margin: 0 0 10px;\n\t a {\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t }\n\t}\n\n }\n\n .addon-footer-wrap {\n\tborder-top: 1px solid #ddd;\n\tposition: absolute;\n\tbottom: 2px;\n\tleft: 0;\n\twidth: 100%;\n\tbackground-color: #FFF;\n\tpadding: 15px 20px;\n }\n\n}\n\n.give-view-addons-all, .type-download {\n\n span.dashicons {\n\twidth: 16px;\n\theight: 16px;\n\tfont-size: 14px;\n\tmargin: 6px 0 0 0;\n }\n\n}\n\n.give-view-addons-all span.dashicons {\n margin-left: 3px;\n}\n","/**\n * Give Reports SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n//---------------------------------------------------------\n// Dashboard Widget\n//---------------------------------------------------------\n#give-dashboard-widgets-wrap {\n\n .inside {\n padding-top: 0;\n padding-bottom: 0;\n\n /* counteract extra padding in Income Report graph */\n .give_forms_page_give-reports & {\n padding-left: 0;\n }\n\n #give-graphs-filter {\n float:none;\n }\n }\n\n .postbox {\n margin-bottom: 10px;\n }\n\n table.reports-table {\n clear: none;\n }\n\n #give-date-range-options {\n float: left;\n\n > span {\n float: left;\n line-height: 30px;\n font-style: italic;\n padding: 0 5px 0 0;\n }\n\n }\n\n}\n\n\n#give-graphs-filter {\n float:right;\n\n .tablenav {\n margin: 0 0 0 17px;\n .actions {\n padding: 0;\n }\n }\n}\n\n//---------------------------------------------------------\n// Global Graph Styles\n//---------------------------------------------------------\n\n.give-graph {\n .y1Axis {\n color: #66bb6a !important;\n }\n .y2Axis {\n color: #546e7a !important;\n }\n}\n\n//---------------------------------------------------------\n//Donor Filter\n//---------------------------------------------------------\nbody.give_forms_page_give-reports, body.give_forms_page_give-payment-history {\n\n h1.nav-tab-wrapper, h2.nav-tab-wrapper {\n margin-bottom: 10px;\n }\n .actions {\n padding-top: 0;\n }\n\n .pagination-links {\n margin-left: 10px;\n }\n\n p.donor-search {\n margin-right: 10px;\n }\n\n .tablenav-right {\n\n .tablenav-pages {\n float: right;\n }\n #give-reports-view {\n margin-top: 0;\n }\n .actions {\n float: left;\n }\n\n }\n\n p.search-box {\n float: left;\n }\n\n .reports-table-nav.tablenav.top {\n width: 100%;\n float: none;\n margin: 0 0 10px;\n }\n\n .reports-forms-details-wrap.top {\n float: right;\n overflow: hidden;\n\n #give-reports-filter {\n float: left;\n }\n > .actions {\n padding-right: 0;\n }\n }\n\n .tablenav.bottom {\n margin-top: 10px;\n }\n\n h3.reports-earnings-title {\n margin: 7px 0 0;\n }\n\n .reports-views-wrap {\n padding: 3px 0 0;\n }\n\n .wrap.give-reports-donors-wrap {\n margin-right: 0;\n margin-bottom: 10px;\n }\n\n .widefat tbody td, .widefat tbody th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n\n}\n\n//---------------------------------------------------------\n//Export Options Styles\n//---------------------------------------------------------\nbody.give_forms_page_give-reports table.export-options-table {\n tbody td {\n padding: 20px 12px;\n vertical-align: top;\n }\n .give-export-form {\n position: relative;\n .notice-wrap {\n background-color: transparent;\n padding: 12px 12px 4px;\n margin: 2px 0 -16px -11px;\n overflow: auto;\n .spinner {\n margin: -2px -12px 8px 0;\n }\n }\n }\n\n span#give-start-wrap, span#give-end-wrap {\n input {\n width: 100px;\n }\n }\n\n}\n\n#export-donor-options-wrap {\n p {\n padding: 20px 0 0;\n margin: 0;\n font-weight: bold;\n }\n ul {\n max-width: 900px;\n overflow: hidden;\n\n li {\n margin: 0;\n padding: 0 5px 5px 0;\n box-sizing: border-box;\n float: left;\n width: 33%;\n }\n }\n\n}\n\n//---------------------------------------------------------\n//Recount Stats Form\n//---------------------------------------------------------\n\n#give-tools-recount-form {\n\n .notice-wrap {\n position: relative;\n min-height: 25px;\n margin: 10px -12px -12px;\n background: #EFEFEF;\n padding: 10px 12px 12px;\n border-top: 1px solid #E5E5E5;\n\n .give-progress {\n position: absolute;\n top: 15px;\n }\n\n .spinner {\n position: absolute;\n right: 14px;\n top: 13px;\n margin: 0;\n }\n\n #give-batch-success {\n margin-bottom: 6px;\n }\n\n }\n\n}\n\n//---------------------------------------------------------\n//Progress Bar Styles\n//---------------------------------------------------------\n.give-progress {\n height: 15px;\n width: 95%;\n border-radius: 4px;\n overflow: hidden;\n > div {\n height: 100%;\n width: 0;\n }\n\n}\n\n.admin-color-fresh .give-export-form .give-progress div, .give-export-form .give-progress div {\n background: #0073aa;\n}\n\n.admin-color-light .give-export-form .give-progress div {\n background: #888;\n}\n\n.admin-color-blue .give-export-form .give-progress div {\n background: #096484;\n}\n\n.admin-color-coffee .give-export-form .give-progress div {\n background: #c7a589;\n}\n\n.admin-color-ectoplasm .give-export-form .give-progress div {\n background: #a3b745;\n}\n\n.admin-color-midnight .give-export-form .give-progress div {\n background: #e14d43;\n}\n\n.admin-color-sunrise .give-export-form .give-progress div {\n background: #dd823b;\n}\n\n//---------------------------------------------------------\n//Tools\n//---------------------------------------------------------\n\n.recount-stats-controls form {\n display: inline;\n}\n\n.give-recount-stats-descriptions {\n margin: 8px 0 0;\n display: block;\n\n span {\n line-height: 24px;\n font-size: 13px;\n font-style: italic;\n font-weight: normal;\n color: #aaa;\n margin: 0;\n display: none;\n }\n}\n\n//---------------------------------------------------------\n//Payment Methods\n//---------------------------------------------------------\n.gateways-report-tablenav {\n .actions.bulkactions {\n padding-right: 0;\n }\n}\n\n//---------------------------------------------------------\n//Table List Styles\n//---------------------------------------------------------\n\ntable.give-table {\n\n td {\n vertical-align: middle;\n }\n td.row-title {\n h3 {\n margin: 0 0 0.4em;\n font-size: 1.2em;\n }\n p {\n font-size: 13px;\n font-style: italic;\n font-weight: normal;\n color: #aaa;\n margin: 0;\n }\n }\n\n}\n\n#give-graphs-filter > .tablenav {\n height: auto;\n}\n\n//---------------------------------------------------------\n//Logs\n//---------------------------------------------------------\n#give-logs-filter {\n .search-box {\n float: right;\n }\n .tablenav.top {\n float: left;\n clear: none;\n margin-top: 0;\n }\n}","/**\n * Give Admin Welcome SCSS\n *\n * @description Displays when user activates the plugin\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n */\n\n.welcome-h1 {\n display: inline-block;\n margin-right: 15px !important;\n}\n\n.about-wrap {\n h3 {\n margin: 1.5em 0 .6em;\n }\n\n img {\n border:none;\n }\n}\n\n.give-badge {\n padding-top: 150px;\n height: 52px;\n width: 185px;\n color: #FFF;\n font-weight: bold;\n font-size: 14px;\n text-align: center;\n text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);\n margin: 0 -5px;\n\n position: absolute;\n top: 0;\n right: 0;\n}\n\n.introduction {\n padding: 0 0 20px;\n margin: 0 0 20px;\n}\n\n//Feature section\n.feature-section {\n margin-top: 40px;\n\n span.dashicons {\n width: 16px;\n height: 16px;\n font-size: 14px;\n margin: 6px 0 0 0;\n }\n\n .feature-section-item {\n width: 48%;\n float: left;\n }\n\n div.last-feature {\n margin-right: 0;\n margin-left: 4%;\n }\n\n}\n\n//Get started\n[class^=\"dashboard_page_give-\"], [class*=\"dashboard_page_give-\"] {\n .about-text {\n min-height: 0;\n }\n}\n\n//Social Media\n.social-items-wrap {\n display: inline-block;\n > div {\n display: inline-block;\n }\n .twitter-item-wrap {\n margin: 0 20px 10px 0;\n }\n}\n\n//Credits\n.wp-person {\n img {\n border-radius: 50%;\n }\n a.web {\n margin: 17px 0 0;\n font-weight: bold;\n font-style: italic;\n }\n}\n\n//Newsletter\n.newsletter-intro {\n font-size: 13px;\n font-style: italic;\n color: #777;\n}\n\n.give-newsletter-form-wrap {\n margin: 10px 0 20px -5px;\n max-width: 700px;\n\n td {\n padding: 3px;\n }\n\n div.give-newsletter-confirmation {\n background: #fff;\n -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n margin: 5px 10px 4px 5px;\n padding: 1px 12px;\n border-left: 4px solid #7ad03a;\n display: none;\n > p {\n margin: 0.5em 0;\n padding: 2px;\n }\n }\n\n}","/**\n * Give Logs SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n#give_donor_export_form {\n margin: 0 0 5px;\n}\n\n\n#give-payments-filter .give-donation-status {\n display: inline-block;\n}\n\n.column-status {\n .give-donation-status, .give-test-mode-transactions-label {\n display: inline-block;\n }\n .give-test-mode-transactions-label {\n margin: 0 5px;\n vertical-align: middle;\n }\n}\n","/**\r\n * Give Settings SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n */\r\n\r\n//--------------------------------------------------------------\r\n// General Settings\r\n//--------------------------------------------------------------\r\n\r\n.give-settings-page {\r\n\r\n\t.nav-tab-wrapper {\r\n\t\tmargin-bottom: 5px;\r\n\t\toverflow: visible;\r\n\t}\r\n\r\n\t.cmb2-wrap .cmb-type-checkbox input[type=\"checkbox\"] {\r\n\t\tdisplay: block;\r\n\t\tmargin-bottom: 5px;\r\n\t}\r\n\r\n\tdiv.give-submit-wrap {\r\n\t\tmargin: 20px 0;\r\n\t}\r\n\r\n\t.give_forms_page_give-payment-history .postbox .hndle {\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t.give-input-field {\r\n\t\twidth: 25em;\r\n\t}\r\n\r\n\ttable table input[type=\"text\"] {\r\n\t\twidth: 15em;\r\n\t}\r\n}\r\n\r\n.give-setting-tab-header {\r\n\tclear: both;\r\n\toverflow: hidden;\r\n\tmargin: 30px 0;\r\n\r\n\th2 {\r\n\t\tmargin-top: 8px;\r\n\t}\r\n}\r\n\r\n.give-radio-inline {\r\n\tul {\r\n\t\tmargin-top: 0;\r\n\t}\r\n\r\n\tli {\r\n\t\tdisplay: inline-block;\r\n\t\tmargin: 0 0 0 15px;\r\n\t}\r\n\r\n\tli:first-child {\r\n\t\tmargin-left: 0;\r\n\t}\r\n}\r\n\r\n// Tools page: fix ajax search user list hide bug\r\n.give-tools-setting-page .bulkactions {\r\n\toverflow: visible;\r\n}\r\n\r\n//Ugly but necessary to override WP core styles.\r\n.form-table td.give-radio-inline fieldset li > label {\r\n\tmargin: 5px 0 0 !important;\r\n}\r\n\r\np.give-field-description, .cmb2-metabox-description {\r\n\tcolor: #aaaaaa;\r\n\tfont-style: italic;\r\n\tfont-size: 13px !important;\r\n}\r\n\r\n.give-image-thumb {\r\n\tposition: relative;\r\n\tmargin-top: 14px;\r\n\r\n\tspan.give-delete-image-thumb {\r\n\t\tposition: absolute;\r\n\t\tbackground: red;\r\n\t\tcolor: white;\r\n\t\tborder-radius: 30px;\r\n\t\tleft: -10px;\r\n\t\ttop: -10px;\r\n\t}\r\n\r\n\timg {\r\n\t\tmax-width: 400px;\r\n\t\tborder: 4px solid white;\r\n\t}\r\n}\r\n\r\n.cmb-type-give-title label,\r\n.give-setting-tab-header h2 {\r\n\tfloat: left;\r\n\tdisplay: inline-block;\r\n\twidth: 220px;\r\n\tfont-style: italic;\r\n\tcolor: #AAA;\r\n\tmargin: 0;\r\n\tfont-size: 14px;\r\n}\r\n\r\n.postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {\r\n\tborder-bottom: 1px solid #e9e9e9;\r\n\tborder-top: none;\r\n}\r\n\r\n.cmb-type-enabled-gateways .cmb-td > p:first-of-type {\r\n\tdisplay: none;\r\n}\r\n\r\n// CMB2 Checkbox Revised Styles\r\n.cmb-type-checkbox .cmb-td {\r\n\twidth: 80%;\r\n\tlabel {\r\n\t\tfont-size: 13px;\r\n\t}\r\n}\r\n\r\n/* Responsive Settings Rows */\r\n.give_settings {\r\n\t.cmb2-wrap .cmb-row {\r\n\t\tdisplay: table-row;\r\n\t\t> .cmb-th, > .cmb-td {\r\n\t\t\tdisplay: table-cell;\r\n\t\t\tfloat: none;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/* Custom Title Separators */\r\n.cmb2-id-give-title {\r\n\tlabel {\r\n\t\tfont-style: italic;\r\n\t\tcolor: #AAA;\r\n\t\tcursor: default;\r\n\t}\r\n\t> div.cmb-th {\r\n\t\tpadding-bottom: 10px;\r\n\t}\r\n\t> div.cmb-td {\r\n\t\tpadding-bottom: 5px;\r\n\t}\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// Payment Gateways\r\n//--------------------------------------------------------------\r\n.give-payment-gatways-list li.ui-sortable-handle {\r\n\r\n\tspan.give-drag-handle {\r\n\t\tpadding: 3px 4px 0 0;\r\n\t\tfont-size: 15px;\r\n\t\tfont-weight: normal;\r\n\t\tcolor: #bdbdbd;\r\n\t\tcursor: move;\r\n\r\n\t\t&:hover {\r\n\t\t\tcolor: #333;\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// Emails\r\n//--------------------------------------------------------------\r\n\r\n.give-email-tags-wrap {\r\n\tmargin: 5px 0 0;\r\n\tcode {\r\n\t\tfont-style: normal;\r\n\t\tpadding: 1px 2px;\r\n\t\tfont-size: 12px;\r\n\t}\r\n\tspan {\r\n\t\tdisplay: block;\r\n\t\tcolor: #AAA;\r\n\t\tfont-style: italic;\r\n\t\tmargin: 0 0 2px;\r\n\t\tfont-size: 13px;\r\n\t}\r\n\t.give_price_tag {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// System Info page styles\r\n//--------------------------------------------------------------\r\n\r\n#system-info-textarea {\r\n\twidth: 800px;\r\n\theight: 600px;\r\n\tfont-family: Menlo, Monaco, monospace;\r\n\tbackground: #FFF;\r\n\twhite-space: pre;\r\n\toverflow: auto;\r\n\tdisplay: block;\r\n\t/*rtl:ignore*/\r\n\tdirection: ltr;\r\n}\r\n\r\n#give-download-sysinfo {\r\n\tmargin: 0;\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// API\r\n//--------------------------------------------------------------\r\n\r\n.cmb2-id-api {\r\n\r\n\t.cmb-td {\r\n\t\tpadding: 0;\r\n\t}\r\n\ttable th {\r\n\t\tpadding: 10px 8px;\r\n\t}\r\n\r\n\t.give-ajax-user-search {\r\n\t\tpadding: 3px 5px;\r\n\r\n\t}\r\n\r\n}\r\n\r\n.give_user_search_wrap {\r\n\tposition: relative;\r\n\toverflow: visible;\r\n}\r\n\r\n.give_user_search_results {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 27px;\r\n\tz-index: 100;\r\n\r\n\ta.give-ajax-user-cancel {\r\n\t\tposition: absolute;\r\n\t\tright: 6px;\r\n\t\ttop: 2px;\r\n\t}\r\n\tul {\r\n\t\tpadding: 10px 10px 4px;\r\n\t\tmargin: 0;\r\n\t\tbackground: #f0f0f0;\r\n\t\tborder: 1px solid #DFDFDF;\r\n\t\twidth: 300px;\r\n\t\tmax-height: 200px;\r\n\t\toverflow-y: scroll;\r\n\t}\r\n\r\n}\r\n\r\n#api {\r\n\r\n\t.tablenav .actions {\r\n\t\toverflow: visible;\r\n\t}\r\n\r\n}\r\n\r\na.give-delete {\r\n\tcolor: #a00;\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// License\r\n//--------------------------------------------------------------\r\n.give-settings-wrap-licenses {\r\n\t.give-license-deactivate {\r\n\t\tmargin: 1px 0 0 10px;\r\n\t\theight: 30px;\r\n\t}\r\n\r\n\t.give-license-field {\r\n\t\tbackground: #FFF url('../images/close.png') no-repeat;\r\n\t\tbackground-position: 98.5% center;\r\n\t\tbackground-size: 18px;\r\n\t}\r\n\r\n\t.give-license-active, .give-license-active:focus {\r\n\t\tbackground-image: url('../images/tick.png');\r\n\t\tbackground-color: #FFF;\r\n\t\tbackground-repeat: no-repeat;\r\n\t\tbackground-position: 98.5% center;\r\n\t\toutline: none;\r\n\t\tbackground-size: 16px;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n}\r\n\r\n/* Addon grid design */\r\n.give-settings-page {\r\n\tmargin-top: 20px;\r\n\r\n\t.give-settings-wrap-licenses {\r\n\t\tdisplay: block;\r\n\t\tposition: relative;\r\n\t\tfloat: left;\r\n\t\twidth: 30.5%;\r\n\t\tmin-height: 180px;\r\n\t\tmargin: 20px 1% 20px 0;\r\n\t}\r\n\r\n\t.give-license-key {\r\n\t\tlabel {\r\n\t\t\tmargin: 0 0 0 10px;\r\n\t\t\tpadding: 10px 0;\r\n\t\t\tdisplay: block;\r\n\t\t\tfont-size: 14px;\r\n\t\t\tfont-weight: 600;\r\n\t\t\tcursor: default;\r\n\t\t}\r\n\t}\r\n\r\n\t.give-license-block {\r\n\t\tmargin: 0 10px;\r\n\t}\r\n\r\n\tinput[type=\"text\"].give-license-field,\r\n\tinput[type=\"password\"].give-license-field {\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.give-license-block input[type=\"submit\"] {\r\n\t\tposition: absolute;\r\n\t\ttop: 3px;\r\n\t\tright: 10px;\r\n\t\theight: 24px;\r\n\t\tline-height: 22px;\r\n\t\tpadding: 0 8px 1px;\r\n\t\tfont-size: 11px;\r\n\t}\r\n\r\n\t//License status notice.\r\n\t.give-license-status-notice {\r\n\t\tbackground: #fff;\r\n\t\tborder-left: 4px solid #fff;\r\n\t\t-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\r\n\t\tbox-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\r\n\t\tmargin: 5px 0 2px;\r\n\t\tpadding: 1px 12px;\r\n\r\n\t\tp {\r\n\t\t\tpadding: 10px 0;\r\n\t\t\tmargin: 0;\r\n\t\t}\r\n\r\n\t\ta {\r\n\t\t\tcolor: #444;\r\n\t\t\tcursor: pointer;\r\n\t\t\t&:hover {\r\n\t\t\t\ttext-decoration: none;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-expires-soon {\r\n\t\tborder-color: #00a0d2;\r\n\t}\r\n\r\n\t//Inactive or Expired.\r\n\t.give-license-status-notice.give-inactive,\r\n\t.give-license-status-notice.give-license-expired {\r\n\t\tborder-color: #e24e4e;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-error,\r\n\t.give-license-status-notice.give-license-no_activations_left,\r\n\t.give-license-status-notice.give-license-missing,\r\n\t.give-license-status-notice.give-license-invalid,\r\n\t.give-license-status-notice.give-license-site_inactive,\r\n\t.give-license-status-notice.give-license-item_name_mismatch {\r\n\t\tborder-color: orange;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-lifetime-notice,\r\n\t.give-license-status-notice.give-license-expiration-date {\r\n\t\tborder-color: #46b450;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-expires-soon a:hover,\r\n\t.give-license-status-notice.give-license-expired a:hover {\r\n\t\ttext-decoration: none;\r\n\t}\r\n}\r\n\r\n/* Responsive fixes: Addon grid design */\r\n@media screen and (max-width: 1100px) {\r\n\t.give-settings-page .give-settings-wrap-licenses {\r\n\t\twidth: 45%;\r\n\t\tmin-height: 150px;\r\n\t}\r\n}\r\n\r\n@media screen and (max-width: 600px) {\r\n\t.give-settings-page .give-settings-wrap-licenses {\r\n\t\twidth: 100%;\r\n\t\tmax-width: 320px;\r\n\t}\r\n}\r\n\r\n/* Tables */\r\n\r\n.give-table {\r\n\r\n\tthead {\r\n\t\tth {\r\n\t\t\tpadding: 8px 10px !important;\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\n//Fix double <hr>s for change to `give_title` in 1.3.5\r\n.give_settings .cmb-td hr + hr {\r\n\tdisplay: none;\r\n}\r\n\r\n//Set a min-height for TinyMCE so it's not too small when hidden in a tab and then revealed\r\n.post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {\r\n\tmin-height: 400px;\r\n}\r\n\r\n// Widget Page\r\n.give-field-description {\r\n\tcolor: #aaaaaa;\r\n\tfont-style: italic;\r\n\tmargin: 0;\r\n\tpadding-top: .5em;\r\n}\r\n\r\n// Setting page tab\r\nh2.give-nav-tab-wrapper {\r\n\toverflow: hidden;\r\n\theight: 35px;\r\n}\r\n\r\n@media screen and (max-width: 600px) {\r\n\t.give-nav-tab-wrapper {\r\n\t\tposition: relative;\r\n\t\tpadding-top:0 !important;\r\n\r\n\t\t> a {\r\n\t\t\twidth: 100%;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tmargin:0;\r\n\t\t\t&:hover {\r\n\t\t\t\tborder-bottom: 1px solid #ccc;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdiv.give-sub-nav-tab-wrapper {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop:0;\r\n\t\t\tright:0;\r\n\r\n\t\t\t#give-show-sub-nav {\r\n\t\t\t\theight: 28px;\r\n\t\t\t\twidth: 30px;\r\n\t\t\t\tborder-radius: 0;\r\n\t\t\t\tmargin:0;\r\n\t\t\t\t> span.dashicons {\r\n\t\t\t\t\tmargin: 6px auto 0;\r\n\t\t\t\t\tdisplay: block;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tnav.give-sub-nav-tab {\r\n\t\t\t\ttop:35px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n}\r\n\r\n.give-sub-nav-tab-wrapper {\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n\tz-index: 9999;\r\n\tfloat: left;\r\n\r\n\tnav.give-sub-nav-tab {\r\n\t\tborder: 1px solid #ccc;\r\n\t\tborder-bottom: 0;\r\n\t\tposition: absolute;\r\n\t\ttop: 32px;\r\n\t\tright: 0;\r\n\r\n\t\ta {\r\n\t\t\tfloat: left;\r\n\t\t\tbackground: white;\r\n\t\t\tpadding: 6px 10px;\r\n\t\t\tclear: both;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tborder-bottom: 1px solid #ccc;\r\n\t\t\tmin-width: 170px;\r\n\t\t\tcolor: #555;\r\n\t\t\tfont-size: 14px;\r\n\t\t}\r\n\r\n\t\ta:hover {\r\n\t\t\tbackground: #e5e5e5;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// By default hide setting tab wrapper.\r\n.give-sub-nav-tab-wrapper{\r\n\tdisplay:none;\r\n}\r\n\r\n#give-show-sub-nav {\r\n\ttext-decoration: none;\r\n\tpadding: 3px 4px;\r\n\tborder-bottom: 1px solid #ccc;\r\n\tline-height: 0;\r\n\tbackground: white;\r\n\tborder-radius: 4px;\r\n margin-top:5px;\r\n\r\n\t> span.dashicons {\r\n font-size:16px;\r\n height:16px;\r\n width:16px;\r\n\t}\r\n}\r\n\r\n#give-show-sub-nav:hover, #give-show-sub-nav:active {\r\n\toutline: none;\r\n\tbox-shadow: inset 0px 0px 4px #ddd;\r\n}","/**\r\n * Give Payment History SCSS\r\n *\r\n * @description Payment History Styles\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n#give-payment-filters, .give-submit-wrap {\r\n clear: both;\r\n background: #f5f5f5;\r\n border-color: #dfdfdf;\r\n overflow: auto;\r\n margin: 8px 0;\r\n padding: 12px;\r\n border-width: 1px;\r\n border-style: solid;\r\n font-size: 13px;\r\n line-height: 2.1em;\r\n}\r\n\r\n#give-payment-filters {\r\n p {\r\n color: #777;\r\n }\r\n ul.subsubsub {\r\n margin-bottom: 8px;\r\n }\r\n label {\r\n font-style: italic;\r\n margin: 0 10px;\r\n\r\n &.give-start-date-label {\r\n margin-left: 5px;\r\n }\r\n\r\n }\r\n\r\n}\r\n\r\n#give-payments-filter {\r\n ul.subsubsub {\r\n margin-bottom: 12px;\r\n }\r\n .tablenav.top {\r\n float: none;\r\n .bulkactions {\r\n margin-top: 1px;\r\n padding-top: 0;\r\n }\r\n\r\n }\r\n\r\n .give-email-column-value {\r\n font-size: 14px;\r\n font-weight: bold;\r\n }\r\n\r\n #the-list .check-column input {\r\n margin-top: 1px;\r\n }\r\n\r\n .column-details {\r\n width: 50px;\r\n }\r\n\r\n .column-amount {\r\n width: 120px;\r\n }\r\n\r\n}\r\n\r\ntr.status-refunded td {\r\n background: #cecece;\r\n border-top-color: #ccc;\r\n}\r\n\r\n.wp-list-table.forms th#date {\r\n width: 140px;\r\n}\r\n\r\n.give-mobile-link {\r\n line-height: 32px;\r\n vertical-align: middle;\r\n}\r\n\r\n.give-mobile-link img {\r\n max-width: 80%;\r\n height: auto;\r\n float: left;\r\n}\r\n\r\n//------------------------------------\r\n// Status Colors\r\n//------------------------------------\r\n\r\n.give-donation-status {\r\n > span {\r\n display: inline-block;\r\n width: 12px;\r\n height: 12px;\r\n position: relative;\r\n top: 1px;\r\n margin: 0;\r\n padding: 0;\r\n border-radius: 50%;\r\n background: #888;\r\n line-height: 16px;\r\n }\r\n\r\n //Pending\r\n &.status-pending > span {\r\n background-color: $orange;\r\n }\r\n\r\n //Complete\r\n &.status-complete > span, &.status-publish > span {\r\n background-color: $status-complete;\r\n }\r\n\r\n //Refunded\r\n &.status-refunded > span {\r\n background-color: $status-default;\r\n }\r\n\r\n &.status-failed > span {\r\n background-color: $red;\r\n }\r\n\r\n &.status-abandoned > span {\r\n background-color: $dark;\r\n }\r\n\r\n &.status-revoked > span {\r\n background-color: $status-revoked;\r\n }\r\n\r\n &.status-subscription > span, &.status-renewal > span, &.status-give_subscription > span {\r\n background-color: $status-subscription;\r\n }\r\n\r\n}\r\n\r\n//Test Payment Label\r\n#test-payment-label {\r\n @include give-label();\r\n background-color: $orange;\r\n margin: 0 15px;\r\n vertical-align: middle;\r\n}\r\n\r\n//ID & link field\r\n#give-payments-filter {\r\n\r\n .give-payment-id {\r\n @include give-label();\r\n font-weight: normal;\r\n @extend .give-item-label-gray;\r\n }\r\n\r\n .column-details {\r\n padding-right: 30px;\r\n }\r\n\r\n .give-donation-status {\r\n display: inline-block;\r\n }\r\n\r\n}\r\n\r\n//Payment View Metabox\r\n#give-order-update {\r\n .give-donation-status {\r\n display: inline-block;\r\n float: none;\r\n margin: 0 10px;\r\n position: relative;\r\n top: 3px;\r\n }\r\n}\r\n\r\n//Donation Column\r\n.column-donation_form {\r\n .donation-level-text-wrap {\r\n font-style: italic;\r\n display: block;\r\n }\r\n}\r\n\r\n/*---------------------\r\nResponsiveness\r\n---------------------------*/\r\n@media handheld, only screen and (max-width: 640px) {\r\n .wp-list-table.forms th {\r\n width: auto !important;\r\n }\r\n}\r\n\r\n.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {\r\n margin-left: -8px;\r\n margin-top: -8px;\r\n}\r\n\r\n/* Payment Details\r\n-------------------------------------------------------------- */\r\n.give-admin-box .label {\r\n font-weight: 600;\r\n}\r\n\r\n.give-admin-box-inside {\r\n margin: 0;\r\n padding: 3px 10px;\r\n clear: both;\r\n border-bottom: 1px solid #eee;\r\n}\r\n\r\n.give-admin-box-inside .strong {\r\n font-weight: 600;\r\n}\r\n\r\n.give-payment-fees .fee-label {\r\n font-weight: normal;\r\n color: #666;\r\n}\r\n\r\n.give-admin-box .right {\r\n float: right;\r\n}\r\n\r\n#give-order-update .inside,\r\n#give-order-details .inside {\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n#give-order-update input.give_datepicker {\r\n width: 180px;\r\n}\r\n\r\n#give-order-update input[type=\"number\"].give-payment-time-hour,\r\n#give-order-update input[type=\"number\"].give-payment-time-min {\r\n width: 50px;\r\n}\r\n\r\n.give-admin-box-inside:last-child {\r\n border-bottom: 0;\r\n}\r\n\r\n#give-edit-order-form .data-payment-key {\r\n word-break: break-all;\r\n}\r\n\r\n.give-order-update-box #major-publishing-actions .button-secondary {\r\n margin-right: 10px;\r\n}\r\n\r\n#give-donation-overview th {\r\n text-align: left;\r\n}\r\n\r\n#give-donation-overview .give-select-chosen {\r\n width: 196px;\r\n}\r\n\r\n#give-donation-overview ul,\r\n#give-order-address-country-wrap select,\r\n#give-donor-details .order-data-address input,\r\n#give-edit-order-form .column input,\r\n#give-donor-details .order-data-column p.data input {\r\n clear: both;\r\n display: block;\r\n}\r\n\r\n.give-order-data input.small-text {\r\n margin: 0;\r\n}\r\n\r\n#give-order-update span.label {\r\n display: inline;\r\n width: 50px;\r\n}\r\n\r\n.give-order-update-box .button-primary {\r\n margin-right: 0;\r\n}\r\n\r\n#give-edit-order-form .column .description {\r\n padding-right: 10px;\r\n}\r\n\r\n#give-edit-order-form .column,\r\n#give-donation-overview .row > ul > li,\r\n#give-donation-overview .inside > ul > li {\r\n display: inline-block;\r\n position: relative;\r\n vertical-align: top;\r\n}\r\n\r\n#give-donation-overview ul {\r\n font-size: 0;\r\n\r\n li {\r\n font-size: 13px;\r\n\r\n &.actions {\r\n text-align: right;\r\n min-width: 200px;\r\n }\r\n\r\n &.remove {\r\n text-align: right;\r\n }\r\n\r\n }\r\n\r\n .row {\r\n padding: 12px;\r\n border-bottom: 1px solid #eee;\r\n }\r\n\r\n}\r\n\r\n#give-order-data .data span {\r\n color: #666;\r\n font-weight: 600;\r\n}\r\n\r\ninput.give-price-field {\r\n width: 80px;\r\n padding: 3px 5px;\r\n}\r\n\r\n.give_forms_page_give-payment-history.js .postbox .hndle {\r\n cursor: default;\r\n}\r\n\r\n//------------------------------------------\r\n//Payment Notes Section\r\n//------------------------------------------\r\n\r\n#give-payment-notes {\r\n textarea {\r\n min-height: 150px;\r\n }\r\n #give-add-payment-note {\r\n margin: 6px 0 15px;\r\n }\r\n\r\n}\r\n\r\n//------------------------------------------\r\n//Edit Order Form\r\n//------------------------------------------\r\n\r\n#give-billing-details {\r\n\r\n .column > div {\r\n margin: 0 0 10px;\r\n }\r\n\r\n label {\r\n display: block;\r\n }\r\n\r\n .column-container {\r\n padding: 5px 0 10px;\r\n }\r\n\r\n input[type=\"text\"] {\r\n width: 95%;\r\n }\r\n\r\n .chosen-container {\r\n width: 98% !important;\r\n }\r\n\r\n}\r\n\r\n//------------------------------------------\r\n//Responsive\r\n//------------------------------------------\r\n\r\n@media screen and (min-width: 1200px) {\r\n #give-edit-order-form .column {\r\n width: 33%;\r\n }\r\n\r\n #give-donation-overview.columns-4 li.actions {\r\n width: 25%;\r\n margin-top: 0;\r\n margin-right: 0;\r\n }\r\n\r\n}\r\n\r\n@media screen and (max-width: 1199px) {\r\n #give-edit-order-form .column {\r\n width: 49%;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 782px) {\r\n .order-data-column input[type=\"email\"] {\r\n padding: 6px 10px;\r\n }\r\n}\r\n\r\n//------------------------------------------\r\n//Donation Details\r\n//------------------------------------------\r\n#give-donor-details .inside, #give-donation-overview .inside {\r\n margin-top: 0;\r\n}\r\n\r\n.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {\r\n padding-top: 0;\r\n}","/**\n * Give Admin Dashboard SCSS\n *\n * @description Styles the Give dashboard widget\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.give-dashboard-widget {\n\n .give-dashboard-today {\n\ttext-align: center;\n\n\t.give-dashboard-date-today {\n\t margin: 10px 0 0;\n\t padding: 0;\n\t}\n\n\t.give-dashboard-happy-day {\n\t padding: 3px;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-today-earnings {\n\t font-size: 42px;\n\t color: #4ead61;\n\t font-weight: bold;\n\t margin: 15px 0 0;\n\t line-height: 1;\n\t}\n\n\t.give-donations-today {\n\t font-size: 18px;\n\t font-weight: bold;\n\t margin: 0 0 30px;\n\t padding: 4px 0 1px;\n\t}\n\n\t.give-last-seven {\n\t font-size: 14px;\n\t font-weight: bold;\n\t padding: 0;\n\t margin: 0 0 30px;\n\t}\n\n }\n\n //Table Stats\n .give-table-stats {\n\twidth: 100%;\n\ttext-align: center;\n\tmargin: 0;\n\ttable-layout: fixed;\n\tborder-top: 1px solid #ececec;\n\tborder-spacing: 0;\n\n\t.give-dashboard-stat-total, .give-dashboard-stat-total-label {\n\t padding: 0;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-stat-total {\n\t color: #4ead61;\n\t font-weight: bold;\n\t font-size: 16px;\n\t}\n\n }\n\n}\n\n//Fancy borders\n#give_dashboard_sales {\n\n > .inside {\n\tpadding: 0;\n }\n\n .give-table-stats {\n\ttd {\n\t padding: 10px 0;\n\t}\n\ttd:first-of-type {\n\t border-right: 1px solid #ececec;\n\t}\n\ttr#give-table-stats-tr-1 td {\n\t border-bottom: 1px solid #ececec;\n\t}\n }\n\n}\n\n//At a Glance Widget\n#dashboard_right_now {\n .give-forms-count:before {\n\t@include iconstyle();\n\tfont-size: 18px;\n\twidth: 18px;\n\theight: 18px;\n\tcontent: \"\\e800\";\n }\n}","/**\n * Give Forms SCSS\n *\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n//--------------------------------------------------------------\n// Donors Listing Page Style\n//--------------------------------------------------------------\n.give_forms_page_give-donors {\n .wrap > h2 {\n\tmargin-bottom: 15px;\n }\n\n .nav-tab-wrapper .dashicons {\n position: relative;\n top:2px;\n margin: 0 3px 0 0;\n }\n\n #give-donors-filter {\n\tposition: relative;\n\tp.search-box {\n\t float: left;\n\t margin: 0;\n\t}\n }\n\n .tablenav.top {\n\tfloat: right;\n\tclear: none;\n }\n}\n\n//--------------------------------------------------------------\n// Donor Styles\n//--------------------------------------------------------------\n#give-customer-card-wrapper {\n margin-left: -1px;\n z-index: 2;\n min-height: 200px;\n\n\n input {\n\tfont-weight: normal;\n }\n\n .customer-section {\n\tborder-bottom: 1px solid #eee;\n\tmargin-bottom: 10px;\n }\n\n .customer-section table {\n\tmargin-bottom: 0;\n }\n\n > div:first-child {\n\tpadding-top: 20px;\n }\n\n > div:last-child {\n\tpadding-bottom: 20px;\n\tborder: none;\n }\n\n //AVATAR\n .avatar-wrap {\n\tpadding: 0 15px 15px 0;\n\ttext-align: center;\n\tfloat: left;\n\n\timg {\n\t border-radius: 3px;\n\t}\n\n }\n\n a.delete {\n\ttext-decoration: none;\n\tcolor: #ff0000;\n\tmargin-right: 5px;\n }\n\n //Donor Header (non-avatar content)\n .donor-bio-header {\n\n\t.customer-since {\n\t margin: 10px 0;\n\t font-size: 16px;\n\t}\n\n\t.customer-id {\n display: inline-block;\n\t font-size: 24px;\n\t font-weight: 600;\n\t margin-right: 10px;\n\t}\n\n .customer-name-wrap {\n display: inline-block;\n }\n\n\t.customer-edit-link {\n\t margin-bottom: 15px;\n\t}\n\n }\n\n}\n\n.customer-main-wrapper {\n clear: both;\n margin: 0 0 20px;\n\n @media(max-width: 655px) {\n\twidth: 100%;\n }\n\n table {\n\tmargin: 0;\n }\n\n input {\n\twidth: 200px;\n }\n\n}\n\n//Donor Summary\n#donor-summary {\n padding: 0 20px;\n\n &:after {\n\tfont-family: \"dashicons\";\n\tcontent: \"\\f110\";\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tfont-size: 100px;\n\tcolor: #F0F0F0;\n\tz-index: 0;\n }\n\n}\n#give-customer-card-wrapper .customer-address-wrapper {\n width: 202px;\n\n\tspan[data-key=\"line2\"] {\n\t\tdisplay: table;\n\t\tclear: both;\n\t}\n}\n\n#give-customer-card-wrapper .customer-address-wrapper select {\n width: 200px;\n}\n\n#give-customer-card-wrapper .customer-info {\n min-height: 185px;\n}\n\n#give-customer-card-wrapper .info-wrapper {\n min-height: 125px;\n}\n\n.customer-info .customer-name {\n font-size: 24px;\n font-weight: 600;\n}\n\n.disconnect-user a {\n font-size: 12px;\n font-weight: normal;\n text-decoration: none;\n}\n\n#customer-edit-actions {\n text-align: center;\n margin-bottom: 20px;\n line-height: 28px;\n}\n\n#customer-edit-actions .button-secondary {\n margin-right: 10px;\n}\n\n#give-customer-card-wrapper .edit-item {\n display: none;\n}\n\n#give-customer-card-wrapper .give_user_search_results {\n left: 1px;\n top: 16px;\n}\n\n#give-customer-card-wrapper .give_user_search_results ul {\n width: 200px\n}\n\n#customer-stats-wrapper {\n margin: 0 auto;\n text-align: center;\n padding: 15px;\n ul {\n\tmargin: 0;\n\tpadding: 0;\n\toverflow: hidden;\n\tli {\n\t width: 50%;\n\t float: left;\n\t line-height: 22px;\n\t font-size: 14px;\n\t margin: 0;\n\t}\n\n }\n\n a {\n\ttext-decoration: none;\n }\n}\n\n#customer-stats-wrapper .dashicons {\n color: #888;\n}\n\n#customer-tables-wrapper table {\n width: 100%;\n text-align: center;\n}\n\n#customer-tables-wrapper th {\n text-align: center;\n}\n\n#customer-tables-wrapper .donations tr > th:first-child,\n#customer-tables-wrapper .donations tr > td:first-child,\n#customer-tables-wrapper .emails tr > th:first-child,\n#customer-tables-wrapper .emails tr > td:first-child {\n text-align: left;\n}\n\n#customer-tables-wrapper .donations tr > td:only-child {\n text-align: center;\n}\n\n#customer-notes-wrapper {\n min-height: 50px;\n}\n\n.customer-notes-header span, .customer-notes-header img {\n font-weight: 600;\n line-height: 30px;\n vertical-align: middle;\n}\n\n.customer-note-input {\n width: 100%;\n margin-bottom: 5px;\n}\n\n//Customer Notes\n#give-customer-notes {\n div:nth-of-type(even) {\n\tbackground-color: #f9f9f9;\n }\n .customer-note-wrapper {\n\tborder-bottom: 1px solid #f9f9f9;\n\tmin-height: 38px;\n\tpadding: 0;\n\n\t.note-content-wrap {\n\t padding: 10px 12px;\n\t line-height: 20px;\n\t font-size: 14px;\n\t}\n\n }\n\n .give-no-customer-notes {\n\ttext-align: center;\n\tpadding: 20px;\n }\n\n}\n\n.customer-note-wrapper span {\n display: block;\n}\n\n.delete-customer {\n text-align: center;\n}\n\n","/**\r\n * Give Admin Buttons SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*=Give Shortcode Button\r\n--------------------------------------*/\r\n\r\n@media screen and (max-width: 782px) {\r\n #wp-content-media-buttons a.give-thickbox {\r\n padding: 6px 14px;\r\n line-height: normal;\r\n font-size: 14px;\r\n height: auto;\r\n }\r\n .wp-media-buttons span#give-media-button {\r\n margin-top: 0 !important;\r\n margin-left: 2px !important;\r\n }\r\n}\r\n\r\n/*=Button in shortcode tinymce dialog\r\n--------------------------------------*/\r\n\r\n.mce-primary.mce-give-primary button {\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n}\r\n\r\n/*=Admin Buttons w/ Icons\r\n--------------------------------------*/\r\n\r\n/* extends .wp-core-ui .button */\r\n.wp-core-ui .give-admin-button {\r\n padding-left: 7px;\r\n padding-right: 7px;\r\n}\r\n\r\n/* matches style of Add Media and Give Shortcodes buttons */\r\n.give-admin-button-icon {\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n vertical-align: text-top;\r\n margin: 0 2px;\r\n\r\n &:before {\r\n font: 400 18px/1 dashicons;\r\n speak: none;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n }\r\n\r\n /* specific DashIcon styles */\r\n &-update:before {\r\n content: \"\\f463\";\r\n }\r\n}\r\n","\n/* =Primary button in shortcode tinymce dialog\n-------------------------------------------------------------- */\n\n.mce-primary.mce-sc-primary button {\n\tpadding-right: 10px;\n\tpadding-left: 10px;\n}\n\n.mce-sc-popup {\n\ta {\n\t\ttext-decoration: underline;\n\t}\n\tp {\n\t\tmargin-bottom: 1em;\n\t\t&.strong {\n\t\t\tfont-weight: 600;\n\t\t}\n\t\t&.no-margin {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t&.margin-top {\n\t\t\tmargin-top: 1em;\n\t\t}\n\t}\n\t// Crop text which overflow in listbox.\n\t.mce-listbox button{\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden !important;\n\t}\n}\n\n/* =Shortcode button above wp_editor\n-------------------------------------------------------------- */\n\n@media screen and (max-width: 782px) {\n\t.wp-media-buttons button.sc-button span {\n\t\twidth: 18px !important;\n\t}\n}\n\n.wp-media-buttons {\n\tbutton.sc-button {\n\t\toutline: none;\n\t\tpadding-left: 5px;\n\t\tmargin-right: 0;\n\n\t\t&:active {\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t}\n}\n\nbutton.sc-button {\n\t&:after {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\ttop: -1px;\n\t\tcontent: '';\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-top: 6px solid #777;\n\t\tborder-right: 4px solid transparent;\n\t\tborder-left: 4px solid transparent;\n\t\tmargin: 0 3px 0 6px;\n\t}\n\n\t&.active:after {\n\t\ttop: -2px;\n\t\tborder-top: 0;\n\t\tborder-bottom: 6px solid #32373c;\n\t}\n}\n\n/* =Shortcode button dropdown menu\n-------------------------------------------------------------- */\n\n.sc-wrap {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin-right: 5px;\n}\n\ndiv.sc-menu {\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 100%;\n\tleft: 0;\n\tmin-width: 100%;\n\tmax-height: 410px;\n\tfont-size: 14px;\n\tbox-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );\n\tbackground: #fff;\n\tborder: 1px solid rgba( 0, 0, 0, 0.15 );\n\toverflow: auto;\n\toverflow-x: hidden;\n\tpadding: 5px 0;\n\tmargin: -2px 0 0;\n\tz-index: 1002;\n}\n\ndiv.sc-shortcode {\n\tdisplay: block;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\tpadding: 6px 12px;\n\tmargin-bottom: 2px;\n\n\t&:hover {\n\t\tcolor: #fff;\n\t}\n}\n\n/* =Shortcode tinymce dialog backdrop\n-------------------------------------------------------------- */\n\n#mce-modal-block.mce-reset.mce-fade.mce-in {\n\topacity: 0.7;\n\tfilter: alpha(opacity=70);\n}\n","/**\n * Give System Info SCSS\n *\n * @description System Info Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license https://opensource.org/licenses/gpl-3.0/ GNU Public License\n *\n * The following code is a derivative work of the code from the WooCommerce\n * plugin, which is licensed GPLv3. This code therefore is also licensed under\n * the terms of the GNU Public License, version 3.\n *\n * Copyright (c) 2015 WooThemes\n * Copyright (c) 2016 WordImpress, LLC\n*/\n\n.give-status-table {\n margin-bottom: 1em;\n\n h2 {\n font-size: 14px;\n margin: 0;\n }\n\n tr {\n &:nth-child(2n) {\n th,\n td {\n background: #fcfcfc;\n }\n }\n }\n\n th {\n font-weight: 700;\n padding: 9px;\n }\n\n td:first-child {\n width: 33%;\n }\n\n td.help {\n width: 1em;\n }\n\n td {\n padding: 9px;\n font-size: 1.1em;\n\n mark {\n background: transparent none;\n }\n\n mark.yes {\n color: $green;\n }\n\n mark.no {\n color: #999;\n }\n\n mark.error {\n color: $red;\n }\n\n ul {\n margin: 0;\n }\n }\n}\n\n.wrap div.give-debug-report-wrapper {\n margin-top: 1em;\n}\n\n.give-debug-report {\n display: none;\n margin: 10px 0;\n padding: 0;\n position: relative;\n\n textarea {\n font-family: monospace;\n width: 100%;\n margin: 0;\n height: 300px;\n padding: 20px;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n resize: none;\n font-size: 12px;\n line-height: 20px;\n outline: 0;\n }\n}\n"],"mappings":"AAAA;;;;;;;;EAQE;ACRF;;GAEG;AAeH,AAAA,cAAc,CAAC;EAbb,KAAK,EAAE,CAAE,GAeV;EAFD,AAAA,cAAc,AAXX,OAAO,EAWV,AAAA,cAAc,AAVX,MAAM,CAAC;IACN,OAAO,EAAE,GAAI;IACb,OAAO,EAAE,KAAM,GAChB;EAOH,AAAA,cAAc,AALX,MAAM,CAAC;IACN,KAAK,EAAE,IAAK,GACb;;AAOH;;;GAGG;AAOH;;GAEG;AA+BH,AAAA,gBAAgB,CAAC;EAtBf,OAAO,EAAE,cAAe;EACxB,SAAS,EAAE,IAAK;EAChB,WAAW,EAAE,CAAE;EACf,KAAK,EAAE,IAAK;EACZ,UAAU,EAAE,MAAO;EACnB,WAAW,EAAE,MAAO;EACpB,cAAc,EAAE,QAAS;EACzB,aAAa,EAAE,KAAM,GAiBtB;EAFD,AAAA,gBAAgB,AAbb,MAAM,CAAC;IACN,KAAK,EAAC,IAAK;IACX,eAAe,EAAE,IAAK,GACvB;;AAcH,AAAA,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AAE,GACZ","names":[]}
|
1 |
+
{"version":3,"file":"../scss/give-admin.css","sources":["admin/give-admin.scss","frontend/_mixins.scss","frontend/_variables.scss","plugins/qtip.scss","frontend/fonts.scss","admin/fonts.scss","admin/forms.scss","admin/addons.scss","admin/reports.scss","admin/welcome.scss","admin/logs.scss","admin/settings.scss","admin/payment-history.scss","admin/dashboard.scss","admin/donors.scss","admin/buttons.scss","admin/shortcodes.scss","admin/system-info.scss"],"sourcesContent":["/*!\r\n * Give Admin SCSS/CSS\r\n *\r\n * @description: The Main SCSS file for ADMIN styles which is compiled and minified via Gulp taskrunner\r\n * @package: Give\r\n * @subpackage: SCSS/Admin\r\n * @copyright: Copyright (c) 2016, WordImpress\r\n * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n@import '../frontend/mixins';\r\n@import '../frontend/variables';\r\n@import '../plugins/qtip';\r\n@import '../frontend/fonts';\r\n@import 'fonts';\r\n@import 'forms';\r\n@import 'addons';\r\n@import 'reports';\r\n@import 'welcome';\r\n@import 'logs';\r\n@import 'settings';\r\n@import 'payment-history';\r\n@import 'dashboard';\r\n@import 'donors';\r\n@import 'buttons';\r\n@import 'shortcodes';\r\n@import 'system-info';\r\n","/**\r\n * Clearfix\r\n */\r\n@mixin clearfix() {\r\n *zoom: 1;\r\n\r\n &:before,\r\n &:after {\r\n content: \" \";\r\n display: table;\r\n }\r\n\r\n &:after {\r\n clear: both;\r\n }\r\n}\r\n\r\n.give-clearfix {\r\n @include clearfix;\r\n}\r\n\r\n/**\r\n * Box Sizing\r\n * https://github.com/timrogers/sass-box-sizing-mixin\r\n */\r\n@mixin box-sizing($box-model) {\r\n -webkit-box-sizing: $box-model; // Safari <= 5\r\n -moz-box-sizing: $box-model; // Firefox <= 19\r\n box-sizing: $box-model;\r\n}\r\n\r\n/**\r\n * CSS3 Easing\r\n */\r\n@mixin easing-transition() {\r\n -moz-transition: 0.2s all linear;\r\n -o-transition: 0.2s all linear;\r\n transition: 0.2s all linear;\r\n}\r\n\r\n//Labels\r\n@mixin give-label() {\r\n padding: .2em .4em .3em;\r\n font-size: 11px;\r\n line-height: 1;\r\n color: #fff;\r\n text-align: center;\r\n white-space: nowrap;\r\n vertical-align: baseline;\r\n border-radius: .25em;\r\n \r\n &:hover {\r\n color:#fff;\r\n text-decoration: none;\r\n }\r\n}\r\n\r\n@mixin give-label-gray() {\r\n background-color: #929292;\r\n}\r\n@mixin give-label-orange() {\r\n background-color: #ffba00;\r\n}\r\n\r\n.give-item-label {\r\n @include give-label();\r\n}\r\n\r\n.give-item-label-gray {\r\n @include give-label-gray();\r\n}\r\n\r\n.give-item-label-orange {\r\n @include give-label-orange();\r\n}\r\n\r\n\r\n.give-item-label {\r\n @include give-label();\r\n}\r\n\r\n//Fields\r\n@mixin give-currency() {\r\n background-color: lighten($light-gray, 2%);\r\n border-top: 1px solid $borders;\r\n border-bottom: 1px solid $borders;\r\n color: $dark;\r\n margin: 0;\r\n padding: 0 12px;\r\n height: 35px;\r\n line-height: 35px;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}\r\n\r\n@mixin give-input() {\r\n border: 1px solid $borders;\r\n background: #FFF;\r\n border-radius: 0;\r\n height: 35px;\r\n line-height: 35px;\r\n padding: 0 12px;\r\n margin: 0;\r\n font-size: $font-size-medium;\r\n @include box-sizing(border-box);\r\n}","/**\r\n * Give CSS Variables\r\n */\r\n\r\n$green: #7ad03a;\r\n$red: #a00;\r\n$orange: #ffba00;\r\n$blue: #2ea2cc;\r\n$dark: #333;\r\n$borders: #ccc;\r\n$light-gray: #EDEDED;\r\n\r\n//Status\r\n$status-default: #777;\r\n$status-complete: $green;\r\n$status-refunded: $status-default;\r\n$status-subscription: #5bc0de;\r\n$status-revoked: #d9534f;\r\n\r\n//Font sizes\r\n$font-size-medium: 18px;\r\n\r\n$primary: #007ba4;\r\n// Primary colour for buttons (alt)\r\n$primarytext: desaturate(lighten($primary, 50%), 18%);\r\n// Text on primary colour bg\r\n\r\n$secondary: desaturate(lighten($primary, 40%), 21%);\r\n// Secondary buttons\r\n$secondarytext: desaturate(darken($secondary, 60%), 21%);\r\n// Text on secondary colour bg\r\n\r\n$highlight: adjust-hue($primary, 150deg);\r\n// Prices, In stock labels, sales flash\r\n$highlightext: desaturate(lighten($highlight, 50%), 18%);\r\n// Text on highlight colour bg\r\n\r\n$contentbg: #fff;\r\n// Content BG - Tabs (active state)\r\n$subtext: #777;\r\n// small, breadcrumbs etc","/*\n * qTip2 - Pretty powerful tooltips - v2.2.1\n * http://qtip2.com\n *\n * Copyright (c) 2014 \n * Released under the MIT licenses\n * http://jquery.org/license\n *\n * Date: Sun Sep 7 2014 12:09 GMT+0100+0100\n * Plugins: tips modal viewport svg imagemap ie6\n * Styles: core basic css3\n */\n.qtip{\n\tposition: absolute;\n\tleft: -28000px;\n\ttop: -28000px;\n\tdisplay: none;\n\n\tmax-width: 280px;\n\tmin-width: 50px;\n\n\tfont-size: 10.5px;\n\tline-height: 12px;\n\n\tdirection: ltr;\n\n\tbox-shadow: none;\n\tpadding: 0;\n}\n\n\t.qtip-content{\n\t\tposition: relative;\n\t\tpadding: 5px 9px;\n\t\toverflow: hidden;\n\n\t\ttext-align: left;\n\t\tword-wrap: break-word;\n\t}\n\n\t.qtip-titlebar{\n\t\tposition: relative;\n\t\tpadding: 5px 35px 5px 10px;\n\t\toverflow: hidden;\n\n\t\tborder-width: 0 0 1px;\n\t\tfont-weight: bold;\n\t}\n\n\t.qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }\n\n\t/* Default close button class */\n\t.qtip-close{\n\t\tposition: absolute;\n\t\tright: -9px; top: -9px;\n\t\tz-index: 11; /* Overlap .qtip-tip */\n\n\t\tcursor: pointer;\n\t\toutline: medium none;\n\n\t\tborder: 1px solid transparent;\n\t}\n\n\t\t.qtip-titlebar .qtip-close{\n\t\t\tright: 4px; top: 50%;\n\t\t\tmargin-top: -9px;\n\t\t}\n\n\t\t* html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */\n\n\t\t.qtip-titlebar .ui-icon,\n\t\t.qtip-icon .ui-icon{\n\t\t\tdisplay: block;\n\t\t\ttext-indent: -1000em;\n\t\t\tdirection: ltr;\n\t\t}\n\n\t\t.qtip-icon, .qtip-icon .ui-icon{\n\t\t\t-moz-border-radius: 3px;\n\t\t\t-webkit-border-radius: 3px;\n\t\t\tborder-radius: 3px;\n\t\t\ttext-decoration: none;\n\t\t}\n\n\t\t\t.qtip-icon .ui-icon{\n\t\t\t\twidth: 18px;\n\t\t\t\theight: 14px;\n\n\t\t\t\tline-height: 14px;\n\t\t\t\ttext-align: center;\n\t\t\t\ttext-indent: 0;\n\t\t\t\tfont: normal bold 10px/13px Tahoma,sans-serif;\n\n\t\t\t\tcolor: inherit;\n\t\t\t\tbackground: transparent none no-repeat -100em -100em;\n\t\t\t}\n\n/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */\n.qtip-focus{}\n\n/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */\n.qtip-hover{}\n\n/* Default tooltip style */\n.qtip-default{\n\tborder: 1px solid #F1D031;\n\n\tbackground-color: #FFFFA3;\n\tcolor: #555;\n}\n\n\t.qtip-default .qtip-titlebar{\n\t\tbackground-color: #FFEF93;\n\t}\n\n\t.qtip-default .qtip-icon{\n\t\tborder-color: #CCC;\n\t\tbackground: #F1F1F1;\n\t\tcolor: #777;\n\t}\n\n\t.qtip-default .qtip-titlebar .qtip-close{\n\t\tborder-color: #AAA;\n\t\tcolor: #111;\n\t}\n\n\n/*! Light tooltip style */\n.qtip-light{\n\tbackground-color: white;\n\tborder-color: #E2E2E2;\n\tcolor: #454545;\n}\n\n\t.qtip-light .qtip-titlebar{\n\t\tbackground-color: #f1f1f1;\n\t}\n\n\n/*! Dark tooltip style */\n.qtip-dark{\n\tbackground-color: #505050;\n\tborder-color: #303030;\n\tcolor: #f3f3f3;\n}\n\n\t.qtip-dark .qtip-titlebar{\n\t\tbackground-color: #404040;\n\t}\n\n\t.qtip-dark .qtip-icon{\n\t\tborder-color: #444;\n\t}\n\n\t.qtip-dark .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/*! Cream tooltip style */\n.qtip-cream{\n\tbackground-color: #FBF7AA;\n\tborder-color: #F9E98E;\n\tcolor: #A27D35;\n}\n\n\t.qtip-cream .qtip-titlebar{\n\t\tbackground-color: #F0DE7D;\n\t}\n\n\t.qtip-cream .qtip-close .qtip-icon{\n\t\tbackground-position: -82px 0;\n\t}\n\n\n/*! Red tooltip style */\n.qtip-red{\n\tbackground-color: #F78B83;\n\tborder-color: #D95252;\n\tcolor: #912323;\n}\n\n\t.qtip-red .qtip-titlebar{\n\t\tbackground-color: #F06D65;\n\t}\n\n\t.qtip-red .qtip-close .qtip-icon{\n\t\tbackground-position: -102px 0;\n\t}\n\n\t.qtip-red .qtip-icon{\n\t\tborder-color: #D95252;\n\t}\n\n\t.qtip-red .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #D95252;\n\t}\n\n\n/*! Green tooltip style */\n.qtip-green{\n\tbackground-color: #CAED9E;\n\tborder-color: #90D93F;\n\tcolor: #3F6219;\n}\n\n\t.qtip-green .qtip-titlebar{\n\t\tbackground-color: #B0DE78;\n\t}\n\n\t.qtip-green .qtip-close .qtip-icon{\n\t\tbackground-position: -42px 0;\n\t}\n\n\n/*! Blue tooltip style */\n.qtip-blue{\n\tbackground-color: #E5F6FE;\n\tborder-color: #ADD9ED;\n\tcolor: #5E99BD;\n}\n\n\t.qtip-blue .qtip-titlebar{\n\t\tbackground-color: #D0E9F5;\n\t}\n\n\t.qtip-blue .qtip-close .qtip-icon{\n\t\tbackground-position: -2px 0;\n\t}\n\n\n.qtip-shadow{\n\t-webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\t-moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n\tbox-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);\n}\n\n/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */\n.qtip-rounded,\n.qtip-tipsy,\n.qtip-bootstrap{\n\t-moz-border-radius: 5px;\n\t-webkit-border-radius: 5px;\n\tborder-radius: 5px;\n}\n\n.qtip-rounded .qtip-titlebar{\n\t-moz-border-radius: 4px 4px 0 0;\n\t-webkit-border-radius: 4px 4px 0 0;\n\tborder-radius: 4px 4px 0 0;\n}\n\n/* Youtube tooltip style */\n.qtip-youtube{\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 3px #333;\n\t-moz-box-shadow: 0 0 3px #333;\n\tbox-shadow: 0 0 3px #333;\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tbackground: #4A4A4A;\n\tbackground-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));\n\tbackground-image: -webkit-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -moz-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -ms-linear-gradient(top,#4A4A4A 0,black 100%);\n\tbackground-image: -o-linear-gradient(top,#4A4A4A 0,black 100%);\n}\n\n\t.qtip-youtube .qtip-titlebar{\n\t\tbackground-color: #4A4A4A;\n\t\tbackground-color: rgba(0,0,0,0);\n\t}\n\n\t.qtip-youtube .qtip-content{\n\t\tpadding: .75em;\n\t\tfont: 12px arial,sans-serif;\n\n\t\tfilter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);\";\n\t}\n\n\t.qtip-youtube .qtip-icon{\n\t\tborder-color: #222;\n\t}\n\n\t.qtip-youtube .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* jQuery TOOLS Tooltip style */\n.qtip-jtools{\n\tbackground: #232323;\n\tbackground: rgba(0, 0, 0, 0.7);\n\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));\n\tbackground-image: -moz-linear-gradient(top, #717171, #232323);\n\tbackground-image: -webkit-linear-gradient(top, #717171, #232323);\n\tbackground-image: -ms-linear-gradient(top, #717171, #232323);\n\tbackground-image: -o-linear-gradient(top, #717171, #232323);\n\n\tborder: 2px solid #ddd;\n\tborder: 2px solid rgba(241,241,241,1);\n\n\t-moz-border-radius: 2px;\n\t-webkit-border-radius: 2px;\n\tborder-radius: 2px;\n\n\t-webkit-box-shadow: 0 0 12px #333;\n\t-moz-box-shadow: 0 0 12px #333;\n\tbox-shadow: 0 0 12px #333;\n}\n\n\t/* IE Specific */\n\t.qtip-jtools .qtip-titlebar{\n\t\tbackground-color: transparent;\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)\";\n\t}\n\t.qtip-jtools .qtip-content{\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)\";\n\t}\n\n\t.qtip-jtools .qtip-titlebar,\n\t.qtip-jtools .qtip-content{\n\t\tbackground: transparent;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-jtools .qtip-icon{\n\t\tborder-color: #555;\n\t}\n\n\t.qtip-jtools .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #333;\n\t}\n\n\n/* Cluetip style */\n.qtip-cluetip{\n\t-webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\t-moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\tbox-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);\n\n\tbackground-color: #D9D9C2;\n\tcolor: #111;\n\tborder: 0 dashed transparent;\n}\n\n\t.qtip-cluetip .qtip-titlebar{\n\t\tbackground-color: #87876A;\n\t\tcolor: white;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip-cluetip .qtip-icon{\n\t\tborder-color: #808064;\n\t}\n\n\t.qtip-cluetip .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #696952;\n\t\tcolor: #696952;\n\t}\n\n\n/* Tipsy style */\n.qtip-tipsy{\n\tbackground: black;\n\tbackground: rgba(0, 0, 0, .87);\n\n\tcolor: white;\n\tborder: 0 solid transparent;\n\n\tfont-size: 11px;\n\tfont-family: 'Lucida Grande', sans-serif;\n\tfont-weight: bold;\n\tline-height: 16px;\n\ttext-shadow: 0 1px black;\n}\n\n\t.qtip-tipsy .qtip-titlebar{\n\t\tpadding: 6px 35px 0 10px;\n\t\tbackground-color: transparent;\n\t}\n\n\t.qtip-tipsy .qtip-content{\n\t\tpadding: 6px 10px;\n\t}\n\n\t.qtip-tipsy .qtip-icon{\n\t\tborder-color: #222;\n\t\ttext-shadow: none;\n\t}\n\n\t.qtip-tipsy .qtip-titlebar .ui-state-hover{\n\t\tborder-color: #303030;\n\t}\n\n\n/* Tipped style */\n.qtip-tipped{\n\tborder: 3px solid #959FA9;\n\n\t-moz-border-radius: 3px;\n\t-webkit-border-radius: 3px;\n\tborder-radius: 3px;\n\n\tbackground-color: #F9F9F9;\n\tcolor: #454545;\n\n\tfont-weight: normal;\n\tfont-family: serif;\n}\n\n\t.qtip-tipped .qtip-titlebar{\n\t\tborder-bottom-width: 0;\n\n\t\tcolor: white;\n\t\tbackground: #3A79B8;\n\t\tbackground-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));\n\t\tbackground-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -moz-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -ms-linear-gradient(top, #3A79B8, #2E629D);\n\t\tbackground-image: -o-linear-gradient(top, #3A79B8, #2E629D);\n\t\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);\n\t\t-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)\";\n\t}\n\n\t.qtip-tipped .qtip-icon{\n\t\tborder: 2px solid #285589;\n\t\tbackground: #285589;\n\t}\n\n\t\t.qtip-tipped .qtip-icon .ui-icon{\n\t\t\tbackground-color: #FBFBFB;\n\t\t\tcolor: #555;\n\t\t}\n\n\n/**\n * Twitter Bootstrap style.\n *\n * Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.\n * Does not work with IE 7.\n */\n.qtip-bootstrap{\n\t/** Taken from Bootstrap body */\n\tfont-size: 14px;\n\tline-height: 20px;\n\tcolor: #333333;\n\n\t/** Taken from Bootstrap .popover */\n\tpadding: 1px;\n\tbackground-color: #ffffff;\n\tborder: 1px solid #ccc;\n\tborder: 1px solid rgba(0, 0, 0, 0.2);\n\t-webkit-border-radius: 6px;\n\t-moz-border-radius: 6px;\n\tborder-radius: 6px;\n\t-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\tbox-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n\t-webkit-background-clip: padding-box;\n\t-moz-background-clip: padding;\n\tbackground-clip: padding-box;\n}\n\n\t.qtip-bootstrap .qtip-titlebar{\n\t\t/** Taken from Bootstrap .popover-title */\n\t\tpadding: 8px 14px;\n\t\tmargin: 0;\n\t\tfont-size: 14px;\n\t\tfont-weight: normal;\n\t\tline-height: 18px;\n\t\tbackground-color: #f7f7f7;\n\t\tborder-bottom: 1px solid #ebebeb;\n\t\t-webkit-border-radius: 5px 5px 0 0;\n\t\t-moz-border-radius: 5px 5px 0 0;\n\t\tborder-radius: 5px 5px 0 0;\n\t}\n\n\t\t.qtip-bootstrap .qtip-titlebar .qtip-close{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-titlebar .qtip-close{\n\t\t\t * [...]\n\t\t\t * right: 4px;\n\t\t\t * top: 50%;\n\t\t\t * [...]\n\t\t\t * border-style: solid;\n\t\t\t * }\n\t\t\t */\n\t\t\tright: 11px;\n\t\t\ttop: 45%;\n\t\t\tborder-style: none;\n\t\t}\n\n\t.qtip-bootstrap .qtip-content{\n\t\t/** Taken from Bootstrap .popover-content */\n\t\tpadding: 9px 14px;\n\t}\n\n\t.qtip-bootstrap .qtip-icon{\n\t\t/**\n\t\t * Overrides qTip2:\n\t\t * .qtip-default .qtip-icon {\n\t\t * border-color: #CCC;\n\t\t * background: #F1F1F1;\n\t\t * color: #777;\n\t\t * }\n\t\t */\n\t\tbackground: transparent;\n\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon{\n\t\t\t/**\n\t\t\t * Overrides qTip2:\n\t\t\t * .qtip-icon .ui-icon{\n\t\t\t * width: 18px;\n\t\t\t * height: 14px;\n\t\t\t * }\n\t\t\t */\n\t\t\twidth: auto;\n\t\t\theight: auto;\n\n\t\t\t/* Taken from Bootstrap .close */\n\t\t\tfloat: right;\n\t\t\tfont-size: 20px;\n\t\t\tfont-weight: bold;\n\t\t\tline-height: 18px;\n\t\t\tcolor: #000000;\n\t\t\ttext-shadow: 0 1px 0 #ffffff;\n\t\t\topacity: 0.2;\n\t\t\tfilter: alpha(opacity=20);\n\t\t}\n\n\t\t.qtip-bootstrap .qtip-icon .ui-icon:hover{\n\t\t\t/* Taken from Bootstrap .close:hover */\n\t\t\tcolor: #000000;\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t\topacity: 0.4;\n\t\t\tfilter: alpha(opacity=40);\n\t\t}\n\n\n/* IE9 fix - removes all filters */\n.qtip:not(.ie9haxors) div.qtip-content,\n.qtip:not(.ie9haxors) div.qtip-titlebar{\n\tfilter: none;\n\t-ms-filter: none;\n}\n\n\n.qtip .qtip-tip{\n\tmargin: 0 auto;\n\toverflow: hidden;\n\tz-index: 10;\n\n}\n\n\t/* Opera bug #357 - Incorrect tip position\n\thttps://github.com/Craga89/qTip2/issues/367 */\n\tx:-o-prefocus, .qtip .qtip-tip{\n\t\tvisibility: hidden;\n\t}\n\n\t.qtip .qtip-tip,\n\t.qtip .qtip-tip .qtip-vml,\n\t.qtip .qtip-tip canvas{\n\t\tposition: absolute;\n\n\t\tcolor: #123456;\n\t\tbackground: transparent;\n\t\tborder: 0 dashed transparent;\n\t}\n\n\t.qtip .qtip-tip canvas{ top: 0; left: 0; }\n\n\t.qtip .qtip-tip .qtip-vml{\n\t\tbehavior: url(#default#VML);\n\t\tdisplay: inline-block;\n\t\tvisibility: visible;\n\t}\n\n\n#qtip-overlay{\n\tposition: fixed;\n\tleft: 0; top: 0;\n\twidth: 100%; height: 100%;\n}\n\n\t/* Applied to modals with show.modal.blur set to true */\n\t#qtip-overlay.blurs{ cursor: pointer; }\n\n\t/* Change opacity of overlay here */\n\t#qtip-overlay div{\n\t\tposition: absolute;\n\t\tleft: 0; top: 0;\n\t\twidth: 100%; height: 100%;\n\n\t\tbackground-color: black;\n\n\t\topacity: 0.7;\n\t\tfilter:alpha(opacity=70);\n\t\t-ms-filter:\"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)\";\n\t}\n\n\n.qtipmodal-ie6fix{\n\tposition: absolute !important;\n}\n","/**\n * Give Frontend Fonts SCSS\n *\n * Fonts are from icomoon and the src paths need to be relative to template directory.\n * @package Give\n * @subpackage SCSS/Frontend\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n@font-face {\n font-family: 'give-icomoon';\n src: url('../assets/fonts/icomoon.eot?kdnr3d');\n src: url('../assets/fonts/icomoon.eot?kdnr3d#iefix') format('embedded-opentype'),\n url('../assets/fonts/icomoon.woff?kdnr3d') format('woff'),\n url('../assets/fonts/icomoon.svg?kdnr3d#icomoon') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n@mixin iconstyle() {\n font-family: 'give-icomoon';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n // Better Font Rendering\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n[class^=\"give-icon-\"], [class*=\" give-icon-\"] {\n @include iconstyle();\n}\n\n.give-icon-lamp:before {\n content: \"\\e603\";\n}\n\n.give-icon-heart:before {\n content: \"\\e604\";\n}\n\n.give-icon-question:before {\n content: \"\\e602\";\n}\n\n.give-icon-info:before {\n content: \"\\e601\";\n}\n\n.give-icon-new-tab:before {\n content: \"\\ea7e\";\n}\n\n.give-icon-alert:before {\n content: \"\\f02d\";\n}\n\n.give-icon-help:before {\n content: \"\\e606\";\n}\n\n.give-icon-spinner:before {\n content: \"\\e605\";\n}\n\n.give-icon-spinner2:before {\n content: \"\\e607\";\n}\n\n.give-icon-plus:before {\n content: \"\\e040\";\n}\n\n.give-icon-minus:before {\n content: \"\\e041\";\n}\n\n.give-icon-locked:before {\n content: \"\\e600\";\n}\n\n.dashicons-give:before {\n @include iconstyle();\n content: \"\\e800\";\n}\n\n// --------------------------\n// Spinning Icons\n// --------------------------\n\n.fa-spin {\n -webkit-animation: spin 1000ms infinite linear;\n animation: spin 1000ms infinite linear;\n}\n\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","@font-face {\n\tfont-family: 'give-icomoon';\n\tfont-weight: normal;\n\tfont-style: normal;\n}\n\n@mixin admin_fonts() {\n\tfont-family: 'give-icomoon';\n\tsrc: url('../assets/fonts/icomoon.eot?kdnr3d');\n\tsrc: url('../assets/fonts/icomoon.eot?kdnr3d#iefix') format('embedded-opentype'),\n\turl('../assets/fonts/icomoon.woff?kdnr3d') format('woff'),\n\turl('../assets/fonts/icomoon.svg?kdnr3d#icomoon') format('svg');\n\tspeak: none;\n\tfont-style: normal;\n\tfont-weight: normal;\n\tfont-variant: normal;\n\ttext-transform: none;\n\tline-height: 1;\n\n\t// Better Font Rendering\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\n// ---------------------------------\n// Donation form vertical tab icons.\n// ---------------------------------\n.give-metabox-tabs li {\n\n\t.give-icon:before {\n\t\t@include admin_fonts();\n\t\tfont-size: 12px;\n\t\tvertical-align: top;\n\t\tline-height: 20px;\n\t\tmargin: 0 5px 0 0;\n\t}\n\n\t.give-icon-default:before {\n\t\tcontent: \"\\e903\";\n\t}\n\n\t//Donation options tab.\n\t.give-icon-heart:before {\n\t\tcontent: \"\\e604\"; //this is a wp dashicon heart.\n\t}\n\t//Goal tab.\n\t.give-icon-target:before {\n\t\tcontent: \"\\e901\";\n\t}\n\t//Form display tab.\n\t.give-icon-display:before {\n\t\tcontent: \"\\e90c\";\n\t}\n\t//Form content tab.\n\t.give-icon-edit:before {\n\t\tcontent: \"\\e902\";\n\t}\n\t//Form terms tab.\n\t.give-icon-checklist:before {\n\t\tposition: relative;\n\t\ttop: 1px;\n\t\tcontent: \"\\e900\";\n\t}\n\t//Form offline donations tab.\n\t.give-icon-purse:before {\n\t\tcontent: \"\\e8df\";\n\t}\n\n}","/**\r\n * Give Forms SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*------------------------------------\r\nForms CPT\r\n--------------------------------------*/\r\n/* Hide conditional fields */\r\n.cmb2-id--give-set-price,\r\n.cmb2-id--give-levels-header,\r\n.cmb2-id--give-levels-header + .cmb-repeat-group-wrap,\r\n.cmb2-id--give-display-style,\r\n.post-type-give_forms .tablenav #post-query-submit,\r\n.give-hidden,\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-reveal-label,\r\n.cmb2-id--give-custom-amount-minimum,\r\n.cmb2-id--give-custom-amount-text,\r\n.cmb2-id--give-offline-checkout-notes,\r\n.cmb-type-levels-id,\r\n#_give_donation_levels_repeat .cmb-group-title,\r\n#_give_donation_levels_repeat .cmb-row > .cmb-remove-group-row,\r\n#_give_donation_levels_repeat .cmb-row > .handlediv {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Donation Levels Repeating Field */\r\n#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list > .cmb-row .cmb2-radio-list label {\r\n\tfont-size: 12px;\r\n}\r\n\r\n//-----------------------------\r\n// Table Rows\r\n//-----------------------------\r\ndiv.cmb-type-levels-repeater-header + div.cmb-repeat-group-wrap {\r\n\tpadding: 0 !important;\r\n\tmargin: 0 !important;\r\n\tmin-width: 100%;\r\n\tmax-width: 0;\r\n\r\n}\r\n\r\n//-----------------------------\r\n// Multilevel Repeater Header\r\n//-----------------------------\r\n.cmb2-id--give-levels-header {\r\n\tpadding: 10px 12px 0 !important;\r\n\tmargin: 0 !important;\r\n\tbackground: #F7F7F7;\r\n\tborder-bottom: none !important;\r\n\r\n\t.table-container {\r\n\t\tdisplay: table;\r\n\t\twidth: 100%;\r\n\r\n\t\tborder-top: 1px solid #e9e9e9;\r\n\t\tborder-bottom: 1px solid #e9e9e9;\r\n\t\tborder-left: 1px solid #e9e9e9;\r\n\r\n\t\t> .table-row {\r\n\t\t\tdisplay: table-row;\r\n\t\t\tbackground: #FCFCFC;\r\n\r\n\t\t\t> .table-cell {\r\n\t\t\t\tdisplay: table-cell;\r\n\t\t\t\tvertical-align: middle;\r\n\t\t\t\tpadding: 10px 15px;\r\n\t\t\t\tborder-right: 1px solid #e9e9e9;\r\n\t\t\t\t&.col-id {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}\r\n}\r\n\r\n#_give_donation_levels_repeat {\r\n\tbackground: #F7F7F7;\r\n\tpadding: 0 1px 20px 12px;\r\n\tbox-sizing: border-box;\r\n\r\n\t.cmb-row, .inside {\r\n\t\tmargin: 0;\r\n\t}\r\n\t.cmb-remove-field-row {\r\n\t\tmargin: 3px 0 0;\r\n\r\n\t\t.button {\r\n\t\t\theight: 25px;\r\n\t\t\tpadding: 0 3px;\r\n\t\t}\r\n\t\tspan.dashicons-no {\r\n\t\t\tline-height: 1.15em;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.cmbhandle {\r\n\t\tdisplay: none;\r\n\t}\r\n\t.cmb-add-row {\r\n\t\tmargin: 12px 0 0;\r\n\t}\r\n\r\n}\r\n\r\n//---------------------------------------------------\r\n// Field One Offs\r\n//---------------------------------------------------\r\n.give-time-field {\r\n\twidth: 65px;\r\n}\r\n\r\n.give-money-field {\r\n\twidth: 75px;\r\n\tmargin-right: 0;\r\n\tmargin-left: 0;\r\n}\r\n\r\n.give-money-symbol {\r\n\tborder: 1px solid #DDD;\r\n\tbackground: #FCFCFC;\r\n\tmargin: 0;\r\n\tfont-size: 14px;\r\n\tpadding: 5px 8px;\r\n}\r\n\r\n.give-money-symbol-before {\r\n\tborder-right: 0;\r\n\tmargin-right: -4px;\r\n}\r\n\r\n.give-money-symbol-after {\r\n\t//border-left: 0;\r\n\tmargin-left: -5px;\r\n}\r\n\r\n.give_options_panel input[ type=\"text\"] {\r\n\tpadding: 5px;\r\n\twidth: 100%;\r\n}\r\n\r\ninput.give-text_small,\r\ninput.give-text-small {\r\n\twidth: 100px !important;\r\n}\r\n\r\ninput.give-text-medium,\r\ninput.give-text_medium {\r\n\twidth: 200px !important;\r\n}\r\n\r\n.give-underline {\r\n\ttext-decoration: underline;\r\n}\r\n\r\n.postbox-container .cmb-row {\r\n\tmargin: 0;\r\n\r\n\t.cmb-th label {\r\n\t\tpadding-left: 8px;\r\n\t}\r\n\r\n}\r\n\r\n//---------------------------------------------------\r\n// Responsive\r\n//---------------------------------------------------\r\n@media only screen and (min-width: 851px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\t\t> .cmb-row {\r\n\t\t\tfloat: left;\r\n\t\t\tborder-bottom: none;\r\n\t\t\tpadding-right: 10px;\r\n\t\t\t> .cmb-th {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t\t> .cmb-td {\r\n\t\t\t\tfloat: left;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.cmb-type-give-default-radio-inline .cmb-td {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n\r\n}\r\n\r\n/* Smaller Resolution Desktops */\r\n@media only screen and (min-width: 851px) and (max-width: 1201px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t\t> .cmb-remove-field-row {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding-top: 0;\r\n\t\t}\r\n\t\t> .cmb-type-text-money {\r\n\t\t\twidth: 105px;\r\n\t\t}\r\n\t\tinput.cmb2-text-money {\r\n\t\t\twidth: 65px;\r\n\t\t}\r\n\r\n\t\t.give-multilevel-text-field {\r\n\t\t\twidth: 160px;\r\n\t\t}\r\n\t\t.cmb-type-radio-inline {\r\n\t\t\tmargin-left: 20px;\r\n\t\t}\r\n\r\n\t}\r\n\t.col-amount {\r\n\t\twidth: 70px;\r\n\t}\r\n\t.col-text {\r\n\t\twidth: 140px;\r\n\t}\r\n\t.col-sort {\r\n\t\tdisplay: none !important;\r\n\t}\r\n\t.give-money-field {\r\n\t\twidth: 55px;\r\n\t}\r\n}\r\n\r\n@media only screen and (min-width: 1201px) {\r\n\r\n\t#_give_donation_levels_repeat > .cmb-repeatable-grouping .cmb-field-list {\r\n\r\n\t\t> .cmb-remove-field-row {\r\n\t\t\tfloat: right;\r\n\t\t}\r\n\t\t> .cmb-row {\r\n\t\t\tpadding-right: 20px;\r\n\t\t}\r\n\t\t> .cmb-remove-field-row.cmb-row {\r\n\t\t\tpadding-right: 0;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.col-amount {\r\n\t\twidth: 93px;\r\n\t}\r\n\t.col-text {\r\n\t\twidth: 195px;\r\n\t}\r\n\t.col-sort {\r\n\t\twidth: 100px;\r\n\t}\r\n\t.give-multilevel-text-field {\r\n\t\twidth: 205px;\r\n\t}\r\n\r\n}\r\n\r\n//Small Resolution Repeater\r\n@media only screen and (max-width: 850px) {\r\n\tdiv.cmb-type-levels-repeater-header {\r\n\t\tdisplay: none !important;\r\n\t}\r\n}\r\n\r\n//-------------------------------------\r\n// Publish Metabox\r\n//-------------------------------------\r\n\r\n/*Shortcode Input */\r\n\r\n.shortcode-wrap {\r\n\tmargin: 1px 14px 12px 11px;\r\n\r\n\tlabel {\r\n\t\tmargin: 0 0 3px;\r\n\t\tdisplay: block;\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t.shortcode-input {\r\n\t\tmargin: 0;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n}\r\n\r\n//-------------------------------------\r\n// Content Options\r\n//-------------------------------------\r\n\r\n.cmb2-id--give-content-option,\r\n.cmb2-id--give-terms-option,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single,\r\n.cmb2-id--give-goal-option,\r\n.cmb2-id--give-customize-offline-donations {\r\n\tborder-bottom: none !important;\r\n\tmargin: 0 !important;\r\n}\r\n\r\n.cmb2-id--give-form-content,\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-offline-checkout-notes,\r\n.cmb2-id--give-set-goal,\r\n.cmb2-id--give-offline-donation-enable-billing-fields-single {\r\n\tborder-top: 1px solid #e9e9e9 !important;\r\n}\r\n\r\n/*-------------------------------------\r\nTerms and Conditions Metabox\r\n---------------------------------------*/\r\n\r\n.cmb2-id--give-agree-label,\r\n.cmb2-id--give-agree-text {\r\n\tdisplay: none;\r\n}\r\n\r\n/*-------------------------------------\r\nDashboard Columns\r\n-------------------------------------*/\r\n\r\ninput.shortcode-input {\r\n\twidth: 100%;\r\n}\r\n\r\n/*-------------------------------------\r\nASIDE\r\n-------------------------------------*/\r\n\r\n#side-sortables {\r\n\r\n\t.cmb-th label {\r\n\r\n\t\t&:after {\r\n\t\t\tdisplay: none;\r\n\t\t}\r\n\r\n\t}\r\n\t.cmb2-id--give-show-register-form {\r\n\t\tpadding: 10px 0 0 !important;\r\n\t}\r\n\r\n\t.cmb2-wrap > .cmb-field-list > .cmb-row {\r\n\t\tpadding-top: 10px;\r\n\t}\r\n\r\n\t.cmb-row .cmb2-metabox-description {\r\n\t\tpadding-bottom: 0;\r\n\t}\r\n\r\n}\r\n\r\n.cmb2-metabox-description {\r\n\tfont-size: 13px;\r\n\tline-height: 1.5;\r\n\tdisplay: block;\r\n}\r\n\r\n//-------------------------------------\r\n// Tooltips\r\n//-------------------------------------\r\n.give-tooltip {\r\n\tmargin: 0 3px;\r\n\tpadding: 0;\r\n\tfont-size: 14px;\r\n\t@include easing-transition();\r\n\tcolor: transparentize($dark, 0.5);\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\r\n\t&:hover {\r\n\t\tcolor: $dark;\r\n\t}\r\n\r\n}\r\n\r\n//-------------------------------------\r\n// Metabox Form\r\n// -------------------------------------\r\n#give-metabox-form-data {\r\n\r\n\t.inside {\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n\r\n\t.give-metabox-panel-wrap {\r\n\t\tbackground: #fff;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t.give_options_panel {\r\n\t\tpadding-left: 170px;\r\n\r\n\t\t.give-field-wrap {\r\n\t\t\tpadding: 1em 20px 1em 162px !important;\r\n\t\t\tmargin: 0;\r\n\t\t\tborder-bottom: 1px solid #eee;\r\n\r\n\t\t\t> label, > span.give-field-label {\r\n\t\t\t\tfloat: left;\r\n\t\t\t\twidth: 135px;\r\n\t\t\t\tpadding: 0;\r\n\t\t\t\tmargin: 2px 0 0 -150px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t}\r\n\r\n\t\t\t.give-field-description {\r\n\t\t\t\tcolor: #aaaaaa;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tpadding-top: 10px;\r\n\t\t\t\tfont-style: italic;\r\n\t\t\t}\r\n\r\n\t\t\tul {\r\n\t\t\t\tmargin: 0;\r\n\t\t\t}\r\n\r\n\t\t\t.mce-container iframe, textarea {\r\n\t\t\t\tmin-height: 250px !important;\r\n\t\t\t}\r\n\r\n\t\t\t.wp-editor-wrap {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:last-child {\r\n\t\t\tborder-bottom: 0;\r\n\t\t}\r\n\r\n\t\ttextarea.give-field {\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:hover .give-field-row-actions {\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\r\n\t\t.give-field-wrap:last-child {\r\n\t\t\tborder-bottom: 0;\r\n\t\t}\r\n\r\n\t\t.give-inline-radio-fields {\r\n\t\t\tli {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\tmargin-right: 15px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.give-repeatable-field-section {\r\n\t\t\tpadding: 10px;\r\n\t\t\tbackground: #f5f5f5;\r\n\r\n\t\t\t.give-repeatable-fields-section-wrapper {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tbackground-color: white;\r\n\t\t\t\tborder-collapse: collapse;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row {\r\n\t\t\t\tborder-bottom: 15px solid #f5f5f5;\r\n\t\t\t\tbackground-color: white;\r\n\t\t\t}\r\n\r\n\t\t\t.give-template {\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row:last-child {\r\n\t\t\t\tborder-bottom: 10px solid #f5f5f5;\r\n\t\t\t}\r\n\r\n\t\t\t.give-column {\r\n\t\t\t\tpadding: 0;\r\n\t\t\t}\r\n\r\n\t\t\t.give-remove {\r\n\t\t\t\tfloat: right;\r\n\t\t\t\twidth: 36px;\r\n\t\t\t\theight: 36px;\r\n\t\t\t\tpadding: 0;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 34px;\r\n\t\t\t\tfont-size: 21px;\r\n\t\t\t\tfont-weight: 300;\r\n\t\t\t\tcursor: pointer;\r\n\t\t\t}\r\n\r\n\t\t\t.give-remove:hover {\r\n\t\t\t\tbackground-color: red;\r\n\t\t\t\tcolor: white;\r\n\t\t\t\twidth: 30px;\r\n\t\t\t\theight: 30px;\r\n\t\t\t\tborder-radius: 30px;\r\n\t\t\t\tmargin-top: 3px;\r\n\t\t\t\tline-height: 28px;\r\n\t\t\t}\r\n\r\n\t\t\t.give-row-head {\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t\tcursor: move;\r\n\t\t\t\th2 {\r\n\t\t\t\t\ttext-align: left !important;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.give-row.closed .toggle-indicator:before {\r\n\t\t\t\tcontent: \"\\f140\";\r\n\t\t\t}\r\n\r\n\t\t\t.give-add-repeater-field-section-row-wrap {\r\n\t\t\t\tbackground-color: #f5f5f5;\r\n\t\t\t}\r\n\r\n\t\t\t.give-add-repeater-field-section-row {\r\n\t\t\t\tmargin: 5px 5px;\r\n\t\t\t}\r\n\r\n\t\t\t.give-field-wrap:last-child {\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t}\r\n\r\n\t\t\t.give-ui-placeholder-state-highlight {\r\n\t\t\t\tbackground-color: #68bb6c;\r\n\t\t\t}\r\n\r\n\t\t\t.give-repeater-field-name {\r\n\t\t\t\tborder: 0 !important;\r\n\t\t\t\tpadding: 0 !important;\r\n\t\t\t}\r\n\r\n\t\t\t.give-repeater-field-description {\r\n\t\t\t\tcolor: #aaaaaa;\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tpadding-bottom: 10px;\r\n\t\t\t\tfont-style: italic;\r\n\t\t\t}\r\n\r\n\t\t\t// Sortable jquery css fix.\r\n\t\t\t.ui-sortable-helper {\r\n\t\t\t\tdisplay: table !important;\r\n\t\t\t}\r\n\t\t\t.give-row.ui-sortable-helper {\r\n\t\t\t\tborder-bottom: 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n//-------------------------------------\r\n// Metabox Tabs\r\n//-------------------------------------\r\n#give-metabox-form-data {\r\n\r\n\t.give-metabox-tabs {\r\n\t\tmargin: 0;\r\n\t\tmax-width: 170px;\r\n\t\tfloat: left;\r\n\t\tline-height: 1em;\r\n\t\tpadding: 0 0 10px;\r\n\t\tposition: relative;\r\n\t\tbackground-color: #fafafa;\r\n\t\tborder-right: 1px solid #eee;\r\n\t\tbox-sizing: border-box;\r\n\r\n\t\t&:after {\r\n\t\t\tcontent: \"\";\r\n\t\t\tdisplay: block;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 9999em;\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: -9999em;\r\n\t\t\tleft: 0;\r\n\t\t\tbackground-color: #fafafa;\r\n\t\t\tborder-right: 1px solid #eee;\r\n\t\t}\r\n\r\n\t\tli {\r\n\t\t\tmargin: 0;\r\n\t\t\tpadding: 0;\r\n\t\t\tdisplay: block;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\ta {\r\n\t\t\t\tmargin: 0;\r\n\t\t\t\tpadding: 10px;\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tbox-shadow: none;\r\n\t\t\t\ttext-decoration: none;\r\n\t\t\t\tline-height: 20px !important;\r\n\t\t\t\tborder-bottom: 1px solid #eee;\r\n\t\t\t\toverflow: hidden;\r\n\r\n\t\t\t\tspan.give-label {\r\n\t\t\t\t\twidth: 122px;\r\n\t\t\t\t\tdisplay: inline-block;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t.give-metabox-sub-tabs li {\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\ta {\r\n\t\t\t\tborder-bottom-color: #e5e5e5;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tli.active {\r\n\t\t\t> a {\r\n\t\t\t\tcolor: #555;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tbackground-color: #eee;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tli.has-sub-fields.active > a {\r\n\t\t\tbackground-color: #ddd;\r\n\t\t}\r\n\r\n\t\tli.has-sub-fields:not(.active):hover {\r\n\t\t\tul.give-metabox-sub-tabs {\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tbottom: 0;\r\n\t\t\t\tleft: 166px;\r\n\t\t\t\twidth: 170px;\r\n\t\t\t\tmax-height: 250px;\r\n\t\t\t\toverflow-y: scroll;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\n// Icons only display for tight resolutions.\r\n@media only screen and (min-width: 851px) and (max-width: 1025px),\r\n(max-width: 550px) {\r\n\r\n\t#give-metabox-form-data {\r\n\t\tul.give-metabox-tabs {\r\n\t\t\tmin-width: 40px;\r\n\r\n\t\t\tli > a {\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\t&:before {\r\n\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t\tfont-size: 15px;\r\n\t\t\t\t}\r\n\t\t\t\tspan {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t.give_options_panel {\r\n\t\t\tpadding-left: 40px;\r\n\t\t}\r\n\r\n\t}\r\n\t//#give-metabox-form-data\r\n}\r\n\r\n//-------------------------------------\r\n// Export Form\r\n// -------------------------------------\r\n\r\n#give-export-payments {\r\n\t.give_forms_categories,\r\n\t.give_forms_tags {\r\n\t\tinput {\r\n\t\t\tcolor: #999;\r\n\t\t}\r\n\r\n\t\tmin-width: 250px;\r\n\t\tmargin: 0 0 10px 0;\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\tdiv.chosen-container:first-of-type {\r\n\t\tmargin-top: 10px;\r\n\t}\r\n}\r\n\r\n/*-------------------------------------\r\nDoc Links\r\n-------------------------------------*/\r\n\r\n.give-docs-link {\r\n\ttext-align: right;\r\n\tmargin-right: 15px;\r\n\r\n\ta {\r\n\t\tcolor: #999;\r\n\t\ttext-decoration: none;\r\n\t\tfont-style: italic;\r\n\r\n\t\t&:hover {\r\n\t\t\tcolor: rgb(0, 115, 170);\r\n\t\t}\r\n\t\tspan {\r\n\t\t\tfont-style: normal;\r\n\t\t}\r\n\t}\r\n}","/**\n * Give Add-ons SCSS\n *\n * @description Add-on Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.type-download {\n float: left;\n margin: 0 1em 1em 0 !important;\n padding: 0;\n vertical-align: top;\n width: 280px;\n text-decoration: none;\n color: inherit;\n border: 1px solid #ddd;\n display: block;\n min-height: 365px;\n overflow: hidden;\n background: #f5f5f5;\n -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .1);\n -webkit-transition-property: border, background, color;\n transition-property: border, background, color;\n -webkit-transition-duration: .05s;\n transition-duration: .05s;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n position: relative;\n\n &:hover {\n\tborder: 1px solid #d1d1d1;\n }\n\n > .featured-img img {\n\tborder-bottom: 1px solid #ddd;\n }\n\n .addon-content {\n\t@include clearfix;\n\tpadding: 15px 20px;\n\n\t.addon-heading {\n\t margin: 0 0 10px;\n\t a {\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t }\n\t}\n\n }\n\n .addon-footer-wrap {\n\tborder-top: 1px solid #ddd;\n\tposition: absolute;\n\tbottom: 2px;\n\tleft: 0;\n\twidth: 100%;\n\tbackground-color: #FFF;\n\tpadding: 15px 20px;\n }\n\n}\n\n.give-view-addons-all, .type-download {\n\n span.dashicons {\n\twidth: 16px;\n\theight: 16px;\n\tfont-size: 14px;\n\tmargin: 6px 0 0 0;\n }\n\n}\n\n.give-view-addons-all span.dashicons {\n margin-left: 3px;\n}\n","/**\n * Give Reports SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n//---------------------------------------------------------\n// Dashboard Widget\n//---------------------------------------------------------\n#give-dashboard-widgets-wrap {\n\n .inside {\n padding-top: 0;\n padding-bottom: 0;\n\n /* counteract extra padding in Income Report graph */\n .give_forms_page_give-reports & {\n padding-left: 0;\n }\n\n #give-graphs-filter {\n float:none;\n }\n }\n\n .postbox {\n margin-bottom: 10px;\n }\n\n table.reports-table {\n clear: none;\n }\n\n #give-date-range-options {\n float: left;\n\n > span {\n float: left;\n line-height: 30px;\n font-style: italic;\n padding: 0 5px 0 0;\n }\n\n }\n\n}\n\n\n#give-graphs-filter {\n float:right;\n\n .tablenav {\n margin: 0 0 0 17px;\n .actions {\n padding: 0;\n }\n }\n}\n\n//---------------------------------------------------------\n// Global Graph Styles\n//---------------------------------------------------------\n\n.give-graph {\n .y1Axis {\n color: #66bb6a !important;\n }\n .y2Axis {\n color: #546e7a !important;\n }\n}\n\n//---------------------------------------------------------\n//Donor Filter\n//---------------------------------------------------------\nbody.give_forms_page_give-reports, body.give_forms_page_give-payment-history {\n\n h1.nav-tab-wrapper, h2.nav-tab-wrapper {\n margin-bottom: 10px;\n }\n .actions {\n padding-top: 0;\n }\n\n .pagination-links {\n margin-left: 10px;\n }\n\n p.donor-search {\n margin-right: 10px;\n }\n\n .tablenav-right {\n\n .tablenav-pages {\n float: right;\n }\n #give-reports-view {\n margin-top: 0;\n }\n .actions {\n float: left;\n }\n\n }\n\n p.search-box {\n float: left;\n }\n\n .reports-table-nav.tablenav.top {\n width: 100%;\n float: none;\n margin: 0 0 10px;\n }\n\n .reports-forms-details-wrap.top {\n float: right;\n overflow: hidden;\n\n #give-reports-filter {\n float: left;\n }\n > .actions {\n padding-right: 0;\n }\n }\n\n .tablenav.bottom {\n margin-top: 10px;\n }\n\n h3.reports-earnings-title {\n margin: 7px 0 0;\n }\n\n .reports-views-wrap {\n padding: 3px 0 0;\n }\n\n .wrap.give-reports-donors-wrap {\n margin-right: 0;\n margin-bottom: 10px;\n }\n\n .widefat tbody td, .widefat tbody th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n\n}\n\n//---------------------------------------------------------\n//Export Options Styles\n//---------------------------------------------------------\nbody.give_forms_page_give-reports table.export-options-table {\n tbody td {\n padding: 20px 12px;\n vertical-align: top;\n }\n .give-export-form {\n position: relative;\n .notice-wrap {\n background-color: transparent;\n padding: 12px 12px 4px;\n margin: 2px 0 -16px -11px;\n overflow: auto;\n .spinner {\n margin: -2px -12px 8px 0;\n }\n }\n }\n\n span#give-start-wrap, span#give-end-wrap {\n input {\n width: 100px;\n }\n }\n\n}\n\n#export-donor-options-wrap {\n p {\n padding: 20px 0 0;\n margin: 0;\n font-weight: bold;\n }\n ul {\n max-width: 900px;\n overflow: hidden;\n\n li {\n margin: 0;\n padding: 0 5px 5px 0;\n box-sizing: border-box;\n float: left;\n width: 33%;\n }\n }\n\n}\n\n//---------------------------------------------------------\n//Recount Stats Form\n//---------------------------------------------------------\n\n#give-tools-recount-form {\n\n .notice-wrap {\n position: relative;\n min-height: 25px;\n margin: 10px -12px -12px;\n background: #EFEFEF;\n padding: 10px 12px 12px;\n border-top: 1px solid #E5E5E5;\n\n .give-progress {\n position: absolute;\n top: 15px;\n }\n\n .spinner {\n position: absolute;\n right: 14px;\n top: 13px;\n margin: 0;\n }\n\n #give-batch-success {\n margin-bottom: 6px;\n }\n\n }\n\n}\n\n//---------------------------------------------------------\n//Progress Bar Styles\n//---------------------------------------------------------\n.give-progress {\n height: 15px;\n width: 95%;\n border-radius: 4px;\n overflow: hidden;\n > div {\n height: 100%;\n width: 0;\n }\n\n}\n\n.admin-color-fresh .give-export-form .give-progress div, .give-export-form .give-progress div {\n background: #0073aa;\n}\n\n.admin-color-light .give-export-form .give-progress div {\n background: #888;\n}\n\n.admin-color-blue .give-export-form .give-progress div {\n background: #096484;\n}\n\n.admin-color-coffee .give-export-form .give-progress div {\n background: #c7a589;\n}\n\n.admin-color-ectoplasm .give-export-form .give-progress div {\n background: #a3b745;\n}\n\n.admin-color-midnight .give-export-form .give-progress div {\n background: #e14d43;\n}\n\n.admin-color-sunrise .give-export-form .give-progress div {\n background: #dd823b;\n}\n\n//---------------------------------------------------------\n//Tools\n//---------------------------------------------------------\n\n.recount-stats-controls form {\n display: inline;\n}\n\n.give-recount-stats-descriptions {\n margin: 8px 0 0;\n display: block;\n\n span {\n line-height: 24px;\n font-size: 13px;\n font-style: italic;\n font-weight: normal;\n color: #aaa;\n margin: 0;\n display: none;\n }\n}\n\n//---------------------------------------------------------\n//Payment Methods\n//---------------------------------------------------------\n.gateways-report-tablenav {\n .actions.bulkactions {\n padding-right: 0;\n }\n}\n\n//---------------------------------------------------------\n//Table List Styles\n//---------------------------------------------------------\n\ntable.give-table {\n\n td {\n vertical-align: middle;\n }\n td.row-title {\n h3 {\n margin: 0 0 0.4em;\n font-size: 1.2em;\n }\n p {\n font-size: 13px;\n font-style: italic;\n font-weight: normal;\n color: #aaa;\n margin: 0;\n }\n }\n\n}\n\n#give-graphs-filter > .tablenav {\n height: auto;\n}\n\n//---------------------------------------------------------\n//Logs\n//---------------------------------------------------------\n#give-logs-filter {\n .search-box {\n float: right;\n }\n .tablenav.top {\n float: left;\n clear: none;\n margin-top: 0;\n }\n}","/**\n * Give Admin Welcome SCSS\n *\n * @description Displays when user activates the plugin\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n */\n\n.welcome-h1 {\n display: inline-block;\n margin-right: 15px !important;\n}\n\n.about-wrap {\n h3 {\n margin: 1.5em 0 .6em;\n }\n\n img {\n border:none;\n }\n}\n\n.give-badge {\n padding-top: 150px;\n height: 52px;\n width: 185px;\n color: #FFF;\n font-weight: bold;\n font-size: 14px;\n text-align: center;\n text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);\n margin: 0 -5px;\n\n position: absolute;\n top: 0;\n right: 0;\n}\n\n.introduction {\n padding: 0 0 20px;\n margin: 0 0 20px;\n}\n\n//Feature section\n.feature-section {\n margin-top: 40px;\n\n span.dashicons {\n width: 16px;\n height: 16px;\n font-size: 14px;\n margin: 6px 0 0 0;\n }\n\n .feature-section-item {\n width: 48%;\n float: left;\n }\n\n div.last-feature {\n margin-right: 0;\n margin-left: 4%;\n }\n\n}\n\n//Get started\n[class^=\"dashboard_page_give-\"], [class*=\"dashboard_page_give-\"] {\n .about-text {\n min-height: 0;\n }\n}\n\n//Social Media\n.social-items-wrap {\n display: inline-block;\n > div {\n display: inline-block;\n }\n .twitter-item-wrap {\n margin: 0 20px 10px 0;\n }\n}\n\n//Credits\n.wp-person {\n img {\n border-radius: 50%;\n }\n a.web {\n margin: 17px 0 0;\n font-weight: bold;\n font-style: italic;\n }\n}\n\n//Newsletter\n.newsletter-intro {\n font-size: 13px;\n font-style: italic;\n color: #777;\n}\n\n.give-newsletter-form-wrap {\n margin: 10px 0 20px -5px;\n max-width: 700px;\n\n td {\n padding: 3px;\n }\n\n div.give-newsletter-confirmation {\n background: #fff;\n -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\n margin: 5px 10px 4px 5px;\n padding: 1px 12px;\n border-left: 4px solid #7ad03a;\n display: none;\n > p {\n margin: 0.5em 0;\n padding: 2px;\n }\n }\n\n}","/**\n * Give Logs SCSS\n *\n * @description Payment History Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n#give_donor_export_form {\n margin: 0 0 5px;\n}\n\n\n#give-payments-filter .give-donation-status {\n display: inline-block;\n}\n\n.column-status {\n .give-donation-status, .give-test-mode-transactions-label {\n display: inline-block;\n }\n .give-test-mode-transactions-label {\n margin: 0 5px;\n vertical-align: middle;\n }\n}\n","/**\r\n * Give Settings SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n */\r\n\r\n//--------------------------------------------------------------\r\n// General Settings\r\n//--------------------------------------------------------------\r\n\r\n.give-settings-page {\r\n\r\n\t.nav-tab-wrapper {\r\n\t\tmargin-bottom: 5px;\r\n\t\toverflow: visible;\r\n\t}\r\n\r\n\t.cmb2-wrap .cmb-type-checkbox input[type=\"checkbox\"] {\r\n\t\tdisplay: block;\r\n\t\tmargin-bottom: 5px;\r\n\t}\r\n\r\n\tdiv.give-submit-wrap {\r\n\t\tmargin: 20px 0;\r\n\t}\r\n\r\n\t.give_forms_page_give-payment-history .postbox .hndle {\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t.give-input-field {\r\n\t\twidth: 25em;\r\n\t}\r\n\r\n\ttable table input[type=\"text\"] {\r\n\t\twidth: 15em;\r\n\t}\r\n}\r\n\r\n.give-setting-tab-header {\r\n\tclear: both;\r\n\toverflow: hidden;\r\n\tmargin: 30px 0;\r\n\r\n\th2 {\r\n\t\tmargin-top: 8px;\r\n\t}\r\n}\r\n\r\n.give-radio-inline {\r\n\tul {\r\n\t\tmargin-top: 0;\r\n\t}\r\n\r\n\tli {\r\n\t\tdisplay: inline-block;\r\n\t\tmargin: 0 0 0 15px;\r\n\t}\r\n\r\n\tli:first-child {\r\n\t\tmargin-left: 0;\r\n\t}\r\n}\r\n\r\n// Tools page: fix ajax search user list hide bug\r\n.give-tools-setting-page .bulkactions {\r\n\toverflow: visible;\r\n}\r\n\r\n//Ugly but necessary to override WP core styles.\r\n.form-table td.give-radio-inline fieldset li > label {\r\n\tmargin: 5px 0 0 !important;\r\n}\r\n\r\np.give-field-description, .cmb2-metabox-description {\r\n\tcolor: #aaaaaa;\r\n\tfont-style: italic;\r\n\tfont-size: 13px !important;\r\n}\r\n\r\n.give-image-thumb {\r\n\tposition: relative;\r\n\tmargin-top: 14px;\r\n\r\n\tspan.give-delete-image-thumb {\r\n\t\tposition: absolute;\r\n\t\tbackground: red;\r\n\t\tcolor: white;\r\n\t\tborder-radius: 30px;\r\n\t\tleft: -10px;\r\n\t\ttop: -10px;\r\n\t}\r\n\r\n\timg {\r\n\t\tmax-width: 400px;\r\n\t\tborder: 4px solid white;\r\n\t}\r\n}\r\n\r\n.cmb-type-give-title label,\r\n.give-setting-tab-header h2 {\r\n\tfloat: left;\r\n\tdisplay: inline-block;\r\n\twidth: 220px;\r\n\tfont-style: italic;\r\n\tcolor: #AAA;\r\n\tmargin: 0;\r\n\tfont-size: 14px;\r\n}\r\n\r\n.postbox-container #_give_donation_levels_repeat > .cmb-repeatable-grouping:not(:last-of-type) {\r\n\tborder-bottom: 1px solid #e9e9e9;\r\n\tborder-top: none;\r\n}\r\n\r\n.cmb-type-enabled-gateways .cmb-td > p:first-of-type {\r\n\tdisplay: none;\r\n}\r\n\r\n// CMB2 Checkbox Revised Styles\r\n.cmb-type-checkbox .cmb-td {\r\n\twidth: 80%;\r\n\tlabel {\r\n\t\tfont-size: 13px;\r\n\t}\r\n}\r\n\r\n/* Responsive Settings Rows */\r\n.give_settings {\r\n\t.cmb2-wrap .cmb-row {\r\n\t\tdisplay: table-row;\r\n\t\t> .cmb-th, > .cmb-td {\r\n\t\t\tdisplay: table-cell;\r\n\t\t\tfloat: none;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/* Custom Title Separators */\r\n.cmb2-id-give-title {\r\n\tlabel {\r\n\t\tfont-style: italic;\r\n\t\tcolor: #AAA;\r\n\t\tcursor: default;\r\n\t}\r\n\t> div.cmb-th {\r\n\t\tpadding-bottom: 10px;\r\n\t}\r\n\t> div.cmb-td {\r\n\t\tpadding-bottom: 5px;\r\n\t}\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// Payment Gateways\r\n//--------------------------------------------------------------\r\n.give-payment-gatways-list li.ui-sortable-handle {\r\n\r\n\tspan.give-drag-handle {\r\n\t\tpadding: 3px 4px 0 0;\r\n\t\tfont-size: 15px;\r\n\t\tfont-weight: normal;\r\n\t\tcolor: #bdbdbd;\r\n\t\tcursor: move;\r\n\r\n\t\t&:hover {\r\n\t\t\tcolor: #333;\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// Emails\r\n//--------------------------------------------------------------\r\n\r\n.give-email-tags-wrap {\r\n\tmargin: 5px 0 0;\r\n\tcode {\r\n\t\tfont-style: normal;\r\n\t\tpadding: 1px 2px;\r\n\t\tfont-size: 12px;\r\n\t}\r\n\tspan {\r\n\t\tdisplay: block;\r\n\t\tcolor: #AAA;\r\n\t\tfont-style: italic;\r\n\t\tmargin: 0 0 2px;\r\n\t\tfont-size: 13px;\r\n\t}\r\n\t.give_price_tag {\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// System Info page styles\r\n//--------------------------------------------------------------\r\n\r\n#system-info-textarea {\r\n\twidth: 800px;\r\n\theight: 600px;\r\n\tfont-family: Menlo, Monaco, monospace;\r\n\tbackground: #FFF;\r\n\twhite-space: pre;\r\n\toverflow: auto;\r\n\tdisplay: block;\r\n\t/*rtl:ignore*/\r\n\tdirection: ltr;\r\n}\r\n\r\n#give-download-sysinfo {\r\n\tmargin: 0;\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// API\r\n//--------------------------------------------------------------\r\n\r\n#api {\r\n\t.tablenav .actions {\r\n\t\toverflow: visible;\r\n\t}\r\n}\r\n\r\na.give-delete {\r\n\tcolor: #a00;\r\n}\r\n\r\n//--------------------------------------------------------------\r\n// License\r\n//--------------------------------------------------------------\r\n.give-settings-wrap-licenses {\r\n\t.give-license-deactivate {\r\n\t\tmargin: 1px 0 0 10px;\r\n\t\theight: 30px;\r\n\t}\r\n\r\n\t.give-license-field {\r\n\t\tbackground: #FFF url('../images/close.png') no-repeat;\r\n\t\tbackground-position: 98.5% center;\r\n\t\tbackground-size: 18px;\r\n\t}\r\n\r\n\t.give-license-active, .give-license-active:focus {\r\n\t\tbackground-image: url('../images/tick.png');\r\n\t\tbackground-color: #FFF;\r\n\t\tbackground-repeat: no-repeat;\r\n\t\tbackground-position: 98.5% center;\r\n\t\toutline: none;\r\n\t\tbackground-size: 16px;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n}\r\n\r\n/* Addon grid design */\r\n.give-settings-page {\r\n\tmargin-top: 20px;\r\n\r\n\t.give-settings-wrap-licenses {\r\n\t\tdisplay: block;\r\n\t\tposition: relative;\r\n\t\tfloat: left;\r\n\t\twidth: 30.5%;\r\n\t\tmin-height: 180px;\r\n\t\tmargin: 20px 1% 20px 0;\r\n\t}\r\n\r\n\t.give-license-key {\r\n\t\tlabel {\r\n\t\t\tmargin: 0 0 0 10px;\r\n\t\t\tpadding: 10px 0;\r\n\t\t\tdisplay: block;\r\n\t\t\tfont-size: 14px;\r\n\t\t\tfont-weight: 600;\r\n\t\t\tcursor: default;\r\n\t\t}\r\n\t}\r\n\r\n\t.give-license-block {\r\n\t\tmargin: 0 10px;\r\n\t}\r\n\r\n\tinput[type=\"text\"].give-license-field,\r\n\tinput[type=\"password\"].give-license-field {\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.give-license-block input[type=\"submit\"] {\r\n\t\tposition: absolute;\r\n\t\ttop: 3px;\r\n\t\tright: 10px;\r\n\t\theight: 24px;\r\n\t\tline-height: 22px;\r\n\t\tpadding: 0 8px 1px;\r\n\t\tfont-size: 11px;\r\n\t}\r\n\r\n\t//License status notice.\r\n\t.give-license-status-notice {\r\n\t\tbackground: #fff;\r\n\t\tborder-left: 4px solid #fff;\r\n\t\t-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\r\n\t\tbox-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);\r\n\t\tmargin: 5px 0 2px;\r\n\t\tpadding: 1px 12px;\r\n\r\n\t\tp {\r\n\t\t\tpadding: 10px 0;\r\n\t\t\tmargin: 0;\r\n\t\t}\r\n\r\n\t\ta {\r\n\t\t\tcolor: #444;\r\n\t\t\tcursor: pointer;\r\n\t\t\t&:hover {\r\n\t\t\t\ttext-decoration: none;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-expires-soon {\r\n\t\tborder-color: #00a0d2;\r\n\t}\r\n\r\n\t//Inactive or Expired.\r\n\t.give-license-status-notice.give-inactive,\r\n\t.give-license-status-notice.give-license-expired {\r\n\t\tborder-color: #e24e4e;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-error,\r\n\t.give-license-status-notice.give-license-no_activations_left,\r\n\t.give-license-status-notice.give-license-missing,\r\n\t.give-license-status-notice.give-license-invalid,\r\n\t.give-license-status-notice.give-license-site_inactive,\r\n\t.give-license-status-notice.give-license-item_name_mismatch {\r\n\t\tborder-color: orange;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-lifetime-notice,\r\n\t.give-license-status-notice.give-license-expiration-date {\r\n\t\tborder-color: #46b450;\r\n\t}\r\n\r\n\t.give-license-status-notice.give-license-expires-soon a:hover,\r\n\t.give-license-status-notice.give-license-expired a:hover {\r\n\t\ttext-decoration: none;\r\n\t}\r\n}\r\n\r\n/* Responsive fixes: Addon grid design */\r\n@media screen and (max-width: 1100px) {\r\n\t.give-settings-page .give-settings-wrap-licenses {\r\n\t\twidth: 45%;\r\n\t\tmin-height: 150px;\r\n\t}\r\n}\r\n\r\n@media screen and (max-width: 600px) {\r\n\t.give-settings-page .give-settings-wrap-licenses {\r\n\t\twidth: 100%;\r\n\t\tmax-width: 320px;\r\n\t}\r\n}\r\n\r\n/* Tables */\r\n\r\n.give-table {\r\n\r\n\tthead {\r\n\t\tth {\r\n\t\t\tpadding: 8px 10px !important;\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\n//Fix double <hr>s for change to `give_title` in 1.3.5\r\n.give_settings .cmb-td hr + hr {\r\n\tdisplay: none;\r\n}\r\n\r\n//Set a min-height for TinyMCE so it's not too small when hidden in a tab and then revealed\r\n.post-type-give_forms .mce-container iframe, .post-type-give_forms .wp-editor-area {\r\n\tmin-height: 400px;\r\n}\r\n\r\n// Widget Page\r\n.give-field-description {\r\n\tcolor: #aaaaaa;\r\n\tfont-style: italic;\r\n\tmargin: 0;\r\n\tpadding-top: .5em;\r\n}\r\n\r\n// Setting page tab\r\nh2.give-nav-tab-wrapper {\r\n\toverflow: hidden;\r\n\theight: 35px;\r\n}\r\n\r\n@media screen and (max-width: 600px) {\r\n\t.give-nav-tab-wrapper {\r\n\t\tposition: relative;\r\n\t\tpadding-top:0 !important;\r\n\r\n\t\t> a {\r\n\t\t\twidth: 100%;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tmargin:0;\r\n\t\t\t&:hover {\r\n\t\t\t\tborder-bottom: 1px solid #ccc;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tdiv.give-sub-nav-tab-wrapper {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop:0;\r\n\t\t\tright:0;\r\n\r\n\t\t\t#give-show-sub-nav {\r\n\t\t\t\theight: 28px;\r\n\t\t\t\twidth: 30px;\r\n\t\t\t\tborder-radius: 0;\r\n\t\t\t\tmargin:0;\r\n\t\t\t\t> span.dashicons {\r\n\t\t\t\t\tmargin: 6px auto 0;\r\n\t\t\t\t\tdisplay: block;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tnav.give-sub-nav-tab {\r\n\t\t\t\ttop:35px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n}\r\n\r\n.give-sub-nav-tab-wrapper {\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n\tz-index: 9999;\r\n\tfloat: left;\r\n\r\n\tnav.give-sub-nav-tab {\r\n\t\tborder: 1px solid #ccc;\r\n\t\tborder-bottom: 0;\r\n\t\tposition: absolute;\r\n\t\ttop: 32px;\r\n\t\tright: 0;\r\n\r\n\t\ta {\r\n\t\t\tfloat: left;\r\n\t\t\tbackground: white;\r\n\t\t\tpadding: 6px 10px;\r\n\t\t\tclear: both;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tborder-bottom: 1px solid #ccc;\r\n\t\t\tmin-width: 170px;\r\n\t\t\tcolor: #555;\r\n\t\t\tfont-size: 14px;\r\n\t\t}\r\n\r\n\t\ta:hover {\r\n\t\t\tbackground: #e5e5e5;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// By default hide setting tab wrapper.\r\n.give-sub-nav-tab-wrapper{\r\n\tdisplay:none;\r\n}\r\n\r\n#give-show-sub-nav {\r\n\ttext-decoration: none;\r\n\tpadding: 3px 4px;\r\n\tborder-bottom: 1px solid #ccc;\r\n\tline-height: 0;\r\n\tbackground: white;\r\n\tborder-radius: 4px;\r\n margin-top:5px;\r\n\r\n\t> span.dashicons {\r\n font-size:16px;\r\n height:16px;\r\n width:16px;\r\n\t}\r\n}\r\n\r\n#give-show-sub-nav:hover, #give-show-sub-nav:active {\r\n\toutline: none;\r\n\tbox-shadow: inset 0px 0px 4px #ddd;\r\n}","/**\r\n * Give Payment History SCSS\r\n *\r\n * @description Payment History Styles\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n#give-payment-filters, .give-submit-wrap {\r\n\tclear: both;\r\n\tbackground: #f5f5f5;\r\n\tborder-color: #dfdfdf;\r\n\toverflow: auto;\r\n\tmargin: 8px 0;\r\n\tpadding: 12px;\r\n\tborder-width: 1px;\r\n\tborder-style: solid;\r\n\tfont-size: 13px;\r\n\tline-height: 2.1em;\r\n}\r\n\r\n#give-payment-filters {\r\n\tp {\r\n\t\tcolor: #777;\r\n\t}\r\n\tul.subsubsub {\r\n\t\tmargin-bottom: 8px;\r\n\t}\r\n\tlabel {\r\n\t\tfont-style: italic;\r\n\t\tmargin: 0 10px;\r\n\r\n\t\t&.give-start-date-label {\r\n\t\t\tmargin-left: 5px;\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n\r\n#give-payments-filter {\r\n\tul.subsubsub {\r\n\t\tmargin-bottom: 12px;\r\n\t}\r\n\t.tablenav.top {\r\n\t\tfloat: none;\r\n\t\t.bulkactions {\r\n\t\t\tmargin-top: 1px;\r\n\t\t\tpadding-top: 0;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.give-email-column-value {\r\n\t\tfont-size: 14px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t#the-list .check-column input {\r\n\t\tmargin-top: 1px;\r\n\t}\r\n\r\n\t.column-details {\r\n\t\twidth: 50px;\r\n\t}\r\n\r\n\t.column-amount {\r\n\t\twidth: 120px;\r\n\t}\r\n\r\n}\r\n\r\ntr.status-refunded td {\r\n\tbackground: #cecece;\r\n\tborder-top-color: #ccc;\r\n}\r\n\r\n.wp-list-table.forms th#date {\r\n\twidth: 140px;\r\n}\r\n\r\n.give-mobile-link {\r\n\tline-height: 32px;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.give-mobile-link img {\r\n\tmax-width: 80%;\r\n\theight: auto;\r\n\tfloat: left;\r\n}\r\n\r\n//------------------------------------\r\n// Status Colors\r\n//------------------------------------\r\n\r\n.give-donation-status {\r\n\t> span {\r\n\t\tdisplay: inline-block;\r\n\t\twidth: 12px;\r\n\t\theight: 12px;\r\n\t\tposition: relative;\r\n\t\ttop: 1px;\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t\tborder-radius: 50%;\r\n\t\tbackground: #888;\r\n\t\tline-height: 16px;\r\n\t}\r\n\r\n\t//Pending\r\n\t&.status-pending > span {\r\n\t\tbackground-color: $orange;\r\n\t}\r\n\r\n\t//Complete\r\n\t&.status-complete > span, &.status-publish > span {\r\n\t\tbackground-color: $status-complete;\r\n\t}\r\n\r\n\t//Refunded\r\n\t&.status-refunded > span {\r\n\t\tbackground-color: $status-default;\r\n\t}\r\n\r\n\t&.status-failed > span {\r\n\t\tbackground-color: $red;\r\n\t}\r\n\r\n\t&.status-abandoned > span {\r\n\t\tbackground-color: $dark;\r\n\t}\r\n\r\n\t&.status-revoked > span {\r\n\t\tbackground-color: $status-revoked;\r\n\t}\r\n\r\n\t&.status-subscription > span, &.status-renewal > span, &.status-give_subscription > span {\r\n\t\tbackground-color: $status-subscription;\r\n\t}\r\n\r\n}\r\n\r\n//Test Payment Label\r\n#test-payment-label {\r\n\t@include give-label();\r\n\tbackground-color: $orange;\r\n\tmargin: 0 15px;\r\n\tvertical-align: middle;\r\n}\r\n\r\n//ID & link field\r\n#give-payments-filter {\r\n\r\n\t.give-payment-id {\r\n\t\t@include give-label();\r\n\t\tfont-weight: normal;\r\n\t\t@extend .give-item-label-gray;\r\n\t}\r\n\r\n\t.column-details {\r\n\t\tpadding-right: 30px;\r\n\t}\r\n\r\n\t.give-donation-status {\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\r\n}\r\n\r\n//Payment View Metabox\r\n#give-order-update {\r\n\t.give-donation-status {\r\n\t\tdisplay: inline-block;\r\n\t\tfloat: none;\r\n\t\tmargin: 0 10px;\r\n\t\tposition: relative;\r\n\t\ttop: 3px;\r\n\t}\r\n}\r\n\r\n//Donation Column\r\n.column-donation_form {\r\n\t.donation-level-text-wrap {\r\n\t\tfont-style: italic;\r\n\t\tdisplay: block;\r\n\t}\r\n}\r\n\r\n/*---------------------\r\nResponsiveness\r\n---------------------------*/\r\n@media handheld, only screen and (max-width: 640px) {\r\n\t.wp-list-table.forms th {\r\n\t\twidth: auto !important;\r\n\t}\r\n}\r\n\r\n.download_page_give-payment-history .ui-dialog .ui-dialog-titlebar-close span {\r\n\tmargin-left: -8px;\r\n\tmargin-top: -8px;\r\n}\r\n\r\n/* Payment Details\r\n-------------------------------------------------------------- */\r\n.give-admin-box .label {\r\n\tfont-weight: 600;\r\n}\r\n\r\n.give-admin-box-inside {\r\n\tmargin: 0;\r\n\tpadding: 3px 10px;\r\n\tclear: both;\r\n\tborder-bottom: 1px solid #eee;\r\n}\r\n\r\n.give-admin-box-inside .strong {\r\n\tfont-weight: 600;\r\n}\r\n\r\n.give-payment-fees .fee-label {\r\n\tfont-weight: normal;\r\n\tcolor: #666;\r\n}\r\n\r\n.give-admin-box .right {\r\n\tfloat: right;\r\n}\r\n\r\n#give-order-update .inside,\r\n#give-order-details .inside {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n}\r\n\r\n#give-order-update input.give_datepicker {\r\n\twidth: 180px;\r\n}\r\n\r\n#give-order-update input[type=\"number\"].give-payment-time-hour,\r\n#give-order-update input[type=\"number\"].give-payment-time-min {\r\n\twidth: 50px;\r\n}\r\n\r\n.give-admin-box-inside:last-child {\r\n\tborder-bottom: 0;\r\n}\r\n\r\n#give-edit-order-form .data-payment-key {\r\n\tword-break: break-all;\r\n}\r\n\r\n.give-order-update-box #major-publishing-actions .button-secondary {\r\n\tmargin-right: 10px;\r\n}\r\n\r\n#give-donation-overview th {\r\n\ttext-align: left;\r\n}\r\n\r\n#give-donation-overview .give-select-chosen {\r\n\twidth: 196px;\r\n}\r\n\r\n#give-donation-overview ul,\r\n#give-order-address-country-wrap select,\r\n#give-donor-details .order-data-address input,\r\n#give-edit-order-form .column input,\r\n#give-donor-details .order-data-column p.data input {\r\n\tclear: both;\r\n\tdisplay: block;\r\n}\r\n\r\n.give-order-data input.small-text {\r\n\tmargin: 0;\r\n}\r\n\r\n#give-order-update span.label {\r\n\tdisplay: inline;\r\n\twidth: 50px;\r\n}\r\n\r\n.give-order-update-box .button-primary {\r\n\tmargin-right: 0;\r\n}\r\n\r\n#give-edit-order-form .column .description {\r\n\tpadding-right: 10px;\r\n}\r\n\r\n#give-edit-order-form .column,\r\n#give-donation-overview .row > ul > li,\r\n#give-donation-overview .inside > ul > li {\r\n\tdisplay: inline-block;\r\n\tposition: relative;\r\n\tvertical-align: top;\r\n}\r\n\r\n#give-donation-overview ul {\r\n\tfont-size: 0;\r\n\r\n\tli {\r\n\t\tfont-size: 13px;\r\n\r\n\t\t&.actions {\r\n\t\t\ttext-align: right;\r\n\t\t\tmin-width: 200px;\r\n\t\t}\r\n\r\n\t\t&.remove {\r\n\t\t\ttext-align: right;\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.row {\r\n\t\tpadding: 12px;\r\n\t\tborder-bottom: 1px solid #eee;\r\n\t}\r\n\r\n}\r\n\r\n#give-order-data .data span {\r\n\tcolor: #666;\r\n\tfont-weight: 600;\r\n}\r\n\r\ninput.give-price-field {\r\n\twidth: 80px;\r\n\tpadding: 3px 5px;\r\n}\r\n\r\n.give_forms_page_give-payment-history.js .postbox .hndle {\r\n\tcursor: default;\r\n}\r\n\r\n//------------------------------------------\r\n//Payment Notes Section\r\n//------------------------------------------\r\n\r\n#give-payment-notes {\r\n\ttextarea {\r\n\t\tmin-height: 150px;\r\n\t}\r\n\t#give-add-payment-note {\r\n\t\tmargin: 6px 0 15px;\r\n\t}\r\n\r\n}\r\n\r\n//------------------------------------------\r\n//Edit Order Form\r\n//------------------------------------------\r\n\r\n#give-billing-details {\r\n\r\n\t.column > div {\r\n\t\tmargin: 0 0 10px;\r\n\t}\r\n\r\n\tlabel {\r\n\t\tdisplay: block;\r\n\t}\r\n\r\n\t.column-container {\r\n\t\tpadding: 5px 0 10px;\r\n\t}\r\n\r\n\tinput[type=\"text\"] {\r\n\t\twidth: 95%;\r\n\t}\r\n\r\n\t.chosen-container {\r\n\t\twidth: 98% !important;\r\n\t}\r\n\r\n}\r\n\r\n//------------------------------------------\r\n//Responsive\r\n//------------------------------------------\r\n\r\n@media screen and (min-width: 1200px) {\r\n\t#give-edit-order-form .column {\r\n\t\twidth: 33%;\r\n\t}\r\n\r\n\t#give-donation-overview.columns-4 li.actions {\r\n\t\twidth: 25%;\r\n\t\tmargin-top: 0;\r\n\t\tmargin-right: 0;\r\n\t}\r\n\r\n}\r\n\r\n@media screen and (max-width: 1199px) {\r\n\t#give-edit-order-form .column {\r\n\t\twidth: 49%;\r\n\t}\r\n}\r\n\r\n@media screen and (max-width: 782px) {\r\n\t.order-data-column input[type=\"email\"] {\r\n\t\tpadding: 6px 10px;\r\n\t}\r\n}\r\n\r\n//------------------------------------------\r\n//Donation Details\r\n//------------------------------------------\r\n#give-donor-details .inside, #give-donation-overview .inside {\r\n\tmargin-top: 0;\r\n}\r\n\r\n.give_forms_page_give-payment-history #give-dashboard-widgets-wrap #side-sortables {\r\n\tpadding-top: 0;\r\n}\r\n\r\n\r\n//------------------------------------------\r\n// Ajax chosen select field\r\n//------------------------------------------\r\n.give-select-chosen{\r\n\t.spinner {\r\n\t\tposition: absolute;\r\n\t\tright: 5px;\r\n\t\ttop: 2px;\r\n\t\tz-index: 999;\r\n\t}\r\n}\r\n\r\n.give-select-chosen-ajax {\r\n\t// Show spinner.\r\n\t.spinner{\r\n\t\tvisibility: visible;\r\n\t}\r\n\r\n\t// Hide search icon.\r\n\t.chosen-search input[type=\"text\"]{\r\n\t\tbackground-image: none !important;\r\n\t}\r\n}\r\n\r\n.give-select-chosen-ajax.chosen-container-single .chosen-search input[type=\"text\"]{\r\n\tbackground-image: none !important;\r\n}","/**\n * Give Admin Dashboard SCSS\n *\n * @description Styles the Give dashboard widget\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n.give-dashboard-widget {\n\n .give-dashboard-today {\n\ttext-align: center;\n\n\t.give-dashboard-date-today {\n\t margin: 10px 0 0;\n\t padding: 0;\n\t}\n\n\t.give-dashboard-happy-day {\n\t padding: 3px;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-today-earnings {\n\t font-size: 42px;\n\t color: #4ead61;\n\t font-weight: bold;\n\t margin: 15px 0 0;\n\t line-height: 1;\n\t}\n\n\t.give-donations-today {\n\t font-size: 18px;\n\t font-weight: bold;\n\t margin: 0 0 30px;\n\t padding: 4px 0 1px;\n\t}\n\n\t.give-last-seven {\n\t font-size: 14px;\n\t font-weight: bold;\n\t padding: 0;\n\t margin: 0 0 30px;\n\t}\n\n }\n\n //Table Stats\n .give-table-stats {\n\twidth: 100%;\n\ttext-align: center;\n\tmargin: 0;\n\ttable-layout: fixed;\n\tborder-top: 1px solid #ececec;\n\tborder-spacing: 0;\n\n\t.give-dashboard-stat-total, .give-dashboard-stat-total-label {\n\t padding: 0;\n\t margin: 0;\n\t}\n\n\t.give-dashboard-stat-total {\n\t color: #4ead61;\n\t font-weight: bold;\n\t font-size: 16px;\n\t}\n\n }\n\n}\n\n//Fancy borders\n#give_dashboard_sales {\n\n > .inside {\n\tpadding: 0;\n }\n\n .give-table-stats {\n\ttd {\n\t padding: 10px 0;\n\t}\n\ttd:first-of-type {\n\t border-right: 1px solid #ececec;\n\t}\n\ttr#give-table-stats-tr-1 td {\n\t border-bottom: 1px solid #ececec;\n\t}\n }\n\n}\n\n//At a Glance Widget\n#dashboard_right_now {\n .give-forms-count:before {\n\t@include iconstyle();\n\tfont-size: 18px;\n\twidth: 18px;\n\theight: 18px;\n\tcontent: \"\\e800\";\n }\n}","/**\n * Give Forms SCSS\n *\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\n*/\n\n//--------------------------------------------------------------\n// Donors Listing Page Style\n//--------------------------------------------------------------\n.give_forms_page_give-donors {\n .wrap > h2 {\n\tmargin-bottom: 15px;\n }\n\n .nav-tab-wrapper .dashicons {\n position: relative;\n top:2px;\n margin: 0 3px 0 0;\n }\n\n #give-donors-filter {\n\tposition: relative;\n\tp.search-box {\n\t float: left;\n\t margin: 0;\n\t}\n }\n\n .tablenav.top {\n\tfloat: right;\n\tclear: none;\n }\n}\n\n//--------------------------------------------------------------\n// Donor Styles\n//--------------------------------------------------------------\n#give-customer-card-wrapper {\n margin-left: -1px;\n z-index: 2;\n min-height: 200px;\n\n\n input {\n\tfont-weight: normal;\n }\n\n .customer-section {\n\tborder-bottom: 1px solid #eee;\n\tmargin-bottom: 10px;\n }\n\n .customer-section table {\n\tmargin-bottom: 0;\n }\n\n > div:first-child {\n\tpadding-top: 20px;\n }\n\n > div:last-child {\n\tpadding-bottom: 20px;\n\tborder: none;\n }\n\n //AVATAR\n .avatar-wrap {\n\tpadding: 0 15px 15px 0;\n\ttext-align: center;\n\tfloat: left;\n\n\timg {\n\t border-radius: 3px;\n\t}\n\n }\n\n a.delete {\n\ttext-decoration: none;\n\tcolor: #ff0000;\n\tmargin-right: 5px;\n }\n\n //Donor Header (non-avatar content)\n .donor-bio-header {\n\n\t.customer-since {\n\t margin: 10px 0;\n\t font-size: 16px;\n\t}\n\n\t.customer-id {\n display: inline-block;\n\t font-size: 24px;\n\t font-weight: 600;\n\t margin-right: 10px;\n\t}\n\n .customer-name-wrap {\n display: inline-block;\n }\n\n\t.customer-edit-link {\n\t margin-bottom: 15px;\n\t}\n\n }\n\n}\n\n.customer-main-wrapper {\n clear: both;\n margin: 0 0 20px;\n\n @media(max-width: 655px) {\n\twidth: 100%;\n }\n\n table {\n\tmargin: 0;\n }\n\n input {\n\twidth: 200px;\n }\n\n}\n\n//Donor Summary\n#donor-summary {\n padding: 0 20px;\n\n &:after {\n\tfont-family: \"dashicons\";\n\tcontent: \"\\f110\";\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tfont-size: 100px;\n\tcolor: #F0F0F0;\n\tz-index: 0;\n }\n\n}\n#give-customer-card-wrapper .customer-address-wrapper {\n width: 202px;\n\n\tspan[data-key=\"line2\"] {\n\t\tdisplay: table;\n\t\tclear: both;\n\t}\n}\n\n#give-customer-card-wrapper .customer-address-wrapper select {\n width: 200px;\n}\n\n#give-customer-card-wrapper .customer-info {\n min-height: 185px;\n}\n\n#give-customer-card-wrapper .info-wrapper {\n min-height: 125px;\n}\n\n.customer-info .customer-name {\n font-size: 24px;\n font-weight: 600;\n}\n\n.disconnect-user a {\n font-size: 12px;\n font-weight: normal;\n text-decoration: none;\n}\n\n#customer-edit-actions {\n text-align: center;\n margin-bottom: 20px;\n line-height: 28px;\n}\n\n#customer-edit-actions .button-secondary {\n margin-right: 10px;\n}\n\n#give-customer-card-wrapper .edit-item {\n display: none;\n}\n\n#give-customer-card-wrapper .give_user_search_results {\n left: 1px;\n top: 16px;\n}\n\n#give-customer-card-wrapper .give_user_search_results ul {\n width: 200px\n}\n\n#customer-stats-wrapper {\n margin: 0 auto;\n text-align: center;\n padding: 15px;\n ul {\n\tmargin: 0;\n\tpadding: 0;\n\toverflow: hidden;\n\tli {\n\t width: 50%;\n\t float: left;\n\t line-height: 22px;\n\t font-size: 14px;\n\t margin: 0;\n\t}\n\n }\n\n a {\n\ttext-decoration: none;\n }\n}\n\n#customer-stats-wrapper .dashicons {\n color: #888;\n}\n\n#customer-tables-wrapper table {\n width: 100%;\n text-align: center;\n}\n\n#customer-tables-wrapper th {\n text-align: center;\n}\n\n#customer-tables-wrapper .donations tr > th:first-child,\n#customer-tables-wrapper .donations tr > td:first-child,\n#customer-tables-wrapper .emails tr > th:first-child,\n#customer-tables-wrapper .emails tr > td:first-child {\n text-align: left;\n}\n\n#customer-tables-wrapper .donations tr > td:only-child {\n text-align: center;\n}\n\n#customer-notes-wrapper {\n min-height: 50px;\n}\n\n.customer-notes-header span, .customer-notes-header img {\n font-weight: 600;\n line-height: 30px;\n vertical-align: middle;\n}\n\n.customer-note-input {\n width: 100%;\n margin-bottom: 5px;\n}\n\n//Customer Notes\n#give-customer-notes {\n div:nth-of-type(even) {\n\tbackground-color: #f9f9f9;\n }\n .customer-note-wrapper {\n\tborder-bottom: 1px solid #f9f9f9;\n\tmin-height: 38px;\n\tpadding: 0;\n\n\t.note-content-wrap {\n\t padding: 10px 12px;\n\t line-height: 20px;\n\t font-size: 14px;\n\t}\n\n }\n\n .give-no-customer-notes {\n\ttext-align: center;\n\tpadding: 20px;\n }\n\n}\n\n.customer-note-wrapper span {\n display: block;\n}\n\n.delete-customer {\n text-align: center;\n}\n\n","/**\r\n * Give Admin Buttons SCSS\r\n *\r\n * @package Give\r\n * @subpackage SCSS/Admin\r\n * @copyright Copyright (c) 2016, WordImpress\r\n * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License\r\n*/\r\n\r\n/*=Give Shortcode Button\r\n--------------------------------------*/\r\n\r\n@media screen and (max-width: 782px) {\r\n #wp-content-media-buttons a.give-thickbox {\r\n padding: 6px 14px;\r\n line-height: normal;\r\n font-size: 14px;\r\n height: auto;\r\n }\r\n .wp-media-buttons span#give-media-button {\r\n margin-top: 0 !important;\r\n margin-left: 2px !important;\r\n }\r\n}\r\n\r\n/*=Button in shortcode tinymce dialog\r\n--------------------------------------*/\r\n\r\n.mce-primary.mce-give-primary button {\r\n padding-right: 10px;\r\n padding-left: 10px;\r\n}\r\n\r\n/*=Admin Buttons w/ Icons\r\n--------------------------------------*/\r\n\r\n/* extends .wp-core-ui .button */\r\n.wp-core-ui .give-admin-button {\r\n padding-left: 7px;\r\n padding-right: 7px;\r\n}\r\n\r\n/* matches style of Add Media and Give Shortcodes buttons */\r\n.give-admin-button-icon {\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n vertical-align: text-top;\r\n margin: 0 2px;\r\n\r\n &:before {\r\n font: 400 18px/1 dashicons;\r\n speak: none;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n }\r\n\r\n /* specific DashIcon styles */\r\n &-update:before {\r\n content: \"\\f463\";\r\n }\r\n}\r\n","\n/* =Primary button in shortcode tinymce dialog\n-------------------------------------------------------------- */\n\n.mce-primary.mce-sc-primary button {\n\tpadding-right: 10px;\n\tpadding-left: 10px;\n}\n\n.mce-sc-popup {\n\ta {\n\t\ttext-decoration: underline;\n\t}\n\tp {\n\t\tmargin-bottom: 1em;\n\t\t&.strong {\n\t\t\tfont-weight: 600;\n\t\t}\n\t\t&.no-margin {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t&.margin-top {\n\t\t\tmargin-top: 1em;\n\t\t}\n\t}\n\t// Crop text which overflow in listbox.\n\t.mce-listbox button{\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden !important;\n\t}\n}\n\n/* =Shortcode button above wp_editor\n-------------------------------------------------------------- */\n\n@media screen and (max-width: 782px) {\n\t.wp-media-buttons button.sc-button span {\n\t\twidth: 18px !important;\n\t}\n}\n\n.wp-media-buttons {\n\tbutton.sc-button {\n\t\toutline: none;\n\t\tpadding-left: 5px;\n\t\tmargin-right: 0;\n\n\t\t&:active {\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t}\n}\n\nbutton.sc-button {\n\t&:after {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\ttop: -1px;\n\t\tcontent: '';\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-top: 6px solid #777;\n\t\tborder-right: 4px solid transparent;\n\t\tborder-left: 4px solid transparent;\n\t\tmargin: 0 3px 0 6px;\n\t}\n\n\t&.active:after {\n\t\ttop: -2px;\n\t\tborder-top: 0;\n\t\tborder-bottom: 6px solid #32373c;\n\t}\n}\n\n/* =Shortcode button dropdown menu\n-------------------------------------------------------------- */\n\n.sc-wrap {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin-right: 5px;\n}\n\ndiv.sc-menu {\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 100%;\n\tleft: 0;\n\tmin-width: 100%;\n\tmax-height: 410px;\n\tfont-size: 14px;\n\tbox-shadow: 0 3px 5px rgba( 0, 0, 0, 0.2 );\n\tbackground: #fff;\n\tborder: 1px solid rgba( 0, 0, 0, 0.15 );\n\toverflow: auto;\n\toverflow-x: hidden;\n\tpadding: 5px 0;\n\tmargin: -2px 0 0;\n\tz-index: 1002;\n}\n\ndiv.sc-shortcode {\n\tdisplay: block;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\tpadding: 6px 12px;\n\tmargin-bottom: 2px;\n\n\t&:hover {\n\t\tcolor: #fff;\n\t}\n}\n\n/* =Shortcode tinymce dialog backdrop\n-------------------------------------------------------------- */\n\n#mce-modal-block.mce-reset.mce-fade.mce-in {\n\topacity: 0.7;\n\tfilter: alpha(opacity=70);\n}\n","/**\n * Give System Info SCSS\n *\n * @description System Info Styles\n * @package Give\n * @subpackage SCSS/Admin\n * @copyright Copyright (c) 2016, WordImpress\n * @license https://opensource.org/licenses/gpl-3.0/ GNU Public License\n *\n * The following code is a derivative work of the code from the WooCommerce\n * plugin, which is licensed GPLv3. This code therefore is also licensed under\n * the terms of the GNU Public License, version 3.\n *\n * Copyright (c) 2015 WooThemes\n * Copyright (c) 2016 WordImpress, LLC\n*/\n\n.give-status-table {\n margin-bottom: 1em;\n\n h2 {\n font-size: 14px;\n margin: 0;\n }\n\n tr {\n &:nth-child(2n) {\n th,\n td {\n background: #fcfcfc;\n }\n }\n }\n\n th {\n font-weight: 700;\n padding: 9px;\n }\n\n td:first-child {\n width: 33%;\n }\n\n td.help {\n width: 1em;\n }\n\n td {\n padding: 9px;\n font-size: 1.1em;\n\n mark {\n background: transparent none;\n }\n\n mark.yes {\n color: $green;\n }\n\n mark.no {\n color: #999;\n }\n\n mark.error {\n color: $red;\n }\n\n ul {\n margin: 0;\n }\n }\n}\n\n.wrap div.give-debug-report-wrapper {\n margin-top: 1em;\n}\n\n.give-debug-report {\n display: none;\n margin: 10px 0;\n padding: 0;\n position: relative;\n\n textarea {\n font-family: monospace;\n width: 100%;\n margin: 0;\n height: 300px;\n padding: 20px;\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n resize: none;\n font-size: 12px;\n line-height: 20px;\n outline: 0;\n }\n}\n"],"mappings":"AAAA;;;;;;;;EAQE;ACRF;;GAEG;AAeH,AAAA,cAAc,CAAC;EAbb,KAAK,EAAE,CAAE,GAeV;EAFD,AAAA,cAAc,AAXX,OAAO,EAWV,AAAA,cAAc,AAVX,MAAM,CAAC;IACN,OAAO,EAAE,GAAI;IACb,OAAO,EAAE,KAAM,GAChB;EAOH,AAAA,cAAc,AALX,MAAM,CAAC;IACN,KAAK,EAAE,IAAK,GACb;;AAOH;;;GAGG;AAOH;;GAEG;AA+BH,AAAA,gBAAgB,CAAC;EAtBf,OAAO,EAAE,cAAe;EACxB,SAAS,EAAE,IAAK;EAChB,WAAW,EAAE,CAAE;EACf,KAAK,EAAE,IAAK;EACZ,UAAU,EAAE,MAAO;EACnB,WAAW,EAAE,MAAO;EACpB,cAAc,EAAE,QAAS;EACzB,aAAa,EAAE,KAAM,GAiBtB;EAFD,AAAA,gBAAgB,AAbb,MAAM,CAAC;IACN,KAAK,EAAC,IAAK;IACX,eAAe,EAAE,IAAK,GACvB;;AAcH,AAAA,qBAAqB,EWsFrB,AXtFA,qBWsFqB,CAEpB,gBAAgB,CXxFK;EAVpB,gBAAgB,EAAE,OAAQ,GAY3B;;AAED,AAAA,uBAAuB,CAAC;EAXtB,gBAAgB,EAAE,OAAQ,GAa3B;;AAGD,AAAA,gBAAgB,CAAC;EAnCf,OAAO,EAAE,cAAe;EACxB,SAAS,EAAE,IAAK;EAChB,WAAW,EAAE,CAAE;EACf,KAAK,EAAE,IAAK;EACZ,UAAU,EAAE,MAAO;EACnB,WAAW,EAAE,MAAO;EACpB,cAAc,EAAE,QAAS;EACzB,aAAa,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AE,CAAC;MACD,MAAM,EAAE,CAAE,GACX;;AAIL,AAAS,KAAJ,CAAC,GAAG,AAAA,0BAA0B,CAAC;EAClC,UAAU,EAAE,GAAI,GACjB;;AAED,AAAA,kBAAkB,CAAC;EACjB,OAAO,EAAE,IAAK;EACd,MAAM,EAAE,MAAO;EACf,OAAO,EAAE,CAAE;EACX,QAAQ,EAAE,QAAS,GAgBpB;EApBD,AAME,kBANgB,CAMhB,QAAQ,CAAC;IACP,WAAW,EAAE,SAAU;IACvB,KAAK,EAAE,IAAK;IACZ,MAAM,EAAE,CAAE;IACV,MAAM,EAAE,KAAM;IACd,OAAO,EAAE,IAAK;IACd,kBAAkB,EAAE,CAAE;IACtB,qBAAqB,EAAE,CAAE;IACzB,aAAa,EAAE,CAAE;IACjB,MAAM,EAAE,IAAK;IACb,SAAS,EAAE,IAAK;IAChB,WAAW,EAAE,IAAK;IAClB,OAAO,EAAE,CAAE,GACZ","names":[]}
|
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
-
* Version: 1.8.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
@@ -268,7 +268,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
268 |
|
269 |
// Plugin version
|
270 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
271 |
-
define( 'GIVE_VERSION', '1.8.
|
272 |
}
|
273 |
|
274 |
// Plugin Folder Path
|
@@ -372,9 +372,9 @@ if ( ! class_exists( 'Give' ) ) :
|
|
372 |
require_once GIVE_PLUGIN_DIR . 'includes/emails/template.php';
|
373 |
require_once GIVE_PLUGIN_DIR . 'includes/emails/actions.php';
|
374 |
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
|
379 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
380 |
|
@@ -397,18 +397,22 @@ if ( ! class_exists( 'Give' ) ) :
|
|
397 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customers.php';
|
398 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customer-functions.php';
|
399 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customer-actions.php';
|
|
|
400 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/metabox.php';
|
401 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/class-metabox-form-data.php';
|
402 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/dashboard-columns.php';
|
403 |
|
404 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
|
|
|
|
|
|
|
|
405 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/reports.php';
|
406 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/tools.php';
|
407 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/tools/tools-actions.php';
|
408 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/pdf-reports.php';
|
409 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/class-give-graph.php';
|
410 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/graphing.php';
|
411 |
|
|
|
|
|
412 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/abstract-shortcode-generator.php';
|
413 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/class-shortcode-button.php';
|
414 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-form.php';
|
@@ -467,8 +471,8 @@ endif; // End if class_exists check
|
|
467 |
|
468 |
|
469 |
/**
|
470 |
-
* Start Give
|
471 |
-
*
|
472 |
* The main function responsible for returning the one true Give instance to functions everywhere.
|
473 |
*
|
474 |
* Use this function like you would a global variable, except without needing
|
@@ -477,7 +481,7 @@ endif; // End if class_exists check
|
|
477 |
* Example: <?php $give = Give(); ?>
|
478 |
*
|
479 |
* @since 1.0
|
480 |
-
* @return object|Give
|
481 |
*/
|
482 |
function Give() {
|
483 |
return Give::instance();
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
+
* Version: 1.8.8
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
268 |
|
269 |
// Plugin version
|
270 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
271 |
+
define( 'GIVE_VERSION', '1.8.8' );
|
272 |
}
|
273 |
|
274 |
// Plugin Folder Path
|
372 |
require_once GIVE_PLUGIN_DIR . 'includes/emails/template.php';
|
373 |
require_once GIVE_PLUGIN_DIR . 'includes/emails/actions.php';
|
374 |
|
375 |
+
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
376 |
+
require_once GIVE_PLUGIN_DIR . 'includes/class-give-cli-commands.php';
|
377 |
+
}
|
378 |
|
379 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
380 |
|
397 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customers.php';
|
398 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customer-functions.php';
|
399 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/customers/customer-actions.php';
|
400 |
+
|
401 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/metabox.php';
|
402 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/class-metabox-form-data.php';
|
403 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/forms/dashboard-columns.php';
|
404 |
|
405 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/export-functions.php';
|
406 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-export.php';
|
407 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/export-actions.php';
|
408 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/pdf-reports.php';
|
409 |
+
|
410 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/reports.php';
|
|
|
|
|
|
|
411 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/class-give-graph.php';
|
412 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/graphing.php';
|
413 |
|
414 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/tools-actions.php';
|
415 |
+
|
416 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/abstract-shortcode-generator.php';
|
417 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/class-shortcode-button.php';
|
418 |
require_once GIVE_PLUGIN_DIR . 'includes/admin/shortcodes/shortcode-give-form.php';
|
471 |
|
472 |
|
473 |
/**
|
474 |
+
* Start Give
|
475 |
+
*
|
476 |
* The main function responsible for returning the one true Give instance to functions everywhere.
|
477 |
*
|
478 |
* Use this function like you would a global variable, except without needing
|
481 |
* Example: <?php $give = Give(); ?>
|
482 |
*
|
483 |
* @since 1.0
|
484 |
+
* @return object|Give
|
485 |
*/
|
486 |
function Give() {
|
487 |
return Give::instance();
|
includes/actions.php
CHANGED
@@ -104,7 +104,7 @@ function give_connect_donor_to_wpuser( $user_id, $user_data ){
|
|
104 |
// Update user_id meta in payments.
|
105 |
if( ! empty( $donor->payment_ids ) && ( $donations = explode( ',', $donor->payment_ids ) ) ) {
|
106 |
foreach ( $donations as $donation ) {
|
107 |
-
|
108 |
}
|
109 |
}
|
110 |
}
|
104 |
// Update user_id meta in payments.
|
105 |
if( ! empty( $donor->payment_ids ) && ( $donations = explode( ',', $donor->payment_ids ) ) ) {
|
106 |
foreach ( $donations as $donation ) {
|
107 |
+
give_update_meta( $donation, '_give_payment_user_id', $user_id );
|
108 |
}
|
109 |
}
|
110 |
}
|
includes/admin/admin-actions.php
CHANGED
@@ -140,3 +140,39 @@ function give_redirect_to_clean_url_admin_pages() {
|
|
140 |
}
|
141 |
|
142 |
add_action( 'admin_init', 'give_redirect_to_clean_url_admin_pages' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
}
|
141 |
|
142 |
add_action( 'admin_init', 'give_redirect_to_clean_url_admin_pages' );
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Hide License Notice Shortly.
|
146 |
+
*
|
147 |
+
* This code is used with AJAX call to hide license notice for a short period of time
|
148 |
+
*
|
149 |
+
* @since 1.8.9
|
150 |
+
*
|
151 |
+
* @return void
|
152 |
+
*/
|
153 |
+
function give_hide_license_notice() {
|
154 |
+
|
155 |
+
if ( ! isset( $_POST['_give_hide_license_notices_shortly'] ) ) {
|
156 |
+
die();
|
157 |
+
}
|
158 |
+
|
159 |
+
$current_user = wp_get_current_user();
|
160 |
+
|
161 |
+
// Get notice id.
|
162 |
+
$notice_id = sanitize_text_field( $_POST['_give_hide_license_notices_shortly'] );
|
163 |
+
|
164 |
+
// Transient key name.
|
165 |
+
$transient_key = "_give_hide_license_notices_shortly_{$current_user->ID}_{$notice_id}";
|
166 |
+
|
167 |
+
if ( Give_Cache::get( $transient_key, true ) ) {
|
168 |
+
return;
|
169 |
+
}
|
170 |
+
|
171 |
+
// Hide notice for 24 hours.
|
172 |
+
Give_Cache::set( $transient_key, true, DAY_IN_SECONDS, true );
|
173 |
+
|
174 |
+
die();
|
175 |
+
|
176 |
+
}
|
177 |
+
|
178 |
+
add_action( 'wp_ajax_give_hide_license_notice', 'give_hide_license_notice' );
|
includes/admin/admin-pages.php
CHANGED
@@ -403,8 +403,6 @@ function give_reports_page_pages( $settings ) {
|
|
403 |
// Gateways.
|
404 |
include( 'reporting/class-settings-gateways.php' ),
|
405 |
|
406 |
-
// Export.
|
407 |
-
include( 'reporting/class-settings-export.php' ),
|
408 |
);
|
409 |
|
410 |
// Output.
|
@@ -434,6 +432,10 @@ function give_tools_page_pages( $settings ) {
|
|
434 |
|
435 |
// Data.
|
436 |
include( 'tools/class-settings-data.php' ),
|
|
|
|
|
|
|
|
|
437 |
);
|
438 |
|
439 |
// Output.
|
403 |
// Gateways.
|
404 |
include( 'reporting/class-settings-gateways.php' ),
|
405 |
|
|
|
|
|
406 |
);
|
407 |
|
408 |
// Output.
|
432 |
|
433 |
// Data.
|
434 |
include( 'tools/class-settings-data.php' ),
|
435 |
+
|
436 |
+
// Export.
|
437 |
+
include( 'tools/class-settings-export.php' ),
|
438 |
+
|
439 |
);
|
440 |
|
441 |
// Output.
|
includes/admin/class-addon-activation-banner.php
CHANGED
@@ -71,7 +71,11 @@ class Give_Addon_Activation_Banner {
|
|
71 |
add_action( 'admin_notices', array( $this, 'give_addon_activation_admin_notice' ) );
|
72 |
|
73 |
// File path of addon must be included in banner detail other addon activate meta will not delete.
|
74 |
-
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
|
@@ -312,19 +316,23 @@ class Give_Addon_Activation_Banner {
|
|
312 |
$file_name = current( explode( '/', $file_path ) );
|
313 |
}
|
314 |
|
|
|
|
|
|
|
|
|
315 |
foreach ( $active_plugins as $plugin ) {
|
316 |
if ( false !== strpos( $plugin, $file_name ) ) {
|
317 |
$file_name = $plugin;
|
318 |
break;
|
319 |
}
|
320 |
}
|
321 |
-
}
|
322 |
-
throw new Exception( __( "File path must be added
|
323 |
}
|
324 |
|
325 |
// Check plugin path calculated by addon file path.
|
326 |
-
if ( empty( $file_name ) ) {
|
327 |
-
throw new Exception( __( "Empty
|
328 |
}
|
329 |
|
330 |
} catch ( Exception $e ) {
|
71 |
add_action( 'admin_notices', array( $this, 'give_addon_activation_admin_notice' ) );
|
72 |
|
73 |
// File path of addon must be included in banner detail other addon activate meta will not delete.
|
74 |
+
$file_name = $this->get_plugin_file_name();
|
75 |
+
|
76 |
+
if ( ! empty( $file_name ) ) {
|
77 |
+
add_action( 'deactivate_' . $file_name, array( $this, 'remove_addon_activate_meta' ) );
|
78 |
+
}
|
79 |
}
|
80 |
|
81 |
|
316 |
$file_name = current( explode( '/', $file_path ) );
|
317 |
}
|
318 |
|
319 |
+
if ( empty( $file_name ) ) {
|
320 |
+
return false;
|
321 |
+
}
|
322 |
+
|
323 |
foreach ( $active_plugins as $plugin ) {
|
324 |
if ( false !== strpos( $plugin, $file_name ) ) {
|
325 |
$file_name = $plugin;
|
326 |
break;
|
327 |
}
|
328 |
}
|
329 |
+
} elseif ( WP_DEBUG ) {
|
330 |
+
throw new Exception( __( "File path must be added within the {$this->banner_details['name']} add-on in the banner details.", 'give' ) );
|
331 |
}
|
332 |
|
333 |
// Check plugin path calculated by addon file path.
|
334 |
+
if ( empty( $file_name ) && WP_DEBUG ) {
|
335 |
+
throw new Exception( __( "Empty add-on plugin path for {$this->banner_details['name']} add-on.", 'give' ) );
|
336 |
}
|
337 |
|
338 |
} catch ( Exception $e ) {
|
includes/admin/class-admin-settings.php
CHANGED
@@ -715,14 +715,27 @@ if ( ! class_exists( 'Give_Admin_Settings' ) ) :
|
|
715 |
|
716 |
// Custom: Log field.
|
717 |
case 'logs' :
|
718 |
-
|
719 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
echo $description;
|
721 |
break;
|
722 |
|
723 |
-
// Custom:
|
724 |
case 'data' :
|
725 |
-
|
|
|
|
|
726 |
echo $description;
|
727 |
break;
|
728 |
|
@@ -734,7 +747,7 @@ if ( ! class_exists( 'Give_Admin_Settings' ) ) :
|
|
734 |
<?php
|
735 |
echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] )
|
736 |
. '" target="_blank">'
|
737 |
-
. sprintf( esc_html__( 'Need Help? See docs on "%s"' ), $value['title'] )
|
738 |
. '<span class="dashicons dashicons-editor-help"></span></a></p>';
|
739 |
?>
|
740 |
</td>
|
715 |
|
716 |
// Custom: Log field.
|
717 |
case 'logs' :
|
718 |
+
|
719 |
+
include GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/logs.php';
|
720 |
+
|
721 |
+
// Get current section.
|
722 |
+
$current_section = $_GET['section'] = give_get_current_setting_section();
|
723 |
+
|
724 |
+
/**
|
725 |
+
* Fires the in report page logs view.
|
726 |
+
*
|
727 |
+
* @since 1.0
|
728 |
+
*/
|
729 |
+
do_action( "give_logs_view_{$current_section}" );
|
730 |
+
|
731 |
echo $description;
|
732 |
break;
|
733 |
|
734 |
+
// Custom: Data field.
|
735 |
case 'data' :
|
736 |
+
|
737 |
+
include GIVE_PLUGIN_DIR . 'includes/admin/tools/views/html-admin-page-data.php';
|
738 |
+
|
739 |
echo $description;
|
740 |
break;
|
741 |
|
747 |
<?php
|
748 |
echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] )
|
749 |
. '" target="_blank">'
|
750 |
+
. sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] )
|
751 |
. '<span class="dashicons dashicons-editor-help"></span></a></p>';
|
752 |
?>
|
753 |
</td>
|
includes/admin/class-api-keys-table.php
CHANGED
@@ -238,7 +238,7 @@ class Give_API_Keys_Table extends WP_List_Table {
|
|
238 |
* @return void
|
239 |
*/
|
240 |
function bulk_actions( $which = '' ) {
|
241 |
-
// These aren't really bulk actions but this outputs the markup in the right place
|
242 |
static $give_api_is_bottom;
|
243 |
|
244 |
if ( $give_api_is_bottom ) {
|
@@ -247,8 +247,15 @@ class Give_API_Keys_Table extends WP_List_Table {
|
|
247 |
?>
|
248 |
<input type="hidden" name="give_action" value="process_api_key"/>
|
249 |
<input type="hidden" name="give_api_process" value="generate"/>
|
250 |
-
<?php wp_nonce_field( 'give-api-nonce' );
|
251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
<?php submit_button( esc_html__( 'Generate New API Keys', 'give' ), 'secondary', 'submit', false ); ?>
|
253 |
<?php
|
254 |
$give_api_is_bottom = true;
|
238 |
* @return void
|
239 |
*/
|
240 |
function bulk_actions( $which = '' ) {
|
241 |
+
// These aren't really bulk actions but this outputs the markup in the right place.
|
242 |
static $give_api_is_bottom;
|
243 |
|
244 |
if ( $give_api_is_bottom ) {
|
247 |
?>
|
248 |
<input type="hidden" name="give_action" value="process_api_key"/>
|
249 |
<input type="hidden" name="give_api_process" value="generate"/>
|
250 |
+
<?php wp_nonce_field( 'give-api-nonce' );
|
251 |
+
/**
|
252 |
+
* API Key user search.
|
253 |
+
*/
|
254 |
+
$args = array(
|
255 |
+
'id' => 'give-api-user-search',
|
256 |
+
'name' => 'user_id',
|
257 |
+
);
|
258 |
+
echo Give()->html->ajax_user_search($args); ?>
|
259 |
<?php submit_button( esc_html__( 'Generate New API Keys', 'give' ), 'secondary', 'submit', false ); ?>
|
260 |
<?php
|
261 |
$give_api_is_bottom = true;
|
includes/admin/class-give-settings.php
CHANGED
@@ -1120,27 +1120,63 @@ function give_cmb2_get_post_options( $query_args, $force = false ) {
|
|
1120 |
*/
|
1121 |
function give_get_featured_image_sizes() {
|
1122 |
global $_wp_additional_image_sizes;
|
|
|
1123 |
$sizes = array();
|
1124 |
$get_sizes = get_intermediate_image_sizes();
|
|
|
1125 |
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
}
|
1130 |
|
1131 |
foreach ( $get_sizes as $_size ) {
|
1132 |
|
1133 |
-
|
1134 |
-
|
|
|
|
|
|
|
1135 |
} elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
|
1136 |
-
$sizes[ $_size ]
|
|
|
|
|
|
|
|
|
|
|
1137 |
}
|
|
|
|
|
|
|
1138 |
}
|
1139 |
|
1140 |
return apply_filters( 'give_get_featured_image_sizes', $sizes );
|
1141 |
}
|
1142 |
|
1143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1144 |
/**
|
1145 |
* Give License Key Callback
|
1146 |
*
|
1120 |
*/
|
1121 |
function give_get_featured_image_sizes() {
|
1122 |
global $_wp_additional_image_sizes;
|
1123 |
+
|
1124 |
$sizes = array();
|
1125 |
$get_sizes = get_intermediate_image_sizes();
|
1126 |
+
$core_image_sizes = array( 'thumbnail', 'medium', 'medium_large', 'large' );
|
1127 |
|
1128 |
+
|
1129 |
+
// This will help us to filter special characters from a string
|
1130 |
+
$filter_slug_items = array( '_', '-' );
|
|
|
1131 |
|
1132 |
foreach ( $get_sizes as $_size ) {
|
1133 |
|
1134 |
+
// Converting image size slug to title case
|
1135 |
+
$sizes[ $_size ] = give_slug_to_title( $_size, $filter_slug_items );
|
1136 |
+
|
1137 |
+
if ( in_array( $_size, $core_image_sizes ) ) {
|
1138 |
+
$sizes[ $_size ] .= ' (' . get_option( "{$_size}_size_w" ) . 'x' . get_option( "{$_size}_size_h" );
|
1139 |
} elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
|
1140 |
+
$sizes[ $_size ] .= " ({$_wp_additional_image_sizes[ $_size ]['width']} x {$_wp_additional_image_sizes[ $_size ]['height']}";
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
// Based on the above image height check, label the respective resolution as responsive
|
1144 |
+
if ( ( array_key_exists( $_size, $_wp_additional_image_sizes ) && ! $_wp_additional_image_sizes[ $_size ]['crop'] ) || ( in_array( $_size, $core_image_sizes ) && ! get_option( "{$_size}_crop" ) ) ) {
|
1145 |
+
$sizes[ $_size ] .= ' - responsive';
|
1146 |
}
|
1147 |
+
|
1148 |
+
$sizes[ $_size ] .= ')';
|
1149 |
+
|
1150 |
}
|
1151 |
|
1152 |
return apply_filters( 'give_get_featured_image_sizes', $sizes );
|
1153 |
}
|
1154 |
|
1155 |
|
1156 |
+
/**
|
1157 |
+
* Slug to Title
|
1158 |
+
*
|
1159 |
+
* Converts a string with hyphen(-) or underscores(_) or any special character to a string with Title case
|
1160 |
+
*
|
1161 |
+
* @since 1.8.8
|
1162 |
+
*
|
1163 |
+
* @params $string text
|
1164 |
+
* @params $filter array
|
1165 |
+
*
|
1166 |
+
* @return text $string
|
1167 |
+
*/
|
1168 |
+
function give_slug_to_title( $string, $filters = array() ){
|
1169 |
+
|
1170 |
+
foreach( $filters as $filter_item ){
|
1171 |
+
$string = str_replace( $filter_item, ' ', $string );
|
1172 |
+
}
|
1173 |
+
|
1174 |
+
// Return updated string after converting it to title case
|
1175 |
+
return ucwords( $string );
|
1176 |
+
|
1177 |
+
}
|
1178 |
+
|
1179 |
+
|
1180 |
/**
|
1181 |
* Give License Key Callback
|
1182 |
*
|
includes/admin/customers/customer-actions.php
CHANGED
@@ -15,36 +15,41 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
-
* Processes a
|
19 |
*
|
20 |
* @since 1.0
|
21 |
*
|
22 |
* @param array $args The $_POST array being passed
|
23 |
*
|
24 |
-
* @return array $output Response messages
|
25 |
*/
|
26 |
-
function
|
27 |
|
28 |
-
$
|
29 |
|
30 |
-
if ( ! is_admin() || ! current_user_can( $
|
31 |
-
wp_die(
|
|
|
|
|
32 |
}
|
33 |
|
34 |
if ( empty( $args ) ) {
|
35 |
-
return;
|
36 |
}
|
37 |
|
38 |
-
$
|
39 |
-
$
|
40 |
-
$nonce
|
41 |
|
42 |
if ( ! wp_verify_nonce( $nonce, 'edit-customer' ) ) {
|
43 |
-
wp_die(
|
|
|
|
|
44 |
}
|
45 |
|
46 |
-
$
|
47 |
-
|
|
|
48 |
return false;
|
49 |
}
|
50 |
|
@@ -53,42 +58,42 @@ function give_edit_customer( $args ) {
|
|
53 |
'user_id' => 0,
|
54 |
);
|
55 |
|
56 |
-
$
|
57 |
|
58 |
-
if ( (int) $
|
59 |
|
60 |
-
// Make sure we don't already have this user attached to a
|
61 |
-
if ( ! empty( $
|
62 |
-
give_set_error( 'give-invalid-customer-user_id', sprintf(
|
63 |
}
|
64 |
|
65 |
-
// Make sure it's actually a user
|
66 |
-
$user = get_user_by( 'id', $
|
67 |
-
if ( ! empty( $
|
68 |
-
give_set_error( 'give-invalid-user_id', sprintf(
|
69 |
}
|
70 |
}
|
71 |
|
72 |
-
// Record this for later
|
73 |
-
$previous_user_id = $
|
74 |
|
75 |
if ( give_get_errors() ) {
|
76 |
-
return;
|
77 |
}
|
78 |
|
79 |
-
// Setup the
|
80 |
$address = array();
|
81 |
-
if ( intval( $
|
82 |
|
83 |
-
$current_address = get_user_meta( $
|
84 |
|
85 |
if ( false === $current_address ) {
|
86 |
-
$address['line1'] = isset( $
|
87 |
-
$address['line2'] = isset( $
|
88 |
-
$address['city'] = isset( $
|
89 |
-
$address['country'] = isset( $
|
90 |
-
$address['zip'] = isset( $
|
91 |
-
$address['state'] = isset( $
|
92 |
} else {
|
93 |
$current_address = wp_parse_args( $current_address, array(
|
94 |
'line1',
|
@@ -98,57 +103,57 @@ function give_edit_customer( $args ) {
|
|
98 |
'state',
|
99 |
'country',
|
100 |
) );
|
101 |
-
$address['line1'] = isset( $
|
102 |
-
$address['line2'] = isset( $
|
103 |
-
$address['city'] = isset( $
|
104 |
-
$address['country'] = isset( $
|
105 |
-
$address['zip'] = isset( $
|
106 |
-
$address['state'] = isset( $
|
107 |
}
|
108 |
}
|
109 |
|
110 |
// Sanitize the inputs
|
111 |
-
$
|
112 |
-
$
|
113 |
-
$
|
114 |
|
115 |
-
$
|
116 |
-
$address
|
117 |
|
118 |
-
$
|
119 |
-
$address
|
120 |
|
121 |
/**
|
122 |
-
* Fires before editing
|
123 |
*
|
124 |
* @since 1.0
|
125 |
*
|
126 |
-
* @param int
|
127 |
-
* @param array $
|
128 |
-
* @param array $address
|
129 |
*/
|
130 |
-
do_action( '
|
131 |
|
132 |
$output = array();
|
133 |
|
134 |
-
if ( $
|
135 |
|
136 |
-
if ( ! empty( $
|
137 |
-
update_user_meta( $
|
138 |
}
|
139 |
|
140 |
-
// Update some donation meta if we need to
|
141 |
-
$payments_array = explode( ',', $
|
142 |
|
143 |
-
if ( $
|
144 |
foreach ( $payments_array as $payment_id ) {
|
145 |
-
give_update_payment_meta( $payment_id, '_give_payment_user_id', $
|
146 |
}
|
147 |
}
|
148 |
|
149 |
$output['success'] = true;
|
150 |
-
$
|
151 |
-
$output['customer_info'] = $
|
152 |
|
153 |
} else {
|
154 |
|
@@ -157,14 +162,14 @@ function give_edit_customer( $args ) {
|
|
157 |
}
|
158 |
|
159 |
/**
|
160 |
-
* Fires after editing
|
161 |
*
|
162 |
* @since 1.0
|
163 |
*
|
164 |
-
* @param int
|
165 |
-
* @param array $
|
166 |
*/
|
167 |
-
do_action( '
|
168 |
|
169 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
170 |
header( 'Content-Type: application/json' );
|
@@ -176,14 +181,14 @@ function give_edit_customer( $args ) {
|
|
176 |
|
177 |
}
|
178 |
|
179 |
-
add_action( 'give_edit-customer', '
|
180 |
|
181 |
/**
|
182 |
* Save a customer note being added
|
183 |
*
|
184 |
* @since 1.0
|
185 |
*
|
186 |
-
* @param array $args The $_POST array being
|
187 |
*
|
188 |
* @return int The Note ID that was saved, or 0 if nothing was saved
|
189 |
*/
|
@@ -192,7 +197,9 @@ function give_customer_save_note( $args ) {
|
|
192 |
$customer_view_role = apply_filters( 'give_view_customers_role', 'view_give_reports' );
|
193 |
|
194 |
if ( ! is_admin() || ! current_user_can( $customer_view_role ) ) {
|
195 |
-
wp_die( esc_html__( 'You do not have permission to edit this donor.', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
196 |
}
|
197 |
|
198 |
if ( empty( $args ) ) {
|
@@ -204,7 +211,9 @@ function give_customer_save_note( $args ) {
|
|
204 |
$nonce = $args['add_customer_note_nonce'];
|
205 |
|
206 |
if ( ! wp_verify_nonce( $nonce, 'add-customer-note' ) ) {
|
207 |
-
wp_die( esc_html__( 'Cheatin’ uh?', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
208 |
}
|
209 |
|
210 |
if ( empty( $customer_note ) ) {
|
@@ -223,8 +232,8 @@ function give_customer_save_note( $args ) {
|
|
223 |
*
|
224 |
* @since 1.0
|
225 |
*
|
226 |
-
* @param int
|
227 |
-
* @param string $new_note
|
228 |
*/
|
229 |
do_action( 'give_pre_insert_customer_note', $customer_id, $new_note );
|
230 |
|
@@ -267,10 +276,12 @@ add_action( 'give_add-customer-note', 'give_customer_save_note', 10, 1 );
|
|
267 |
*/
|
268 |
function give_customer_delete( $args ) {
|
269 |
|
270 |
-
$customer_edit_role = apply_filters( '
|
271 |
|
272 |
if ( ! is_admin() || ! current_user_can( $customer_edit_role ) ) {
|
273 |
-
wp_die( esc_html__( 'You do not have permission to delete donors.', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
274 |
}
|
275 |
|
276 |
if ( empty( $args ) ) {
|
@@ -283,7 +294,9 @@ function give_customer_delete( $args ) {
|
|
283 |
$nonce = $args['_wpnonce'];
|
284 |
|
285 |
if ( ! wp_verify_nonce( $nonce, 'delete-customer' ) ) {
|
286 |
-
wp_die( esc_html__( 'Cheatin’ uh?', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
287 |
}
|
288 |
|
289 |
if ( ! $confirm ) {
|
@@ -302,8 +315,8 @@ function give_customer_delete( $args ) {
|
|
302 |
*
|
303 |
* @since 1.0
|
304 |
*
|
305 |
-
* @param int
|
306 |
-
* @param bool $confirm
|
307 |
* @param bool $remove_data Records delete confirmation.
|
308 |
*/
|
309 |
do_action( 'give_pre_delete_customer', $customer_id, $confirm, $remove_data );
|
@@ -356,54 +369,61 @@ add_action( 'give_delete-customer', 'give_customer_delete', 10, 1 );
|
|
356 |
*
|
357 |
* @since 1.0
|
358 |
*
|
359 |
-
* @param array $args Array of arguments
|
360 |
*
|
361 |
-
* @return bool If the disconnect was successful
|
362 |
*/
|
363 |
-
function
|
364 |
|
365 |
-
$
|
366 |
|
367 |
-
if ( ! is_admin() || ! current_user_can( $
|
368 |
-
wp_die(
|
|
|
|
|
369 |
}
|
370 |
|
371 |
if ( empty( $args ) ) {
|
372 |
-
return;
|
373 |
}
|
374 |
|
375 |
-
$
|
|
|
376 |
$nonce = $args['_wpnonce'];
|
377 |
|
378 |
if ( ! wp_verify_nonce( $nonce, 'edit-customer' ) ) {
|
379 |
-
wp_die(
|
|
|
|
|
380 |
}
|
381 |
|
382 |
-
$
|
383 |
-
if ( empty( $
|
384 |
return false;
|
385 |
}
|
386 |
|
387 |
-
$user_id = $
|
388 |
|
389 |
/**
|
390 |
* Fires before disconnecting user ID from a donor.
|
391 |
*
|
392 |
* @since 1.0
|
393 |
*
|
394 |
-
* @param int $
|
395 |
-
* @param int $user_id
|
396 |
*/
|
397 |
-
do_action( '
|
398 |
|
399 |
$output = array();
|
400 |
-
$
|
|
|
|
|
401 |
|
402 |
-
if ( $
|
403 |
global $wpdb;
|
404 |
|
405 |
-
if ( ! empty( $
|
406 |
-
$wpdb->query( "UPDATE $wpdb->postmeta SET meta_value = 0 WHERE meta_key = '_give_payment_user_id' AND post_id IN ( $
|
407 |
}
|
408 |
|
409 |
$output['success'] = true;
|
@@ -411,7 +431,7 @@ function give_disconnect_customer_user_id( $args ) {
|
|
411 |
} else {
|
412 |
|
413 |
$output['success'] = false;
|
414 |
-
give_set_error( 'give-disconnect-user-fail',
|
415 |
}
|
416 |
|
417 |
/**
|
@@ -419,9 +439,9 @@ function give_disconnect_customer_user_id( $args ) {
|
|
419 |
*
|
420 |
* @since 1.0
|
421 |
*
|
422 |
-
* @param int $
|
423 |
*/
|
424 |
-
do_action( '
|
425 |
|
426 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
427 |
header( 'Content-Type: application/json' );
|
@@ -433,7 +453,7 @@ function give_disconnect_customer_user_id( $args ) {
|
|
433 |
|
434 |
}
|
435 |
|
436 |
-
add_action( 'give_disconnect-userid', '
|
437 |
|
438 |
/**
|
439 |
* Add an email address to the donor from within the admin and log a donor note
|
@@ -445,21 +465,21 @@ add_action( 'give_disconnect-userid', 'give_disconnect_customer_user_id', 10, 1
|
|
445 |
* @return mixed If DOING_AJAX echos out JSON, otherwise returns array of success (bool) and message (string)
|
446 |
*/
|
447 |
function give_add_donor_email( $args ) {
|
448 |
-
$
|
449 |
|
450 |
-
if ( ! is_admin() || ! current_user_can( $
|
451 |
-
wp_die(
|
452 |
}
|
453 |
|
454 |
$output = array();
|
455 |
if ( empty( $args ) || empty( $args['email'] ) || empty( $args['customer_id'] ) ) {
|
456 |
$output['success'] = false;
|
457 |
if ( empty( $args['email'] ) ) {
|
458 |
-
$output['message'] =
|
459 |
} elseif ( empty( $args['customer_id'] ) ) {
|
460 |
-
$output['message'] =
|
461 |
} else {
|
462 |
-
$output['message'] =
|
463 |
}
|
464 |
} elseif ( ! wp_verify_nonce( $args['_wpnonce'], 'give_add_donor_email' ) ) {
|
465 |
$output = array(
|
@@ -480,24 +500,24 @@ function give_add_donor_email( $args ) {
|
|
480 |
if ( in_array( $email, $customer->emails ) ) {
|
481 |
$output = array(
|
482 |
'success' => false,
|
483 |
-
'message' =>
|
484 |
);
|
485 |
} else {
|
486 |
$output = array(
|
487 |
'success' => false,
|
488 |
-
'message' =>
|
489 |
);
|
490 |
}
|
491 |
} else {
|
492 |
$redirect = admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $customer_id . '&give-message=email-added' );
|
493 |
$output = array(
|
494 |
'success' => true,
|
495 |
-
'message' =>
|
496 |
'redirect' => $redirect,
|
497 |
);
|
498 |
|
499 |
$user = wp_get_current_user();
|
500 |
-
$user_login = ! empty( $user->user_login ) ? $user->user_login :
|
501 |
$customer_note = sprintf( __( 'Email address %1$s added by %2$s', 'give' ), $email, $user_login );
|
502 |
$customer->add_note( $customer_note );
|
503 |
|
@@ -506,7 +526,7 @@ function give_add_donor_email( $args ) {
|
|
506 |
$customer->add_note( $customer_note );
|
507 |
}
|
508 |
}
|
509 |
-
}
|
510 |
|
511 |
do_action( 'give_post_add_customer_email', $customer_id, $args );
|
512 |
|
@@ -542,7 +562,9 @@ function give_remove_donor_email() {
|
|
542 |
|
543 |
$nonce = $_GET['_wpnonce'];
|
544 |
if ( ! wp_verify_nonce( $nonce, 'give-remove-donor-email' ) ) {
|
545 |
-
wp_die( esc_html__( 'Nonce verification failed', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
546 |
}
|
547 |
|
548 |
$customer = new Give_Customer( $_GET['id'] );
|
@@ -586,7 +608,9 @@ function give_set_donor_primary_email() {
|
|
586 |
$nonce = $_GET['_wpnonce'];
|
587 |
|
588 |
if ( ! wp_verify_nonce( $nonce, 'give-set-donor-primary-email' ) ) {
|
589 |
-
wp_die( esc_html__( 'Nonce verification failed', 'give' ), esc_html__( 'Error', 'give' ), array(
|
|
|
|
|
590 |
}
|
591 |
|
592 |
$donor = new Give_Customer( $_GET['id'] );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
+
* Processes a donor edit.
|
19 |
*
|
20 |
* @since 1.0
|
21 |
*
|
22 |
* @param array $args The $_POST array being passed
|
23 |
*
|
24 |
+
* @return array|bool $output Response messages
|
25 |
*/
|
26 |
+
function give_edit_donor( $args ) {
|
27 |
|
28 |
+
$donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
29 |
|
30 |
+
if ( ! is_admin() || ! current_user_can( $donor_edit_role ) ) {
|
31 |
+
wp_die( __( 'You do not have permission to edit this donor.', 'give' ), __( 'Error', 'give' ), array(
|
32 |
+
'response' => 403,
|
33 |
+
) );
|
34 |
}
|
35 |
|
36 |
if ( empty( $args ) ) {
|
37 |
+
return false;
|
38 |
}
|
39 |
|
40 |
+
$donor_info = $args['customerinfo'];
|
41 |
+
$donor_id = (int) $args['customerinfo']['id'];
|
42 |
+
$nonce = $args['_wpnonce'];
|
43 |
|
44 |
if ( ! wp_verify_nonce( $nonce, 'edit-customer' ) ) {
|
45 |
+
wp_die( __( 'Cheatin’ uh?', 'give' ), __( 'Error', 'give' ), array(
|
46 |
+
'response' => 400,
|
47 |
+
) );
|
48 |
}
|
49 |
|
50 |
+
$donor = new Give_Customer( $donor_id );
|
51 |
+
|
52 |
+
if ( empty( $donor->id ) ) {
|
53 |
return false;
|
54 |
}
|
55 |
|
58 |
'user_id' => 0,
|
59 |
);
|
60 |
|
61 |
+
$donor_info = wp_parse_args( $donor_info, $defaults );
|
62 |
|
63 |
+
if ( (int) $donor_info['user_id'] !== (int) $donor->user_id ) {
|
64 |
|
65 |
+
// Make sure we don't already have this user attached to a donor.
|
66 |
+
if ( ! empty( $donor_info['user_id'] ) && false !== Give()->customers->get_customer_by( 'user_id', $donor_info['user_id'] ) ) {
|
67 |
+
give_set_error( 'give-invalid-customer-user_id', sprintf( __( 'The User ID #%d is already associated with a different donor.', 'give' ), $donor_info['user_id'] ) );
|
68 |
}
|
69 |
|
70 |
+
// Make sure it's actually a user.
|
71 |
+
$user = get_user_by( 'id', $donor_info['user_id'] );
|
72 |
+
if ( ! empty( $donor_info['user_id'] ) && false === $user ) {
|
73 |
+
give_set_error( 'give-invalid-user_id', sprintf( __( 'The User ID #%d does not exist. Please assign an existing user.', 'give' ), $donor_info['user_id'] ) );
|
74 |
}
|
75 |
}
|
76 |
|
77 |
+
// Record this for later.
|
78 |
+
$previous_user_id = $donor->user_id;
|
79 |
|
80 |
if ( give_get_errors() ) {
|
81 |
+
return false;
|
82 |
}
|
83 |
|
84 |
+
// Setup the donor address, if present.
|
85 |
$address = array();
|
86 |
+
if ( intval( $donor_info['user_id'] ) > 0 ) {
|
87 |
|
88 |
+
$current_address = get_user_meta( $donor_info['user_id'], '_give_user_address', true );
|
89 |
|
90 |
if ( false === $current_address ) {
|
91 |
+
$address['line1'] = isset( $donor_info['line1'] ) ? $donor_info['line1'] : '';
|
92 |
+
$address['line2'] = isset( $donor_info['line2'] ) ? $donor_info['line2'] : '';
|
93 |
+
$address['city'] = isset( $donor_info['city'] ) ? $donor_info['city'] : '';
|
94 |
+
$address['country'] = isset( $donor_info['country'] ) ? $donor_info['country'] : '';
|
95 |
+
$address['zip'] = isset( $donor_info['zip'] ) ? $donor_info['zip'] : '';
|
96 |
+
$address['state'] = isset( $donor_info['state'] ) ? $donor_info['state'] : '';
|
97 |
} else {
|
98 |
$current_address = wp_parse_args( $current_address, array(
|
99 |
'line1',
|
103 |
'state',
|
104 |
'country',
|
105 |
) );
|
106 |
+
$address['line1'] = isset( $donor_info['line1'] ) ? $donor_info['line1'] : $current_address['line1'];
|
107 |
+
$address['line2'] = isset( $donor_info['line2'] ) ? $donor_info['line2'] : $current_address['line2'];
|
108 |
+
$address['city'] = isset( $donor_info['city'] ) ? $donor_info['city'] : $current_address['city'];
|
109 |
+
$address['country'] = isset( $donor_info['country'] ) ? $donor_info['country'] : $current_address['country'];
|
110 |
+
$address['zip'] = isset( $donor_info['zip'] ) ? $donor_info['zip'] : $current_address['zip'];
|
111 |
+
$address['state'] = isset( $donor_info['state'] ) ? $donor_info['state'] : $current_address['state'];
|
112 |
}
|
113 |
}
|
114 |
|
115 |
// Sanitize the inputs
|
116 |
+
$donor_data = array();
|
117 |
+
$donor_data['name'] = strip_tags( stripslashes( $donor_info['name'] ) );
|
118 |
+
$donor_data['user_id'] = $donor_info['user_id'];
|
119 |
|
120 |
+
$donor_data = apply_filters( 'give_edit_donor_info', $donor_data, $donor_id );
|
121 |
+
$address = apply_filters( 'give_edit_donor_address', $address, $donor_id );
|
122 |
|
123 |
+
$donor_data = array_map( 'sanitize_text_field', $donor_data );
|
124 |
+
$address = array_map( 'sanitize_text_field', $address );
|
125 |
|
126 |
/**
|
127 |
+
* Fires before editing a donor.
|
128 |
*
|
129 |
* @since 1.0
|
130 |
*
|
131 |
+
* @param int $donor_id The ID of the donor.
|
132 |
+
* @param array $donor_data The donor data.
|
133 |
+
* @param array $address The donor's address.
|
134 |
*/
|
135 |
+
do_action( 'give_pre_edit_donor', $donor_id, $donor_data, $address );
|
136 |
|
137 |
$output = array();
|
138 |
|
139 |
+
if ( $donor->update( $donor_data ) ) {
|
140 |
|
141 |
+
if ( ! empty( $donor->user_id ) && $donor->user_id > 0 ) {
|
142 |
+
update_user_meta( $donor->user_id, '_give_user_address', $address );
|
143 |
}
|
144 |
|
145 |
+
// Update some donation meta if we need to.
|
146 |
+
$payments_array = explode( ',', $donor->payment_ids );
|
147 |
|
148 |
+
if ( $donor->user_id != $previous_user_id ) {
|
149 |
foreach ( $payments_array as $payment_id ) {
|
150 |
+
give_update_payment_meta( $payment_id, '_give_payment_user_id', $donor->user_id );
|
151 |
}
|
152 |
}
|
153 |
|
154 |
$output['success'] = true;
|
155 |
+
$donor_data = array_merge( $donor_data, $address );
|
156 |
+
$output['customer_info'] = $donor_data;
|
157 |
|
158 |
} else {
|
159 |
|
162 |
}
|
163 |
|
164 |
/**
|
165 |
+
* Fires after editing a donor.
|
166 |
*
|
167 |
* @since 1.0
|
168 |
*
|
169 |
+
* @param int $donor_id The ID of the donor.
|
170 |
+
* @param array $donor_data The donor data.
|
171 |
*/
|
172 |
+
do_action( 'give_post_edit_donor', $donor_id, $donor_data );
|
173 |
|
174 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
175 |
header( 'Content-Type: application/json' );
|
181 |
|
182 |
}
|
183 |
|
184 |
+
add_action( 'give_edit-customer', 'give_edit_donor', 10, 1 );
|
185 |
|
186 |
/**
|
187 |
* Save a customer note being added
|
188 |
*
|
189 |
* @since 1.0
|
190 |
*
|
191 |
+
* @param array $args The $_POST array being passed.
|
192 |
*
|
193 |
* @return int The Note ID that was saved, or 0 if nothing was saved
|
194 |
*/
|
197 |
$customer_view_role = apply_filters( 'give_view_customers_role', 'view_give_reports' );
|
198 |
|
199 |
if ( ! is_admin() || ! current_user_can( $customer_view_role ) ) {
|
200 |
+
wp_die( esc_html__( 'You do not have permission to edit this donor.', 'give' ), esc_html__( 'Error', 'give' ), array(
|
201 |
+
'response' => 403,
|
202 |
+
) );
|
203 |
}
|
204 |
|
205 |
if ( empty( $args ) ) {
|
211 |
$nonce = $args['add_customer_note_nonce'];
|
212 |
|
213 |
if ( ! wp_verify_nonce( $nonce, 'add-customer-note' ) ) {
|
214 |
+
wp_die( esc_html__( 'Cheatin’ uh?', 'give' ), esc_html__( 'Error', 'give' ), array(
|
215 |
+
'response' => 400,
|
216 |
+
) );
|
217 |
}
|
218 |
|
219 |
if ( empty( $customer_note ) ) {
|
232 |
*
|
233 |
* @since 1.0
|
234 |
*
|
235 |
+
* @param int $customer_id The ID of the customer.
|
236 |
+
* @param string $new_note Note content.
|
237 |
*/
|
238 |
do_action( 'give_pre_insert_customer_note', $customer_id, $new_note );
|
239 |
|
276 |
*/
|
277 |
function give_customer_delete( $args ) {
|
278 |
|
279 |
+
$customer_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
280 |
|
281 |
if ( ! is_admin() || ! current_user_can( $customer_edit_role ) ) {
|
282 |
+
wp_die( esc_html__( 'You do not have permission to delete donors.', 'give' ), esc_html__( 'Error', 'give' ), array(
|
283 |
+
'response' => 403,
|
284 |
+
) );
|
285 |
}
|
286 |
|
287 |
if ( empty( $args ) ) {
|
294 |
$nonce = $args['_wpnonce'];
|
295 |
|
296 |
if ( ! wp_verify_nonce( $nonce, 'delete-customer' ) ) {
|
297 |
+
wp_die( esc_html__( 'Cheatin’ uh?', 'give' ), esc_html__( 'Error', 'give' ), array(
|
298 |
+
'response' => 400,
|
299 |
+
) );
|
300 |
}
|
301 |
|
302 |
if ( ! $confirm ) {
|
315 |
*
|
316 |
* @since 1.0
|
317 |
*
|
318 |
+
* @param int $customer_id The ID of the customer.
|
319 |
+
* @param bool $confirm Delete confirmation.
|
320 |
* @param bool $remove_data Records delete confirmation.
|
321 |
*/
|
322 |
do_action( 'give_pre_delete_customer', $customer_id, $confirm, $remove_data );
|
369 |
*
|
370 |
* @since 1.0
|
371 |
*
|
372 |
+
* @param array $args Array of arguments.
|
373 |
*
|
374 |
+
* @return bool|array If the disconnect was successful.
|
375 |
*/
|
376 |
+
function give_disconnect_donor_user_id( $args ) {
|
377 |
|
378 |
+
$donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
379 |
|
380 |
+
if ( ! is_admin() || ! current_user_can( $donor_edit_role ) ) {
|
381 |
+
wp_die( __( 'You do not have permission to edit this donor.', 'give' ), __( 'Error', 'give' ), array(
|
382 |
+
'response' => 403,
|
383 |
+
) );
|
384 |
}
|
385 |
|
386 |
if ( empty( $args ) ) {
|
387 |
+
return false;
|
388 |
}
|
389 |
|
390 |
+
$donor_id = (int) $args['customer_id'];
|
391 |
+
|
392 |
$nonce = $args['_wpnonce'];
|
393 |
|
394 |
if ( ! wp_verify_nonce( $nonce, 'edit-customer' ) ) {
|
395 |
+
wp_die( __( 'Cheatin’ uh?', 'give' ), __( 'Error', 'give' ), array(
|
396 |
+
'response' => 400,
|
397 |
+
) );
|
398 |
}
|
399 |
|
400 |
+
$donor = new Give_Customer( $donor_id );
|
401 |
+
if ( empty( $donor->id ) ) {
|
402 |
return false;
|
403 |
}
|
404 |
|
405 |
+
$user_id = $donor->user_id;
|
406 |
|
407 |
/**
|
408 |
* Fires before disconnecting user ID from a donor.
|
409 |
*
|
410 |
* @since 1.0
|
411 |
*
|
412 |
+
* @param int $donor_id The ID of the donor.
|
413 |
+
* @param int $user_id The ID of the user.
|
414 |
*/
|
415 |
+
do_action( 'give_pre_donor_disconnect_user_id', $donor_id, $user_id );
|
416 |
|
417 |
$output = array();
|
418 |
+
$donor_args = array(
|
419 |
+
'user_id' => 0,
|
420 |
+
);
|
421 |
|
422 |
+
if ( $donor->update( $donor_args ) ) {
|
423 |
global $wpdb;
|
424 |
|
425 |
+
if ( ! empty( $donor->payment_ids ) ) {
|
426 |
+
$wpdb->query( "UPDATE $wpdb->postmeta SET meta_value = 0 WHERE meta_key = '_give_payment_user_id' AND post_id IN ( $donor->payment_ids )" );
|
427 |
}
|
428 |
|
429 |
$output['success'] = true;
|
431 |
} else {
|
432 |
|
433 |
$output['success'] = false;
|
434 |
+
give_set_error( 'give-disconnect-user-fail', __( 'Failed to disconnect user from donor.', 'give' ) );
|
435 |
}
|
436 |
|
437 |
/**
|
439 |
*
|
440 |
* @since 1.0
|
441 |
*
|
442 |
+
* @param int $donor_id The ID of the donor.
|
443 |
*/
|
444 |
+
do_action( 'give_post_donor_disconnect_user_id', $donor_id );
|
445 |
|
446 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
447 |
header( 'Content-Type: application/json' );
|
453 |
|
454 |
}
|
455 |
|
456 |
+
add_action( 'give_disconnect-userid', 'give_disconnect_donor_user_id', 10, 1 );
|
457 |
|
458 |
/**
|
459 |
* Add an email address to the donor from within the admin and log a donor note
|
465 |
* @return mixed If DOING_AJAX echos out JSON, otherwise returns array of success (bool) and message (string)
|
466 |
*/
|
467 |
function give_add_donor_email( $args ) {
|
468 |
+
$donor_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
469 |
|
470 |
+
if ( ! is_admin() || ! current_user_can( $donor_edit_role ) ) {
|
471 |
+
wp_die( __( 'You do not have permission to edit this donor.', 'edit' ) );
|
472 |
}
|
473 |
|
474 |
$output = array();
|
475 |
if ( empty( $args ) || empty( $args['email'] ) || empty( $args['customer_id'] ) ) {
|
476 |
$output['success'] = false;
|
477 |
if ( empty( $args['email'] ) ) {
|
478 |
+
$output['message'] = __( 'Email address is required.', 'give' );
|
479 |
} elseif ( empty( $args['customer_id'] ) ) {
|
480 |
+
$output['message'] = __( 'Donor ID is required.', 'give' );
|
481 |
} else {
|
482 |
+
$output['message'] = __( 'An error has occurred. Please try again.', 'give' );
|
483 |
}
|
484 |
} elseif ( ! wp_verify_nonce( $args['_wpnonce'], 'give_add_donor_email' ) ) {
|
485 |
$output = array(
|
500 |
if ( in_array( $email, $customer->emails ) ) {
|
501 |
$output = array(
|
502 |
'success' => false,
|
503 |
+
'message' => __( 'Email already associated with this donor.', 'give' ),
|
504 |
);
|
505 |
} else {
|
506 |
$output = array(
|
507 |
'success' => false,
|
508 |
+
'message' => __( 'Email address is already associated with another donor.', 'give' ),
|
509 |
);
|
510 |
}
|
511 |
} else {
|
512 |
$redirect = admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $customer_id . '&give-message=email-added' );
|
513 |
$output = array(
|
514 |
'success' => true,
|
515 |
+
'message' => __( 'Email successfully added to donor.', 'give' ),
|
516 |
'redirect' => $redirect,
|
517 |
);
|
518 |
|
519 |
$user = wp_get_current_user();
|
520 |
+
$user_login = ! empty( $user->user_login ) ? $user->user_login : __( 'System', 'give' );
|
521 |
$customer_note = sprintf( __( 'Email address %1$s added by %2$s', 'give' ), $email, $user_login );
|
522 |
$customer->add_note( $customer_note );
|
523 |
|
526 |
$customer->add_note( $customer_note );
|
527 |
}
|
528 |
}
|
529 |
+
}// End if().
|
530 |
|
531 |
do_action( 'give_post_add_customer_email', $customer_id, $args );
|
532 |
|
562 |
|
563 |
$nonce = $_GET['_wpnonce'];
|
564 |
if ( ! wp_verify_nonce( $nonce, 'give-remove-donor-email' ) ) {
|
565 |
+
wp_die( esc_html__( 'Nonce verification failed', 'give' ), esc_html__( 'Error', 'give' ), array(
|
566 |
+
'response' => 403,
|
567 |
+
) );
|
568 |
}
|
569 |
|
570 |
$customer = new Give_Customer( $_GET['id'] );
|
608 |
$nonce = $_GET['_wpnonce'];
|
609 |
|
610 |
if ( ! wp_verify_nonce( $nonce, 'give-set-donor-primary-email' ) ) {
|
611 |
+
wp_die( esc_html__( 'Nonce verification failed', 'give' ), esc_html__( 'Error', 'give' ), array(
|
612 |
+
'response' => 403,
|
613 |
+
) );
|
614 |
}
|
615 |
|
616 |
$donor = new Give_Customer( $_GET['id'] );
|
includes/admin/customers/customers.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* @package Give
|
6 |
* @subpackage Admin/Customers
|
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
-
*
|
19 |
*
|
20 |
* Renders the customers page contents.
|
21 |
*
|
@@ -33,10 +33,10 @@ function give_customers_page() {
|
|
33 |
}
|
34 |
|
35 |
/**
|
36 |
-
* Register the views for
|
37 |
*
|
38 |
* @since 1.0
|
39 |
-
* @return array Array of views and their callbacks
|
40 |
*/
|
41 |
function give_customer_views() {
|
42 |
|
@@ -123,7 +123,7 @@ function give_render_customer_view( $view, $callbacks ) {
|
|
123 |
give_set_error( 'give-no-access', esc_html__( 'You are not permitted to view this data.', 'give' ) );
|
124 |
$render = false;
|
125 |
}
|
126 |
-
|
127 |
if ( ! isset( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
|
128 |
give_set_error( 'give-invalid_customer', esc_html__( 'Invalid Donor ID.', 'give' ) );
|
129 |
$render = false;
|
@@ -158,7 +158,7 @@ function give_render_customer_view( $view, $callbacks ) {
|
|
158 |
$active = $key === $view ? true : false;
|
159 |
$class = $active ? 'nav-tab nav-tab-active' : 'nav-tab';
|
160 |
printf(
|
161 |
-
'<a href="%1$s" class="%2$s"><span class="dashicons %3$s"></span>%4$s</a>'."\n",
|
162 |
esc_url( admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=' . $key . '&id=' . $customer->id ) ),
|
163 |
esc_attr( $class ),
|
164 |
sanitize_html_class( $tab['dashicon'] ),
|
@@ -191,7 +191,7 @@ function give_render_customer_view( $view, $callbacks ) {
|
|
191 |
*/
|
192 |
function give_customers_view( $customer ) {
|
193 |
|
194 |
-
$customer_edit_role = apply_filters( '
|
195 |
|
196 |
/**
|
197 |
* Fires in donor profile screen, above the donor card.
|
@@ -224,7 +224,7 @@ function give_customers_view( $customer ) {
|
|
224 |
<?php esc_html_e( 'Donor since', 'give' ); ?>
|
225 |
<?php echo date_i18n( give_date_format(), strtotime( $customer->date_created ) ) ?>
|
226 |
</p>
|
227 |
-
<?php if ( current_user_can( $customer_edit_role ) ): ?>
|
228 |
<a href="#" id="edit-customer" class="button info-item editable customer-edit-link"><?php esc_html_e( 'Edit Donor', 'give' ); ?></a>
|
229 |
<?php endif; ?>
|
230 |
</div>
|
@@ -235,18 +235,19 @@ function give_customers_view( $customer ) {
|
|
235 |
<table class="widefat">
|
236 |
<tbody>
|
237 |
<tr class="alternate">
|
238 |
-
<th scope="col"><label for="tablecell"><?php esc_html_e( 'User
|
239 |
-
<td
|
240 |
<span class="customer-user-id info-item edit-item">
|
241 |
<?php
|
242 |
|
243 |
$user_id = $customer->user_id > 0 ? $customer->user_id : '';
|
|
|
244 |
$data_atts = array(
|
245 |
'key' => 'user_login',
|
246 |
-
'exclude' => $user_id
|
247 |
);
|
248 |
$user_args = array(
|
249 |
-
'name' => 'customerinfo[
|
250 |
'class' => 'give-user-dropdown',
|
251 |
'data' => $data_atts,
|
252 |
);
|
@@ -258,12 +259,11 @@ function give_customers_view( $customer ) {
|
|
258 |
|
259 |
echo Give()->html->ajax_user_search( $user_args );
|
260 |
?>
|
261 |
-
<input type="hidden" name="customerinfo[user_id]" data-key="user_id" value="<?php echo $customer->user_id; ?>" />
|
262 |
</span>
|
263 |
-
|
264 |
<span class="customer-user-id info-item editable">
|
265 |
-
<?php if (
|
266 |
-
<span data-key="user_id"
|
267 |
<?php } else { ?>
|
268 |
<span data-key="user_id"><?php esc_html_e( 'None', 'give' ); ?></span>
|
269 |
<?php } ?>
|
@@ -289,7 +289,7 @@ function give_customers_view( $customer ) {
|
|
289 |
'city' => '',
|
290 |
'state' => '',
|
291 |
'country' => '',
|
292 |
-
'zip' => ''
|
293 |
);
|
294 |
|
295 |
$address = wp_parse_args( $address, $defaults );
|
@@ -385,7 +385,7 @@ function give_customers_view( $customer ) {
|
|
385 |
<a href="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&user=' . urlencode( $customer->email ) ); ?>">
|
386 |
<span class="dashicons dashicons-heart"></span>
|
387 |
<?php
|
388 |
-
//Completed Donations
|
389 |
$completed_donations_text = sprintf( _n( '%d Completed Donation', '%d Completed Donations', $customer->purchase_count, 'give' ), $customer->purchase_count );
|
390 |
echo apply_filters( 'give_donor_completed_donations', $completed_donations_text, $customer );
|
391 |
?>
|
@@ -459,8 +459,14 @@ function give_customers_view( $customer ) {
|
|
459 |
<?php if ( 'primary' !== $key ) : ?>
|
460 |
<?php
|
461 |
$base_url = admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $customer->id );
|
462 |
-
$promote_url = wp_nonce_url( add_query_arg( array(
|
463 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
?>
|
465 |
<a href="<?php echo $promote_url; ?>"><?php _e( 'Make Primary', 'give' ); ?></a>
|
466 |
|
|
@@ -485,14 +491,17 @@ function give_customers_view( $customer ) {
|
|
485 |
</tr>
|
486 |
<?php } else { ?>
|
487 |
<tr><td colspan="2"><?php _e( 'No Emails Found', 'easy-digital-downloads' ); ?></td></tr>
|
488 |
-
<?php }
|
|
|
489 |
</tbody>
|
490 |
</table>
|
491 |
|
492 |
<h3><?php esc_html_e( 'Recent Donations', 'give' ); ?></h3>
|
493 |
<?php
|
494 |
$payment_ids = explode( ',', $customer->payment_ids );
|
495 |
-
$payments = give_get_payments( array(
|
|
|
|
|
496 |
$payments = array_slice( $payments, 0, 10 );
|
497 |
?>
|
498 |
<table class="wp-list-table widefat striped payments">
|
@@ -547,7 +556,8 @@ function give_customers_view( $customer ) {
|
|
547 |
<tr>
|
548 |
<td colspan="5"><?php esc_html_e( 'No donations found.', 'give' ); ?></td>
|
549 |
</tr>
|
550 |
-
<?php }
|
|
|
551 |
</tbody>
|
552 |
</table>
|
553 |
|
@@ -660,7 +670,7 @@ function give_customer_notes_view( $customer ) {
|
|
660 |
'format' => '?paged=%#%',
|
661 |
'total' => $total_pages,
|
662 |
'current' => $paged,
|
663 |
-
'show_all' => true
|
664 |
);
|
665 |
|
666 |
echo paginate_links( $pagination_args );
|
@@ -700,7 +710,7 @@ function give_customer_notes_view( $customer ) {
|
|
700 |
*/
|
701 |
function give_customers_delete_view( $customer ) {
|
702 |
|
703 |
-
$customer_edit_role = apply_filters( '
|
704 |
|
705 |
/**
|
706 |
* Fires in donor delete screen, above the content.
|
@@ -725,14 +735,18 @@ function give_customers_delete_view( $customer ) {
|
|
725 |
|
726 |
<span class="delete-customer-options">
|
727 |
<p>
|
728 |
-
<?php echo Give()->html->checkbox( array(
|
|
|
|
|
729 |
<label for="give-customer-delete-confirm"><?php esc_html_e( 'Are you sure you want to delete this donor?', 'give' ); ?></label>
|
730 |
</p>
|
731 |
|
732 |
<p>
|
733 |
<?php echo Give()->html->checkbox( array(
|
734 |
'name' => 'give-customer-delete-records',
|
735 |
-
'options' => array(
|
|
|
|
|
736 |
) ); ?>
|
737 |
<label for="give-customer-delete-records"><?php esc_html_e( 'Delete all associated donations and records?', 'give' ); ?></label>
|
738 |
</p>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Donors.
|
4 |
*
|
5 |
* @package Give
|
6 |
* @subpackage Admin/Customers
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
+
* Donors Page.
|
19 |
*
|
20 |
* Renders the customers page contents.
|
21 |
*
|
33 |
}
|
34 |
|
35 |
/**
|
36 |
+
* Register the views for donor management.
|
37 |
*
|
38 |
* @since 1.0
|
39 |
+
* @return array Array of views and their callbacks.
|
40 |
*/
|
41 |
function give_customer_views() {
|
42 |
|
123 |
give_set_error( 'give-no-access', esc_html__( 'You are not permitted to view this data.', 'give' ) );
|
124 |
$render = false;
|
125 |
}
|
126 |
+
|
127 |
if ( ! isset( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
|
128 |
give_set_error( 'give-invalid_customer', esc_html__( 'Invalid Donor ID.', 'give' ) );
|
129 |
$render = false;
|
158 |
$active = $key === $view ? true : false;
|
159 |
$class = $active ? 'nav-tab nav-tab-active' : 'nav-tab';
|
160 |
printf(
|
161 |
+
'<a href="%1$s" class="%2$s"><span class="dashicons %3$s"></span>%4$s</a>' . "\n",
|
162 |
esc_url( admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=' . $key . '&id=' . $customer->id ) ),
|
163 |
esc_attr( $class ),
|
164 |
sanitize_html_class( $tab['dashicon'] ),
|
191 |
*/
|
192 |
function give_customers_view( $customer ) {
|
193 |
|
194 |
+
$customer_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
195 |
|
196 |
/**
|
197 |
* Fires in donor profile screen, above the donor card.
|
224 |
<?php esc_html_e( 'Donor since', 'give' ); ?>
|
225 |
<?php echo date_i18n( give_date_format(), strtotime( $customer->date_created ) ) ?>
|
226 |
</p>
|
227 |
+
<?php if ( current_user_can( $customer_edit_role ) ) : ?>
|
228 |
<a href="#" id="edit-customer" class="button info-item editable customer-edit-link"><?php esc_html_e( 'Edit Donor', 'give' ); ?></a>
|
229 |
<?php endif; ?>
|
230 |
</div>
|
235 |
<table class="widefat">
|
236 |
<tbody>
|
237 |
<tr class="alternate">
|
238 |
+
<th scope="col"><label for="tablecell"><?php esc_html_e( 'User:', 'give' ); ?></label></th>
|
239 |
+
<td>
|
240 |
<span class="customer-user-id info-item edit-item">
|
241 |
<?php
|
242 |
|
243 |
$user_id = $customer->user_id > 0 ? $customer->user_id : '';
|
244 |
+
|
245 |
$data_atts = array(
|
246 |
'key' => 'user_login',
|
247 |
+
'exclude' => $user_id,
|
248 |
);
|
249 |
$user_args = array(
|
250 |
+
'name' => 'customerinfo[user_id]',
|
251 |
'class' => 'give-user-dropdown',
|
252 |
'data' => $data_atts,
|
253 |
);
|
259 |
|
260 |
echo Give()->html->ajax_user_search( $user_args );
|
261 |
?>
|
|
|
262 |
</span>
|
263 |
+
|
264 |
<span class="customer-user-id info-item editable">
|
265 |
+
<?php if ( !empty( $userdata ) ) { ?>
|
266 |
+
<span data-key="user_id">#<?php echo $customer->user_id . ' - ' . $userdata->display_name; ?></span>
|
267 |
<?php } else { ?>
|
268 |
<span data-key="user_id"><?php esc_html_e( 'None', 'give' ); ?></span>
|
269 |
<?php } ?>
|
289 |
'city' => '',
|
290 |
'state' => '',
|
291 |
'country' => '',
|
292 |
+
'zip' => '',
|
293 |
);
|
294 |
|
295 |
$address = wp_parse_args( $address, $defaults );
|
385 |
<a href="<?php echo admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&user=' . urlencode( $customer->email ) ); ?>">
|
386 |
<span class="dashicons dashicons-heart"></span>
|
387 |
<?php
|
388 |
+
// Completed Donations
|
389 |
$completed_donations_text = sprintf( _n( '%d Completed Donation', '%d Completed Donations', $customer->purchase_count, 'give' ), $customer->purchase_count );
|
390 |
echo apply_filters( 'give_donor_completed_donations', $completed_donations_text, $customer );
|
391 |
?>
|
459 |
<?php if ( 'primary' !== $key ) : ?>
|
460 |
<?php
|
461 |
$base_url = admin_url( 'edit.php?post_type=give_forms&page=give-donors&view=overview&id=' . $customer->id );
|
462 |
+
$promote_url = wp_nonce_url( add_query_arg( array(
|
463 |
+
'email' => rawurlencode( $email ),
|
464 |
+
'give_action' => 'set_donor_primary_email',
|
465 |
+
), $base_url ), 'give-set-donor-primary-email' );
|
466 |
+
$remove_url = wp_nonce_url( add_query_arg( array(
|
467 |
+
'email' => rawurlencode( $email ),
|
468 |
+
'give_action' => 'remove_donor_email',
|
469 |
+
), $base_url ), 'give-remove-donor-email' );
|
470 |
?>
|
471 |
<a href="<?php echo $promote_url; ?>"><?php _e( 'Make Primary', 'give' ); ?></a>
|
472 |
|
|
491 |
</tr>
|
492 |
<?php } else { ?>
|
493 |
<tr><td colspan="2"><?php _e( 'No Emails Found', 'easy-digital-downloads' ); ?></td></tr>
|
494 |
+
<?php }// End if().
|
495 |
+
?>
|
496 |
</tbody>
|
497 |
</table>
|
498 |
|
499 |
<h3><?php esc_html_e( 'Recent Donations', 'give' ); ?></h3>
|
500 |
<?php
|
501 |
$payment_ids = explode( ',', $customer->payment_ids );
|
502 |
+
$payments = give_get_payments( array(
|
503 |
+
'post__in' => $payment_ids,
|
504 |
+
) );
|
505 |
$payments = array_slice( $payments, 0, 10 );
|
506 |
?>
|
507 |
<table class="wp-list-table widefat striped payments">
|
556 |
<tr>
|
557 |
<td colspan="5"><?php esc_html_e( 'No donations found.', 'give' ); ?></td>
|
558 |
</tr>
|
559 |
+
<?php }// End if().
|
560 |
+
?>
|
561 |
</tbody>
|
562 |
</table>
|
563 |
|
670 |
'format' => '?paged=%#%',
|
671 |
'total' => $total_pages,
|
672 |
'current' => $paged,
|
673 |
+
'show_all' => true,
|
674 |
);
|
675 |
|
676 |
echo paginate_links( $pagination_args );
|
710 |
*/
|
711 |
function give_customers_delete_view( $customer ) {
|
712 |
|
713 |
+
$customer_edit_role = apply_filters( 'give_edit_donors_role', 'edit_give_payments' );
|
714 |
|
715 |
/**
|
716 |
* Fires in donor delete screen, above the content.
|
735 |
|
736 |
<span class="delete-customer-options">
|
737 |
<p>
|
738 |
+
<?php echo Give()->html->checkbox( array(
|
739 |
+
'name' => 'give-customer-delete-confirm',
|
740 |
+
) ); ?>
|
741 |
<label for="give-customer-delete-confirm"><?php esc_html_e( 'Are you sure you want to delete this donor?', 'give' ); ?></label>
|
742 |
</p>
|
743 |
|
744 |
<p>
|
745 |
<?php echo Give()->html->checkbox( array(
|
746 |
'name' => 'give-customer-delete-records',
|
747 |
+
'options' => array(
|
748 |
+
'disabled' => true,
|
749 |
+
),
|
750 |
) ); ?>
|
751 |
<label for="give-customer-delete-records"><?php esc_html_e( 'Delete all associated donations and records?', 'give' ); ?></label>
|
752 |
</p>
|
includes/admin/forms/class-metabox-form-data.php
CHANGED
@@ -46,13 +46,13 @@ class Give_MetaBox_Form_Data {
|
|
46 |
*/
|
47 |
function __construct() {
|
48 |
$this->metabox_id = 'give-metabox-form-data';
|
49 |
-
$this->metabox_label =
|
50 |
|
51 |
// Setup.
|
52 |
add_action( 'admin_init', array( $this, 'setup' ) );
|
53 |
|
54 |
// Add metabox.
|
55 |
-
add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ),
|
56 |
|
57 |
// Save form meta.
|
58 |
add_action( 'save_post_give_forms', array( $this, 'save' ), 10, 2 );
|
@@ -106,24 +106,24 @@ class Give_MetaBox_Form_Data {
|
|
106 |
*/
|
107 |
'form_field_options' => apply_filters( 'give_forms_field_options', array(
|
108 |
'id' => 'form_field_options',
|
109 |
-
'title' =>
|
110 |
'icon-html' => '<span class="give-icon give-icon-heart"></span>',
|
111 |
'fields' => apply_filters( 'give_forms_donation_form_metabox_fields', array(
|
112 |
// Donation Option
|
113 |
array(
|
114 |
-
'name' =>
|
115 |
-
'description' =>
|
116 |
'id' => $prefix . 'price_option',
|
117 |
'type' => 'radio_inline',
|
118 |
'default' => 'set',
|
119 |
'options' => apply_filters( 'give_forms_price_options', array(
|
120 |
-
'set' =>
|
121 |
-
'multi' =>
|
122 |
) ),
|
123 |
),
|
124 |
array(
|
125 |
-
'name' =>
|
126 |
-
'description' =>
|
127 |
'id' => $prefix . 'set_price',
|
128 |
'type' => 'text_small',
|
129 |
'data_type' => 'price',
|
@@ -135,32 +135,32 @@ class Give_MetaBox_Form_Data {
|
|
135 |
),
|
136 |
// Display Style
|
137 |
array(
|
138 |
-
'name' =>
|
139 |
-
'description' =>
|
140 |
'id' => $prefix . 'display_style',
|
141 |
'type' => 'radio_inline',
|
142 |
'default' => 'buttons',
|
143 |
'options' => array(
|
144 |
-
'buttons' =>
|
145 |
-
'radios' =>
|
146 |
-
'dropdown' =>
|
147 |
),
|
148 |
),
|
149 |
// Custom Amount
|
150 |
array(
|
151 |
-
'name' =>
|
152 |
-
'description' =>
|
153 |
'id' => $prefix . 'custom_amount',
|
154 |
'type' => 'radio_inline',
|
155 |
'default' => 'disabled',
|
156 |
'options' => array(
|
157 |
-
'enabled' =>
|
158 |
-
'disabled' =>
|
159 |
),
|
160 |
),
|
161 |
array(
|
162 |
-
'name' =>
|
163 |
-
'description' =>
|
164 |
'id' => $prefix . 'custom_amount_minimum',
|
165 |
'type' => 'text_small',
|
166 |
'data_type' => 'price',
|
@@ -171,8 +171,8 @@ class Give_MetaBox_Form_Data {
|
|
171 |
),
|
172 |
),
|
173 |
array(
|
174 |
-
'name' =>
|
175 |
-
'description' =>
|
176 |
'id' => $prefix . 'custom_amount_text',
|
177 |
'type' => 'text_medium',
|
178 |
'attributes' => array(
|
@@ -185,20 +185,20 @@ class Give_MetaBox_Form_Data {
|
|
185 |
'id' => $prefix . 'donation_levels',
|
186 |
'type' => 'group',
|
187 |
'options' => array(
|
188 |
-
'add_button' =>
|
189 |
-
'header_title' =>
|
190 |
'remove_button' => '<span class="dashicons dashicons-no"></span>',
|
191 |
),
|
192 |
// Fields array works the same, except id's only need to be unique for this group.
|
193 |
// Prefix is not needed.
|
194 |
'fields' => apply_filters( 'give_donation_levels_table_row', array(
|
195 |
array(
|
196 |
-
'name' =>
|
197 |
'id' => $prefix . 'id',
|
198 |
'type' => 'levels_id',
|
199 |
),
|
200 |
array(
|
201 |
-
'name' =>
|
202 |
'id' => $prefix . 'amount',
|
203 |
'type' => 'text_small',
|
204 |
'data_type' => 'price',
|
@@ -208,16 +208,16 @@ class Give_MetaBox_Form_Data {
|
|
208 |
),
|
209 |
),
|
210 |
array(
|
211 |
-
'name' =>
|
212 |
'id' => $prefix . 'text',
|
213 |
'type' => 'text',
|
214 |
'attributes' => array(
|
215 |
-
'placeholder' =>
|
216 |
'class' => 'give-multilevel-text-field',
|
217 |
),
|
218 |
),
|
219 |
array(
|
220 |
-
'name' =>
|
221 |
'id' => $prefix . 'default',
|
222 |
'type' => 'give_default_radio_inline',
|
223 |
),
|
@@ -227,7 +227,7 @@ class Give_MetaBox_Form_Data {
|
|
227 |
'name' => 'donation_options_docs',
|
228 |
'type' => 'docs_link',
|
229 |
'url' => 'http://docs.givewp.com/form-donation-options',
|
230 |
-
'title' =>
|
231 |
),
|
232 |
),
|
233 |
$post_id
|
@@ -239,26 +239,26 @@ class Give_MetaBox_Form_Data {
|
|
239 |
*/
|
240 |
'form_display_options' => apply_filters( 'give_form_display_options', array(
|
241 |
'id' => 'form_display_options',
|
242 |
-
'title' =>
|
243 |
'icon-html' => '<span class="give-icon give-icon-display"></span>',
|
244 |
'fields' => apply_filters( 'give_forms_display_options_metabox_fields', array(
|
245 |
array(
|
246 |
-
'name' =>
|
247 |
'desc' => sprintf( __( 'How would you like to display donation information for this form?', 'give' ), '#' ),
|
248 |
'id' => $prefix . 'payment_display',
|
249 |
'type' => 'radio_inline',
|
250 |
'options' => array(
|
251 |
-
'onpage' =>
|
252 |
-
'modal' =>
|
253 |
-
'reveal' =>
|
254 |
-
'button' =>
|
255 |
),
|
256 |
'default' => 'onpage',
|
257 |
),
|
258 |
array(
|
259 |
'id' => $prefix . 'reveal_label',
|
260 |
-
'name' =>
|
261 |
-
'desc' =>
|
262 |
'type' => 'text_small',
|
263 |
'attributes' => array(
|
264 |
'placeholder' => esc_attr__( 'Donate Now', 'give' ),
|
@@ -266,53 +266,53 @@ class Give_MetaBox_Form_Data {
|
|
266 |
),
|
267 |
array(
|
268 |
'id' => $prefix . 'checkout_label',
|
269 |
-
'name' =>
|
270 |
-
'desc' =>
|
271 |
'type' => 'text_small',
|
272 |
'attributes' => array(
|
273 |
-
'placeholder' =>
|
274 |
),
|
275 |
),
|
276 |
array(
|
277 |
-
'name' =>
|
278 |
-
'desc' =>
|
279 |
'id' => $prefix . 'default_gateway',
|
280 |
'type' => 'default_gateway',
|
281 |
),
|
282 |
array(
|
283 |
-
'name' =>
|
284 |
-
'desc' =>
|
285 |
'id' => $prefix . 'logged_in_only',
|
286 |
'type' => 'radio_inline',
|
287 |
'default' => 'enabled',
|
288 |
'options' => array(
|
289 |
-
'enabled' =>
|
290 |
-
'disabled' =>
|
291 |
),
|
292 |
),
|
293 |
array(
|
294 |
-
'name' =>
|
295 |
-
'desc' =>
|
296 |
'id' => $prefix . 'show_register_form',
|
297 |
'type' => 'radio',
|
298 |
'options' => array(
|
299 |
-
'none' =>
|
300 |
-
'registration' =>
|
301 |
-
'login' =>
|
302 |
-
'both' =>
|
303 |
),
|
304 |
'default' => 'none',
|
305 |
),
|
306 |
array(
|
307 |
-
'name' =>
|
308 |
/* translators: %s: forms http://docs.givewp.com/form-floating-labels */
|
309 |
'desc' => sprintf( __( 'Select the <a href="%s" target="_blank">floating labels</a> setting for this Give form. Be aware that if you have the "Disable CSS" option enabled, you will need to style the floating labels yourself.', 'give' ), esc_url( 'http://docs.givewp.com/form-floating-labels' ) ),
|
310 |
'id' => $prefix . 'form_floating_labels',
|
311 |
'type' => 'radio_inline',
|
312 |
'options' => array(
|
313 |
-
'global' =>
|
314 |
-
'enabled' =>
|
315 |
-
'disabled' =>
|
316 |
),
|
317 |
'default' => 'global',
|
318 |
),
|
@@ -320,7 +320,7 @@ class Give_MetaBox_Form_Data {
|
|
320 |
'name' => 'form_display_docs',
|
321 |
'type' => 'docs_link',
|
322 |
'url' => 'http://docs.givewp.com/form-display-options',
|
323 |
-
'title' =>
|
324 |
),
|
325 |
),
|
326 |
$post_id
|
@@ -333,24 +333,24 @@ class Give_MetaBox_Form_Data {
|
|
333 |
*/
|
334 |
'donation_goal_options' => apply_filters( 'give_donation_goal_options', array(
|
335 |
'id' => 'donation_goal_options',
|
336 |
-
'title' =>
|
337 |
'icon-html' => '<span class="give-icon give-icon-target"></span>',
|
338 |
'fields' => apply_filters( 'give_forms_donation_goal_metabox_fields', array(
|
339 |
// Goals
|
340 |
array(
|
341 |
-
'name' =>
|
342 |
-
'description' =>
|
343 |
'id' => $prefix . 'goal_option',
|
344 |
'type' => 'radio_inline',
|
345 |
'default' => 'disabled',
|
346 |
'options' => array(
|
347 |
-
'enabled' =>
|
348 |
-
'disabled' =>
|
349 |
),
|
350 |
),
|
351 |
array(
|
352 |
-
'name' =>
|
353 |
-
'description' =>
|
354 |
'id' => $prefix . 'set_goal',
|
355 |
'type' => 'text_small',
|
356 |
'data_type' => 'price',
|
@@ -362,33 +362,33 @@ class Give_MetaBox_Form_Data {
|
|
362 |
),
|
363 |
|
364 |
array(
|
365 |
-
'name' =>
|
366 |
-
'description' =>
|
367 |
'id' => $prefix . 'goal_format',
|
368 |
'type' => 'radio_inline',
|
369 |
'default' => 'amount',
|
370 |
'options' => array(
|
371 |
-
'amount' =>
|
372 |
-
'percentage' =>
|
373 |
),
|
374 |
),
|
375 |
array(
|
376 |
-
'name' =>
|
377 |
-
'desc' =>
|
378 |
'id' => $prefix . 'goal_color',
|
379 |
'type' => 'colorpicker',
|
380 |
'default' => '#2bc253',
|
381 |
),
|
382 |
|
383 |
array(
|
384 |
-
'name' =>
|
385 |
-
'desc' =>
|
386 |
'id' => $prefix . 'close_form_when_goal_achieved',
|
387 |
'type' => 'radio_inline',
|
388 |
'default' => 'disabled',
|
389 |
'options' => array(
|
390 |
-
'enabled' =>
|
391 |
-
'disabled' =>
|
392 |
),
|
393 |
),
|
394 |
array(
|
@@ -402,7 +402,7 @@ class Give_MetaBox_Form_Data {
|
|
402 |
'name' => 'donation_goal_docs',
|
403 |
'type' => 'docs_link',
|
404 |
'url' => 'http://docs.givewp.com/form-donation-goal',
|
405 |
-
'title' =>
|
406 |
),
|
407 |
),
|
408 |
$post_id
|
@@ -414,39 +414,39 @@ class Give_MetaBox_Form_Data {
|
|
414 |
*/
|
415 |
'form_content_options' => apply_filters( 'give_forms_content_options', array(
|
416 |
'id' => 'form_content_options',
|
417 |
-
'title' =>
|
418 |
'icon-html' => '<span class="give-icon give-icon-edit"></span>',
|
419 |
'fields' => apply_filters( 'give_forms_content_options_metabox_fields', array(
|
420 |
|
421 |
// Donation content.
|
422 |
array(
|
423 |
-
'name' =>
|
424 |
-
'description' =>
|
425 |
'id' => $prefix . 'display_content',
|
426 |
'type' => 'radio_inline',
|
427 |
'options' => array(
|
428 |
-
'enabled' =>
|
429 |
-
'disabled' =>
|
430 |
),
|
431 |
'default' => 'disabled',
|
432 |
),
|
433 |
|
434 |
// Content placement.
|
435 |
array(
|
436 |
-
'name' =>
|
437 |
-
'description' =>
|
438 |
'id' => $prefix . 'content_placement',
|
439 |
'type' => 'radio_inline',
|
440 |
'options' => apply_filters( 'give_forms_content_options_select', array(
|
441 |
-
'give_pre_form' =>
|
442 |
-
'give_post_form' =>
|
443 |
)
|
444 |
),
|
445 |
'default' => 'give_pre_form',
|
446 |
),
|
447 |
array(
|
448 |
-
'name' =>
|
449 |
-
'description' =>
|
450 |
'id' => $prefix . 'form_content',
|
451 |
'type' => 'wysiwyg',
|
452 |
),
|
@@ -454,7 +454,7 @@ class Give_MetaBox_Form_Data {
|
|
454 |
'name' => 'form_content_docs',
|
455 |
'type' => 'docs_link',
|
456 |
'url' => 'http://docs.givewp.com/form-content',
|
457 |
-
'title' =>
|
458 |
),
|
459 |
),
|
460 |
$post_id
|
@@ -466,27 +466,27 @@ class Give_MetaBox_Form_Data {
|
|
466 |
*/
|
467 |
'form_terms_options' => apply_filters( 'give_forms_terms_options', array(
|
468 |
'id' => 'form_terms_options',
|
469 |
-
'title' =>
|
470 |
'icon-html' => '<span class="give-icon give-icon-checklist"></span>',
|
471 |
'fields' => apply_filters( 'give_forms_terms_options_metabox_fields', array(
|
472 |
// Donation Option
|
473 |
array(
|
474 |
-
'name' =>
|
475 |
-
'description' =>
|
476 |
'id' => $prefix . 'terms_option',
|
477 |
'type' => 'radio_inline',
|
478 |
'options' => apply_filters( 'give_forms_content_options_select', array(
|
479 |
-
'global' =>
|
480 |
-
'enabled' =>
|
481 |
-
'disabled' =>
|
482 |
)
|
483 |
),
|
484 |
'default' => 'global',
|
485 |
),
|
486 |
array(
|
487 |
'id' => $prefix . 'agree_label',
|
488 |
-
'name' =>
|
489 |
-
'desc' =>
|
490 |
'type' => 'text',
|
491 |
'size' => 'regular',
|
492 |
'attributes' => array(
|
@@ -495,15 +495,16 @@ class Give_MetaBox_Form_Data {
|
|
495 |
),
|
496 |
array(
|
497 |
'id' => $prefix . 'agree_text',
|
498 |
-
'name' =>
|
499 |
-
'desc' =>
|
|
|
500 |
'type' => 'wysiwyg',
|
501 |
),
|
502 |
array(
|
503 |
'name' => 'terms_docs',
|
504 |
'type' => 'docs_link',
|
505 |
'url' => 'http://docs.givewp.com/form-terms',
|
506 |
-
'title' =>
|
507 |
),
|
508 |
),
|
509 |
$post_id
|
@@ -802,7 +803,7 @@ class Give_MetaBox_Form_Data {
|
|
802 |
case 'textarea':
|
803 |
case 'wysiwyg':
|
804 |
$form_meta_value = wp_kses_post( $_POST[ $form_meta_key ] );
|
805 |
-
|
806 |
break;
|
807 |
|
808 |
case 'group':
|
@@ -837,14 +838,14 @@ class Give_MetaBox_Form_Data {
|
|
837 |
$form_meta_value = array_values( $form_meta_value );
|
838 |
|
839 |
// Save data.
|
840 |
-
|
841 |
break;
|
842 |
|
843 |
default:
|
844 |
$form_meta_value = give_clean( $_POST[ $form_meta_key ] );
|
845 |
|
846 |
// Save data.
|
847 |
-
|
848 |
}
|
849 |
|
850 |
// Fire after saving form meta key.
|
@@ -1078,7 +1079,7 @@ class Give_MetaBox_Form_Data {
|
|
1078 |
if ( give_is_gateway_active( 'offline' ) ) {
|
1079 |
$settings['offline_donations_options'] = apply_filters( 'give_forms_offline_donations_options', array(
|
1080 |
'id' => 'offline_donations_options',
|
1081 |
-
'title' =>
|
1082 |
'icon-html' => '<span class="give-icon give-icon-purse"></span>',
|
1083 |
'fields' => apply_filters( 'give_forms_offline_donations_metabox_fields', array() ),
|
1084 |
) );
|
46 |
*/
|
47 |
function __construct() {
|
48 |
$this->metabox_id = 'give-metabox-form-data';
|
49 |
+
$this->metabox_label = __( 'Donation Form Options', 'give' );
|
50 |
|
51 |
// Setup.
|
52 |
add_action( 'admin_init', array( $this, 'setup' ) );
|
53 |
|
54 |
// Add metabox.
|
55 |
+
add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ), 10 );
|
56 |
|
57 |
// Save form meta.
|
58 |
add_action( 'save_post_give_forms', array( $this, 'save' ), 10, 2 );
|
106 |
*/
|
107 |
'form_field_options' => apply_filters( 'give_forms_field_options', array(
|
108 |
'id' => 'form_field_options',
|
109 |
+
'title' => __( 'Donation Options', 'give' ),
|
110 |
'icon-html' => '<span class="give-icon give-icon-heart"></span>',
|
111 |
'fields' => apply_filters( 'give_forms_donation_form_metabox_fields', array(
|
112 |
// Donation Option
|
113 |
array(
|
114 |
+
'name' => __( 'Donation Option', 'give' ),
|
115 |
+
'description' => __( 'Do you want this form to have one set donation price or multiple levels (for example, $10, $20, $50)?', 'give' ),
|
116 |
'id' => $prefix . 'price_option',
|
117 |
'type' => 'radio_inline',
|
118 |
'default' => 'set',
|
119 |
'options' => apply_filters( 'give_forms_price_options', array(
|
120 |
+
'set' => __( 'Set Donation', 'give' ),
|
121 |
+
'multi' => __( 'Multi-level Donation', 'give' ),
|
122 |
) ),
|
123 |
),
|
124 |
array(
|
125 |
+
'name' => __( 'Set Donation', 'give' ),
|
126 |
+
'description' => __( 'This is the set donation amount for this form. If you have a "Custom Amount Minimum" set, make sure it is less than this amount.', 'give' ),
|
127 |
'id' => $prefix . 'set_price',
|
128 |
'type' => 'text_small',
|
129 |
'data_type' => 'price',
|
135 |
),
|
136 |
// Display Style
|
137 |
array(
|
138 |
+
'name' => __( 'Display Style', 'give' ),
|
139 |
+
'description' => __( 'Set how the donations levels will display on the form.', 'give' ),
|
140 |
'id' => $prefix . 'display_style',
|
141 |
'type' => 'radio_inline',
|
142 |
'default' => 'buttons',
|
143 |
'options' => array(
|
144 |
+
'buttons' => __( 'Buttons', 'give' ),
|
145 |
+
'radios' => __( 'Radios', 'give' ),
|
146 |
+
'dropdown' => __( 'Dropdown', 'give' ),
|
147 |
),
|
148 |
),
|
149 |
// Custom Amount
|
150 |
array(
|
151 |
+
'name' => __( 'Custom Amount', 'give' ),
|
152 |
+
'description' => __( 'Do you want the user to be able to input their own donation amount?', 'give' ),
|
153 |
'id' => $prefix . 'custom_amount',
|
154 |
'type' => 'radio_inline',
|
155 |
'default' => 'disabled',
|
156 |
'options' => array(
|
157 |
+
'enabled' => __( 'Enabled', 'give' ),
|
158 |
+
'disabled' => __( 'Disabled', 'give' ),
|
159 |
),
|
160 |
),
|
161 |
array(
|
162 |
+
'name' => __( 'Minimum Amount', 'give' ),
|
163 |
+
'description' => __( 'Enter the minimum custom donation amount.', 'give' ),
|
164 |
'id' => $prefix . 'custom_amount_minimum',
|
165 |
'type' => 'text_small',
|
166 |
'data_type' => 'price',
|
171 |
),
|
172 |
),
|
173 |
array(
|
174 |
+
'name' => __( 'Custom Amount Text', 'give' ),
|
175 |
+
'description' => __( 'This text appears as a label below the custom amount field for set donation forms. For multi-level forms the text will appear as it\'s own level (ie button, radio, or select option).', 'give' ),
|
176 |
'id' => $prefix . 'custom_amount_text',
|
177 |
'type' => 'text_medium',
|
178 |
'attributes' => array(
|
185 |
'id' => $prefix . 'donation_levels',
|
186 |
'type' => 'group',
|
187 |
'options' => array(
|
188 |
+
'add_button' => __( 'Add Level', 'give' ),
|
189 |
+
'header_title' => __( 'Donation Level', 'give' ),
|
190 |
'remove_button' => '<span class="dashicons dashicons-no"></span>',
|
191 |
),
|
192 |
// Fields array works the same, except id's only need to be unique for this group.
|
193 |
// Prefix is not needed.
|
194 |
'fields' => apply_filters( 'give_donation_levels_table_row', array(
|
195 |
array(
|
196 |
+
'name' => __( 'ID', 'give' ),
|
197 |
'id' => $prefix . 'id',
|
198 |
'type' => 'levels_id',
|
199 |
),
|
200 |
array(
|
201 |
+
'name' => __( 'Amount', 'give' ),
|
202 |
'id' => $prefix . 'amount',
|
203 |
'type' => 'text_small',
|
204 |
'data_type' => 'price',
|
208 |
),
|
209 |
),
|
210 |
array(
|
211 |
+
'name' => __( 'Text', 'give' ),
|
212 |
'id' => $prefix . 'text',
|
213 |
'type' => 'text',
|
214 |
'attributes' => array(
|
215 |
+
'placeholder' => __( 'Donation Level', 'give' ),
|
216 |
'class' => 'give-multilevel-text-field',
|
217 |
),
|
218 |
),
|
219 |
array(
|
220 |
+
'name' => __( 'Default', 'give' ),
|
221 |
'id' => $prefix . 'default',
|
222 |
'type' => 'give_default_radio_inline',
|
223 |
),
|
227 |
'name' => 'donation_options_docs',
|
228 |
'type' => 'docs_link',
|
229 |
'url' => 'http://docs.givewp.com/form-donation-options',
|
230 |
+
'title' => __( 'Donation Options', 'give' ),
|
231 |
),
|
232 |
),
|
233 |
$post_id
|
239 |
*/
|
240 |
'form_display_options' => apply_filters( 'give_form_display_options', array(
|
241 |
'id' => 'form_display_options',
|
242 |
+
'title' => __( 'Form Display', 'give' ),
|
243 |
'icon-html' => '<span class="give-icon give-icon-display"></span>',
|
244 |
'fields' => apply_filters( 'give_forms_display_options_metabox_fields', array(
|
245 |
array(
|
246 |
+
'name' => __( 'Display Options', 'give' ),
|
247 |
'desc' => sprintf( __( 'How would you like to display donation information for this form?', 'give' ), '#' ),
|
248 |
'id' => $prefix . 'payment_display',
|
249 |
'type' => 'radio_inline',
|
250 |
'options' => array(
|
251 |
+
'onpage' => __( 'All Fields', 'give' ),
|
252 |
+
'modal' => __( 'Modal', 'give' ),
|
253 |
+
'reveal' => __( 'Reveal', 'give' ),
|
254 |
+
'button' => __( 'Button', 'give' ),
|
255 |
),
|
256 |
'default' => 'onpage',
|
257 |
),
|
258 |
array(
|
259 |
'id' => $prefix . 'reveal_label',
|
260 |
+
'name' => __( 'Continue Button', 'give' ),
|
261 |
+
'desc' => __( 'The button label for displaying the additional payment fields.', 'give' ),
|
262 |
'type' => 'text_small',
|
263 |
'attributes' => array(
|
264 |
'placeholder' => esc_attr__( 'Donate Now', 'give' ),
|
266 |
),
|
267 |
array(
|
268 |
'id' => $prefix . 'checkout_label',
|
269 |
+
'name' => __( 'Submit Button', 'give' ),
|
270 |
+
'desc' => __( 'The button label for completing a donation.', 'give' ),
|
271 |
'type' => 'text_small',
|
272 |
'attributes' => array(
|
273 |
+
'placeholder' => __( 'Donate Now', 'give' ),
|
274 |
),
|
275 |
),
|
276 |
array(
|
277 |
+
'name' => __( 'Default Gateway', 'give' ),
|
278 |
+
'desc' => __( 'By default, the gateway for this form will inherit the global default gateway (set under Give > Settings > Payment Gateways). This option allows you to customize the default gateway for this form only.', 'give' ),
|
279 |
'id' => $prefix . 'default_gateway',
|
280 |
'type' => 'default_gateway',
|
281 |
),
|
282 |
array(
|
283 |
+
'name' => __( 'Guest Donations', 'give' ),
|
284 |
+
'desc' => __( 'Do you want to allow non-logged-in users to make donations?', 'give' ),
|
285 |
'id' => $prefix . 'logged_in_only',
|
286 |
'type' => 'radio_inline',
|
287 |
'default' => 'enabled',
|
288 |
'options' => array(
|
289 |
+
'enabled' => __( 'Enabled', 'give' ),
|
290 |
+
'disabled' => __( 'Disabled', 'give' ),
|
291 |
),
|
292 |
),
|
293 |
array(
|
294 |
+
'name' => __( 'Registration', 'give' ),
|
295 |
+
'desc' => __( 'Display the registration and login forms in the payment section for non-logged-in users.', 'give' ),
|
296 |
'id' => $prefix . 'show_register_form',
|
297 |
'type' => 'radio',
|
298 |
'options' => array(
|
299 |
+
'none' => __( 'None', 'give' ),
|
300 |
+
'registration' => __( 'Registration', 'give' ),
|
301 |
+
'login' => __( 'Login', 'give' ),
|
302 |
+
'both' => __( 'Registration + Login', 'give' ),
|
303 |
),
|
304 |
'default' => 'none',
|
305 |
),
|
306 |
array(
|
307 |
+
'name' => __( 'Floating Labels', 'give' ),
|
308 |
/* translators: %s: forms http://docs.givewp.com/form-floating-labels */
|
309 |
'desc' => sprintf( __( 'Select the <a href="%s" target="_blank">floating labels</a> setting for this Give form. Be aware that if you have the "Disable CSS" option enabled, you will need to style the floating labels yourself.', 'give' ), esc_url( 'http://docs.givewp.com/form-floating-labels' ) ),
|
310 |
'id' => $prefix . 'form_floating_labels',
|
311 |
'type' => 'radio_inline',
|
312 |
'options' => array(
|
313 |
+
'global' => __( 'Global Option', 'give' ),
|
314 |
+
'enabled' => __( 'Enabled', 'give' ),
|
315 |
+
'disabled' => __( 'Disabled', 'give' ),
|
316 |
),
|
317 |
'default' => 'global',
|
318 |
),
|
320 |
'name' => 'form_display_docs',
|
321 |
'type' => 'docs_link',
|
322 |
'url' => 'http://docs.givewp.com/form-display-options',
|
323 |
+
'title' => __( 'Form Display', 'give' ),
|
324 |
),
|
325 |
),
|
326 |
$post_id
|
333 |
*/
|
334 |
'donation_goal_options' => apply_filters( 'give_donation_goal_options', array(
|
335 |
'id' => 'donation_goal_options',
|
336 |
+
'title' => __( 'Donation Goal', 'give' ),
|
337 |
'icon-html' => '<span class="give-icon give-icon-target"></span>',
|
338 |
'fields' => apply_filters( 'give_forms_donation_goal_metabox_fields', array(
|
339 |
// Goals
|
340 |
array(
|
341 |
+
'name' => __( 'Donation Goal', 'give' ),
|
342 |
+
'description' => __( 'Do you want to set a donation goal for this form?', 'give' ),
|
343 |
'id' => $prefix . 'goal_option',
|
344 |
'type' => 'radio_inline',
|
345 |
'default' => 'disabled',
|
346 |
'options' => array(
|
347 |
+
'enabled' => __( 'Enabled', 'give' ),
|
348 |
+
'disabled' => __( 'Disabled', 'give' ),
|
349 |
),
|
350 |
),
|
351 |
array(
|
352 |
+
'name' => __( 'Goal Amount', 'give' ),
|
353 |
+
'description' => __( 'This is the monetary goal amount you want to reach for this form.', 'give' ),
|
354 |
'id' => $prefix . 'set_goal',
|
355 |
'type' => 'text_small',
|
356 |
'data_type' => 'price',
|
362 |
),
|
363 |
|
364 |
array(
|
365 |
+
'name' => __( 'Goal Format', 'give' ),
|
366 |
+
'description' => __( 'Do you want to display the total amount raised based on your monetary goal or a percentage? For instance, "$500 of $1,000 raised" or "50% funded".', 'give' ),
|
367 |
'id' => $prefix . 'goal_format',
|
368 |
'type' => 'radio_inline',
|
369 |
'default' => 'amount',
|
370 |
'options' => array(
|
371 |
+
'amount' => __( 'Amount', 'give' ),
|
372 |
+
'percentage' => __( 'Percentage', 'give' ),
|
373 |
),
|
374 |
),
|
375 |
array(
|
376 |
+
'name' => __( 'Progress Bar Color', 'give' ),
|
377 |
+
'desc' => __( 'Customize the color of the goal progress bar.', 'give' ),
|
378 |
'id' => $prefix . 'goal_color',
|
379 |
'type' => 'colorpicker',
|
380 |
'default' => '#2bc253',
|
381 |
),
|
382 |
|
383 |
array(
|
384 |
+
'name' => __( 'Close Form', 'give' ),
|
385 |
+
'desc' => __( 'Do you want to close the donation forms and stop accepting donations once this goal has been met?', 'give' ),
|
386 |
'id' => $prefix . 'close_form_when_goal_achieved',
|
387 |
'type' => 'radio_inline',
|
388 |
'default' => 'disabled',
|
389 |
'options' => array(
|
390 |
+
'enabled' => __( 'Enabled', 'give' ),
|
391 |
+
'disabled' => __( 'Disabled', 'give' ),
|
392 |
),
|
393 |
),
|
394 |
array(
|
402 |
'name' => 'donation_goal_docs',
|
403 |
'type' => 'docs_link',
|
404 |
'url' => 'http://docs.givewp.com/form-donation-goal',
|
405 |
+
'title' => __( 'Donation Goal', 'give' ),
|
406 |
),
|
407 |
),
|
408 |
$post_id
|
414 |
*/
|
415 |
'form_content_options' => apply_filters( 'give_forms_content_options', array(
|
416 |
'id' => 'form_content_options',
|
417 |
+
'title' => __( 'Form Content', 'give' ),
|
418 |
'icon-html' => '<span class="give-icon give-icon-edit"></span>',
|
419 |
'fields' => apply_filters( 'give_forms_content_options_metabox_fields', array(
|
420 |
|
421 |
// Donation content.
|
422 |
array(
|
423 |
+
'name' => __( 'Display Content', 'give' ),
|
424 |
+
'description' => __( 'Do you want to add custom content to this form?', 'give' ),
|
425 |
'id' => $prefix . 'display_content',
|
426 |
'type' => 'radio_inline',
|
427 |
'options' => array(
|
428 |
+
'enabled' => __( 'Enabled', 'give' ),
|
429 |
+
'disabled' => __( 'Disabled', 'give' ),
|
430 |
),
|
431 |
'default' => 'disabled',
|
432 |
),
|
433 |
|
434 |
// Content placement.
|
435 |
array(
|
436 |
+
'name' => __( 'Content Placement', 'give' ),
|
437 |
+
'description' => __( 'This option controls where the content appears within the donation form.', 'give' ),
|
438 |
'id' => $prefix . 'content_placement',
|
439 |
'type' => 'radio_inline',
|
440 |
'options' => apply_filters( 'give_forms_content_options_select', array(
|
441 |
+
'give_pre_form' => __( 'Above fields', 'give' ),
|
442 |
+
'give_post_form' => __( 'Below fields', 'give' ),
|
443 |
)
|
444 |
),
|
445 |
'default' => 'give_pre_form',
|
446 |
),
|
447 |
array(
|
448 |
+
'name' => __( 'Content', 'give' ),
|
449 |
+
'description' => __( 'This content will display on the single give form page.', 'give' ),
|
450 |
'id' => $prefix . 'form_content',
|
451 |
'type' => 'wysiwyg',
|
452 |
),
|
454 |
'name' => 'form_content_docs',
|
455 |
'type' => 'docs_link',
|
456 |
'url' => 'http://docs.givewp.com/form-content',
|
457 |
+
'title' => __( 'Form Content', 'give' ),
|
458 |
),
|
459 |
),
|
460 |
$post_id
|
466 |
*/
|
467 |
'form_terms_options' => apply_filters( 'give_forms_terms_options', array(
|
468 |
'id' => 'form_terms_options',
|
469 |
+
'title' => __( 'Terms & Conditions', 'give' ),
|
470 |
'icon-html' => '<span class="give-icon give-icon-checklist"></span>',
|
471 |
'fields' => apply_filters( 'give_forms_terms_options_metabox_fields', array(
|
472 |
// Donation Option
|
473 |
array(
|
474 |
+
'name' => __( 'Terms and Conditions', 'give' ),
|
475 |
+
'description' => __( 'Do you want to require the donor to accept terms prior to being able to complete their donation?', 'give' ),
|
476 |
'id' => $prefix . 'terms_option',
|
477 |
'type' => 'radio_inline',
|
478 |
'options' => apply_filters( 'give_forms_content_options_select', array(
|
479 |
+
'global' => __( 'Global Option', 'give' ),
|
480 |
+
'enabled' => __( 'Customize', 'give' ),
|
481 |
+
'disabled' => __( 'Disable', 'give' ),
|
482 |
)
|
483 |
),
|
484 |
'default' => 'global',
|
485 |
),
|
486 |
array(
|
487 |
'id' => $prefix . 'agree_label',
|
488 |
+
'name' => __( 'Agreement Label', 'give' ),
|
489 |
+
'desc' => __( 'The label shown next to the agree to terms check box. Add your own to customize or leave blank to use the default text placeholder.', 'give' ),
|
490 |
'type' => 'text',
|
491 |
'size' => 'regular',
|
492 |
'attributes' => array(
|
495 |
),
|
496 |
array(
|
497 |
'id' => $prefix . 'agree_text',
|
498 |
+
'name' => __( 'Agreement Text', 'give' ),
|
499 |
+
'desc' => __( 'This is the actual text which the user will have to agree to in order to make a donation.', 'give' ),
|
500 |
+
'default' => give_get_option('agreement_text'),
|
501 |
'type' => 'wysiwyg',
|
502 |
),
|
503 |
array(
|
504 |
'name' => 'terms_docs',
|
505 |
'type' => 'docs_link',
|
506 |
'url' => 'http://docs.givewp.com/form-terms',
|
507 |
+
'title' => __( 'Terms and Conditions', 'give' ),
|
508 |
),
|
509 |
),
|
510 |
$post_id
|
803 |
case 'textarea':
|
804 |
case 'wysiwyg':
|
805 |
$form_meta_value = wp_kses_post( $_POST[ $form_meta_key ] );
|
806 |
+
give_update_meta( $post_id, $form_meta_key, $form_meta_value );
|
807 |
break;
|
808 |
|
809 |
case 'group':
|
838 |
$form_meta_value = array_values( $form_meta_value );
|
839 |
|
840 |
// Save data.
|
841 |
+
give_update_meta( $post_id, $form_meta_key, $form_meta_value );
|
842 |
break;
|
843 |
|
844 |
default:
|
845 |
$form_meta_value = give_clean( $_POST[ $form_meta_key ] );
|
846 |
|
847 |
// Save data.
|
848 |
+
give_update_meta( $post_id, $form_meta_key, $form_meta_value );
|
849 |
}
|
850 |
|
851 |
// Fire after saving form meta key.
|
1079 |
if ( give_is_gateway_active( 'offline' ) ) {
|
1080 |
$settings['offline_donations_options'] = apply_filters( 'give_forms_offline_donations_options', array(
|
1081 |
'id' => 'offline_donations_options',
|
1082 |
+
'title' => __( 'Offline Donations', 'give' ),
|
1083 |
'icon-html' => '<span class="give-icon give-icon-purse"></span>',
|
1084 |
'fields' => apply_filters( 'give_forms_offline_donations_metabox_fields', array() ),
|
1085 |
) );
|
includes/admin/forms/dashboard-columns.php
CHANGED
@@ -85,7 +85,7 @@ function give_render_form_columns( $column_name, $post_id ) {
|
|
85 |
}
|
86 |
break;
|
87 |
case 'goal':
|
88 |
-
if ( give_is_setting_enabled(
|
89 |
echo give_goal( $post_id, false );
|
90 |
} else {
|
91 |
esc_html_e( 'No Goal Set', 'give' );
|
@@ -309,7 +309,7 @@ function give_price_save_quick_edit( $post_id ) {
|
|
309 |
}
|
310 |
|
311 |
if ( isset( $_REQUEST['_give_regprice'] ) ) {
|
312 |
-
|
313 |
}
|
314 |
}
|
315 |
|
@@ -334,7 +334,7 @@ function give_save_bulk_edit() {
|
|
334 |
}
|
335 |
|
336 |
if ( ! empty( $price ) ) {
|
337 |
-
|
338 |
}
|
339 |
}
|
340 |
}
|
85 |
}
|
86 |
break;
|
87 |
case 'goal':
|
88 |
+
if ( give_is_setting_enabled( give_get_meta( $post_id, '_give_goal_option', true ) ) ) {
|
89 |
echo give_goal( $post_id, false );
|
90 |
} else {
|
91 |
esc_html_e( 'No Goal Set', 'give' );
|
309 |
}
|
310 |
|
311 |
if ( isset( $_REQUEST['_give_regprice'] ) ) {
|
312 |
+
give_update_meta( $post_id, '_give_set_price', strip_tags( stripslashes( $_REQUEST['_give_regprice'] ) ) );
|
313 |
}
|
314 |
}
|
315 |
|
334 |
}
|
335 |
|
336 |
if ( ! empty( $price ) ) {
|
337 |
+
give_update_meta( $post_id, '_give_set_price', give_sanitize_amount( $price ) );
|
338 |
}
|
339 |
}
|
340 |
}
|
includes/admin/give-metabox-functions.php
CHANGED
@@ -705,7 +705,7 @@ function give_docs_link( $field ) {
|
|
705 |
|
706 |
echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] )
|
707 |
. '" target="_blank">'
|
708 |
-
. sprintf( esc_html__( 'Need Help? See docs on "%s"' ), $field['title'] )
|
709 |
. '<span class="dashicons dashicons-editor-help"></span></a></p>';
|
710 |
}
|
711 |
|
@@ -727,7 +727,7 @@ function give_get_field_value( $field, $postid ) {
|
|
727 |
}
|
728 |
|
729 |
// Get value from db.
|
730 |
-
$field_value =
|
731 |
|
732 |
/**
|
733 |
* Filter the field value before apply default value.
|
@@ -758,8 +758,18 @@ function give_get_field_value( $field, $postid ) {
|
|
758 |
*/
|
759 |
function give_get_field_description( $field ) {
|
760 |
$field_desc_html = '';
|
761 |
-
|
762 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
763 |
}
|
764 |
|
765 |
return $field_desc_html;
|
@@ -926,7 +936,7 @@ function _give_metabox_form_data_repeater_fields( $fields ) {
|
|
926 |
|
927 |
<table class="give-repeatable-fields-section-wrapper" cellspacing="0">
|
928 |
<?php
|
929 |
-
$repeater_field_values =
|
930 |
$header_title = isset( $fields['options']['header_title'] )
|
931 |
? $fields['options']['header_title']
|
932 |
: esc_attr__( 'Group', 'give' );
|
@@ -1143,10 +1153,10 @@ function give_get_current_setting_page() {
|
|
1143 |
* @return string
|
1144 |
*/
|
1145 |
function _give_display_content_field_value( $field_value, $field, $postid ) {
|
1146 |
-
$show_content =
|
1147 |
|
1148 |
if (
|
1149 |
-
!
|
1150 |
&& $show_content
|
1151 |
&& ( 'none' !== $show_content )
|
1152 |
) {
|
@@ -1174,10 +1184,10 @@ add_filter( '_give_display_content_field_value', '_give_display_content_field_va
|
|
1174 |
* @return string
|
1175 |
*/
|
1176 |
function _give_content_placement_field_value( $field_value, $field, $postid ) {
|
1177 |
-
$show_content =
|
1178 |
|
1179 |
if (
|
1180 |
-
!
|
1181 |
&& ( 'none' !== $show_content )
|
1182 |
) {
|
1183 |
$field_value = $show_content;
|
@@ -1203,7 +1213,7 @@ add_filter( '_give_content_placement_field_value', '_give_content_placement_fiel
|
|
1203 |
* @return string
|
1204 |
*/
|
1205 |
function _give_terms_option_field_value( $field_value, $field, $postid ) {
|
1206 |
-
$term_option =
|
1207 |
|
1208 |
if ( in_array( $term_option, array( 'none', 'yes' ) ) ) {
|
1209 |
$field_value = ( 'yes' === $term_option ? 'enabled' : 'disabled' );
|
@@ -1230,7 +1240,7 @@ add_filter( '_give_terms_option_field_value', '_give_terms_option_field_value',
|
|
1230 |
* @return string
|
1231 |
*/
|
1232 |
function _give_offline_donation_enable_billing_fields_single_field_value( $field_value, $field, $postid ) {
|
1233 |
-
$offline_donation =
|
1234 |
|
1235 |
if ( 'on' === $offline_donation ) {
|
1236 |
$field_value = 'enabled';
|
@@ -1256,7 +1266,7 @@ add_filter( '_give_offline_donation_enable_billing_fields_single_field_value', '
|
|
1256 |
* @return string
|
1257 |
*/
|
1258 |
function _give_custom_amount_field_value( $field_value, $field, $postid ) {
|
1259 |
-
$custom_amount =
|
1260 |
|
1261 |
if ( in_array( $custom_amount, array( 'yes', 'no' ) ) ) {
|
1262 |
$field_value = ( 'yes' === $custom_amount ? 'enabled' : 'disabled' );
|
@@ -1282,7 +1292,7 @@ add_filter( '_give_custom_amount_field_value', '_give_custom_amount_field_value'
|
|
1282 |
* @return string
|
1283 |
*/
|
1284 |
function _give_goal_option_field_value( $field_value, $field, $postid ) {
|
1285 |
-
$goal_option =
|
1286 |
|
1287 |
if ( in_array( $goal_option, array( 'yes', 'no' ) ) ) {
|
1288 |
$field_value = ( 'yes' === $goal_option ? 'enabled' : 'disabled' );
|
@@ -1308,7 +1318,7 @@ add_filter( '_give_goal_option_field_value', '_give_goal_option_field_value', 10
|
|
1308 |
* @return string
|
1309 |
*/
|
1310 |
function _give_close_form_when_goal_achieved_value( $field_value, $field, $postid ) {
|
1311 |
-
$close_form =
|
1312 |
|
1313 |
if ( in_array( $close_form, array( 'yes', 'no' ) ) ) {
|
1314 |
$field_value = ( 'yes' === $close_form ? 'enabled' : 'disabled' );
|
@@ -1334,7 +1344,7 @@ add_filter( '_give_close_form_when_goal_achieved_field_value', '_give_close_form
|
|
1334 |
* @return string
|
1335 |
*/
|
1336 |
function _give_logged_in_only_value( $field_value, $field, $postid ) {
|
1337 |
-
$guest_donation =
|
1338 |
|
1339 |
if ( in_array( $guest_donation, array( 'yes', 'no' ) ) ) {
|
1340 |
$field_value = ( 'yes' === $guest_donation ? 'enabled' : 'disabled' );
|
@@ -1360,7 +1370,7 @@ add_filter( '_give_logged_in_only_field_value', '_give_logged_in_only_value', 10
|
|
1360 |
* @return string
|
1361 |
*/
|
1362 |
function _give_customize_offline_donations_value( $field_value, $field, $postid ) {
|
1363 |
-
$customize_offline_text =
|
1364 |
|
1365 |
if ( in_array( $customize_offline_text, array( 'yes', 'no' ) ) ) {
|
1366 |
$field_value = ( 'yes' === $customize_offline_text ? 'enabled' : 'disabled' );
|
705 |
|
706 |
echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] )
|
707 |
. '" target="_blank">'
|
708 |
+
. sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] )
|
709 |
. '<span class="dashicons dashicons-editor-help"></span></a></p>';
|
710 |
}
|
711 |
|
727 |
}
|
728 |
|
729 |
// Get value from db.
|
730 |
+
$field_value = give_get_meta( $postid, $field['id'], true );
|
731 |
|
732 |
/**
|
733 |
* Filter the field value before apply default value.
|
758 |
*/
|
759 |
function give_get_field_description( $field ) {
|
760 |
$field_desc_html = '';
|
761 |
+
$description = '';
|
762 |
+
|
763 |
+
// Check for both `description` and `desc`.
|
764 |
+
if ( isset( $field['description'] ) ) {
|
765 |
+
$description = $field['description'];
|
766 |
+
} elseif ( isset( $field['desc'] ) ) {
|
767 |
+
$description = $field['desc'];
|
768 |
+
}
|
769 |
+
|
770 |
+
// Set if there is a description.
|
771 |
+
if ( ! empty( $description ) ) {
|
772 |
+
$field_desc_html = '<span class="give-field-description">' . wp_kses_post( $description ) . '</span>';
|
773 |
}
|
774 |
|
775 |
return $field_desc_html;
|
936 |
|
937 |
<table class="give-repeatable-fields-section-wrapper" cellspacing="0">
|
938 |
<?php
|
939 |
+
$repeater_field_values = give_get_meta( $thepostid, $fields['id'], true );
|
940 |
$header_title = isset( $fields['options']['header_title'] )
|
941 |
? $fields['options']['header_title']
|
942 |
: esc_attr__( 'Group', 'give' );
|
1153 |
* @return string
|
1154 |
*/
|
1155 |
function _give_display_content_field_value( $field_value, $field, $postid ) {
|
1156 |
+
$show_content = give_get_meta( $postid, '_give_content_option', true );
|
1157 |
|
1158 |
if (
|
1159 |
+
! give_get_meta( $postid, '_give_display_content', true )
|
1160 |
&& $show_content
|
1161 |
&& ( 'none' !== $show_content )
|
1162 |
) {
|
1184 |
* @return string
|
1185 |
*/
|
1186 |
function _give_content_placement_field_value( $field_value, $field, $postid ) {
|
1187 |
+
$show_content = give_get_meta( $postid, '_give_content_option', true );
|
1188 |
|
1189 |
if (
|
1190 |
+
! give_get_meta( $postid, '_give_content_placement', true )
|
1191 |
&& ( 'none' !== $show_content )
|
1192 |
) {
|
1193 |
$field_value = $show_content;
|
1213 |
* @return string
|
1214 |
*/
|
1215 |
function _give_terms_option_field_value( $field_value, $field, $postid ) {
|
1216 |
+
$term_option = give_get_meta( $postid, '_give_terms_option', true );
|
1217 |
|
1218 |
if ( in_array( $term_option, array( 'none', 'yes' ) ) ) {
|
1219 |
$field_value = ( 'yes' === $term_option ? 'enabled' : 'disabled' );
|
1240 |
* @return string
|
1241 |
*/
|
1242 |
function _give_offline_donation_enable_billing_fields_single_field_value( $field_value, $field, $postid ) {
|
1243 |
+
$offline_donation = give_get_meta( $postid, '_give_offline_donation_enable_billing_fields_single', true );
|
1244 |
|
1245 |
if ( 'on' === $offline_donation ) {
|
1246 |
$field_value = 'enabled';
|
1266 |
* @return string
|
1267 |
*/
|
1268 |
function _give_custom_amount_field_value( $field_value, $field, $postid ) {
|
1269 |
+
$custom_amount = give_get_meta( $postid, '_give_custom_amount', true );
|
1270 |
|
1271 |
if ( in_array( $custom_amount, array( 'yes', 'no' ) ) ) {
|
1272 |
$field_value = ( 'yes' === $custom_amount ? 'enabled' : 'disabled' );
|
1292 |
* @return string
|
1293 |
*/
|
1294 |
function _give_goal_option_field_value( $field_value, $field, $postid ) {
|
1295 |
+
$goal_option = give_get_meta( $postid, '_give_goal_option', true );
|
1296 |
|
1297 |
if ( in_array( $goal_option, array( 'yes', 'no' ) ) ) {
|
1298 |
$field_value = ( 'yes' === $goal_option ? 'enabled' : 'disabled' );
|
1318 |
* @return string
|
1319 |
*/
|
1320 |
function _give_close_form_when_goal_achieved_value( $field_value, $field, $postid ) {
|
1321 |
+
$close_form = give_get_meta( $postid, '_give_close_form_when_goal_achieved', true );
|
1322 |
|
1323 |
if ( in_array( $close_form, array( 'yes', 'no' ) ) ) {
|
1324 |
$field_value = ( 'yes' === $close_form ? 'enabled' : 'disabled' );
|
1344 |
* @return string
|
1345 |
*/
|
1346 |
function _give_logged_in_only_value( $field_value, $field, $postid ) {
|
1347 |
+
$guest_donation = give_get_meta( $postid, '_give_logged_in_only', true );
|
1348 |
|
1349 |
if ( in_array( $guest_donation, array( 'yes', 'no' ) ) ) {
|
1350 |
$field_value = ( 'yes' === $guest_donation ? 'enabled' : 'disabled' );
|
1370 |
* @return string
|
1371 |
*/
|
1372 |
function _give_customize_offline_donations_value( $field_value, $field, $postid ) {
|
1373 |
+
$customize_offline_text = give_get_meta( $postid, '_give_customize_offline_donations', true );
|
1374 |
|
1375 |
if ( in_array( $customize_offline_text, array( 'yes', 'no' ) ) ) {
|
1376 |
$field_value = ( 'yes' === $customize_offline_text ? 'enabled' : 'disabled' );
|
includes/admin/payments/actions.php
CHANGED
@@ -212,7 +212,7 @@ function give_update_payment_details( $data ) {
|
|
212 |
$payment->save();
|
213 |
|
214 |
// Get new give form ID.
|
215 |
-
$new_form_id = absint( $data['
|
216 |
$current_form_id = absint( $payment->get_meta( '_give_payment_form_id' ) );
|
217 |
|
218 |
// We are adding payment transfer code in last to remove any conflict with above functionality.
|
212 |
$payment->save();
|
213 |
|
214 |
// Get new give form ID.
|
215 |
+
$new_form_id = absint( $data['give-payment-form-select'] );
|
216 |
$current_form_id = absint( $payment->get_meta( '_give_payment_form_id' ) );
|
217 |
|
218 |
// We are adding payment transfer code in last to remove any conflict with above functionality.
|
includes/admin/payments/class-payments-table.php
CHANGED
@@ -336,7 +336,7 @@ class Give_Payment_History_Table extends WP_List_Table {
|
|
336 |
$value = sprintf(
|
337 |
'<a href="%1$s" data-tooltip="%2$s">#%3$s</a> %4$s %5$s<br>',
|
338 |
$single_donation_url,
|
339 |
-
sprintf( esc_attr__( 'View Donation
|
340 |
$payment->ID,
|
341 |
esc_html__( 'by', 'give' ),
|
342 |
$this->get_donor( $payment )
|
@@ -348,6 +348,11 @@ class Give_Payment_History_Table extends WP_List_Table {
|
|
348 |
case 'amount' :
|
349 |
$amount = ! empty( $payment->total ) ? $payment->total : 0;
|
350 |
$value = give_currency_filter( give_format_amount( $amount ), give_get_payment_currency_code( $payment->ID ) );
|
|
|
|
|
|
|
|
|
|
|
351 |
break;
|
352 |
|
353 |
case 'donation_form' :
|
@@ -374,7 +379,7 @@ class Give_Payment_History_Table extends WP_List_Table {
|
|
374 |
$value = sprintf(
|
375 |
'<div class="give-payment-details-link-wrap"><a href="%1$s" class="give-payment-details-link button button-small" data-tooltip="%2$s" aria-label="%2$s"><span class="dashicons dashicons-visibility"></span></a></div>',
|
376 |
$single_donation_url,
|
377 |
-
sprintf( esc_attr__( 'View Donation
|
378 |
);
|
379 |
break;
|
380 |
|
336 |
$value = sprintf(
|
337 |
'<a href="%1$s" data-tooltip="%2$s">#%3$s</a> %4$s %5$s<br>',
|
338 |
$single_donation_url,
|
339 |
+
sprintf( esc_attr__( 'View Donation #%s', 'give' ), $payment->ID ),
|
340 |
$payment->ID,
|
341 |
esc_html__( 'by', 'give' ),
|
342 |
$this->get_donor( $payment )
|
348 |
case 'amount' :
|
349 |
$amount = ! empty( $payment->total ) ? $payment->total : 0;
|
350 |
$value = give_currency_filter( give_format_amount( $amount ), give_get_payment_currency_code( $payment->ID ) );
|
351 |
+
$value .= sprintf(
|
352 |
+
'<br><small>%1$s %2$s</small>',
|
353 |
+
__( 'via', 'give' ),
|
354 |
+
give_get_gateway_admin_label( $payment->gateway )
|
355 |
+
);
|
356 |
break;
|
357 |
|
358 |
case 'donation_form' :
|
379 |
$value = sprintf(
|
380 |
'<div class="give-payment-details-link-wrap"><a href="%1$s" class="give-payment-details-link button button-small" data-tooltip="%2$s" aria-label="%2$s"><span class="dashicons dashicons-visibility"></span></a></div>',
|
381 |
$single_donation_url,
|
382 |
+
sprintf( esc_attr__( 'View Donation #%s', 'give' ), $payment->ID )
|
383 |
);
|
384 |
break;
|
385 |
|
includes/admin/payments/view-order-details.php
CHANGED
@@ -367,11 +367,12 @@ $payment_mode = $payment->mode;
|
|
367 |
</p>
|
368 |
<p>
|
369 |
<strong><?php esc_html_e( 'Donation Form Title:', 'give' ); ?></strong><br>
|
370 |
-
<?php
|
371 |
-
'id' => $payment_meta['form_id'],
|
372 |
'selected' => $payment_meta['form_id'],
|
373 |
-
'
|
374 |
-
|
|
|
|
|
375 |
</p>
|
376 |
</div>
|
377 |
<div class="column">
|
@@ -413,7 +414,7 @@ $payment_mode = $payment->mode;
|
|
413 |
<div class="column">
|
414 |
<p>
|
415 |
<strong><?php esc_html_e( 'Total Donation:', 'give' ); ?></strong><br>
|
416 |
-
<?php echo
|
417 |
</p>
|
418 |
<p>
|
419 |
<?php
|
@@ -640,6 +641,7 @@ $payment_mode = $payment->mode;
|
|
640 |
'show_option_none' => false,
|
641 |
'chosen' => true,
|
642 |
'placeholder' => esc_attr__( 'Select a country', 'give' ),
|
|
|
643 |
) );
|
644 |
?>
|
645 |
</div>
|
@@ -656,6 +658,7 @@ $payment_mode = $payment->mode;
|
|
656 |
'show_option_none' => false,
|
657 |
'chosen' => true,
|
658 |
'placeholder' => esc_attr__( 'Select a state', 'give' ),
|
|
|
659 |
) );
|
660 |
} else {
|
661 |
?>
|
367 |
</p>
|
368 |
<p>
|
369 |
<strong><?php esc_html_e( 'Donation Form Title:', 'give' ); ?></strong><br>
|
370 |
+
<?php echo Give()->html->forms_dropdown( array(
|
|
|
371 |
'selected' => $payment_meta['form_id'],
|
372 |
+
'name' => 'give-payment-form-select',
|
373 |
+
'id' => 'give-payment-form-select',
|
374 |
+
'chosen' => true,
|
375 |
+
) ); ?>
|
376 |
</p>
|
377 |
</div>
|
378 |
<div class="column">
|
414 |
<div class="column">
|
415 |
<p>
|
416 |
<strong><?php esc_html_e( 'Total Donation:', 'give' ); ?></strong><br>
|
417 |
+
<?php echo give_currency_filter( give_format_amount( $payment->total ), give_get_payment_currency_code( $payment->ID ) ); ?>
|
418 |
</p>
|
419 |
<p>
|
420 |
<?php
|
641 |
'show_option_none' => false,
|
642 |
'chosen' => true,
|
643 |
'placeholder' => esc_attr__( 'Select a country', 'give' ),
|
644 |
+
'data' => array( 'search-type' => 'no_ajax' ),
|
645 |
) );
|
646 |
?>
|
647 |
</div>
|
658 |
'show_option_none' => false,
|
659 |
'chosen' => true,
|
660 |
'placeholder' => esc_attr__( 'Select a state', 'give' ),
|
661 |
+
'data' => array( 'search-type' => 'no_ajax' ),
|
662 |
) );
|
663 |
} else {
|
664 |
?>
|
includes/admin/reporting/class-gateways-reports-table.php
CHANGED
@@ -20,13 +20,13 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
-
*
|
24 |
*
|
25 |
* Renders the Download Reports table
|
26 |
*
|
27 |
* @since 1.0
|
28 |
*/
|
29 |
-
class
|
30 |
|
31 |
/**
|
32 |
* @var int Number of items per page
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
+
* Give_Gateway_Reports_Table Class
|
24 |
*
|
25 |
* Renders the Download Reports table
|
26 |
*
|
27 |
* @since 1.0
|
28 |
*/
|
29 |
+
class Give_Gateway_Reports_Table extends WP_List_Table {
|
30 |
|
31 |
/**
|
32 |
* @var int Number of items per page
|
includes/admin/reporting/class-give-graph.php
CHANGED
@@ -77,10 +77,13 @@ class Give_Graph {
|
|
77 |
* Get things started
|
78 |
*
|
79 |
* @since 1.0
|
|
|
|
|
|
|
80 |
*/
|
81 |
-
public function __construct( $_data ) {
|
82 |
|
83 |
-
$this->data
|
84 |
|
85 |
// Generate unique ID
|
86 |
$this->id = md5( rand() );
|
@@ -102,9 +105,11 @@ class Give_Graph {
|
|
102 |
'borderwidth' => 1,
|
103 |
'bars' => true,
|
104 |
'lines' => false,
|
105 |
-
'points' => true
|
|
|
106 |
) );
|
107 |
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
@@ -190,6 +195,7 @@ class Give_Graph {
|
|
190 |
{
|
191 |
label : "<?php echo esc_attr( $label ); ?>",
|
192 |
id : "<?php echo sanitize_key( $label ); ?>",
|
|
|
193 |
// data format is: [ point on x, value on y ]
|
194 |
data : [<?php foreach( $data as $point ) { echo '[' . implode( ',', $point ) . '],'; } ?>],
|
195 |
points: {
|
@@ -269,15 +275,15 @@ class Give_Graph {
|
|
269 |
$( "#x" ).text( pos.x.toFixed( 2 ) );
|
270 |
$( "#y" ).text( pos.y.toFixed( 2 ) );
|
271 |
if ( item ) {
|
272 |
-
if ( previousPoint
|
273 |
previousPoint = item.dataIndex;
|
274 |
$( "#give-flot-tooltip" ).remove();
|
275 |
var x = item.datapoint[0].toFixed( 2 ),
|
276 |
y = accounting.formatMoney( item.datapoint[1].toFixed( give_vars.currency_decimals ), '', give_vars.currency_decimals, give_vars.thousands_separator, give_vars.decimal_separator );
|
277 |
|
278 |
-
if ( item.series.
|
279 |
|
280 |
-
if ( give_vars.currency_pos
|
281 |
|
282 |
give_flot_tooltip( item.pageX, item.pageY, item.series.label + ' ' + give_vars.currency_sign + y );
|
283 |
} else {
|
77 |
* Get things started
|
78 |
*
|
79 |
* @since 1.0
|
80 |
+
*
|
81 |
+
* @param array $_data
|
82 |
+
* @param array $options
|
83 |
*/
|
84 |
+
public function __construct( $_data, $options = array() ) {
|
85 |
|
86 |
+
$this->data = $_data;
|
87 |
|
88 |
// Generate unique ID
|
89 |
$this->id = md5( rand() );
|
105 |
'borderwidth' => 1,
|
106 |
'bars' => true,
|
107 |
'lines' => false,
|
108 |
+
'points' => true,
|
109 |
+
'dataType' => array()
|
110 |
) );
|
111 |
|
112 |
+
$this->options = wp_parse_args( $options, $this->options );
|
113 |
}
|
114 |
|
115 |
/**
|
195 |
{
|
196 |
label : "<?php echo esc_attr( $label ); ?>",
|
197 |
id : "<?php echo sanitize_key( $label ); ?>",
|
198 |
+
dataType : '<?php echo ( ! empty( $this->options['dataType'][$order] ) ? $this->options['dataType'][$order] : 'count' ); ?>',
|
199 |
// data format is: [ point on x, value on y ]
|
200 |
data : [<?php foreach( $data as $point ) { echo '[' . implode( ',', $point ) . '],'; } ?>],
|
201 |
points: {
|
275 |
$( "#x" ).text( pos.x.toFixed( 2 ) );
|
276 |
$( "#y" ).text( pos.y.toFixed( 2 ) );
|
277 |
if ( item ) {
|
278 |
+
if ( previousPoint !== item.dataIndex ) {
|
279 |
previousPoint = item.dataIndex;
|
280 |
$( "#give-flot-tooltip" ).remove();
|
281 |
var x = item.datapoint[0].toFixed( 2 ),
|
282 |
y = accounting.formatMoney( item.datapoint[1].toFixed( give_vars.currency_decimals ), '', give_vars.currency_decimals, give_vars.thousands_separator, give_vars.decimal_separator );
|
283 |
|
284 |
+
if ( item.series.dataType.length && item.series.dataType === 'amount' ) {
|
285 |
|
286 |
+
if ( give_vars.currency_pos === 'before' ) {
|
287 |
|
288 |
give_flot_tooltip( item.pageX, item.pageY, item.series.label + ' ' + give_vars.currency_sign + y );
|
289 |
} else {
|
includes/admin/reporting/graphing.php
CHANGED
@@ -191,7 +191,7 @@ function give_reports_graph() {
|
|
191 |
<div class="inside">
|
192 |
<?php give_reports_graph_controls(); ?>
|
193 |
<?php
|
194 |
-
$graph = new Give_Graph( $data );
|
195 |
$graph->set( 'x_mode', 'time' );
|
196 |
$graph->set( 'multiple_y_axes', true );
|
197 |
$graph->display();
|
@@ -441,7 +441,7 @@ function give_reports_graph_of_form( $form_id = 0 ) {
|
|
441 |
<div class="inside">
|
442 |
<?php give_reports_graph_controls(); ?>
|
443 |
<?php
|
444 |
-
$graph = new Give_Graph( $data );
|
445 |
$graph->set( 'x_mode', 'time' );
|
446 |
$graph->set( 'multiple_y_axes', true );
|
447 |
$graph->display();
|
191 |
<div class="inside">
|
192 |
<?php give_reports_graph_controls(); ?>
|
193 |
<?php
|
194 |
+
$graph = new Give_Graph( $data, array( 'dataType' => array( 'amount', 'count' ) ) );
|
195 |
$graph->set( 'x_mode', 'time' );
|
196 |
$graph->set( 'multiple_y_axes', true );
|
197 |
$graph->display();
|
441 |
<div class="inside">
|
442 |
<?php give_reports_graph_controls(); ?>
|
443 |
<?php
|
444 |
+
$graph = new Give_Graph( $data, array( 'dataType' => array( 'amount', 'count' ) ) );
|
445 |
$graph->set( 'x_mode', 'time' );
|
446 |
$graph->set( 'multiple_y_axes', true );
|
447 |
$graph->display();
|
includes/admin/reporting/reports.php
CHANGED
@@ -307,7 +307,7 @@ add_action( 'give_reports_view_donors', 'give_reports_donors_table' );
|
|
307 |
function give_reports_gateways_table() {
|
308 |
include( dirname( __FILE__ ) . '/class-gateways-reports-table.php' );
|
309 |
|
310 |
-
$give_table = new
|
311 |
$give_table->prepare_items();
|
312 |
$give_table->display();
|
313 |
}
|
@@ -333,256 +333,6 @@ function give_reports_earnings() {
|
|
333 |
add_action( 'give_reports_view_earnings', 'give_reports_earnings' );
|
334 |
|
335 |
|
336 |
-
/**
|
337 |
-
* Renders the 'Export' tab on the Reports Page
|
338 |
-
*
|
339 |
-
* @since 1.0
|
340 |
-
* @return void
|
341 |
-
*/
|
342 |
-
function give_reports_tab_export() {
|
343 |
-
?>
|
344 |
-
<div id="give-dashboard-widgets-wrap">
|
345 |
-
<div id="post-body">
|
346 |
-
<div id="post-body-content">
|
347 |
-
|
348 |
-
<?php
|
349 |
-
/**
|
350 |
-
* Fires before the reports export tab.
|
351 |
-
*
|
352 |
-
* @since 1.0
|
353 |
-
*/
|
354 |
-
do_action( 'give_reports_tab_export_content_top' );
|
355 |
-
?>
|
356 |
-
|
357 |
-
<table class="widefat export-options-table give-table">
|
358 |
-
<thead>
|
359 |
-
<tr>
|
360 |
-
<th scope="col"><?php esc_html_e( 'Export Type', 'give' ); ?></th>
|
361 |
-
<th scope="col"><?php esc_html_e( 'Export Options', 'give' ); ?></th>
|
362 |
-
</tr>
|
363 |
-
</thead>
|
364 |
-
<tbody>
|
365 |
-
<?php
|
366 |
-
/**
|
367 |
-
* Fires in the reports export tab.
|
368 |
-
*
|
369 |
-
* Allows you to add new TR elements to the table before other elements.
|
370 |
-
*
|
371 |
-
* @since 1.0
|
372 |
-
*/
|
373 |
-
do_action( 'give_reports_tab_export_table_top' );
|
374 |
-
?>
|
375 |
-
<tr class="give-export-pdf-sales-earnings">
|
376 |
-
<td scope="row" class="row-title">
|
377 |
-
<h3><span><?php esc_html_e( 'Export PDF of Donations and Income', 'give' ); ?></span>
|
378 |
-
</h3>
|
379 |
-
<p><?php esc_html_e( 'Download a PDF of Donations and Income reports for all forms for the current year.', 'give' ); ?></p>
|
380 |
-
</td>
|
381 |
-
<td>
|
382 |
-
<a class="button" href="<?php echo wp_nonce_url( add_query_arg( array( 'give-action' => 'generate_pdf' ) ), 'give_generate_pdf' ); ?>"><?php esc_html_e( 'Generate PDF', 'give' ); ?></a>
|
383 |
-
</td>
|
384 |
-
</tr>
|
385 |
-
<tr class="alternate give-export-sales-earnings">
|
386 |
-
<td scope="row" class="row-title">
|
387 |
-
<h3><span><?php esc_html_e( 'Export Income and Donation Stats', 'give' ); ?></span></h3>
|
388 |
-
<p><?php esc_html_e( 'Download a CSV of income and donations over time.', 'give' ); ?></p>
|
389 |
-
</td>
|
390 |
-
<td>
|
391 |
-
<form method="post">
|
392 |
-
<?php
|
393 |
-
printf(
|
394 |
-
/* translators: 1: start date dropdown 2: end date dropdown */
|
395 |
-
esc_html__( '%1$s to %2$s', 'give' ),
|
396 |
-
Give()->html->year_dropdown( 'start_year' ) . ' ' . Give()->html->month_dropdown( 'start_month' ),
|
397 |
-
Give()->html->year_dropdown( 'end_year' ) . ' ' . Give()->html->month_dropdown( 'end_month' )
|
398 |
-
);
|
399 |
-
?>
|
400 |
-
<input type="hidden" name="give-action" value="earnings_export"/>
|
401 |
-
<input type="submit" value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" class="button-secondary"/>
|
402 |
-
</form>
|
403 |
-
</td>
|
404 |
-
</tr>
|
405 |
-
<tr class="give-export-payment-history">
|
406 |
-
<td scope="row" class="row-title">
|
407 |
-
<h3><span><?php esc_html_e( 'Export Donation History', 'give' ); ?></span></h3>
|
408 |
-
<p><?php esc_html_e( 'Download a CSV of all donations recorded.', 'give' ); ?></p>
|
409 |
-
</td>
|
410 |
-
<td>
|
411 |
-
<form id="give-export-payments" class="give-export-form" method="post">
|
412 |
-
<?php
|
413 |
-
$args = array(
|
414 |
-
'id' => 'give-payment-export-start',
|
415 |
-
'name' => 'start',
|
416 |
-
'placeholder' => esc_attr__( 'Start date', 'give' ),
|
417 |
-
);
|
418 |
-
echo Give()->html->date_field( $args ); ?>
|
419 |
-
<?php
|
420 |
-
$args = array(
|
421 |
-
'id' => 'give-payment-export-end',
|
422 |
-
'name' => 'end',
|
423 |
-
'placeholder' => esc_attr__( 'End date', 'give' ),
|
424 |
-
);
|
425 |
-
echo Give()->html->date_field( $args ); ?>
|
426 |
-
<select name="status">
|
427 |
-
<option value="any"><?php esc_html_e( 'All Statuses', 'give' ); ?></option>
|
428 |
-
<?php
|
429 |
-
$statuses = give_get_payment_statuses();
|
430 |
-
foreach ( $statuses as $status => $label ) {
|
431 |
-
echo '<option value="' . $status . '">' . $label . '</option>';
|
432 |
-
}
|
433 |
-
?>
|
434 |
-
</select>
|
435 |
-
<?php
|
436 |
-
if ( give_is_setting_enabled( give_get_option( 'categories' ) ) ) {
|
437 |
-
echo Give()->html->category_dropdown(
|
438 |
-
'give_forms_categories[]',
|
439 |
-
0,
|
440 |
-
array(
|
441 |
-
'class' => 'give_forms_categories',
|
442 |
-
'chosen' => true,
|
443 |
-
'multiple' => true,
|
444 |
-
'selected' => array(),
|
445 |
-
'show_option_all' => false,
|
446 |
-
'placeholder' => __( 'Choose one or more from categories', 'give' ),
|
447 |
-
)
|
448 |
-
);
|
449 |
-
}
|
450 |
-
|
451 |
-
if ( give_is_setting_enabled( give_get_option( 'tags' ) ) ) {
|
452 |
-
echo Give()->html->tags_dropdown(
|
453 |
-
'give_forms_tags[]',
|
454 |
-
0,
|
455 |
-
array(
|
456 |
-
'class' => 'give_forms_tags',
|
457 |
-
'chosen' => true,
|
458 |
-
'multiple' => true,
|
459 |
-
'selected' => array(),
|
460 |
-
'show_option_all' => false,
|
461 |
-
'placeholder' => __( 'Choose one or more from tags', 'give' ),
|
462 |
-
)
|
463 |
-
);
|
464 |
-
}
|
465 |
-
|
466 |
-
wp_nonce_field( 'give_ajax_export', 'give_ajax_export' );
|
467 |
-
?>
|
468 |
-
<input type="hidden" name="give-export-class" value="Give_Batch_Payments_Export"/>
|
469 |
-
<span>
|
470 |
-
<input type="submit" value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" class="button-secondary"/>
|
471 |
-
<span class="spinner"></span>
|
472 |
-
</span>
|
473 |
-
</form>
|
474 |
-
</td>
|
475 |
-
</tr>
|
476 |
-
<tr class="alternate give-export-donors">
|
477 |
-
<td scope="row" class="row-title">
|
478 |
-
<h3><span><?php esc_html_e( 'Export Donors in CSV', 'give' ); ?></span></h3>
|
479 |
-
<p><?php esc_html_e( 'Download an export of donors for all donation forms or only those who have given to a particular form.', 'give' ); ?></p>
|
480 |
-
</td>
|
481 |
-
<td>
|
482 |
-
<form method="post" id="give_donor_export" class="give-export-form">
|
483 |
-
|
484 |
-
<?php
|
485 |
-
$args = array(
|
486 |
-
'name' => 'forms',
|
487 |
-
'id' => 'give_customer_export_form',
|
488 |
-
'chosen' => true,
|
489 |
-
);
|
490 |
-
echo Give()->html->forms_dropdown( $args ); ?>
|
491 |
-
|
492 |
-
<input type="submit" value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>" class="button-secondary"/>
|
493 |
-
|
494 |
-
<div id="export-donor-options-wrap" class="give-clearfix">
|
495 |
-
<p><?php esc_html_e( 'Export Columns:', 'give' ); ?></p>
|
496 |
-
<ul id="give-export-option-ul">
|
497 |
-
<li>
|
498 |
-
<label for="give-export-fullname"><input type="checkbox" checked name="give_export_option[full_name]" id="give-export-fullname"><?php esc_html_e( 'Name', 'give' ); ?>
|
499 |
-
</label>
|
500 |
-
</li>
|
501 |
-
<li>
|
502 |
-
<label for="give-export-email"><input type="checkbox" checked name="give_export_option[email]" id="give-export-email"><?php esc_html_e( 'Email', 'give' ); ?>
|
503 |
-
</label>
|
504 |
-
</li>
|
505 |
-
<li>
|
506 |
-
<label for="give-export-address"><input type="checkbox" checked name="give_export_option[address]" id="give-export-address"><?php esc_html_e( 'Address', 'give' ); ?>
|
507 |
-
</label>
|
508 |
-
</li>
|
509 |
-
<li>
|
510 |
-
<label for="give-export-userid"><input type="checkbox" checked name="give_export_option[userid]" id="give-export-userid"><?php esc_html_e( 'User ID', 'give' ); ?>
|
511 |
-
</label>
|
512 |
-
</li>
|
513 |
-
<li>
|
514 |
-
<label for="give-export-first-donation-date"><input type="checkbox" checked name="give_export_option[date_first_donated]" id="give-export-first-donation-date"><?php esc_html_e( 'First Donation Date', 'give' ); ?>
|
515 |
-
</label>
|
516 |
-
</li>
|
517 |
-
<li>
|
518 |
-
<label for="give-export-donation-number"><input type="checkbox" checked name="give_export_option[donations]" id="give-export-donation-number"><?php esc_html_e( 'Number of Donations', 'give' ); ?>
|
519 |
-
</label>
|
520 |
-
</li>
|
521 |
-
<li>
|
522 |
-
<label for="give-export-donation-sum"><input type="checkbox" checked name="give_export_option[donation_sum]" id="give-export-donation-sum"><?php esc_html_e( 'Total Donated', 'give' ); ?>
|
523 |
-
</label>
|
524 |
-
</li>
|
525 |
-
</ul>
|
526 |
-
</div>
|
527 |
-
<?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?>
|
528 |
-
<input type="hidden" name="give-export-class" value="Give_Batch_Customers_Export"/>
|
529 |
-
<input type="hidden" name="give_export_option[query_id]" value="<?php echo uniqid( 'give_' ); ?>"/>
|
530 |
-
</form>
|
531 |
-
</td>
|
532 |
-
</tr>
|
533 |
-
<?php
|
534 |
-
/**
|
535 |
-
* Fires in the reports export tab.
|
536 |
-
*
|
537 |
-
* Allows you to add new TR elements to the table after other elements.
|
538 |
-
*
|
539 |
-
* @since 1.0
|
540 |
-
*/
|
541 |
-
do_action( 'give_reports_tab_export_table_bottom' );
|
542 |
-
?>
|
543 |
-
</tbody>
|
544 |
-
</table>
|
545 |
-
|
546 |
-
<?php
|
547 |
-
/**
|
548 |
-
* Fires after the reports export tab.
|
549 |
-
*
|
550 |
-
* @since 1.0
|
551 |
-
*/
|
552 |
-
do_action( 'give_reports_tab_export_content_bottom' );
|
553 |
-
?>
|
554 |
-
|
555 |
-
</div>
|
556 |
-
<!-- .post-body-content -->
|
557 |
-
</div>
|
558 |
-
<!-- .post-body -->
|
559 |
-
</div><!-- #give-dashboard-widgets-wrap -->
|
560 |
-
<?php
|
561 |
-
}
|
562 |
-
|
563 |
-
add_action( 'give_reports_tab_export', 'give_reports_tab_export' );
|
564 |
-
|
565 |
-
/**
|
566 |
-
* Renders the Reports page
|
567 |
-
*
|
568 |
-
* @since 1.0
|
569 |
-
* @return void
|
570 |
-
*/
|
571 |
-
function give_reports_tab_logs() {
|
572 |
-
|
573 |
-
require( GIVE_PLUGIN_DIR . 'includes/admin/reporting/logs.php' );
|
574 |
-
|
575 |
-
// Get current section.
|
576 |
-
$current_section = $_GET['section'] = give_get_current_setting_section();
|
577 |
-
|
578 |
-
/**
|
579 |
-
* Fires the in report page logs view.
|
580 |
-
*
|
581 |
-
* @since 1.0
|
582 |
-
*/
|
583 |
-
do_action( "give_logs_view_{$current_section}" );
|
584 |
-
}
|
585 |
-
|
586 |
/**
|
587 |
* Retrieves estimated monthly earnings and sales
|
588 |
*
|
307 |
function give_reports_gateways_table() {
|
308 |
include( dirname( __FILE__ ) . '/class-gateways-reports-table.php' );
|
309 |
|
310 |
+
$give_table = new Give_Gateway_Reports_Table();
|
311 |
$give_table->prepare_items();
|
312 |
$give_table->display();
|
313 |
}
|
333 |
add_action( 'give_reports_view_earnings', 'give_reports_earnings' );
|
334 |
|
335 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
/**
|
337 |
* Retrieves estimated monthly earnings and sales
|
338 |
*
|
includes/admin/settings/class-settings-display.php
CHANGED
@@ -27,7 +27,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
27 |
*/
|
28 |
public function __construct() {
|
29 |
$this->id = 'display';
|
30 |
-
$this->label =
|
31 |
|
32 |
$this->default_tab = 'display-settings';
|
33 |
|
@@ -53,8 +53,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
53 |
'type' => 'title'
|
54 |
),
|
55 |
array(
|
56 |
-
'name' =>
|
57 |
-
'desc' =>
|
58 |
'id' => 'css',
|
59 |
'type' => 'radio_inline',
|
60 |
'default' => 'enabled',
|
@@ -64,7 +64,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
64 |
)
|
65 |
),
|
66 |
array(
|
67 |
-
'name' =>
|
68 |
/* translators: %s: http://docs.givewp.com/form-floating-labels */
|
69 |
'desc' => sprintf( wp_kses( __( '<a href="%s" target="_blank">Floating labels</a> allows your lables to be inset within the form fields to provide a cleaner form appearance. Note that if the "Disable CSS" option is enabled, you will need to style the floating labels yourself.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'http://docs.givewp.com/form-floating-labels' ) ),
|
70 |
'id' => 'floatlabels',
|
@@ -76,7 +76,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
76 |
)
|
77 |
),
|
78 |
array(
|
79 |
-
'name' =>
|
80 |
/* translators: %s: about page URL */
|
81 |
'desc' => sprintf( wp_kses( __( 'Enable this option if you would like to disable the <a href="%s" target="_blank">Give Welcome screen</a> that displays each time Give is activated or updated.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( admin_url( 'index.php?page=give-about' ) ) ),
|
82 |
'id' => 'welcome',
|
@@ -88,7 +88,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
88 |
)
|
89 |
),
|
90 |
array(
|
91 |
-
'name' =>
|
92 |
'id' => 'display_settings_docs_link',
|
93 |
'url' => esc_url( 'http://docs.givewp.com/form-display-options' ),
|
94 |
'title' => __( 'Display Options Settings', 'give' ),
|
@@ -108,8 +108,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
108 |
'type' => 'title'
|
109 |
),
|
110 |
array(
|
111 |
-
'name' =>
|
112 |
-
'desc' =>
|
113 |
'id' => 'forms_singular',
|
114 |
'type' => 'radio_inline',
|
115 |
'default' => 'enabled',
|
@@ -119,7 +119,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
119 |
)
|
120 |
),
|
121 |
array(
|
122 |
-
'name' =>
|
123 |
'desc' => sprintf( wp_kses( __( 'Archives pages list all the donation forms you have created. This option will disable only the form\'s archive page(s). The single form\'s view will remain in place. Note: you will need to <a href="%s">refresh your permalinks</a> after this option has been enabled.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( admin_url( 'options-permalink.php' ) ) ),
|
124 |
'id' => 'forms_archives',
|
125 |
'type' => 'radio_inline',
|
@@ -130,8 +130,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
130 |
)
|
131 |
),
|
132 |
array(
|
133 |
-
'name' =>
|
134 |
-
'desc' =>
|
135 |
'id' => 'forms_excerpt',
|
136 |
'type' => 'radio_inline',
|
137 |
'default' => 'enabled',
|
@@ -141,8 +141,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
141 |
)
|
142 |
),
|
143 |
array(
|
144 |
-
'name' =>
|
145 |
-
'desc' =>
|
146 |
'id' => 'form_featured_img',
|
147 |
'type' => 'radio_inline',
|
148 |
'default' => 'enabled',
|
@@ -152,16 +152,16 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
152 |
)
|
153 |
),
|
154 |
array(
|
155 |
-
'name' =>
|
156 |
-
'desc' =>
|
157 |
'id' => 'featured_image_size',
|
158 |
'type' => 'select',
|
159 |
'default' => 'large',
|
160 |
'options' => give_get_featured_image_sizes()
|
161 |
),
|
162 |
array(
|
163 |
-
'name' =>
|
164 |
-
'desc' =>
|
165 |
'id' => 'form_sidebar',
|
166 |
'type' => 'radio_inline',
|
167 |
'default' => 'enabled',
|
@@ -171,7 +171,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
171 |
)
|
172 |
),
|
173 |
array(
|
174 |
-
'name' =>
|
175 |
'id' => 'post_types_settings_docs_link',
|
176 |
'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ),
|
177 |
'title' => __( 'Post Types Settings', 'give' ),
|
@@ -191,8 +191,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
191 |
'type' => 'title'
|
192 |
),
|
193 |
array(
|
194 |
-
'name' =>
|
195 |
-
'desc' =>
|
196 |
'id' => 'categories',
|
197 |
'type' => 'radio_inline',
|
198 |
'default' => 'disabled',
|
@@ -202,8 +202,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
202 |
)
|
203 |
),
|
204 |
array(
|
205 |
-
'name' =>
|
206 |
-
'desc' =>
|
207 |
'id' => 'tags',
|
208 |
'type' => 'radio_inline',
|
209 |
'default' => 'disabled',
|
@@ -213,7 +213,7 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
213 |
)
|
214 |
),
|
215 |
array(
|
216 |
-
'name' =>
|
217 |
'id' => 'taxonomies_settings_docs_link',
|
218 |
'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ),
|
219 |
'title' => __( 'Taxonomies Settings', 'give' ),
|
@@ -233,8 +233,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
233 |
'type' => 'title'
|
234 |
),
|
235 |
array(
|
236 |
-
'name' =>
|
237 |
-
'desc' =>
|
238 |
'id' => 'terms',
|
239 |
'type' => 'radio_inline',
|
240 |
'default' => 'disabled',
|
@@ -244,8 +244,8 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
244 |
)
|
245 |
),
|
246 |
array(
|
247 |
-
'name' =>
|
248 |
-
'desc' =>
|
249 |
'id' => 'agree_to_terms_label',
|
250 |
'attributes' => array(
|
251 |
'placeholder' => esc_attr__( 'Agree to Terms?', 'give' ),
|
@@ -253,13 +253,13 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
253 |
'type' => 'text'
|
254 |
),
|
255 |
array(
|
256 |
-
'name' =>
|
257 |
-
'desc' =>
|
258 |
'id' => 'agreement_text',
|
259 |
'type' => 'wysiwyg'
|
260 |
),
|
261 |
array(
|
262 |
-
'name' =>
|
263 |
'id' => 'terms_settings_docs_link',
|
264 |
'url' => esc_url( 'http://docs.givewp.com/settings-terms' ),
|
265 |
'title' => __( 'Terms and Conditions Settings', 'give' ),
|
@@ -299,10 +299,10 @@ if ( ! class_exists( 'Give_Settings_Display' ) ) :
|
|
299 |
*/
|
300 |
public function get_sections() {
|
301 |
$sections = array(
|
302 |
-
'display-settings' =>
|
303 |
-
'post-types' =>
|
304 |
-
'taxonomies' =>
|
305 |
-
'term-and-conditions' =>
|
306 |
);
|
307 |
|
308 |
return apply_filters( 'give_get_sections_' . $this->id, $sections );
|
27 |
*/
|
28 |
public function __construct() {
|
29 |
$this->id = 'display';
|
30 |
+
$this->label = __( 'Display Options', 'give' );
|
31 |
|
32 |
$this->default_tab = 'display-settings';
|
33 |
|
53 |
'type' => 'title'
|
54 |
),
|
55 |
array(
|
56 |
+
'name' => __( 'Default Give Styles', 'give' ),
|
57 |
+
'desc' => __( 'You can disable Give\'s default styles for donation forms and other frontend elements.', 'give' ),
|
58 |
'id' => 'css',
|
59 |
'type' => 'radio_inline',
|
60 |
'default' => 'enabled',
|
64 |
)
|
65 |
),
|
66 |
array(
|
67 |
+
'name' => __( 'Floating Labels', 'give' ),
|
68 |
/* translators: %s: http://docs.givewp.com/form-floating-labels */
|
69 |
'desc' => sprintf( wp_kses( __( '<a href="%s" target="_blank">Floating labels</a> allows your lables to be inset within the form fields to provide a cleaner form appearance. Note that if the "Disable CSS" option is enabled, you will need to style the floating labels yourself.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'http://docs.givewp.com/form-floating-labels' ) ),
|
70 |
'id' => 'floatlabels',
|
76 |
)
|
77 |
),
|
78 |
array(
|
79 |
+
'name' => __( 'Welcome Screen', 'give' ),
|
80 |
/* translators: %s: about page URL */
|
81 |
'desc' => sprintf( wp_kses( __( 'Enable this option if you would like to disable the <a href="%s" target="_blank">Give Welcome screen</a> that displays each time Give is activated or updated.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( admin_url( 'index.php?page=give-about' ) ) ),
|
82 |
'id' => 'welcome',
|
88 |
)
|
89 |
),
|
90 |
array(
|
91 |
+
'name' => __( 'Display Settings Docs Link', 'give' ),
|
92 |
'id' => 'display_settings_docs_link',
|
93 |
'url' => esc_url( 'http://docs.givewp.com/form-display-options' ),
|
94 |
'title' => __( 'Display Options Settings', 'give' ),
|
108 |
'type' => 'title'
|
109 |
),
|
110 |
array(
|
111 |
+
'name' => __( 'Form Single Views', 'give' ),
|
112 |
+
'desc' => __( 'By default, all donation form have single views enabled which creates a specific URL on your website for that form. This option disables the singular posts from being publicly viewable. Note: you will need to embed forms using a shortcode or widget if enabled.', 'give' ),
|
113 |
'id' => 'forms_singular',
|
114 |
'type' => 'radio_inline',
|
115 |
'default' => 'enabled',
|
119 |
)
|
120 |
),
|
121 |
array(
|
122 |
+
'name' => __( 'Form Archives', 'give' ),
|
123 |
'desc' => sprintf( wp_kses( __( 'Archives pages list all the donation forms you have created. This option will disable only the form\'s archive page(s). The single form\'s view will remain in place. Note: you will need to <a href="%s">refresh your permalinks</a> after this option has been enabled.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( admin_url( 'options-permalink.php' ) ) ),
|
124 |
'id' => 'forms_archives',
|
125 |
'type' => 'radio_inline',
|
130 |
)
|
131 |
),
|
132 |
array(
|
133 |
+
'name' => __( 'Form Excerpts', 'give' ),
|
134 |
+
'desc' => __( 'The excerpt is an optional summary or description of a donation form; in short, a summary as to why the user should give.', 'give' ),
|
135 |
'id' => 'forms_excerpt',
|
136 |
'type' => 'radio_inline',
|
137 |
'default' => 'enabled',
|
141 |
)
|
142 |
),
|
143 |
array(
|
144 |
+
'name' => __( 'Form Featured Image', 'give' ),
|
145 |
+
'desc' => __( 'If you do not wish to use the featured image functionality you can disable it using this option and it will not be displayed for single donation forms.', 'give' ),
|
146 |
'id' => 'form_featured_img',
|
147 |
'type' => 'radio_inline',
|
148 |
'default' => 'enabled',
|
152 |
)
|
153 |
),
|
154 |
array(
|
155 |
+
'name' => __( 'Featured Image Size', 'give' ),
|
156 |
+
'desc' => __( 'The Featured Image is an image that is chosen as the representative image for a donation form. Some themes may have custom featured image sizes. Please select the size you would like to display for your single donation form\'s featured image.', 'give' ),
|
157 |
'id' => 'featured_image_size',
|
158 |
'type' => 'select',
|
159 |
'default' => 'large',
|
160 |
'options' => give_get_featured_image_sizes()
|
161 |
),
|
162 |
array(
|
163 |
+
'name' => __( 'Single Form Sidebar', 'give' ),
|
164 |
+
'desc' => __( 'The sidebar allows you to add additional widgets to the Give single form view. If you don\'t plan on using the sidebar you may disable it with this option.', 'give' ),
|
165 |
'id' => 'form_sidebar',
|
166 |
'type' => 'radio_inline',
|
167 |
'default' => 'enabled',
|
171 |
)
|
172 |
),
|
173 |
array(
|
174 |
+
'name' => __( 'Post Types Docs Link', 'give' ),
|
175 |
'id' => 'post_types_settings_docs_link',
|
176 |
'url' => esc_url( 'http://docs.givewp.com/settings-post-types' ),
|
177 |
'title' => __( 'Post Types Settings', 'give' ),
|
191 |
'type' => 'title'
|
192 |
),
|
193 |
array(
|
194 |
+
'name' => __( 'Form Categories', 'give' ),
|
195 |
+
'desc' => __( 'Enable Categories for all Give forms.', 'give' ),
|
196 |
'id' => 'categories',
|
197 |
'type' => 'radio_inline',
|
198 |
'default' => 'disabled',
|
202 |
)
|
203 |
),
|
204 |
array(
|
205 |
+
'name' => __( 'Form Tags', 'give' ),
|
206 |
+
'desc' => __( 'Enable Tags for all Give forms.', 'give' ),
|
207 |
'id' => 'tags',
|
208 |
'type' => 'radio_inline',
|
209 |
'default' => 'disabled',
|
213 |
)
|
214 |
),
|
215 |
array(
|
216 |
+
'name' => __( 'Taxonomies Docs Link', 'give' ),
|
217 |
'id' => 'taxonomies_settings_docs_link',
|
218 |
'url' => esc_url( 'http://docs.givewp.com/settings-taxonomies' ),
|
219 |
'title' => __( 'Taxonomies Settings', 'give' ),
|
233 |
'type' => 'title'
|
234 |
),
|
235 |
array(
|
236 |
+
'name' => __( 'Terms and Conditions', 'give' ),
|
237 |
+
'desc' => __( 'Would you like donors to require that donors agree to your terms when donating? Note: You can enable/disable this option and customize the terms per form as well.', 'give' ),
|
238 |
'id' => 'terms',
|
239 |
'type' => 'radio_inline',
|
240 |
'default' => 'disabled',
|
244 |
)
|
245 |
),
|
246 |
array(
|
247 |
+
'name' => __( 'Agree to Terms Label', 'give' ),
|
248 |
+
'desc' => __( 'The label shown next to the agree to terms check box. Customize it here or leave blank to use the default placeholder text. Note: You can customize the label per form.', 'give' ),
|
249 |
'id' => 'agree_to_terms_label',
|
250 |
'attributes' => array(
|
251 |
'placeholder' => esc_attr__( 'Agree to Terms?', 'give' ),
|
253 |
'type' => 'text'
|
254 |
),
|
255 |
array(
|
256 |
+
'name' => __( 'Agreement Text', 'give' ),
|
257 |
+
'desc' => __( 'This is the actual text which the user will be asked to agree to in order to donate. Note: You can customize the content per form as needed.', 'give' ),
|
258 |
'id' => 'agreement_text',
|
259 |
'type' => 'wysiwyg'
|
260 |
),
|
261 |
array(
|
262 |
+
'name' => __( 'Terms and Conditions Docs Link', 'give' ),
|
263 |
'id' => 'terms_settings_docs_link',
|
264 |
'url' => esc_url( 'http://docs.givewp.com/settings-terms' ),
|
265 |
'title' => __( 'Terms and Conditions Settings', 'give' ),
|
299 |
*/
|
300 |
public function get_sections() {
|
301 |
$sections = array(
|
302 |
+
'display-settings' => __( 'Display', 'give' ),
|
303 |
+
'post-types' => __( 'Post Types', 'give' ),
|
304 |
+
'taxonomies' => __( 'Taxonomies', 'give' ),
|
305 |
+
'term-and-conditions' => __( 'Terms and Conditions', 'give' )
|
306 |
);
|
307 |
|
308 |
return apply_filters( 'give_get_sections_' . $this->id, $sections );
|
includes/admin/{reporting → tools}/class-settings-export.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Give
|
4 |
*
|
5 |
* @package Give
|
6 |
* @subpackage Classes/Give_Settings_Export
|
@@ -43,16 +43,16 @@ if ( ! class_exists( 'Give_Settings_Export' ) ) :
|
|
43 |
*/
|
44 |
public function __construct() {
|
45 |
$this->id = 'export';
|
46 |
-
$this->label =
|
47 |
|
48 |
-
add_filter( 'give-
|
49 |
-
add_action( "give-
|
50 |
-
add_action( '
|
51 |
|
52 |
// Do not use main donor for this tab.
|
53 |
if( give_get_current_setting_tab() === $this->id ) {
|
54 |
-
add_action( 'give-
|
55 |
-
add_action( 'give-
|
56 |
}
|
57 |
}
|
58 |
|
@@ -89,17 +89,17 @@ if ( ! class_exists( 'Give_Settings_Export' ) ) :
|
|
89 |
'give_get_settings_' . $this->id,
|
90 |
array(
|
91 |
array(
|
92 |
-
'id' => '
|
93 |
'type' => 'title',
|
94 |
'table_html' => false
|
95 |
),
|
96 |
array(
|
97 |
'id' => 'export',
|
98 |
-
'name' =>
|
99 |
-
'type' => '
|
100 |
),
|
101 |
array(
|
102 |
-
'id' => '
|
103 |
'type' => 'sectionend',
|
104 |
'table_html' => false
|
105 |
)
|
@@ -131,8 +131,8 @@ if ( ! class_exists( 'Give_Settings_Export' ) ) :
|
|
131 |
* @param $field
|
132 |
* @param $option_value
|
133 |
*/
|
134 |
-
public function
|
135 |
-
|
136 |
}
|
137 |
}
|
138 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Give Exports Tab
|
4 |
*
|
5 |
* @package Give
|
6 |
* @subpackage Classes/Give_Settings_Export
|
43 |
*/
|
44 |
public function __construct() {
|
45 |
$this->id = 'export';
|
46 |
+
$this->label = __( 'Export', 'give' );
|
47 |
|
48 |
+
add_filter( 'give-tools_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
49 |
+
add_action( "give-tools_settings_{$this->id}_page", array( $this, 'output' ) );
|
50 |
+
add_action( 'give_admin_field_tools_export', array( $this, 'render_export_field' ), 10, 2 );
|
51 |
|
52 |
// Do not use main donor for this tab.
|
53 |
if( give_get_current_setting_tab() === $this->id ) {
|
54 |
+
add_action( 'give-tools_open_form', '__return_empty_string' );
|
55 |
+
add_action( 'give-tools_close_form', '__return_empty_string' );
|
56 |
}
|
57 |
}
|
58 |
|
89 |
'give_get_settings_' . $this->id,
|
90 |
array(
|
91 |
array(
|
92 |
+
'id' => 'give_tools_export',
|
93 |
'type' => 'title',
|
94 |
'table_html' => false
|
95 |
),
|
96 |
array(
|
97 |
'id' => 'export',
|
98 |
+
'name' => __( 'Export', 'give' ),
|
99 |
+
'type' => 'tools_export',
|
100 |
),
|
101 |
array(
|
102 |
+
'id' => 'give_tools_export',
|
103 |
'type' => 'sectionend',
|
104 |
'table_html' => false
|
105 |
)
|
131 |
* @param $field
|
132 |
* @param $option_value
|
133 |
*/
|
134 |
+
public function render_export_field( $field, $option_value ) {
|
135 |
+
include_once( 'views/html-admin-page-exports.php' );
|
136 |
}
|
137 |
}
|
138 |
|
includes/admin/tools/class-settings-logs.php
CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'Give_Settings_Logs' ) ) :
|
|
43 |
*/
|
44 |
public function __construct() {
|
45 |
$this->id = 'logs';
|
46 |
-
$this->label =
|
47 |
|
48 |
$this->default_tab = 'sales';
|
49 |
|
@@ -90,7 +90,7 @@ if ( ! class_exists( 'Give_Settings_Logs' ) ) :
|
|
90 |
),
|
91 |
array(
|
92 |
'id' => 'api',
|
93 |
-
'name' =>
|
94 |
'type' => 'logs',
|
95 |
|
96 |
),
|
@@ -122,9 +122,9 @@ if ( ! class_exists( 'Give_Settings_Logs' ) ) :
|
|
122 |
*/
|
123 |
public function get_sections() {
|
124 |
$sections = array(
|
125 |
-
'sales' =>
|
126 |
-
'gateway_errors' =>
|
127 |
-
'api_requests' =>
|
128 |
);
|
129 |
|
130 |
$sections = apply_filters( 'give_log_views', $sections );
|
43 |
*/
|
44 |
public function __construct() {
|
45 |
$this->id = 'logs';
|
46 |
+
$this->label = __( 'Logs', 'give' );
|
47 |
|
48 |
$this->default_tab = 'sales';
|
49 |
|
90 |
),
|
91 |
array(
|
92 |
'id' => 'api',
|
93 |
+
'name' => __( 'Log', 'give' ),
|
94 |
'type' => 'logs',
|
95 |
|
96 |
),
|
122 |
*/
|
123 |
public function get_sections() {
|
124 |
$sections = array(
|
125 |
+
'sales' => __( 'Donations', 'give' ),
|
126 |
+
'gateway_errors' => __( 'Payment Errors', 'give' ),
|
127 |
+
'api_requests' => __( 'API Requests', 'give' ),
|
128 |
);
|
129 |
|
130 |
$sections = apply_filters( 'give_log_views', $sections );
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-delete-test-transactions.php
RENAMED
@@ -55,7 +55,7 @@ class Give_Tools_Delete_Test_Transactions extends Give_Batch_Export {
|
|
55 |
public function get_data() {
|
56 |
global $wpdb;
|
57 |
|
58 |
-
$items = $this->get_stored_data( '
|
59 |
|
60 |
if ( ! is_array( $items ) ) {
|
61 |
return false;
|
55 |
public function get_data() {
|
56 |
global $wpdb;
|
57 |
|
58 |
+
$items = $this->get_stored_data( 'give_temp_delete_test_ids' );
|
59 |
|
60 |
if ( ! is_array( $items ) ) {
|
61 |
return false;
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-all-stats.php
RENAMED
@@ -147,8 +147,8 @@ class Give_Tools_Recount_All_Stats extends Give_Batch_Export {
|
|
147 |
}
|
148 |
|
149 |
foreach ( $totals as $key => $stats ) {
|
150 |
-
|
151 |
-
|
152 |
}
|
153 |
|
154 |
return false;
|
147 |
}
|
148 |
|
149 |
foreach ( $totals as $key => $stats ) {
|
150 |
+
give_update_meta( $key, '_give_form_sales', $stats['sales'] );
|
151 |
+
give_update_meta( $key, '_give_form_earnings', $stats['earnings'] );
|
152 |
}
|
153 |
|
154 |
return false;
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-customer-stats.php
RENAMED
File without changes
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-form-stats.php
RENAMED
@@ -127,8 +127,8 @@ class Give_Tools_Recount_Form_Stats extends Give_Batch_Export {
|
|
127 |
}
|
128 |
|
129 |
|
130 |
-
|
131 |
-
|
132 |
|
133 |
return false;
|
134 |
|
127 |
}
|
128 |
|
129 |
|
130 |
+
give_update_meta( $this->form_id, '_give_form_sales', $totals['sales'] );
|
131 |
+
give_update_meta( $this->form_id, '_give_form_earnings', $totals['earnings'] );
|
132 |
|
133 |
return false;
|
134 |
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-income.php
RENAMED
File without changes
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-recount-single-customer-stats.php
RENAMED
File without changes
|
includes/admin/{reporting/tools → tools/data}/class-give-tools-reset-stats.php
RENAMED
File without changes
|
includes/admin/{reporting/tools → tools/data}/tools-actions.php
RENAMED
@@ -39,27 +39,27 @@ function give_include_batch_export_class( $class ) {
|
|
39 |
switch ( $class ) {
|
40 |
|
41 |
case 'Give_Tools_Delete_Test_Transactions':
|
42 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
43 |
break;
|
44 |
|
45 |
case 'Give_Tools_Recount_Customer_Stats':
|
46 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
47 |
break;
|
48 |
|
49 |
case 'Give_Tools_Reset_Stats':
|
50 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
51 |
break;
|
52 |
|
53 |
case 'Give_Tools_Recount_All_Stats':
|
54 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
55 |
break;
|
56 |
|
57 |
case 'Give_Tools_Recount_Form_Stats':
|
58 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
59 |
break;
|
60 |
|
61 |
case 'Give_Tools_Recount_Income':
|
62 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
63 |
break;
|
64 |
}
|
65 |
}
|
39 |
switch ( $class ) {
|
40 |
|
41 |
case 'Give_Tools_Delete_Test_Transactions':
|
42 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-delete-test-transactions.php';
|
43 |
break;
|
44 |
|
45 |
case 'Give_Tools_Recount_Customer_Stats':
|
46 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-recount-customer-stats.php';
|
47 |
break;
|
48 |
|
49 |
case 'Give_Tools_Reset_Stats':
|
50 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-reset-stats.php';
|
51 |
break;
|
52 |
|
53 |
case 'Give_Tools_Recount_All_Stats':
|
54 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-recount-all-stats.php';
|
55 |
break;
|
56 |
|
57 |
case 'Give_Tools_Recount_Form_Stats':
|
58 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-recount-form-stats.php';
|
59 |
break;
|
60 |
|
61 |
case 'Give_Tools_Recount_Income':
|
62 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/data/class-give-tools-recount-income.php';
|
63 |
break;
|
64 |
}
|
65 |
}
|
includes/admin/{reporting → tools}/export/class-batch-export-customers.php
RENAMED
@@ -193,7 +193,7 @@ class Give_Batch_Customers_Export extends Give_Batch_Export {
|
|
193 |
|
194 |
if ( $logs ) {
|
195 |
foreach ( $logs as $log ) {
|
196 |
-
$payment_id =
|
197 |
$payment = new Give_Payment( $payment_id );
|
198 |
|
199 |
// Continue if donor already included.
|
193 |
|
194 |
if ( $logs ) {
|
195 |
foreach ( $logs as $log ) {
|
196 |
+
$payment_id = give_get_meta( $log->ID, '_give_log_payment_id', true );
|
197 |
$payment = new Give_Payment( $payment_id );
|
198 |
|
199 |
// Continue if donor already included.
|
includes/admin/{reporting → tools}/export/class-batch-export-forms.php
RENAMED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Batch Forms Export Class
|
4 |
*
|
5 |
-
* This class handles
|
6 |
*
|
7 |
* @package Give
|
8 |
* @subpackage Admin/Reports
|
9 |
-
* @copyright Copyright (c)
|
10 |
* @license https://opensource.org/licenses/gpl-license GNU Public License
|
11 |
* @since 1.5
|
12 |
*/
|
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
24 |
class Give_Batch_Forms_Export extends Give_Batch_Export {
|
25 |
|
26 |
/**
|
27 |
-
* Our export type. Used for export-type specific filters/actions
|
28 |
*
|
29 |
* @var string
|
30 |
* @since 1.5
|
@@ -41,20 +41,20 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
41 |
public function csv_cols() {
|
42 |
|
43 |
$cols = array(
|
44 |
-
'ID' =>
|
45 |
-
'post_name' =>
|
46 |
-
'post_title' =>
|
47 |
-
'post_date' =>
|
48 |
-
'post_author' =>
|
49 |
-
'post_content' =>
|
50 |
-
'post_excerpt' =>
|
51 |
-
'post_status' =>
|
52 |
-
'categories' =>
|
53 |
-
'tags' =>
|
54 |
-
'give_price' =>
|
55 |
-
'_thumbnail_id' =>
|
56 |
-
'_give_form_sales' =>
|
57 |
-
'_give_download_earnings' =>
|
58 |
);
|
59 |
|
60 |
return $cols;
|
@@ -74,28 +74,26 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
74 |
$meta = array(
|
75 |
'give_price',
|
76 |
'_thumbnail_id',
|
77 |
-
'give_sku',
|
78 |
-
'give_product_notes',
|
79 |
'_give_form_sales',
|
80 |
-
'
|
81 |
);
|
82 |
|
83 |
$args = array(
|
84 |
-
'post_type' => '
|
85 |
'posts_per_page' => 30,
|
86 |
'paged' => $this->step
|
87 |
);
|
88 |
|
89 |
-
$
|
90 |
|
91 |
-
if ( $
|
92 |
-
foreach ( $
|
93 |
|
94 |
-
$row =
|
95 |
|
96 |
foreach ( $this->csv_cols() as $key => $value ) {
|
97 |
|
98 |
-
// Setup default value
|
99 |
$row[ $key ] = '';
|
100 |
|
101 |
if ( in_array( $key, $meta ) ) {
|
@@ -104,17 +102,17 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
104 |
|
105 |
case '_thumbnail_id' :
|
106 |
|
107 |
-
$image_id = get_post_thumbnail_id( $
|
108 |
$row[ $key ] = wp_get_attachment_url( $image_id );
|
109 |
|
110 |
break;
|
111 |
|
112 |
case 'give_price' :
|
113 |
|
114 |
-
if ( give_has_variable_prices( $
|
115 |
|
116 |
-
$prices =
|
117 |
-
foreach ( give_get_variable_prices( $
|
118 |
$prices[] = $price['name'] . ': ' . $price['amount'];
|
119 |
}
|
120 |
|
@@ -122,52 +120,40 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
122 |
|
123 |
} else {
|
124 |
|
125 |
-
$row[ $key ] =
|
126 |
|
127 |
}
|
128 |
|
129 |
break;
|
130 |
|
131 |
-
case '_give_files' :
|
132 |
-
|
133 |
-
|
134 |
-
$files = array();
|
135 |
-
foreach ( give_get_download_files( $download->ID ) as $file ) {
|
136 |
-
$files[] = $file['file'];
|
137 |
-
}
|
138 |
-
|
139 |
-
$row[ $key ] = implode( ' | ', $files );
|
140 |
-
|
141 |
-
break;
|
142 |
-
|
143 |
default :
|
144 |
|
145 |
-
$row[ $key ] =
|
146 |
|
147 |
break;
|
148 |
|
149 |
}
|
150 |
|
151 |
-
} elseif ( isset( $
|
152 |
|
153 |
switch ( $key ) {
|
154 |
|
155 |
case 'post_author' :
|
156 |
|
157 |
-
$row[ $key ] = get_the_author_meta( 'user_login', $
|
158 |
|
159 |
break;
|
160 |
|
161 |
default :
|
162 |
|
163 |
-
$row[ $key ] = $
|
164 |
|
165 |
break;
|
166 |
}
|
167 |
|
168 |
} elseif ( 'tags' == $key ) {
|
169 |
|
170 |
-
$terms = get_the_terms( $
|
171 |
if ( $terms ) {
|
172 |
$terms = wp_list_pluck( $terms, 'name' );
|
173 |
$row[ $key ] = implode( ' | ', $terms );
|
@@ -176,7 +162,7 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
176 |
|
177 |
} elseif ( 'categories' == $key ) {
|
178 |
|
179 |
-
$terms = get_the_terms( $
|
180 |
if ( $terms ) {
|
181 |
$terms = wp_list_pluck( $terms, 'name' );
|
182 |
$row[ $key ] = implode( ' | ', $terms );
|
@@ -194,6 +180,7 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
194 |
$data = apply_filters( "give_export_get_data_{$this->export_type}", $data );
|
195 |
|
196 |
return $data;
|
|
|
197 |
}
|
198 |
|
199 |
return false;
|
@@ -201,7 +188,7 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
201 |
}
|
202 |
|
203 |
/**
|
204 |
-
* Return the calculated completion percentage
|
205 |
*
|
206 |
* @since 1.5
|
207 |
* @return int
|
@@ -215,8 +202,8 @@ class Give_Batch_Forms_Export extends Give_Batch_Export {
|
|
215 |
'fields' => 'ids',
|
216 |
);
|
217 |
|
218 |
-
$
|
219 |
-
$total = (int) $
|
220 |
$percentage = 100;
|
221 |
|
222 |
if ( $total > 0 ) {
|
2 |
/**
|
3 |
* Batch Forms Export Class
|
4 |
*
|
5 |
+
* This class handles form export.
|
6 |
*
|
7 |
* @package Give
|
8 |
* @subpackage Admin/Reports
|
9 |
+
* @copyright Copyright (c) 2017, WordImpress
|
10 |
* @license https://opensource.org/licenses/gpl-license GNU Public License
|
11 |
* @since 1.5
|
12 |
*/
|
24 |
class Give_Batch_Forms_Export extends Give_Batch_Export {
|
25 |
|
26 |
/**
|
27 |
+
* Our export type. Used for export-type specific filters/actions./
|
28 |
*
|
29 |
* @var string
|
30 |
* @since 1.5
|
41 |
public function csv_cols() {
|
42 |
|
43 |
$cols = array(
|
44 |
+
'ID' => __( 'ID', 'give' ),
|
45 |
+
'post_name' => __( 'Slug', 'give' ),
|
46 |
+
'post_title' => __( 'Name', 'give' ),
|
47 |
+
'post_date' => __( 'Date Created', 'give' ),
|
48 |
+
'post_author' => __( 'Author', 'give' ),
|
49 |
+
'post_content' => __( 'Description', 'give' ),
|
50 |
+
'post_excerpt' => __( 'Excerpt', 'give' ),
|
51 |
+
'post_status' => __( 'Status', 'give' ),
|
52 |
+
'categories' => __( 'Categories', 'give' ),
|
53 |
+
'tags' => __( 'Tags', 'give' ),
|
54 |
+
'give_price' => __( 'Price', 'give' ),
|
55 |
+
'_thumbnail_id' => __( 'Featured Image', 'give' ),
|
56 |
+
'_give_form_sales' => __( 'Donations', 'give' ),
|
57 |
+
'_give_download_earnings' => __( 'Income', 'give' ),
|
58 |
);
|
59 |
|
60 |
return $cols;
|
74 |
$meta = array(
|
75 |
'give_price',
|
76 |
'_thumbnail_id',
|
|
|
|
|
77 |
'_give_form_sales',
|
78 |
+
'_give_form_earnings'
|
79 |
);
|
80 |
|
81 |
$args = array(
|
82 |
+
'post_type' => 'give_forms',
|
83 |
'posts_per_page' => 30,
|
84 |
'paged' => $this->step
|
85 |
);
|
86 |
|
87 |
+
$forms = new WP_Query( $args );
|
88 |
|
89 |
+
if ( $forms->posts ) {
|
90 |
+
foreach ( $forms->posts as $form ) {
|
91 |
|
92 |
+
$row = [];
|
93 |
|
94 |
foreach ( $this->csv_cols() as $key => $value ) {
|
95 |
|
96 |
+
// Setup default value/
|
97 |
$row[ $key ] = '';
|
98 |
|
99 |
if ( in_array( $key, $meta ) ) {
|
102 |
|
103 |
case '_thumbnail_id' :
|
104 |
|
105 |
+
$image_id = get_post_thumbnail_id( $form->ID );
|
106 |
$row[ $key ] = wp_get_attachment_url( $image_id );
|
107 |
|
108 |
break;
|
109 |
|
110 |
case 'give_price' :
|
111 |
|
112 |
+
if ( give_has_variable_prices( $form->ID ) ) {
|
113 |
|
114 |
+
$prices = [];
|
115 |
+
foreach ( give_get_variable_prices( $form->ID ) as $price ) {
|
116 |
$prices[] = $price['name'] . ': ' . $price['amount'];
|
117 |
}
|
118 |
|
120 |
|
121 |
} else {
|
122 |
|
123 |
+
$row[ $key ] = give_get_form_price( $form->ID );
|
124 |
|
125 |
}
|
126 |
|
127 |
break;
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
default :
|
130 |
|
131 |
+
$row[ $key ] = give_get_meta( $form->ID, $key, TRUE );
|
132 |
|
133 |
break;
|
134 |
|
135 |
}
|
136 |
|
137 |
+
} elseif ( isset( $form->$key ) ) {
|
138 |
|
139 |
switch ( $key ) {
|
140 |
|
141 |
case 'post_author' :
|
142 |
|
143 |
+
$row[ $key ] = get_the_author_meta( 'user_login', $form->post_author );
|
144 |
|
145 |
break;
|
146 |
|
147 |
default :
|
148 |
|
149 |
+
$row[ $key ] = $form->$key;
|
150 |
|
151 |
break;
|
152 |
}
|
153 |
|
154 |
} elseif ( 'tags' == $key ) {
|
155 |
|
156 |
+
$terms = get_the_terms( $form->ID, 'form_tag' );
|
157 |
if ( $terms ) {
|
158 |
$terms = wp_list_pluck( $terms, 'name' );
|
159 |
$row[ $key ] = implode( ' | ', $terms );
|
162 |
|
163 |
} elseif ( 'categories' == $key ) {
|
164 |
|
165 |
+
$terms = get_the_terms( $form->ID, 'form_category' );
|
166 |
if ( $terms ) {
|
167 |
$terms = wp_list_pluck( $terms, 'name' );
|
168 |
$row[ $key ] = implode( ' | ', $terms );
|
180 |
$data = apply_filters( "give_export_get_data_{$this->export_type}", $data );
|
181 |
|
182 |
return $data;
|
183 |
+
|
184 |
}
|
185 |
|
186 |
return false;
|
188 |
}
|
189 |
|
190 |
/**
|
191 |
+
* Return the calculated completion percentage.
|
192 |
*
|
193 |
* @since 1.5
|
194 |
* @return int
|
202 |
'fields' => 'ids',
|
203 |
);
|
204 |
|
205 |
+
$forms = new WP_Query( $args );
|
206 |
+
$total = (int) $forms->post_count;
|
207 |
$percentage = 100;
|
208 |
|
209 |
if ( $total > 0 ) {
|
includes/admin/{reporting → tools}/export/class-batch-export-payments.php
RENAMED
@@ -39,26 +39,26 @@ class Give_Batch_Payments_Export extends Give_Batch_Export {
|
|
39 |
*/
|
40 |
public function csv_cols() {
|
41 |
$cols = array(
|
42 |
-
'id' =>
|
43 |
-
'seq_id' =>
|
44 |
-
'email' =>
|
45 |
-
'first' =>
|
46 |
-
'last' =>
|
47 |
-
'address1' =>
|
48 |
-
'address2' =>
|
49 |
-
'city' =>
|
50 |
-
'state' =>
|
51 |
-
'country' =>
|
52 |
-
'zip' =>
|
53 |
-
'form_id' =>
|
54 |
-
'form_name' =>
|
55 |
-
'amount' =>
|
56 |
-
'gateway' =>
|
57 |
-
'trans_id' =>
|
58 |
-
'key' =>
|
59 |
-
'date' =>
|
60 |
-
'user' =>
|
61 |
-
'status' =>
|
62 |
);
|
63 |
|
64 |
if ( ! give_get_option( 'enable_sequential' ) ) {
|
@@ -77,7 +77,6 @@ class Give_Batch_Payments_Export extends Give_Batch_Export {
|
|
77 |
* @return array $data The data for the CSV file.
|
78 |
*/
|
79 |
public function get_data() {
|
80 |
-
global $wpdb;
|
81 |
|
82 |
$data = array();
|
83 |
|
@@ -144,8 +143,6 @@ class Give_Batch_Payments_Export extends Give_Batch_Export {
|
|
144 |
$user_info = give_get_payment_meta_user_info( $payment->ID );
|
145 |
$total = give_get_payment_amount( $payment->ID );
|
146 |
$user_id = isset( $user_info['id'] ) && $user_info['id'] != - 1 ? $user_info['id'] : $user_info['email'];
|
147 |
-
$products = '';
|
148 |
-
$skus = '';
|
149 |
|
150 |
if ( is_numeric( $user_id ) ) {
|
151 |
$user = get_userdata( $user_id );
|
@@ -167,9 +164,8 @@ class Give_Batch_Payments_Export extends Give_Batch_Export {
|
|
167 |
'zip' => isset( $user_info['address']['zip'] ) ? $user_info['address']['zip'] : '',
|
168 |
'form_id' => isset( $payment_meta['form_id'] ) ? $payment_meta['form_id'] : '',
|
169 |
'form_name' => isset( $payment_meta['form_title'] ) ? $payment_meta['form_title'] : '',
|
170 |
-
'skus' => $skus,
|
171 |
'amount' => html_entity_decode( give_format_amount( $total ) ),
|
172 |
-
'gateway' => give_get_gateway_admin_label(
|
173 |
'trans_id' => give_get_payment_transaction_id( $payment->ID ),
|
174 |
'key' => $payment_meta['key'],
|
175 |
'date' => $payment->post_date,
|
39 |
*/
|
40 |
public function csv_cols() {
|
41 |
$cols = array(
|
42 |
+
'id' => __( 'ID', 'give' ), // unaltered payment ID (use for querying).
|
43 |
+
'seq_id' => __( 'Payment Number', 'give' ), // sequential payment ID.
|
44 |
+
'email' => __( 'Email', 'give' ),
|
45 |
+
'first' => __( 'First Name', 'give' ),
|
46 |
+
'last' => __( 'Last Name', 'give' ),
|
47 |
+
'address1' => __( 'Address 1', 'give' ),
|
48 |
+
'address2' => __( 'Address 2', 'give' ),
|
49 |
+
'city' => __( 'City', 'give' ),
|
50 |
+
'state' => __( 'State', 'give' ),
|
51 |
+
'country' => __( 'Country', 'give' ),
|
52 |
+
'zip' => __( 'Zip / Postal Code', 'give' ),
|
53 |
+
'form_id' => __( 'Form ID', 'give' ),
|
54 |
+
'form_name' => __( 'Form Name', 'give' ),
|
55 |
+
'amount' => __( 'Amount', 'give' ) . ' (' . give_currency_symbol( '', true ) . ')',
|
56 |
+
'gateway' => __( 'Payment Method', 'give' ),
|
57 |
+
'trans_id' => __( 'Transaction ID', 'give' ),
|
58 |
+
'key' => __( 'Key', 'give' ),
|
59 |
+
'date' => __( 'Date', 'give' ),
|
60 |
+
'user' => __( 'User', 'give' ),
|
61 |
+
'status' => __( 'Status', 'give' )
|
62 |
);
|
63 |
|
64 |
if ( ! give_get_option( 'enable_sequential' ) ) {
|
77 |
* @return array $data The data for the CSV file.
|
78 |
*/
|
79 |
public function get_data() {
|
|
|
80 |
|
81 |
$data = array();
|
82 |
|
143 |
$user_info = give_get_payment_meta_user_info( $payment->ID );
|
144 |
$total = give_get_payment_amount( $payment->ID );
|
145 |
$user_id = isset( $user_info['id'] ) && $user_info['id'] != - 1 ? $user_info['id'] : $user_info['email'];
|
|
|
|
|
146 |
|
147 |
if ( is_numeric( $user_id ) ) {
|
148 |
$user = get_userdata( $user_id );
|
164 |
'zip' => isset( $user_info['address']['zip'] ) ? $user_info['address']['zip'] : '',
|
165 |
'form_id' => isset( $payment_meta['form_id'] ) ? $payment_meta['form_id'] : '',
|
166 |
'form_name' => isset( $payment_meta['form_title'] ) ? $payment_meta['form_title'] : '',
|
|
|
167 |
'amount' => html_entity_decode( give_format_amount( $total ) ),
|
168 |
+
'gateway' => give_get_gateway_admin_label( give_get_meta( $payment->ID, '_give_payment_gateway', true ) ),
|
169 |
'trans_id' => give_get_payment_transaction_id( $payment->ID ),
|
170 |
'key' => $payment_meta['key'],
|
171 |
'date' => $payment->post_date,
|
includes/admin/{reporting → tools}/export/class-batch-export.php
RENAMED
File without changes
|
includes/admin/{reporting → tools/export}/class-export-earnings.php
RENAMED
@@ -61,10 +61,10 @@ class Give_Earnings_Export extends Give_Export {
|
|
61 |
public function csv_cols() {
|
62 |
|
63 |
$cols = array(
|
64 |
-
'date' =>
|
65 |
-
'donations' =>
|
66 |
/* translators: %s: currency */
|
67 |
-
'earnings' => sprintf(
|
68 |
);
|
69 |
|
70 |
return $cols;
|
61 |
public function csv_cols() {
|
62 |
|
63 |
$cols = array(
|
64 |
+
'date' => __( 'Date', 'give' ),
|
65 |
+
'donations' => __( 'Donations', 'give' ),
|
66 |
/* translators: %s: currency */
|
67 |
+
'earnings' => sprintf( __( 'Income (%s)', 'give' ), give_currency_symbol('', true) )
|
68 |
);
|
69 |
|
70 |
return $cols;
|
includes/admin/{reporting → tools/export}/class-export.php
RENAMED
@@ -69,8 +69,8 @@ class Give_Export {
|
|
69 |
*/
|
70 |
public function csv_cols() {
|
71 |
$cols = array(
|
72 |
-
'id' =>
|
73 |
-
'date' =>
|
74 |
);
|
75 |
|
76 |
return $cols;
|
@@ -174,7 +174,7 @@ class Give_Export {
|
|
174 |
*/
|
175 |
public function export() {
|
176 |
if ( ! $this->can_export() ) {
|
177 |
-
wp_die(
|
178 |
}
|
179 |
|
180 |
// Set headers
|
69 |
*/
|
70 |
public function csv_cols() {
|
71 |
$cols = array(
|
72 |
+
'id' => __( 'ID', 'give' ),
|
73 |
+
'date' => __( 'Date', 'give' )
|
74 |
);
|
75 |
|
76 |
return $cols;
|
174 |
*/
|
175 |
public function export() {
|
176 |
if ( ! $this->can_export() ) {
|
177 |
+
wp_die( __( 'You do not have permission to export data.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
|
178 |
}
|
179 |
|
180 |
// Set headers
|
includes/admin/{reporting → tools}/export/export-actions.php
RENAMED
@@ -26,7 +26,7 @@ function give_process_batch_export_form() {
|
|
26 |
wp_die( esc_html__( 'Nonce verification failed.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 403 ) );
|
27 |
}
|
28 |
|
29 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
30 |
|
31 |
/**
|
32 |
* Fires before batch export.
|
@@ -53,7 +53,7 @@ add_action( 'give_form_batch_export', 'give_process_batch_export_form' );
|
|
53 |
* @return void
|
54 |
*/
|
55 |
function give_export_earnings() {
|
56 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
57 |
|
58 |
$earnings_export = new Give_Earnings_Export();
|
59 |
|
@@ -109,7 +109,7 @@ add_action( 'give_register_batch_exporter', 'give_register_payments_batch_export
|
|
109 |
function give_include_payments_batch_processor( $class ) {
|
110 |
|
111 |
if ( 'Give_Batch_Payments_Export' === $class ) {
|
112 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
113 |
}
|
114 |
|
115 |
}
|
@@ -137,7 +137,7 @@ add_action( 'give_register_batch_exporter', 'give_register_customers_batch_expor
|
|
137 |
function give_include_customers_batch_processor( $class ) {
|
138 |
|
139 |
if ( 'Give_Batch_Customers_Export' === $class ) {
|
140 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
141 |
}
|
142 |
|
143 |
}
|
@@ -165,7 +165,7 @@ add_action( 'give_register_batch_exporter', 'give_register_forms_batch_export',
|
|
165 |
function give_include_forms_batch_processor( $class ) {
|
166 |
|
167 |
if ( 'Give_Batch_Forms_Export' === $class ) {
|
168 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
169 |
}
|
170 |
|
171 |
}
|
26 |
wp_die( esc_html__( 'Nonce verification failed.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 403 ) );
|
27 |
}
|
28 |
|
29 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export.php';
|
30 |
|
31 |
/**
|
32 |
* Fires before batch export.
|
53 |
* @return void
|
54 |
*/
|
55 |
function give_export_earnings() {
|
56 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-export-earnings.php';
|
57 |
|
58 |
$earnings_export = new Give_Earnings_Export();
|
59 |
|
109 |
function give_include_payments_batch_processor( $class ) {
|
110 |
|
111 |
if ( 'Give_Batch_Payments_Export' === $class ) {
|
112 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export-payments.php';
|
113 |
}
|
114 |
|
115 |
}
|
137 |
function give_include_customers_batch_processor( $class ) {
|
138 |
|
139 |
if ( 'Give_Batch_Customers_Export' === $class ) {
|
140 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export-customers.php';
|
141 |
}
|
142 |
|
143 |
}
|
165 |
function give_include_forms_batch_processor( $class ) {
|
166 |
|
167 |
if ( 'Give_Batch_Forms_Export' === $class ) {
|
168 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export-forms.php';
|
169 |
}
|
170 |
|
171 |
}
|
includes/admin/{reporting → tools}/export/export-functions.php
RENAMED
@@ -15,8 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
exit;
|
16 |
}
|
17 |
|
18 |
-
|
19 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/export/export-actions.php';
|
20 |
|
21 |
/**
|
22 |
* Process batch exports via ajax
|
@@ -26,7 +25,7 @@ require_once GIVE_PLUGIN_DIR . 'includes/admin/reporting/export/export-actions.p
|
|
26 |
*/
|
27 |
function give_do_ajax_export() {
|
28 |
|
29 |
-
require_once GIVE_PLUGIN_DIR . 'includes/admin/
|
30 |
|
31 |
parse_str( $_POST['form'], $form );
|
32 |
|
15 |
exit;
|
16 |
}
|
17 |
|
18 |
+
|
|
|
19 |
|
20 |
/**
|
21 |
* Process batch exports via ajax
|
25 |
*/
|
26 |
function give_do_ajax_export() {
|
27 |
|
28 |
+
require_once GIVE_PLUGIN_DIR . 'includes/admin/tools/export/class-batch-export.php';
|
29 |
|
30 |
parse_str( $_POST['form'], $form );
|
31 |
|
includes/admin/{reporting → tools/export}/pdf-reports.php
RENAMED
@@ -28,11 +28,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
28 |
function give_generate_pdf( $data ) {
|
29 |
|
30 |
if ( ! current_user_can( 'view_give_reports' ) ) {
|
31 |
-
wp_die(
|
32 |
}
|
33 |
|
34 |
if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'give_generate_pdf' ) ) {
|
35 |
-
wp_die(
|
36 |
}
|
37 |
|
38 |
require_once GIVE_PLUGIN_DIR . '/includes/libraries/fpdf/fpdf.php';
|
@@ -41,12 +41,15 @@ function give_generate_pdf( $data ) {
|
|
41 |
$daterange = utf8_decode(
|
42 |
sprintf(
|
43 |
/* translators: 1: start date 2: end date */
|
44 |
-
|
45 |
date_i18n( give_date_format(), mktime( 0, 0, 0, 1, 1, date( 'Y' ) ) ),
|
46 |
date_i18n( give_date_format() )
|
47 |
)
|
48 |
);
|
49 |
|
|
|
|
|
|
|
50 |
$pdf = new give_pdf();
|
51 |
$pdf->AddPage( 'L', 'A4' );
|
52 |
|
@@ -76,16 +79,25 @@ function give_generate_pdf( $data ) {
|
|
76 |
$pdf->SetFillColor( 238, 238, 238 );
|
77 |
$pdf->Cell( 70, 6, utf8_decode( __( 'Form Name', 'give' ) ), 1, 0, 'L', true );
|
78 |
$pdf->Cell( 30, 6, utf8_decode( __( 'Price', 'give' ) ), 1, 0, 'L', true );
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
$pdf->Cell( 45, 6, utf8_decode( __( 'Number of Donations', 'give' ) ), 1, 0, 'L', true );
|
82 |
-
$pdf->Cell(
|
83 |
|
84 |
$year = date( 'Y' );
|
85 |
$give_forms = get_posts( array( 'post_type' => 'give_forms', 'year' => $year, 'posts_per_page' => - 1 ) );
|
86 |
|
87 |
if ( $give_forms ) {
|
88 |
-
$pdf->SetWidths( array( 70, 30,
|
89 |
|
90 |
foreach ( $give_forms as $form ):
|
91 |
$pdf->SetFillColor( 255, 255, 255 );
|
@@ -108,20 +120,26 @@ function give_generate_pdf( $data ) {
|
|
108 |
$max = $first;
|
109 |
}
|
110 |
|
111 |
-
$price =
|
112 |
} else {
|
113 |
-
$price =
|
114 |
}
|
115 |
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
118 |
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
121 |
|
122 |
$sales = give_get_form_sales_stats( $form->ID );
|
123 |
$link = get_permalink( $form->ID );
|
124 |
-
$earnings =
|
125 |
|
126 |
if ( function_exists( 'iconv' ) ) {
|
127 |
// Ensure characters like euro; are properly converted.
|
@@ -129,11 +147,38 @@ function give_generate_pdf( $data ) {
|
|
129 |
$earnings = iconv( 'UTF-8', 'windows-1252', utf8_encode( $earnings ) );
|
130 |
}
|
131 |
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
endforeach;
|
134 |
} else {
|
135 |
-
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
$pdf->Row( array( $title ) );
|
138 |
}
|
139 |
|
@@ -215,7 +260,7 @@ function give_draw_chart_image() {
|
|
215 |
$earnings_array[11]
|
216 |
) );
|
217 |
|
218 |
-
$data->setLegend(
|
219 |
$data->setColor( '1b58a3' );
|
220 |
$chart->addData( $data );
|
221 |
|
@@ -245,11 +290,11 @@ function give_draw_chart_image() {
|
|
245 |
$sales_array[10],
|
246 |
$sales_array[11]
|
247 |
) );
|
248 |
-
$data->setLegend(
|
249 |
$data->setColor( 'ff6c1c' );
|
250 |
$chart->addData( $data );
|
251 |
|
252 |
-
$chart->setTitle(
|
253 |
|
254 |
$chart->setScale( 0, $max_earnings );
|
255 |
|
@@ -260,18 +305,18 @@ function give_draw_chart_image() {
|
|
260 |
$x_axis = new GoogleChartAxis( 'x' );
|
261 |
$x_axis->setTickMarks( 5 );
|
262 |
$x_axis->setLabels( array(
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
) );
|
276 |
$chart->addAxis( $x_axis );
|
277 |
|
28 |
function give_generate_pdf( $data ) {
|
29 |
|
30 |
if ( ! current_user_can( 'view_give_reports' ) ) {
|
31 |
+
wp_die( __( 'You do not have permission to generate PDF sales reports.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
|
32 |
}
|
33 |
|
34 |
if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'give_generate_pdf' ) ) {
|
35 |
+
wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
|
36 |
}
|
37 |
|
38 |
require_once GIVE_PLUGIN_DIR . '/includes/libraries/fpdf/fpdf.php';
|
41 |
$daterange = utf8_decode(
|
42 |
sprintf(
|
43 |
/* translators: 1: start date 2: end date */
|
44 |
+
__( '%1$s to %2$s', 'give' ),
|
45 |
date_i18n( give_date_format(), mktime( 0, 0, 0, 1, 1, date( 'Y' ) ) ),
|
46 |
date_i18n( give_date_format() )
|
47 |
)
|
48 |
);
|
49 |
|
50 |
+
$categories_enabled = give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) );
|
51 |
+
$tags_enabled = give_is_setting_enabled( give_get_option( 'tags', 'disabled' ) );
|
52 |
+
|
53 |
$pdf = new give_pdf();
|
54 |
$pdf->AddPage( 'L', 'A4' );
|
55 |
|
79 |
$pdf->SetFillColor( 238, 238, 238 );
|
80 |
$pdf->Cell( 70, 6, utf8_decode( __( 'Form Name', 'give' ) ), 1, 0, 'L', true );
|
81 |
$pdf->Cell( 30, 6, utf8_decode( __( 'Price', 'give' ) ), 1, 0, 'L', true );
|
82 |
+
|
83 |
+
// Display Categories Heading only, if user has opted for it.
|
84 |
+
if ( $categories_enabled ) {
|
85 |
+
$pdf->Cell( 45, 6, utf8_decode( __( 'Categories', 'give' ) ), 1, 0, 'L', true );
|
86 |
+
}
|
87 |
+
|
88 |
+
// Display Tags Heading only, if user has opted for it.
|
89 |
+
if ( $tags_enabled ) {
|
90 |
+
$pdf->Cell( 45, 6, utf8_decode( __( 'Tags', 'give' ) ), 1, 0, 'L', true );
|
91 |
+
}
|
92 |
+
|
93 |
$pdf->Cell( 45, 6, utf8_decode( __( 'Number of Donations', 'give' ) ), 1, 0, 'L', true );
|
94 |
+
$pdf->Cell( 45, 6, utf8_decode( __( 'Income to Date', 'give' ) ), 1, 1, 'L', true );
|
95 |
|
96 |
$year = date( 'Y' );
|
97 |
$give_forms = get_posts( array( 'post_type' => 'give_forms', 'year' => $year, 'posts_per_page' => - 1 ) );
|
98 |
|
99 |
if ( $give_forms ) {
|
100 |
+
$pdf->SetWidths( array( 70, 30, 45, 45, 45, 45 ) );
|
101 |
|
102 |
foreach ( $give_forms as $form ):
|
103 |
$pdf->SetFillColor( 255, 255, 255 );
|
120 |
$max = $first;
|
121 |
}
|
122 |
|
123 |
+
$price = give_currency_filter( give_format_amount( $min ), '', true ) . ' - ' . give_currency_filter( give_format_amount( $max ), '', true );
|
124 |
} else {
|
125 |
+
$price = give_currency_filter( give_get_form_price( $form->ID ), '', true );
|
126 |
}
|
127 |
|
128 |
+
// Display Categories Data only, if user has opted for it.
|
129 |
+
if ( $categories_enabled ) {
|
130 |
+
$categories = get_the_term_list( $form->ID, 'give_forms_category', '', ', ', '' );
|
131 |
+
$categories = ! is_wp_error( $categories ) ? strip_tags( $categories ) : '';
|
132 |
+
}
|
133 |
|
134 |
+
// Display Tags Data only, if user has opted for it.
|
135 |
+
if ( $tags_enabled ) {
|
136 |
+
$tags = get_the_term_list( $form->ID, 'give_forms_tag', '', ', ', '' );
|
137 |
+
$tags = ! is_wp_error( $tags ) ? strip_tags( $tags ) : '';
|
138 |
+
}
|
139 |
|
140 |
$sales = give_get_form_sales_stats( $form->ID );
|
141 |
$link = get_permalink( $form->ID );
|
142 |
+
$earnings = give_currency_filter( give_get_form_earnings_stats( $form->ID ), '', true );
|
143 |
|
144 |
if ( function_exists( 'iconv' ) ) {
|
145 |
// Ensure characters like euro; are properly converted.
|
147 |
$earnings = iconv( 'UTF-8', 'windows-1252', utf8_encode( $earnings ) );
|
148 |
}
|
149 |
|
150 |
+
// This will help filter data before appending it to PDF Receipt.
|
151 |
+
$prepare_pdf_data = array();
|
152 |
+
$prepare_pdf_data[] = $title;
|
153 |
+
$prepare_pdf_data[] = $price;
|
154 |
+
|
155 |
+
// Append Categories Data only, if user has opted for it.
|
156 |
+
if ( $categories_enabled ) {
|
157 |
+
$prepare_pdf_data[] = $categories;
|
158 |
+
}
|
159 |
+
|
160 |
+
// Append Tags Data only, if user has opted for it.
|
161 |
+
if ( $tags_enabled ) {
|
162 |
+
$prepare_pdf_data[] = $tags;
|
163 |
+
}
|
164 |
+
|
165 |
+
$prepare_pdf_data[] = $sales;
|
166 |
+
$prepare_pdf_data[] = $earnings;
|
167 |
+
|
168 |
+
$pdf->Row( $prepare_pdf_data );
|
169 |
endforeach;
|
170 |
} else {
|
171 |
+
|
172 |
+
// Fix: Minor Styling Alignment Issue for PDF
|
173 |
+
if( $categories_enabled && $tags_enabled ) {
|
174 |
+
$pdf->SetWidths( array( 280 ) );
|
175 |
+
} elseif( $categories_enabled || $tags_enabled ) {
|
176 |
+
$pdf->SetWidths( array( 235 ) );
|
177 |
+
} else {
|
178 |
+
$pdf->SetWidths( array( 190 ) );
|
179 |
+
}
|
180 |
+
|
181 |
+
$title = utf8_decode( __( 'No forms found.', 'give' ) );
|
182 |
$pdf->Row( array( $title ) );
|
183 |
}
|
184 |
|
260 |
$earnings_array[11]
|
261 |
) );
|
262 |
|
263 |
+
$data->setLegend( __( 'Income', 'give' ) );
|
264 |
$data->setColor( '1b58a3' );
|
265 |
$chart->addData( $data );
|
266 |
|
290 |
$sales_array[10],
|
291 |
$sales_array[11]
|
292 |
) );
|
293 |
+
$data->setLegend( __( 'Donations', 'give' ) );
|
294 |
$data->setColor( 'ff6c1c' );
|
295 |
$chart->addData( $data );
|
296 |
|
297 |
+
$chart->setTitle( __( 'Donations by Month for all Give Forms', 'give' ), '336699', 18 );
|
298 |
|
299 |
$chart->setScale( 0, $max_earnings );
|
300 |
|
305 |
$x_axis = new GoogleChartAxis( 'x' );
|
306 |
$x_axis->setTickMarks( 5 );
|
307 |
$x_axis->setLabels( array(
|
308 |
+
__( 'Jan', 'give' ),
|
309 |
+
__( 'Feb', 'give' ),
|
310 |
+
__( 'Mar', 'give' ),
|
311 |
+
__( 'Apr', 'give' ),
|
312 |
+
__( 'May', 'give' ),
|
313 |
+
__( 'June', 'give' ),
|
314 |
+
__( 'July', 'give' ),
|
315 |
+
__( 'Aug', 'give' ),
|
316 |
+
__( 'Sept', 'give' ),
|
317 |
+
__( 'Oct', 'give' ),
|
318 |
+
__( 'Nov', 'give' ),
|
319 |
+
__( 'Dec', 'give' )
|
320 |
) );
|
321 |
$chart->addAxis( $x_axis );
|
322 |
|
includes/admin/{reporting → tools/logs}/class-api-requests-logs-list-table.php
RENAMED
@@ -142,9 +142,9 @@ class Give_API_Request_Log_Table extends WP_List_Table {
|
|
142 |
echo '<div>' . esc_html( $error ) . '</div>';
|
143 |
}
|
144 |
echo '<p><strong>' . esc_html__( 'API User:', 'give' ) . '</strong></p>';
|
145 |
-
echo '<div>' .
|
146 |
echo '<p><strong>' . esc_html__( 'API Key:', 'give' ) . '</strong></p>';
|
147 |
-
echo '<div>' .
|
148 |
echo '<p><strong>' . esc_html__( 'Request Date:', 'give' ) . '</strong></p>';
|
149 |
echo '<div>' . get_post_field( 'post_date', $item['ID'] ) . '</div>';
|
150 |
?>
|
@@ -300,7 +300,7 @@ class Give_API_Request_Log_Table extends WP_List_Table {
|
|
300 |
|
301 |
$logs_data[] = array(
|
302 |
'ID' => $log->ID,
|
303 |
-
'ip' =>
|
304 |
'date' => $log->post_date,
|
305 |
);
|
306 |
}
|
@@ -330,7 +330,7 @@ class Give_API_Request_Log_Table extends WP_List_Table {
|
|
330 |
$sortable = $this->get_sortable_columns();
|
331 |
$this->_column_headers = array( $columns, $hidden, $sortable );
|
332 |
$this->items = $this->get_logs();
|
333 |
-
$total_items = $give_logs->get_log_count( 0, '
|
334 |
|
335 |
$this->set_pagination_args( array(
|
336 |
'total_items' => $total_items,
|
142 |
echo '<div>' . esc_html( $error ) . '</div>';
|
143 |
}
|
144 |
echo '<p><strong>' . esc_html__( 'API User:', 'give' ) . '</strong></p>';
|
145 |
+
echo '<div>' . give_get_meta( $item['ID'], '_give_log_user', true ) . '</div>';
|
146 |
echo '<p><strong>' . esc_html__( 'API Key:', 'give' ) . '</strong></p>';
|
147 |
+
echo '<div>' . give_get_meta( $item['ID'], '_give_log_key', true ) . '</div>';
|
148 |
echo '<p><strong>' . esc_html__( 'Request Date:', 'give' ) . '</strong></p>';
|
149 |
echo '<div>' . get_post_field( 'post_date', $item['ID'] ) . '</div>';
|
150 |
?>
|
300 |
|
301 |
$logs_data[] = array(
|
302 |
'ID' => $log->ID,
|
303 |
+
'ip' => give_get_meta( $log->ID, '_give_log_request_ip', true ),
|
304 |
'date' => $log->post_date,
|
305 |
);
|
306 |
}
|
330 |
$sortable = $this->get_sortable_columns();
|
331 |
$this->_column_headers = array( $columns, $hidden, $sortable );
|
332 |
$this->items = $this->get_logs();
|
333 |
+
$total_items = $give_logs->get_log_count( 0, 'api_request' );
|
334 |
|
335 |
$this->set_pagination_args( array(
|
336 |
'total_items' => $total_items,
|
includes/admin/{reporting → tools/logs}/class-gateway-error-logs-list-table.php
RENAMED
File without changes
|
includes/admin/{reporting → tools/logs}/class-sales-logs-list-table.php
RENAMED
@@ -87,7 +87,7 @@ class Give_Sales_Log_Table extends WP_List_Table {
|
|
87 |
$value = '<div class="give-donation-status status-' . sanitize_title( give_get_payment_status( $payment, true ) ) . '"><span class="give-donation-status-icon"></span> ' . give_get_payment_status( $payment, true ) . '</div>';
|
88 |
|
89 |
if ( $payment->mode == 'test' ) {
|
90 |
-
$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="' . esc_attr__( 'This donation was made in test mode.', 'give' ) . '">' .
|
91 |
}
|
92 |
|
93 |
return $value;
|
@@ -109,13 +109,13 @@ class Give_Sales_Log_Table extends WP_List_Table {
|
|
109 |
*/
|
110 |
public function get_columns() {
|
111 |
$columns = array(
|
112 |
-
'ID' =>
|
113 |
-
'user_id' =>
|
114 |
-
'form' =>
|
115 |
-
'amount' =>
|
116 |
-
'status' =>
|
117 |
-
'payment_id' =>
|
118 |
-
'date' =>
|
119 |
);
|
120 |
|
121 |
return $columns;
|
@@ -304,7 +304,7 @@ class Give_Sales_Log_Table extends WP_List_Table {
|
|
304 |
|
305 |
if ( $give_forms ) {
|
306 |
echo '<select name="form" id="give-log-form-filter">';
|
307 |
-
echo '<option value="0">' .
|
308 |
foreach ( $give_forms as $form ) {
|
309 |
$form_title = get_the_title( $form );
|
310 |
$form_title = empty( $form_title ) ? sprintf( __( 'Untitled (#%s)', 'give' ), $form ) : $form_title;
|
@@ -346,7 +346,7 @@ class Give_Sales_Log_Table extends WP_List_Table {
|
|
346 |
|
347 |
if ( $logs ) {
|
348 |
foreach ( $logs as $log ) {
|
349 |
-
$payment_id =
|
350 |
|
351 |
// Make sure this payment hasn't been deleted
|
352 |
if ( get_post( $payment_id ) ) :
|
87 |
$value = '<div class="give-donation-status status-' . sanitize_title( give_get_payment_status( $payment, true ) ) . '"><span class="give-donation-status-icon"></span> ' . give_get_payment_status( $payment, true ) . '</div>';
|
88 |
|
89 |
if ( $payment->mode == 'test' ) {
|
90 |
+
$value .= ' <span class="give-item-label give-item-label-orange give-test-mode-transactions-label" data-tooltip="' . esc_attr__( 'This donation was made in test mode.', 'give' ) . '">' . __( 'Test', 'give' ) . '</span>';
|
91 |
}
|
92 |
|
93 |
return $value;
|
109 |
*/
|
110 |
public function get_columns() {
|
111 |
$columns = array(
|
112 |
+
'ID' => __( 'Log ID', 'give' ),
|
113 |
+
'user_id' => __( 'Donor', 'give' ),
|
114 |
+
'form' => __( 'Form', 'give' ),
|
115 |
+
'amount' => __( 'Donation Amount', 'give' ),
|
116 |
+
'status' => __( 'Status', 'give' ),
|
117 |
+
'payment_id' => __( 'Transaction ID', 'give' ),
|
118 |
+
'date' => __( 'Date', 'give' ),
|
119 |
);
|
120 |
|
121 |
return $columns;
|
304 |
|
305 |
if ( $give_forms ) {
|
306 |
echo '<select name="form" id="give-log-form-filter">';
|
307 |
+
echo '<option value="0">' . __( 'All', 'give' ) . '</option>';
|
308 |
foreach ( $give_forms as $form ) {
|
309 |
$form_title = get_the_title( $form );
|
310 |
$form_title = empty( $form_title ) ? sprintf( __( 'Untitled (#%s)', 'give' ), $form ) : $form_title;
|
346 |
|
347 |
if ( $logs ) {
|
348 |
foreach ( $logs as $log ) {
|
349 |
+
$payment_id = give_get_meta( $log->ID, '_give_log_payment_id', true );
|
350 |
|
351 |
// Make sure this payment hasn't been deleted
|
352 |
if ( get_post( $payment_id ) ) :
|
includes/admin/{reporting → tools/logs}/logs.php
RENAMED
@@ -14,6 +14,28 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
exit;
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
/**
|
18 |
* Sales Log View
|
19 |
*
|
@@ -23,7 +45,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
23 |
* @return void
|
24 |
*/
|
25 |
function give_logs_view_sales() {
|
26 |
-
|
|
|
27 |
|
28 |
$logs_table = new Give_Sales_Log_Table();
|
29 |
$logs_table->prepare_items();
|
@@ -43,7 +66,7 @@ add_action( 'give_logs_view_sales', 'give_logs_view_sales' );
|
|
43 |
* @return void
|
44 |
*/
|
45 |
function give_logs_view_gateway_errors() {
|
46 |
-
include(
|
47 |
|
48 |
$logs_table = new Give_Gateway_Error_Log_Table();
|
49 |
$logs_table->prepare_items();
|
@@ -62,7 +85,7 @@ add_action( 'give_logs_view_gateway_errors', 'give_logs_view_gateway_errors' );
|
|
62 |
* @return void
|
63 |
*/
|
64 |
function give_logs_view_api_requests() {
|
65 |
-
include(
|
66 |
|
67 |
$logs_table = new Give_API_Request_Log_Table();
|
68 |
$logs_table->prepare_items();
|
@@ -103,7 +126,7 @@ function give_logs_view_api_requests() {
|
|
103 |
add_action( 'give_logs_view_api_requests', 'give_logs_view_api_requests' );
|
104 |
|
105 |
/**
|
106 |
-
* Renders the
|
107 |
*
|
108 |
* @since 1.0
|
109 |
* @return void
|
@@ -135,4 +158,4 @@ function give_log_views() {
|
|
135 |
<?php submit_button( esc_html__( 'Apply', 'give' ), 'secondary', 'submit', false ); ?>
|
136 |
</form>
|
137 |
<?php
|
138 |
-
}
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
+
/**
|
18 |
+
* Renders the logs tab.
|
19 |
+
*
|
20 |
+
* @since 1.0
|
21 |
+
* @return void
|
22 |
+
*/
|
23 |
+
function give_get_logs_tab() {
|
24 |
+
|
25 |
+
require( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/logs.php' );
|
26 |
+
|
27 |
+
// Get current section.
|
28 |
+
$current_section = $_GET['section'] = give_get_current_setting_section();
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Fires the in report page logs view.
|
32 |
+
*
|
33 |
+
* @since 1.0
|
34 |
+
*/
|
35 |
+
do_action( "give_logs_view_{$current_section}" );
|
36 |
+
}
|
37 |
+
|
38 |
+
|
39 |
/**
|
40 |
* Sales Log View
|
41 |
*
|
45 |
* @return void
|
46 |
*/
|
47 |
function give_logs_view_sales() {
|
48 |
+
|
49 |
+
include GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-sales-logs-list-table.php';
|
50 |
|
51 |
$logs_table = new Give_Sales_Log_Table();
|
52 |
$logs_table->prepare_items();
|
66 |
* @return void
|
67 |
*/
|
68 |
function give_logs_view_gateway_errors() {
|
69 |
+
include( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-gateway-error-logs-list-table.php' );
|
70 |
|
71 |
$logs_table = new Give_Gateway_Error_Log_Table();
|
72 |
$logs_table->prepare_items();
|
85 |
* @return void
|
86 |
*/
|
87 |
function give_logs_view_api_requests() {
|
88 |
+
include( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-api-requests-logs-list-table.php' );
|
89 |
|
90 |
$logs_table = new Give_API_Request_Log_Table();
|
91 |
$logs_table->prepare_items();
|
126 |
add_action( 'give_logs_view_api_requests', 'give_logs_view_api_requests' );
|
127 |
|
128 |
/**
|
129 |
+
* Renders the log views drop down.
|
130 |
*
|
131 |
* @since 1.0
|
132 |
* @return void
|
158 |
<?php submit_button( esc_html__( 'Apply', 'give' ), 'secondary', 'submit', false ); ?>
|
159 |
</form>
|
160 |
<?php
|
161 |
+
}
|
includes/admin/{reporting/tools.php → tools/views/html-admin-page-data.php}
RENAMED
@@ -1,38 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
* @package Give
|
6 |
-
* @subpackage Admin/Reports
|
7 |
-
* @copyright Copyright (c) 2016, WordImpress
|
8 |
-
* @license https://opensource.org/licenses/gpl-license GNU Public License
|
9 |
-
* @since 1.5
|
10 |
*/
|
11 |
|
12 |
-
// Exit if accessed directly.
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
exit;
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
17 |
/**
|
18 |
-
*
|
19 |
*
|
20 |
-
* @since
|
21 |
-
* @return void
|
22 |
*/
|
23 |
-
|
24 |
-
|
25 |
-
if ( ! current_user_can( 'manage_give_settings' ) ) {
|
26 |
-
return;
|
27 |
-
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Fires before displaying the recount stats tools.
|
31 |
-
*
|
32 |
-
* @since 1.5
|
33 |
-
*/
|
34 |
-
do_action( 'give_tools_recount_stats_before' );
|
35 |
-
?>
|
36 |
<div id="poststuff">
|
37 |
<div class="postbox">
|
38 |
|
@@ -114,11 +99,10 @@ function give_tools_recount_stats_display() {
|
|
114 |
</div><!-- .inside -->
|
115 |
</div><!-- .postbox -->
|
116 |
</div><!-- #poststuff -->
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Admin View: Exports
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
*/
|
5 |
|
|
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
exit;
|
8 |
}
|
9 |
|
10 |
+
if ( ! current_user_can( 'manage_give_settings' ) ) {
|
11 |
+
return;
|
12 |
+
}
|
13 |
+
|
14 |
/**
|
15 |
+
* Fires before displaying the recount stats tools.
|
16 |
*
|
17 |
+
* @since 1.5
|
|
|
18 |
*/
|
19 |
+
do_action( 'give_tools_recount_stats_before' );
|
20 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<div id="poststuff">
|
22 |
<div class="postbox">
|
23 |
|
99 |
</div><!-- .inside -->
|
100 |
</div><!-- .postbox -->
|
101 |
</div><!-- #poststuff -->
|
102 |
+
<?php
|
103 |
+
/**
|
104 |
+
* Fires after displaying the recount stats tools.
|
105 |
+
*
|
106 |
+
* @since 1.5
|
107 |
+
*/
|
108 |
+
do_action( 'give_tools_recount_stats_after' );
|
|
includes/admin/tools/views/html-admin-page-exports.php
ADDED
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
7 |
+
exit;
|
8 |
+
} ?>
|
9 |
+
|
10 |
+
<div id="poststuff">
|
11 |
+
<div id="give-dashboard-widgets-wrap">
|
12 |
+
<div id="post-body">
|
13 |
+
<div id="post-body-content">
|
14 |
+
|
15 |
+
<?php
|
16 |
+
/**
|
17 |
+
* Fires before the reports export tab.
|
18 |
+
*
|
19 |
+
* @since 1.0
|
20 |
+
*/
|
21 |
+
do_action( 'give_tools_tab_export_content_top' );
|
22 |
+
?>
|
23 |
+
|
24 |
+
<table class="widefat export-options-table give-table">
|
25 |
+
<thead>
|
26 |
+
<tr>
|
27 |
+
<th scope="col"><?php esc_html_e( 'Export Type', 'give' ); ?></th>
|
28 |
+
<th scope="col"><?php esc_html_e( 'Export Options', 'give' ); ?></th>
|
29 |
+
</tr>
|
30 |
+
</thead>
|
31 |
+
<tbody>
|
32 |
+
<?php
|
33 |
+
/**
|
34 |
+
* Fires in the reports export tab.
|
35 |
+
*
|
36 |
+
* Allows you to add new TR elements to the table before
|
37 |
+
* other elements.
|
38 |
+
*
|
39 |
+
* @since 1.0
|
40 |
+
*/
|
41 |
+
do_action( 'give_tools_tab_export_table_top' );
|
42 |
+
?>
|
43 |
+
<tr class="give-export-pdf-sales-earnings">
|
44 |
+
<td scope="row" class="row-title">
|
45 |
+
<h3>
|
46 |
+
<span><?php esc_html_e( 'Export PDF of Donations and Income', 'give' ); ?></span>
|
47 |
+
</h3>
|
48 |
+
<p><?php esc_html_e( 'Download a PDF of Donations and Income reports for all forms for the current year.', 'give' ); ?></p>
|
49 |
+
</td>
|
50 |
+
<td>
|
51 |
+
<a class="button"
|
52 |
+
href="<?php echo wp_nonce_url( add_query_arg( [
|
53 |
+
'give-action' => 'generate_pdf',
|
54 |
+
] ), 'give_generate_pdf' ); ?>"><?php esc_html_e( 'Generate PDF', 'give' ); ?></a>
|
55 |
+
</td>
|
56 |
+
</tr>
|
57 |
+
<tr class="alternate give-export-sales-earnings">
|
58 |
+
<td scope="row" class="row-title">
|
59 |
+
<h3>
|
60 |
+
<span><?php esc_html_e( 'Export Income and Donation Stats', 'give' ); ?></span>
|
61 |
+
</h3>
|
62 |
+
<p><?php esc_html_e( 'Download a CSV of income and donations over time.', 'give' ); ?></p>
|
63 |
+
</td>
|
64 |
+
<td>
|
65 |
+
<form method="post">
|
66 |
+
<?php
|
67 |
+
printf(
|
68 |
+
/* translators: 1: start date dropdown 2: end date dropdown */
|
69 |
+
esc_html__( '%1$s to %2$s', 'give' ),
|
70 |
+
Give()->html->year_dropdown( 'start_year' ) . ' ' . Give()->html->month_dropdown( 'start_month' ),
|
71 |
+
Give()->html->year_dropdown( 'end_year' ) . ' ' . Give()->html->month_dropdown( 'end_month' )
|
72 |
+
);
|
73 |
+
?>
|
74 |
+
<input type="hidden" name="give-action"
|
75 |
+
value="earnings_export"/>
|
76 |
+
<input type="submit"
|
77 |
+
value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>"
|
78 |
+
class="button-secondary"/>
|
79 |
+
</form>
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
<tr class="give-export-payment-history">
|
83 |
+
<td scope="row" class="row-title">
|
84 |
+
<h3>
|
85 |
+
<span><?php esc_html_e( 'Export Donation History', 'give' ); ?></span>
|
86 |
+
</h3>
|
87 |
+
<p><?php esc_html_e( 'Download a CSV of all donations recorded.', 'give' ); ?></p>
|
88 |
+
</td>
|
89 |
+
<td>
|
90 |
+
<form id="give-export-payments"
|
91 |
+
class="give-export-form" method="post">
|
92 |
+
<?php
|
93 |
+
$args = [
|
94 |
+
'id' => 'give-payment-export-start',
|
95 |
+
'name' => 'start',
|
96 |
+
'placeholder' => esc_attr__( 'Start date', 'give' ),
|
97 |
+
];
|
98 |
+
echo Give()->html->date_field( $args ); ?>
|
99 |
+
<?php
|
100 |
+
$args = [
|
101 |
+
'id' => 'give-payment-export-end',
|
102 |
+
'name' => 'end',
|
103 |
+
'placeholder' => esc_attr__( 'End date', 'give' ),
|
104 |
+
];
|
105 |
+
echo Give()->html->date_field( $args ); ?>
|
106 |
+
<select name="status">
|
107 |
+
<option value="any"><?php esc_html_e( 'All Statuses', 'give' ); ?></option>
|
108 |
+
<?php
|
109 |
+
$statuses = give_get_payment_statuses();
|
110 |
+
foreach ( $statuses as $status => $label ) {
|
111 |
+
echo '<option value="' . $status . '">' . $label . '</option>';
|
112 |
+
}
|
113 |
+
?>
|
114 |
+
</select>
|
115 |
+
<?php
|
116 |
+
if ( give_is_setting_enabled( give_get_option( 'categories' ) ) ) {
|
117 |
+
echo Give()->html->category_dropdown(
|
118 |
+
'give_forms_categories[]',
|
119 |
+
0,
|
120 |
+
[
|
121 |
+
'class' => 'give_forms_categories',
|
122 |
+
'chosen' => true,
|
123 |
+
'multiple' => true,
|
124 |
+
'selected' => [],
|
125 |
+
'show_option_all' => false,
|
126 |
+
'placeholder' => __( 'Choose one or more from categories', 'give' ),
|
127 |
+
]
|
128 |
+
);
|
129 |
+
}
|
130 |
+
|
131 |
+
if ( give_is_setting_enabled( give_get_option( 'tags' ) ) ) {
|
132 |
+
echo Give()->html->tags_dropdown(
|
133 |
+
'give_forms_tags[]',
|
134 |
+
0,
|
135 |
+
[
|
136 |
+
'class' => 'give_forms_tags',
|
137 |
+
'chosen' => true,
|
138 |
+
'multiple' => true,
|
139 |
+
'selected' => [],
|
140 |
+
'show_option_all' => false,
|
141 |
+
'placeholder' => __( 'Choose one or more from tags', 'give' ),
|
142 |
+
]
|
143 |
+
);
|
144 |
+
}
|
145 |
+
|
146 |
+
wp_nonce_field( 'give_ajax_export', 'give_ajax_export' );
|
147 |
+
?>
|
148 |
+
<input type="hidden" name="give-export-class"
|
149 |
+
value="Give_Batch_Payments_Export"/>
|
150 |
+
<span>
|
151 |
+
<input type="submit"
|
152 |
+
value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>"
|
153 |
+
class="button-secondary"/>
|
154 |
+
<span class="spinner"></span>
|
155 |
+
</span>
|
156 |
+
</form>
|
157 |
+
</td>
|
158 |
+
</tr>
|
159 |
+
<tr class="alternate give-export-donors">
|
160 |
+
<td scope="row" class="row-title">
|
161 |
+
<h3>
|
162 |
+
<span><?php esc_html_e( 'Export Donors in CSV', 'give' ); ?></span>
|
163 |
+
</h3>
|
164 |
+
<p><?php esc_html_e( 'Download an export of donors for all donation forms or only those who have given to a particular form.', 'give' ); ?></p>
|
165 |
+
</td>
|
166 |
+
<td>
|
167 |
+
<form method="post" id="give_donor_export"
|
168 |
+
class="give-export-form">
|
169 |
+
|
170 |
+
<?php
|
171 |
+
$args = [
|
172 |
+
'name' => 'forms',
|
173 |
+
'id' => 'give_donor_export_form',
|
174 |
+
'chosen' => true,
|
175 |
+
];
|
176 |
+
echo Give()->html->forms_dropdown( $args ); ?>
|
177 |
+
|
178 |
+
<input type="submit"
|
179 |
+
value="<?php esc_attr_e( 'Generate CSV', 'give' ); ?>"
|
180 |
+
class="button-secondary"/>
|
181 |
+
|
182 |
+
<div id="export-donor-options-wrap"
|
183 |
+
class="give-clearfix">
|
184 |
+
<p><?php esc_html_e( 'Export Columns:', 'give' ); ?></p>
|
185 |
+
<ul id="give-export-option-ul">
|
186 |
+
<li>
|
187 |
+
<label for="give-export-fullname">
|
188 |
+
<input type="checkbox" checked
|
189 |
+
name="give_export_option[full_name]"
|
190 |
+
id="give-export-fullname"><?php esc_html_e( 'Name', 'give' ); ?>
|
191 |
+
</label>
|
192 |
+
</li>
|
193 |
+
<li>
|
194 |
+
<label for="give-export-email">
|
195 |
+
<input type="checkbox" checked
|
196 |
+
name="give_export_option[email]"
|
197 |
+
id="give-export-email"><?php esc_html_e( 'Email', 'give' ); ?>
|
198 |
+
</label>
|
199 |
+
</li>
|
200 |
+
<li>
|
201 |
+
<label for="give-export-address">
|
202 |
+
<input type="checkbox" checked
|
203 |
+
name="give_export_option[address]"
|
204 |
+
id="give-export-address"><?php esc_html_e( 'Address', 'give' ); ?>
|
205 |
+
</label>
|
206 |
+
</li>
|
207 |
+
<li>
|
208 |
+
<label for="give-export-userid">
|
209 |
+
<input type="checkbox" checked
|
210 |
+
name="give_export_option[userid]"
|
211 |
+
id="give-export-userid"><?php esc_html_e( 'User ID', 'give' ); ?>
|
212 |
+
</label>
|
213 |
+
</li>
|
214 |
+
<li>
|
215 |
+
<label for="give-export-first-donation-date">
|
216 |
+
<input type="checkbox" checked
|
217 |
+
name="give_export_option[date_first_donated]"
|
218 |
+
id="give-export-first-donation-date"><?php esc_html_e( 'First Donation Date', 'give' ); ?>
|
219 |
+
</label>
|
220 |
+
</li>
|
221 |
+
<li>
|
222 |
+
<label for="give-export-donation-number">
|
223 |
+
<input type="checkbox" checked
|
224 |
+
name="give_export_option[donations]"
|
225 |
+
id="give-export-donation-number"><?php esc_html_e( 'Number of Donations', 'give' ); ?>
|
226 |
+
</label>
|
227 |
+
</li>
|
228 |
+
<li>
|
229 |
+
<label for="give-export-donation-sum">
|
230 |
+
<input type="checkbox" checked
|
231 |
+
name="give_export_option[donation_sum]"
|
232 |
+
id="give-export-donation-sum"><?php esc_html_e( 'Total Donated', 'give' ); ?>
|
233 |
+
</label>
|
234 |
+
</li>
|
235 |
+
</ul>
|
236 |
+
</div>
|
237 |
+
<?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?>
|
238 |
+
<input type="hidden" name="give-export-class"
|
239 |
+
value="Give_Batch_Customers_Export"/>
|
240 |
+
<input type="hidden"
|
241 |
+
name="give_export_option[query_id]"
|
242 |
+
value="<?php echo uniqid( 'give_' ); ?>"/>
|
243 |
+
</form>
|
244 |
+
</td>
|
245 |
+
</tr>
|
246 |
+
<?php
|
247 |
+
/**
|
248 |
+
* Fires in the reports export tab.
|
249 |
+
*
|
250 |
+
* Allows you to add new TR elements to the table after
|
251 |
+
* other elements.
|
252 |
+
*
|
253 |
+
* @since 1.0
|
254 |
+
*/
|
255 |
+
do_action( 'give_tools_tab_export_table_bottom' );
|
256 |
+
?>
|
257 |
+
</tbody>
|
258 |
+
</table>
|
259 |
+
|
260 |
+
<?php
|
261 |
+
/**
|
262 |
+
* Fires after the reports export tab.
|
263 |
+
*
|
264 |
+
* @since 1.0
|
265 |
+
*/
|
266 |
+
do_action( 'give_tools_tab_export_content_bottom' );
|
267 |
+
?>
|
268 |
+
|
269 |
+
</div>
|
270 |
+
<!-- .post-body-content -->
|
271 |
+
</div>
|
272 |
+
<!-- .post-body -->
|
273 |
+
</div><!-- #give-dashboard-widgets-wrap -->
|
274 |
+
</div><!-- #poststuff -->
|
275 |
+
|
includes/admin/upgrades/upgrade-functions.php
CHANGED
@@ -49,6 +49,11 @@ function give_do_automatic_upgrades() {
|
|
49 |
case version_compare( $give_version, '1.8.7', '<' ) :
|
50 |
give_v187_upgrades();
|
51 |
$did_upgrade = true;
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
if ( $did_upgrade ) {
|
@@ -716,24 +721,24 @@ function give_v18_upgrades_form_metadata() {
|
|
716 |
// Form content.
|
717 |
// Note in version 1.8 display content setting split into display content and content placement setting.
|
718 |
// You can delete _give_content_option in future
|
719 |
-
$show_content =
|
720 |
-
if ( $show_content && !
|
721 |
$field_value = ( 'none' !== $show_content ? 'enabled' : 'disabled' );
|
722 |
-
|
723 |
|
724 |
$field_value = ( 'none' !== $show_content ? $show_content : 'give_pre_form' );
|
725 |
-
|
726 |
}
|
727 |
|
728 |
// "Disable" Guest Donation. Checkbox
|
729 |
// See: https://github.com/WordImpress/Give/issues/1470
|
730 |
-
$guest_donation =
|
731 |
$guest_donation_newval = ( in_array( $guest_donation, array( 'yes', 'on' ) ) ? 'disabled' : 'enabled' );
|
732 |
-
|
733 |
|
734 |
// Offline Donations
|
735 |
// See: https://github.com/WordImpress/Give/issues/1579
|
736 |
-
$offline_donation =
|
737 |
if ( 'no' === $offline_donation ) {
|
738 |
$offline_donation_newval = 'global';
|
739 |
} elseif ( 'yes' === $offline_donation ) {
|
@@ -741,7 +746,7 @@ function give_v18_upgrades_form_metadata() {
|
|
741 |
} else {
|
742 |
$offline_donation_newval = 'disabled';
|
743 |
}
|
744 |
-
|
745 |
|
746 |
// Convert yes/no setting field to enabled/disabled.
|
747 |
$form_radio_settings = array(
|
@@ -763,13 +768,13 @@ function give_v18_upgrades_form_metadata() {
|
|
763 |
|
764 |
foreach ( $form_radio_settings as $meta_key ) {
|
765 |
// Get value.
|
766 |
-
$field_value =
|
767 |
|
768 |
// Convert meta value only if it is in yes/no/none.
|
769 |
if ( in_array( $field_value, array( 'yes', 'on', 'no', 'none' ) ) ) {
|
770 |
|
771 |
$field_value = ( in_array( $field_value, array( 'yes', 'on' ) ) ? 'enabled' : 'disabled' );
|
772 |
-
|
773 |
}
|
774 |
}
|
775 |
}// End while().
|
@@ -892,3 +897,31 @@ function give_v187_upgrades(){
|
|
892 |
}
|
893 |
}
|
894 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
case version_compare( $give_version, '1.8.7', '<' ) :
|
50 |
give_v187_upgrades();
|
51 |
$did_upgrade = true;
|
52 |
+
|
53 |
+
case version_compare( $give_version, '1.8.8', '<' ) :
|
54 |
+
give_v188_upgrades();
|
55 |
+
$did_upgrade = true;
|
56 |
+
|
57 |
}
|
58 |
|
59 |
if ( $did_upgrade ) {
|
721 |
// Form content.
|
722 |
// Note in version 1.8 display content setting split into display content and content placement setting.
|
723 |
// You can delete _give_content_option in future
|
724 |
+
$show_content = give_get_meta( get_the_ID(), '_give_content_option', true );
|
725 |
+
if ( $show_content && ! give_get_meta( get_the_ID(), '_give_display_content', true ) ) {
|
726 |
$field_value = ( 'none' !== $show_content ? 'enabled' : 'disabled' );
|
727 |
+
give_update_meta( get_the_ID(), '_give_display_content', $field_value );
|
728 |
|
729 |
$field_value = ( 'none' !== $show_content ? $show_content : 'give_pre_form' );
|
730 |
+
give_update_meta( get_the_ID(), '_give_content_placement', $field_value );
|
731 |
}
|
732 |
|
733 |
// "Disable" Guest Donation. Checkbox
|
734 |
// See: https://github.com/WordImpress/Give/issues/1470
|
735 |
+
$guest_donation = give_get_meta( get_the_ID(), '_give_logged_in_only', true );
|
736 |
$guest_donation_newval = ( in_array( $guest_donation, array( 'yes', 'on' ) ) ? 'disabled' : 'enabled' );
|
737 |
+
give_update_meta( get_the_ID(), '_give_logged_in_only', $guest_donation_newval );
|
738 |
|
739 |
// Offline Donations
|
740 |
// See: https://github.com/WordImpress/Give/issues/1579
|
741 |
+
$offline_donation = give_get_meta( get_the_ID(), '_give_customize_offline_donations', true );
|
742 |
if ( 'no' === $offline_donation ) {
|
743 |
$offline_donation_newval = 'global';
|
744 |
} elseif ( 'yes' === $offline_donation ) {
|
746 |
} else {
|
747 |
$offline_donation_newval = 'disabled';
|
748 |
}
|
749 |
+
give_update_meta( get_the_ID(), '_give_customize_offline_donations', $offline_donation_newval );
|
750 |
|
751 |
// Convert yes/no setting field to enabled/disabled.
|
752 |
$form_radio_settings = array(
|
768 |
|
769 |
foreach ( $form_radio_settings as $meta_key ) {
|
770 |
// Get value.
|
771 |
+
$field_value = give_get_meta( get_the_ID(), $meta_key, true );
|
772 |
|
773 |
// Convert meta value only if it is in yes/no/none.
|
774 |
if ( in_array( $field_value, array( 'yes', 'on', 'no', 'none' ) ) ) {
|
775 |
|
776 |
$field_value = ( in_array( $field_value, array( 'yes', 'on' ) ) ? 'enabled' : 'disabled' );
|
777 |
+
give_update_meta( get_the_ID(), $meta_key, $field_value );
|
778 |
}
|
779 |
}
|
780 |
}// End while().
|
897 |
}
|
898 |
}
|
899 |
}
|
900 |
+
|
901 |
+
/**
|
902 |
+
* Update Capabilities for Give_Worker User Role.
|
903 |
+
*
|
904 |
+
* This upgrade routine will update access rights for Give_Worker User Role.
|
905 |
+
*
|
906 |
+
* @since 1.8.8
|
907 |
+
*/
|
908 |
+
function give_v188_upgrades() {
|
909 |
+
|
910 |
+
global $wp_roles;
|
911 |
+
|
912 |
+
// Get the role object.
|
913 |
+
$give_worker = get_role( 'give_worker' );
|
914 |
+
|
915 |
+
// A list of capabilities to add for give workers.
|
916 |
+
$caps_to_add = array(
|
917 |
+
'edit_posts',
|
918 |
+
'edit_pages'
|
919 |
+
);
|
920 |
+
|
921 |
+
foreach ( $caps_to_add as $cap ) {
|
922 |
+
// Add the capability.
|
923 |
+
$give_worker->add_cap( $cap );
|
924 |
+
}
|
925 |
+
|
926 |
+
}
|
927 |
+
|
includes/admin/welcome.php
CHANGED
@@ -53,7 +53,7 @@ class Give_Welcome {
|
|
53 |
|
54 |
// About Page
|
55 |
add_dashboard_page(
|
56 |
-
|
57 |
sprintf( esc_html__( 'Welcome to Give %s', 'give' ), $display_version ),
|
58 |
esc_html__( 'Welcome to Give', 'give' ),
|
59 |
$this->minimum_capability,
|
@@ -72,7 +72,7 @@ class Give_Welcome {
|
|
72 |
|
73 |
// Getting Started Page
|
74 |
add_dashboard_page(
|
75 |
-
|
76 |
sprintf( esc_html__( 'Give %s - Getting Started Guide', 'give' ), $display_version ),
|
77 |
esc_html__( 'Getting started with Give', 'give' ),
|
78 |
$this->minimum_capability,
|
@@ -82,7 +82,7 @@ class Give_Welcome {
|
|
82 |
|
83 |
// Credits Page
|
84 |
add_dashboard_page(
|
85 |
-
|
86 |
sprintf( esc_html__( 'Give %s - Credits', 'give' ), $display_version ),
|
87 |
esc_html__( 'The people that build Give', 'give' ),
|
88 |
$this->minimum_capability,
|
@@ -105,77 +105,6 @@ class Give_Welcome {
|
|
105 |
remove_submenu_page( 'index.php', 'give-getting-started' );
|
106 |
remove_submenu_page( 'index.php', 'give-credits' );
|
107 |
|
108 |
-
// Badge for welcome page
|
109 |
-
$badge_url = GIVE_PLUGIN_URL . 'assets/images/give-badge.png';
|
110 |
-
|
111 |
-
?>
|
112 |
-
<style type="text/css" media="screen">
|
113 |
-
/*<![CDATA[*/
|
114 |
-
.give-badge {
|
115 |
-
background: url('<?php echo $badge_url; ?>') no-repeat;
|
116 |
-
}
|
117 |
-
/*]]>*/
|
118 |
-
</style>
|
119 |
-
<script>
|
120 |
-
//FitVids
|
121 |
-
(function ( e ) {
|
122 |
-
"use strict";
|
123 |
-
e.fn.fitVids = function ( t ) {
|
124 |
-
var n = {customSelector: null, ignore: null};
|
125 |
-
if ( !document.getElementById( "fit-vids-style" ) ) {
|
126 |
-
var r = document.head || document.getElementsByTagName( "head" )[0];
|
127 |
-
var i = ".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";
|
128 |
-
var s = document.createElement( "div" );
|
129 |
-
s.innerHTML = '<p>x</p><style id="fit-vids-style">' + i + "</style>";
|
130 |
-
r.appendChild( s.childNodes[1] )
|
131 |
-
}
|
132 |
-
if ( t ) {
|
133 |
-
e.extend( n, t )
|
134 |
-
}
|
135 |
-
return this.each( function () {
|
136 |
-
var t = ['iframe[src*="player.vimeo.com"]', 'iframe[src*="youtube.com"]', 'iframe[src*="youtube-nocookie.com"]', 'iframe[src*="kickstarter.com"][src*="video.html"]', "object", "embed"];
|
137 |
-
if ( n.customSelector ) {
|
138 |
-
t.push( n.customSelector )
|
139 |
-
}
|
140 |
-
var r = ".fitvidsignore";
|
141 |
-
if ( n.ignore ) {
|
142 |
-
r = r + ", " + n.ignore
|
143 |
-
}
|
144 |
-
var i = e( this ).find( t.join( "," ) );
|
145 |
-
i = i.not( "object object" );
|
146 |
-
i = i.not( r );
|
147 |
-
i.each( function () {
|
148 |
-
var t = e( this );
|
149 |
-
if ( t.parents( r ).length > 0 ) {
|
150 |
-
return
|
151 |
-
}
|
152 |
-
if ( this.tagName.toLowerCase() === "embed" && t.parent( "object" ).length || t.parent( ".fluid-width-video-wrapper" ).length ) {
|
153 |
-
return
|
154 |
-
}
|
155 |
-
if ( !t.css( "height" ) && !t.css( "width" ) && (isNaN( t.attr( "height" ) ) || isNaN( t.attr( "width" ) )) ) {
|
156 |
-
t.attr( "height", 9 );
|
157 |
-
t.attr( "width", 16 )
|
158 |
-
}
|
159 |
-
var n = this.tagName.toLowerCase() === "object" || t.attr( "height" ) && !isNaN( parseInt( t.attr( "height" ), 10 ) ) ? parseInt( t.attr( "height" ), 10 ) : t.height(), i = !isNaN( parseInt( t.attr( "width" ), 10 ) ) ? parseInt( t.attr( "width" ), 10 ) : t.width(), s = n / i;
|
160 |
-
if ( !t.attr( "id" ) ) {
|
161 |
-
var o = "fitvid" + Math.floor( Math.random() * 999999 );
|
162 |
-
t.attr( "id", o )
|
163 |
-
}
|
164 |
-
t.wrap( '<div class="fluid-width-video-wrapper"></div>' ).parent( ".fluid-width-video-wrapper" ).css( "padding-top", s * 100 + "%" );
|
165 |
-
t.removeAttr( "height" ).removeAttr( "width" )
|
166 |
-
} )
|
167 |
-
} )
|
168 |
-
}
|
169 |
-
})( window.jQuery || window.Zepto );
|
170 |
-
jQuery( document ).ready( function ( $ ) {
|
171 |
-
|
172 |
-
// Target your .container, .wrapper, .post, etc.
|
173 |
-
$( ".wrap" ).fitVids();
|
174 |
-
|
175 |
-
} );
|
176 |
-
|
177 |
-
</script>
|
178 |
-
<?php
|
179 |
}
|
180 |
|
181 |
/**
|
@@ -188,21 +117,25 @@ class Give_Welcome {
|
|
188 |
public function tabs() {
|
189 |
$selected = isset( $_GET['page'] ) ? $_GET['page'] : 'give-about';
|
190 |
?>
|
191 |
-
|
192 |
-
|
|
|
193 |
<?php esc_html_e( 'About Give', 'give' ); ?>
|
194 |
-
|
195 |
-
|
|
|
196 |
<?php esc_html_e( 'Getting Started', 'give' ); ?>
|
197 |
-
|
198 |
-
|
|
|
199 |
<?php esc_html_e( 'Credits', 'give' ); ?>
|
200 |
-
|
201 |
-
|
|
|
202 |
<?php esc_html_e( 'Add-ons', 'give' ); ?>
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
}
|
207 |
|
208 |
/**
|
@@ -215,78 +148,80 @@ class Give_Welcome {
|
|
215 |
public function about_screen() {
|
216 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
217 |
?>
|
218 |
-
|
219 |
-
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
|
220 |
|
221 |
-
<?php
|
222 |
|
223 |
-
|
224 |
printf(
|
225 |
-
|
226 |
__( 'Thank you for activating or updating to the latest version of Give! If you\'re a first time user, welcome! You\'re well on your way to empowering your cause. We encourage you to check out the <a href="%s" target="_blank">plugin documentation</a> and getting started guide below.', 'give' ),
|
227 |
esc_url( 'https://givewp.com/documenation/' )
|
228 |
);
|
229 |
-
|
230 |
|
231 |
<?php give_get_newsletter(); ?>
|
232 |
|
233 |
-
|
234 |
printf(
|
235 |
-
|
236 |
esc_html__( 'Version %s', 'give' ),
|
237 |
$display_version
|
238 |
);
|
239 |
-
|
240 |
|
241 |
<?php $this->tabs(); ?>
|
242 |
|
243 |
-
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
248 |
|
249 |
-
|
250 |
|
251 |
-
|
252 |
|
253 |
-
|
254 |
-
|
255 |
<?php esc_html_e( 'Learn More', 'give' ); ?>
|
256 |
-
|
257 |
-
|
258 |
|
259 |
-
|
260 |
|
261 |
-
|
262 |
-
|
263 |
|
264 |
-
|
265 |
|
266 |
-
|
267 |
|
268 |
-
|
269 |
|
270 |
-
|
271 |
-
<a href="https://givewp.com/documentation" target="_blank" class="button-secondary">
|
272 |
-
<?php esc_html_e( 'View Documentation', 'give' ); ?>
|
273 |
-
<span class="dashicons dashicons-external"></span>
|
274 |
-
</a>
|
275 |
|
276 |
-
|
|
|
|
|
|
|
|
|
|
|
277 |
|
278 |
-
|
279 |
|
280 |
-
|
|
|
|
|
|
|
281 |
|
282 |
-
|
|
|
283 |
|
284 |
-
</div>
|
285 |
-
<!-- /.feature-section -->
|
286 |
|
287 |
-
|
288 |
-
|
289 |
-
<?php
|
290 |
}
|
291 |
|
292 |
/**
|
@@ -299,42 +234,42 @@ class Give_Welcome {
|
|
299 |
public function changelog_screen() {
|
300 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
301 |
?>
|
302 |
-
|
303 |
-
|
304 |
|
305 |
-
|
306 |
printf(
|
307 |
-
|
308 |
esc_html__( 'Thank you for updating to the latest version! Give %s is ready to make your online store faster, safer, and better!', 'give' ),
|
309 |
$display_version
|
310 |
);
|
311 |
-
|
312 |
-
|
313 |
printf(
|
314 |
-
|
315 |
esc_html__( 'Version %s', 'give' ),
|
316 |
$display_version
|
317 |
);
|
318 |
-
|
319 |
|
320 |
<?php $this->tabs(); ?>
|
321 |
|
322 |
-
|
323 |
-
|
324 |
|
325 |
-
|
326 |
<?php echo $this->parse_readme(); ?>
|
327 |
-
|
328 |
-
|
329 |
|
330 |
-
|
331 |
-
|
332 |
'post_type' => 'give_forms',
|
333 |
'page' => 'give-settings'
|
334 |
), 'edit.php' ) ) ); ?>"><?php esc_html_e( 'Give Settings', 'give' ); ?></a>
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
}
|
339 |
|
340 |
/**
|
@@ -347,95 +282,94 @@ class Give_Welcome {
|
|
347 |
public function getting_started_screen() {
|
348 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
349 |
?>
|
350 |
-
|
351 |
-
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
|
352 |
|
353 |
-
<?php
|
354 |
|
355 |
-
|
356 |
|
357 |
<?php give_get_newsletter(); ?>
|
358 |
|
359 |
-
|
360 |
printf(
|
361 |
-
|
362 |
esc_html__( 'Version %s', 'give' ),
|
363 |
$display_version
|
364 |
);
|
365 |
-
|
366 |
|
367 |
<?php $this->tabs(); ?>
|
368 |
|
369 |
-
|
370 |
|
371 |
-
|
372 |
|
373 |
-
|
374 |
-
|
375 |
|
376 |
-
|
377 |
|
378 |
-
|
379 |
-
|
380 |
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
|
385 |
-
|
386 |
-
|
387 |
|
388 |
-
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
|
394 |
-
|
395 |
-
|
396 |
|
397 |
-
|
398 |
-
|
399 |
|
400 |
-
|
401 |
-
|
402 |
|
403 |
-
|
404 |
|
405 |
-
|
406 |
-
|
407 |
|
408 |
-
|
409 |
|
410 |
-
|
411 |
-
|
412 |
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
|
417 |
-
|
418 |
-
|
419 |
|
420 |
-
|
421 |
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
|
426 |
-
|
427 |
-
|
428 |
|
429 |
-
|
430 |
-
|
431 |
|
432 |
|
433 |
-
|
434 |
-
|
435 |
|
436 |
|
437 |
-
|
438 |
-
|
439 |
}
|
440 |
|
441 |
/**
|
@@ -448,38 +382,35 @@ class Give_Welcome {
|
|
448 |
public function credits_screen() {
|
449 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
450 |
?>
|
451 |
-
|
452 |
-
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
|
453 |
-
|
454 |
-
<?php give_social_media_elements() ?>
|
455 |
|
456 |
-
|
457 |
|
458 |
-
|
459 |
|
460 |
<?php give_get_newsletter(); ?>
|
461 |
|
462 |
-
|
463 |
printf(
|
464 |
-
|
465 |
esc_html__( 'Version %s', 'give' ),
|
466 |
$display_version
|
467 |
);
|
468 |
-
|
469 |
|
470 |
<?php $this->tabs(); ?>
|
471 |
|
472 |
-
|
473 |
printf(
|
474 |
-
|
475 |
__( 'Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="%s" target="_blank">GitHub Repo</a>.', 'give' ),
|
476 |
esc_url( 'https://github.com/WordImpress/give' )
|
477 |
);
|
478 |
-
|
479 |
|
480 |
<?php echo $this->contributors(); ?>
|
481 |
-
|
482 |
-
|
483 |
}
|
484 |
|
485 |
|
@@ -579,6 +510,128 @@ class Give_Welcome {
|
|
579 |
return $contributors;
|
580 |
}
|
581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
/**
|
583 |
* Sends user to the Welcome page on first activation of GIVE as well as each
|
584 |
* time GIVE is upgraded to a new version
|
@@ -589,7 +642,6 @@ class Give_Welcome {
|
|
589 |
* @return void
|
590 |
*/
|
591 |
public function welcome() {
|
592 |
-
$give_options = give_get_settings();
|
593 |
|
594 |
// Bail if no activation redirect
|
595 |
if ( ! Give_Cache::get( '_give_activation_redirect', true ) ) {
|
@@ -609,10 +661,10 @@ class Give_Welcome {
|
|
609 |
if ( ! $upgrade ) { // First time install
|
610 |
wp_safe_redirect( admin_url( 'index.php?page=give-about' ) );
|
611 |
exit;
|
612 |
-
} elseif( ! give_is_setting_enabled( give_get_option( 'welcome' ) ) ) { // Welcome is disabled in settings
|
613 |
|
614 |
} else { // Welcome is NOT disabled in settings
|
615 |
-
wp_safe_redirect(admin_url('index.php?page=give-about'));
|
616 |
exit;
|
617 |
}
|
618 |
}
|
53 |
|
54 |
// About Page
|
55 |
add_dashboard_page(
|
56 |
+
/* translators: %s: Give version */
|
57 |
sprintf( esc_html__( 'Welcome to Give %s', 'give' ), $display_version ),
|
58 |
esc_html__( 'Welcome to Give', 'give' ),
|
59 |
$this->minimum_capability,
|
72 |
|
73 |
// Getting Started Page
|
74 |
add_dashboard_page(
|
75 |
+
/* translators: %s: Give version */
|
76 |
sprintf( esc_html__( 'Give %s - Getting Started Guide', 'give' ), $display_version ),
|
77 |
esc_html__( 'Getting started with Give', 'give' ),
|
78 |
$this->minimum_capability,
|
82 |
|
83 |
// Credits Page
|
84 |
add_dashboard_page(
|
85 |
+
/* translators: %s: Give version */
|
86 |
sprintf( esc_html__( 'Give %s - Credits', 'give' ), $display_version ),
|
87 |
esc_html__( 'The people that build Give', 'give' ),
|
88 |
$this->minimum_capability,
|
105 |
remove_submenu_page( 'index.php', 'give-getting-started' );
|
106 |
remove_submenu_page( 'index.php', 'give-credits' );
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
117 |
public function tabs() {
|
118 |
$selected = isset( $_GET['page'] ) ? $_GET['page'] : 'give-about';
|
119 |
?>
|
120 |
+
<h2 class="nav-tab-wrapper">
|
121 |
+
<a class="nav-tab <?php echo $selected == 'give-about' ? 'nav-tab-active' : ''; ?>"
|
122 |
+
href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-about' ), 'index.php' ) ) ); ?>">
|
123 |
<?php esc_html_e( 'About Give', 'give' ); ?>
|
124 |
+
</a>
|
125 |
+
<a class="nav-tab <?php echo $selected == 'give-getting-started' ? 'nav-tab-active' : ''; ?>"
|
126 |
+
href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-getting-started' ), 'index.php' ) ) ); ?>">
|
127 |
<?php esc_html_e( 'Getting Started', 'give' ); ?>
|
128 |
+
</a>
|
129 |
+
<a class="nav-tab <?php echo $selected == 'give-credits' ? 'nav-tab-active' : ''; ?>"
|
130 |
+
href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-credits' ), 'index.php' ) ) ); ?>">
|
131 |
<?php esc_html_e( 'Credits', 'give' ); ?>
|
132 |
+
</a>
|
133 |
+
<a class="nav-tab <?php echo $selected == 'give-add-ons' ? 'nav-tab-active' : ''; ?>"
|
134 |
+
href="<?php echo esc_url( admin_url( 'edit.php?post_type=give_forms&page=give-addons' ) ); ?>">
|
135 |
<?php esc_html_e( 'Add-ons', 'give' ); ?>
|
136 |
+
</a>
|
137 |
+
</h2>
|
138 |
+
<?php
|
139 |
}
|
140 |
|
141 |
/**
|
148 |
public function about_screen() {
|
149 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
150 |
?>
|
151 |
+
<div class="wrap about-wrap">
|
|
|
152 |
|
153 |
+
<?php $this->get_welcome_header() ?>
|
154 |
|
155 |
+
<p class="about-text"><?php
|
156 |
printf(
|
157 |
+
/* translators: %s: https://givewp.com/documenation/ */
|
158 |
__( 'Thank you for activating or updating to the latest version of Give! If you\'re a first time user, welcome! You\'re well on your way to empowering your cause. We encourage you to check out the <a href="%s" target="_blank">plugin documentation</a> and getting started guide below.', 'give' ),
|
159 |
esc_url( 'https://givewp.com/documenation/' )
|
160 |
);
|
161 |
+
?></p>
|
162 |
|
163 |
<?php give_get_newsletter(); ?>
|
164 |
|
165 |
+
<div class="give-badge"><?php
|
166 |
printf(
|
167 |
+
/* translators: %s: Give version */
|
168 |
esc_html__( 'Version %s', 'give' ),
|
169 |
$display_version
|
170 |
);
|
171 |
+
?></div>
|
172 |
|
173 |
<?php $this->tabs(); ?>
|
174 |
|
175 |
+
<div class="feature-section clearfix introduction">
|
176 |
|
177 |
+
<div class="video feature-section-item">
|
178 |
+
<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/give-logo-photo-mashup.png' ?>"
|
179 |
+
alt="<?php esc_attr_e( 'Give', 'give' ); ?>">
|
180 |
+
</div>
|
181 |
|
182 |
+
<div class="content feature-section-item last-feature">
|
183 |
|
184 |
+
<h3><?php esc_html_e( 'Give - Democratizing Generosity', 'give' ); ?></h3>
|
185 |
|
186 |
+
<p><?php esc_html_e( 'Give empowers you to easily accept donations and setup fundraising campaigns, directly within WordPress. We created Give to provide a better donation experience for you and your users. Robust, flexible, and intuitive, the plugin is built from the ground up to be the goto donation solution for WordPress. Create powerful donation forms, embed them throughout your website, start a campaign, and exceed your fundraising goals with Give. This plugin is actively developed and proudly supported by folks who are dedicated to helping you and your cause.', 'give' ); ?></p>
|
187 |
+
<a href="https://givewp.com" target="_blank" class="button-secondary">
|
188 |
<?php esc_html_e( 'Learn More', 'give' ); ?>
|
189 |
+
<span class="dashicons dashicons-external"></span>
|
190 |
+
</a>
|
191 |
|
192 |
+
</div>
|
193 |
|
194 |
+
</div>
|
195 |
+
<!-- /.intro-section -->
|
196 |
|
197 |
+
<div class="feature-section clearfix">
|
198 |
|
199 |
+
<div class="content feature-section-item">
|
200 |
|
201 |
+
<h3><?php esc_html_e( 'Getting to Know Give', 'give' ); ?></h3>
|
202 |
|
203 |
+
<p><?php esc_html_e( 'Before you get started with Give we suggest you take a look at the online documentation. There you will find the getting started guide which will help you get up and running quickly. If you have a question, issue or bug with the Core plugin please submit an issue on the Give website. We also welcome your feedback and feature requests. Welcome to Give. We hope you much success with your cause.', 'give' ); ?></p>
|
|
|
|
|
|
|
|
|
204 |
|
205 |
+
<h4>Find Out More:</h4>
|
206 |
+
<ul class="ul-disc">
|
207 |
+
<li><a href="https://givewp.com/" target="_blank"><?php esc_html_e( 'Visit the Give Website', 'give' ); ?></a></li>
|
208 |
+
<li><a href="https://givewp.com/features/" target="_blank"><?php esc_html_e( 'View the Give Features', 'give' ); ?></a></li>
|
209 |
+
<li><a href="https://givewp.com/documentation/" target="_blank"><?php esc_html_e( 'Read the Documentation', 'give' ); ?></a></li>
|
210 |
+
</ul>
|
211 |
|
212 |
+
</div>
|
213 |
|
214 |
+
<div class="content feature-section-item last-feature">
|
215 |
+
<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/admin/give-form-mockup.png' ?>"
|
216 |
+
alt="<?php esc_attr_e( 'A Give donation form', 'give' ); ?>">
|
217 |
+
</div>
|
218 |
|
219 |
+
</div>
|
220 |
+
<!-- /.feature-section -->
|
221 |
|
|
|
|
|
222 |
|
223 |
+
</div>
|
224 |
+
<?php
|
|
|
225 |
}
|
226 |
|
227 |
/**
|
234 |
public function changelog_screen() {
|
235 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
236 |
?>
|
237 |
+
<div class="wrap about-wrap">
|
238 |
+
<h1><?php echo get_admin_page_title(); ?></h1>
|
239 |
|
240 |
+
<p class="about-text"><?php
|
241 |
printf(
|
242 |
+
/* translators: %s: Give version */
|
243 |
esc_html__( 'Thank you for updating to the latest version! Give %s is ready to make your online store faster, safer, and better!', 'give' ),
|
244 |
$display_version
|
245 |
);
|
246 |
+
?></p>
|
247 |
+
<div class="give-badge"><?php
|
248 |
printf(
|
249 |
+
/* translators: %s: Give version */
|
250 |
esc_html__( 'Version %s', 'give' ),
|
251 |
$display_version
|
252 |
);
|
253 |
+
?></div>
|
254 |
|
255 |
<?php $this->tabs(); ?>
|
256 |
|
257 |
+
<div class="changelog">
|
258 |
+
<h3><?php esc_html_e( 'Full Changelog', 'give' ); ?></h3>
|
259 |
|
260 |
+
<div class="feature-section">
|
261 |
<?php echo $this->parse_readme(); ?>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
|
265 |
+
<div class="return-to-dashboard">
|
266 |
+
<a href="<?php echo esc_url( admin_url( add_query_arg( array(
|
267 |
'post_type' => 'give_forms',
|
268 |
'page' => 'give-settings'
|
269 |
), 'edit.php' ) ) ); ?>"><?php esc_html_e( 'Give Settings', 'give' ); ?></a>
|
270 |
+
</div>
|
271 |
+
</div>
|
272 |
+
<?php
|
273 |
}
|
274 |
|
275 |
/**
|
282 |
public function getting_started_screen() {
|
283 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
284 |
?>
|
285 |
+
<div class="wrap about-wrap get-started">
|
|
|
286 |
|
287 |
+
<?php $this->get_welcome_header() ?>
|
288 |
|
289 |
+
<p class="about-text"><?php esc_html_e( 'Welcome to the getting started guide.', 'give' ); ?></p>
|
290 |
|
291 |
<?php give_get_newsletter(); ?>
|
292 |
|
293 |
+
<div class="give-badge"><?php
|
294 |
printf(
|
295 |
+
/* translators: %s: Give version */
|
296 |
esc_html__( 'Version %s', 'give' ),
|
297 |
$display_version
|
298 |
);
|
299 |
+
?></div>
|
300 |
|
301 |
<?php $this->tabs(); ?>
|
302 |
|
303 |
+
<p class="about-text"><?php printf( esc_html__( 'Getting started with Give is easy! We put together this quick start guide to help first time users of the plugin. Our goal is to get you up and running in no time. Let\'s begin!', 'give' ), $display_version ); ?></p>
|
304 |
|
305 |
+
<div class="feature-section clearfix">
|
306 |
|
307 |
+
<div class="content feature-section-item">
|
308 |
+
<h3><?php esc_html_e( 'STEP 1: Create a New Form', 'give' ); ?></h3>
|
309 |
|
310 |
+
<p><?php esc_html_e( 'Give is driven by it\'s powerful donation form building features. However, it is much more than just a "donation form". From the "Add Form" page you\'ll be able to choose how and where you want to receive your donations. You will also be able to set the preferred donation amounts.', 'give' ); ?></p>
|
311 |
|
312 |
+
<p><?php esc_html_e( 'All of these features begin by simply going to the menu and choosing "Donations > Add Form".', 'give' ); ?></p>
|
313 |
+
</div>
|
314 |
|
315 |
+
<div class="content feature-section-item last-feature">
|
316 |
+
<img src="<?php echo GIVE_PLUGIN_URL; ?>assets/images/admin/getting-started-add-new-form.png">
|
317 |
+
</div>
|
318 |
|
319 |
+
</div>
|
320 |
+
<!-- /.feature-section -->
|
321 |
|
322 |
+
<div class="feature-section clearfix">
|
323 |
|
324 |
+
<div class="content feature-section-item multi-level-gif">
|
325 |
+
<img src="<?php echo GIVE_PLUGIN_URL; ?>assets/images/admin/getting-started-new-form-multi-level.gif">
|
326 |
+
</div>
|
327 |
|
328 |
+
<div class="content feature-section-item last-feature">
|
329 |
+
<h3><?php esc_html_e( 'STEP 2: Customize Your Donation Forms', 'give' ); ?></h3>
|
330 |
|
331 |
+
<p><?php esc_html_e( 'Each donation form you create can be customized to receive either a pre-determined set donation amount or have multiple suggested levels of giving. Choosing "Multi-level Donation" opens up the donation levels view where you can add as many levels as you\'d like with your own custom names and suggested amounts. As well, you can allow donors to give a custom amount and even set up donation goals.', 'give' ); ?></p>
|
332 |
+
</div>
|
333 |
|
334 |
+
</div>
|
335 |
+
<!-- /.feature-section -->
|
336 |
|
337 |
+
<div class="feature-section clearfix">
|
338 |
|
339 |
+
<div class="content feature-section-item add-content">
|
340 |
+
<h3><?php esc_html_e( 'STEP 3: Add Additional Content', 'give' ); ?></h3>
|
341 |
|
342 |
+
<p><?php esc_html_e( 'Every donation form you create with Give can be used on its own stand-alone page, or it can be inserted into any other page or post throughout your site via a shortcode or widget.', 'give' ); ?></p>
|
343 |
|
344 |
+
<p><?php esc_html_e( 'You can choose these different modes by going to the "Form Content" section. From there, you can choose to add content before or after the donation form on a page, or if you choose "None" perhaps you want to instead use the shortcode. You can find the shortcode in the top right column directly under the Publish/Save button. This feature gives you the most amount of flexibility with controlling your content on your website all within the same page.', 'give' ); ?></p>
|
345 |
+
</div>
|
346 |
|
347 |
+
<div class="content feature-section-item last-feature">
|
348 |
+
<img src="<?php echo GIVE_PLUGIN_URL; ?>assets/images/admin/getting-started-add-content.png">
|
349 |
+
</div>
|
350 |
|
351 |
+
</div>
|
352 |
+
<!-- /.feature-section -->
|
353 |
|
354 |
+
<div class="feature-section clearfix">
|
355 |
|
356 |
+
<div class="content feature-section-item display-options">
|
357 |
+
<img src="<?php echo GIVE_PLUGIN_URL; ?>assets/images/admin/getting-started-display-options.png">
|
358 |
+
</div>
|
359 |
|
360 |
+
<div class="content feature-section-item last-feature">
|
361 |
+
<h3><?php esc_html_e( 'STEP 4: Configure Your Display Options', 'give' ); ?></h3>
|
362 |
|
363 |
+
<p><?php esc_html_e( 'Lastly, you can present the form in a number of different ways that each create their own unique donor experience. The "Modal" display mode opens the credit card fieldset within a popup window. The "Reveal" mode will slide into place the additional fields. If you\'re looking for a simple button, then "Button" more is the way to go. This allows you to create a customizable "Donate Now" button which will open the donation form upon clicking. There\'s tons of possibilities here, give it a try!', 'give' ); ?></p>
|
364 |
+
</div>
|
365 |
|
366 |
|
367 |
+
</div>
|
368 |
+
<!-- /.feature-section -->
|
369 |
|
370 |
|
371 |
+
</div>
|
372 |
+
<?php
|
373 |
}
|
374 |
|
375 |
/**
|
382 |
public function credits_screen() {
|
383 |
list( $display_version ) = explode( '-', GIVE_VERSION );
|
384 |
?>
|
385 |
+
<div class="wrap about-wrap">
|
|
|
|
|
|
|
386 |
|
387 |
+
<?php $this->get_welcome_header() ?>
|
388 |
|
389 |
+
<p class="about-text"><?php esc_html_e( 'Thanks to all those who have contributed code directly or indirectly.', 'give' ); ?></p>
|
390 |
|
391 |
<?php give_get_newsletter(); ?>
|
392 |
|
393 |
+
<div class="give-badge"><?php
|
394 |
printf(
|
395 |
+
/* translators: %s: Give version */
|
396 |
esc_html__( 'Version %s', 'give' ),
|
397 |
$display_version
|
398 |
);
|
399 |
+
?></div>
|
400 |
|
401 |
<?php $this->tabs(); ?>
|
402 |
|
403 |
+
<p class="about-description"><?php
|
404 |
printf(
|
405 |
+
/* translators: %s: https://github.com/WordImpress/give */
|
406 |
__( 'Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="%s" target="_blank">GitHub Repo</a>.', 'give' ),
|
407 |
esc_url( 'https://github.com/WordImpress/give' )
|
408 |
);
|
409 |
+
?></p>
|
410 |
|
411 |
<?php echo $this->contributors(); ?>
|
412 |
+
</div>
|
413 |
+
<?php
|
414 |
}
|
415 |
|
416 |
|
510 |
return $contributors;
|
511 |
}
|
512 |
|
513 |
+
/**
|
514 |
+
* The header section for the welcome screen.
|
515 |
+
*
|
516 |
+
* @since 1.8.8
|
517 |
+
*/
|
518 |
+
public function get_welcome_header() {
|
519 |
+
// Badge for welcome page
|
520 |
+
$badge_url = GIVE_PLUGIN_URL . 'assets/images/give-badge.png';
|
521 |
+
?>
|
522 |
+
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
|
523 |
+
<?php $this->social_media_elements(); ?>
|
524 |
+
|
525 |
+
<style type="text/css" media="screen">
|
526 |
+
/*<![CDATA[*/
|
527 |
+
.give-badge {
|
528 |
+
background: url('<?php echo $badge_url; ?>') no-repeat;
|
529 |
+
}
|
530 |
+
|
531 |
+
/*]]>*/
|
532 |
+
</style>
|
533 |
+
<script>
|
534 |
+
//FitVids
|
535 |
+
(function (e) {
|
536 |
+
"use strict";
|
537 |
+
e.fn.fitVids = function (t) {
|
538 |
+
var n = {customSelector: null, ignore: null};
|
539 |
+
if (!document.getElementById("fit-vids-style")) {
|
540 |
+
var r = document.head || document.getElementsByTagName("head")[0];
|
541 |
+
var i = ".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";
|
542 |
+
var s = document.createElement("div");
|
543 |
+
s.innerHTML = '<p>x</p><style id="fit-vids-style">' + i + "</style>";
|
544 |
+
r.appendChild(s.childNodes[1])
|
545 |
+
}
|
546 |
+
if (t) {
|
547 |
+
e.extend(n, t)
|
548 |
+
}
|
549 |
+
return this.each(function () {
|
550 |
+
var t = ['iframe[src*="player.vimeo.com"]', 'iframe[src*="youtube.com"]', 'iframe[src*="youtube-nocookie.com"]', 'iframe[src*="kickstarter.com"][src*="video.html"]', "object", "embed"];
|
551 |
+
if (n.customSelector) {
|
552 |
+
t.push(n.customSelector)
|
553 |
+
}
|
554 |
+
var r = ".fitvidsignore";
|
555 |
+
if (n.ignore) {
|
556 |
+
r = r + ", " + n.ignore
|
557 |
+
}
|
558 |
+
var i = e(this).find(t.join(","));
|
559 |
+
i = i.not("object object");
|
560 |
+
i = i.not(r);
|
561 |
+
i.each(function () {
|
562 |
+
var t = e(this);
|
563 |
+
if (t.parents(r).length > 0) {
|
564 |
+
return
|
565 |
+
}
|
566 |
+
if (this.tagName.toLowerCase() === "embed" && t.parent("object").length || t.parent(".fluid-width-video-wrapper").length) {
|
567 |
+
return
|
568 |
+
}
|
569 |
+
if (!t.css("height") && !t.css("width") && (isNaN(t.attr("height")) || isNaN(t.attr("width")))) {
|
570 |
+
t.attr("height", 9);
|
571 |
+
t.attr("width", 16)
|
572 |
+
}
|
573 |
+
var n = this.tagName.toLowerCase() === "object" || t.attr("height") && !isNaN(parseInt(t.attr("height"), 10)) ? parseInt(t.attr("height"), 10) : t.height(),
|
574 |
+
i = !isNaN(parseInt(t.attr("width"), 10)) ? parseInt(t.attr("width"), 10) : t.width(),
|
575 |
+
s = n / i;
|
576 |
+
if (!t.attr("id")) {
|
577 |
+
var o = "fitvid" + Math.floor(Math.random() * 999999);
|
578 |
+
t.attr("id", o)
|
579 |
+
}
|
580 |
+
t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top", s * 100 + "%");
|
581 |
+
t.removeAttr("height").removeAttr("width")
|
582 |
+
})
|
583 |
+
})
|
584 |
+
}
|
585 |
+
})(window.jQuery || window.Zepto);
|
586 |
+
jQuery(document).ready(function ($) {
|
587 |
+
|
588 |
+
// Target your .container, .wrapper, .post, etc.
|
589 |
+
$(".wrap").fitVids();
|
590 |
+
|
591 |
+
});
|
592 |
+
|
593 |
+
</script>
|
594 |
+
<?php }
|
595 |
+
|
596 |
+
|
597 |
+
/**
|
598 |
+
* Social Media Like Buttons
|
599 |
+
*
|
600 |
+
* Various social media elements to Give
|
601 |
+
*/
|
602 |
+
public function social_media_elements() { ?>
|
603 |
+
|
604 |
+
<div class="social-items-wrap">
|
605 |
+
|
606 |
+
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fwpgive&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=220596284639969"
|
607 |
+
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;"
|
608 |
+
allowTransparency="true"></iframe>
|
609 |
+
|
610 |
+
<a href="https://twitter.com/givewp" class="twitter-follow-button" data-show-count="false"><?php
|
611 |
+
printf(
|
612 |
+
/* translators: %s: Give twitter user @givewp */
|
613 |
+
esc_html_e( 'Follow %s', 'give' ),
|
614 |
+
'@givewp'
|
615 |
+
);
|
616 |
+
?></a>
|
617 |
+
<script>!function (d, s, id) {
|
618 |
+
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
|
619 |
+
if (!d.getElementById(id)) {
|
620 |
+
js = d.createElement(s);
|
621 |
+
js.id = id;
|
622 |
+
js.src = p + '://platform.twitter.com/widgets.js';
|
623 |
+
fjs.parentNode.insertBefore(js, fjs);
|
624 |
+
}
|
625 |
+
}(document, 'script', 'twitter-wjs');
|
626 |
+
</script>
|
627 |
+
|
628 |
+
</div>
|
629 |
+
<!--/.social-items-wrap -->
|
630 |
+
|
631 |
+
<?php
|
632 |
+
}
|
633 |
+
|
634 |
+
|
635 |
/**
|
636 |
* Sends user to the Welcome page on first activation of GIVE as well as each
|
637 |
* time GIVE is upgraded to a new version
|
642 |
* @return void
|
643 |
*/
|
644 |
public function welcome() {
|
|
|
645 |
|
646 |
// Bail if no activation redirect
|
647 |
if ( ! Give_Cache::get( '_give_activation_redirect', true ) ) {
|
661 |
if ( ! $upgrade ) { // First time install
|
662 |
wp_safe_redirect( admin_url( 'index.php?page=give-about' ) );
|
663 |
exit;
|
664 |
+
} elseif ( ! give_is_setting_enabled( give_get_option( 'welcome' ) ) ) { // Welcome is disabled in settings
|
665 |
|
666 |
} else { // Welcome is NOT disabled in settings
|
667 |
+
wp_safe_redirect( admin_url( 'index.php?page=give-about' ) );
|
668 |
exit;
|
669 |
}
|
670 |
}
|
includes/ajax-functions.php
CHANGED
@@ -155,7 +155,7 @@ function give_load_checkout_fields() {
|
|
155 |
|
156 |
wp_send_json( array(
|
157 |
'fields' => wp_json_encode( $fields ),
|
158 |
-
'submit' => wp_json_encode(
|
159 |
) );
|
160 |
}
|
161 |
|
@@ -225,7 +225,7 @@ add_action( 'wp_ajax_give_get_states', 'give_ajax_get_states_field' );
|
|
225 |
add_action( 'wp_ajax_nopriv_give_get_states', 'give_ajax_get_states_field' );
|
226 |
|
227 |
/**
|
228 |
-
* Retrieve
|
229 |
*
|
230 |
* @since 1.0
|
231 |
*
|
@@ -234,7 +234,9 @@ add_action( 'wp_ajax_nopriv_give_get_states', 'give_ajax_get_states_field' );
|
|
234 |
function give_ajax_form_search() {
|
235 |
global $wpdb;
|
236 |
|
237 |
-
$search
|
|
|
|
|
238 |
$results = array();
|
239 |
if ( current_user_can( 'edit_give_forms' ) ) {
|
240 |
$items = $wpdb->get_results( "SELECT ID,post_title FROM $wpdb->posts WHERE `post_type` = 'give_forms' AND `post_title` LIKE '%$search%' LIMIT 50" );
|
@@ -255,7 +257,7 @@ function give_ajax_form_search() {
|
|
255 |
|
256 |
$items[] = array(
|
257 |
'id' => 0,
|
258 |
-
'name' =>
|
259 |
);
|
260 |
|
261 |
}
|
@@ -283,7 +285,7 @@ function give_ajax_donor_search() {
|
|
283 |
if ( ! current_user_can( 'view_give_reports' ) ) {
|
284 |
$donors = array();
|
285 |
} else {
|
286 |
-
$donors = $wpdb->get_results( "SELECT id,name,email FROM {$wpdb->prefix}
|
287 |
}
|
288 |
|
289 |
if ( $donors ) {
|
@@ -292,14 +294,14 @@ function give_ajax_donor_search() {
|
|
292 |
|
293 |
$results[] = array(
|
294 |
'id' => $donor->id,
|
295 |
-
'name' => $donor->name . '(' . $donor->email . ')',
|
296 |
);
|
297 |
}
|
298 |
} else {
|
299 |
|
300 |
$donors[] = array(
|
301 |
'id' => 0,
|
302 |
-
'name' =>
|
303 |
);
|
304 |
|
305 |
}
|
@@ -323,40 +325,45 @@ function give_ajax_search_users() {
|
|
323 |
|
324 |
if ( current_user_can( 'manage_give_settings' ) ) {
|
325 |
|
326 |
-
$
|
327 |
-
$exclude = trim( $_POST['exclude'] );
|
328 |
|
329 |
$get_users_args = array(
|
330 |
'number' => 9999,
|
331 |
-
'search' => $
|
332 |
);
|
333 |
|
334 |
-
if ( ! empty( $exclude ) ) {
|
335 |
-
$exclude_array = explode( ',', $exclude );
|
336 |
-
$get_users_args['exclude'] = $exclude_array;
|
337 |
-
}
|
338 |
-
|
339 |
$get_users_args = apply_filters( 'give_search_users_args', $get_users_args );
|
340 |
|
341 |
-
$found_users = apply_filters( 'give_ajax_found_users', get_users( $get_users_args ), $
|
|
|
342 |
|
343 |
-
$user_list = '<ul>';
|
344 |
if ( $found_users ) {
|
|
|
345 |
foreach ( $found_users as $user ) {
|
346 |
-
|
|
|
|
|
|
|
|
|
347 |
}
|
348 |
} else {
|
349 |
-
|
|
|
|
|
|
|
|
|
|
|
350 |
}
|
351 |
-
$user_list .= '</ul>';
|
352 |
|
353 |
-
echo json_encode(
|
|
|
|
|
|
|
|
|
354 |
|
355 |
-
}
|
356 |
-
die();
|
357 |
}
|
358 |
|
359 |
-
add_action( '
|
360 |
|
361 |
|
362 |
/**
|
@@ -418,7 +425,7 @@ function give_check_for_form_price_variations_html() {
|
|
418 |
wp_die();
|
419 |
}
|
420 |
|
421 |
-
$form_id = ! empty( $_POST['form_id']
|
422 |
$payment_id = ! empty( $_POST['payment_id'] ) ? intval( $_POST['payment_id'] ) : 0;
|
423 |
$form = get_post( $form_id );
|
424 |
|
@@ -430,9 +437,9 @@ function give_check_for_form_price_variations_html() {
|
|
430 |
esc_html_e( 'n/a', 'give' );
|
431 |
} else {
|
432 |
$prices_atts = '';
|
433 |
-
if( $variable_prices = give_get_variable_prices( $form_id ) ) {
|
434 |
foreach ( $variable_prices as $variable_price ) {
|
435 |
-
$prices_atts[$variable_price['_give_id']['level_id']] = give_format_amount( $variable_price['_give_amount'] );
|
436 |
}
|
437 |
}
|
438 |
|
@@ -446,12 +453,12 @@ function give_check_for_form_price_variations_html() {
|
|
446 |
'select_atts' => 'data-prices=' . esc_attr( json_encode( $prices_atts ) ),
|
447 |
);
|
448 |
|
449 |
-
if( $payment_id ) {
|
450 |
// Payment object.
|
451 |
$payment = new Give_Payment( $payment_id );
|
452 |
|
453 |
// Payment meta.
|
454 |
-
$payment_meta
|
455 |
$variable_price_dropdown_option['selected'] = $payment_meta['price_id'];
|
456 |
}
|
457 |
|
155 |
|
156 |
wp_send_json( array(
|
157 |
'fields' => wp_json_encode( $fields ),
|
158 |
+
'submit' => wp_json_encode( give_get_donation_form_submit_button( $form_id ) ),
|
159 |
) );
|
160 |
}
|
161 |
|
225 |
add_action( 'wp_ajax_nopriv_give_get_states', 'give_ajax_get_states_field' );
|
226 |
|
227 |
/**
|
228 |
+
* Retrieve donation forms via AJAX for chosen dropdown search field.
|
229 |
*
|
230 |
* @since 1.0
|
231 |
*
|
234 |
function give_ajax_form_search() {
|
235 |
global $wpdb;
|
236 |
|
237 |
+
$search = esc_sql( sanitize_text_field( $_GET['s'] ) );
|
238 |
+
$excludes = ( isset( $_GET['current_id'] ) ? (array) $_GET['current_id'] : array() );
|
239 |
+
|
240 |
$results = array();
|
241 |
if ( current_user_can( 'edit_give_forms' ) ) {
|
242 |
$items = $wpdb->get_results( "SELECT ID,post_title FROM $wpdb->posts WHERE `post_type` = 'give_forms' AND `post_title` LIKE '%$search%' LIMIT 50" );
|
257 |
|
258 |
$items[] = array(
|
259 |
'id' => 0,
|
260 |
+
'name' => __( 'No forms found.', 'give' ),
|
261 |
);
|
262 |
|
263 |
}
|
285 |
if ( ! current_user_can( 'view_give_reports' ) ) {
|
286 |
$donors = array();
|
287 |
} else {
|
288 |
+
$donors = $wpdb->get_results( "SELECT id,name,email FROM {$wpdb->prefix}give_customers WHERE `name` LIKE '%$search%' OR `email` LIKE '%$search%' LIMIT 50" );
|
289 |
}
|
290 |
|
291 |
if ( $donors ) {
|
294 |
|
295 |
$results[] = array(
|
296 |
'id' => $donor->id,
|
297 |
+
'name' => $donor->name . ' (' . $donor->email . ')',
|
298 |
);
|
299 |
}
|
300 |
} else {
|
301 |
|
302 |
$donors[] = array(
|
303 |
'id' => 0,
|
304 |
+
'name' => __( 'No donors found.', 'give' ),
|
305 |
);
|
306 |
|
307 |
}
|
325 |
|
326 |
if ( current_user_can( 'manage_give_settings' ) ) {
|
327 |
|
328 |
+
$search = esc_sql( sanitize_text_field( $_GET['s'] ) );
|
|
|
329 |
|
330 |
$get_users_args = array(
|
331 |
'number' => 9999,
|
332 |
+
'search' => $search . '*',
|
333 |
);
|
334 |
|
|
|
|
|
|
|
|
|
|
|
335 |
$get_users_args = apply_filters( 'give_search_users_args', $get_users_args );
|
336 |
|
337 |
+
$found_users = apply_filters( 'give_ajax_found_users', get_users( $get_users_args ), $search );
|
338 |
+
$results = array();
|
339 |
|
|
|
340 |
if ( $found_users ) {
|
341 |
+
|
342 |
foreach ( $found_users as $user ) {
|
343 |
+
|
344 |
+
$results[] = array(
|
345 |
+
'id' => $user->ID,
|
346 |
+
'name' => esc_html( $user->user_login . ' (' . $user->user_email . ')' ),
|
347 |
+
);
|
348 |
}
|
349 |
} else {
|
350 |
+
|
351 |
+
$results[] = array(
|
352 |
+
'id' => 0,
|
353 |
+
'name' => __( 'No users found.', 'give' ),
|
354 |
+
);
|
355 |
+
|
356 |
}
|
|
|
357 |
|
358 |
+
echo json_encode( $results );
|
359 |
+
|
360 |
+
}// End if().
|
361 |
+
|
362 |
+
give_die();
|
363 |
|
|
|
|
|
364 |
}
|
365 |
|
366 |
+
add_action( 'wp_ajax_give_user_search', 'give_ajax_search_users' );
|
367 |
|
368 |
|
369 |
/**
|
425 |
wp_die();
|
426 |
}
|
427 |
|
428 |
+
$form_id = ! empty( $_POST['form_id'] ) ? intval( $_POST['form_id'] ) : 0;
|
429 |
$payment_id = ! empty( $_POST['payment_id'] ) ? intval( $_POST['payment_id'] ) : 0;
|
430 |
$form = get_post( $form_id );
|
431 |
|
437 |
esc_html_e( 'n/a', 'give' );
|
438 |
} else {
|
439 |
$prices_atts = '';
|
440 |
+
if ( $variable_prices = give_get_variable_prices( $form_id ) ) {
|
441 |
foreach ( $variable_prices as $variable_price ) {
|
442 |
+
$prices_atts[ $variable_price['_give_id']['level_id'] ] = give_format_amount( $variable_price['_give_amount'] );
|
443 |
}
|
444 |
}
|
445 |
|
453 |
'select_atts' => 'data-prices=' . esc_attr( json_encode( $prices_atts ) ),
|
454 |
);
|
455 |
|
456 |
+
if ( $payment_id ) {
|
457 |
// Payment object.
|
458 |
$payment = new Give_Payment( $payment_id );
|
459 |
|
460 |
// Payment meta.
|
461 |
+
$payment_meta = $payment->get_meta();
|
462 |
$variable_price_dropdown_option['selected'] = $payment_meta['price_id'];
|
463 |
}
|
464 |
|
includes/api/class-give-api.php
CHANGED
@@ -163,7 +163,7 @@ class Give_API {
|
|
163 |
$this->log_requests = apply_filters( 'give_api_log_requests', $this->log_requests );
|
164 |
|
165 |
// Setup Give_Payment_Stats instance
|
166 |
-
$this->stats = new Give_Payment_Stats;
|
167 |
|
168 |
}
|
169 |
|
@@ -215,7 +215,7 @@ class Give_API {
|
|
215 |
*
|
216 |
* @access public
|
217 |
* @since 1.1
|
218 |
-
* @return
|
219 |
*/
|
220 |
public function get_versions() {
|
221 |
return $this->versions;
|
@@ -377,6 +377,13 @@ class Give_API {
|
|
377 |
return false;
|
378 |
}
|
379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
public function get_user_public_key( $user_id = 0 ) {
|
381 |
global $wpdb;
|
382 |
|
@@ -395,6 +402,13 @@ class Give_API {
|
|
395 |
return $user_public_key;
|
396 |
}
|
397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
public function get_user_secret_key( $user_id = 0 ) {
|
399 |
global $wpdb;
|
400 |
|
@@ -553,7 +567,18 @@ class Give_API {
|
|
553 |
|
554 |
case 'donations' :
|
555 |
|
556 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
|
558 |
break;
|
559 |
|
@@ -1005,7 +1030,7 @@ class Give_API {
|
|
1005 |
$form['info']['modified_date'] = $form_info->post_modified;
|
1006 |
$form['info']['status'] = $form_info->post_status;
|
1007 |
$form['info']['link'] = html_entity_decode( $form_info->guid );
|
1008 |
-
$form['info']['content'] =
|
1009 |
$form['info']['thumbnail'] = wp_get_attachment_url( get_post_thumbnail_id( $form_info->ID ) );
|
1010 |
|
1011 |
if ( give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) ) ) {
|
@@ -1336,10 +1361,18 @@ class Give_API {
|
|
1336 |
* @since 1.1
|
1337 |
* @return array
|
1338 |
*/
|
1339 |
-
public function get_recent_donations() {
|
1340 |
global $wp_query;
|
1341 |
|
1342 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1343 |
|
1344 |
if ( ! user_can( $this->user_id, 'view_give_reports' ) && ! $this->override ) {
|
1345 |
return $sales;
|
@@ -1361,7 +1394,57 @@ class Give_API {
|
|
1361 |
'status' => 'publish',
|
1362 |
);
|
1363 |
$query = give_get_payments( $args );
|
1364 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1365 |
$args = array(
|
1366 |
'fields' => 'ids',
|
1367 |
'number' => $this->per_page(),
|
@@ -1687,13 +1770,11 @@ class Give_API {
|
|
1687 |
public function process_api_key( $args ) {
|
1688 |
|
1689 |
if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'give-api-nonce' ) ) {
|
1690 |
-
|
1691 |
-
wp_die( esc_html__( 'Nonce verification failed.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 403 ) );
|
1692 |
-
|
1693 |
}
|
1694 |
|
1695 |
if ( empty( $args['user_id'] ) ) {
|
1696 |
-
wp_die(
|
1697 |
}
|
1698 |
|
1699 |
if ( is_numeric( $args['user_id'] ) ) {
|
@@ -1960,7 +2041,7 @@ class Give_API {
|
|
1960 |
/**
|
1961 |
* API Key Backwards Compatibility
|
1962 |
*
|
1963 |
-
* A Backwards Compatibility call for the change of meta_key/value for users API Keys
|
1964 |
*
|
1965 |
* @since 1.3.6
|
1966 |
*
|
163 |
$this->log_requests = apply_filters( 'give_api_log_requests', $this->log_requests );
|
164 |
|
165 |
// Setup Give_Payment_Stats instance
|
166 |
+
$this->stats = new Give_Payment_Stats();
|
167 |
|
168 |
}
|
169 |
|
215 |
*
|
216 |
* @access public
|
217 |
* @since 1.1
|
218 |
+
* @return array
|
219 |
*/
|
220 |
public function get_versions() {
|
221 |
return $this->versions;
|
377 |
return false;
|
378 |
}
|
379 |
|
380 |
+
/**
|
381 |
+
* Get user public key.
|
382 |
+
*
|
383 |
+
* @param int $user_id
|
384 |
+
*
|
385 |
+
* @return mixed|null|string
|
386 |
+
*/
|
387 |
public function get_user_public_key( $user_id = 0 ) {
|
388 |
global $wpdb;
|
389 |
|
402 |
return $user_public_key;
|
403 |
}
|
404 |
|
405 |
+
/**
|
406 |
+
* Get user secret key.
|
407 |
+
*
|
408 |
+
* @param int $user_id
|
409 |
+
*
|
410 |
+
* @return mixed|null|string
|
411 |
+
*/
|
412 |
public function get_user_secret_key( $user_id = 0 ) {
|
413 |
global $wpdb;
|
414 |
|
567 |
|
568 |
case 'donations' :
|
569 |
|
570 |
+
/**
|
571 |
+
* Call to get recent donations
|
572 |
+
*
|
573 |
+
* @params text date | today, yesterday or range
|
574 |
+
* @params date startdate | required when date = range and format to be YYYYMMDD (i.e. 20170524)
|
575 |
+
* @params date enddate | required when date = range and format to be YYYYMMDD (i.e. 20170524)
|
576 |
+
*/
|
577 |
+
$data = $this->routes->get_recent_donations( array(
|
578 |
+
'date' => isset( $wp_query->query_vars['date'] ) ? $wp_query->query_vars['date'] : null,
|
579 |
+
'startdate' => isset( $wp_query->query_vars['startdate'] ) ? $wp_query->query_vars['startdate'] : null,
|
580 |
+
'enddate' => isset( $wp_query->query_vars['enddate'] ) ? $wp_query->query_vars['enddate'] : null,
|
581 |
+
));
|
582 |
|
583 |
break;
|
584 |
|
1030 |
$form['info']['modified_date'] = $form_info->post_modified;
|
1031 |
$form['info']['status'] = $form_info->post_status;
|
1032 |
$form['info']['link'] = html_entity_decode( $form_info->guid );
|
1033 |
+
$form['info']['content'] = give_get_meta( $form_info->ID, '_give_form_content', true );
|
1034 |
$form['info']['thumbnail'] = wp_get_attachment_url( get_post_thumbnail_id( $form_info->ID ) );
|
1035 |
|
1036 |
if ( give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) ) ) {
|
1361 |
* @since 1.1
|
1362 |
* @return array
|
1363 |
*/
|
1364 |
+
public function get_recent_donations( $args = array() ) {
|
1365 |
global $wp_query;
|
1366 |
|
1367 |
+
$defaults = array(
|
1368 |
+
'date' => null,
|
1369 |
+
'startdate' => null,
|
1370 |
+
'enddate' => null,
|
1371 |
+
);
|
1372 |
+
|
1373 |
+
$args = wp_parse_args( $args, $defaults );
|
1374 |
+
|
1375 |
+
$sales = array();
|
1376 |
|
1377 |
if ( ! user_can( $this->user_id, 'view_give_reports' ) && ! $this->override ) {
|
1378 |
return $sales;
|
1394 |
'status' => 'publish',
|
1395 |
);
|
1396 |
$query = give_get_payments( $args );
|
1397 |
+
} elseif ( isset( $wp_query->query_vars['date'] ) ) {
|
1398 |
+
|
1399 |
+
$current_time = current_time( 'timestamp' );
|
1400 |
+
$dates = $this->get_dates( $args );
|
1401 |
+
|
1402 |
+
/**
|
1403 |
+
* Switch case for date query argument
|
1404 |
+
*
|
1405 |
+
* @since 1.8.8
|
1406 |
+
*
|
1407 |
+
* @params text date | today, yesterday or range
|
1408 |
+
* @params date startdate | required when date = range and format to be YYYYMMDD (i.e. 20170524)
|
1409 |
+
* @params date enddate | required when date = range and format to be YYYYMMDD (i.e. 20170524)
|
1410 |
+
*/
|
1411 |
+
switch( $wp_query->query_vars['date'] ){
|
1412 |
+
|
1413 |
+
case 'today':
|
1414 |
+
|
1415 |
+
// Set and Format Start and End Date to be date of today.
|
1416 |
+
$start_date = $end_date = date( 'Y/m/d', $current_time );
|
1417 |
+
|
1418 |
+
break;
|
1419 |
+
|
1420 |
+
case 'yesterday':
|
1421 |
+
|
1422 |
+
// Set and Format Start and End Date to be date of yesterday.
|
1423 |
+
$start_date = $end_date = date( 'Y/m', $current_time ) . '/'. ( date( 'd', $current_time ) - 1 );
|
1424 |
+
|
1425 |
+
break;
|
1426 |
+
|
1427 |
+
case 'range':
|
1428 |
+
|
1429 |
+
// Format Start Date and End Date for filtering payment based on date range.
|
1430 |
+
$start_date = $dates['year'] . '/' . $dates['m_start'] . '/' . $dates['day_start'];
|
1431 |
+
$end_date = $dates['year_end'] . '/' . $dates['m_end'] . '/' . $dates['day_end'];
|
1432 |
+
|
1433 |
+
break;
|
1434 |
+
|
1435 |
+
}
|
1436 |
+
|
1437 |
+
$args = array(
|
1438 |
+
'fields' => 'ids',
|
1439 |
+
'start_date' => $start_date,
|
1440 |
+
'end_date' => $end_date,
|
1441 |
+
'number' => $this->per_page(),
|
1442 |
+
'page' => $this->get_paged(),
|
1443 |
+
'status' => 'publish',
|
1444 |
+
);
|
1445 |
+
|
1446 |
+
$query = give_get_payments( $args );
|
1447 |
+
} else {
|
1448 |
$args = array(
|
1449 |
'fields' => 'ids',
|
1450 |
'number' => $this->per_page(),
|
1770 |
public function process_api_key( $args ) {
|
1771 |
|
1772 |
if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'give-api-nonce' ) ) {
|
1773 |
+
wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
|
|
|
|
|
1774 |
}
|
1775 |
|
1776 |
if ( empty( $args['user_id'] ) ) {
|
1777 |
+
wp_die( __( 'User ID Required.', 'give' ), __( 'Error', 'give' ), array( 'response' => 401 ) );
|
1778 |
}
|
1779 |
|
1780 |
if ( is_numeric( $args['user_id'] ) ) {
|
2041 |
/**
|
2042 |
* API Key Backwards Compatibility
|
2043 |
*
|
2044 |
+
* A Backwards Compatibility call for the change of meta_key/value for users API Keys.
|
2045 |
*
|
2046 |
* @since 1.3.6
|
2047 |
*
|
includes/class-give-donate-form.php
CHANGED
@@ -492,7 +492,7 @@ class Give_Donate_Form {
|
|
492 |
|
493 |
if ( ! isset( $this->price ) ) {
|
494 |
|
495 |
-
$this->price =
|
496 |
|
497 |
if ( $this->price ) {
|
498 |
|
@@ -529,8 +529,8 @@ class Give_Donate_Form {
|
|
529 |
|
530 |
if ( ! isset( $this->minimum_price ) ) {
|
531 |
|
532 |
-
$allow_custom_amount =
|
533 |
-
$this->minimum_price =
|
534 |
|
535 |
if ( give_is_setting_enabled( $allow_custom_amount ) && $this->minimum_price ) {
|
536 |
|
@@ -559,7 +559,7 @@ class Give_Donate_Form {
|
|
559 |
|
560 |
if ( ! isset( $this->prices ) ) {
|
561 |
|
562 |
-
$this->prices =
|
563 |
|
564 |
}
|
565 |
|
@@ -587,7 +587,7 @@ class Give_Donate_Form {
|
|
587 |
|
588 |
if ( ! isset( $this->goal ) ) {
|
589 |
|
590 |
-
$this->goal =
|
591 |
|
592 |
if ( $this->goal ) {
|
593 |
|
@@ -615,7 +615,7 @@ class Give_Donate_Form {
|
|
615 |
*/
|
616 |
public function is_single_price_mode() {
|
617 |
|
618 |
-
$option =
|
619 |
$ret = 0;
|
620 |
|
621 |
if ( empty( $option ) || $option === 'set' ) {
|
@@ -644,7 +644,7 @@ class Give_Donate_Form {
|
|
644 |
*/
|
645 |
public function is_custom_price_mode() {
|
646 |
|
647 |
-
$option =
|
648 |
$ret = 0;
|
649 |
|
650 |
if ( give_is_setting_enabled( $option ) ) {
|
@@ -675,7 +675,7 @@ class Give_Donate_Form {
|
|
675 |
*/
|
676 |
public function has_variable_prices() {
|
677 |
|
678 |
-
$option =
|
679 |
$ret = 0;
|
680 |
|
681 |
if ( $option === 'multi' ) {
|
@@ -704,7 +704,7 @@ class Give_Donate_Form {
|
|
704 |
|
705 |
if ( ! isset( $this->type ) ) {
|
706 |
|
707 |
-
$this->type =
|
708 |
|
709 |
if ( empty( $this->type ) ) {
|
710 |
$this->type = 'set';
|
@@ -763,7 +763,7 @@ class Give_Donate_Form {
|
|
763 |
|
764 |
$display_option = ( isset( $args['display_style'] ) && ! empty( $args['display_style'] ) )
|
765 |
? $args['display_style']
|
766 |
-
:
|
767 |
|
768 |
// If admin want to show only button for form then user inbuilt modal functionality.
|
769 |
if( 'button' === $display_option ) {
|
@@ -821,11 +821,11 @@ class Give_Donate_Form {
|
|
821 |
|
822 |
if ( ! isset( $this->sales ) ) {
|
823 |
|
824 |
-
if ( '' ==
|
825 |
add_post_meta( $this->ID, '_give_form_sales', 0 );
|
826 |
} // End if
|
827 |
|
828 |
-
$this->sales =
|
829 |
|
830 |
if ( $this->sales < 0 ) {
|
831 |
// Never let sales be less than zero
|
@@ -911,11 +911,11 @@ class Give_Donate_Form {
|
|
911 |
|
912 |
if ( ! isset( $this->earnings ) ) {
|
913 |
|
914 |
-
if ( '' ==
|
915 |
add_post_meta( $this->ID, '_give_form_earnings', 0 );
|
916 |
}
|
917 |
|
918 |
-
$this->earnings =
|
919 |
|
920 |
if ( $this->earnings < 0 ) {
|
921 |
// Never let earnings be less than zero
|
@@ -1006,7 +1006,7 @@ class Give_Donate_Form {
|
|
1006 |
if ( $variable_pricing && ! is_null( $price_id ) && $price_id !== false ) {
|
1007 |
$price = give_get_price_option_amount( $this->ID, $price_id );
|
1008 |
} elseif ( ! $variable_pricing ) {
|
1009 |
-
$price =
|
1010 |
}
|
1011 |
|
1012 |
if ( isset( $price ) && (float) $price == 0 ) {
|
@@ -1040,8 +1040,8 @@ class Give_Donate_Form {
|
|
1040 |
$is_close_form = apply_filters(
|
1041 |
'give_is_close_donation_form',
|
1042 |
(
|
1043 |
-
give_is_setting_enabled(
|
1044 |
-
&& give_is_setting_enabled(
|
1045 |
&& ( $this->get_goal() <= $this->get_earnings()
|
1046 |
),
|
1047 |
$this->ID
|
492 |
|
493 |
if ( ! isset( $this->price ) ) {
|
494 |
|
495 |
+
$this->price = give_get_meta( $this->ID, '_give_set_price', true );
|
496 |
|
497 |
if ( $this->price ) {
|
498 |
|
529 |
|
530 |
if ( ! isset( $this->minimum_price ) ) {
|
531 |
|
532 |
+
$allow_custom_amount = give_get_meta( $this->ID, '_give_custom_amount', true );
|
533 |
+
$this->minimum_price = give_get_meta( $this->ID, '_give_custom_amount_minimum', true );
|
534 |
|
535 |
if ( give_is_setting_enabled( $allow_custom_amount ) && $this->minimum_price ) {
|
536 |
|
559 |
|
560 |
if ( ! isset( $this->prices ) ) {
|
561 |
|
562 |
+
$this->prices = give_get_meta( $this->ID, '_give_donation_levels', true );
|
563 |
|
564 |
}
|
565 |
|
587 |
|
588 |
if ( ! isset( $this->goal ) ) {
|
589 |
|
590 |
+
$this->goal = give_get_meta( $this->ID, '_give_set_goal', true );
|
591 |
|
592 |
if ( $this->goal ) {
|
593 |
|
615 |
*/
|
616 |
public function is_single_price_mode() {
|
617 |
|
618 |
+
$option = give_get_meta( $this->ID, '_give_price_option', true );
|
619 |
$ret = 0;
|
620 |
|
621 |
if ( empty( $option ) || $option === 'set' ) {
|
644 |
*/
|
645 |
public function is_custom_price_mode() {
|
646 |
|
647 |
+
$option = give_get_meta( $this->ID, '_give_custom_amount', true );
|
648 |
$ret = 0;
|
649 |
|
650 |
if ( give_is_setting_enabled( $option ) ) {
|
675 |
*/
|
676 |
public function has_variable_prices() {
|
677 |
|
678 |
+
$option = give_get_meta( $this->ID, '_give_price_option', true );
|
679 |
$ret = 0;
|
680 |
|
681 |
if ( $option === 'multi' ) {
|
704 |
|
705 |
if ( ! isset( $this->type ) ) {
|
706 |
|
707 |
+
$this->type = give_get_meta( $this->ID, '_give_price_option', true );
|
708 |
|
709 |
if ( empty( $this->type ) ) {
|
710 |
$this->type = 'set';
|
763 |
|
764 |
$display_option = ( isset( $args['display_style'] ) && ! empty( $args['display_style'] ) )
|
765 |
? $args['display_style']
|
766 |
+
: give_get_meta( $this->ID, '_give_payment_display', true );
|
767 |
|
768 |
// If admin want to show only button for form then user inbuilt modal functionality.
|
769 |
if( 'button' === $display_option ) {
|
821 |
|
822 |
if ( ! isset( $this->sales ) ) {
|
823 |
|
824 |
+
if ( '' == give_get_meta( $this->ID, '_give_form_sales', true ) ) {
|
825 |
add_post_meta( $this->ID, '_give_form_sales', 0 );
|
826 |
} // End if
|
827 |
|
828 |
+
$this->sales = give_get_meta( $this->ID, '_give_form_sales', true );
|
829 |
|
830 |
if ( $this->sales < 0 ) {
|
831 |
// Never let sales be less than zero
|
911 |
|
912 |
if ( ! isset( $this->earnings ) ) {
|
913 |
|
914 |
+
if ( '' == give_get_meta( $this->ID, '_give_form_earnings', true ) ) {
|
915 |
add_post_meta( $this->ID, '_give_form_earnings', 0 );
|
916 |
}
|
917 |
|
918 |
+
$this->earnings = give_get_meta( $this->ID, '_give_form_earnings', true );
|
919 |
|
920 |
if ( $this->earnings < 0 ) {
|
921 |
// Never let earnings be less than zero
|
1006 |
if ( $variable_pricing && ! is_null( $price_id ) && $price_id !== false ) {
|
1007 |
$price = give_get_price_option_amount( $this->ID, $price_id );
|
1008 |
} elseif ( ! $variable_pricing ) {
|
1009 |
+
$price = give_get_meta( $this->ID, '_give_set_price', true );
|
1010 |
}
|
1011 |
|
1012 |
if ( isset( $price ) && (float) $price == 0 ) {
|
1040 |
$is_close_form = apply_filters(
|
1041 |
'give_is_close_donation_form',
|
1042 |
(
|
1043 |
+
give_is_setting_enabled( give_get_meta( $this->ID, '_give_goal_option', true ) ) )
|
1044 |
+
&& give_is_setting_enabled( give_get_meta( $this->ID, '_give_close_form_when_goal_achieved', true ) )
|
1045 |
&& ( $this->get_goal() <= $this->get_earnings()
|
1046 |
),
|
1047 |
$this->ID
|
includes/class-give-gravatars.php
CHANGED
@@ -167,7 +167,7 @@ class Give_Donors_Gravatars {
|
|
167 |
|
168 |
foreach ( $log_ids as $id ) {
|
169 |
// get the payment ID for each corresponding log ID
|
170 |
-
$payment_ids[] =
|
171 |
}
|
172 |
|
173 |
// remove donors who have donated more than once so we can have unique avatars
|
@@ -175,7 +175,7 @@ class Give_Donors_Gravatars {
|
|
175 |
|
176 |
foreach ( $payment_ids as $key => $id ) {
|
177 |
|
178 |
-
$email =
|
179 |
|
180 |
if ( isset ( $give_options['give_donors_gravatars_has_gravatar_account'] ) ) {
|
181 |
if ( ! $this->validate_gravatar( $email ) ) {
|
@@ -183,7 +183,7 @@ class Give_Donors_Gravatars {
|
|
183 |
}
|
184 |
}
|
185 |
|
186 |
-
$unique_emails[ $id ] =
|
187 |
|
188 |
}
|
189 |
|
@@ -267,7 +267,7 @@ class Give_Donors_Gravatars {
|
|
267 |
}
|
268 |
|
269 |
// get the payment meta
|
270 |
-
$payment_meta =
|
271 |
|
272 |
// unserialize the payment meta
|
273 |
$user_info = maybe_unserialize( $payment_meta['user_info'] );
|
@@ -276,7 +276,7 @@ class Give_Donors_Gravatars {
|
|
276 |
$name = $user_info['first_name'];
|
277 |
|
278 |
// get donor's email
|
279 |
-
$email =
|
280 |
|
281 |
// set gravatar size and provide filter
|
282 |
$size = isset( $give_options['give_donors_gravatars_gravatar_size'] ) ? apply_filters( 'give_donors_gravatars_gravatar_size', $give_options['give_donors_gravatars_gravatar_size'] ) : '';
|
167 |
|
168 |
foreach ( $log_ids as $id ) {
|
169 |
// get the payment ID for each corresponding log ID
|
170 |
+
$payment_ids[] = give_get_meta( $id, '_give_log_payment_id', true );
|
171 |
}
|
172 |
|
173 |
// remove donors who have donated more than once so we can have unique avatars
|
175 |
|
176 |
foreach ( $payment_ids as $key => $id ) {
|
177 |
|
178 |
+
$email = give_get_meta( $id, '_give_payment_user_email', true );
|
179 |
|
180 |
if ( isset ( $give_options['give_donors_gravatars_has_gravatar_account'] ) ) {
|
181 |
if ( ! $this->validate_gravatar( $email ) ) {
|
183 |
}
|
184 |
}
|
185 |
|
186 |
+
$unique_emails[ $id ] = give_get_meta( $id, '_give_payment_user_email', true );
|
187 |
|
188 |
}
|
189 |
|
267 |
}
|
268 |
|
269 |
// get the payment meta
|
270 |
+
$payment_meta = give_get_meta( $id, '_give_payment_meta', true );
|
271 |
|
272 |
// unserialize the payment meta
|
273 |
$user_info = maybe_unserialize( $payment_meta['user_info'] );
|
276 |
$name = $user_info['first_name'];
|
277 |
|
278 |
// get donor's email
|
279 |
+
$email = give_get_meta( $id, '_give_payment_user_email', true );
|
280 |
|
281 |
// set gravatar size and provide filter
|
282 |
$size = isset( $give_options['give_donors_gravatars_gravatar_size'] ) ? apply_filters( 'give_donors_gravatars_gravatar_size', $give_options['give_donors_gravatars_gravatar_size'] ) : '';
|
includes/class-give-html-elements.php
CHANGED
@@ -31,21 +31,21 @@ class Give_HTML_Elements {
|
|
31 |
* @since 1.0
|
32 |
* @access public
|
33 |
*
|
34 |
-
* @param array
|
35 |
*
|
36 |
* @return string Donations dropdown.
|
37 |
*/
|
38 |
-
public function
|
39 |
|
40 |
$defaults = array(
|
41 |
-
'name' => '
|
42 |
-
'id' => '
|
43 |
'class' => '',
|
44 |
'multiple' => false,
|
45 |
'selected' => 0,
|
46 |
'chosen' => false,
|
47 |
'number' => 30,
|
48 |
-
'placeholder' =>
|
49 |
);
|
50 |
|
51 |
$args = wp_parse_args( $args, $defaults );
|
@@ -60,14 +60,14 @@ class Give_HTML_Elements {
|
|
60 |
|
61 |
//Provide nice human readable options.
|
62 |
if ( $payments ) {
|
63 |
-
$options[0] =
|
64 |
foreach ( $payments as $payment ) {
|
65 |
|
66 |
-
$options[ absint( $payment->ID ) ] = esc_html( '#' . $payment->ID . ' - ' . $payment->email . ' - ' . $payment->form_title);
|
67 |
|
68 |
}
|
69 |
} else {
|
70 |
-
$options[0] =
|
71 |
}
|
72 |
|
73 |
|
@@ -110,7 +110,8 @@ class Give_HTML_Elements {
|
|
110 |
'selected' => 0,
|
111 |
'chosen' => false,
|
112 |
'number' => 30,
|
113 |
-
'placeholder' => esc_attr__( 'Select a Donation Form', 'give' )
|
|
|
114 |
);
|
115 |
|
116 |
$args = wp_parse_args( $args, $defaults );
|
@@ -124,10 +125,16 @@ class Give_HTML_Elements {
|
|
124 |
|
125 |
$options = array();
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
if ( $forms ) {
|
128 |
-
$options[0] =
|
129 |
foreach ( $forms as $form ) {
|
130 |
-
$form_title
|
131 |
$options[ absint( $form->ID ) ] = esc_html( $form_title );
|
132 |
}
|
133 |
} else {
|
@@ -144,7 +151,8 @@ class Give_HTML_Elements {
|
|
144 |
'multiple' => $args['multiple'],
|
145 |
'placeholder' => $args['placeholder'],
|
146 |
'show_option_all' => false,
|
147 |
-
'show_option_none' => false
|
|
|
148 |
) );
|
149 |
|
150 |
return $output;
|
@@ -165,14 +173,15 @@ class Give_HTML_Elements {
|
|
165 |
public function donor_dropdown( $args = array() ) {
|
166 |
|
167 |
$defaults = array(
|
168 |
-
'name' => '
|
169 |
-
'id' => '
|
170 |
'class' => '',
|
171 |
'multiple' => false,
|
172 |
'selected' => 0,
|
173 |
'chosen' => true,
|
174 |
'placeholder' => esc_attr__( 'Select a Donor', 'give' ),
|
175 |
-
'number' => 30
|
|
|
176 |
);
|
177 |
|
178 |
$args = wp_parse_args( $args, $defaults );
|
@@ -219,7 +228,8 @@ class Give_HTML_Elements {
|
|
219 |
'multiple' => $args['multiple'],
|
220 |
'chosen' => $args['chosen'],
|
221 |
'show_option_all' => false,
|
222 |
-
'show_option_none' => false
|
|
|
223 |
) );
|
224 |
|
225 |
return $output;
|
@@ -233,9 +243,9 @@ class Give_HTML_Elements {
|
|
233 |
* @since 1.0
|
234 |
* @access public
|
235 |
*
|
236 |
-
* @param string $name
|
237 |
-
* @param int
|
238 |
-
* @param array
|
239 |
*
|
240 |
* @return string Categories dropdown.
|
241 |
*/
|
@@ -269,9 +279,9 @@ class Give_HTML_Elements {
|
|
269 |
* @since 1.8
|
270 |
* @access public
|
271 |
*
|
272 |
-
* @param string $name
|
273 |
-
* @param int
|
274 |
-
* @param array
|
275 |
*
|
276 |
* @return string Tags dropdown.
|
277 |
*/
|
@@ -305,10 +315,10 @@ class Give_HTML_Elements {
|
|
305 |
* @since 1.0
|
306 |
* @access public
|
307 |
*
|
308 |
-
* @param string $name
|
309 |
-
* @param int
|
310 |
-
* @param int
|
311 |
-
* @param int
|
312 |
*
|
313 |
* @return string Years dropdown.
|
314 |
*/
|
@@ -343,8 +353,8 @@ class Give_HTML_Elements {
|
|
343 |
* @since 1.0
|
344 |
* @access public
|
345 |
*
|
346 |
-
* @param string $name
|
347 |
-
* @param int
|
348 |
*
|
349 |
* @return string Months dropdown.
|
350 |
*/
|
@@ -392,12 +402,20 @@ class Give_HTML_Elements {
|
|
392 |
'placeholder' => null,
|
393 |
'multiple' => false,
|
394 |
'select_atts' => false,
|
395 |
-
'show_option_all' =>
|
396 |
-
'show_option_none' =>
|
|
|
|
|
|
|
397 |
);
|
398 |
|
399 |
$args = wp_parse_args( $args, $defaults );
|
400 |
|
|
|
|
|
|
|
|
|
|
|
401 |
if ( $args['multiple'] ) {
|
402 |
$multiple = ' MULTIPLE';
|
403 |
} else {
|
@@ -415,7 +433,7 @@ class Give_HTML_Elements {
|
|
415 |
}
|
416 |
|
417 |
|
418 |
-
$output = '<select name="' . esc_attr( $args['name'] ) . '" id="' . esc_attr( sanitize_key( str_replace( '-', '_', $args['id'] ) ) ) . '" class="give-select ' . esc_attr( $args['class'] ) . '"' . $multiple . ' ' . $args['select_atts'] . ' data-placeholder="' . $placeholder . '">';
|
419 |
|
420 |
if ( $args['show_option_all'] ) {
|
421 |
if ( $args['multiple'] ) {
|
@@ -504,7 +522,7 @@ class Give_HTML_Elements {
|
|
504 |
* @return string The text field.
|
505 |
*/
|
506 |
public function text( $args = array() ) {
|
507 |
-
// Backwards compatibility
|
508 |
if ( func_num_args() > 1 ) {
|
509 |
$args = func_get_args();
|
510 |
|
@@ -637,27 +655,54 @@ class Give_HTML_Elements {
|
|
637 |
public function ajax_user_search( $args = array() ) {
|
638 |
|
639 |
$defaults = array(
|
640 |
-
'name'
|
641 |
-
'
|
642 |
-
'
|
643 |
-
'
|
644 |
-
'
|
645 |
-
'
|
646 |
-
'
|
647 |
-
'
|
648 |
-
'
|
|
|
649 |
);
|
650 |
|
|
|
651 |
$args = wp_parse_args( $args, $defaults );
|
652 |
|
653 |
-
$
|
|
|
|
|
654 |
|
655 |
-
$
|
656 |
-
$
|
657 |
-
|
658 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
|
660 |
return $output;
|
|
|
661 |
}
|
662 |
|
663 |
}
|
31 |
* @since 1.0
|
32 |
* @access public
|
33 |
*
|
34 |
+
* @param array $args Arguments for the dropdown.
|
35 |
*
|
36 |
* @return string Donations dropdown.
|
37 |
*/
|
38 |
+
public function donations_dropdown( $args = array() ) {
|
39 |
|
40 |
$defaults = array(
|
41 |
+
'name' => 'donations',
|
42 |
+
'id' => 'donations',
|
43 |
'class' => '',
|
44 |
'multiple' => false,
|
45 |
'selected' => 0,
|
46 |
'chosen' => false,
|
47 |
'number' => 30,
|
48 |
+
'placeholder' => __( 'Select a donation', 'give' )
|
49 |
);
|
50 |
|
51 |
$args = wp_parse_args( $args, $defaults );
|
60 |
|
61 |
//Provide nice human readable options.
|
62 |
if ( $payments ) {
|
63 |
+
$options[0] = $args['placeholder'];
|
64 |
foreach ( $payments as $payment ) {
|
65 |
|
66 |
+
$options[ absint( $payment->ID ) ] = esc_html( '#' . $payment->ID . ' - ' . $payment->email . ' - ' . $payment->form_title );
|
67 |
|
68 |
}
|
69 |
} else {
|
70 |
+
$options[0] = __( 'No donations found.', 'give' );
|
71 |
}
|
72 |
|
73 |
|
110 |
'selected' => 0,
|
111 |
'chosen' => false,
|
112 |
'number' => 30,
|
113 |
+
'placeholder' => esc_attr__( 'Select a Donation Form', 'give' ),
|
114 |
+
'data' => array( 'search-type' => 'form' ),
|
115 |
);
|
116 |
|
117 |
$args = wp_parse_args( $args, $defaults );
|
125 |
|
126 |
$options = array();
|
127 |
|
128 |
+
// Ensure the selected.
|
129 |
+
if ( false !== $args['selected'] && $args['selected'] !== 0 ) {
|
130 |
+
$options[ $args['selected'] ] = get_the_title( $args['selected'] );
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
if ( $forms ) {
|
135 |
+
$options[0] = $args['placeholder'];
|
136 |
foreach ( $forms as $form ) {
|
137 |
+
$form_title = empty( $form->post_title ) ? sprintf( __( 'Untitled (#%s)', 'give' ), $form->ID ) : $form->post_title;
|
138 |
$options[ absint( $form->ID ) ] = esc_html( $form_title );
|
139 |
}
|
140 |
} else {
|
151 |
'multiple' => $args['multiple'],
|
152 |
'placeholder' => $args['placeholder'],
|
153 |
'show_option_all' => false,
|
154 |
+
'show_option_none' => false,
|
155 |
+
'data' => $args['data'],
|
156 |
) );
|
157 |
|
158 |
return $output;
|
173 |
public function donor_dropdown( $args = array() ) {
|
174 |
|
175 |
$defaults = array(
|
176 |
+
'name' => 'donors',
|
177 |
+
'id' => 'donors',
|
178 |
'class' => '',
|
179 |
'multiple' => false,
|
180 |
'selected' => 0,
|
181 |
'chosen' => true,
|
182 |
'placeholder' => esc_attr__( 'Select a Donor', 'give' ),
|
183 |
+
'number' => 30,
|
184 |
+
'data' => array( 'search-type' => 'donor' )
|
185 |
);
|
186 |
|
187 |
$args = wp_parse_args( $args, $defaults );
|
228 |
'multiple' => $args['multiple'],
|
229 |
'chosen' => $args['chosen'],
|
230 |
'show_option_all' => false,
|
231 |
+
'show_option_none' => false,
|
232 |
+
'data' => $args['data'],
|
233 |
) );
|
234 |
|
235 |
return $output;
|
243 |
* @since 1.0
|
244 |
* @access public
|
245 |
*
|
246 |
+
* @param string $name Name attribute of the dropdown. Default is 'give_forms_categories'.
|
247 |
+
* @param int $selected Category to select automatically. Default is 0.
|
248 |
+
* @param array $args Select box options.
|
249 |
*
|
250 |
* @return string Categories dropdown.
|
251 |
*/
|
279 |
* @since 1.8
|
280 |
* @access public
|
281 |
*
|
282 |
+
* @param string $name Name attribute of the dropdown. Default is 'give_forms_tags'.
|
283 |
+
* @param int $selected Tag to select automatically. Default is 0.
|
284 |
+
* @param array $args Select box options.
|
285 |
*
|
286 |
* @return string Tags dropdown.
|
287 |
*/
|
315 |
* @since 1.0
|
316 |
* @access public
|
317 |
*
|
318 |
+
* @param string $name Name attribute of the dropdown. Default is 'year'.
|
319 |
+
* @param int $selected Year to select automatically. Default is 0.
|
320 |
+
* @param int $years_before Number of years before the current year the dropdown should start with. Default is 5.
|
321 |
+
* @param int $years_after Number of years after the current year the dropdown should finish at. Default is 0.
|
322 |
*
|
323 |
* @return string Years dropdown.
|
324 |
*/
|
353 |
* @since 1.0
|
354 |
* @access public
|
355 |
*
|
356 |
+
* @param string $name Name attribute of the dropdown. Default is 'month'.
|
357 |
+
* @param int $selected Month to select automatically. Default is 0.
|
358 |
*
|
359 |
* @return string Months dropdown.
|
360 |
*/
|
402 |
'placeholder' => null,
|
403 |
'multiple' => false,
|
404 |
'select_atts' => false,
|
405 |
+
'show_option_all' => __( 'All', 'give' ),
|
406 |
+
'show_option_none' => __( 'None', 'give' ),
|
407 |
+
'data' => array(),
|
408 |
+
'readonly' => false,
|
409 |
+
'disabled' => false,
|
410 |
);
|
411 |
|
412 |
$args = wp_parse_args( $args, $defaults );
|
413 |
|
414 |
+
$data_elements = '';
|
415 |
+
foreach ( $args['data'] as $key => $value ) {
|
416 |
+
$data_elements .= ' data-' . esc_attr( $key ) . '="' . esc_attr( $value ) . '"';
|
417 |
+
}
|
418 |
+
|
419 |
if ( $args['multiple'] ) {
|
420 |
$multiple = ' MULTIPLE';
|
421 |
} else {
|
433 |
}
|
434 |
|
435 |
|
436 |
+
$output = '<select name="' . esc_attr( $args['name'] ) . '" id="' . esc_attr( sanitize_key( str_replace( '-', '_', $args['id'] ) ) ) . '" class="give-select ' . esc_attr( $args['class'] ) . '"' . $multiple . ' ' . $args['select_atts'] . ' data-placeholder="' . $placeholder . '"' . $data_elements . '>';
|
437 |
|
438 |
if ( $args['show_option_all'] ) {
|
439 |
if ( $args['multiple'] ) {
|
522 |
* @return string The text field.
|
523 |
*/
|
524 |
public function text( $args = array() ) {
|
525 |
+
// Backwards compatibility.
|
526 |
if ( func_num_args() > 1 ) {
|
527 |
$args = func_get_args();
|
528 |
|
655 |
public function ajax_user_search( $args = array() ) {
|
656 |
|
657 |
$defaults = array(
|
658 |
+
'name' => 'users',
|
659 |
+
'id' => 'users',
|
660 |
+
'class' => 'give-ajax-user-search',
|
661 |
+
'multiple' => false,
|
662 |
+
'selected' => 0,
|
663 |
+
'chosen' => true,
|
664 |
+
'number' => 30,
|
665 |
+
'select_atts' => '',
|
666 |
+
'placeholder' => __( 'Select a user', 'give' ),
|
667 |
+
'data' => array( 'search-type' => 'user' ),
|
668 |
);
|
669 |
|
670 |
+
|
671 |
$args = wp_parse_args( $args, $defaults );
|
672 |
|
673 |
+
$get_users_args = array(
|
674 |
+
'number' => $args['number'],
|
675 |
+
);
|
676 |
|
677 |
+
$users = apply_filters( 'give_ajax_user_search_initial_results', get_users( $get_users_args ), $args );
|
678 |
+
$options = array();
|
679 |
+
|
680 |
+
if ( $users ) {
|
681 |
+
$options[0] = $args['placeholder'];
|
682 |
+
foreach ( $users as $user ) {
|
683 |
+
$options[ absint( $user->id ) ] = esc_html( $user->user_login . ' (' . $user->user_email . ')' );
|
684 |
+
}
|
685 |
+
} else {
|
686 |
+
$options[0] = esc_html__( 'No users found.', 'give' );
|
687 |
+
}
|
688 |
+
|
689 |
+
$output = $this->select( array(
|
690 |
+
'name' => $args['name'],
|
691 |
+
'selected' => $args['selected'],
|
692 |
+
'id' => $args['id'],
|
693 |
+
'class' => $args['class'],
|
694 |
+
'options' => $options,
|
695 |
+
'chosen' => $args['chosen'],
|
696 |
+
'multiple' => $args['multiple'],
|
697 |
+
'placeholder' => $args['placeholder'],
|
698 |
+
'select_atts' => $args['select_atts'],
|
699 |
+
'show_option_all' => false,
|
700 |
+
'show_option_none' => false,
|
701 |
+
'data' => $args['data'],
|
702 |
+
) );
|
703 |
|
704 |
return $output;
|
705 |
+
|
706 |
}
|
707 |
|
708 |
}
|
includes/class-give-logging.php
CHANGED
@@ -228,7 +228,7 @@ class Give_Logging {
|
|
228 |
// Set log meta, if any
|
229 |
if ( $log_id && ! empty( $log_meta ) ) {
|
230 |
foreach ( (array) $log_meta as $key => $meta ) {
|
231 |
-
|
232 |
}
|
233 |
}
|
234 |
|
@@ -283,7 +283,7 @@ class Give_Logging {
|
|
283 |
if ( $log_id && ! empty( $log_meta ) ) {
|
284 |
foreach ( (array) $log_meta as $key => $meta ) {
|
285 |
if ( ! empty( $meta ) ) {
|
286 |
-
|
287 |
}
|
288 |
}
|
289 |
}
|
228 |
// Set log meta, if any
|
229 |
if ( $log_id && ! empty( $log_meta ) ) {
|
230 |
foreach ( (array) $log_meta as $key => $meta ) {
|
231 |
+
give_update_meta( $log_id, '_give_log_' . sanitize_key( $key ), $meta );
|
232 |
}
|
233 |
}
|
234 |
|
283 |
if ( $log_id && ! empty( $log_meta ) ) {
|
284 |
foreach ( (array) $log_meta as $key => $meta ) {
|
285 |
if ( ! empty( $meta ) ) {
|
286 |
+
give_update_meta( $log_id, '_give_log_' . sanitize_key( $key ), $meta );
|
287 |
}
|
288 |
}
|
289 |
}
|
includes/class-give-roles.php
CHANGED
@@ -88,7 +88,8 @@ class Give_Roles {
|
|
88 |
|
89 |
add_role( 'give_worker', esc_html__( 'Give Worker', 'give' ), array(
|
90 |
'read' => true,
|
91 |
-
'edit_posts' =>
|
|
|
92 |
'upload_files' => true,
|
93 |
'delete_posts' => false
|
94 |
) );
|
88 |
|
89 |
add_role( 'give_worker', esc_html__( 'Give Worker', 'give' ), array(
|
90 |
'read' => true,
|
91 |
+
'edit_posts' => true,
|
92 |
+
'edit_pages' => true,
|
93 |
'upload_files' => true,
|
94 |
'delete_posts' => false
|
95 |
) );
|
includes/deprecated/deprecated-actions.php
CHANGED
@@ -44,6 +44,14 @@ function give_deprecated_actions() {
|
|
44 |
'give_complete_donation' => 'give_complete_purchase',
|
45 |
'give_ajax_donation_errors' => 'give_ajax_checkout_errors',
|
46 |
'give_admin_donation_email' => 'give_admin_sale_notice',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
);
|
48 |
|
49 |
return $give_deprecated_actions;
|
@@ -52,7 +60,7 @@ function give_deprecated_actions() {
|
|
52 |
/**
|
53 |
* Deprecated action mapping.
|
54 |
*
|
55 |
-
* @param mixed
|
56 |
* @param string $arg_1
|
57 |
* @param string $arg_2
|
58 |
* @param string $arg_3
|
44 |
'give_complete_donation' => 'give_complete_purchase',
|
45 |
'give_ajax_donation_errors' => 'give_ajax_checkout_errors',
|
46 |
'give_admin_donation_email' => 'give_admin_sale_notice',
|
47 |
+
'give_tools_tab_export_content_top' => 'give_reports_tab_export_content_top',
|
48 |
+
'give_tools_tab_export_table_top' => 'give_reports_tab_export_table_top',
|
49 |
+
'give_tools_tab_export_table_bottom' => 'give_reports_tab_export_table_bottom',
|
50 |
+
'give_tools_tab_export_content_bottom' => 'give_report_tab_export_table_bottom',
|
51 |
+
'give_pre_edit_donor' => 'give_pre_edit_customer',
|
52 |
+
'give_post_edit_donor' => 'give_post_edit_customer',
|
53 |
+
'give_pre_donor_disconnect_user_id' => 'give_pre_customer_disconnect_user_id',
|
54 |
+
'give_post_donor_disconnect_user_id' => 'give_post_customer_disconnect_user_id',
|
55 |
);
|
56 |
|
57 |
return $give_deprecated_actions;
|
60 |
/**
|
61 |
* Deprecated action mapping.
|
62 |
*
|
63 |
+
* @param mixed $data
|
64 |
* @param string $arg_1
|
65 |
* @param string $arg_2
|
66 |
* @param string $arg_3
|
includes/deprecated/deprecated-filters.php
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Handle renamed filters
|
|
|
|
|
4 |
*/
|
|
|
5 |
$give_map_deprecated_filters = give_deprecated_filters();
|
6 |
|
7 |
foreach ( $give_map_deprecated_filters as $new => $old ) {
|
@@ -16,16 +19,29 @@ foreach ( $give_map_deprecated_filters as $new => $old ) {
|
|
16 |
function give_deprecated_filters() {
|
17 |
|
18 |
$give_deprecated_filters = array(
|
19 |
-
// New filter hook
|
20 |
-
'give_donation_data_before_gateway'
|
21 |
-
'give_donation_form_required_fields'
|
22 |
-
'give_donation_stats_by_user'
|
23 |
-
'give_donation_from_name'
|
24 |
-
'give_donation_from_address'
|
25 |
-
'give_get_users_donations_args'
|
26 |
-
'give_recount_donors_donation_statuses'
|
27 |
-
'give_donor_recount_should_process_donation'
|
28 |
-
'give_reset_items'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
);
|
30 |
|
31 |
return $give_deprecated_filters;
|
@@ -34,10 +50,10 @@ function give_deprecated_filters() {
|
|
34 |
/**
|
35 |
* Deprecated filter mapping.
|
36 |
*
|
37 |
-
* @param mixed
|
38 |
-
* @param string $arg_1
|
39 |
-
* @param string $arg_2
|
40 |
-
* @param string $arg_3
|
41 |
*
|
42 |
* @return mixed
|
43 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
* Handle renamed filters
|
4 |
+
*
|
5 |
+
* @package Give
|
6 |
*/
|
7 |
+
|
8 |
$give_map_deprecated_filters = give_deprecated_filters();
|
9 |
|
10 |
foreach ( $give_map_deprecated_filters as $new => $old ) {
|
19 |
function give_deprecated_filters() {
|
20 |
|
21 |
$give_deprecated_filters = array(
|
22 |
+
// New filter hook Old filter hook.
|
23 |
+
'give_donation_data_before_gateway' => 'give_purchase_data_before_gateway',
|
24 |
+
'give_donation_form_required_fields' => 'give_purchase_form_required_fields',
|
25 |
+
'give_donation_stats_by_user' => 'give_purchase_stats_by_user',
|
26 |
+
'give_donation_from_name' => 'give_purchase_from_name',
|
27 |
+
'give_donation_from_address' => 'give_purchase_from_address',
|
28 |
+
'give_get_users_donations_args' => 'give_get_users_purchases_args',
|
29 |
+
'give_recount_donors_donation_statuses' => 'give_recount_customer_payment_statuses',
|
30 |
+
'give_donor_recount_should_process_donation' => 'give_customer_recount_should_process_payment',
|
31 |
+
'give_reset_items' => 'give_reset_store_items',
|
32 |
+
'give_decrease_donations_on_undo' => 'give_decrease_sales_on_undo',
|
33 |
+
'give_decrease_earnings_on_pending' => 'give_decrease_store_earnings_on_pending',
|
34 |
+
'give_decrease_donor_value_on_pending' => 'give_decrease_customer_value_on_pending',
|
35 |
+
'give_decrease_donors_donation_count_on_pending' => 'give_decrease_customer_purchase_count_on_pending',
|
36 |
+
'give_decrease_earnings_on_cancelled' => 'give_decrease_store_earnings_on_cancelled',
|
37 |
+
'give_decrease_donor_value_on_cancelled' => 'give_decrease_customer_value_on_cancelled',
|
38 |
+
'give_decrease_donors_donation_count_on_cancelled' => 'give_decrease_customer_purchase_count_on_cancelled',
|
39 |
+
'give_decrease_earnings_on_revoked' => 'give_decrease_store_earnings_on_revoked',
|
40 |
+
'give_decrease_donor_value_on_revoked' => 'give_decrease_customer_value_on_revoked',
|
41 |
+
'give_decrease_donors_donation_count_on_revoked' => 'give_decrease_customer_purchase_count_on_revoked',
|
42 |
+
'give_edit_donors_role' => 'give_edit_customers_role',
|
43 |
+
'give_edit_donor_info' => 'give_edit_customer_info',
|
44 |
+
'give_edit_donor_address' => 'give_edit_customer_address',
|
45 |
);
|
46 |
|
47 |
return $give_deprecated_filters;
|
50 |
/**
|
51 |
* Deprecated filter mapping.
|
52 |
*
|
53 |
+
* @param mixed $data
|
54 |
+
* @param string $arg_1 Passed filter argument 1.
|
55 |
+
* @param string $arg_2 Passed filter argument 2.
|
56 |
+
* @param string $arg_3 Passed filter argument 3.
|
57 |
*
|
58 |
* @return mixed
|
59 |
*/
|
includes/deprecated/deprecated-functions.php
CHANGED
@@ -33,7 +33,7 @@ function give_no_guest_checkout( $form_id ) {
|
|
33 |
|
34 |
_give_deprecated_function( __FUNCTION__, '1.4.1', null, $backtrace );
|
35 |
|
36 |
-
$ret =
|
37 |
|
38 |
return (bool) apply_filters( 'give_no_guest_checkout', give_is_setting_enabled( $ret ) );
|
39 |
}
|
@@ -53,12 +53,227 @@ function give_log_default_views() {
|
|
53 |
_give_deprecated_function( __FUNCTION__, '1.8', null, $backtrace );
|
54 |
|
55 |
$views = array(
|
56 |
-
'sales' =>
|
57 |
-
'gateway_errors' =>
|
58 |
-
'api_requests' =>
|
59 |
);
|
60 |
|
61 |
$views = apply_filters( 'give_log_views', $views );
|
62 |
|
63 |
return $views;
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
_give_deprecated_function( __FUNCTION__, '1.4.1', null, $backtrace );
|
35 |
|
36 |
+
$ret = give_get_meta( $form_id, '_give_logged_in_only', true );
|
37 |
|
38 |
return (bool) apply_filters( 'give_no_guest_checkout', give_is_setting_enabled( $ret ) );
|
39 |
}
|
53 |
_give_deprecated_function( __FUNCTION__, '1.8', null, $backtrace );
|
54 |
|
55 |
$views = array(
|
56 |
+
'sales' => __( 'Donations', 'give' ),
|
57 |
+
'gateway_errors' => __( 'Payment Errors', 'give' ),
|
58 |
+
'api_requests' => __( 'API Requests', 'give' ),
|
59 |
);
|
60 |
|
61 |
$views = apply_filters( 'give_log_views', $views );
|
62 |
|
63 |
return $views;
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Donation form validate agree to "Terms and Conditions".
|
68 |
+
*
|
69 |
+
* @since 1.0
|
70 |
+
* @deprecated 1.8.8
|
71 |
+
*/
|
72 |
+
function give_purchase_form_validate_agree_to_terms() {
|
73 |
+
|
74 |
+
$backtrace = debug_backtrace();
|
75 |
+
|
76 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_agree_to_terms', $backtrace );
|
77 |
+
|
78 |
+
// Call new renamed function.
|
79 |
+
give_donation_form_validate_agree_to_terms();
|
80 |
+
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* Donation Form Validate Logged In User.
|
85 |
+
*
|
86 |
+
* @since 1.0
|
87 |
+
* @deprecated 1.8.8
|
88 |
+
*/
|
89 |
+
function give_purchase_form_validate_logged_in_user() {
|
90 |
+
|
91 |
+
$backtrace = debug_backtrace();
|
92 |
+
|
93 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_logged_in_user', $backtrace );
|
94 |
+
|
95 |
+
// Call new renamed function.
|
96 |
+
give_donation_form_validate_logged_in_user();
|
97 |
+
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Donation Form Validate Logged In User.
|
102 |
+
*
|
103 |
+
* @since 1.0
|
104 |
+
* @deprecated 1.8.8
|
105 |
+
*/
|
106 |
+
function give_purchase_form_validate_gateway() {
|
107 |
+
|
108 |
+
$backtrace = debug_backtrace();
|
109 |
+
|
110 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_gateway', $backtrace );
|
111 |
+
|
112 |
+
// Call new renamed function.
|
113 |
+
give_donation_form_validate_gateway();
|
114 |
+
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Donation Form Validate Fields.
|
119 |
+
*
|
120 |
+
* @since 1.0
|
121 |
+
* @deprecated 1.8.8
|
122 |
+
*/
|
123 |
+
function give_purchase_form_validate_fields() {
|
124 |
+
|
125 |
+
$backtrace = debug_backtrace();
|
126 |
+
|
127 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_fields', $backtrace );
|
128 |
+
|
129 |
+
// Call new renamed function.
|
130 |
+
give_donation_form_validate_fields();
|
131 |
+
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Validates the credit card info.
|
136 |
+
*
|
137 |
+
* @since 1.0
|
138 |
+
* @deprecated 1.8.8
|
139 |
+
*/
|
140 |
+
function give_purchase_form_validate_cc() {
|
141 |
+
|
142 |
+
$backtrace = debug_backtrace();
|
143 |
+
|
144 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_cc', $backtrace );
|
145 |
+
|
146 |
+
// Call new renamed function.
|
147 |
+
give_donation_form_validate_cc();
|
148 |
+
|
149 |
+
}
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Validates the credit card info.
|
153 |
+
*
|
154 |
+
* @since 1.0
|
155 |
+
* @deprecated 1.8.8
|
156 |
+
*/
|
157 |
+
function give_get_purchase_cc_info() {
|
158 |
+
|
159 |
+
$backtrace = debug_backtrace();
|
160 |
+
|
161 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_cc_info', $backtrace );
|
162 |
+
|
163 |
+
// Call new renamed function.
|
164 |
+
give_get_donation_cc_info();
|
165 |
+
|
166 |
+
}
|
167 |
+
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Validates the credit card info.
|
171 |
+
*
|
172 |
+
* @since 1.0
|
173 |
+
* @deprecated 1.8.8
|
174 |
+
*
|
175 |
+
* @param int $zip
|
176 |
+
* @param string $country_code
|
177 |
+
*/
|
178 |
+
function give_purchase_form_validate_cc_zip( $zip = 0, $country_code = '' ) {
|
179 |
+
|
180 |
+
$backtrace = debug_backtrace();
|
181 |
+
|
182 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_cc_zip', $backtrace );
|
183 |
+
|
184 |
+
// Call new renamed function.
|
185 |
+
give_donation_form_validate_cc_zip( $zip, $country_code );
|
186 |
+
|
187 |
+
}
|
188 |
+
|
189 |
+
/**
|
190 |
+
* Donation form validate user login.
|
191 |
+
*
|
192 |
+
* @since 1.0
|
193 |
+
* @deprecated 1.8.8
|
194 |
+
*/
|
195 |
+
function give_purchase_form_validate_user_login() {
|
196 |
+
|
197 |
+
$backtrace = debug_backtrace();
|
198 |
+
|
199 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_user_login', $backtrace );
|
200 |
+
|
201 |
+
// Call new renamed function.
|
202 |
+
give_donation_form_validate_user_login();
|
203 |
+
|
204 |
+
}
|
205 |
+
|
206 |
+
/**
|
207 |
+
* Donation Form Validate Guest User
|
208 |
+
*
|
209 |
+
* @since 1.0
|
210 |
+
* @deprecated 1.8.8
|
211 |
+
*/
|
212 |
+
function give_purchase_form_validate_guest_user() {
|
213 |
+
|
214 |
+
$backtrace = debug_backtrace();
|
215 |
+
|
216 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_guest_user', $backtrace );
|
217 |
+
|
218 |
+
// Call new renamed function.
|
219 |
+
give_donation_form_validate_guest_user();
|
220 |
+
|
221 |
+
}
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Donate Form Validate New User
|
225 |
+
*
|
226 |
+
* @since 1.0
|
227 |
+
* @deprecated 1.8.8
|
228 |
+
*/
|
229 |
+
function give_purchase_form_validate_new_user() {
|
230 |
+
|
231 |
+
$backtrace = debug_backtrace();
|
232 |
+
|
233 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_donation_form_validate_new_user', $backtrace );
|
234 |
+
|
235 |
+
// Call new renamed function.
|
236 |
+
give_donation_form_validate_new_user();
|
237 |
+
|
238 |
+
}
|
239 |
+
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Get Donation Form User
|
243 |
+
*
|
244 |
+
* @since 1.0
|
245 |
+
* @deprecated 1.8.8
|
246 |
+
*
|
247 |
+
* @param array $valid_data
|
248 |
+
*/
|
249 |
+
function give_get_purchase_form_user( $valid_data = array() ) {
|
250 |
+
|
251 |
+
$backtrace = debug_backtrace();
|
252 |
+
|
253 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_form_user', $backtrace );
|
254 |
+
|
255 |
+
// Call new renamed function.
|
256 |
+
give_get_donation_form_user( $valid_data );
|
257 |
+
|
258 |
+
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Give Checkout Button.
|
262 |
+
*
|
263 |
+
* Renders the button on the Checkout.
|
264 |
+
*
|
265 |
+
* @since 1.0
|
266 |
+
* @deprecated 1.8.8
|
267 |
+
*
|
268 |
+
* @param int $form_id The form ID.
|
269 |
+
*
|
270 |
+
* @return string
|
271 |
+
*/
|
272 |
+
function give_checkout_button_purchase( $form_id ) {
|
273 |
+
$backtrace = debug_backtrace();
|
274 |
+
|
275 |
+
_give_deprecated_function( __FUNCTION__, '1.8.8', 'give_get_donation_form_submit_button', $backtrace );
|
276 |
+
|
277 |
+
return give_get_donation_form_submit_button( $form_id );
|
278 |
+
|
279 |
+
}
|
includes/emails/template.php
CHANGED
@@ -238,7 +238,7 @@ function give_get_donation_notification_body_content( $payment_id = 0, $payment_
|
|
238 |
$name = $email;
|
239 |
}
|
240 |
|
241 |
-
$gateway = give_get_gateway_admin_label(
|
242 |
|
243 |
$default_email_body = esc_html__( 'Hello', 'give' ) . "\n\n";
|
244 |
$default_email_body .= esc_html__( 'A donation has been made.', 'give' ) . "\n\n";
|
238 |
$name = $email;
|
239 |
}
|
240 |
|
241 |
+
$gateway = give_get_gateway_admin_label( give_get_meta( $payment_id, '_give_payment_gateway', true ) );
|
242 |
|
243 |
$default_email_body = esc_html__( 'Hello', 'give' ) . "\n\n";
|
244 |
$default_email_body .= esc_html__( 'A donation has been made.', 'give' ) . "\n\n";
|
includes/formatting.php
CHANGED
@@ -55,8 +55,8 @@ function give_get_price_decimal_separator() {
|
|
55 |
*
|
56 |
* @since 1.0
|
57 |
*
|
58 |
-
* @param int|float|string $number
|
59 |
-
* @param int|bool $dp
|
60 |
* @param bool $trim_zeros From end of string
|
61 |
*
|
62 |
* @return string $amount Newly sanitized amount
|
@@ -129,7 +129,7 @@ function give_sanitize_amount( $number, $dp = false, $trim_zeros = false ) {
|
|
129 |
*
|
130 |
* @since 1.0
|
131 |
*
|
132 |
-
* @param string $amount
|
133 |
* @param bool $decimals Whether or not to use decimals. Useful when set to false for non-currency numbers.
|
134 |
*
|
135 |
* @return string $amount Newly formatted amount or Price Not Available
|
@@ -201,7 +201,7 @@ function give_human_format_large_amount( $amount ) {
|
|
201 |
* @since 1.0
|
202 |
*
|
203 |
* @param int|float|string $amount Formatted or sanitized price
|
204 |
-
* @param int|bool $dp
|
205 |
*
|
206 |
* @return string $amount Newly formatted amount or Price Not Available
|
207 |
*/
|
@@ -217,16 +217,17 @@ function give_format_decimal( $amount, $dp = false ) {
|
|
217 |
}
|
218 |
|
219 |
/**
|
220 |
-
* Formats the currency
|
221 |
*
|
222 |
* @since 1.0
|
223 |
*
|
224 |
-
* @param string $price
|
225 |
-
* @param string $currency
|
|
|
226 |
*
|
227 |
* @return mixed|string
|
228 |
*/
|
229 |
-
function give_currency_filter( $price = '', $currency = '' ) {
|
230 |
|
231 |
if ( empty( $currency ) ) {
|
232 |
$currency = give_get_currency();
|
@@ -241,7 +242,7 @@ function give_currency_filter( $price = '', $currency = '' ) {
|
|
241 |
$price = substr( $price, 1 );
|
242 |
}
|
243 |
|
244 |
-
$symbol = give_currency_symbol( $currency );
|
245 |
|
246 |
switch ( $currency ) :
|
247 |
case 'GBP' :
|
@@ -395,7 +396,7 @@ function give_date_format( $date_context = '' ) {
|
|
395 |
* @since 1.7
|
396 |
* @deprecated 1.8.7 You can access this function from Give_Cache.
|
397 |
*
|
398 |
-
* @param string $action
|
399 |
* @param array $query_args Query array.
|
400 |
*
|
401 |
* @return string
|
@@ -464,7 +465,9 @@ function give_validate_nonce( $nonce, $action = - 1, $wp_die_args = array() ) {
|
|
464 |
$default_wp_die_args = array(
|
465 |
'message' => esc_html__( 'Nonce verification has failed.', 'give' ),
|
466 |
'title' => esc_html__( 'Error', 'give' ),
|
467 |
-
'args' => array(
|
|
|
|
|
468 |
);
|
469 |
|
470 |
$wp_die_args = wp_parse_args( $wp_die_args, $default_wp_die_args );
|
@@ -487,7 +490,7 @@ function give_validate_nonce( $nonce, $action = - 1, $wp_die_args = array() ) {
|
|
487 |
*
|
488 |
* @param $variable
|
489 |
* @param string (optional) $conditional , default value: isset
|
490 |
-
* @param bool (optional) $default
|
491 |
*
|
492 |
* @return mixed
|
493 |
*/
|
55 |
*
|
56 |
* @since 1.0
|
57 |
*
|
58 |
+
* @param int|float|string $number Expects either a float or a string with a decimal separator only (no thousands)
|
59 |
+
* @param int|bool $dp Number of decimals
|
60 |
* @param bool $trim_zeros From end of string
|
61 |
*
|
62 |
* @return string $amount Newly sanitized amount
|
129 |
*
|
130 |
* @since 1.0
|
131 |
*
|
132 |
+
* @param string $amount Price amount to format
|
133 |
* @param bool $decimals Whether or not to use decimals. Useful when set to false for non-currency numbers.
|
134 |
*
|
135 |
* @return string $amount Newly formatted amount or Price Not Available
|
201 |
* @since 1.0
|
202 |
*
|
203 |
* @param int|float|string $amount Formatted or sanitized price
|
204 |
+
* @param int|bool $dp number of decimals
|
205 |
*
|
206 |
* @return string $amount Newly formatted amount or Price Not Available
|
207 |
*/
|
217 |
}
|
218 |
|
219 |
/**
|
220 |
+
* Formats the currency displayed.
|
221 |
*
|
222 |
* @since 1.0
|
223 |
*
|
224 |
+
* @param string $price The donation amount.
|
225 |
+
* @param string $currency The currency code.
|
226 |
+
* @param bool $decode_currency Whether to decode the currency HTML format or not.
|
227 |
*
|
228 |
* @return mixed|string
|
229 |
*/
|
230 |
+
function give_currency_filter( $price = '', $currency = '', $decode_currency = false ) {
|
231 |
|
232 |
if ( empty( $currency ) ) {
|
233 |
$currency = give_get_currency();
|
242 |
$price = substr( $price, 1 );
|
243 |
}
|
244 |
|
245 |
+
$symbol = give_currency_symbol( $currency, $decode_currency );
|
246 |
|
247 |
switch ( $currency ) :
|
248 |
case 'GBP' :
|
396 |
* @since 1.7
|
397 |
* @deprecated 1.8.7 You can access this function from Give_Cache.
|
398 |
*
|
399 |
+
* @param string $action Cache key prefix.
|
400 |
* @param array $query_args Query array.
|
401 |
*
|
402 |
* @return string
|
465 |
$default_wp_die_args = array(
|
466 |
'message' => esc_html__( 'Nonce verification has failed.', 'give' ),
|
467 |
'title' => esc_html__( 'Error', 'give' ),
|
468 |
+
'args' => array(
|
469 |
+
'response' => 403,
|
470 |
+
),
|
471 |
);
|
472 |
|
473 |
$wp_die_args = wp_parse_args( $wp_die_args, $default_wp_die_args );
|
490 |
*
|
491 |
* @param $variable
|
492 |
* @param string (optional) $conditional , default value: isset
|
493 |
+
* @param bool (optional) $default , default value: false
|
494 |
*
|
495 |
* @return mixed
|
496 |
*/
|
includes/forms/functions.php
CHANGED
@@ -68,7 +68,7 @@ function give_is_float_labels_enabled( $args ) {
|
|
68 |
}
|
69 |
|
70 |
if ( empty( $float_labels ) ) {
|
71 |
-
$float_labels =
|
72 |
}
|
73 |
|
74 |
if ( empty( $float_labels ) || ( 'global' === $float_labels ) ) {
|
@@ -903,7 +903,7 @@ add_filter( 'give_form_goal', 'give_currency_filter', 20 );
|
|
903 |
function give_logged_in_only( $form_id ) {
|
904 |
// If _give_logged_in_only is set to enable then guest can donate from that specific form.
|
905 |
// Otherwise it is member only donation form.
|
906 |
-
$val =
|
907 |
$val = ! empty( $val ) ? $val : 'enabled';
|
908 |
|
909 |
$ret = ! give_is_setting_enabled( $val );
|
@@ -923,7 +923,7 @@ function give_logged_in_only( $form_id ) {
|
|
923 |
*/
|
924 |
function give_show_login_register_option( $form_id ) {
|
925 |
|
926 |
-
$show_register_form =
|
927 |
|
928 |
return apply_filters( 'give_show_register_form', $show_register_form, $form_id );
|
929 |
|
68 |
}
|
69 |
|
70 |
if ( empty( $float_labels ) ) {
|
71 |
+
$float_labels = give_get_meta( $args['form_id'], '_give_form_floating_labels', true );
|
72 |
}
|
73 |
|
74 |
if ( empty( $float_labels ) || ( 'global' === $float_labels ) ) {
|
903 |
function give_logged_in_only( $form_id ) {
|
904 |
// If _give_logged_in_only is set to enable then guest can donate from that specific form.
|
905 |
// Otherwise it is member only donation form.
|
906 |
+
$val = give_get_meta( $form_id, '_give_logged_in_only', true );
|
907 |
$val = ! empty( $val ) ? $val : 'enabled';
|
908 |
|
909 |
$ret = ! give_is_setting_enabled( $val );
|
923 |
*/
|
924 |
function give_show_login_register_option( $form_id ) {
|
925 |
|
926 |
+
$show_register_form = give_get_meta( $form_id, '_give_show_register_form', true );
|
927 |
|
928 |
return apply_filters( 'give_show_register_form', $show_register_form, $form_id );
|
929 |
|
includes/forms/template.php
CHANGED
@@ -86,7 +86,7 @@ function give_get_donation_form( $args = array() ) {
|
|
86 |
<?php if ( $form->is_close_donation_form() ) {
|
87 |
|
88 |
// Get Goal thank you message.
|
89 |
-
$goal_achieved_message =
|
90 |
$goal_achieved_message = ! empty( $goal_achieved_message ) ? apply_filters( 'the_content', $goal_achieved_message ) : '';
|
91 |
|
92 |
// Print thank you message.
|
@@ -387,12 +387,12 @@ function give_output_donation_amount_top( $form_id = 0, $args = array() ) {
|
|
387 |
|
388 |
$give_options = give_get_settings();
|
389 |
$variable_pricing = give_has_variable_prices( $form_id );
|
390 |
-
$allow_custom_amount =
|
391 |
$currency_position = isset( $give_options['currency_position'] ) ? $give_options['currency_position'] : 'before';
|
392 |
$symbol = give_currency_symbol( give_get_currency() );
|
393 |
$currency_output = '<span class="give-currency-symbol give-currency-position-' . $currency_position . '">' . $symbol . '</span>';
|
394 |
$default_amount = give_format_amount( give_get_default_form_amount( $form_id ) );
|
395 |
-
$custom_amount_text =
|
396 |
|
397 |
/**
|
398 |
* Fires while displaying donation form, before donation level fields.
|
@@ -484,9 +484,9 @@ function give_output_levels( $form_id ) {
|
|
484 |
|
485 |
//Get variable pricing.
|
486 |
$prices = apply_filters( 'give_form_variable_prices', give_get_variable_prices( $form_id ), $form_id );
|
487 |
-
$display_style =
|
488 |
-
$custom_amount =
|
489 |
-
$custom_amount_text =
|
490 |
if ( empty( $custom_amount_text ) ) {
|
491 |
$custom_amount_text = esc_html__( 'Give a Custom Amount', 'give' );
|
492 |
}
|
@@ -595,7 +595,7 @@ function give_display_checkout_button( $form_id, $args ) {
|
|
595 |
|
596 |
$display_option = ( isset( $args['display_style'] ) && ! empty( $args['display_style'] ) )
|
597 |
? $args['display_style']
|
598 |
-
:
|
599 |
|
600 |
if ( 'button' === $display_option ) {
|
601 |
$display_option = 'modal';
|
@@ -603,7 +603,7 @@ function give_display_checkout_button( $form_id, $args ) {
|
|
603 |
return '';
|
604 |
}
|
605 |
|
606 |
-
$display_label_field =
|
607 |
$display_label = ! empty( $args['continue_button_title'] ) ? $args['continue_button_title'] : ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
608 |
|
609 |
$output = '<button type="button" class="give-btn give-btn-' . $display_option . '">' . $display_label . '</button>';
|
@@ -1473,7 +1473,7 @@ add_action( 'give_payment_mode_select', 'give_payment_mode_select' );
|
|
1473 |
* @return bool
|
1474 |
*/
|
1475 |
function give_terms_agreement( $form_id ) {
|
1476 |
-
$form_option =
|
1477 |
|
1478 |
// Bailout if per form and global term and conditions is not setup.
|
1479 |
if (
|
@@ -1485,8 +1485,8 @@ function give_terms_agreement( $form_id ) {
|
|
1485 |
$edit_term_url = admin_url( 'edit.php?post_type=give_forms&page=give-settings&tab=display§ion=term-and-conditions' );
|
1486 |
|
1487 |
} elseif ( give_is_setting_enabled( $form_option ) ) {
|
1488 |
-
$label = ( $label =
|
1489 |
-
$terms =
|
1490 |
$edit_term_url = admin_url( 'post.php?post=' . $form_id . '&action=edit#form_terms_options' );
|
1491 |
|
1492 |
} else {
|
@@ -1597,7 +1597,7 @@ function give_checkout_submit( $form_id ) {
|
|
1597 |
|
1598 |
give_checkout_hidden_fields( $form_id );
|
1599 |
|
1600 |
-
echo
|
1601 |
|
1602 |
/**
|
1603 |
* Fire after donation form submit.
|
@@ -1613,28 +1613,26 @@ function give_checkout_submit( $form_id ) {
|
|
1613 |
add_action( 'give_donation_form_after_cc_form', 'give_checkout_submit', 9999 );
|
1614 |
|
1615 |
/**
|
1616 |
-
* Give
|
1617 |
*
|
1618 |
-
*
|
1619 |
-
*
|
1620 |
-
* @since 1.0
|
1621 |
*
|
1622 |
* @param int $form_id The form ID.
|
1623 |
*
|
1624 |
* @return string
|
1625 |
*/
|
1626 |
-
function
|
1627 |
|
1628 |
-
$display_label_field =
|
1629 |
$display_label = ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
1630 |
-
ob_start();
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
<?php
|
1637 |
-
return apply_filters( '
|
1638 |
}
|
1639 |
|
1640 |
/**
|
@@ -1689,12 +1687,12 @@ function give_get_form_content_placement( $form_id, $args ) {
|
|
1689 |
|
1690 |
$show_content = ( 'none' !== $args['show_content'] ? $content_placement[ $args['show_content'] ] : '' );
|
1691 |
|
1692 |
-
} elseif ( give_is_setting_enabled(
|
1693 |
-
$show_content =
|
1694 |
|
1695 |
-
} elseif ( 'none' !==
|
1696 |
// Backward compatibility for _give_content_option for v18.
|
1697 |
-
$show_content =
|
1698 |
}
|
1699 |
|
1700 |
return $show_content;
|
@@ -1739,7 +1737,7 @@ add_action( 'give_pre_form_output', 'give_form_content', 10, 2 );
|
|
1739 |
*/
|
1740 |
function give_form_display_content( $form_id, $args ) {
|
1741 |
|
1742 |
-
$content = wpautop(
|
1743 |
$show_content = give_get_form_content_placement( $form_id, $args );
|
1744 |
|
1745 |
if ( give_is_setting_enabled( give_get_option( 'the_content_filter' ) ) ) {
|
86 |
<?php if ( $form->is_close_donation_form() ) {
|
87 |
|
88 |
// Get Goal thank you message.
|
89 |
+
$goal_achieved_message = give_get_meta( $form->ID, '_give_form_goal_achieved_message', true );
|
90 |
$goal_achieved_message = ! empty( $goal_achieved_message ) ? apply_filters( 'the_content', $goal_achieved_message ) : '';
|
91 |
|
92 |
// Print thank you message.
|
387 |
|
388 |
$give_options = give_get_settings();
|
389 |
$variable_pricing = give_has_variable_prices( $form_id );
|
390 |
+
$allow_custom_amount = give_get_meta( $form_id, '_give_custom_amount', true );
|
391 |
$currency_position = isset( $give_options['currency_position'] ) ? $give_options['currency_position'] : 'before';
|
392 |
$symbol = give_currency_symbol( give_get_currency() );
|
393 |
$currency_output = '<span class="give-currency-symbol give-currency-position-' . $currency_position . '">' . $symbol . '</span>';
|
394 |
$default_amount = give_format_amount( give_get_default_form_amount( $form_id ) );
|
395 |
+
$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
|
396 |
|
397 |
/**
|
398 |
* Fires while displaying donation form, before donation level fields.
|
484 |
|
485 |
//Get variable pricing.
|
486 |
$prices = apply_filters( 'give_form_variable_prices', give_get_variable_prices( $form_id ), $form_id );
|
487 |
+
$display_style = give_get_meta( $form_id, '_give_display_style', true );
|
488 |
+
$custom_amount = give_get_meta( $form_id, '_give_custom_amount', true );
|
489 |
+
$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
|
490 |
if ( empty( $custom_amount_text ) ) {
|
491 |
$custom_amount_text = esc_html__( 'Give a Custom Amount', 'give' );
|
492 |
}
|
595 |
|
596 |
$display_option = ( isset( $args['display_style'] ) && ! empty( $args['display_style'] ) )
|
597 |
? $args['display_style']
|
598 |
+
: give_get_meta( $form_id, '_give_payment_display', true );
|
599 |
|
600 |
if ( 'button' === $display_option ) {
|
601 |
$display_option = 'modal';
|
603 |
return '';
|
604 |
}
|
605 |
|
606 |
+
$display_label_field = give_get_meta( $form_id, '_give_reveal_label', true );
|
607 |
$display_label = ! empty( $args['continue_button_title'] ) ? $args['continue_button_title'] : ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
608 |
|
609 |
$output = '<button type="button" class="give-btn give-btn-' . $display_option . '">' . $display_label . '</button>';
|
1473 |
* @return bool
|
1474 |
*/
|
1475 |
function give_terms_agreement( $form_id ) {
|
1476 |
+
$form_option = give_get_meta( $form_id, '_give_terms_option', true );
|
1477 |
|
1478 |
// Bailout if per form and global term and conditions is not setup.
|
1479 |
if (
|
1485 |
$edit_term_url = admin_url( 'edit.php?post_type=give_forms&page=give-settings&tab=display§ion=term-and-conditions' );
|
1486 |
|
1487 |
} elseif ( give_is_setting_enabled( $form_option ) ) {
|
1488 |
+
$label = ( $label = give_get_meta( $form_id, '_give_agree_label', true ) ) ? stripslashes( $label ) : esc_html__( 'Agree to Terms?', 'give' );
|
1489 |
+
$terms = give_get_meta( $form_id, '_give_agree_text', true );
|
1490 |
$edit_term_url = admin_url( 'post.php?post=' . $form_id . '&action=edit#form_terms_options' );
|
1491 |
|
1492 |
} else {
|
1597 |
|
1598 |
give_checkout_hidden_fields( $form_id );
|
1599 |
|
1600 |
+
echo give_get_donation_form_submit_button( $form_id );
|
1601 |
|
1602 |
/**
|
1603 |
* Fire after donation form submit.
|
1613 |
add_action( 'give_donation_form_after_cc_form', 'give_checkout_submit', 9999 );
|
1614 |
|
1615 |
/**
|
1616 |
+
* Give Donation form submit button.
|
1617 |
*
|
1618 |
+
* @since 1.8.8
|
|
|
|
|
1619 |
*
|
1620 |
* @param int $form_id The form ID.
|
1621 |
*
|
1622 |
* @return string
|
1623 |
*/
|
1624 |
+
function give_get_donation_form_submit_button( $form_id ) {
|
1625 |
|
1626 |
+
$display_label_field = give_get_meta( $form_id, '_give_checkout_label', true );
|
1627 |
$display_label = ( ! empty( $display_label_field ) ? $display_label_field : esc_html__( 'Donate Now', 'give' ) );
|
1628 |
+
ob_start();
|
1629 |
+
?>
|
1630 |
+
<div class="give-submit-button-wrap give-clearfix">
|
1631 |
+
<input type="submit" class="give-submit give-btn" id="give-purchase-button" name="give-purchase" value="<?php echo $display_label; ?>"/>
|
1632 |
+
<span class="give-loading-animation"></span>
|
1633 |
+
</div>
|
1634 |
<?php
|
1635 |
+
return apply_filters( 'give_donation_form_submit_button', ob_get_clean(), $form_id );
|
1636 |
}
|
1637 |
|
1638 |
/**
|
1687 |
|
1688 |
$show_content = ( 'none' !== $args['show_content'] ? $content_placement[ $args['show_content'] ] : '' );
|
1689 |
|
1690 |
+
} elseif ( give_is_setting_enabled( give_get_meta( $form_id, '_give_display_content', true ) ) ) {
|
1691 |
+
$show_content = give_get_meta( $form_id, '_give_content_placement', true );
|
1692 |
|
1693 |
+
} elseif ( 'none' !== give_get_meta( $form_id, '_give_content_option', true ) ) {
|
1694 |
// Backward compatibility for _give_content_option for v18.
|
1695 |
+
$show_content = give_get_meta( $form_id, '_give_content_option', true );
|
1696 |
}
|
1697 |
|
1698 |
return $show_content;
|
1737 |
*/
|
1738 |
function give_form_display_content( $form_id, $args ) {
|
1739 |
|
1740 |
+
$content = wpautop( give_get_meta( $form_id, '_give_form_content', true ) );
|
1741 |
$show_content = give_get_form_content_placement( $form_id, $args );
|
1742 |
|
1743 |
if ( give_is_setting_enabled( give_get_option( 'the_content_filter' ) ) ) {
|
includes/gateways/functions.php
CHANGED
@@ -96,7 +96,7 @@ function give_get_default_gateway( $form_id ) {
|
|
96 |
|
97 |
$give_options = give_get_settings();
|
98 |
$default = isset( $give_options['default_gateway'] ) && give_is_gateway_active( $give_options['default_gateway'] ) ? $give_options['default_gateway'] : 'paypal';
|
99 |
-
$form_default =
|
100 |
|
101 |
// Single Form settings varies compared to the Global default settings.
|
102 |
if ( ! empty( $form_default ) &&
|
96 |
|
97 |
$give_options = give_get_settings();
|
98 |
$default = isset( $give_options['default_gateway'] ) && give_is_gateway_active( $give_options['default_gateway'] ) ? $give_options['default_gateway'] : 'paypal';
|
99 |
+
$form_default = give_get_meta( $form_id, '_give_default_gateway', true );
|
100 |
|
101 |
// Single Form settings varies compared to the Global default settings.
|
102 |
if ( ! empty( $form_default ) &&
|
includes/gateways/offline-donations.php
CHANGED
@@ -80,8 +80,8 @@ add_action( 'give_offline_cc_form', 'give_offline_payment_cc_form' );
|
|
80 |
*/
|
81 |
function give_offline_billing_fields( $form_id ) {
|
82 |
//Enable Default CC fields (billing info)
|
83 |
-
$post_offline_cc_fields =
|
84 |
-
$post_offline_customize_option =
|
85 |
|
86 |
$global_offline_cc_fields = give_get_option( 'give_offline_donation_enable_billing_fields' );
|
87 |
|
@@ -155,13 +155,13 @@ add_action( 'give_gateway_offline', 'give_offline_process_payment' );
|
|
155 |
function give_offline_send_donor_instructions( $payment_id = 0 ) {
|
156 |
|
157 |
$payment_data = give_get_payment_meta( $payment_id );
|
158 |
-
$post_offline_customization_option =
|
159 |
|
160 |
//Customize email content depending on whether the single form has been customized
|
161 |
$email_content = give_get_option( 'global_offline_donation_email' );
|
162 |
|
163 |
if ( give_is_setting_enabled( $post_offline_customization_option, 'enabled' ) ) {
|
164 |
-
$email_content =
|
165 |
}
|
166 |
|
167 |
$from_name = give_get_option( 'from_name', wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) );
|
@@ -186,7 +186,7 @@ function give_offline_send_donor_instructions( $payment_id = 0 ) {
|
|
186 |
|
187 |
$subject = give_get_option( 'offline_donation_subject', __( 'Offline Donation Instructions', 'give' ) );
|
188 |
if ( give_is_setting_enabled( $post_offline_customization_option, 'enabled' ) ) {
|
189 |
-
$subject =
|
190 |
}
|
191 |
|
192 |
$subject = apply_filters( 'give_offline_donation_subject', wp_strip_all_tags( $subject ), $payment_id );
|
@@ -516,8 +516,8 @@ function give_get_offline_payment_instruction( $form_id, $wpautop = false ) {
|
|
516 |
return '';
|
517 |
}
|
518 |
|
519 |
-
$post_offline_customization_option =
|
520 |
-
$post_offline_instructions =
|
521 |
$global_offline_instruction = give_get_option( 'global_offline_donation_content' );
|
522 |
$offline_instructions = $global_offline_instruction;
|
523 |
|
@@ -549,7 +549,7 @@ function give_filter_offline_gateway( $gateway_list, $form_id ) {
|
|
549 |
// Show offline payment gateway if enable for new donation form.
|
550 |
( false === strpos( $_SERVER['REQUEST_URI'], '/wp-admin/post-new.php?post_type=give_forms' ) )
|
551 |
&& $form_id
|
552 |
-
&& ! give_is_setting_enabled(
|
553 |
'enabled',
|
554 |
'global',
|
555 |
) )
|
@@ -576,8 +576,8 @@ add_filter( 'give_enabled_payment_gateways', 'give_filter_offline_gateway', 10,
|
|
576 |
* @return void
|
577 |
*/
|
578 |
function _give_customize_offline_donations_on_save_callback( $meta_key, $meta_value, $postid ) {
|
579 |
-
if ( ! give_is_setting_enabled( $meta_value ) && ( 'offline' ===
|
580 |
-
|
581 |
}
|
582 |
}
|
583 |
|
80 |
*/
|
81 |
function give_offline_billing_fields( $form_id ) {
|
82 |
//Enable Default CC fields (billing info)
|
83 |
+
$post_offline_cc_fields = give_get_meta( $form_id, '_give_offline_donation_enable_billing_fields_single', true );
|
84 |
+
$post_offline_customize_option = give_get_meta( $form_id, '_give_customize_offline_donations', true );
|
85 |
|
86 |
$global_offline_cc_fields = give_get_option( 'give_offline_donation_enable_billing_fields' );
|
87 |
|
155 |
function give_offline_send_donor_instructions( $payment_id = 0 ) {
|
156 |
|
157 |
$payment_data = give_get_payment_meta( $payment_id );
|
158 |
+
$post_offline_customization_option = give_get_meta( $payment_data['form_id'], '_give_customize_offline_donations', true );
|
159 |
|
160 |
//Customize email content depending on whether the single form has been customized
|
161 |
$email_content = give_get_option( 'global_offline_donation_email' );
|
162 |
|
163 |
if ( give_is_setting_enabled( $post_offline_customization_option, 'enabled' ) ) {
|
164 |
+
$email_content = give_get_meta( $payment_data['form_id'], '_give_offline_donation_email', true );
|
165 |
}
|
166 |
|
167 |
$from_name = give_get_option( 'from_name', wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) );
|
186 |
|
187 |
$subject = give_get_option( 'offline_donation_subject', __( 'Offline Donation Instructions', 'give' ) );
|
188 |
if ( give_is_setting_enabled( $post_offline_customization_option, 'enabled' ) ) {
|
189 |
+
$subject = give_get_meta( $payment_data['form_id'], '_give_offline_donation_subject', true );
|
190 |
}
|
191 |
|
192 |
$subject = apply_filters( 'give_offline_donation_subject', wp_strip_all_tags( $subject ), $payment_id );
|
516 |
return '';
|
517 |
}
|
518 |
|
519 |
+
$post_offline_customization_option = give_get_meta( $form_id, '_give_customize_offline_donations', true );
|
520 |
+
$post_offline_instructions = give_get_meta( $form_id, '_give_offline_checkout_notes', true );
|
521 |
$global_offline_instruction = give_get_option( 'global_offline_donation_content' );
|
522 |
$offline_instructions = $global_offline_instruction;
|
523 |
|
549 |
// Show offline payment gateway if enable for new donation form.
|
550 |
( false === strpos( $_SERVER['REQUEST_URI'], '/wp-admin/post-new.php?post_type=give_forms' ) )
|
551 |
&& $form_id
|
552 |
+
&& ! give_is_setting_enabled( give_get_meta( $form_id, '_give_customize_offline_donations', true ), array(
|
553 |
'enabled',
|
554 |
'global',
|
555 |
) )
|
576 |
* @return void
|
577 |
*/
|
578 |
function _give_customize_offline_donations_on_save_callback( $meta_key, $meta_value, $postid ) {
|
579 |
+
if ( ! give_is_setting_enabled( $meta_value ) && ( 'offline' === give_get_meta( $postid, '_give_default_gateway', true ) ) ) {
|
580 |
+
give_update_meta( $postid, '_give_default_gateway', 'global' );
|
581 |
}
|
582 |
}
|
583 |
|
includes/gateways/paypal-standard.php
CHANGED
@@ -780,7 +780,7 @@ function give_build_paypal_item_title( $payment_data ) {
|
|
780 |
|
781 |
// Donation given doesn't match selected level (must be a custom amount).
|
782 |
if ( $price_level_amount != give_sanitize_amount( $payment_data['price'] ) ) {
|
783 |
-
$custom_amount_text =
|
784 |
// user custom amount text if any, fallback to default if not.
|
785 |
$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', esc_html__( 'Custom Amount', 'give' ) );
|
786 |
|
@@ -791,7 +791,7 @@ function give_build_paypal_item_title( $payment_data ) {
|
|
791 |
|
792 |
} //Single donation: Custom Amount.
|
793 |
elseif ( give_get_form_price( $form_id ) !== give_sanitize_amount( $payment_data['price'] ) ) {
|
794 |
-
$custom_amount_text =
|
795 |
// user custom amount text if any, fallback to default if not.
|
796 |
$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', esc_html__( 'Custom Amount', 'give' ) );
|
797 |
}
|
780 |
|
781 |
// Donation given doesn't match selected level (must be a custom amount).
|
782 |
if ( $price_level_amount != give_sanitize_amount( $payment_data['price'] ) ) {
|
783 |
+
$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
|
784 |
// user custom amount text if any, fallback to default if not.
|
785 |
$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', esc_html__( 'Custom Amount', 'give' ) );
|
786 |
|
791 |
|
792 |
} //Single donation: Custom Amount.
|
793 |
elseif ( give_get_form_price( $form_id ) !== give_sanitize_amount( $payment_data['price'] ) ) {
|
794 |
+
$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
|
795 |
// user custom amount text if any, fallback to default if not.
|
796 |
$item_name .= ' - ' . give_check_variable( $custom_amount_text, 'empty', esc_html__( 'Custom Amount', 'give' ) );
|
797 |
}
|
includes/install.php
CHANGED
@@ -145,7 +145,7 @@ function give_run_install() {
|
|
145 |
do_action( 'give_upgrades' );
|
146 |
|
147 |
|
148 |
-
if( GIVE_VERSION !== get_option( 'give_version' ) ) {
|
149 |
update_option( 'give_version', GIVE_VERSION );
|
150 |
}
|
151 |
|
@@ -204,12 +204,12 @@ register_activation_hook( GIVE_PLUGIN_FILE, 'give_install' );
|
|
204 |
*
|
205 |
* @since 1.3.5
|
206 |
*
|
207 |
-
* @param int
|
208 |
-
* @param int
|
209 |
-
* @param string $domain
|
210 |
-
* @param string $path
|
211 |
-
* @param int
|
212 |
-
* @param array
|
213 |
*/
|
214 |
function on_create_blog( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
|
215 |
|
@@ -231,8 +231,8 @@ add_action( 'wpmu_new_blog', 'on_create_blog', 10, 6 );
|
|
231 |
*
|
232 |
* @since 1.4.3
|
233 |
*
|
234 |
-
* @param array $tables
|
235 |
-
* @param int
|
236 |
*
|
237 |
* @return array The tables to drop.
|
238 |
*/
|
@@ -347,6 +347,7 @@ add_action( 'admin_init', 'give_install_roles_on_network' );
|
|
347 |
* @return array
|
348 |
*/
|
349 |
function give_get_default_settings() {
|
|
|
350 |
$options = array(
|
351 |
// General.
|
352 |
'base_country' => 'US',
|
@@ -373,6 +374,8 @@ function give_get_default_settings() {
|
|
373 |
'uninstall_on_delete' => 'disabled',
|
374 |
'the_content_filter' => 'enabled',
|
375 |
'scripts_footer' => 'disabled',
|
|
|
|
|
376 |
|
377 |
// Paypal IPN verification.
|
378 |
'paypal_verification' => 'enabled',
|
@@ -397,3 +400,23 @@ function give_get_default_settings() {
|
|
397 |
|
398 |
return $options;
|
399 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
do_action( 'give_upgrades' );
|
146 |
|
147 |
|
148 |
+
if ( GIVE_VERSION !== get_option( 'give_version' ) ) {
|
149 |
update_option( 'give_version', GIVE_VERSION );
|
150 |
}
|
151 |
|
204 |
*
|
205 |
* @since 1.3.5
|
206 |
*
|
207 |
+
* @param int $blog_id The Blog ID created.
|
208 |
+
* @param int $user_id The User ID set as the admin.
|
209 |
+
* @param string $domain The URL.
|
210 |
+
* @param string $path Site Path.
|
211 |
+
* @param int $site_id The Site ID.
|
212 |
+
* @param array $meta Blog Meta.
|
213 |
*/
|
214 |
function on_create_blog( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
|
215 |
|
231 |
*
|
232 |
* @since 1.4.3
|
233 |
*
|
234 |
+
* @param array $tables The tables to drop.
|
235 |
+
* @param int $blog_id The Blog ID being deleted.
|
236 |
*
|
237 |
* @return array The tables to drop.
|
238 |
*/
|
347 |
* @return array
|
348 |
*/
|
349 |
function give_get_default_settings() {
|
350 |
+
|
351 |
$options = array(
|
352 |
// General.
|
353 |
'base_country' => 'US',
|
374 |
'uninstall_on_delete' => 'disabled',
|
375 |
'the_content_filter' => 'enabled',
|
376 |
'scripts_footer' => 'disabled',
|
377 |
+
'agree_to_terms_label' => __( 'Agree to Terms?', 'give' ),
|
378 |
+
'agreement_text' => give_get_default_agreement_text(),
|
379 |
|
380 |
// Paypal IPN verification.
|
381 |
'paypal_verification' => 'enabled',
|
400 |
|
401 |
return $options;
|
402 |
}
|
403 |
+
|
404 |
+
/**
|
405 |
+
* Default terms and conditions.
|
406 |
+
*/
|
407 |
+
function give_get_default_agreement_text() {
|
408 |
+
|
409 |
+
$org_name = get_bloginfo( 'name' );
|
410 |
+
|
411 |
+
$agreement = '<p>Acceptance of any contribution, gift or grant is at the discretion of the ' . $org_name . '. The ' . $org_name . ' will not accept any gift unless it can be used or expended consistently with the purpose and mission of the ' . $org_name . '.</p>
|
412 |
+
<p>No irrevocable gift, whether outright or life-income in character, will be accepted if under any reasonable set of circumstances the gift would jeopardize the donor’s financial security.</p>
|
413 |
+
<p>The ' . $org_name . ' will refrain from providing advice about the tax or other treatment of gifts and will encourage donors to seek guidance from their own professional advisers to assist them in the process of making their donation.</p>
|
414 |
+
<p>The ' . $org_name . ' will accept donations of cash or publicly traded securities. Gifts of in-kind services will be accepted at the discretion of the ' . $org_name . '.</p>
|
415 |
+
<p>Certain other gifts, real property, personal property, in-kind gifts, non-liquid securities, and contributions whose sources are not transparent or whose use is restricted in some manner, must be reviewed prior to acceptance due to the special obligations raised or liabilities they may pose for ' . $org_name . '.</p>
|
416 |
+
<p>The ' . $org_name . ' will provide acknowledgments to donors meeting tax requirements for property received by the charity as a gift. However, except for gifts of cash and publicly traded securities, no value shall be ascribed to any receipt or other form of substantiation of a gift received by ' . $org_name . '.</p>
|
417 |
+
<p>The ' . $org_name . ' will respect the intent of the donor relating to gifts for restricted purposes and those relating to the desire to remain anonymous. With respect to anonymous gifts, the ' . $org_name . ' will restrict information about the donor to only those staff members with a need to know.</p>
|
418 |
+
<p>The ' . $org_name . ' will not compensate, whether through commissions, finders\' fees, or other means, any third party for directing a gift or a donor to the ' . $org_name . '.</p>';
|
419 |
+
|
420 |
+
return apply_filters( 'give_get_default_agreement_text', $agreement, $org_name );
|
421 |
+
|
422 |
+
}
|
includes/misc-functions.php
CHANGED
@@ -95,7 +95,7 @@ function give_get_currencies() {
|
|
95 |
'INR' => __( 'Indian Rupee (₹)', 'give' ),
|
96 |
'TRY' => __( 'Turkish Lira (₺)', 'give' ),
|
97 |
'RIAL' => __( 'Iranian Rial (﷼)', 'give' ),
|
98 |
-
'RUB' => __( 'Russian Rubles (руб)', 'give' )
|
99 |
);
|
100 |
|
101 |
return apply_filters( 'give_currencies', $currencies );
|
@@ -110,30 +110,31 @@ function give_get_currencies() {
|
|
110 |
*
|
111 |
* @since 1.0
|
112 |
*
|
113 |
-
* @param string $currency The currency string
|
|
|
114 |
*
|
115 |
* @return string The symbol to use for the currency
|
116 |
*/
|
117 |
-
function give_currency_symbol( $currency = '' ) {
|
118 |
|
119 |
if ( empty( $currency ) ) {
|
120 |
$currency = give_get_currency();
|
121 |
}
|
122 |
switch ( $currency ) :
|
123 |
case 'GBP' :
|
124 |
-
$symbol = '
|
125 |
break;
|
126 |
case 'BRL' :
|
127 |
-
$symbol = '
|
128 |
break;
|
129 |
case 'EUR' :
|
130 |
-
$symbol = '
|
131 |
break;
|
132 |
case 'NOK' :
|
133 |
-
$symbol = '
|
134 |
break;
|
135 |
case 'INR' :
|
136 |
-
$symbol = '
|
137 |
break;
|
138 |
case 'USD' :
|
139 |
case 'AUD' :
|
@@ -141,53 +142,53 @@ function give_currency_symbol( $currency = '' ) {
|
|
141 |
case 'HKD' :
|
142 |
case 'MXN' :
|
143 |
case 'SGD' :
|
144 |
-
$symbol = '
|
145 |
break;
|
146 |
case 'JPY' :
|
147 |
-
$symbol = '
|
148 |
break;
|
149 |
case 'THB' :
|
150 |
-
$symbol = '
|
151 |
break;
|
152 |
case 'TRY' :
|
153 |
-
$symbol = '
|
154 |
break;
|
155 |
case 'TWD' :
|
156 |
-
$symbol = '
|
157 |
break;
|
158 |
case 'ILS' :
|
159 |
-
$symbol = '
|
160 |
break;
|
161 |
case 'RIAL' :
|
162 |
-
$symbol = '
|
163 |
break;
|
164 |
case 'RUB' :
|
165 |
-
$symbol = '
|
166 |
break;
|
167 |
case 'DKK' :
|
168 |
case 'SEK' :
|
169 |
$symbol = ' kr. ';
|
170 |
break;
|
171 |
case 'PLN' :
|
172 |
-
$symbol = '
|
173 |
break;
|
174 |
case 'PHP' :
|
175 |
-
$symbol = '
|
176 |
break;
|
177 |
case 'MYR' :
|
178 |
-
$symbol = '
|
179 |
break;
|
180 |
case 'HUF' :
|
181 |
-
$symbol = '
|
182 |
break;
|
183 |
case 'CZK' :
|
184 |
-
$symbol = '
|
185 |
break;
|
186 |
case 'KRW' :
|
187 |
-
$symbol = '
|
188 |
break;
|
189 |
case 'ZAR' :
|
190 |
-
$symbol = '
|
191 |
break;
|
192 |
case 'MAD' :
|
193 |
$symbol = '.د.م';
|
@@ -197,16 +198,39 @@ function give_currency_symbol( $currency = '' ) {
|
|
197 |
break;
|
198 |
endswitch;
|
199 |
|
|
|
200 |
|
201 |
return apply_filters( 'give_currency_symbol', $symbol, $currency );
|
202 |
}
|
203 |
|
204 |
|
205 |
/**
|
206 |
-
* Get
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
*
|
208 |
* @since 1.0
|
209 |
-
* @return string $current_url Current page URL
|
210 |
*/
|
211 |
function give_get_current_page_url() {
|
212 |
|
@@ -242,17 +266,17 @@ function give_is_cc_verify_enabled() {
|
|
242 |
|
243 |
$ret = true;
|
244 |
|
245 |
-
|
246 |
-
* Enable if use a single gateway other than PayPal or Manual. We have to assume it accepts credit cards
|
247 |
-
* Enable if using more than one gateway if they
|
248 |
*/
|
249 |
$gateways = give_get_enabled_payment_gateways();
|
250 |
|
251 |
if ( count( $gateways ) == 1 && ! isset( $gateways['paypal'] ) && ! isset( $gateways['manual'] ) ) {
|
252 |
$ret = true;
|
253 |
-
}
|
254 |
$ret = false;
|
255 |
-
}
|
256 |
$ret = false;
|
257 |
}
|
258 |
|
@@ -260,27 +284,27 @@ function give_is_cc_verify_enabled() {
|
|
260 |
}
|
261 |
|
262 |
/**
|
263 |
-
* Retrieve timezone
|
264 |
*
|
265 |
* @since 1.0
|
266 |
-
* @return string $timezone The timezone ID
|
267 |
*/
|
268 |
function give_get_timezone_id() {
|
269 |
|
270 |
-
// if site timezone string exists, return it
|
271 |
if ( $timezone = get_option( 'timezone_string' ) ) {
|
272 |
return $timezone;
|
273 |
}
|
274 |
|
275 |
-
// get UTC offset, if it isn't set return UTC
|
276 |
if ( ! ( $utc_offset = 3600 * get_option( 'gmt_offset', 0 ) ) ) {
|
277 |
return 'UTC';
|
278 |
}
|
279 |
|
280 |
-
// attempt to guess the timezone string from the UTC offset
|
281 |
$timezone = timezone_name_from_abbr( '', $utc_offset );
|
282 |
|
283 |
-
// last try, guess timezone string manually
|
284 |
if ( $timezone === false ) {
|
285 |
|
286 |
$is_dst = date( 'I' );
|
@@ -294,7 +318,7 @@ function give_get_timezone_id() {
|
|
294 |
}
|
295 |
}
|
296 |
|
297 |
-
//
|
298 |
return 'UTC';
|
299 |
}
|
300 |
|
@@ -312,10 +336,10 @@ function give_get_ip() {
|
|
312 |
$ip = '127.0.0.1';
|
313 |
|
314 |
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
|
315 |
-
//check ip from share internet
|
316 |
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
317 |
} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
|
318 |
-
//to check ip is pass from proxy
|
319 |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
320 |
} elseif ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
|
321 |
$ip = $_SERVER['REMOTE_ADDR'];
|
@@ -497,8 +521,8 @@ function give_is_host( $host = false ) {
|
|
497 |
break;
|
498 |
default:
|
499 |
$return = false;
|
500 |
-
}
|
501 |
-
}
|
502 |
|
503 |
return $return;
|
504 |
}
|
@@ -541,7 +565,7 @@ function _give_deprecated_function( $function, $version, $replacement = null, $b
|
|
541 |
|
542 |
$show_errors = current_user_can( 'manage_options' );
|
543 |
|
544 |
-
// Allow plugin to filter the output error trigger
|
545 |
if ( WP_DEBUG && apply_filters( 'give_deprecated_function_trigger_error', $show_errors ) ) {
|
546 |
if ( ! is_null( $replacement ) ) {
|
547 |
trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since Give version %2$s! Use %3$s instead.', 'give' ), $function, $version, $replacement ) );
|
@@ -596,7 +620,7 @@ function give_get_php_arg_separator_output() {
|
|
596 |
function give_month_num_to_name( $n ) {
|
597 |
$timestamp = mktime( 0, 0, 0, $n, 1, 2005 );
|
598 |
|
599 |
-
return date_i18n(
|
600 |
}
|
601 |
|
602 |
|
@@ -621,56 +645,57 @@ function give_is_func_disabled( $function ) {
|
|
621 |
*
|
622 |
* Returns the main Give newsletter form
|
623 |
*/
|
624 |
-
function give_get_newsletter() {
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
|
|
674 |
window.fnames = new Array();
|
675 |
window.ftypes = new Array();
|
676 |
fnames[0] = 'EMAIL';
|
@@ -697,51 +722,12 @@ function give_get_newsletter() { ?>
|
|
697 |
var $mcj = jQuery.noConflict(true);
|
698 |
|
699 |
|
700 |
-
|
701 |
-
|
702 |
|
703 |
<?php }
|
704 |
|
705 |
|
706 |
-
/**
|
707 |
-
* Social Media Like Buttons
|
708 |
-
*
|
709 |
-
* Various social media elements to Give
|
710 |
-
*/
|
711 |
-
function give_social_media_elements() {
|
712 |
-
?>
|
713 |
-
|
714 |
-
<div class="social-items-wrap">
|
715 |
-
|
716 |
-
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fwpgive&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=220596284639969"
|
717 |
-
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;"
|
718 |
-
allowTransparency="true"></iframe>
|
719 |
-
|
720 |
-
<a href="https://twitter.com/givewp" class="twitter-follow-button" data-show-count="false"><?php
|
721 |
-
printf(
|
722 |
-
/* translators: %s: Give twitter user @givewp */
|
723 |
-
esc_html_e( 'Follow %s', 'give' ),
|
724 |
-
'@givewp'
|
725 |
-
);
|
726 |
-
?></a>
|
727 |
-
<script>!function (d, s, id) {
|
728 |
-
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
|
729 |
-
if (!d.getElementById(id)) {
|
730 |
-
js = d.createElement(s);
|
731 |
-
js.id = id;
|
732 |
-
js.src = p + '://platform.twitter.com/widgets.js';
|
733 |
-
fjs.parentNode.insertBefore(js, fjs);
|
734 |
-
}
|
735 |
-
}(document, 'script', 'twitter-wjs');
|
736 |
-
</script>
|
737 |
-
|
738 |
-
</div>
|
739 |
-
<!--/.social-items-wrap -->
|
740 |
-
|
741 |
-
<?php
|
742 |
-
}
|
743 |
-
|
744 |
-
|
745 |
/**
|
746 |
* Create SVG library function
|
747 |
*
|
@@ -754,7 +740,7 @@ function give_svg_icons( $icon ) {
|
|
754 |
// Store your SVGs in an associative array
|
755 |
$svgs = array(
|
756 |
'microphone' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5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xMzcuMS0xOTcsMTM3LjN6Ii8+DQoJPC9nPg0KPC9nPg0KPGcgaWQ9IkxheWVyXzIiPg0KCTxwYXRoIGNsYXNzPSJzdDE5IiBkPSJNMTQ0LjMsODIuNWMtMS45LDkuNi0xMi4xLDQ4LjItNTIuNSw0OC4yYy00OC4yLDAtNzAuMi01Mi4yLTcwLjItNTIuMmMxNi4xLTkuOCw0My40LTUyLDY5LjItNTINCgkJczM0LjksMzEuOSwzNC45LDMxLjlsLTIuMiwzLjVjMCwwLTguNS0xMC43LTI4LTEwLjdTNjIuNiw3NC43LDU0LjQsODJjMCwwLDIwLjUsMzIuMSw0Ni45LDMyLjFjMTQuMiwwLDI5LjUtMTIuMywzOC4xLTMwLjgNCgkJYy0xNSwyLjEtMzQuNyw0LTQ4LjYsMi4yYzAsMC0wLjctMC42LTEtMS4zYy0wLjQtMC45LTAuNS0xLjgtMC41LTEuOGMyNy42LDAsNTEuMy02LjUsNjcuNC0xMi41QzE1Mi4zLDMwLjUsMTE5LDAsNzguNiwwDQoJCUMzNS4yLDAsMCwzNS4yLDAsNzguNmMwLDQzLjQsMzUuMiw3OC42LDc4LjYsNzguNmM0Mi44LDAsNzcuNi0zNC4yLDc4LjYtNzYuOEMxNTQuMiw4MC45LDE0OS43LDgxLjcsMTQ0LjMsODIuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K',
|
@@ -893,13 +879,11 @@ if ( ! function_exists( 'array_column' ) ) {
|
|
893 |
$resultArray[] = $value;
|
894 |
}
|
895 |
}
|
896 |
-
|
897 |
}
|
898 |
|
899 |
return $resultArray;
|
900 |
}
|
901 |
-
|
902 |
-
}
|
903 |
|
904 |
/**
|
905 |
* Determines the receipt visibility status.
|
@@ -1035,7 +1019,7 @@ function give_get_plugins() {
|
|
1035 |
* @return bool
|
1036 |
*/
|
1037 |
function give_is_terms_enabled( $form_id ) {
|
1038 |
-
$form_option =
|
1039 |
|
1040 |
if (
|
1041 |
give_is_setting_enabled( $form_option, 'global' )
|
@@ -1054,6 +1038,7 @@ function give_is_terms_enabled( $form_id ) {
|
|
1054 |
|
1055 |
/**
|
1056 |
* Delete donation stats cache.
|
|
|
1057 |
* @todo Resolve stats cache key naming issue. Currently it is difficult to regenerate cache key.
|
1058 |
*
|
1059 |
* @since 1.8.7
|
@@ -1062,7 +1047,7 @@ function give_is_terms_enabled( $form_id ) {
|
|
1062 |
* Date value should be in today, yesterday, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year.
|
1063 |
* For date value other, all cache will be removed.
|
1064 |
*
|
1065 |
-
* @param array
|
1066 |
*
|
1067 |
* @return WP_Error|bool
|
1068 |
*/
|
@@ -1081,4 +1066,86 @@ function give_delete_donation_stats( $date_range = '', $args = array() ) {
|
|
1081 |
do_action( 'give_delete_donation_stats', $status, $date_range, $args );
|
1082 |
|
1083 |
return $status;
|
1084 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
'INR' => __( 'Indian Rupee (₹)', 'give' ),
|
96 |
'TRY' => __( 'Turkish Lira (₺)', 'give' ),
|
97 |
'RIAL' => __( 'Iranian Rial (﷼)', 'give' ),
|
98 |
+
'RUB' => __( 'Russian Rubles (руб)', 'give' ),
|
99 |
);
|
100 |
|
101 |
return apply_filters( 'give_currencies', $currencies );
|
110 |
*
|
111 |
* @since 1.0
|
112 |
*
|
113 |
+
* @param string $currency The currency string.
|
114 |
+
* @param bool $decode_currency Option to HTML decode the currency symbol.
|
115 |
*
|
116 |
* @return string The symbol to use for the currency
|
117 |
*/
|
118 |
+
function give_currency_symbol( $currency = '', $decode_currency = false ) {
|
119 |
|
120 |
if ( empty( $currency ) ) {
|
121 |
$currency = give_get_currency();
|
122 |
}
|
123 |
switch ( $currency ) :
|
124 |
case 'GBP' :
|
125 |
+
$symbol = '£';
|
126 |
break;
|
127 |
case 'BRL' :
|
128 |
+
$symbol = 'R$';
|
129 |
break;
|
130 |
case 'EUR' :
|
131 |
+
$symbol = '€';
|
132 |
break;
|
133 |
case 'NOK' :
|
134 |
+
$symbol = 'kr.';
|
135 |
break;
|
136 |
case 'INR' :
|
137 |
+
$symbol = '₹';
|
138 |
break;
|
139 |
case 'USD' :
|
140 |
case 'AUD' :
|
142 |
case 'HKD' :
|
143 |
case 'MXN' :
|
144 |
case 'SGD' :
|
145 |
+
$symbol = '$';
|
146 |
break;
|
147 |
case 'JPY' :
|
148 |
+
$symbol = '¥';
|
149 |
break;
|
150 |
case 'THB' :
|
151 |
+
$symbol = '฿';
|
152 |
break;
|
153 |
case 'TRY' :
|
154 |
+
$symbol = '₺';
|
155 |
break;
|
156 |
case 'TWD' :
|
157 |
+
$symbol = 'NT$';
|
158 |
break;
|
159 |
case 'ILS' :
|
160 |
+
$symbol = '₪';
|
161 |
break;
|
162 |
case 'RIAL' :
|
163 |
+
$symbol = '﷼';
|
164 |
break;
|
165 |
case 'RUB' :
|
166 |
+
$symbol = '₽';
|
167 |
break;
|
168 |
case 'DKK' :
|
169 |
case 'SEK' :
|
170 |
$symbol = ' kr. ';
|
171 |
break;
|
172 |
case 'PLN' :
|
173 |
+
$symbol = 'zł';
|
174 |
break;
|
175 |
case 'PHP' :
|
176 |
+
$symbol = '₱';
|
177 |
break;
|
178 |
case 'MYR' :
|
179 |
+
$symbol = 'RM';
|
180 |
break;
|
181 |
case 'HUF' :
|
182 |
+
$symbol = 'Ft';
|
183 |
break;
|
184 |
case 'CZK' :
|
185 |
+
$symbol = 'Kč';
|
186 |
break;
|
187 |
case 'KRW' :
|
188 |
+
$symbol = '₩';
|
189 |
break;
|
190 |
case 'ZAR' :
|
191 |
+
$symbol = 'R';
|
192 |
break;
|
193 |
case 'MAD' :
|
194 |
$symbol = '.د.م';
|
198 |
break;
|
199 |
endswitch;
|
200 |
|
201 |
+
$symbol = ( ! $decode_currency ? $symbol : html_entity_decode( $symbol ) );
|
202 |
|
203 |
return apply_filters( 'give_currency_symbol', $symbol, $currency );
|
204 |
}
|
205 |
|
206 |
|
207 |
/**
|
208 |
+
* Get currency name.
|
209 |
+
*
|
210 |
+
* @since 1.8.8
|
211 |
+
*
|
212 |
+
* @param string $currency_code
|
213 |
+
*
|
214 |
+
* @return string
|
215 |
+
*/
|
216 |
+
function give_get_currency_name( $currency_code ) {
|
217 |
+
$currency_name = '';
|
218 |
+
$currency_names = give_get_currencies();
|
219 |
+
|
220 |
+
if ( $currency_code && array_key_exists( $currency_code, $currency_names ) ) {
|
221 |
+
$currency_name = explode( '(', $currency_names[ $currency_code ] );
|
222 |
+
$currency_name = trim( current( $currency_name ) );
|
223 |
+
}
|
224 |
+
|
225 |
+
return apply_filters( 'give_currency_name', $currency_name, $currency_code );
|
226 |
+
}
|
227 |
+
|
228 |
+
|
229 |
+
/**
|
230 |
+
* Get the current page URL.
|
231 |
*
|
232 |
* @since 1.0
|
233 |
+
* @return string $current_url Current page URL.
|
234 |
*/
|
235 |
function give_get_current_page_url() {
|
236 |
|
266 |
|
267 |
$ret = true;
|
268 |
|
269 |
+
/**
|
270 |
+
* Enable if use a single gateway other than PayPal or Manual. We have to assume it accepts credit cards.
|
271 |
+
* Enable if using more than one gateway if they are not both PayPal and manual, again assuming credit card usage.
|
272 |
*/
|
273 |
$gateways = give_get_enabled_payment_gateways();
|
274 |
|
275 |
if ( count( $gateways ) == 1 && ! isset( $gateways['paypal'] ) && ! isset( $gateways['manual'] ) ) {
|
276 |
$ret = true;
|
277 |
+
} elseif ( count( $gateways ) == 1 ) {
|
278 |
$ret = false;
|
279 |
+
} elseif ( count( $gateways ) == 2 && isset( $gateways['paypal'] ) && isset( $gateways['manual'] ) ) {
|
280 |
$ret = false;
|
281 |
}
|
282 |
|
284 |
}
|
285 |
|
286 |
/**
|
287 |
+
* Retrieve timezone.
|
288 |
*
|
289 |
* @since 1.0
|
290 |
+
* @return string $timezone The timezone ID.
|
291 |
*/
|
292 |
function give_get_timezone_id() {
|
293 |
|
294 |
+
// if site timezone string exists, return it.
|
295 |
if ( $timezone = get_option( 'timezone_string' ) ) {
|
296 |
return $timezone;
|
297 |
}
|
298 |
|
299 |
+
// get UTC offset, if it isn't set return UTC.
|
300 |
if ( ! ( $utc_offset = 3600 * get_option( 'gmt_offset', 0 ) ) ) {
|
301 |
return 'UTC';
|
302 |
}
|
303 |
|
304 |
+
// attempt to guess the timezone string from the UTC offset.
|
305 |
$timezone = timezone_name_from_abbr( '', $utc_offset );
|
306 |
|
307 |
+
// last try, guess timezone string manually.
|
308 |
if ( $timezone === false ) {
|
309 |
|
310 |
$is_dst = date( 'I' );
|
318 |
}
|
319 |
}
|
320 |
|
321 |
+
// Fallback.
|
322 |
return 'UTC';
|
323 |
}
|
324 |
|
336 |
$ip = '127.0.0.1';
|
337 |
|
338 |
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
|
339 |
+
// check ip from share internet
|
340 |
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
341 |
} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
|
342 |
+
// to check ip is pass from proxy
|
343 |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
344 |
} elseif ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
|
345 |
$ip = $_SERVER['REMOTE_ADDR'];
|
521 |
break;
|
522 |
default:
|
523 |
$return = false;
|
524 |
+
}// End switch().
|
525 |
+
}// End if().
|
526 |
|
527 |
return $return;
|
528 |
}
|
565 |
|
566 |
$show_errors = current_user_can( 'manage_options' );
|
567 |
|
568 |
+
// Allow plugin to filter the output error trigger.
|
569 |
if ( WP_DEBUG && apply_filters( 'give_deprecated_function_trigger_error', $show_errors ) ) {
|
570 |
if ( ! is_null( $replacement ) ) {
|
571 |
trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since Give version %2$s! Use %3$s instead.', 'give' ), $function, $version, $replacement ) );
|
620 |
function give_month_num_to_name( $n ) {
|
621 |
$timestamp = mktime( 0, 0, 0, $n, 1, 2005 );
|
622 |
|
623 |
+
return date_i18n( 'M', $timestamp );
|
624 |
}
|
625 |
|
626 |
|
645 |
*
|
646 |
* Returns the main Give newsletter form
|
647 |
*/
|
648 |
+
function give_get_newsletter() {
|
649 |
+
?>
|
650 |
+
|
651 |
+
<p class="newsletter-intro"><?php esc_html_e( 'Be sure to sign up for the Give newsletter below to stay informed of important updates and news.', 'give' ); ?></p>
|
652 |
+
|
653 |
+
<div class="give-newsletter-form-wrap">
|
654 |
+
|
655 |
+
<form action="//givewp.us3.list-manage.com/subscribe/post?u=3ccb75d68bda4381e2f45794c&id=12a081aa13"
|
656 |
+
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate"
|
657 |
+
target="_blank" novalidate>
|
658 |
+
<div class="give-newsletter-confirmation">
|
659 |
+
<p><?php esc_html_e( 'Thanks for Subscribing!', 'give' ); ?> :)</p>
|
660 |
+
</div>
|
661 |
+
|
662 |
+
<table class="form-table give-newsletter-form">
|
663 |
+
<tr valign="middle">
|
664 |
+
<td>
|
665 |
+
<label for="mce-EMAIL"
|
666 |
+
class="screen-reader-text"><?php esc_html_e( 'Email Address (required)', 'give' ); ?></label>
|
667 |
+
<input type="email" name="EMAIL" id="mce-EMAIL"
|
668 |
+
placeholder="<?php esc_attr_e( 'Email Address (required)', 'give' ); ?>"
|
669 |
+
class="required email" value="">
|
670 |
+
</td>
|
671 |
+
<td>
|
672 |
+
<label for="mce-FNAME"
|
673 |
+
class="screen-reader-text"><?php esc_html_e( 'First Name', 'give' ); ?></label>
|
674 |
+
<input type="text" name="FNAME" id="mce-FNAME"
|
675 |
+
placeholder="<?php esc_attr_e( 'First Name', 'give' ); ?>" class="" value="">
|
676 |
+
</td>
|
677 |
+
<td>
|
678 |
+
<label for="mce-LNAME"
|
679 |
+
class="screen-reader-text"><?php esc_html_e( 'Last Name', 'give' ); ?></label>
|
680 |
+
<input type="text" name="LNAME" id="mce-LNAME"
|
681 |
+
placeholder="<?php esc_attr_e( 'Last Name', 'give' ); ?>" class="" value="">
|
682 |
+
</td>
|
683 |
+
<td>
|
684 |
+
<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button"
|
685 |
+
value="<?php esc_attr_e( 'Subscribe', 'give' ); ?>">
|
686 |
+
</td>
|
687 |
+
</tr>
|
688 |
+
</table>
|
689 |
+
</form>
|
690 |
+
|
691 |
+
<div style="position: absolute; left: -5000px;">
|
692 |
+
<input type="text" name="b_3ccb75d68bda4381e2f45794c_12a081aa13" tabindex="-1" value="">
|
693 |
+
</div>
|
694 |
+
|
695 |
+
</div>
|
696 |
+
|
697 |
+
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
|
698 |
+
<script type='text/javascript'>(function ($) {
|
699 |
window.fnames = new Array();
|
700 |
window.ftypes = new Array();
|
701 |
fnames[0] = 'EMAIL';
|
722 |
var $mcj = jQuery.noConflict(true);
|
723 |
|
724 |
|
725 |
+
</script>
|
726 |
+
<!--End mc_embed_signup-->
|
727 |
|
728 |
<?php }
|
729 |
|
730 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
731 |
/**
|
732 |
* Create SVG library function
|
733 |
*
|
740 |
// Store your SVGs in an associative array
|
741 |
$svgs = array(
|
742 |
'microphone' => 'data:image/sv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zcuMS0xOTcsMTM3LjN6Ii8+DQoJPC9nPg0KPC9nPg0KPGcgaWQ9IkxheWVyXzIiPg0KCTxwYXRoIGNsYXNzPSJzdDE5IiBkPSJNMTQ0LjMsODIuNWMtMS45LDkuNi0xMi4xLDQ4LjItNTIuNSw0OC4yYy00OC4yLDAtNzAuMi01Mi4yLTcwLjItNTIuMmMxNi4xLTkuOCw0My40LTUyLDY5LjItNTINCgkJczM0LjksMzEuOSwzNC45LDMxLjlsLTIuMiwzLjVjMCwwLTguNS0xMC43LTI4LTEwLjdTNjIuNiw3NC43LDU0LjQsODJjMCwwLDIwLjUsMzIuMSw0Ni45LDMyLjFjMTQuMiwwLDI5LjUtMTIuMywzOC4xLTMwLjgNCgkJYy0xNSwyLjEtMzQuNyw0LTQ4LjYsMi4yYzAsMC0wLjctMC42LTEtMS4zYy0wLjQtMC45LTAuNS0xLjgtMC41LTEuOGMyNy42LDAsNTEuMy02LjUsNjcuNC0xMi41QzE1Mi4zLDMwLjUsMTE5LDAsNzguNiwwDQoJCUMzNS4yLDAsMCwzNS4yLDAsNzguNmMwLDQzLjQsMzUuMiw3OC42LDc4LjYsNzguNmM0Mi44LDAsNzcuNi0zNC4yLDc4LjYtNzYuOEMxNTQuMiw4MC45LDE0OS43LDgxLjcsMTQ0LjMsODIuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K',
|
879 |
$resultArray[] = $value;
|
880 |
}
|
881 |
}
|
|
|
882 |
}
|
883 |
|
884 |
return $resultArray;
|
885 |
}
|
886 |
+
}// End if().
|
|
|
887 |
|
888 |
/**
|
889 |
* Determines the receipt visibility status.
|
1019 |
* @return bool
|
1020 |
*/
|
1021 |
function give_is_terms_enabled( $form_id ) {
|
1022 |
+
$form_option = give_get_meta( $form_id, '_give_terms_option', true );
|
1023 |
|
1024 |
if (
|
1025 |
give_is_setting_enabled( $form_option, 'global' )
|
1038 |
|
1039 |
/**
|
1040 |
* Delete donation stats cache.
|
1041 |
+
*
|
1042 |
* @todo Resolve stats cache key naming issue. Currently it is difficult to regenerate cache key.
|
1043 |
*
|
1044 |
* @since 1.8.7
|
1047 |
* Date value should be in today, yesterday, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year.
|
1048 |
* For date value other, all cache will be removed.
|
1049 |
*
|
1050 |
+
* @param array $args
|
1051 |
*
|
1052 |
* @return WP_Error|bool
|
1053 |
*/
|
1066 |
do_action( 'give_delete_donation_stats', $status, $date_range, $args );
|
1067 |
|
1068 |
return $status;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
|
1072 |
+
/**
|
1073 |
+
* Get Form/Payment meta.
|
1074 |
+
*
|
1075 |
+
* @since 1.8.8
|
1076 |
+
*
|
1077 |
+
* @param int $id
|
1078 |
+
* @param string $meta_key
|
1079 |
+
* @param bool $single
|
1080 |
+
* @param bool $default
|
1081 |
+
*
|
1082 |
+
* @return mixed
|
1083 |
+
*/
|
1084 |
+
function give_get_meta( $id, $meta_key, $single = false, $default = false ) {
|
1085 |
+
/**
|
1086 |
+
* Filter the meta value
|
1087 |
+
*
|
1088 |
+
* @since 1.8.8
|
1089 |
+
*/
|
1090 |
+
$meta_value = apply_filters(
|
1091 |
+
'give_get_meta',
|
1092 |
+
get_post_meta( $id, $meta_key, $single ),
|
1093 |
+
$id,
|
1094 |
+
$meta_key,
|
1095 |
+
$default
|
1096 |
+
);
|
1097 |
+
|
1098 |
+
if (
|
1099 |
+
( empty( $meta_key ) || empty( $meta_value ) )
|
1100 |
+
&& $default
|
1101 |
+
) {
|
1102 |
+
$meta_value = $default;
|
1103 |
+
}
|
1104 |
+
|
1105 |
+
return $meta_value;
|
1106 |
+
}
|
1107 |
+
|
1108 |
+
/**
|
1109 |
+
* Update Form/Payment meta.
|
1110 |
+
*
|
1111 |
+
* @since 1.8.8
|
1112 |
+
*
|
1113 |
+
* @param int $id
|
1114 |
+
* @param string $meta_key
|
1115 |
+
* @param string $meta_value
|
1116 |
+
* @param string $prev_value
|
1117 |
+
*
|
1118 |
+
* @return mixed
|
1119 |
+
*/
|
1120 |
+
function give_update_meta( $id, $meta_key, $meta_value, $prev_value = '' ) {
|
1121 |
+
$status = update_post_meta( $id, $meta_key, $meta_value, $prev_value );
|
1122 |
+
|
1123 |
+
/**
|
1124 |
+
* Filter the meta value update status
|
1125 |
+
*
|
1126 |
+
* @since 1.8.8
|
1127 |
+
*/
|
1128 |
+
return apply_filters( 'give_update_meta', $status, $id, $meta_key, $meta_value );
|
1129 |
+
}
|
1130 |
+
|
1131 |
+
/**
|
1132 |
+
* Delete Form/Payment meta.
|
1133 |
+
*
|
1134 |
+
* @since 1.8.8
|
1135 |
+
*
|
1136 |
+
* @param int $id
|
1137 |
+
* @param string $meta_key
|
1138 |
+
* @param string $meta_value
|
1139 |
+
*
|
1140 |
+
* @return mixed
|
1141 |
+
*/
|
1142 |
+
function give_delete_meta( $id, $meta_key, $meta_value = '' ) {
|
1143 |
+
$status = delete_post_meta( $id, $meta_key, $meta_value );
|
1144 |
+
|
1145 |
+
/**
|
1146 |
+
* Filter the meta value delete status
|
1147 |
+
*
|
1148 |
+
* @since 1.8.8
|
1149 |
+
*/
|
1150 |
+
return apply_filters( 'give_delete_meta', $status, $id, $meta_key, $meta_value );
|
1151 |
+
}
|
includes/payments/class-give-payment.php
CHANGED
@@ -19,36 +19,36 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
*
|
20 |
* This class is for working with payments in Give.
|
21 |
*
|
22 |
-
* @property int
|
23 |
-
* @property bool
|
24 |
-
* @property string
|
25 |
-
* @property string
|
26 |
-
* @property string
|
27 |
-
* @property string
|
28 |
* @property string|int $form_id
|
29 |
* @property string|int $price_id
|
30 |
* @property string|int $total
|
31 |
* @property string|int $subtotal
|
32 |
* @property string|int $fees
|
33 |
* @property string|int $fees_total
|
34 |
-
* @property string
|
35 |
-
* @property string
|
36 |
-
* @property string
|
37 |
-
* @property string
|
38 |
-
* @property string
|
39 |
-
* @property string
|
40 |
-
* @property string
|
41 |
-
* @property string
|
42 |
-
* @property string
|
43 |
-
* @property string
|
44 |
-
* @property array
|
45 |
-
* @property string
|
46 |
-
* @property string
|
47 |
-
* @property string
|
48 |
-
* @property string
|
49 |
-
* @property string
|
50 |
-
* @property string
|
51 |
-
* @property string
|
52 |
*
|
53 |
* @since 1.5
|
54 |
*/
|
@@ -436,8 +436,8 @@ final class Give_Payment {
|
|
436 |
* @since 1.5
|
437 |
* @access public
|
438 |
*
|
439 |
-
* @param string $key
|
440 |
-
* @param mixed
|
441 |
*/
|
442 |
public function __set( $key, $value ) {
|
443 |
$ignore = array( '_ID' );
|
@@ -507,8 +507,8 @@ final class Give_Payment {
|
|
507 |
*
|
508 |
* @since 1.5
|
509 |
*
|
510 |
-
* @param Give_Payment $this
|
511 |
-
* @param int
|
512 |
*/
|
513 |
do_action( 'give_pre_setup_payment', $this, $payment_id );
|
514 |
|
@@ -570,8 +570,8 @@ final class Give_Payment {
|
|
570 |
*
|
571 |
* @since 1.5
|
572 |
*
|
573 |
-
* @param Give_Payment $this
|
574 |
-
* @param int
|
575 |
*/
|
576 |
do_action( 'give_setup_payment', $this, $payment_id );
|
577 |
|
@@ -709,7 +709,7 @@ final class Give_Payment {
|
|
709 |
|
710 |
$this->update_meta( '_give_payment_meta', $this->payment_meta );
|
711 |
$this->new = true;
|
712 |
-
}
|
713 |
|
714 |
return $this->ID;
|
715 |
|
@@ -821,8 +821,8 @@ final class Give_Payment {
|
|
821 |
}
|
822 |
break;
|
823 |
|
824 |
-
}
|
825 |
-
}
|
826 |
break;
|
827 |
|
828 |
case 'fees':
|
@@ -949,8 +949,8 @@ final class Give_Payment {
|
|
949 |
*/
|
950 |
do_action( 'give_payment_save', $this, $key );
|
951 |
break;
|
952 |
-
}
|
953 |
-
}
|
954 |
|
955 |
if ( 'pending' !== $this->status ) {
|
956 |
|
@@ -997,7 +997,7 @@ final class Give_Payment {
|
|
997 |
|
998 |
$this->pending = array();
|
999 |
$saved = true;
|
1000 |
-
}
|
1001 |
|
1002 |
if ( true === $saved ) {
|
1003 |
$this->setup_payment( $this->ID );
|
@@ -1012,8 +1012,8 @@ final class Give_Payment {
|
|
1012 |
* @since 1.5
|
1013 |
* @access public
|
1014 |
*
|
1015 |
-
* @param int
|
1016 |
-
* @param array $args
|
1017 |
* @param array $options List of donation options
|
1018 |
*
|
1019 |
* @return bool True when successful, false otherwise
|
@@ -1043,7 +1043,7 @@ final class Give_Payment {
|
|
1043 |
|
1044 |
// Deal with variable pricing.
|
1045 |
if ( give_has_variable_prices( $donation->ID ) ) {
|
1046 |
-
$prices = maybe_unserialize(
|
1047 |
$item_price = '';
|
1048 |
// Loop through prices.
|
1049 |
foreach ( $prices as $price ) {
|
@@ -1107,8 +1107,8 @@ final class Give_Payment {
|
|
1107 |
* @since 1.5
|
1108 |
* @access public
|
1109 |
*
|
1110 |
-
* @param int
|
1111 |
-
* @param array $args
|
1112 |
*
|
1113 |
* @return bool If the item was removed or not
|
1114 |
*/
|
@@ -1150,7 +1150,7 @@ final class Give_Payment {
|
|
1150 |
* @access public
|
1151 |
*
|
1152 |
* @param array $args Array of arguments for the fee to add
|
1153 |
-
* @param bool
|
1154 |
*
|
1155 |
* @return bool If the fee was added
|
1156 |
*/
|
@@ -1203,10 +1203,10 @@ final class Give_Payment {
|
|
1203 |
* @since 1.5
|
1204 |
* @access public
|
1205 |
*
|
1206 |
-
* @param string
|
1207 |
-
* @param int|string $value
|
1208 |
-
* @param boolean
|
1209 |
-
*
|
1210 |
*
|
1211 |
* @return boolean If the item is removed
|
1212 |
*/
|
@@ -1324,7 +1324,7 @@ final class Give_Payment {
|
|
1324 |
* @return void
|
1325 |
*/
|
1326 |
private function increase_subtotal( $amount = 0.00 ) {
|
1327 |
-
$amount
|
1328 |
$this->subtotal += $amount;
|
1329 |
|
1330 |
$this->recalculate_total();
|
@@ -1341,7 +1341,7 @@ final class Give_Payment {
|
|
1341 |
* @return void
|
1342 |
*/
|
1343 |
private function decrease_subtotal( $amount = 0.00 ) {
|
1344 |
-
$amount
|
1345 |
$this->subtotal -= $amount;
|
1346 |
|
1347 |
if ( $this->subtotal < 0 ) {
|
@@ -1362,7 +1362,7 @@ final class Give_Payment {
|
|
1362 |
* @return void
|
1363 |
*/
|
1364 |
private function increase_fees( $amount = 0.00 ) {
|
1365 |
-
$amount
|
1366 |
$this->fees_total += $amount;
|
1367 |
|
1368 |
$this->recalculate_total();
|
@@ -1379,7 +1379,7 @@ final class Give_Payment {
|
|
1379 |
* @return void
|
1380 |
*/
|
1381 |
private function decrease_fees( $amount = 0.00 ) {
|
1382 |
-
$amount
|
1383 |
$this->fees_total -= $amount;
|
1384 |
|
1385 |
if ( $this->fees_total < 0 ) {
|
@@ -1435,8 +1435,8 @@ final class Give_Payment {
|
|
1435 |
*
|
1436 |
* @since 1.5
|
1437 |
*
|
1438 |
-
* @param int
|
1439 |
-
* @param string $status
|
1440 |
* @param string $old_status The old status.
|
1441 |
*/
|
1442 |
do_action( 'give_before_payment_status_change', $this->ID, $status, $old_status );
|
@@ -1476,13 +1476,13 @@ final class Give_Payment {
|
|
1476 |
*
|
1477 |
* @since 1.5
|
1478 |
*
|
1479 |
-
* @param int
|
1480 |
-
* @param string $status
|
1481 |
* @param string $old_status The old status.
|
1482 |
*/
|
1483 |
do_action( 'give_update_payment_status', $this->ID, $status, $old_status );
|
1484 |
|
1485 |
-
}
|
1486 |
|
1487 |
return $updated;
|
1488 |
|
@@ -1510,14 +1510,14 @@ final class Give_Payment {
|
|
1510 |
* @since 1.5
|
1511 |
* @access public
|
1512 |
*
|
1513 |
-
* @param string
|
1514 |
-
* @param boolean $single
|
1515 |
*
|
1516 |
* @return mixed The value from the post meta
|
1517 |
*/
|
1518 |
public function get_meta( $meta_key = '_give_payment_meta', $single = true ) {
|
1519 |
|
1520 |
-
$meta =
|
1521 |
|
1522 |
if ( $meta_key === '_give_payment_meta' ) {
|
1523 |
$meta = (array) $meta;
|
@@ -1550,7 +1550,7 @@ final class Give_Payment {
|
|
1550 |
* @since 1.5
|
1551 |
* @access public
|
1552 |
*
|
1553 |
-
* @param string $meta_key
|
1554 |
* @param string $meta_value The meta value
|
1555 |
* @param string $prev_value Previous meta value
|
1556 |
*
|
@@ -1571,8 +1571,8 @@ final class Give_Payment {
|
|
1571 |
|
1572 |
} elseif ( $meta_key == 'email' || $meta_key == '_give_payment_user_email' ) {
|
1573 |
|
1574 |
-
$meta_value = apply_filters( "
|
1575 |
-
|
1576 |
|
1577 |
$current_meta = $this->get_meta();
|
1578 |
$current_meta['user_info']['email'] = $meta_value;
|
@@ -1584,7 +1584,7 @@ final class Give_Payment {
|
|
1584 |
|
1585 |
$meta_value = apply_filters( "give_update_payment_meta_{$meta_key}", $meta_value, $this->ID );
|
1586 |
|
1587 |
-
return
|
1588 |
}
|
1589 |
|
1590 |
/**
|
@@ -1619,11 +1619,11 @@ final class Give_Payment {
|
|
1619 |
*/
|
1620 |
do_action( 'give_pre_refund_payment', $this );
|
1621 |
|
1622 |
-
$
|
1623 |
$decrease_customer_value = apply_filters( 'give_decrease_customer_value_on_refund', true, $this );
|
1624 |
$decrease_purchase_count = apply_filters( 'give_decrease_customer_purchase_count_on_refund', true, $this );
|
1625 |
|
1626 |
-
$this->maybe_alter_stats( $
|
1627 |
$this->delete_sales_logs();
|
1628 |
|
1629 |
// @todo: Refresh only range related stat cache
|
@@ -1674,11 +1674,11 @@ final class Give_Payment {
|
|
1674 |
return;
|
1675 |
}
|
1676 |
|
1677 |
-
$
|
1678 |
-
$
|
1679 |
-
$
|
1680 |
|
1681 |
-
$this->maybe_alter_stats( $
|
1682 |
$this->delete_sales_logs();
|
1683 |
|
1684 |
$this->completed_date = false;
|
@@ -1689,7 +1689,7 @@ final class Give_Payment {
|
|
1689 |
}
|
1690 |
|
1691 |
/**
|
1692 |
-
* Process when a payment moves to cancelled
|
1693 |
*
|
1694 |
* @since 1.5
|
1695 |
* @access private
|
@@ -1711,11 +1711,11 @@ final class Give_Payment {
|
|
1711 |
return;
|
1712 |
}
|
1713 |
|
1714 |
-
$
|
1715 |
-
$
|
1716 |
-
$
|
1717 |
|
1718 |
-
$this->maybe_alter_stats( $
|
1719 |
$this->delete_sales_logs();
|
1720 |
|
1721 |
$this->completed_date = false;
|
@@ -1726,7 +1726,7 @@ final class Give_Payment {
|
|
1726 |
}
|
1727 |
|
1728 |
/**
|
1729 |
-
* Process when a payment moves to revoked
|
1730 |
*
|
1731 |
* @since 1.5
|
1732 |
* @return void
|
@@ -1746,11 +1746,11 @@ final class Give_Payment {
|
|
1746 |
return;
|
1747 |
}
|
1748 |
|
1749 |
-
$
|
1750 |
-
$
|
1751 |
-
$
|
1752 |
|
1753 |
-
$this->maybe_alter_stats( $
|
1754 |
$this->delete_sales_logs();
|
1755 |
|
1756 |
$this->completed_date = false;
|
@@ -1766,8 +1766,8 @@ final class Give_Payment {
|
|
1766 |
* @since 1.5
|
1767 |
* @access private
|
1768 |
*
|
1769 |
-
* @param bool $alter_store_earnings
|
1770 |
-
* @param bool $alter_customer_value
|
1771 |
* @param bool $alter_customer_purchase_count If the method should reduce the customer's purchase count
|
1772 |
*
|
1773 |
* @return void
|
@@ -1882,7 +1882,6 @@ final class Give_Payment {
|
|
1882 |
}
|
1883 |
}
|
1884 |
|
1885 |
-
|
1886 |
return round( floatval( $amount ), give_currency_decimal_filter() );
|
1887 |
}
|
1888 |
|
@@ -2102,7 +2101,7 @@ final class Give_Payment {
|
|
2102 |
}
|
2103 |
}
|
2104 |
}
|
2105 |
-
}
|
2106 |
|
2107 |
return $user_info;
|
2108 |
|
19 |
*
|
20 |
* This class is for working with payments in Give.
|
21 |
*
|
22 |
+
* @property int $ID
|
23 |
+
* @property bool $new
|
24 |
+
* @property string $number
|
25 |
+
* @property string $mode
|
26 |
+
* @property string $key
|
27 |
+
* @property string $form_title
|
28 |
* @property string|int $form_id
|
29 |
* @property string|int $price_id
|
30 |
* @property string|int $total
|
31 |
* @property string|int $subtotal
|
32 |
* @property string|int $fees
|
33 |
* @property string|int $fees_total
|
34 |
+
* @property string $post_status
|
35 |
+
* @property string $date
|
36 |
+
* @property string $postdate
|
37 |
+
* @property string $status
|
38 |
+
* @property string $email
|
39 |
+
* @property string $payment_meta
|
40 |
+
* @property string $customer_id
|
41 |
+
* @property string $completed_date
|
42 |
+
* @property string $currency
|
43 |
+
* @property string $ip
|
44 |
+
* @property array $user_info
|
45 |
+
* @property string $gateway
|
46 |
+
* @property string $user_id
|
47 |
+
* @property string $first_name
|
48 |
+
* @property string $last_name
|
49 |
+
* @property string $parent_payment
|
50 |
+
* @property string $transaction_id
|
51 |
+
* @property string $old_status
|
52 |
*
|
53 |
* @since 1.5
|
54 |
*/
|
436 |
* @since 1.5
|
437 |
* @access public
|
438 |
*
|
439 |
+
* @param string $key The property name
|
440 |
+
* @param mixed $value The value of the property
|
441 |
*/
|
442 |
public function __set( $key, $value ) {
|
443 |
$ignore = array( '_ID' );
|
507 |
*
|
508 |
* @since 1.5
|
509 |
*
|
510 |
+
* @param Give_Payment $this Payment object.
|
511 |
+
* @param int $payment_id The ID of the payment.
|
512 |
*/
|
513 |
do_action( 'give_pre_setup_payment', $this, $payment_id );
|
514 |
|
570 |
*
|
571 |
* @since 1.5
|
572 |
*
|
573 |
+
* @param Give_Payment $this Payment object.
|
574 |
+
* @param int $payment_id The ID of the payment.
|
575 |
*/
|
576 |
do_action( 'give_setup_payment', $this, $payment_id );
|
577 |
|
709 |
|
710 |
$this->update_meta( '_give_payment_meta', $this->payment_meta );
|
711 |
$this->new = true;
|
712 |
+
}// End if().
|
713 |
|
714 |
return $this->ID;
|
715 |
|
821 |
}
|
822 |
break;
|
823 |
|
824 |
+
}// End switch().
|
825 |
+
}// End foreach().
|
826 |
break;
|
827 |
|
828 |
case 'fees':
|
949 |
*/
|
950 |
do_action( 'give_payment_save', $this, $key );
|
951 |
break;
|
952 |
+
}// End switch().
|
953 |
+
}// End foreach().
|
954 |
|
955 |
if ( 'pending' !== $this->status ) {
|
956 |
|
997 |
|
998 |
$this->pending = array();
|
999 |
$saved = true;
|
1000 |
+
}// End if().
|
1001 |
|
1002 |
if ( true === $saved ) {
|
1003 |
$this->setup_payment( $this->ID );
|
1012 |
* @since 1.5
|
1013 |
* @access public
|
1014 |
*
|
1015 |
+
* @param int $form_id The donation form to add
|
1016 |
+
* @param array $args Other arguments to pass to the function
|
1017 |
* @param array $options List of donation options
|
1018 |
*
|
1019 |
* @return bool True when successful, false otherwise
|
1043 |
|
1044 |
// Deal with variable pricing.
|
1045 |
if ( give_has_variable_prices( $donation->ID ) ) {
|
1046 |
+
$prices = maybe_unserialize( give_get_meta( $form_id, '_give_donation_levels', true ) );
|
1047 |
$item_price = '';
|
1048 |
// Loop through prices.
|
1049 |
foreach ( $prices as $price ) {
|
1107 |
* @since 1.5
|
1108 |
* @access public
|
1109 |
*
|
1110 |
+
* @param int $form_id The form ID to remove
|
1111 |
+
* @param array $args Arguments to pass to identify (quantity, amount, price_id)
|
1112 |
*
|
1113 |
* @return bool If the item was removed or not
|
1114 |
*/
|
1150 |
* @access public
|
1151 |
*
|
1152 |
* @param array $args Array of arguments for the fee to add
|
1153 |
+
* @param bool $global
|
1154 |
*
|
1155 |
* @return bool If the fee was added
|
1156 |
*/
|
1203 |
* @since 1.5
|
1204 |
* @access public
|
1205 |
*
|
1206 |
+
* @param string $key The key to remove by
|
1207 |
+
* @param int|string $value The value to search for
|
1208 |
+
* @param boolean $global False - removes the first value it fines,
|
1209 |
+
* True - removes all matches.
|
1210 |
*
|
1211 |
* @return boolean If the item is removed
|
1212 |
*/
|
1324 |
* @return void
|
1325 |
*/
|
1326 |
private function increase_subtotal( $amount = 0.00 ) {
|
1327 |
+
$amount = (float) $amount;
|
1328 |
$this->subtotal += $amount;
|
1329 |
|
1330 |
$this->recalculate_total();
|
1341 |
* @return void
|
1342 |
*/
|
1343 |
private function decrease_subtotal( $amount = 0.00 ) {
|
1344 |
+
$amount = (float) $amount;
|
1345 |
$this->subtotal -= $amount;
|
1346 |
|
1347 |
if ( $this->subtotal < 0 ) {
|
1362 |
* @return void
|
1363 |
*/
|
1364 |
private function increase_fees( $amount = 0.00 ) {
|
1365 |
+
$amount = (float) $amount;
|
1366 |
$this->fees_total += $amount;
|
1367 |
|
1368 |
$this->recalculate_total();
|
1379 |
* @return void
|
1380 |
*/
|
1381 |
private function decrease_fees( $amount = 0.00 ) {
|
1382 |
+
$amount = (float) $amount;
|
1383 |
$this->fees_total -= $amount;
|
1384 |
|
1385 |
if ( $this->fees_total < 0 ) {
|
1435 |
*
|
1436 |
* @since 1.5
|
1437 |
*
|
1438 |
+
* @param int $payment_id Payments ID.
|
1439 |
+
* @param string $status The new status.
|
1440 |
* @param string $old_status The old status.
|
1441 |
*/
|
1442 |
do_action( 'give_before_payment_status_change', $this->ID, $status, $old_status );
|
1476 |
*
|
1477 |
* @since 1.5
|
1478 |
*
|
1479 |
+
* @param int $payment_id Payment ID.
|
1480 |
+
* @param string $status The new status.
|
1481 |
* @param string $old_status The old status.
|
1482 |
*/
|
1483 |
do_action( 'give_update_payment_status', $this->ID, $status, $old_status );
|
1484 |
|
1485 |
+
}// End if().
|
1486 |
|
1487 |
return $updated;
|
1488 |
|
1510 |
* @since 1.5
|
1511 |
* @access public
|
1512 |
*
|
1513 |
+
* @param string $meta_key The Meta Key
|
1514 |
+
* @param boolean $single Return single item or array
|
1515 |
*
|
1516 |
* @return mixed The value from the post meta
|
1517 |
*/
|
1518 |
public function get_meta( $meta_key = '_give_payment_meta', $single = true ) {
|
1519 |
|
1520 |
+
$meta = give_get_meta( $this->ID, $meta_key, $single );
|
1521 |
|
1522 |
if ( $meta_key === '_give_payment_meta' ) {
|
1523 |
$meta = (array) $meta;
|
1550 |
* @since 1.5
|
1551 |
* @access public
|
1552 |
*
|
1553 |
+
* @param string $meta_key The meta key to update
|
1554 |
* @param string $meta_value The meta value
|
1555 |
* @param string $prev_value Previous meta value
|
1556 |
*
|
1571 |
|
1572 |
} elseif ( $meta_key == 'email' || $meta_key == '_give_payment_user_email' ) {
|
1573 |
|
1574 |
+
$meta_value = apply_filters( "give_update_payment_meta_{$meta_key}", $meta_value, $this->ID );
|
1575 |
+
give_update_meta( $this->ID, '_give_payment_user_email', $meta_value );
|
1576 |
|
1577 |
$current_meta = $this->get_meta();
|
1578 |
$current_meta['user_info']['email'] = $meta_value;
|
1584 |
|
1585 |
$meta_value = apply_filters( "give_update_payment_meta_{$meta_key}", $meta_value, $this->ID );
|
1586 |
|
1587 |
+
return give_update_meta( $this->ID, $meta_key, $meta_value, $prev_value );
|
1588 |
}
|
1589 |
|
1590 |
/**
|
1619 |
*/
|
1620 |
do_action( 'give_pre_refund_payment', $this );
|
1621 |
|
1622 |
+
$decrease_earnings = apply_filters( 'give_decrease_store_earnings_on_refund', true, $this );
|
1623 |
$decrease_customer_value = apply_filters( 'give_decrease_customer_value_on_refund', true, $this );
|
1624 |
$decrease_purchase_count = apply_filters( 'give_decrease_customer_purchase_count_on_refund', true, $this );
|
1625 |
|
1626 |
+
$this->maybe_alter_stats( $decrease_earnings, $decrease_customer_value, $decrease_purchase_count );
|
1627 |
$this->delete_sales_logs();
|
1628 |
|
1629 |
// @todo: Refresh only range related stat cache
|
1674 |
return;
|
1675 |
}
|
1676 |
|
1677 |
+
$decrease_earnings = apply_filters( 'give_decrease_earnings_on_pending', true, $this );
|
1678 |
+
$decrease_donor_value = apply_filters( 'give_decrease_donor_value_on_pending', true, $this );
|
1679 |
+
$decrease_donation_count = apply_filters( 'give_decrease_donors_donation_count_on_pending', true, $this );
|
1680 |
|
1681 |
+
$this->maybe_alter_stats( $decrease_earnings, $decrease_donor_value, $decrease_donation_count );
|
1682 |
$this->delete_sales_logs();
|
1683 |
|
1684 |
$this->completed_date = false;
|
1689 |
}
|
1690 |
|
1691 |
/**
|
1692 |
+
* Process when a payment moves to cancelled.
|
1693 |
*
|
1694 |
* @since 1.5
|
1695 |
* @access private
|
1711 |
return;
|
1712 |
}
|
1713 |
|
1714 |
+
$decrease_earnings = apply_filters( 'give_decrease_earnings_on_cancelled', true, $this );
|
1715 |
+
$decrease_donor_value = apply_filters( 'give_decrease_donor_value_on_cancelled', true, $this );
|
1716 |
+
$decrease_donation_count = apply_filters( 'give_decrease_donors_donation_count_on_cancelled', true, $this );
|
1717 |
|
1718 |
+
$this->maybe_alter_stats( $decrease_earnings, $decrease_donor_value, $decrease_donation_count );
|
1719 |
$this->delete_sales_logs();
|
1720 |
|
1721 |
$this->completed_date = false;
|
1726 |
}
|
1727 |
|
1728 |
/**
|
1729 |
+
* Process when a payment moves to revoked.
|
1730 |
*
|
1731 |
* @since 1.5
|
1732 |
* @return void
|
1746 |
return;
|
1747 |
}
|
1748 |
|
1749 |
+
$decrease_earnings = apply_filters( 'give_decrease_earnings_on_revoked', true, $this );
|
1750 |
+
$decrease_donor_value = apply_filters( 'give_decrease_donor_value_on_revoked', true, $this );
|
1751 |
+
$decrease_donation_count = apply_filters( 'give_decrease_donors_donation_count_on_revoked', true, $this );
|
1752 |
|
1753 |
+
$this->maybe_alter_stats( $decrease_earnings, $decrease_donor_value, $decrease_donation_count );
|
1754 |
$this->delete_sales_logs();
|
1755 |
|
1756 |
$this->completed_date = false;
|
1766 |
* @since 1.5
|
1767 |
* @access private
|
1768 |
*
|
1769 |
+
* @param bool $alter_store_earnings If the method should alter the store earnings
|
1770 |
+
* @param bool $alter_customer_value If the method should reduce the customer value
|
1771 |
* @param bool $alter_customer_purchase_count If the method should reduce the customer's purchase count
|
1772 |
*
|
1773 |
* @return void
|
1882 |
}
|
1883 |
}
|
1884 |
|
|
|
1885 |
return round( floatval( $amount ), give_currency_decimal_filter() );
|
1886 |
}
|
1887 |
|
2101 |
}
|
2102 |
}
|
2103 |
}
|
2104 |
+
}// End if().
|
2105 |
|
2106 |
return $user_info;
|
2107 |
|
includes/payments/functions.php
CHANGED
@@ -387,7 +387,7 @@ function give_undo_purchase( $form_id = false, $payment_id ) {
|
|
387 |
give_decrease_earnings( $payment->form_id, $payment->total );
|
388 |
}
|
389 |
|
390 |
-
$maybe_decrease_sales = apply_filters( '
|
391 |
if ( true === $maybe_decrease_sales ) {
|
392 |
// Decrease donation count.
|
393 |
give_decrease_purchase_count( $payment->form_id );
|
@@ -1824,7 +1824,7 @@ function give_get_payment_form_title( $payment_meta, $only_level = false, $separ
|
|
1824 |
$form_title .= '<span class="donation-level-text-wrap">';
|
1825 |
|
1826 |
if ( $price_id == 'custom' ) {
|
1827 |
-
$custom_amount_text =
|
1828 |
$form_title .= ! empty( $custom_amount_text ) ? $custom_amount_text : __( 'Custom Amount', 'give' );
|
1829 |
} else {
|
1830 |
$form_title .= give_get_price_option_name( $form_id, $price_id );
|
@@ -1854,7 +1854,7 @@ function give_get_price_id( $form_id, $price ) {
|
|
1854 |
|
1855 |
if ( give_has_variable_prices( $form_id ) ) {
|
1856 |
|
1857 |
-
$levels = maybe_unserialize(
|
1858 |
|
1859 |
foreach ( $levels as $level ) {
|
1860 |
|
@@ -1884,7 +1884,7 @@ function give_get_price_id( $form_id, $price ) {
|
|
1884 |
* @param array $args Arguments for form dropdown.
|
1885 |
* @param bool $echo This parameter decides if print form dropdown html output or not.
|
1886 |
*
|
1887 |
-
* @return string
|
1888 |
*/
|
1889 |
function give_get_form_dropdown( $args = array(), $echo = false ) {
|
1890 |
$form_dropdown_html = Give()->html->forms_dropdown( $args );
|
387 |
give_decrease_earnings( $payment->form_id, $payment->total );
|
388 |
}
|
389 |
|
390 |
+
$maybe_decrease_sales = apply_filters( 'give_decrease_donation_on_undo', true, $payment, $payment->form_id );
|
391 |
if ( true === $maybe_decrease_sales ) {
|
392 |
// Decrease donation count.
|
393 |
give_decrease_purchase_count( $payment->form_id );
|
1824 |
$form_title .= '<span class="donation-level-text-wrap">';
|
1825 |
|
1826 |
if ( $price_id == 'custom' ) {
|
1827 |
+
$custom_amount_text = give_get_meta( $form_id, '_give_custom_amount_text', true );
|
1828 |
$form_title .= ! empty( $custom_amount_text ) ? $custom_amount_text : __( 'Custom Amount', 'give' );
|
1829 |
} else {
|
1830 |
$form_title .= give_get_price_option_name( $form_id, $price_id );
|
1854 |
|
1855 |
if ( give_has_variable_prices( $form_id ) ) {
|
1856 |
|
1857 |
+
$levels = maybe_unserialize( give_get_meta( $form_id, '_give_donation_levels', true ) );
|
1858 |
|
1859 |
foreach ( $levels as $level ) {
|
1860 |
|
1884 |
* @param array $args Arguments for form dropdown.
|
1885 |
* @param bool $echo This parameter decides if print form dropdown html output or not.
|
1886 |
*
|
1887 |
+
* @return string
|
1888 |
*/
|
1889 |
function give_get_form_dropdown( $args = array(), $echo = false ) {
|
1890 |
$form_dropdown_html = Give()->html->forms_dropdown( $args );
|
includes/post-types.php
CHANGED
@@ -363,7 +363,7 @@ add_action( 'init', 'give_register_post_type_statuses' );
|
|
363 |
function give_updated_messages( $messages ) {
|
364 |
global $post, $post_ID;
|
365 |
|
366 |
-
if ( give_is_setting_enabled( give_get_option( 'forms_singular' ) ) ) {
|
367 |
|
368 |
$messages['give_forms'] = array(
|
369 |
1 => __( 'Form updated.', 'give' ),
|
363 |
function give_updated_messages( $messages ) {
|
364 |
global $post, $post_ID;
|
365 |
|
366 |
+
if ( ! give_is_setting_enabled( give_get_option( 'forms_singular' ) ) ) {
|
367 |
|
368 |
$messages['give_forms'] = array(
|
369 |
1 => __( 'Form updated.', 'give' ),
|
includes/price-functions.php
CHANGED
@@ -42,7 +42,7 @@ function give_has_variable_prices( $form_id = 0 ) {
|
|
42 |
*
|
43 |
* @param int $form_id ID of the Give form
|
44 |
*
|
45 |
-
* @return array Variable prices
|
46 |
*/
|
47 |
function give_get_variable_prices( $form_id = 0 ) {
|
48 |
|
@@ -56,6 +56,28 @@ function give_get_variable_prices( $form_id = 0 ) {
|
|
56 |
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
/**
|
61 |
* Get the default amount for multi-level forms
|
@@ -102,7 +124,7 @@ function give_get_default_form_amount( $form_id ) {
|
|
102 |
|
103 |
} else {
|
104 |
|
105 |
-
$default_amount =
|
106 |
|
107 |
}
|
108 |
|
42 |
*
|
43 |
* @param int $form_id ID of the Give form
|
44 |
*
|
45 |
+
* @return array|bool Variable prices
|
46 |
*/
|
47 |
function give_get_variable_prices( $form_id = 0 ) {
|
48 |
|
56 |
|
57 |
}
|
58 |
|
59 |
+
/**
|
60 |
+
* Retrieves the variable price ids for a form
|
61 |
+
*
|
62 |
+
* @since 1.8.8
|
63 |
+
*
|
64 |
+
* @param int $form_id ID of the Give form
|
65 |
+
*
|
66 |
+
* @return array Variable prices
|
67 |
+
*/
|
68 |
+
function give_get_variable_price_ids( $form_id = 0 ) {
|
69 |
+
if( ! ( $prices = give_get_variable_prices( $form_id ) ) ) {
|
70 |
+
return array();
|
71 |
+
}
|
72 |
+
|
73 |
+
$price_ids = array();
|
74 |
+
foreach ( $prices as $price ){
|
75 |
+
$price_ids[] = $price['_give_id']['level_id'];
|
76 |
+
}
|
77 |
+
|
78 |
+
return $price_ids;
|
79 |
+
}
|
80 |
+
|
81 |
|
82 |
/**
|
83 |
* Get the default amount for multi-level forms
|
124 |
|
125 |
} else {
|
126 |
|
127 |
+
$default_amount = give_get_meta( $form_id, '_give_set_price', true );
|
128 |
|
129 |
}
|
130 |
|
includes/process-donation.php
CHANGED
@@ -33,7 +33,7 @@ function give_process_donation_form() {
|
|
33 |
do_action( 'give_pre_process_donation' );
|
34 |
|
35 |
// Validate the form $_POST data
|
36 |
-
$valid_data =
|
37 |
|
38 |
/**
|
39 |
* Fires after validating donation form fields.
|
@@ -55,7 +55,7 @@ function give_process_donation_form() {
|
|
55 |
}
|
56 |
|
57 |
// Validate the user
|
58 |
-
$user =
|
59 |
|
60 |
if ( false === $valid_data || give_get_errors() || ! $user ) {
|
61 |
if ( $is_ajax ) {
|
@@ -103,7 +103,7 @@ function give_process_donation_form() {
|
|
103 |
$purchase_key = strtolower( md5( $user['user_email'] . date( 'Y-m-d H:i:s' ) . $auth_key . uniqid( 'give', true ) ) );
|
104 |
|
105 |
// Setup donation information
|
106 |
-
$
|
107 |
'price' => $price,
|
108 |
'purchase_key' => $purchase_key,
|
109 |
'user_email' => $user['user_email'],
|
@@ -131,21 +131,21 @@ function give_process_donation_form() {
|
|
131 |
do_action( 'give_checkout_before_gateway', $_POST, $user_info, $valid_data );
|
132 |
|
133 |
// Sanity check for price
|
134 |
-
if ( ! $
|
135 |
// Revert to manual
|
136 |
-
$
|
137 |
$_POST['give-gateway'] = 'manual';
|
138 |
}
|
139 |
|
140 |
/**
|
141 |
-
* Allow the
|
142 |
*
|
143 |
* @since 1.7
|
144 |
*/
|
145 |
-
$
|
146 |
|
147 |
// Setup the data we're storing in the donation session
|
148 |
-
$session_data = $
|
149 |
|
150 |
// Make sure credit card numbers are never stored in sessions
|
151 |
unset( $session_data['card_info']['card_number'] );
|
@@ -155,7 +155,7 @@ function give_process_donation_form() {
|
|
155 |
give_set_purchase_session( $session_data );
|
156 |
|
157 |
// Send info to the gateway for payment processing
|
158 |
-
give_send_to_gateway( $
|
159 |
give_die();
|
160 |
|
161 |
}
|
@@ -166,11 +166,11 @@ add_action( 'wp_ajax_nopriv_give_process_donation', 'give_process_donation_form'
|
|
166 |
|
167 |
|
168 |
/**
|
169 |
-
* Verify that when a logged in user makes a donation that the email address used doesn't belong to a different customer
|
170 |
*
|
171 |
* @since 1.7
|
172 |
*
|
173 |
-
* @param array $valid_data Validated data submitted for the
|
174 |
* @param array $post Additional $_POST data submitted
|
175 |
*
|
176 |
* @return void
|
@@ -191,7 +191,7 @@ function give_check_logged_in_user_for_existing_email( $valid_data, $post ) {
|
|
191 |
$found_customer = new Give_Customer( $submitted_email );
|
192 |
|
193 |
if ( $found_customer->id > 0 ) {
|
194 |
-
give_set_error( 'give-customer-email-exists', sprintf(__('You are logged in as %1$s, and are submitting a donation as %2$s, which is an existing donor. To ensure that the email address is tied to the correct donor, please submit this donation from a logged-out browser, or choose another email address.'), $customer->email, $submitted_email) );
|
195 |
}
|
196 |
}
|
197 |
}
|
@@ -210,7 +210,7 @@ function give_process_form_login() {
|
|
210 |
|
211 |
$is_ajax = isset( $_POST['give_ajax'] );
|
212 |
|
213 |
-
$user_data =
|
214 |
|
215 |
if ( give_get_errors() || $user_data['user_id'] < 1 ) {
|
216 |
if ( $is_ajax ) {
|
@@ -241,13 +241,13 @@ add_action( 'wp_ajax_give_process_donation_login', 'give_process_form_login' );
|
|
241 |
add_action( 'wp_ajax_nopriv_give_process_donation_login', 'give_process_form_login' );
|
242 |
|
243 |
/**
|
244 |
-
* Donation Form Validate Fields
|
245 |
*
|
246 |
* @access private
|
247 |
* @since 1.0
|
248 |
* @return bool|array
|
249 |
*/
|
250 |
-
function
|
251 |
|
252 |
// Check if there is $_POST
|
253 |
if ( empty( $_POST ) ) {
|
@@ -258,14 +258,14 @@ function give_purchase_form_validate_fields() {
|
|
258 |
|
259 |
// Start an array to collect valid data
|
260 |
$valid_data = array(
|
261 |
-
'gateway' =>
|
262 |
'need_new_user' => false, // New user flag
|
263 |
'need_user_login' => false, // Login user flag
|
264 |
'logged_user_data' => array(), // Logged user collected data
|
265 |
'new_user_data' => array(), // New user collected data
|
266 |
'login_user_data' => array(), // Login user collected data
|
267 |
'guest_user_data' => array(), // Guest user collected data
|
268 |
-
'cc_info' =>
|
269 |
);
|
270 |
|
271 |
// Validate Honeypot First
|
@@ -275,7 +275,7 @@ function give_purchase_form_validate_fields() {
|
|
275 |
|
276 |
// Validate agree to terms
|
277 |
if ( give_is_terms_enabled( $form_id ) ) {
|
278 |
-
|
279 |
}
|
280 |
|
281 |
// Stop processing donor registration, if donor registration is optional and donor can do guest checkout.
|
@@ -290,44 +290,44 @@ function give_purchase_form_validate_fields() {
|
|
290 |
}
|
291 |
|
292 |
if ( is_user_logged_in() ) {
|
293 |
-
// Collect logged in user data
|
294 |
-
$valid_data['logged_in_user'] =
|
295 |
} elseif ( isset( $_POST['give-purchase-var'] ) && $_POST['give-purchase-var'] == 'needs-to-register' ) {
|
296 |
-
// Set new user registration as required
|
297 |
$valid_data['need_new_user'] = true;
|
298 |
-
// Validate new user data
|
299 |
-
$valid_data['new_user_data'] =
|
300 |
-
// Check if login validation is needed
|
301 |
} elseif ( isset( $_POST['give-purchase-var'] ) && $_POST['give-purchase-var'] == 'needs-to-login' ) {
|
302 |
-
// Set user login as required
|
303 |
$valid_data['need_user_login'] = true;
|
304 |
-
// Validate users login info
|
305 |
-
$valid_data['login_user_data'] =
|
306 |
} else {
|
307 |
-
// Not registering or logging in, so setup guest user data
|
308 |
-
$valid_data['guest_user_data'] =
|
309 |
}
|
310 |
|
311 |
-
// Return collected data
|
312 |
return $valid_data;
|
313 |
}
|
314 |
|
315 |
/**
|
316 |
* Donation Form Validate Gateway
|
317 |
*
|
318 |
-
* Validate the gateway and donation amount
|
319 |
*
|
320 |
* @access private
|
321 |
* @since 1.0
|
322 |
* @return string
|
323 |
*/
|
324 |
-
function
|
325 |
|
326 |
$form_id = isset( $_REQUEST['give-form-id'] ) ? $_REQUEST['give-form-id'] : 0;
|
327 |
$amount = isset( $_REQUEST['give-amount'] ) ? give_sanitize_amount( $_REQUEST['give-amount'] ) : 0;
|
328 |
$gateway = give_get_default_gateway( $form_id );
|
329 |
|
330 |
-
// Check if a gateway value is present
|
331 |
if ( ! empty( $_REQUEST['give-gateway'] ) ) {
|
332 |
|
333 |
$gateway = sanitize_text_field( $_REQUEST['give-gateway'] );
|
@@ -335,16 +335,16 @@ function give_purchase_form_validate_gateway() {
|
|
335 |
// Is amount being donated in LIVE mode 0.00? If so, error:
|
336 |
if ( $amount == 0 && ! give_is_test_mode() ) {
|
337 |
|
338 |
-
give_set_error( 'invalid_donation_amount',
|
339 |
|
340 |
-
} //
|
341 |
elseif ( ! give_verify_minimum_price() ) {
|
342 |
// translators: %s: minimum donation amount.
|
343 |
give_set_error(
|
344 |
'invalid_donation_minimum',
|
345 |
sprintf(
|
346 |
-
|
347 |
-
|
348 |
give_currency_filter( give_format_amount( give_get_form_minimum_price( $form_id ) ) )
|
349 |
)
|
350 |
);
|
@@ -357,7 +357,7 @@ function give_purchase_form_validate_gateway() {
|
|
357 |
} //Check if this gateway is active.
|
358 |
elseif ( ! give_is_gateway_active( $gateway ) ) {
|
359 |
|
360 |
-
give_set_error( 'invalid_gateway',
|
361 |
|
362 |
}
|
363 |
}
|
@@ -377,10 +377,10 @@ function give_verify_minimum_price() {
|
|
377 |
|
378 |
$amount = give_sanitize_amount( $_REQUEST['give-amount'] );
|
379 |
$form_id = isset( $_REQUEST['give-form-id'] ) ? $_REQUEST['give-form-id'] : 0;
|
380 |
-
$price_id = isset( $_REQUEST['give-price-id'] ) ? $_REQUEST['give-price-id'] :
|
381 |
$variable_prices = give_has_variable_prices( $form_id );
|
382 |
|
383 |
-
if ( $variable_prices &&
|
384 |
|
385 |
$price_level_amount = give_get_price_option_amount( $form_id, $price_id );
|
386 |
|
@@ -389,9 +389,7 @@ function give_verify_minimum_price() {
|
|
389 |
}
|
390 |
}
|
391 |
|
392 |
-
|
393 |
-
|
394 |
-
if ( $minimum > $amount ) {
|
395 |
return false;
|
396 |
}
|
397 |
|
@@ -405,11 +403,11 @@ function give_verify_minimum_price() {
|
|
405 |
* @since 1.0
|
406 |
* @return void
|
407 |
*/
|
408 |
-
function
|
409 |
// Validate agree to terms.
|
410 |
if ( ! isset( $_POST['give_agree_to_terms'] ) || $_POST['give_agree_to_terms'] != 1 ) {
|
411 |
// User did not agree.
|
412 |
-
give_set_error( 'agree_to_terms', apply_filters( 'give_agree_to_terms_text',
|
413 |
}
|
414 |
}
|
415 |
|
@@ -430,11 +428,11 @@ function give_get_required_fields( $form_id ) {
|
|
430 |
$required_fields = array(
|
431 |
'give_email' => array(
|
432 |
'error_id' => 'invalid_email',
|
433 |
-
'error_message' =>
|
434 |
),
|
435 |
'give_first' => array(
|
436 |
'error_id' => 'invalid_first_name',
|
437 |
-
'error_message' =>
|
438 |
),
|
439 |
);
|
440 |
|
@@ -443,23 +441,23 @@ function give_get_required_fields( $form_id ) {
|
|
443 |
if ( $require_address ) {
|
444 |
$required_fields['card_address'] = array(
|
445 |
'error_id' => 'invalid_card_address',
|
446 |
-
'error_message' =>
|
447 |
);
|
448 |
$required_fields['card_zip'] = array(
|
449 |
'error_id' => 'invalid_zip_code',
|
450 |
-
'error_messa
|
33 |
do_action( 'give_pre_process_donation' );
|
34 |
|
35 |
// Validate the form $_POST data
|
36 |
+
$valid_data = give_donation_form_validate_fields();
|
37 |
|
38 |
/**
|
39 |
* Fires after validating donation form fields.
|
55 |
}
|
56 |
|
57 |
// Validate the user
|
58 |
+
$user = give_get_donation_form_user( $valid_data );
|
59 |
|
60 |
if ( false === $valid_data || give_get_errors() || ! $user ) {
|
61 |
if ( $is_ajax ) {
|
103 |
$purchase_key = strtolower( md5( $user['user_email'] . date( 'Y-m-d H:i:s' ) . $auth_key . uniqid( 'give', true ) ) );
|
104 |
|
105 |
// Setup donation information
|
106 |
+
$donation_data = array(
|
107 |
'price' => $price,
|
108 |
'purchase_key' => $purchase_key,
|
109 |
'user_email' => $user['user_email'],
|
131 |
do_action( 'give_checkout_before_gateway', $_POST, $user_info, $valid_data );
|
132 |
|
133 |
// Sanity check for price
|
134 |
+
if ( ! $donation_data['price'] ) {
|
135 |
// Revert to manual
|
136 |
+
$donation_data['gateway'] = 'manual';
|
137 |
$_POST['give-gateway'] = 'manual';
|
138 |
}
|
139 |
|
140 |
/**
|
141 |
+
* Allow the donation data to be modified before it is sent to the gateway.
|
142 |
*
|
143 |
* @since 1.7
|
144 |
*/
|
145 |
+
$donation_data = apply_filters( 'give_donation_data_before_gateway', $donation_data, $valid_data );
|
146 |
|
147 |
// Setup the data we're storing in the donation session
|
148 |
+
$session_data = $donation_data;
|
149 |
|
150 |
// Make sure credit card numbers are never stored in sessions
|
151 |
unset( $session_data['card_info']['card_number'] );
|
155 |
give_set_purchase_session( $session_data );
|
156 |
|
157 |
// Send info to the gateway for payment processing
|
158 |
+
give_send_to_gateway( $donation_data['gateway'], $donation_data );
|
159 |
give_die();
|
160 |
|
161 |
}
|
166 |
|
167 |
|
168 |
/**
|
169 |
+
* Verify that when a logged in user makes a donation that the email address used doesn't belong to a different customer.
|
170 |
*
|
171 |
* @since 1.7
|
172 |
*
|
173 |
+
* @param array $valid_data Validated data submitted for the donation.
|
174 |
* @param array $post Additional $_POST data submitted
|
175 |
*
|
176 |
* @return void
|
191 |
$found_customer = new Give_Customer( $submitted_email );
|
192 |
|
193 |
if ( $found_customer->id > 0 ) {
|
194 |
+
give_set_error( 'give-customer-email-exists', sprintf( __( 'You are logged in as %1$s, and are submitting a donation as %2$s, which is an existing donor. To ensure that the email address is tied to the correct donor, please submit this donation from a logged-out browser, or choose another email address.' ), $customer->email, $submitted_email ) );
|
195 |
}
|
196 |
}
|
197 |
}
|
210 |
|
211 |
$is_ajax = isset( $_POST['give_ajax'] );
|
212 |
|
213 |
+
$user_data = give_donation_form_validate_user_login();
|
214 |
|
215 |
if ( give_get_errors() || $user_data['user_id'] < 1 ) {
|
216 |
if ( $is_ajax ) {
|
241 |
add_action( 'wp_ajax_nopriv_give_process_donation_login', 'give_process_form_login' );
|
242 |
|
243 |
/**
|
244 |
+
* Donation Form Validate Fields.
|
245 |
*
|
246 |
* @access private
|
247 |
* @since 1.0
|
248 |
* @return bool|array
|
249 |
*/
|
250 |
+
function give_donation_form_validate_fields() {
|
251 |
|
252 |
// Check if there is $_POST
|
253 |
if ( empty( $_POST ) ) {
|
258 |
|
259 |
// Start an array to collect valid data
|
260 |
$valid_data = array(
|
261 |
+
'gateway' => give_donation_form_validate_gateway(), // Gateway fallback (amount is validated here)
|
262 |
'need_new_user' => false, // New user flag
|
263 |
'need_user_login' => false, // Login user flag
|
264 |
'logged_user_data' => array(), // Logged user collected data
|
265 |
'new_user_data' => array(), // New user collected data
|
266 |
'login_user_data' => array(), // Login user collected data
|
267 |
'guest_user_data' => array(), // Guest user collected data
|
268 |
+
'cc_info' => give_donation_form_validate_cc(),// Credit card info
|
269 |
);
|
270 |
|
271 |
// Validate Honeypot First
|
275 |
|
276 |
// Validate agree to terms
|
277 |
if ( give_is_terms_enabled( $form_id ) ) {
|
278 |
+
give_donation_form_validate_agree_to_terms();
|
279 |
}
|
280 |
|
281 |
// Stop processing donor registration, if donor registration is optional and donor can do guest checkout.
|
290 |
}
|
291 |
|
292 |
if ( is_user_logged_in() ) {
|
293 |
+
// Collect logged in user data.
|
294 |
+
$valid_data['logged_in_user'] = give_donation_form_validate_logged_in_user();
|
295 |
} elseif ( isset( $_POST['give-purchase-var'] ) && $_POST['give-purchase-var'] == 'needs-to-register' ) {
|
296 |
+
// Set new user registration as required.
|
297 |
$valid_data['need_new_user'] = true;
|
298 |
+
// Validate new user data.
|
299 |
+
$valid_data['new_user_data'] = give_donation_form_validate_new_user();
|
300 |
+
// Check if login validation is needed.
|
301 |
} elseif ( isset( $_POST['give-purchase-var'] ) && $_POST['give-purchase-var'] == 'needs-to-login' ) {
|
302 |
+
// Set user login as required.
|
303 |
$valid_data['need_user_login'] = true;
|
304 |
+
// Validate users login info.
|
305 |
+
$valid_data['login_user_data'] = give_donation_form_validate_user_login();
|
306 |
} else {
|
307 |
+
// Not registering or logging in, so setup guest user data.
|
308 |
+
$valid_data['guest_user_data'] = give_donation_form_validate_guest_user();
|
309 |
}
|
310 |
|
311 |
+
// Return collected data.
|
312 |
return $valid_data;
|
313 |
}
|
314 |
|
315 |
/**
|
316 |
* Donation Form Validate Gateway
|
317 |
*
|
318 |
+
* Validate the gateway and donation amount.
|
319 |
*
|
320 |
* @access private
|
321 |
* @since 1.0
|
322 |
* @return string
|
323 |
*/
|
324 |
+
function give_donation_form_validate_gateway() {
|
325 |
|
326 |
$form_id = isset( $_REQUEST['give-form-id'] ) ? $_REQUEST['give-form-id'] : 0;
|
327 |
$amount = isset( $_REQUEST['give-amount'] ) ? give_sanitize_amount( $_REQUEST['give-amount'] ) : 0;
|
328 |
$gateway = give_get_default_gateway( $form_id );
|
329 |
|
330 |
+
// Check if a gateway value is present.
|
331 |
if ( ! empty( $_REQUEST['give-gateway'] ) ) {
|
332 |
|
333 |
$gateway = sanitize_text_field( $_REQUEST['give-gateway'] );
|
335 |
// Is amount being donated in LIVE mode 0.00? If so, error:
|
336 |
if ( $amount == 0 && ! give_is_test_mode() ) {
|
337 |
|
338 |
+
give_set_error( 'invalid_donation_amount', __( 'Please insert a valid donation amount.', 'give' ) );
|
339 |
|
340 |
+
} // End if().
|
341 |
elseif ( ! give_verify_minimum_price() ) {
|
342 |
// translators: %s: minimum donation amount.
|
343 |
give_set_error(
|
344 |
'invalid_donation_minimum',
|
345 |
sprintf(
|
346 |
+
/* translators: %s: minimum donation amount */
|
347 |
+
__( 'This form has a minimum donation amount of %s.', 'give' ),
|
348 |
give_currency_filter( give_format_amount( give_get_form_minimum_price( $form_id ) ) )
|
349 |
)
|
350 |
);
|
357 |
} //Check if this gateway is active.
|
358 |
elseif ( ! give_is_gateway_active( $gateway ) ) {
|
359 |
|
360 |
+
give_set_error( 'invalid_gateway', __( 'The selected payment gateway is not enabled.', 'give' ) );
|
361 |
|
362 |
}
|
363 |
}
|
377 |
|
378 |
$amount = give_sanitize_amount( $_REQUEST['give-amount'] );
|
379 |
$form_id = isset( $_REQUEST['give-form-id'] ) ? $_REQUEST['give-form-id'] : 0;
|
380 |
+
$price_id = isset( $_REQUEST['give-price-id'] ) ? $_REQUEST['give-price-id'] : null;
|
381 |
$variable_prices = give_has_variable_prices( $form_id );
|
382 |
|
383 |
+
if ( $variable_prices && in_array( $price_id, give_get_variable_price_ids( $form_id ) ) ) {
|
384 |
|
385 |
$price_level_amount = give_get_price_option_amount( $form_id, $price_id );
|
386 |
|
389 |
}
|
390 |
}
|
391 |
|
392 |
+
if ( give_get_form_minimum_price( $form_id ) > $amount ) {
|
|
|
|
|
393 |
return false;
|
394 |
}
|
395 |
|
403 |
* @since 1.0
|
404 |
* @return void
|
405 |
*/
|
406 |
+
function give_donation_form_validate_agree_to_terms() {
|
407 |
// Validate agree to terms.
|
408 |
if ( ! isset( $_POST['give_agree_to_terms'] ) || $_POST['give_agree_to_terms'] != 1 ) {
|
409 |
// User did not agree.
|
410 |
+
give_set_error( 'agree_to_terms', apply_filters( 'give_agree_to_terms_text', __( 'You must agree to the terms and conditions.', 'give' ) ) );
|
411 |
}
|
412 |
}
|
413 |
|
428 |
$required_fields = array(
|
429 |
'give_email' => array(
|
430 |
'error_id' => 'invalid_email',
|
431 |
+
'error_message' => __( 'Please enter a valid email address.', 'give' ),
|
432 |
),
|
433 |
'give_first' => array(
|
434 |
'error_id' => 'invalid_first_name',
|
435 |
+
'error_message' => __( 'Please enter your first name.', 'give' ),
|
436 |
),
|
437 |
);
|
438 |
|
441 |
if ( $require_address ) {
|
442 |
$required_fields['card_address'] = array(
|
443 |
'error_id' => 'invalid_card_address',
|
444 |
+
'error_message' => __( 'Please enter your primary billing address.', 'give' ),
|
445 |
);
|
446 |
$required_fields['card_zip'] = array(
|
447 |
'error_id' => 'invalid_zip_code',
|
|