[
MAINHACK SHELL
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edd.tar
assets/css/minified/edd-archive-page-list-style-grid-rtl.min.css 0000644 00000001424 15150254777 0020652 0 ustar 00 .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article{-js-display:flex;display:flex;padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap{padding:.8em 1.2em;flex:1;align-self:center}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:hidden}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:initial;flex:1}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap{padding:0 1.2em 0} assets/css/minified/edd-archive-page-list-style-grid.min.css 0000644 00000001424 15150254777 0020053 0 ustar 00 .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article{-js-display:flex;display:flex;padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap{padding:.8em 1.2em;flex:1;align-self:center}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:hidden}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:initial;flex:1}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap{padding:0 1.2em 0} assets/css/minified/edd-archive-page-list-style-rtl.min.css 0000644 00000001565 15150254777 0017735 0 ustar 00 .ast-edd-archive-page-list-style .ast-edd-container{-js-display:flex;display:flex;flex-wrap:wrap}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article{-js-display:flex;display:flex;padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap{padding:.8em 1.2em;flex:1;align-self:center}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:hidden}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:initial;flex:1}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap{padding:0 1.2em 0} assets/css/minified/edd-archive-page-list-style.min.css 0000644 00000001565 15150254777 0017136 0 ustar 00 .ast-edd-archive-page-list-style .ast-edd-container{-js-display:flex;display:flex;flex-wrap:wrap}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article{-js-display:flex;display:flex;padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap{padding:.8em 1.2em;flex:1;align-self:center}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:hidden}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image{overflow:initial;flex:1}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap{padding:0 1.2em 0} assets/css/minified/style-rtl.min.css 0000644 00000012355 15150254777 0013700 0 ustar 00 .ast-edd-mini-cart-wrapper{display:inline-block;line-height:4}.ast-edd-mini-cart-wrapper.top .widget_edd_cart_widget{box-shadow:0 -2px 8px 1px rgba(0,0,0,.07)}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget{bottom:100%;top:auto}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:before{bottom:-18px;transform:rotateX(180deg)}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:after{bottom:-12px;transform:rotateX(180deg)}.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget{box-shadow:0 2px 8px 1px rgba(0,0,0,.07)}.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:focus .widget_edd_cart_widget,.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:hover .widget_edd_cart_widget{bottom:100%;top:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget{left:0;right:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:before{left:10px;right:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:after{left:13px;right:auto}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget{left:auto;right:0}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:before{left:auto;right:10px}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:after{left:auto;right:14px}.ast-edd-archive-article.align-right,.edd_download.align-right{text-align:left}.ast-edd-archive-article.align-left,.edd_download.align-left{text-align:right}.ast-edd-archive-article.align-center,.edd_download.align-center{text-align:center}.ast-edd-archive-article.box-shadow-0,.ast-edd-archive-article.box-shadow-0-hover:hover,.edd_download.box-shadow-0,.edd_download.box-shadow-0-hover:hover{transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-1,.ast-edd-archive-article.box-shadow-1-hover:hover,.edd_download.box-shadow-1,.edd_download.box-shadow-1-hover:hover{box-shadow:0 1px 3px -2px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-2,.ast-edd-archive-article.box-shadow-2-hover:hover,.edd_download.box-shadow-2,.edd_download.box-shadow-2-hover:hover{box-shadow:0 3px 6px -5px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-3,.ast-edd-archive-article.box-shadow-3-hover:hover,.edd_download.box-shadow-3,.edd_download.box-shadow-3-hover:hover{box-shadow:0 10px 20px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-4,.ast-edd-archive-article.box-shadow-4-hover:hover,.edd_download.box-shadow-4,.edd_download.box-shadow-4-hover:hover{box-shadow:0 14px 28px rgba(0,0,0,.12),0 10px 10px rgba(0,0,0,.12);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-5,.ast-edd-archive-article.box-shadow-5-hover:hover,.edd_download.box-shadow-5,.edd_download.box-shadow-5-hover:hover{box-shadow:0 20px 30px 0 rgba(0,0,0,.2);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-0-hover:hover,.edd_download.box-shadow-0-hover:hover{box-shadow:none}.ast-edd-archive-article .ast-edd-archive-block-wrap,.ast-edd-archive-article .edd_download_inner,.edd_download .ast-edd-archive-block-wrap,.edd_download .edd_download_inner{padding:0 1.2em}.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover,.edd_download.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap,.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .edd_download_inner,.edd_download.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap,.edd_download.box-shadow-0.box-shadow-0-hover .edd_download_inner{padding:0}.ast-edd-distraction-free-checkout .main-header-bar{padding-top:1em}.ast-edd-distraction-free-checkout .main-header-container{text-align:center;justify-content:center}.ast-edd-distraction-free-checkout .site-branding .site-title{justify-content:center}.ast-edd-site-header-cart .ast-edd-cart-container{transition:all .2s linear}.ast-edd-site-header-cart .ast-edd-cart-container *{transition:all 0s linear}.ast-edd-site-header-cart .ast-edd-header-cart-info-wrap{padding:0 2px;font-weight:600;line-height:2.7;display:inline-block}.ast-edd-site-header-cart span.astra-icon{font-size:20px;font-size:1.3em;font-style:normal;font-weight:400;position:relative;padding:0 2px}.ast-edd-site-header-cart span.astra-icon.no-cart-total:after{display:none}.ast-edd-site-header-cart span.astra-icon:after{content:attr(data-cart-total);position:absolute;font-style:normal;top:-10px;left:-12px;font-weight:700;box-shadow:-1px 1px 3px 0 rgba(0,0,0,.3);font-size:11px;padding-right:2px;padding-left:2px;line-height:17px;letter-spacing:-.5px;height:18px;min-width:18px;border-radius:99px;text-align:center;z-index:3}.ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap,.ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap{line-height:1.8}.ast-edd-site-header-cart.ast-edd-menu-cart-fill span.astra-icon{font-size:1.1em}li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after{padding-right:2px}.ast-header-break-point.ast-header-custom-item-outside .ast-edd-header-cart-info-wrap{display:none} assets/css/minified/style.min.css 0000644 00000012354 15150254777 0013100 0 ustar 00 .ast-edd-mini-cart-wrapper{display:inline-block;line-height:4}.ast-edd-mini-cart-wrapper.top .widget_edd_cart_widget{box-shadow:0 -2px 8px 1px rgba(0,0,0,.07)}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget{bottom:100%;top:auto}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:before{bottom:-18px;transform:rotateX(180deg)}.ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:after{bottom:-12px;transform:rotateX(180deg)}.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget{box-shadow:0 2px 8px 1px rgba(0,0,0,.07)}.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:focus .widget_edd_cart_widget,.ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:hover .widget_edd_cart_widget{bottom:100%;top:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget{right:0;left:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:before{right:10px;left:auto}.ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:after{right:13px;left:auto}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget{right:auto;left:0}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:before{right:auto;left:10px}.ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:after{right:auto;left:14px}.ast-edd-archive-article.align-right,.edd_download.align-right{text-align:right}.ast-edd-archive-article.align-left,.edd_download.align-left{text-align:left}.ast-edd-archive-article.align-center,.edd_download.align-center{text-align:center}.ast-edd-archive-article.box-shadow-0,.ast-edd-archive-article.box-shadow-0-hover:hover,.edd_download.box-shadow-0,.edd_download.box-shadow-0-hover:hover{transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-1,.ast-edd-archive-article.box-shadow-1-hover:hover,.edd_download.box-shadow-1,.edd_download.box-shadow-1-hover:hover{box-shadow:0 1px 3px -2px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-2,.ast-edd-archive-article.box-shadow-2-hover:hover,.edd_download.box-shadow-2,.edd_download.box-shadow-2-hover:hover{box-shadow:0 3px 6px -5px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-3,.ast-edd-archive-article.box-shadow-3-hover:hover,.edd_download.box-shadow-3,.edd_download.box-shadow-3-hover:hover{box-shadow:0 10px 20px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-4,.ast-edd-archive-article.box-shadow-4-hover:hover,.edd_download.box-shadow-4,.edd_download.box-shadow-4-hover:hover{box-shadow:0 14px 28px rgba(0,0,0,.12),0 10px 10px rgba(0,0,0,.12);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-5,.ast-edd-archive-article.box-shadow-5-hover:hover,.edd_download.box-shadow-5,.edd_download.box-shadow-5-hover:hover{box-shadow:0 20px 30px 0 rgba(0,0,0,.2);transition:all .3s ease-in-out}.ast-edd-archive-article.box-shadow-0-hover:hover,.edd_download.box-shadow-0-hover:hover{box-shadow:none}.ast-edd-archive-article .ast-edd-archive-block-wrap,.ast-edd-archive-article .edd_download_inner,.edd_download .ast-edd-archive-block-wrap,.edd_download .edd_download_inner{padding:0 1.2em}.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover,.edd_download.box-shadow-0.box-shadow-0-hover{padding-bottom:0}.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap,.ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .edd_download_inner,.edd_download.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap,.edd_download.box-shadow-0.box-shadow-0-hover .edd_download_inner{padding:0}.ast-edd-distraction-free-checkout .main-header-bar{padding-top:1em}.ast-edd-distraction-free-checkout .main-header-container{text-align:center;justify-content:center}.ast-edd-distraction-free-checkout .site-branding .site-title{justify-content:center}.ast-edd-site-header-cart .ast-edd-cart-container{transition:all .2s linear}.ast-edd-site-header-cart .ast-edd-cart-container *{transition:all 0s linear}.ast-edd-site-header-cart .ast-edd-header-cart-info-wrap{padding:0 2px;font-weight:600;line-height:2.7;display:inline-block}.ast-edd-site-header-cart span.astra-icon{font-size:20px;font-size:1.3em;font-style:normal;font-weight:400;position:relative;padding:0 2px}.ast-edd-site-header-cart span.astra-icon.no-cart-total:after{display:none}.ast-edd-site-header-cart span.astra-icon:after{content:attr(data-cart-total);position:absolute;font-style:normal;top:-10px;right:-12px;font-weight:700;box-shadow:1px 1px 3px 0 rgba(0,0,0,.3);font-size:11px;padding-left:2px;padding-right:2px;line-height:17px;letter-spacing:-.5px;height:18px;min-width:18px;border-radius:99px;text-align:center;z-index:3}.ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap,.ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap{line-height:1.8}.ast-edd-site-header-cart.ast-edd-menu-cart-fill span.astra-icon{font-size:1.1em}li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after{padding-left:2px}.ast-header-break-point.ast-header-custom-item-outside .ast-edd-header-cart-info-wrap{display:none} assets/css/unminified/edd-archive-page-list-style-grid-rtl.css 0000644 00000002104 15150254777 0020427 0 ustar 00 /** * Shop Page List Style */ .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article { -js-display: flex; display: flex; padding-bottom: 0; /** * Shope page list wrapper */ /** * Shope page image and sale wrapper */ /** * No box shadow and no box hover shadow */ } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap { padding: .8em 1.2em; flex: 1; align-self: center; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: hidden; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: initial; flex: 1; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap { padding: 0 1.2em 0; } assets/css/unminified/edd-archive-page-list-style-grid.css 0000644 00000002104 15150254777 0017630 0 ustar 00 /** * Shop Page List Style */ .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article { -js-display: flex; display: flex; padding-bottom: 0; /** * Shope page list wrapper */ /** * Shope page image and sale wrapper */ /** * No box shadow and no box hover shadow */ } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap { padding: .8em 1.2em; flex: 1; align-self: center; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: hidden; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: initial; flex: 1; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap { padding: 0 1.2em 0; } assets/css/unminified/edd-archive-page-list-style-rtl.css 0000644 00000002274 15150254777 0017514 0 ustar 00 /** * Shop Page List Style */ .ast-edd-archive-page-list-style .ast-edd-container { -js-display: flex; display: flex; flex-wrap: wrap; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article { -js-display: flex; display: flex; padding-bottom: 0; /** * Shope page list wrapper */ /** * Shope page image and sale wrapper */ /** * No box shadow and no box hover shadow */ } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap { padding: .8em 1.2em; flex: 1; align-self: center; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: hidden; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: initial; flex: 1; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap { padding: 0 1.2em 0; } assets/css/unminified/edd-archive-page-list-style.css 0000644 00000002274 15150254777 0016715 0 ustar 00 /** * Shop Page List Style */ .ast-edd-archive-page-list-style .ast-edd-container { -js-display: flex; display: flex; flex-wrap: wrap; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article { -js-display: flex; display: flex; padding-bottom: 0; /** * Shope page list wrapper */ /** * Shope page image and sale wrapper */ /** * No box shadow and no box hover shadow */ } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .ast-edd-archive-block-wrap { padding: .8em 1.2em; flex: 1; align-self: center; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: hidden; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article .edd_download_image { overflow: initial; flex: 1; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-page-list-style .ast-edd-container .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap { padding: 0 1.2em 0; } assets/css/unminified/style-rtl.css 0000644 00000014703 15150254777 0013460 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-edd-mini-cart-wrapper { display: inline-block; line-height: 4; } .ast-edd-mini-cart-wrapper.top .widget_edd_cart_widget { box-shadow: 0px -2px 8px 1px rgba(0, 0, 0, 0.07); } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget { bottom: 100%; top: auto; } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:before { bottom: -18px; transform: rotateX(180deg); } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:after { bottom: -12px; transform: rotateX(180deg); } .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget { box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.07); } .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:focus .widget_edd_cart_widget, .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:hover .widget_edd_cart_widget { bottom: 100%; top: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget { left: 0; right: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:before { left: 10px; right: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:after { left: 13px; right: auto; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget { left: auto; right: 0; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:before { left: auto; right: 10px; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:after { left: auto; right: 14px; } /** * EDD archive page content alignment. */ .ast-edd-archive-article, .edd_download { /* Content alignment. */ } .ast-edd-archive-article.align-right, .edd_download.align-right { text-align: left; } .ast-edd-archive-article.align-left, .edd_download.align-left { text-align: right; } .ast-edd-archive-article.align-center, .edd_download.align-center { text-align: center; } .ast-edd-archive-article.box-shadow-0, .ast-edd-archive-article.box-shadow-0-hover:hover, .edd_download.box-shadow-0, .edd_download.box-shadow-0-hover:hover { transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-1, .ast-edd-archive-article.box-shadow-1-hover:hover, .edd_download.box-shadow-1, .edd_download.box-shadow-1-hover:hover { box-shadow: 0 1px 3px -2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-2, .ast-edd-archive-article.box-shadow-2-hover:hover, .edd_download.box-shadow-2, .edd_download.box-shadow-2-hover:hover { box-shadow: 0 3px 6px -5px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-3, .ast-edd-archive-article.box-shadow-3-hover:hover, .edd_download.box-shadow-3, .edd_download.box-shadow-3-hover:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-4, .ast-edd-archive-article.box-shadow-4-hover:hover, .edd_download.box-shadow-4, .edd_download.box-shadow-4-hover:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.12); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-5, .ast-edd-archive-article.box-shadow-5-hover:hover, .edd_download.box-shadow-5, .edd_download.box-shadow-5-hover:hover { box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-0-hover:hover, .edd_download.box-shadow-0-hover:hover { box-shadow: none; } .ast-edd-archive-article .ast-edd-archive-block-wrap, .ast-edd-archive-article .edd_download_inner, .edd_download .ast-edd-archive-block-wrap, .edd_download .edd_download_inner { padding: 0 1.2em; } .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover, .edd_download.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap, .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .edd_download_inner, .edd_download.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap, .edd_download.box-shadow-0.box-shadow-0-hover .edd_download_inner { padding: 0; } /** * Checkout */ .ast-edd-distraction-free-checkout .main-header-bar { padding-top: 1em; } .ast-edd-distraction-free-checkout .main-header-container { text-align: center; justify-content: center; } .ast-edd-distraction-free-checkout .site-branding .site-title { justify-content: center; } .ast-edd-site-header-cart .ast-edd-cart-container { transition: all 0.2s linear; } .ast-edd-site-header-cart .ast-edd-cart-container * { transition: all 0s linear; } .ast-edd-site-header-cart .ast-edd-header-cart-info-wrap { padding: 0 2px; font-weight: 600; line-height: 2.7; display: inline-block; } .ast-edd-site-header-cart span.astra-icon { font-size: 20px; font-size: 1.3em; font-style: normal; font-weight: normal; position: relative; padding: 0 2px; } .ast-edd-site-header-cart span.astra-icon.no-cart-total:after { display: none; } .ast-edd-site-header-cart span.astra-icon:after { content: attr(data-cart-total); position: absolute; font-style: normal; top: -10px; left: -12px; font-weight: bold; box-shadow: -1px 1px 3px 0px rgba(0, 0, 0, 0.3); font-size: 11px; padding-right: 2px; padding-left: 2px; line-height: 17px; letter-spacing: -.5px; height: 18px; min-width: 18px; border-radius: 99px; text-align: center; z-index: 3; } .ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap { line-height: 1.8; } .ast-edd-site-header-cart.ast-edd-menu-cart-fill span.astra-icon { font-size: 1.1em; } li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after { padding-right: 2px; } .ast-header-break-point.ast-header-custom-item-outside .ast-edd-header-cart-info-wrap { display: none; } assets/css/unminified/style.css 0000644 00000014702 15150254777 0012660 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-edd-mini-cart-wrapper { display: inline-block; line-height: 4; } .ast-edd-mini-cart-wrapper.top .widget_edd_cart_widget { box-shadow: 0px -2px 8px 1px rgba(0, 0, 0, 0.07); } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget { bottom: 100%; top: auto; } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:before { bottom: -18px; transform: rotateX(180deg); } .ast-edd-mini-cart-wrapper.top .ast-edd-site-header-cart .widget_edd_cart_widget:after { bottom: -12px; transform: rotateX(180deg); } .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget { box-shadow: 0px 2px 8px 1px rgba(0, 0, 0, 0.07); } .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:focus .widget_edd_cart_widget, .ast-edd-mini-cart-wrapper.bottom .widget_edd_cart_widget:hover .widget_edd_cart_widget { bottom: 100%; top: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget { right: 0; left: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:before { right: 10px; left: auto; } .ast-edd-mini-cart-wrapper.left .ast-edd-site-header-cart .widget_edd_cart_widget:after { right: 13px; left: auto; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget { right: auto; left: 0; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:before { right: auto; left: 10px; } .ast-edd-mini-cart-wrapper.right .ast-edd-site-header-cart .widget_edd_cart_widget:after { right: auto; left: 14px; } /** * EDD archive page content alignment. */ .ast-edd-archive-article, .edd_download { /* Content alignment. */ } .ast-edd-archive-article.align-right, .edd_download.align-right { text-align: right; } .ast-edd-archive-article.align-left, .edd_download.align-left { text-align: left; } .ast-edd-archive-article.align-center, .edd_download.align-center { text-align: center; } .ast-edd-archive-article.box-shadow-0, .ast-edd-archive-article.box-shadow-0-hover:hover, .edd_download.box-shadow-0, .edd_download.box-shadow-0-hover:hover { transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-1, .ast-edd-archive-article.box-shadow-1-hover:hover, .edd_download.box-shadow-1, .edd_download.box-shadow-1-hover:hover { box-shadow: 0 1px 3px -2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-2, .ast-edd-archive-article.box-shadow-2-hover:hover, .edd_download.box-shadow-2, .edd_download.box-shadow-2-hover:hover { box-shadow: 0 3px 6px -5px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-3, .ast-edd-archive-article.box-shadow-3-hover:hover, .edd_download.box-shadow-3, .edd_download.box-shadow-3-hover:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-4, .ast-edd-archive-article.box-shadow-4-hover:hover, .edd_download.box-shadow-4, .edd_download.box-shadow-4-hover:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.12); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-5, .ast-edd-archive-article.box-shadow-5-hover:hover, .edd_download.box-shadow-5, .edd_download.box-shadow-5-hover:hover { box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2); transition: all 300ms ease-in-out; } .ast-edd-archive-article.box-shadow-0-hover:hover, .edd_download.box-shadow-0-hover:hover { box-shadow: none; } .ast-edd-archive-article .ast-edd-archive-block-wrap, .ast-edd-archive-article .edd_download_inner, .edd_download .ast-edd-archive-block-wrap, .edd_download .edd_download_inner { padding: 0 1.2em; } .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover, .edd_download.box-shadow-0.box-shadow-0-hover { padding-bottom: 0; } .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap, .ast-edd-archive-article.box-shadow-0.box-shadow-0-hover .edd_download_inner, .edd_download.box-shadow-0.box-shadow-0-hover .ast-edd-archive-block-wrap, .edd_download.box-shadow-0.box-shadow-0-hover .edd_download_inner { padding: 0; } /** * Checkout */ .ast-edd-distraction-free-checkout .main-header-bar { padding-top: 1em; } .ast-edd-distraction-free-checkout .main-header-container { text-align: center; justify-content: center; } .ast-edd-distraction-free-checkout .site-branding .site-title { justify-content: center; } .ast-edd-site-header-cart .ast-edd-cart-container { transition: all 0.2s linear; } .ast-edd-site-header-cart .ast-edd-cart-container * { transition: all 0s linear; } .ast-edd-site-header-cart .ast-edd-header-cart-info-wrap { padding: 0 2px; font-weight: 600; line-height: 2.7; display: inline-block; } .ast-edd-site-header-cart span.astra-icon { font-size: 20px; font-size: 1.3em; font-style: normal; font-weight: normal; position: relative; padding: 0 2px; } .ast-edd-site-header-cart span.astra-icon.no-cart-total:after { display: none; } .ast-edd-site-header-cart span.astra-icon:after { content: attr(data-cart-total); position: absolute; font-style: normal; top: -10px; right: -12px; font-weight: bold; box-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.3); font-size: 11px; padding-left: 2px; padding-right: 2px; line-height: 17px; letter-spacing: -.5px; height: 18px; min-width: 18px; border-radius: 99px; text-align: center; z-index: 3; } .ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap { line-height: 1.8; } .ast-edd-site-header-cart.ast-edd-menu-cart-fill span.astra-icon { font-size: 1.1em; } li.edd-custom-menu-item .ast-edd-site-header-cart span.astra-icon:after { padding-left: 2px; } .ast-header-break-point.ast-header-custom-item-outside .ast-edd-header-cart-info-wrap { display: none; } assets/js/minified/customizer-preview.min.js 0000644 00000020641 15150254777 0015271 0 ustar 00 !function(e){wp.customize("astra-settings[edd-archive-product-align]",function(d){d.bind(function(d){var t=e(document).find(".ast-edd-archive-article, .edd_download");t.removeClass("align-left align-right align-center"),t.addClass(d)})}),wp.customize("astra-settings[edd-archive-product-shadow]",function(d){d.bind(function(d){var t=e(document).find(".ast-edd-archive-article, .edd_download");d=5<d?5:d<0?0:d,t.removeClass("box-shadow-0 box-shadow-1 box-shadow-2 box-shadow-3 box-shadow-4 box-shadow-5"),t.addClass("box-shadow-"+d)})}),wp.customize("astra-settings[edd-archive-product-shadow-hover]",function(d){d.bind(function(d){var t=e(document).find(".ast-edd-archive-article, .edd_download");d=5<d?5:d<0?0:d,t.removeClass("box-shadow-0-hover box-shadow-1-hover box-shadow-2-hover box-shadow-3-hover box-shadow-4-hover box-shadow-5-hover"),t.addClass("box-shadow-"+d+"-hover")})}),wp.customize("astra-settings[edd-archive-button-v-padding]",function(d){d.bind(function(d){var t=(t=(t="")+".ast-edd-archive-block-wrap .edd-add-to-cart, .ast-edd-archive-block-wrap .edd_go_to_checkout, .ast-edd-archive-block-wrap .ast-edd-variable-btn, .edd_downloads_list .edd-add-to-cart, .edd_downloads_list .edd_go_to_checkout, .edd_downloads_list .ast-edd-variable-btn{"+("padding-top:"+d+"px;"))+("padding-bottom:"+d+"px;")+"}";astra_add_dynamic_css("edd-archive-button-v-padding",t)})}),wp.customize("astra-settings[edd-archive-button-h-padding]",function(d){d.bind(function(d){var t=(t=(t="")+".ast-edd-archive-block-wrap .edd-add-to-cart, .ast-edd-archive-block-wrap .edd_go_to_checkout, .ast-edd-archive-block-wrap .ast-edd-variable-btn, .edd_downloads_list .edd-add-to-cart, .edd_downloads_list .edd_go_to_checkout, .edd_downloads_list .ast-edd-variable-btn{"+("padding-left:"+d+"px;"))+("padding-right:"+d+"px;")+"}";astra_add_dynamic_css("edd-archive-button-h-padding",t)})}),wp.customize("astra-settings[edd-checkout-content-max-width]",function(d){d.bind(function(d){var t=(t="@media all and ( min-width: 769px ) {")+(".edd-checkout #edd_checkout_wrap{ max-width: "+parseInt(d)+"px; margin: 0 auto; } ")+"}";astra_add_dynamic_css("edd-checkout-content-max-width",t)})}),wp.customize("astra-settings[edd-header-cart-icon-style]",function(d){d.bind(function(d){var t=e(document).find(".ast-edd-site-header-cart");t.removeClass("ast-edd-menu-cart-fill ast-edd-menu-cart-outline"),t.addClass("ast-edd-menu-cart-"+d);astra_add_dynamic_css("edd-header-cart-icon-style",".ast-edd-site-header-cart a, .ast-edd-site-header-cart a *{ transition: all 0s; } ")})}),wp.customize("astra-settings[edd-header-cart-product-count-color]",function(d){d.bind(function(d){astra_add_dynamic_css("edd-header-cart-product-count-color",".ast-edd-site-header-cart .ast-addon-cart-wrap span.astra-icon:after { color: "+d+"; } ")})}),wp.customize("astra-settings[edd-header-cart-icon-color]",function(d){d.bind(function(d){""!=d&&(d=jQuery(".ast-edd-site-header-cart").hasClass("ast-edd-menu-cart-outline")?".ast-edd-menu-cart-outline .ast-addon-cart-wrap { border: 1px solid "+d+"; color: "+d+"; background: #ffffff;}":".ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-edd-cart-menu-wrap .count, .ast-edd-menu-cart-fill .ast-addon-cart-wrap, .ast-edd-menu-cart-fill .ast-addon-cart-wrap .ast-edd-header-cart-info-wrap, .ast-edd-menu-cart-fill .ast-addon-cart-wrap .ast-icon-shopping-cart { background-color: "+d+"; color: #ffffff }",astra_add_dynamic_css("primary-toggle-button-color",d)),wp.customize.preview.send("refresh")})}),astra_css("astra-settings[edd-header-cart-border-width]","border-width",".ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-theme-transparent-header .ast-edd-menu-cart-outline .ast-addon-cart-wrap","px"),wp.customize("astra-settings[edd-header-cart-icon-radius]",function(d){d.bind(function(d){d=".ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap{ border-radius: "+parseInt(d)+"px } ";astra_add_dynamic_css("edd-header-cart-icon-radius",d)})}),wp.customize("astra-settings[edd-checkout-content-width]",function(d){d.bind(function(d){var t="",e=wp.customize("astra-settings[edd-checkout-content-max-width]").get();"custom"===d&&void 0!==astAddonTabletBreakpoint.value&&(t=(t=t+("@media (min-width: "+astAddonTabletBreakpoint.value)+"px) {.edd-checkout #edd_checkout_wrap {")+"max-width: "+e+"px;margin: 0 auto;} } "),astra_add_dynamic_css("edd-checkout-content-width",t)})}),astra_generate_outside_font_family_css("astra-settings[font-family-edd-product-title]",".single-download .entry-title"),astra_css("astra-settings[font-weight-edd-product-title]","font-weight",".single-download .entry-title"),astra_responsive_font_size("astra-settings[font-size-edd-product-title]",".single-download .entry-title"),astra_font_extras_css("font-extras-edd-product-title",".single-download .entry-title"),astra_generate_outside_font_family_css("astra-settings[font-family-edd-product-content]",".single-download .entry-content"),astra_css("astra-settings[font-weight-edd-product-content]","font-weight",".single-download .entry-content"),astra_responsive_font_size("astra-settings[font-size-edd-product-content]",".single-download .entry-content"),astra_font_extras_css("font-extras-edd-product-content",".single-download .entry-content"),astra_generate_outside_font_family_css("astra-settings[font-family-edd-archive-product-title]",".ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a"),astra_css("astra-settings[font-weight-edd-archive-product-title]","font-weight",".ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a"),astra_responsive_font_size("astra-settings[font-size-edd-archive-product-title]",".ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a"),astra_font_extras_css("font-extras-edd-archive-product-title",".ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a"),astra_generate_outside_font_family_css("astra-settings[font-family-edd-archive-product-price]",".ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options"),astra_css("astra-settings[font-weight-edd-archive-product-price]","font-weight",".ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options"),astra_responsive_font_size("astra-settings[font-size-edd-archive-product-price]",".ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options"),astra_font_extras_css("font-extras-edd-archive-product-price",".ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options"),astra_generate_outside_font_family_css("astra-settings[font-family-edd-archive-product-content]",".ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p"),astra_css("astra-settings[font-weight-edd-archive-product-content]","font-weight",".ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p"),astra_responsive_font_size("astra-settings[font-size-edd-archive-product-content]",".ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p"),astra_font_extras_css("font-extras-edd-archive-product-content",".ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p"),astra_css("astra-settings[edd-single-product-title-color]","color",".single-download .entry-title"),astra_css("astra-settings[edd-single-product-content-color]","color",".single-download .entry-content"),astra_css("astra-settings[edd-single-product-navigation-color]","color",".single-download .post-navigation a"),astra_css("astra-settings[edd-archive-product-title-color]","color",".ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a"),astra_css("astra-settings[edd-archive-product-price-color]","color",".ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options"),astra_css("astra-settings[edd-archive-product-content-color]","color",".ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p")}(jQuery); assets/js/unminified/customizer-preview.js 0000644 00000026616 15150254777 0015062 0 ustar 00 /** * This file adds some LIVE to the Customizer live preview. To leverage * this, set your custom settings to 'postMessage' and then add your handling * here. Your javascript should grab settings from customizer controls, and * then make any necessary changes to the page using jQuery. * * @package Astra Addon * @since 1.6.10 */ ( function( $ ) { /** * EDD Archive: Content Alignment */ wp.customize( 'astra-settings[edd-archive-product-align]', function( setting ) { setting.bind( function( alignment ) { var products = $(document).find('.ast-edd-archive-article, .edd_download'); products.removeClass('align-left align-right align-center'); products.addClass( alignment ); } ); } ); /** * Shop: Box Shadow */ wp.customize( 'astra-settings[edd-archive-product-shadow]', function( setting ) { setting.bind( function( product_shadow ) { var products = $(document).find('.ast-edd-archive-article, .edd_download'); product_shadow = product_shadow > 5 ? 5 : ( product_shadow < 0 ? 0 : product_shadow ); products.removeClass('box-shadow-0 box-shadow-1 box-shadow-2 box-shadow-3 box-shadow-4 box-shadow-5'); products.addClass( 'box-shadow-' + product_shadow ); } ); } ); /** * Shop: Box Hover Shadow */ wp.customize( 'astra-settings[edd-archive-product-shadow-hover]', function( setting ) { setting.bind( function( product_shadow ) { var products = $(document).find('.ast-edd-archive-article, .edd_download'); product_shadow = product_shadow > 5 ? 5 : ( product_shadow < 0 ? 0 : product_shadow ); products.removeClass('box-shadow-0-hover box-shadow-1-hover box-shadow-2-hover box-shadow-3-hover box-shadow-4-hover box-shadow-5-hover'); products.addClass( 'box-shadow-' + product_shadow + '-hover' ); } ); } ); /** * Shop: Button vertical padding */ wp.customize( 'astra-settings[edd-archive-button-v-padding]', function( setting ) { setting.bind( function( v_padding ) { var dynamicStyle = ''; dynamicStyle += '.ast-edd-archive-block-wrap .edd-add-to-cart, .ast-edd-archive-block-wrap .edd_go_to_checkout, .ast-edd-archive-block-wrap .ast-edd-variable-btn, .edd_downloads_list .edd-add-to-cart, .edd_downloads_list .edd_go_to_checkout, .edd_downloads_list .ast-edd-variable-btn{'; dynamicStyle += 'padding-top:' + v_padding + 'px;'; dynamicStyle += 'padding-bottom:' + v_padding + 'px;'; dynamicStyle += '}'; astra_add_dynamic_css( 'edd-archive-button-v-padding', dynamicStyle ); } ); } ); /** * Shop: Button horizontal padding */ wp.customize( 'astra-settings[edd-archive-button-h-padding]', function( setting ) { setting.bind( function( h_padding ) { var dynamicStyle = ''; dynamicStyle += '.ast-edd-archive-block-wrap .edd-add-to-cart, .ast-edd-archive-block-wrap .edd_go_to_checkout, .ast-edd-archive-block-wrap .ast-edd-variable-btn, .edd_downloads_list .edd-add-to-cart, .edd_downloads_list .edd_go_to_checkout, .edd_downloads_list .ast-edd-variable-btn{'; dynamicStyle += 'padding-left:' + h_padding + 'px;'; dynamicStyle += 'padding-right:' + h_padding + 'px;'; dynamicStyle += '}'; astra_add_dynamic_css( 'edd-archive-button-h-padding', dynamicStyle ); } ); } ); /* * Checkout Custom Width */ wp.customize( 'astra-settings[edd-checkout-content-max-width]', function( setting ) { setting.bind( function( width ) { var dynamicStyle = '@media all and ( min-width: 769px ) {'; dynamicStyle += '.edd-checkout #edd_checkout_wrap{ max-width: ' + ( parseInt( width ) ) + 'px; margin: 0 auto; } '; dynamicStyle += '}'; astra_add_dynamic_css( 'edd-checkout-content-max-width', dynamicStyle ); } ); }); /** * Cart icon style */ wp.customize( 'astra-settings[edd-header-cart-icon-style]', function( setting ) { setting.bind( function( icon_style ) { var buttons = $(document).find('.ast-edd-site-header-cart'); buttons.removeClass('ast-edd-menu-cart-fill ast-edd-menu-cart-outline'); buttons.addClass( 'ast-edd-menu-cart-' + icon_style ); var dynamicStyle = '.ast-edd-site-header-cart a, .ast-edd-site-header-cart a *{ transition: all 0s; } '; astra_add_dynamic_css( 'edd-header-cart-icon-style', dynamicStyle ); } ); } ); /** * Cart Count Color. */ wp.customize( 'astra-settings[edd-header-cart-product-count-color]', function( setting ) { setting.bind( function( color ) { var dynamicStyle = '.ast-edd-site-header-cart .ast-addon-cart-wrap span.astra-icon:after { color: ' + color + '; } '; astra_add_dynamic_css( 'edd-header-cart-product-count-color', dynamicStyle ); } ); } ); /** * EDD Cart Button Color */ wp.customize( 'astra-settings[edd-header-cart-icon-color]', function( setting ) { setting.bind( function( cart_icon_color ) { if ( cart_icon_color != '' ) { if( jQuery( '.ast-edd-site-header-cart' ).hasClass( 'ast-edd-menu-cart-outline' ) ) { var dynamicStyle = '.ast-edd-menu-cart-outline .ast-addon-cart-wrap { border: 1px solid ' + cart_icon_color + '; color: ' + cart_icon_color + '; background: #ffffff;}'; } else { var dynamicStyle = '.ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-edd-cart-menu-wrap .count, .ast-edd-menu-cart-fill .ast-addon-cart-wrap, .ast-edd-menu-cart-fill .ast-addon-cart-wrap .ast-edd-header-cart-info-wrap, .ast-edd-menu-cart-fill .ast-addon-cart-wrap .ast-icon-shopping-cart { background-color: ' + cart_icon_color + '; color: #ffffff }'; } astra_add_dynamic_css( 'primary-toggle-button-color', dynamicStyle ); } wp.customize.preview.send( 'refresh' ); }); }); /** * Cart Border Width. */ astra_css( 'astra-settings[edd-header-cart-border-width]', 'border-width', '.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-theme-transparent-header .ast-edd-menu-cart-outline .ast-addon-cart-wrap', 'px' ); /** * Button Border Radius */ wp.customize( 'astra-settings[edd-header-cart-icon-radius]', function( setting ) { setting.bind( function( border ) { var dynamicStyle = '.ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap{ border-radius: ' + ( parseInt( border ) ) + 'px } '; astra_add_dynamic_css( 'edd-header-cart-icon-radius', dynamicStyle ); } ); } ); /** * EDD Checkout Form Width */ wp.customize( 'astra-settings[edd-checkout-content-width]', function( setting ) { setting.bind( function( value ) { var dynamicStyle = ''; var edd_checkout_content_max_width = wp.customize('astra-settings[edd-checkout-content-max-width]').get(); if ( 'custom' === value && undefined !== astAddonTabletBreakpoint.value ) { dynamicStyle += '@media (min-width: ' + astAddonTabletBreakpoint.value + 'px) {' dynamicStyle += '.edd-checkout #edd_checkout_wrap {'; dynamicStyle += 'max-width: ' + edd_checkout_content_max_width + 'px;'; dynamicStyle += 'margin: 0 auto;'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( 'edd-checkout-content-width', dynamicStyle ); } ); } ); // Single Typo. astra_generate_outside_font_family_css( 'astra-settings[font-family-edd-product-title]', '.single-download .entry-title' ); astra_css( 'astra-settings[font-weight-edd-product-title]', 'font-weight', '.single-download .entry-title' ); astra_responsive_font_size( 'astra-settings[font-size-edd-product-title]', '.single-download .entry-title' ); astra_font_extras_css( 'font-extras-edd-product-title', '.single-download .entry-title' ); astra_generate_outside_font_family_css( 'astra-settings[font-family-edd-product-content]', '.single-download .entry-content' ); astra_css( 'astra-settings[font-weight-edd-product-content]', 'font-weight', '.single-download .entry-content' ); astra_responsive_font_size( 'astra-settings[font-size-edd-product-content]', '.single-download .entry-content' ); astra_font_extras_css( 'font-extras-edd-product-content', '.single-download .entry-content' ); // Shop Typo. astra_generate_outside_font_family_css( 'astra-settings[font-family-edd-archive-product-title]', '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' ); astra_css( 'astra-settings[font-weight-edd-archive-product-title]', 'font-weight', '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' ); astra_responsive_font_size( 'astra-settings[font-size-edd-archive-product-title]', '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' ); astra_font_extras_css( 'font-extras-edd-archive-product-title', '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' ); astra_generate_outside_font_family_css( 'astra-settings[font-family-edd-archive-product-price]', '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' ); astra_css( 'astra-settings[font-weight-edd-archive-product-price]', 'font-weight', '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' ); astra_responsive_font_size( 'astra-settings[font-size-edd-archive-product-price]', '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' ); astra_font_extras_css( 'font-extras-edd-archive-product-price', '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' ); astra_generate_outside_font_family_css( 'astra-settings[font-family-edd-archive-product-content]', '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' ); astra_css( 'astra-settings[font-weight-edd-archive-product-content]', 'font-weight', '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' ); astra_responsive_font_size( 'astra-settings[font-size-edd-archive-product-content]', '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' ); astra_font_extras_css( 'font-extras-edd-archive-product-content', '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' ); // Single Product Colors. astra_css( 'astra-settings[edd-single-product-title-color]', 'color', '.single-download .entry-title' ); astra_css( 'astra-settings[edd-single-product-content-color]', 'color', '.single-download .entry-content' ); astra_css( 'astra-settings[edd-single-product-navigation-color]', 'color', '.single-download .post-navigation a' ); // Shop Colors. astra_css( 'astra-settings[edd-archive-product-title-color]', 'color', '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' ); astra_css( 'astra-settings[edd-archive-product-price-color]', 'color', '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' ); astra_css( 'astra-settings[edd-archive-product-content-color]', 'color', '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' ); } )( jQuery ); classes/sections/class-astra-edd-archive-colors-configs.php 0000644 00000007663 15150254777 0020105 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Archive_Colors_Configs' ) ) { /** * Register Blog Single Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Archive_Colors_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Blog Single Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-styling-divider]', 'section' => 'section-edd-archive', 'title' => __( 'Product Font & Colors', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 231, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Shop Product Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-color]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-product-title-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'title' => __( 'Product Title', 'astra-addon' ), 'priority' => 231, ), /** * Shop Product Price Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-color]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-product-price-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'price', ), ), 'title' => __( 'Product Price', 'astra-addon' ), 'priority' => 231, ), /** * Shop Product Content Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-color]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-product-content-color' ), 'type' => 'control', 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Product Content', 'astra-addon' ), 'priority' => 231, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Edd_Archive_Colors_Configs(); classes/sections/class-astra-edd-checkout-configs.php 0000644 00000010163 15150254777 0016757 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Checkout_Configs' ) ) { /** * Register Easy Digital Downloads Checkout Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Checkout_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads Checkout Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-toggle-divider]', 'section' => 'section-edd-checkout-page', 'title' => __( 'Checkout Options', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'settings' => array(), ), /** * Option: Display Coupon on Checkout Page */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-coupon-display]', 'default' => astra_get_option( 'edd-checkout-coupon-display' ), 'type' => 'control', 'section' => 'section-edd-checkout-page', 'title' => __( 'Display Apply Coupon Field', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /* * Option: Distraction free Checkout. */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-distraction-free-checkout]', 'default' => astra_get_option( 'edd-distraction-free-checkout' ), 'type' => 'control', 'section' => 'section-edd-checkout-page', 'title' => __( 'Distraction Free Checkout', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Checkout Content Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-width]', 'default' => astra_get_option( 'edd-checkout-content-width' ), 'section' => 'section-edd-checkout-page', 'type' => 'control', 'control' => 'ast-selector', 'title' => __( 'Checkout Form Width', 'astra-addon' ), 'choices' => array( 'default' => __( 'Default', 'astra-addon' ), 'custom' => __( 'Custom', 'astra-addon' ), ), 'transport' => 'postMessage', 'renderAs' => 'text', 'responsive' => false, ), /** * Option: Enter Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-max-width]', 'default' => astra_get_option( 'edd-checkout-content-max-width' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-checkout-content-width]', 'operator' => '==', 'value' => 'custom', ), ), 'section' => 'section-edd-checkout-page', 'title' => __( 'Custom Width', 'astra-addon' ), 'suffix' => 'px', 'input_attrs' => array( 'min' => 768, 'step' => 1, 'max' => 1920, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Checkout_Configs(); classes/sections/class-astra-edd-general-configs.php 0000644 00000022260 15150254777 0016570 0 ustar 00 <?php /** * Easy Digital Downloads General Options for our theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_General_Configs' ) ) { /** * Register Easy Digital Downloads General Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_General_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads General Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? 'section-header-edd-cart' : 'section-edd-general'; $context = ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab; $cart_outline_width_context = ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab_config : astra_addon_builder_helper()->general_tab_config; $_configs = array( /** * Option: Header Cart Icon */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon]', 'default' => astra_get_option( 'edd-header-cart-icon' ), 'type' => 'control', 'section' => $_section, 'title' => __( 'Icon', 'astra-addon' ), 'control' => 'select', 'priority' => 35, 'choices' => array( 'default' => __( 'Default', 'astra-addon' ), 'cart' => __( 'Cart', 'astra-addon' ), 'bag' => __( 'Bag', 'astra-addon' ), 'basket' => __( 'Basket', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Cart Count color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-product-count-color]', 'default' => astra_get_option( 'edd-header-cart-product-count-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Count Color', 'astra-addon' ), 'context' => array( Astra_Builder_Helper::$design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon]', 'operator' => '!=', 'value' => 'default', ), ), 'section' => $_section, 'priority' => 45, ), /** * Option: Border Width */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-border-width]', 'default' => astra_get_option( 'edd-header-cart-border-width' ), 'type' => 'control', 'transport' => 'postMessage', 'section' => $_section, 'context' => array( $cart_outline_width_context, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-style]', 'operator' => '==', 'value' => 'outline', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon]', 'operator' => '!=', 'value' => 'default', ), ), 'title' => __( 'Border Width', 'astra-addon' ), 'suffix' => 'px', 'control' => 'ast-slider', 'priority' => 46, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 20, ), ), ); $configurations = array_merge( $configurations, $_configs ); $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-divider]', 'section' => $_section, 'title' => __( 'Header Cart Icon', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 30, 'settings' => array(), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Icon Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-style]', 'default' => astra_get_option( 'edd-header-cart-icon-style' ), 'type' => 'control', 'transport' => 'postMessage', 'section' => $_section, 'title' => __( 'Style', 'astra-addon' ), 'control' => 'select', 'priority' => 40, 'choices' => array( 'none' => __( 'None', 'astra-addon' ), 'outline' => __( 'Outline', 'astra-addon' ), 'fill' => __( 'Fill', 'astra-addon' ), ), 'context' => $context, ), /** * Option: Background color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-color]', 'default' => astra_get_option( 'edd-header-cart-icon-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Color', 'astra-addon' ), 'transport' => 'postMessage', 'section' => $_section, 'priority' => 45, 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-style]', 'operator' => '!=', 'value' => 'none', ), astra_addon_builder_helper()->design_tab, ), ), /** * Option: Background color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-color]', 'default' => astra_get_option( 'edd-header-cart-icon-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Color', 'astra-addon' ), 'transport' => 'postMessage', 'section' => $_section, 'priority' => 45, 'context' => array( $context, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-style]', 'operator' => '!=', 'value' => 'none', ), ), ), /** * Option: Border Radius */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-radius]', 'default' => astra_get_option( 'edd-header-cart-icon-radius' ), 'type' => 'control', 'transport' => 'postMessage', 'section' => $_section, 'title' => __( 'Border Radius', 'astra-addon' ), 'control' => 'ast-slider', 'priority' => 47, 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'suffix' => 'px', 'context' => array( $context, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-header-cart-icon-style]', 'operator' => '!=', 'value' => 'none', ), ), ), /** * Option: Header cart total */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-total-display]', 'default' => astra_get_option( 'edd-header-cart-total-display' ), 'type' => 'control', 'section' => $_section, 'title' => __( 'Display Cart Totals', 'astra-addon' ), 'priority' => 50, 'control' => Astra_Theme_Extension::$switch_control, 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Cart Title */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-header-cart-title-display]', 'default' => astra_get_option( 'edd-header-cart-title-display' ), 'type' => 'control', 'section' => $_section, 'title' => __( 'Display Cart Title', 'astra-addon' ), 'priority' => 55, 'control' => Astra_Theme_Extension::$switch_control, 'context' => astra_addon_builder_helper()->general_tab, ), ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $_configs = array( /** * EDD Cart section */ array( 'name' => $_section, 'type' => 'section', 'priority' => 5, 'title' => __( 'EDD Cart', 'astra-addon' ), 'panel' => 'panel-header-builder-group', ), ); } $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_General_Configs(); classes/sections/class-astra-edd-shop-configs.php 0000644 00000024720 15150254777 0016127 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Shop_Configs' ) ) { /** * Register Easy Digital Downloads Shop Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Shop_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads Shop Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Choose Product Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-style]', 'default' => astra_get_option( 'edd-archive-style' ), 'type' => 'control', 'section' => 'section-edd-archive', 'title' => __( 'Layout', 'astra-addon' ), 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'priority' => 5, 'divider' => array( 'ast_class' => 'ast-top-section-divider ast-bottom-section-divider' ), 'choices' => array( 'edd-archive-page-grid-style' => array( 'label' => __( 'Grid View', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-grid-view', false ) : '', ), 'edd-archive-page-list-style' => array( 'label' => __( 'List View', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'shop-list-view', false ) : '', ), ), ), /** * Option: EDD Archive Post override-heading to display notice */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'type' => 'control', 'control' => 'ast-sortable', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_multi_choices' ), 'section' => 'section-edd-archive', 'default' => astra_get_option( 'edd-archive-product-structure' ), 'priority' => 30, 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'title' => __( 'Product Structure', 'astra-addon' ), 'description' => __( 'The Image option cannot be sortable if the Product Style is selected to the List Style ', 'astra-addon' ), 'choices' => array( 'image' => __( 'Image', 'astra-addon' ), 'title' => __( 'Title', 'astra-addon' ), 'price' => __( 'Price', 'astra-addon' ), 'short_desc' => __( 'Short Description', 'astra-addon' ), 'add_cart' => __( 'Add To Cart', 'astra-addon' ), 'category' => __( 'Category', 'astra-addon' ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-box-styling-divider]', 'section' => 'section-edd-archive', 'title' => __( 'Product Styling', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 75, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Content Alignment */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-align]', 'default' => astra_get_option( 'edd-archive-product-align' ), 'type' => 'control', 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), 'transport' => 'postMessage', 'control' => Astra_Theme_Extension::$selector_control, 'section' => 'section-edd-archive', 'priority' => 80, 'title' => __( 'Content Alignment', 'astra-addon' ), 'choices' => array( 'align-left' => 'align-left', 'align-center' => 'align-center', 'align-right' => 'align-right', ), 'responsive' => false, ), /** * Option: Box shadow */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-shadow]', 'default' => astra_get_option( 'edd-archive-product-shadow' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'title' => __( 'Box Shadow', 'astra-addon' ), 'section' => 'section-edd-archive', 'suffix' => 'px', 'priority' => 85, 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 5, ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), ), /** * Option: Box hover shadow */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-shadow-hover]', 'default' => astra_get_option( 'edd-archive-product-shadow-hover' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-slider', 'title' => __( 'Box Hover Shadow', 'astra-addon' ), 'section' => 'section-edd-archive', 'suffix' => 'px', 'priority' => 90, 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 5, ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-button-divider]', 'section' => 'section-edd-archive', 'title' => __( 'Button', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 110, 'settings' => array(), ), /** * Option: Vertical Padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-button-v-padding]', 'default' => astra_get_option( 'edd-archive-button-v-padding' ), 'type' => 'control', 'transport' => 'postMessage', 'section' => 'section-edd-archive', 'title' => __( 'Vertical Padding', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'control' => 'ast-slider', 'suffix' => 'px', 'priority' => 110, 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 200, ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), ), /** * Option: Horizontal Padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-button-h-padding]', 'default' => astra_get_option( 'edd-archive-button-h-padding' ), 'type' => 'control', 'transport' => 'postMessage', 'section' => 'section-edd-archive', 'priority' => 110, 'title' => __( 'Horizontal Padding', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'control' => 'ast-slider', 'suffix' => 'px', 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 200, ), ), /** * Option: Display Page Title */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-page-title-display]', 'default' => astra_get_option( 'edd-archive-page-title-display' ), 'type' => 'control', 'section' => 'section-edd-archive', 'title' => __( 'Display Page Title', 'astra-addon' ), 'priority' => 29, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: EDD Product Title Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-typo]', 'default' => astra_get_option( 'edd-archive-product-title-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Title Font', 'astra-addon' ), 'section' => 'section-edd-archive', 'transport' => 'postMessage', 'priority' => 233, ), /** * Option: EDD Product Price Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-typo]', 'default' => astra_get_option( 'edd-archive-product-price-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Price Font', 'astra-addon' ), 'section' => 'section-edd-archive', 'transport' => 'postMessage', 'priority' => 233, ), /** * Option: EDD Product Content Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-typo]', 'default' => astra_get_option( 'edd-archive-product-content-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Content Font', 'astra-addon' ), 'section' => 'section-edd-archive', 'transport' => 'postMessage', 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'category', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'structure', ), ), ), 'priority' => 233, ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Shop_Configs(); classes/sections/class-astra-edd-shop-single-configs.php 0000644 00000005277 15150254777 0017414 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Shop_Single_Configs' ) ) { /** * Register Easy Digital Downloads shop single Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Shop_Single_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads shop single Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Enable Ajax add to cart. */ array( 'name' => ASTRA_THEME_SETTINGS . '[disable-edd-single-product-add-to-cart]', 'default' => astra_get_option( 'disable-edd-single-product-add-to-cart' ), 'type' => 'control', 'section' => 'section-edd-single', 'title' => __( 'Disable Add To Cart Button', 'astra-addon' ), 'priority' => 18, 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: EDD Product Title Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'default' => astra_get_option( 'edd-single-product-title-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Title Font', 'astra-addon' ), 'section' => 'section-edd-single', 'transport' => 'postMessage', 'priority' => 233, ), /** * Option: EDD Product Content Typography */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'default' => astra_get_option( 'edd-single-product-content-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Product Content Font', 'astra-addon' ), 'section' => 'section-edd-single', 'transport' => 'postMessage', 'priority' => 233, ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Shop_Single_Configs(); classes/sections/class-astra-edd-shop-single-typo-configs.php 0000644 00000020102 15150254777 0020365 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Shop_Single_Typo_Configs' ) ) { /** * Register Blog Single Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Shop_Single_Typo_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Blog Single Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Single Product Title Font Family */ array( 'name' => 'font-family-edd-product-title', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-family-edd-product-title' ), 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'title' => __( 'Font Family', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'connect' => ASTRA_THEME_SETTINGS . '[font-weight-edd-product-title]', 'priority' => 3, ), /** * Option: Single Product Title Font Weight */ array( 'name' => 'font-weight-edd-product-itle]', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-weight-edd-product-title' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Font Weight', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'connect' => 'font-family-edd-product-title', 'priority' => 4, ), /** * Option: Single Product Title Font Size */ array( 'name' => 'font-size-edd-product-title', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-size-edd-product-title' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'priority' => 4, 'title' => __( 'Font Size', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Single Product Title Font extras */ array( 'name' => 'font-extras-edd-product-title', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-typo]', 'control' => 'ast-font-extras', 'section' => 'section-edd-single', 'priority' => 5, 'default' => astra_get_option( 'font-extras-edd-product-title' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), ), /** * Option: Single Product Content Font Family */ array( 'name' => 'font-family-edd-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-family-edd-product-content' ), 'type' => 'sub-control', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'title' => __( 'Font Family', 'astra-addon' ), 'connect' => ASTRA_THEME_SETTINGS . '[font-weight-edd-product-content]', 'priority' => 18, ), /** * Option: Single Product Content Font Weight */ array( 'name' => 'font-weight-edd-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-weight-edd-product-content' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'type' => 'sub-control', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Font Weight', 'astra-addon' ), 'connect' => 'font-family-edd-product-content', 'priority' => 19, ), /** * Option: Single Product Content Font Size */ array( 'name' => 'font-size-edd-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'font-size-edd-product-content' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'priority' => 19, 'title' => __( 'Font Size', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Single Product Content Font extras. */ array( 'name' => 'font-extras-edd-product-content', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-typo]', 'control' => 'ast-font-extras', 'section' => 'section-edd-single', 'priority' => 20, 'default' => astra_get_option( 'font-extras-edd-product-content' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Shop_Single_Typo_Configs(); classes/sections/class-astra-edd-shop-typo-configs.php 0000644 00000027657 15150254777 0017134 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Shop_Typo_Configs' ) ) { /** * Register Easy Digital Downloads Shop Typo Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Shop_Typo_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads Shop Typo Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Product Title Font Family */ array( 'name' => 'font-family-edd-archive-product-title', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-family-edd-archive-product-title' ), 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'title' => __( 'Font Family', 'astra-addon' ), 'connect' => ASTRA_THEME_SETTINGS . '[font-weight-edd-archive-product-title]', 'priority' => 3, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), ), /** * Option: Product Title Font Weight */ array( 'name' => 'font-weight-edd-archive-product-title', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-weight-edd-archive-product-title' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'type' => 'sub-control', 'control' => 'ast-font', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'font_type' => 'ast-font-weight', 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'title' => __( 'Font Weight', 'astra-addon' ), 'connect' => 'font-family-edd-archive-product-title', 'priority' => 4, ), /** * Option: Product Title Font Size */ array( 'name' => 'font-size-edd-archive-product-title', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-size-edd-archive-product-title' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'priority' => 4, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'title', ), ), 'title' => __( 'Font Size', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Product Title Font extras */ array( 'name' => 'font-extras-edd-archive-product-title', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-title-typo]', 'control' => 'ast-font-extras', 'section' => 'section-edd-archive', 'priority' => 5, 'default' => astra_get_option( 'font-extras-edd-archive-product-title' ), ), /** * Option: Product Price Font Family */ array( 'name' => 'font-family-edd-archive-product-price', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-family-edd-archive-product-price' ), 'type' => 'sub-control', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'price', ), ), 'title' => __( 'Font Family', 'astra-addon' ), 'connect' => ASTRA_THEME_SETTINGS . '[font-weight-edd-archive-product-price]', 'priority' => 9, ), /** * Option: Product Price Font Weight */ array( 'name' => 'font-weight-edd-archive-product-price', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-weight-edd-archive-product-price' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'type' => 'sub-control', 'control' => 'ast-font', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'font_type' => 'ast-font-weight', 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'price', ), ), 'title' => __( 'Font Weight', 'astra-addon' ), 'connect' => 'font-family-edd-archive-product-price', 'priority' => 10, ), /** * Option: Product Price Font Size */ array( 'name' => 'font-size-edd-archive-product-price', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-size-edd-archive-product-price' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'priority' => 10, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'price', ), ), 'title' => __( 'Font Size', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Product Font Extras */ array( 'name' => 'font-extras-edd-archive-product-price', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-price-typo]', 'control' => 'ast-font-extras', 'section' => 'section-edd-archive', 'priority' => 10, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[edd-archive-product-structure]', 'operator' => 'contains', 'value' => 'price', ), ), 'default' => astra_get_option( 'font-extras-edd-archive-product-price' ), ), /** * Option: Product Content Font Family */ array( 'name' => 'font-family-edd-archive-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-family-edd-archive-product-content' ), 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-family', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'title' => __( 'Font Family', 'astra-addon' ), 'connect' => ASTRA_THEME_SETTINGS . '[font-weight-edd-archive-product-content]', 'priority' => 13, ), /** * Option: Product Content Font Weight */ array( 'name' => 'font-weight-edd-archive-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-weight-edd-archive-product-content' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), 'title' => __( 'Font Weight', 'astra-addon' ), 'connect' => 'font-family-edd-archive-product-content', 'priority' => 14, ), /** * Option: Product Content Font Size */ array( 'name' => 'font-size-edd-archive-product-content', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-typo]', 'section' => 'section-edd-archive', 'default' => astra_get_option( 'font-size-edd-archive-product-content' ), 'type' => 'sub-control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'priority' => 14, 'title' => __( 'Font Size', 'astra-addon' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Product Content Line Height */ array( 'name' => 'font-extras-edd-archive-product-content', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[edd-archive-product-content-typo]', 'control' => 'ast-font-extras', 'section' => 'section-edd-archive', 'priority' => 15, 'default' => astra_get_option( 'font-extras-edd-archive-product-content' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Shop_Typo_Configs(); classes/sections/class-astra-edd-single-colors-configs.php 0000644 00000007525 15150254777 0017742 0 ustar 00 <?php /** * Shop Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Single_Colors_Configs' ) ) { /** * Register Easy Digital Downloads Shop Single Color Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Single_Colors_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads Shop Single Color Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-styling-divider]', 'section' => 'section-edd-single', 'title' => __( 'Product Font & Colors', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 231, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Single Product Title Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-title-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-title-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Product Title', 'astra-addon' ), 'priority' => 231, ), /** * Single Product Breadcrumb Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-navigation-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-navigation-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[disable-edd-single-product-nav]', 'operator' => '!=', 'value' => '1', ), ), 'transport' => 'postMessage', 'title' => __( 'Product Navigation', 'astra-addon' ), 'priority' => 231, ), /** * Single Product Content Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[edd-single-product-content-color]', 'section' => 'section-edd-single', 'default' => astra_get_option( 'edd-single-product-content-color' ), 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'transport' => 'postMessage', 'title' => __( 'Product Content', 'astra-addon' ), 'priority' => 231, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Single_Colors_Configs(); classes/class-astra-edd-panels-and-sections.php 0000644 00000003454 15150254777 0015551 0 ustar 00 <?php /** * Register customizer panels & sections. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.6.10 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Edd_Panels_And_Sections' ) ) { /** * Register Easy Digital Downloads Panels and sections Layout Configurations. */ // @codingStandardsIgnoreStart class Astra_Edd_Panels_And_Sections extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Easy Digital Downloads Panels and sections Layout Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.6.10 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Section General */ array( 'name' => 'section-edd-general', 'title' => __( 'General', 'astra-addon' ), 'type' => 'section', 'section' => 'section-edd-group', 'priority' => 5, ), /** * Section Checkout Page */ array( 'name' => 'section-edd-checkout-page', 'priority' => 25, 'title' => __( 'Checkout Page', 'astra-addon' ), 'type' => 'section', 'section' => 'section-edd-group', ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Edd_Panels_And_Sections(); classes/class-astra-ext-edd-loader.php 0000644 00000024065 15150254777 0013747 0 ustar 00 <?php /** * WooCommerce Loader * * @package Astra Addon */ if ( ! class_exists( 'Astra_Ext_Edd_Loader' ) ) { /** * Customizer Initialization * * @since 1.6.10 */ // @codingStandardsIgnoreStart class Astra_Ext_Edd_Loader { // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { // Shop page. $defaults['edd-archive-style'] = 'edd-archive-page-grid-style'; $defaults['edd-archive-product-align'] = 'align-center'; $defaults['edd-archive-page-title-display'] = true; $defaults['edd-archive-product-shadow'] = 0; $defaults['edd-archive-product-shadow-hover'] = 0; $defaults['edd-archive-button-v-padding'] = ''; $defaults['edd-archive-button-h-padding'] = ''; // Checkout. $defaults['two-step-checkout'] = false; $defaults['edd-checkout-coupon-display'] = true; $defaults['edd-checkout-content-width'] = 'default'; $defaults['edd-checkout-content-max-width'] = 1200; // General. $defaults['edd-header-cart-icon'] = 'default'; $defaults['edd-header-cart-icon-style'] = 'none'; $defaults['edd-header-cart-icon-color'] = ''; $defaults['edd-header-cart-border-width'] = 1; $defaults['edd-header-cart-icon-radius'] = 3; $defaults['edd-header-cart-total-display'] = true; $defaults['edd-header-cart-title-display'] = true; $defaults['edd-header-cart-product-count-color'] = ''; // General Product Price Typo. $defaults['font-family-product-price'] = 'inherit'; $defaults['font-weight-product-price'] = 'inherit'; // Single Product. $defaults['disable-edd-single-product-add-to-cart'] = false; // Single Product Title Typo. $defaults['font-family-edd-product-title'] = 'inherit'; $defaults['font-weight-edd-product-title'] = 'inherit'; $defaults['font-extras-edd-product-title'] = array( 'line-height' => ! isset( $astra_options['font-extras-edd-product-title'] ) && isset( $astra_options['line-height-edd-product-title'] ) ? $astra_options['line-height-edd-product-title'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-edd-product-title'] ) && isset( $astra_options['text-transform-edd-product-title'] ) ? $astra_options['text-transform-edd-product-title'] : '', 'text-decoration' => '', ); $defaults['font-size-edd-product-title'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['font-family-edd-product-content'] = 'inherit'; $defaults['font-weight-edd-product-content'] = 'inherit'; $defaults['font-extras-edd-product-content'] = array( 'line-height' => ! isset( $astra_options['font-extras-edd-product-content'] ) && isset( $astra_options['line-height-edd-product-content'] ) ? $astra_options['line-height-edd-product-content'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-edd-product-content'] ) && isset( $astra_options['text-transform-edd-product-content'] ) ? $astra_options['text-transform-edd-product-content'] : '', 'text-decoration' => '', ); $defaults['font-size-edd-product-content'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Shop Product Title Typo. $defaults['font-family-edd-archive-product-title'] = 'inherit'; $defaults['font-weight-edd-archive-product-title'] = 'inherit'; $defaults['font-extras-edd-archive-product-title'] = array( 'line-height' => ! isset( $astra_options['font-extras-edd-archive-product-title'] ) && isset( $astra_options['line-height-edd-archive-product-title'] ) ? $astra_options['line-height-edd-archive-product-title'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-edd-archive-product-title'] ) && isset( $astra_options['text-transform-edd-archive-product-title'] ) ? $astra_options['text-transform-edd-archive-product-title'] : '', 'text-decoration' => '', ); $defaults['font-size-edd-archive-product-title'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Shop Product Price Typo. $defaults['font-family-edd-archive-product-price'] = 'inherit'; $defaults['font-weight-edd-archive-product-price'] = 'inherit'; $defaults['font-extras-edd-archive-product-price'] = array( 'line-height' => ! isset( $astra_options['font-extras-edd-archive-product-price'] ) && isset( $astra_options['line-height-edd-archive-product-price'] ) ? $astra_options['line-height-edd-archive-product-price'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => '', 'text-decoration' => '', ); $defaults['font-size-edd-archive-product-price'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Shop Product Category Typo. $defaults['font-family-edd-archive-product-content'] = 'inherit'; $defaults['font-weight-edd-archive-product-content'] = 'inherit'; $defaults['font-extras-edd-archive-product-content'] = array( 'line-height' => ! isset( $astra_options['font-extras-edd-archive-product-content'] ) && isset( $astra_options['line-height-edd-archive-product-content'] ) ? $astra_options['line-height-edd-archive-product-content'] : '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => ! isset( $astra_options['font-extras-edd-archive-product-content'] ) && isset( $astra_options['text-transform-edd-archive-product-content'] ) ? $astra_options['text-transform-edd-archive-product-content'] : '', 'text-decoration' => '', ); $defaults['font-size-edd-archive-product-content'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); // Single Product Colors. $defaults['edd-single-product-title-color'] = ''; $defaults['edd-single-product-content-color'] = ''; $defaults['edd-single-product-navigation-color'] = ''; // EDD Archive Product Colors. $defaults['edd-archive-product-category-color'] = ''; $defaults['edd-archive-product-title-color'] = ''; $defaults['edd-archive-product-price-color'] = ''; $defaults['edd-archive-product-content-color'] = ''; // General Colors. $defaults['single-product-rating-color'] = ''; return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { /** * Register Sections & Panels */ require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/class-astra-edd-panels-and-sections.php'; /** * Sections */ require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-general-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-shop-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-shop-single-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-checkout-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-shop-single-typo-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-single-colors-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-shop-typo-configs.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/sections/class-astra-edd-archive-colors-configs.php'; } /** * Customizer Controls * * @see 'astra-customizer-preview-js' panel in parent theme */ public function preview_scripts() { if ( SCRIPT_DEBUG ) { $js_path = 'assets/js/unminified/customizer-preview.js'; } else { $js_path = 'assets/js/minified/customizer-preview.min.js'; } wp_enqueue_script( 'ast-edd-customizer-preview', ASTRA_ADDON_EXT_EDD_URI . $js_path, array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { wp_localize_script( 'ast-edd-customizer-preview', 'astAddonTabletBreakpoint', array( 'value' => astra_addon_get_tablet_breakpoint( '', 1 ), ) ); } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Edd_Loader::get_instance(); classes/class-astra-ext-edd-markup.php 0000644 00000024142 15150254777 0013774 0 ustar 00 <?php /** * WooCommerce Markup * * @package Astra Addon */ if ( ! class_exists( 'ASTRA_Ext_Edd_Markup' ) ) { /** * Advanced Search Markup Initial Setup * * @since 1.6.10 */ // @codingStandardsIgnoreStart class ASTRA_Ext_Edd_Markup { // @codingStandardsIgnoreEnd /** * Member Varible * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'wp', array( $this, 'edd_initializattion' ) ); add_action( 'wp', array( $this, 'customization_checkout_page' ) ); add_action( 'astra_addon_get_css_files', array( $this, 'add_styles' ) ); add_filter( 'body_class', array( $this, 'body_class' ) ); add_filter( 'post_class', array( $this, 'post_class' ) ); add_filter( 'edd_download_class', array( $this, 'shortcode_download_class' ), 10, 4 ); add_shortcode( 'astra_edd_mini_cart', array( $this, 'astra_edd_mini_cart_markup' ) ); // Load Google fonts. add_action( 'astra_get_fonts', array( $this, 'add_fonts' ), 1 ); } /** * Easy Digital Downloads initialization * * @since 1.6.10 * @return void */ public function edd_initializattion() { $is_edd_archive_page = astra_is_edd_archive_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); // Edd archive page. if ( $is_edd_archive_page ) { // Edd archive page product style. $shop_style = astra_get_option( 'edd-archive-style' ); $product_archive_structure = astra_get_option( 'edd-archive-product-structure' ); if ( 'edd-archive-page-list-style' == $shop_style && in_array( 'image', $product_archive_structure ) ) { remove_action( 'astra_edd_archive_image', 'astra_edd_archive_product_image' ); add_action( 'astra_edd_archive_before_block_wrap', 'astra_edd_archive_product_image' ); } // Edd Archive Page Title. if ( ! astra_get_option( 'edd-archive-page-title-display' ) ) { add_filter( 'astra_the_title_enabled', '__return_false' ); } } if ( $is_edd_single_product_page ) { // Remove the purchase button on single EDD Product page. $disable_edd_single_product_add_to_cart = astra_get_option( 'disable-edd-single-product-add-to-cart' ); if ( $disable_edd_single_product_add_to_cart ) { remove_action( 'edd_after_download_content', 'edd_append_purchase_link' ); } } } /** * Add Font Family Callback * * @since 1.6.10 * @return void */ public function add_fonts() { $font_family_product_title = astra_get_option( 'font-family-edd-product-title' ); $font_weight_product_title = astra_get_option( 'font-weight-edd-product-title' ); Astra_Fonts::add_font( $font_family_product_title, $font_weight_product_title ); $font_family_shop_product_title = astra_get_option( 'font-family-edd-archive-product-title' ); $font_weight_shop_product_title = astra_get_option( 'font-weight-edd-archive-product-title' ); Astra_Fonts::add_font( $font_family_shop_product_title, $font_weight_shop_product_title ); $font_family_shop_product_price = astra_get_option( 'font-family-edd-archive-product-price' ); $font_weight_shop_product_price = astra_get_option( 'font-weight-edd-archive-product-price' ); Astra_Fonts::add_font( $font_family_shop_product_price, $font_weight_shop_product_price ); $font_family_shop_product_content = astra_get_option( 'font-family-edd-archive-product-content' ); $font_weight_shop_product_content = astra_get_option( 'font-weight-edd-archive-product-content' ); Astra_Fonts::add_font( $font_family_shop_product_content, $font_weight_shop_product_content ); $font_family_product_content = astra_get_option( 'font-family-edd-product-content' ); $font_weight_product_content = astra_get_option( 'font-weight-edd-product-content' ); Astra_Fonts::add_font( $font_family_product_content, $font_weight_product_content ); } /** * Mini Cart shortcode `astra_edd_mini_cart` mrakup. * * @since 1.6.10 * @param array $atts Shortcode atts. * @return html */ public function astra_edd_mini_cart_markup( $atts ) { $atts = shortcode_atts( array( 'direction' => 'bottom left', ), $atts ); $output = ''; $astra_edd_instance = Astra_Edd::get_instance(); if ( method_exists( $astra_edd_instance, 'edd_mini_cart_markup' ) ) { $output = '<div class="ast-edd-mini-cart-wrapper ast-edd-mini-cart-dir ' . esc_attr( $atts['direction'] ) . '">'; $output .= $astra_edd_instance->edd_mini_cart_markup(); $output .= '</div>'; } return $output; } /** * Body Class * * @param array $classes Default argument array. * * @return array; */ public function body_class( $classes ) { $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_archive_page ) { $shop_style = astra_get_option( 'edd-archive-style' ); if ( 'edd-archive-page-list-style' == $shop_style ) { $classes[] = 'ast-' . $shop_style; } } elseif ( edd_is_checkout() ) { if ( astra_get_option( 'edd-distraction-free-checkout' ) ) { $classes[] = 'ast-edd-distraction-free-checkout'; } } return $classes; } /** * Post Class * * @param array $classes Default argument array. * * @return array; */ public function post_class( $classes ) { $is_edd_archive_page = astra_is_edd_archive_page(); if ( $is_edd_archive_page ) { // Single product normal & hover box shadow. $classes[] = astra_get_option( 'edd-archive-product-align' ); $classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow' ); $classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow-hover' ) . '-hover'; } return $classes; } /** * Edd shortcode download class * * @param string $class edd shortcode list item class. * @param int $id current post ID. * @param array $edd_download_shortcode_item_atts Default shortcode argument array. * @param int $edd_download_shortcode_item_i shortcode applied to items. * * @return string $class updated class to the shortcode list item; */ public function shortcode_download_class( $class, $id, $edd_download_shortcode_item_atts, $edd_download_shortcode_item_i ) { if ( 'edd_download' === $class ) { $classes = array(); // Single product normal & hover box shadow. $classes[] = astra_get_option( 'edd-archive-product-align' ); $classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow' ); $classes[] = 'box-shadow-' . astra_get_option( 'edd-archive-product-shadow-hover' ) . '-hover'; $class = $class . ' ' . implode( ' ', $classes ); } return $class; } /** * Checkout page markup update using actions & filters only */ public function customization_checkout_page() { if ( ! edd_is_checkout() ) { return; } // Display coupon. if ( ! astra_get_option( 'edd-checkout-coupon-display' ) ) { remove_action( 'edd_before_purchase_form', 'edd_discount_field', -1 ); remove_action( 'edd_before_purchase_form', 'edd_agree_to_terms_js' ); } // Distraction Free Checkout. if ( astra_get_option( 'edd-distraction-free-checkout' ) ) { // HFB Support for distration free checkout. if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { remove_action( 'astra_header', array( Astra_Builder_Header::get_instance(), 'prepare_header_builder_markup' ) ); remove_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ), 10 ); } remove_action( 'astra_header', 'astra_header_markup' ); remove_action( 'astra_footer', 'astra_footer_markup' ); add_action( 'astra_header', array( $this, 'checkout_header_markup' ) ); add_action( 'astra_footer', array( $this, 'checkout_footer_markup' ) ); // Store Sidebar Layout. add_filter( 'astra_page_layout', array( $this, 'checkout_sidebar_layout' ), 99 ); } } /** * Header markup. */ public function checkout_header_markup() { astra_addon_get_template( 'edd/templates/checkout-header.php' ); } /** * Footer markup. */ public function checkout_footer_markup() { astra_addon_get_template( 'edd/templates/checkout-footer.php' ); } /** * Checkout sidebar layout. * * @param string $sidebar_layout Layout. * * @return string; */ public function checkout_sidebar_layout( $sidebar_layout ) { return 'no-sidebar'; } /** * Add Styles */ public function add_styles() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_EDD_URI . 'assets/css/'; $path = ASTRA_ADDON_EXT_EDD_DIR . 'assets/css/'; $rtl = ''; if ( is_rtl() ) { $rtl = '-rtl'; } /* Directory and Extension */ $file_prefix = $rtl . '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = $rtl; $dir_name = 'unminified'; } $css_uri = $uri . $dir_name . '/'; $css_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $css_uri; } else { $gen_path = $css_dir; } /*** End Path Logic */ /* Add style.css */ Astra_Minify::add_css( $gen_path . 'style' . $file_prefix . '.css' ); // Shop page style. $shop_page_style = astra_get_option( 'edd-archive-style' ); if ( 'edd-archive-page-list-style' == $shop_page_style ) { $shop_page_style = Astra_Addon_Builder_Helper::apply_flex_based_css() ? $shop_page_style . '-grid' : $shop_page_style; Astra_Minify::add_css( $gen_path . $shop_page_style . $file_prefix . '.css' ); } } } } /** * Kicking this off by calling 'get_instance()' method */ ASTRA_Ext_Edd_Markup::get_instance(); classes/common-functions.php 0000644 00000004014 15150254777 0012224 0 ustar 00 <?php /** * Functions for Astra - Easy Digital Downloads Addon. * * @package Astra * @since Astra 1.6.10 */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Current Page is EDD page */ if ( ! function_exists( 'astra_is_edd_page' ) ) : /** * Check current page is an EDD page * * @since 1.6.10 * @return bool true | false */ function astra_is_edd_page() { if ( is_singular( 'download' ) || is_post_type_archive( 'download' ) || is_tax( 'download_category' ) || is_tax( 'download_tag' ) || edd_is_checkout() || edd_is_success_page() || edd_is_failed_transaction_page() || edd_is_purchase_history_page() ) { return true; } return false; } endif; /** * Current Page is EDD single page */ if ( ! function_exists( 'astra_is_edd_single_page' ) ) : /** * Check current page is an EDD single page * * @since 1.6.10 * @return bool true | false */ function astra_is_edd_single_page() { if ( is_singular( 'download' ) || edd_is_checkout() || edd_is_success_page() || edd_is_failed_transaction_page() || edd_is_purchase_history_page() ) { return true; } return false; } endif; /** * Current Page is EDD archive page */ if ( ! function_exists( 'astra_is_edd_archive_page' ) ) : /** * Check current page is an EDD archive page * * @since 1.6.10 * @return bool true | false */ function astra_is_edd_archive_page() { if ( is_post_type_archive( 'download' ) || is_tax( 'download_category' ) || is_tax( 'download_tag' ) ) { return true; } return false; } endif; /** * Current Page is EDD single Product page */ if ( ! function_exists( 'astra_is_edd_single_product_page' ) ) : /** * Check current page is an EDD single product page * * @since 1.6.10 * @return bool true | false */ function astra_is_edd_single_product_page() { if ( is_singular( 'download' ) ) { return true; } return false; } endif; classes/dynamic.css.php 0000644 00000034645 15150254777 0011156 0 ustar 00 <?php /** * EDD - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_edd_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_edd_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $theme_color = astra_get_option( 'theme-color' ); // Single Product Content Typo. $product_content_font_size = astra_get_option( 'font-size-edd-product-content' ); $product_title_font_size = astra_get_option( 'font-size-edd-product-title' ); // Single Product Colors. $product_title_color = astra_get_option( 'edd-single-product-title-color' ); $product_content_color = astra_get_option( 'edd-single-product-content-color' ); $product_navigation_color = astra_get_option( 'edd-single-product-navigation-color' ); // EDD archive Typo. $edd_archive_product_title_font_size = astra_get_option( 'font-size-edd-archive-product-title' ); $edd_archive_product_price_font_size = astra_get_option( 'font-size-edd-archive-product-price' ); $edd_archive_product_content_font_size = astra_get_option( 'font-size-edd-archive-product-content' ); // EDD archive Colors. $edd_archive_product_title_color = astra_get_option( 'edd-archive-product-title-color' ); $edd_archive_product_price_color = astra_get_option( 'edd-archive-product-price-color' ); $edd_archive_product_content_color = astra_get_option( 'edd-archive-product-content-color' ); $btn_v_padding = astra_get_option( 'edd-archive-button-v-padding' ); $btn_h_padding = astra_get_option( 'edd-archive-button-h-padding' ); $checkout_width = astra_get_option( 'edd-checkout-content-width' ); $checkout_custom_width = astra_get_option( 'edd-checkout-content-max-width' ); $header_cart_icon_style = astra_get_option( 'edd-header-cart-icon-style' ); $header_cart_icon_color = astra_get_option( 'edd-header-cart-icon-color', $theme_color ); $header_cart_icon_radius = astra_get_option( 'edd-header-cart-icon-radius' ); $cart_h_color = astra_get_foreground_color( $header_cart_icon_color ); $cart_products_count_color = astra_get_option( 'edd-header-cart-product-count-color', astra_get_foreground_color( $theme_color ) ); // Supporting color setting for default icon as well. $can_update_cart_color = is_callable( 'astra_cart_color_default_icon_old_header' ) && astra_cart_color_default_icon_old_header(); $header_cart_count_color = ( $can_update_cart_color ) ? $header_cart_icon_color : $theme_color; /** * Set font sizes */ $css_output = array( '.ast-edd-archive-block-wrap .edd-add-to-cart, .ast-edd-archive-block-wrap .edd_go_to_checkout, .ast-edd-archive-block-wrap .ast-edd-variable-btn, .edd_downloads_list .edd-add-to-cart, .edd_downloads_list .edd_go_to_checkout, .edd_downloads_list .ast-edd-variable-btn' => array( 'padding-top' => astra_get_css_value( $btn_v_padding, 'px' ), 'padding-bottom' => astra_get_css_value( $btn_v_padding, 'px' ), 'padding-left' => astra_get_css_value( $btn_h_padding, 'px' ), 'padding-right' => astra_get_css_value( $btn_h_padding, 'px' ), ), '.ast-edd-site-header-cart .ast-addon-cart-wrap span.astra-icon:after' => array( 'background' => $header_cart_count_color, 'color' => $cart_products_count_color, ), '.single-download .entry-title' => astra_addon_get_font_array_css( astra_get_option( 'font-family-edd-product-title' ), astra_get_option( 'font-weight-edd-product-title' ), $product_title_font_size, 'font-extras-edd-product-title', $product_title_color ), // Single Product Content. '.single-download .entry-content' => astra_addon_get_font_array_css( astra_get_option( 'font-family-edd-product-content' ), astra_get_option( 'font-weight-edd-product-content' ), $product_content_font_size, 'font-extras-edd-product-content', $product_content_color ), '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' => astra_addon_get_font_array_css( astra_get_option( 'font-family-edd-archive-product-title' ), astra_get_option( 'font-weight-edd-archive-product-title' ), $edd_archive_product_title_font_size, 'font-extras-edd-archive-product-title', $edd_archive_product_title_color ), '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' => astra_addon_get_font_array_css( astra_get_option( 'font-family-edd-archive-product-price' ), astra_get_option( 'font-weight-edd-archive-product-price' ), $edd_archive_product_price_font_size, 'font-extras-edd-archive-product-price', $edd_archive_product_price_color ), '.single-download .post-navigation a' => array( 'color' => esc_attr( $product_navigation_color ), ), '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' => astra_addon_get_font_array_css( astra_get_option( 'font-family-edd-archive-product-content' ), astra_get_option( 'font-weight-edd-archive-product-content' ), $edd_archive_product_content_font_size, 'font-extras-edd-archive-product-content', $edd_archive_product_content_color ), ); if ( false === astra_addon_builder_helper()->is_header_footer_builder_active && $can_update_cart_color && 'default' === astra_get_option( 'edd-header-cart-icon' ) ) { $css_output['.ast-edd-site-header-cart .ast-edd-cart-container, .ast-edd-site-header-cart a:focus, .ast-edd-site-header-cart a:hover'] = array( 'color' => $header_cart_icon_color, ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); if ( false === Astra_Icons::is_svg_icons() ) { $edd_shopping_cart_icon = array( '.ast-edd-site-header-cart span.astra-icon:before' => array( 'font-family' => 'Astra', ), '.ast-icon-shopping-cart:before' => array( 'content' => '"\f07a"', ), '.ast-icon-shopping-bag:before' => array( 'content' => '"\f290"', ), '.ast-icon-shopping-basket:before' => array( 'content' => '"\f291"', ), ); /* Parse CSS from array() */ $css_output .= astra_parse_css( $edd_shopping_cart_icon ); } /** * Header Cart color */ if ( 'none' !== $header_cart_icon_style ) { $header_cart_icon = array(); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { /** * Header Cart Icon colors */ $header_cart_icon['.ast-builder-layout-element[data-section="section-hb-edd-cart"]'] = array( 'padding' => esc_attr( 0 ), 'margin-left' => esc_attr( '1em' ), 'margin-right' => esc_attr( '1em' ), 'padding-left' => esc_attr( '20px' ), 'padding-right' => esc_attr( '20px' ), 'margin' => esc_attr( '0' ), ); $header_cart_icon['.ast-builder-layout-element[data-section="section-hb-edd-cart"] .ast-addon-cart-wrap'] = array( 'display' => esc_attr( 'inline-block' ), 'padding' => esc_attr( '0 .6em' ), ); // We adding this conditional CSS only to maintain backwards. Remove this condition after 2-3 updates of theme. if ( version_compare( ASTRA_THEME_VERSION, '3.4.3', '>=' ) ) { $add_background_outline_cart = Astra_Addon_Update_Filter_Function::astra_add_bg_color_outline_cart_header_builder(); $border_width = astra_get_option( 'edd-header-cart-border-width' ); $trans_header_cart_icon_color = astra_get_option( 'transparent-header-edd-cart-icon-color', $theme_color ); // Outline cart style border. $header_cart_icon['.ast-edd-menu-cart-outline .ast-addon-cart-wrap'] = array( 'border-width' => astra_get_css_value( $border_width, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_cart_icon_color ), ); // Transparent header outline cart style. $header_cart_icon['.ast-theme-transparent-header .ast-edd-menu-cart-outline .ast-addon-cart-wrap'] = array( 'border-width' => astra_get_css_value( $border_width, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $trans_header_cart_icon_color ), ); if ( $add_background_outline_cart ) { $header_cart_icon['.ast-edd-menu-cart-outline .ast-addon-cart-wrap'] = array( 'border-width' => astra_get_css_value( $border_width, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_cart_icon_color ), 'background' => '#ffffff', ); } } } else { /** * Header Cart Icon colors */ $header_cart_icon = array( // Default icon colors. '.ast-edd-cart-menu-wrap .count, .ast-edd-cart-menu-wrap .count:after' => array( 'border-color' => esc_attr( $header_cart_icon_color ), 'color' => esc_attr( $header_cart_icon_color ), ), // Outline icon hover colors. '.ast-edd-cart-menu-wrap:hover .count' => array( 'color' => esc_attr( $cart_h_color ), 'background-color' => esc_attr( $header_cart_icon_color ), ), // Outline icon colors. '.ast-edd-menu-cart-outline .ast-addon-cart-wrap' => array( 'background' => '#ffffff', 'border' => '1px solid ' . $header_cart_icon_color, 'color' => esc_attr( $header_cart_icon_color ), ), // Fill icon Color. '.ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-edd-cart-menu-wrap .count,.ast-edd-menu-cart-fill .ast-addon-cart-wrap' => array( 'background-color' => esc_attr( $header_cart_icon_color ), 'color' => esc_attr( $cart_h_color ), ), // Border radius. '.ast-edd-site-header-cart.ast-edd-menu-cart-outline .ast-addon-cart-wrap, .ast-edd-site-header-cart.ast-edd-menu-cart-fill .ast-addon-cart-wrap' => array( 'border-radius' => astra_get_css_value( $header_cart_icon_radius, 'px' ), ), ); // We adding this conditional CSS only to maintain backwards. Remove this condition after 2-3 updates of theme. if ( version_compare( ASTRA_THEME_VERSION, '3.4.3', '>=' ) ) { $border_width = astra_get_option( 'edd-header-cart-border-width' ); // Outline icon colors. $header_cart_icon['.ast-edd-menu-cart-outline .ast-addon-cart-wrap'] = array( 'background' => '#ffffff', 'border-width' => astra_get_css_value( $border_width, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_cart_icon_color ), 'color' => esc_attr( $header_cart_icon_color ), ); } /** * Header Cart Icon colors */ $header_cart_icon['li.ast-masthead-custom-menu-items.edd-custom-menu-item, .ast-masthead-custom-menu-items.edd-custom-menu-item'] = array( 'padding' => esc_attr( 0 ), ); $header_cart_icon['.ast-header-break-point li.ast-masthead-custom-menu-items.edd-custom-menu-item'] = array( 'padding-left' => esc_attr( '20px' ), 'padding-right' => esc_attr( '20px' ), 'margin' => esc_attr( '0' ), ); $header_cart_icon['.ast-header-break-point .ast-masthead-custom-menu-items.edd-custom-menu-item'] = array( 'margin-left' => esc_attr( '1em' ), 'margin-right' => esc_attr( '1em' ), ); $header_cart_icon['.ast-header-break-point .ast-above-header-mobile-inline.mobile-header-order-2 .ast-masthead-custom-menu-items.edd-custom-menu-item'] = array( 'margin-left' => esc_attr( '0' ), ); $header_cart_icon['.ast-header-break-point li.ast-masthead-custom-menu-items.edd-custom-menu-item .ast-addon-cart-wrap'] = array( 'display' => esc_attr( 'inline-block' ), ); $header_cart_icon['.edd-custom-menu-item .ast-addon-cart-wrap'] = array( 'padding' => esc_attr( '0 .6em' ), ); } $css_output .= astra_parse_css( $header_cart_icon ); } /* Checkout Width */ if ( 'custom' === $checkout_width ) : $checkout_css = '@media (min-width:' . astra_addon_get_tablet_breakpoint( '', 1 ) . 'px) {'; $checkout_css .= '.edd-checkout #edd_checkout_wrap {'; $checkout_css .= 'max-width:' . esc_attr( $checkout_custom_width ) . 'px;'; $checkout_css .= 'margin:' . esc_attr( '0 auto' ) . ';'; $checkout_css .= '}'; $checkout_css .= '}'; $css_output .= $checkout_css; endif; $tablet_css = array( '.single-download .entry-title' => array( 'font-size' => astra_responsive_font( $product_title_font_size, 'tablet' ), ), // Single Product Content. '.single-download .entry-content' => array( 'font-size' => astra_responsive_font( $product_content_font_size, 'tablet' ), ), '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' => array( 'font-size' => astra_responsive_font( $edd_archive_product_title_font_size, 'tablet' ), ), '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' => array( 'font-size' => astra_responsive_font( $edd_archive_product_price_font_size, 'tablet' ), ), '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' => array( 'font-size' => astra_responsive_font( $edd_archive_product_content_font_size, 'tablet' ), ), ); $css_output .= astra_parse_css( $tablet_css, '', astra_addon_get_tablet_breakpoint() ); $mobile_css = array( '.single-download .entry-title' => array( 'font-size' => astra_responsive_font( $product_title_font_size, 'mobile' ), ), '.single-download .entry-content' => array( 'font-size' => astra_responsive_font( $product_content_font_size, 'mobile' ), ), '.ast-edd-archive-block-wrap .edd_download_title a, .edd_downloads_list .edd_download_title a' => array( 'font-size' => astra_responsive_font( $edd_archive_product_title_font_size, 'mobile' ), ), '.ast-edd-archive-block-wrap .edd_price, .edd_downloads_list .edd_price,.ast-edd-archive-block-wrap .edd_price_options, .edd_downloads_list .edd_price_options' => array( 'font-size' => astra_responsive_font( $edd_archive_product_price_font_size, 'mobile' ), ), '.ast-edd-archive-block-wrap .edd_download_excerpt p, .edd_downloads_list .edd_download_excerpt p' => array( 'font-size' => astra_responsive_font( $edd_archive_product_content_font_size, 'mobile' ), ), ); $css_output .= astra_parse_css( $mobile_css, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $css_output; } templates/checkout-footer.php 0000644 00000001030 15150254777 0012363 0 ustar 00 <?php /** * WooCommerce - Footer Template * * @package Astra Addon */ ?> <footer itemtype="https://schema.org/WPFooter" itemscope="itemscope" id="colophon" <?php astra_footer_classes(); ?>> <?php do_action( 'astra_edd_checkout_footer_content_top' ); ?> <?php ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? do_action( 'astra_below_footer' ) : astra_footer_small_footer_template(); ?> <?php do_action( 'astra_edd_checkout_footer_content_bottom' ); ?> </footer><!-- #colophon --> templates/checkout-header.php 0000644 00000001726 15150254777 0012331 0 ustar 00 <?php /** * WooCommerce - Header Template * * @package Astra Addon */ ?> <header itemtype="https://schema.org/WPHeader" itemscope="itemscope" id="masthead" <?php astra_header_classes(); ?>> <?php do_action( 'astra_edd_checkout_masthead_top' ); ?> <div class="main-header-bar-wrap"> <div class="main-header-bar"> <?php do_action( 'astra_edd_checkout_main_header_bar_top' ); ?> <div class="ast-container"> <div class="ast-flex main-header-container"> <div class="site-branding"> <div class="ast-site-identity" itemscope="itemscope" itemtype="https://schema.org/Organization"> <?php astra_logo(); ?> </div> </div> </div><!-- Main Header Container --> </div><!-- ast-row --> <?php do_action( 'astra_edd_checkout_main_header_bar_bottom' ); ?> </div> <!-- Main Header Bar --> </div> <!-- Main Header Bar Wrap --> <?php do_action( 'astra_edd_checkout_masthead_bottom' ); ?> </header><!-- #masthead --> class-astra-ext-edd.php 0000644 00000002767 15150254777 0011053 0 ustar 00 <?php /** * Typography Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_EDD_DIR', ASTRA_EXT_DIR . 'addons/edd/' ); define( 'ASTRA_ADDON_EXT_EDD_URI', ASTRA_EXT_URI . 'addons/edd/' ); if ( ! class_exists( 'Astra_Ext_Edd' ) ) { /** * Typography Initial Setup * * @since 1.6.10 */ // @codingStandardsIgnoreStart class Astra_Ext_Edd { // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks */ public function __construct() { // If plugin - 'WooCommerce' not exist then return. if ( class_exists( 'Easy_Digital_Downloads' ) ) { require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/common-functions.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/class-astra-ext-edd-markup.php'; require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/class-astra-ext-edd-loader.php'; // Include front end files. if ( ! is_admin() ) { require_once ASTRA_ADDON_EXT_EDD_DIR . 'classes/dynamic.css.php'; } } } } } if ( apply_filters( 'astra_enable_edd_integration', true ) ) { /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Edd::get_instance(); } index.php 0000644 00000000171 15150254777 0006400 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.6.10 */ /* Silence is golden, and we agree. */
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.isorus.org
Server IP: 159.223.142.74
PHP Version: 7.4.33
Server Software: Apache
System: Linux server.isorus.org 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
HDD Total: 319.99 GB
HDD Free: 212.31 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: inceptionblue
User ID (UID): 1042
Group ID (GID): 1043
Script Owner UID:
Current Dir Owner: 1042