diff --git a/README.md b/README.md index ea3c8710..dd467699 100755 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Contributors: endortrails, nhuja Donate link: https://graphpaperpress.com/plugins/sell-media/ Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart -Requires at least: 6.0.1 -Tested up to: 6.0.1 -Stable tag: 2.5.7.4 +Requires at least: 6.2.1 +Tested up to: 6.2.1 +Stable tag: 2.5.8 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -50,9 +50,9 @@ Take Sell Media to the next level with these powerful extensions: = Server Requirements = -1. PHP 7.4 or higher +1. PHP 8.1 or higher 2. CURL PHP extension -3. GD PHP extension +3. GD / ImageMagick PHP extension 4. Original file uploads are protected automatically on Apache servers using .htaccess. If you are using an NGINX server, you'll need to add this to your sites configuration file: `location ~ /wp-content/uploads/sell_media { rewrite / permanent; @@ -221,6 +221,11 @@ Action hooks available: == Changelog == += 2.5.8 = +* Fix: PHP 8.2 deprecated notices fix +* Fix: Checkout Redirect and Download link encoding bug fixes +* Fix: Added styles for checkout page + = 2.5.7.1 to 2.5.7.4 = * Fix: sanitizations and security bugs * Fix: PHP 8.0 notices diff --git a/css/sell_media.css b/css/sell_media.css index 998fdabf..d6b45e1d 100755 --- a/css/sell_media.css +++ b/css/sell_media.css @@ -4,115 +4,138 @@ -------------------------------------------------------------- */ img { max-width: 100%; - height: auto; } + height: auto; +} a:active, a:focus { - outline: 0; } + outline: 0; +} /*= Grids -------------------------------------------------------------- */ .sell-media-row { - display: flex; - /* equal height of the children */ } + display: flex; /* equal height of the children */ +} .sell-media-col { - flex: 1; - /* additionally, equal width */ } + flex: 1; /* additionally, equal width */ +} .sell-media-two-col { margin: 0 10% 10% 0; - width: 45%; } - .sell-media-two-col:nth-child(2n) { - margin-right: 0; } - .sell-media-two-col:nth-child(2n+1) { - clear: left; } + width: 45%; +} +.sell-media-two-col:nth-child(2n) { + margin-right: 0; +} +.sell-media-two-col:nth-child(2n+1) { + clear: left; +} -.sell-media-three-col, .sell-media-cart-items li .item-image, +.sell-media-three-col, .sell-media-widget-item-wrap, .sell-media-grid, .sell-media-cart-items li .item-image, .sell-media-cart-items li .item-details, -.sell-media-cart-items li .item-qty-total, .sell-media-grid, .sell-media-widget-item-wrap { +.sell-media-cart-items li .item-qty-total { margin: 0 5% 5% 0; - width: 30%; } - .sell-media-three-col:nth-child(3n), .sell-media-cart-items li .item-image:nth-child(3n), - .sell-media-cart-items li .item-details:nth-child(3n), - .sell-media-cart-items li .item-qty-total:nth-child(3n), .sell-media-grid:nth-child(3n), .sell-media-widget-item-wrap:nth-child(3n) { - margin-right: 0; } - .sell-media-three-col:nth-child(3n+1), .sell-media-cart-items li .item-image:nth-child(3n+1), - .sell-media-cart-items li .item-details:nth-child(3n+1), - .sell-media-cart-items li .item-qty-total:nth-child(3n+1), .sell-media-grid:nth-child(3n+1), .sell-media-widget-item-wrap:nth-child(3n+1) { - clear: left; } + width: 30%; +} +.sell-media-three-col:nth-child(3n), .sell-media-widget-item-wrap:nth-child(3n), .sell-media-grid:nth-child(3n), .sell-media-cart-items li .item-image:nth-child(3n), +.sell-media-cart-items li .item-details:nth-child(3n), +.sell-media-cart-items li .item-qty-total:nth-child(3n) { + margin-right: 0; +} +.sell-media-three-col:nth-child(3n+1), .sell-media-widget-item-wrap:nth-child(3n+1), .sell-media-grid:nth-child(3n+1), .sell-media-cart-items li .item-image:nth-child(3n+1), +.sell-media-cart-items li .item-details:nth-child(3n+1), +.sell-media-cart-items li .item-qty-total:nth-child(3n+1) { + clear: left; +} .sell-media-four-col { margin: 0 4% 4% 0; - width: 22%; } - .sell-media-four-col:nth-child(4n) { - margin-right: 0; } - .sell-media-four-col:nth-child(4n+1) { - clear: left; } + width: 22%; +} +.sell-media-four-col:nth-child(4n) { + margin-right: 0; +} +.sell-media-four-col:nth-child(4n+1) { + clear: left; +} .sell-media-five-col { margin: 0 2% 2% 0; - width: 18%; } - .sell-media-five-col:nth-child(5n) { - margin-right: 0; } - .sell-media-five-col:nth-child(5n+1) { - clear: left; } + width: 18%; +} +.sell-media-five-col:nth-child(5n) { + margin-right: 0; +} +.sell-media-five-col:nth-child(5n+1) { + clear: left; +} -.sell-media-main-col, .sell-media-content { +.sell-media-main-col, main .sell-media-content { clear: left; - margin-right: 5%; - width: 65%; } + margin-right: 5% !important; + width: 65%; +} .sell-media-side-col, .sell-media-meta { - width: 30%; } + width: 30%; +} .sell-media-two-col, .sell-media-three-col, +.sell-media-widget-item-wrap, +.sell-media-grid, .sell-media-cart-items li .item-image, .sell-media-cart-items li .item-details, .sell-media-cart-items li .item-qty-total, -.sell-media-grid, -.sell-media-widget-item-wrap, .sell-media-four-col, .sell-media-five-col, .sell-media-main-col, -.sell-media-content, +main .sell-media-content, .sell-media-side-col, .sell-media-meta { - float: left; } - @media only screen and (max-width: 767px) { - .sell-media-two-col, - .sell-media-three-col, - .sell-media-cart-items li .item-image, - .sell-media-cart-items li .item-details, - .sell-media-cart-items li .item-qty-total, - .sell-media-grid, - .sell-media-widget-item-wrap, - .sell-media-four-col, - .sell-media-five-col, - .sell-media-main-col, - .sell-media-content, - .sell-media-side-col, - .sell-media-meta { - clear: both; - float: none; - margin: 0 0 32px; - width: 100%; } } + float: left; +} +@media only screen and (max-width: 767px) { + .sell-media-two-col, + .sell-media-three-col, + .sell-media-widget-item-wrap, + .sell-media-grid, + .sell-media-cart-items li .item-image, + .sell-media-cart-items li .item-details, + .sell-media-cart-items li .item-qty-total, + .sell-media-four-col, + .sell-media-five-col, + .sell-media-main-col, + main .sell-media-content, + .sell-media-side-col, + .sell-media-meta { + clear: both; + float: none; + margin: 0 0 32px; + width: 100%; + } +} .sell-media-grid-item h2 { font-size: 16px; - margin: 5px 0; } + margin: 5px 0; +} .sell-media-grid-item img { max-width: 100%; - height: auto; } + height: auto; +} /* Vertical Masonry */ .sell-media-grid-item-masonry-container { - list-style: none; } + list-style: none; +} .sell-media-masonry { - margin-bottom: 10px; } + margin-bottom: 10px; +} /* Horizontal Masonry */ .sell-media-grid-item-horizontal-masonry-container { @@ -125,141 +148,180 @@ a:focus { display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; - list-style: none; } + list-style: none; +} +.sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item { + margin-right: 10px; + margin-bottom: 10px; +} +@media only screen and (max-width: 767px) { .sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item { - margin-right: 10px; - margin-bottom: 10px; } - @media only screen and (max-width: 767px) { - .sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item { - margin: 0 auto 10px; - text-align: center; } } - .sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item img { - height: 190px; - width: auto; } - @media only screen and (max-width: 767px) { - .sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item img { - height: auto; - width: 100%; } } + margin: 0 auto 10px; + text-align: center; + } +} +.sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item img { + height: 190px; + width: auto; +} +@media only screen and (max-width: 767px) { + .sell-media-grid-item-horizontal-masonry-container .sell-media-grid-item img { + height: auto; + width: 100%; + } +} .horizontal-masonry-columns { display: flex; flex-wrap: wrap; - margin: -.5rem; } - .horizontal-masonry-columns::after { - content: ''; - flex-grow: 999999999; } + margin: -0.5rem; +} +.horizontal-masonry-columns::after { + content: ""; + flex-grow: 999999999; +} .horizontal-masonry-column { - margin: .5rem; - position: relative; } - .horizontal-masonry-column i { - display: block; } - .horizontal-masonry-column img { - max-height: 150px; - width: auto; } + margin: 0.5rem; + position: relative; +} +.horizontal-masonry-column i { + display: block; +} +.horizontal-masonry-column img { + max-height: 150px; + width: auto; +} /*= Checkout Page -------------------------------------------------------------- */ body .sell-media-cart-checkout.sell-media-button { margin: 10px 0 15px; - display: inline-block; } + display: inline-block; +} .sell-media-cart-items { list-style: none; margin: 0 0 2em; - padding: 0; } - .sell-media-cart-items li { - display: block; - margin: 1em 0; } - .sell-media-cart-items li .item-qty-total { - text-align: right; } - .sell-media-cart-items li .item-qty-total .item-decrement, - .sell-media-cart-items li .item-qty-total .item-increment, - .sell-media-cart-items li .item-qty-total .item-quantity { - display: inline-block; - margin-right: 10px; } - .sell-media-cart-items li .item-qty-total .item-decrement:last-child, - .sell-media-cart-items li .item-qty-total .item-increment:last-child, - .sell-media-cart-items li .item-qty-total .item-quantity:last-child { - margin-right: 0; } - .sell-media-cart-items li .item-qty-total .dashicons { - color: black; - display: inline; - font-size: 12px; - width: 12px; - height: 12px; - padding: 8px; - text-align: center; - border: 1px solid #d5d5d5; - background: #eee; - cursor: pointer; - vertical-align: middle; } - .sell-media-cart-items li .item-qty-total .dashicons:hover { - border-color: #bbbbbb; - background-color: #d5d5d5; } - @media only screen and (max-width: 767px) { - .sell-media-cart-items li .item-details, - .sell-media-cart-items li .item-qty-total { - float: left; - width: 50%; - margin: 0 0 32px; - clear: none; } - .sell-media-cart-items li .item-details .item-name, - .sell-media-cart-items li .item-details .item-size, - .sell-media-cart-items li .item-details .item-license, - .sell-media-cart-items li .item-qty-total .item-name, - .sell-media-cart-items li .item-qty-total .item-size, - .sell-media-cart-items li .item-qty-total .item-license { - text-align: left; } } - .sell-media-cart-items .item-name, - .sell-media-cart-items .item-total { - font-weight: bold; } - .sell-media-cart-items .item-total { - margin-top: 25px; } + padding: 0; +} +.sell-media-cart-items li { + display: block; +} +.sell-media-cart-items li .item-qty-total { + text-align: right; +} +.sell-media-cart-items li .item-qty-total .item-decrement, +.sell-media-cart-items li .item-qty-total .item-increment, +.sell-media-cart-items li .item-qty-total .item-quantity { + display: inline-block; + margin-right: 10px; +} +.sell-media-cart-items li .item-qty-total .item-decrement:last-child, +.sell-media-cart-items li .item-qty-total .item-increment:last-child, +.sell-media-cart-items li .item-qty-total .item-quantity:last-child { + margin-right: 0; +} +.sell-media-cart-items li .item-qty-total .dashicons { + color: black; + display: inline; + font-size: 12px; + width: 12px; + height: 12px; + padding: 8px; + text-align: center; + border: 1px solid #d5d5d5; + background: #eee; + cursor: pointer; + vertical-align: middle; + border-radius: 5px; +} +.sell-media-cart-items li .item-qty-total .dashicons:hover { + border-color: #bbbbbb; + background-color: #d5d5d5; +} +@media only screen and (max-width: 767px) { + .sell-media-cart-items li .item-details, + .sell-media-cart-items li .item-qty-total { + float: left; + width: 50%; + margin: 0 0 32px; + clear: none; + } + .sell-media-cart-items li .item-details .item-name, + .sell-media-cart-items li .item-details .item-size, + .sell-media-cart-items li .item-details .item-license, + .sell-media-cart-items li .item-qty-total .item-name, + .sell-media-cart-items li .item-qty-total .item-size, + .sell-media-cart-items li .item-qty-total .item-license { + text-align: left; + } +} +.sell-media-cart-items .item-name, +.sell-media-cart-items .item-total { + font-weight: bold; +} +.sell-media-cart-items .item-total { + margin-top: 25px; +} .sell-media-totals { - margin: 25px 0; } - .sell-media-totals .sell-media-totals-table { - margin: 50px 0; } - .sell-media-totals .sell-media-totals-table .sell-media-key { - width: 80%; - float: left; - margin: 0 0 10px 0; - text-align: right; } - @media only screen and (max-width: 767px) { - .sell-media-totals .sell-media-totals-table .sell-media-key { - margin-right: 5%; - width: 45%; } } - .sell-media-totals .sell-media-totals-table .sell-media-value { - width: 20%; - float: left; - text-align: right; } - @media only screen and (max-width: 767px) { - .sell-media-totals .sell-media-totals-table .sell-media-value { - width: 50%; - text-align: left; } } - .sell-media-totals .sell-media-totals-table .total { - font-weight: bold; } + margin: 25px 0; +} +.sell-media-totals .sell-media-totals-table { + margin: 50px 0; +} +.sell-media-totals .sell-media-totals-table .sell-media-key { + width: 80%; + float: left; + margin: 0 0 10px 0; + text-align: right; +} +@media only screen and (max-width: 767px) { + .sell-media-totals .sell-media-totals-table .sell-media-key { + margin-right: 5%; + width: 45%; + } +} +.sell-media-totals .sell-media-totals-table .sell-media-value { + width: 20%; + float: left; + text-align: right; +} +@media only screen and (max-width: 767px) { + .sell-media-totals .sell-media-totals-table .sell-media-value { + width: 50%; + text-align: left; + } +} +.sell-media-totals .sell-media-totals-table .total { + font-weight: bold; +} +.sell-media-totals .sell-media-checkout-button { + margin: 50px 0; + text-align: right; +} +@media only screen and (max-width: 767px) { .sell-media-totals .sell-media-checkout-button { - margin: 50px 0; - text-align: right; } - @media only screen and (max-width: 767px) { - .sell-media-totals .sell-media-checkout-button { - text-align: center; } - .sell-media-totals .sell-media-checkout-button .sell-media-button { - display: block; - margin: 32px 0; - padding: 32px; } } + text-align: center; + } + .sell-media-totals .sell-media-checkout-button .sell-media-button { + display: block; + margin: 32px 0; + padding: 32px; + } +} .hide { - display: none; } + display: none; +} #sell_media_payment_gateway input { - margin-right: 10px; } + margin-right: 10px; +} /*= Buttons -------------------------------------------------------------- */ -body .sell-media-button, body .sell-media-button { cursor: pointer; justify-content: center; @@ -269,7 +331,9 @@ body .sell-media-button { border-radius: 3px; text-transform: capitalize; box-shadow: none; - text-decoration: none; } + text-decoration: none; + padding: 10px 15px; +} body input[type=submit].sell-media-button:focus, body .sell-media-button:hover, body .sell-media-button:focus, @@ -277,74 +341,93 @@ body #sell-media-submit:hover, body #sell-media-submit:focus { box-shadow: none; text-decoration: none; - border-color: #b5b5b5; } + border-color: #b5b5b5; +} body #sell-media-add-to-cart .sell-media-download-button { box-sizing: border-box; color: #fff; border-radius: 2px; font-size: 16px; - font-weight: 700; } + font-weight: 700; +} body .sell-media-button:disabled, body #sell-media-submit:disabled { border-color: #dbdbdb; box-shadow: none; - opacity: .5; - color: #363636; } + opacity: 0.5; + color: #363636; +} body input[type=submit].sell-media-button:disabled { border-color: #dbdbdb; box-shadow: none; - opacity: .5; - color: #363636; } + opacity: 0.5; + color: #363636; +} body .sell-media-button.sell-media-button-white { background-color: #fff; - border-color: #fff; } + border-color: #fff; +} body .sell-media-button.sell-media-button-white:hover { border-color: #f9f9f9; background-color: #f9f9f9; - color: #000; } + color: #000; +} body .sell-media-button.sell-media-button-light { background-color: #f5f5f5; border-color: transparent; - color: rgba(0, 0, 0, 0.7); } + color: rgba(0, 0, 0, 0.7); +} body .sell-media-button.sell-media-button-light:hover { background-color: #eee; border-color: #eee; - color: rgba(0, 0, 0, 0.7); } + color: rgba(0, 0, 0, 0.7); +} body .sell-media-button.sell-media-button-info { background-color: #3298dc; border-color: transparent; - color: #fff; } + color: #fff; +} body .sell-media-button.sell-media-button-success { background-color: #48c774; border-color: transparent; - color: #fff; } + color: #fff; +} body .sell-media-button.sell-media-button-warning { background-color: #ffdd57; border-color: transparent; - color: rgba(0, 0, 0, 0.7); } + color: rgba(0, 0, 0, 0.7); +} body .sell-media-button.sell-media-button-danger { background-color: #f14668; border-color: transparent; - color: #fff; } + color: #fff; +} body .sell-media-button.sell-media-button-link { background-color: #3273dc; border-color: transparent; - color: #fff; } + color: #fff; +} body .sell-media-button.sell-media-button-red { background-color: #e62739; border-color: transparent; - color: #fff; } + color: #fff; +} body .sell-media-button.sell-media-button-black:hover, body .sell-media-button.sell-media-button-red:hover, body .sell-media-button.sell-media-button-dark:hover, body .sell-media-button.sell-media-button-link:hover, body .sell-media-button.sell-media-button-danger:hover, body .sell-media-button.sell-media-button-warning:hover, body .sell-media-button.sell-media-button-success:hover, body .sell-media-button.sell-media-button-info:hover { - opacity: 0.8; } + opacity: 0.8; +} body .sell-media-button.sell-media-button-red:disabled, body .sell-media-button.sell-media-button-dark:disabled, body .sell-media-button.sell-media-button-danger:disabled, body .sell-media-button.sell-media-button-warning:disabled, body .sell-media-button.sell-media-button-success:disabled, body .sell-media-button.sell-media-button-info:disabled, body .sell-media-button.sell-media-button-link:disabled { - opacity: 0.9; } + opacity: 0.9; +} body .sell-media-button.sell-media-button-rounded { - border-radius: 40px; } + border-radius: 40px; +} body .sell-media-button.sell-media-button-fullwidth { - width: 100%; } + width: 100%; +} .sell-media-item-links { - font-size: 11px; } + font-size: 11px; +} /*= text field -------------------------------------------------------------- */ @@ -357,26 +440,30 @@ body .sell-media-input-text { border: 1px solid #dbdbdb; display: inline-flex; justify-content: flex-start; - line-height: 1.6; } + line-height: 1.6; +} body .sell-media-input-text:focus { border-color: #3273dc; box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); - outline: none; } + outline: none; +} /*= spinner -------------------------------------------------------------- */ .sell-media-button { - position: relative; } + position: relative; +} .sell-media-spinner-large, .sell-media-spinner-dark, .sell-media-spinner-light, .sell-media-spinner { - color: transparent !important; } + color: transparent !important; +} .sell-media-spinner:after { - -webkit-animation: spin .5s infinite linear; - animation: spin .5s infinite linear; + -webkit-animation: spin 0.5s infinite linear; + animation: spin 0.5s infinite linear; border: 2px solid #ccc; border-radius: 290486px; border-right-color: transparent; @@ -386,12 +473,13 @@ body .sell-media-input-text:focus { height: 1em; position: absolute; width: 1em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); } + left: calc(50% - 0.5em); + top: calc(50% - 0.5em); +} .sell-media-spinner-light:after { - -webkit-animation: spin .5s infinite linear; - animation: spin .5s infinite linear; + -webkit-animation: spin 0.5s infinite linear; + animation: spin 0.5s infinite linear; border: 2px solid #fff; border-radius: 290486px; border-right-color: transparent; @@ -401,12 +489,13 @@ body .sell-media-input-text:focus { height: 1em; position: absolute; width: 1em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); } + left: calc(50% - 0.5em); + top: calc(50% - 0.5em); +} .sell-media-spinner-dark:after { - -webkit-animation: spin .5s infinite linear; - animation: spin .5s infinite linear; + -webkit-animation: spin 0.5s infinite linear; + animation: spin 0.5s infinite linear; border: 2px solid #000; border-radius: 290486px; border-right-color: transparent; @@ -416,12 +505,13 @@ body .sell-media-input-text:focus { height: 1em; position: absolute; width: 1em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); } + left: calc(50% - 0.5em); + top: calc(50% - 0.5em); +} .sell-media-spinner-large:after { - -webkit-animation: spin .5s infinite linear; - animation: spin .5s infinite linear; + -webkit-animation: spin 0.5s infinite linear; + animation: spin 0.5s infinite linear; border: 2px solid #ccc; border-radius: 290486px; border-right-color: transparent; @@ -431,80 +521,102 @@ body .sell-media-input-text:focus { height: 5em; position: absolute; width: 5em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); } + left: calc(50% - 0.5em); + top: calc(50% - 0.5em); +} @-webkit-keyframes spin { 0% { - -webkit-transform: rotate(0deg); } + -webkit-transform: rotate(0deg); + } 100% { - -webkit-transform: rotate(360deg); } } + -webkit-transform: rotate(360deg); + } +} @keyframes spin { 0% { - transform: rotate(0deg); } + transform: rotate(0deg); + } 100% { - transform: rotate(360deg); } } + transform: rotate(360deg); + } +} /*= Typography -------------------------------------------------------------- */ .sell-media-title { - font-weight: 700; } + font-weight: 700; +} .sell-media-entry-title { font-size: 16px; text-decoration: none; border: none; - margin-bottom: 6px; } + margin-bottom: 6px; +} .sell-media-caption { font-style: italic; text-align: center; - font-size: 12px; } + font-size: 12px; +} /*= Product Purchases -------------------------------------------------------------- */ .sell-media-products { font-size: 12px; - width: 100%; } - .sell-media-products th { - font-weight: bold; } - .sell-media-products tr { - border: 0; } - .sell-media-products th, - .sell-media-products td { - padding: 5px; } - .sell-media-products td.sell-media-product-total, - .sell-media-products th.sell-media-product-subtotal, - .sell-media-products td.sell-media-products-grandtotal { - text-align: right; } - .sell-media-products .text-center { - text-align: center; } - .sell-media-products img { - max-width: 100px; - height: auto; - margin: 8px 0; } + width: 100%; +} +.sell-media-products th { + font-weight: bold; +} +.sell-media-products tr { + border-top-width: 1px; + border-top-style: solid; +} +.sell-media-products th, +.sell-media-products td { + padding: 5px; +} +.sell-media-products td.sell-media-product-total, +.sell-media-products th.sell-media-product-subtotal, +.sell-media-products td.sell-media-products-grandtotal { + text-align: right; +} +.sell-media-products .text-center { + text-align: center; +} +.sell-media-products img { + max-width: 100px; + height: auto; + margin: 8px 0; +} .sell-media-alignleft { float: left; text-align: left; margin: 0 20px 20px 0; - text-align: center; } + text-align: center; +} .sell-media-alignright { float: right; text-align: right; margin: 0 0 20px 20px; - text-align: center; } + text-align: center; +} .sell-media-aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 20px; - text-align: center; } + text-align: center; +} .sell-media h3 a, .sell-media-text { - text-decoration: none; } + text-decoration: none; +} /*= Breadcrumbs -------------------------------------------------------------- */ @@ -515,81 +627,104 @@ body .sell-media-input-text:focus { letter-spacing: 1px; display: block; line-height: 1; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } - @media only screen and (max-width: 767px) { - .sell-media-breadcrumbs { - float: none; - text-align: center; } } - .sell-media-breadcrumbs a { - text-decoration: none; } - .sell-media-breadcrumbs div { - display: inline-block; - margin-right: 10px; - text-decoration: none; } - .sell-media-breadcrumbs div:after { - padding-left: 10px; - content: '/'; } - .sell-media-breadcrumbs div:last-child:after { - content: ''; } + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} +@media only screen and (max-width: 767px) { + .sell-media-breadcrumbs { + float: none; + text-align: center; + } +} +.sell-media-breadcrumbs a { + text-decoration: none; +} +.sell-media-breadcrumbs div { + display: inline-block; + margin-right: 10px; + text-decoration: none; +} +.sell-media-breadcrumbs div:after { + padding-left: 10px; + content: "/"; +} +.sell-media-breadcrumbs div:last-child:after { + content: ""; +} /*= Single Layouts -------------------------------------------------------------- */ -.sell-media-content { - position: relative; } - .sell-media-content img, - .sell-media-content .wp-post-image { - display: block; - float: none; - margin: auto; - max-width: 100%; - height: auto; } - .sell-media-single-one-col .sell-media-content { - float: none; - margin: 0 0 1.5em 0; - width: 100%; } +main .sell-media-content { + position: relative; +} +main .sell-media-content img, +main .sell-media-content .wp-post-image { + display: block; + float: none; + margin: auto; + max-width: 100%; + height: auto; +} +.sell-media-single-one-col main .sell-media-content { + float: none; + margin: auto !important; + width: 100%; +} #sell-media-checkout-cart { font-size: 12px; line-height: 1.5; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} .sell-media-meta { font-size: 12px; - line-height: 1.5; } + line-height: 1.5; +} +.sell-media-meta .sell-media-button { + display: inline-block; + text-align: center; +} +.sell-media-single-two-col .sell-media-meta .sell-media-button { + width: 100%; +} +@media only screen and (max-width: 767px) { .sell-media-meta .sell-media-button { - display: inline-block; - text-align: center; } - .sell-media-single-two-col .sell-media-meta .sell-media-button { - width: 100%; } - @media only screen and (max-width: 767px) { - .sell-media-meta .sell-media-button { - width: 100%; } } - .sell-media-meta ul { - list-style-position: inside; - list-style: none; - margin: 0 0 1.5em 0; - padding: 0; } - .sell-media-meta ul li { - margin-bottom: .5em; } - .sell-media-meta ul li .title { - font-weight: 700; } - .sell-media-single-one-col .sell-media-meta { - float: none; width: 100%; - display: block; } + } +} +.sell-media-meta ul { + list-style-position: inside; + list-style: none; + margin: 0 0 1.5em 0; + padding: 0; +} +.sell-media-meta ul li { + margin-bottom: 0.5em; +} +.sell-media-meta ul li .title { + font-weight: 700; +} +.sell-media-single-one-col .sell-media-meta { + float: none; + width: 100%; + display: block; +} #sell-media-single .gallery .gallery-item a img { - max-width: 95%; } + max-width: 95%; +} /*= Galleries -------------------------------------------------------------- */ .sell-media-gallery-page .sell-media-content { float: none; margin: 0; - width: 100%; } + width: 100%; +} .single-sell_media_item .wp-caption-text { - display: none; } + display: none; +} /*= Embeds -------------------------------------------------------------- */ @@ -598,29 +733,35 @@ body .sell-media-input-text:focus { padding-bottom: 56.25%; padding-top: 35px; height: 0; - overflow: hidden; } - .sell-media-iframe-container iframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; } + overflow: hidden; +} +.sell-media-iframe-container iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} .sell-media-container { - max-width: 120rem; } + max-width: 120rem; +} /*= Archives -------------------------------------------------------------- */ #sell-media-archive { max-width: 1200px; - margin: 0 auto; } + margin: 0 auto; +} .sell-media-grid-item-container { margin: 25.6px 0; position: relative; - list-style: none; } - .sell-media-grid-item-container li { - list-style: none; } + list-style: none; +} +.sell-media-grid-item-container li { + list-style: none; +} .sell-media-grid-single-video-item div.sell-media-quick-view:before, .sell-media-grid-single-audio-item div.sell-media-quick-view:before { @@ -631,183 +772,199 @@ body .sell-media-input-text:focus { margin: 1px 0 0 5px; position: absolute; top: 3px; - left: 0px; } + left: 0px; +} .sell-media-item { box-shadow: none !important; position: relative; display: block; font-weight: normal; - text-decoration: none; } - .sell-media-one-col .sell-media-item { - margin-bottom: 32px; } - .sell-media-item img { - display: block; - margin: 0 auto; - width: 100%; } - .sell-media-item .sell-media-quick-view, - .sell-media-item .sell-media-view-gallery { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 12px; - letter-spacing: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - margin-left: auto; - margin-right: auto; - color: #fff; - background: rgba(0, 0, 0, 0.5); - line-height: 1; - text-align: center; - text-transform: uppercase; - padding: 10px 0; - width: 100%; - display: table; - transition: all 0.5s ease; - z-index: 1; - opacity: 0; } - .sell-media-item .sell-media-quick-view:hover, - .sell-media-item .sell-media-view-gallery:hover { - background: #000; } - .sell-media-item:hover img { - opacity: 1; } - .sell-media-item:hover .sell-media-quick-view, - .sell-media-item:hover .sell-media-view-gallery { - margin-bottom: 0; - opacity: 1; } + text-decoration: none; +} +.sell-media-one-col .sell-media-item { + margin-bottom: 32px; +} +.sell-media-item img { + display: block; + margin: 0 auto; + width: 100%; +} +.sell-media-item .sell-media-quick-view, +.sell-media-item .sell-media-view-gallery { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 12px; + letter-spacing: 1px; + position: absolute; + bottom: 0; + left: 0; + right: 0; + margin-left: auto; + margin-right: auto; + color: #fff; + background: rgba(0, 0, 0, 0.5); + line-height: 1; + text-align: center; + text-transform: uppercase; + padding: 10px 0; + width: 100%; + display: table; + transition: all 0.5s ease; + z-index: 1; + opacity: 0; +} +.sell-media-item .sell-media-quick-view:hover, +.sell-media-item .sell-media-view-gallery:hover { + background: #000; +} +.sell-media-item:hover img { + opacity: 1; +} +.sell-media-item:hover .sell-media-quick-view, +.sell-media-item:hover .sell-media-view-gallery { + margin-bottom: 0; + opacity: 1; +} /*= Overlays -------------------------------------------------------------- */ .item-inner, .sell-media-item-wrap { background: #000; - position: relative; } - .item-inner .item-overlay, - .item-inner .sell-media-item-details, - .sell-media-item-wrap .item-overlay, - .sell-media-item-wrap .sell-media-item-details { - color: #fff; - opacity: 0; - transition: all 0.25s ease; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 80%; - text-align: center; - text-transform: none; - font-size: 16px; - letter-spacing: 0; } - .item-inner .item-overlay .collection-details, - .item-inner .item-overlay .sell-media-collection-details, - .item-inner .sell-media-item-details .collection-details, - .item-inner .sell-media-item-details .sell-media-collection-details, - .sell-media-item-wrap .item-overlay .collection-details, - .sell-media-item-wrap .item-overlay .sell-media-collection-details, - .sell-media-item-wrap .sell-media-item-details .collection-details, - .sell-media-item-wrap .sell-media-item-details .sell-media-collection-details { - font-size: 16px; - line-height: 24px; - display: block; - padding: 0; - position: relative; - width: 100%; } - .item-inner .item-overlay .collection-count, - .item-inner .item-overlay .collection-price, - .item-inner .item-overlay .sell-media-collection-count, - .item-inner .item-overlay .sell-media-collection-price, - .item-inner .sell-media-item-details .collection-count, - .item-inner .sell-media-item-details .collection-price, - .item-inner .sell-media-item-details .sell-media-collection-count, - .item-inner .sell-media-item-details .sell-media-collection-price, - .sell-media-item-wrap .item-overlay .collection-count, - .sell-media-item-wrap .item-overlay .collection-price, - .sell-media-item-wrap .item-overlay .sell-media-collection-count, - .sell-media-item-wrap .item-overlay .sell-media-collection-price, - .sell-media-item-wrap .sell-media-item-details .collection-count, - .sell-media-item-wrap .sell-media-item-details .collection-price, - .sell-media-item-wrap .sell-media-item-details .sell-media-collection-count, - .sell-media-item-wrap .sell-media-item-details .sell-media-collection-price { - display: block; } - .item-inner a, - .sell-media-item-wrap a { - font-weight: normal; - text-decoration: none; - display: block; - line-height: 0; } - .item-inner img, - .sell-media-item-wrap img { - opacity: 1; - transition: all 0.25s ease; } - .item-inner h3, - .sell-media-item-wrap h3 { - opacity: 1; - transition: opacity .25s ease-in-out; - -moz-transition: opacity .25s ease-in-out; - -webkit-transition: opacity .25s ease-in-out; - position: absolute; - bottom: 0 !important; - /* override legacy theme styles */ - top: auto !important; - /* override legacy theme styles */ - text-align: left; - text-transform: uppercase; - margin: 0 !important; - /* override legacy theme styles */ - padding: 10px !important; - /* override legacy theme styles */ - width: 100% !important; - /* override legacy theme styles */ - max-width: 100% !important; - /* override legacy theme styles */ - box-sizing: border-box; - background: rgba(0, 0, 0, 0.5); - color: #fff; - font-size: 12px !important; - /* override legacy theme styles */ - letter-spacing: 1px; - font-style: normal; - font-weight: normal; - line-height: 16px !important; - /* override legacy theme styles */ } - .item-inner:hover .item-overlay, - .item-inner:hover .sell-media-item-details, - .sell-media-item-wrap:hover .item-overlay, - .sell-media-item-wrap:hover .sell-media-item-details { - opacity: 1; } - .item-inner:hover img, - .sell-media-item-wrap:hover img { - opacity: .5 !important; } - .item-inner:hover h3, - .sell-media-item-wrap:hover h3 { - opacity: 1; } + position: relative; +} +.item-inner .item-overlay, +.item-inner .sell-media-item-details, +.sell-media-item-wrap .item-overlay, +.sell-media-item-wrap .sell-media-item-details { + color: #fff; + opacity: 0; + transition: all 0.25s ease; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 80%; + text-align: center; + text-transform: none; + font-size: 16px; + letter-spacing: 0; +} +.item-inner .item-overlay .collection-details, +.item-inner .item-overlay .sell-media-collection-details, +.item-inner .sell-media-item-details .collection-details, +.item-inner .sell-media-item-details .sell-media-collection-details, +.sell-media-item-wrap .item-overlay .collection-details, +.sell-media-item-wrap .item-overlay .sell-media-collection-details, +.sell-media-item-wrap .sell-media-item-details .collection-details, +.sell-media-item-wrap .sell-media-item-details .sell-media-collection-details { + font-size: 16px; + line-height: 24px; + display: block; + padding: 0; + position: relative; + width: 100%; +} +.item-inner .item-overlay .collection-count, +.item-inner .item-overlay .collection-price, +.item-inner .item-overlay .sell-media-collection-count, +.item-inner .item-overlay .sell-media-collection-price, +.item-inner .sell-media-item-details .collection-count, +.item-inner .sell-media-item-details .collection-price, +.item-inner .sell-media-item-details .sell-media-collection-count, +.item-inner .sell-media-item-details .sell-media-collection-price, +.sell-media-item-wrap .item-overlay .collection-count, +.sell-media-item-wrap .item-overlay .collection-price, +.sell-media-item-wrap .item-overlay .sell-media-collection-count, +.sell-media-item-wrap .item-overlay .sell-media-collection-price, +.sell-media-item-wrap .sell-media-item-details .collection-count, +.sell-media-item-wrap .sell-media-item-details .collection-price, +.sell-media-item-wrap .sell-media-item-details .sell-media-collection-count, +.sell-media-item-wrap .sell-media-item-details .sell-media-collection-price { + display: block; +} +.item-inner a, +.sell-media-item-wrap a { + font-weight: normal; + text-decoration: none; + display: block; + line-height: 0; +} +.item-inner img, +.sell-media-item-wrap img { + opacity: 1; + transition: all 0.25s ease; +} +.item-inner h3, +.sell-media-item-wrap h3 { + opacity: 1; + transition: opacity 0.25s ease-in-out; + -moz-transition: opacity 0.25s ease-in-out; + -webkit-transition: opacity 0.25s ease-in-out; + position: absolute; + bottom: 0 !important; /* override legacy theme styles */ + top: auto !important; /* override legacy theme styles */ + text-align: left; + text-transform: uppercase; + margin: 0 !important; /* override legacy theme styles */ + padding: 10px !important; /* override legacy theme styles */ + width: 100% !important; /* override legacy theme styles */ + max-width: 100% !important; /* override legacy theme styles */ + box-sizing: border-box; + background: rgba(0, 0, 0, 0.5); + color: #fff; + font-size: 12px !important; /* override legacy theme styles */ + letter-spacing: 1px; + font-style: normal; + font-weight: normal; + line-height: 16px !important; /* override legacy theme styles */ +} +.item-inner:hover .item-overlay, +.item-inner:hover .sell-media-item-details, +.sell-media-item-wrap:hover .item-overlay, +.sell-media-item-wrap:hover .sell-media-item-details { + opacity: 1; +} +.item-inner:hover img, +.sell-media-item-wrap:hover img { + opacity: 0.5 !important; +} +.item-inner:hover h3, +.sell-media-item-wrap:hover h3 { + opacity: 1; +} /*= Lightbox -------------------------------------------------------------- */ .sell-media-add-to-lightbox { font-size: 12px; - margin: 16px 0; } + margin: 16px 0; +} .sell-media-meta .lightbox-notice.not-in-lightbox { display: none; - margin: 1em 0; } + margin: 1em 0; +} .sell-media-meta .lightbox-notice.in-lightbox { display: block; - margin: 1em 0; } + margin: 1em 0; +} .sell-media .empty-lightbox { color: red; - cursor: pointer; } + cursor: pointer; +} /*= Pagination -------------------------------------------------------------- */ .sell-media-pagination-container { clear: both; margin: 3em auto; - text-align: center; } - .sell-media-pagination-container .page-numbers { - padding: 0 3px; } + text-align: center; +} +.sell-media-pagination-container .page-numbers { + padding: 0 3px; +} /*= Enlarge -------------------------------------------------------------- */ @@ -817,43 +974,48 @@ body .sell-media-input-text:focus { margin: 0 0 1em; padding: 0; position: relative; - -webkit-transition: all .5s ease; - -moz-transition: all .5s ease; - -o-transition: all .5s ease; - transition: all .5s ease; } - .sell-media-gallery-thumbnail:before { - font-family: "Dashicons"; - color: #fff; - color: rgba(255, 255, 255, 0.8); - content: "\f179"; - font-size: 36px; - width: 36px; - height: 36px; - position: absolute; - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - -moz-transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - -o-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - line-height: 1; - opacity: 0; - transition: all .25s ease-in-out; - -moz-transition: all .25s ease-in-out; - -webkit-transition: all .25s ease-in-out; - z-index: 10; } - .sell-media-gallery-thumbnail img { - float: left; - opacity: 1; - -webkit-backface-visibility: hidden; - transition: all .25s ease-in-out; - -moz-transition: all .25s ease-in-out; - -webkit-transition: all .25s ease-in-out; } - .sell-media-gallery-thumbnail:hover:before { - opacity: .6; } - .sell-media-gallery-thumbnail:hover img { - opacity: .8; } + -webkit-transition: all 0.5s ease; + -moz-transition: all 0.5s ease; + -o-transition: all 0.5s ease; + transition: all 0.5s ease; +} +.sell-media-gallery-thumbnail:before { + font-family: "Dashicons"; + color: #fff; + color: rgba(255, 255, 255, 0.8); + content: "\f179"; + font-size: 36px; + width: 36px; + height: 36px; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + -moz-transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + -o-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + line-height: 1; + opacity: 0; + transition: all 0.25s ease-in-out; + -moz-transition: all 0.25s ease-in-out; + -webkit-transition: all 0.25s ease-in-out; + z-index: 10; +} +.sell-media-gallery-thumbnail img { + float: left; + opacity: 1; + -webkit-backface-visibility: hidden; + transition: all 0.25s ease-in-out; + -moz-transition: all 0.25s ease-in-out; + -webkit-transition: all 0.25s ease-in-out; +} +.sell-media-gallery-thumbnail:hover:before { + opacity: 0.6; +} +.sell-media-gallery-thumbnail:hover img { + opacity: 0.8; +} /*= Quick View Dialog -------------------------------------------------------------- */ @@ -871,132 +1033,171 @@ body .sell-media-input-text:focus { box-sizing: border-box; z-index: 5000; opacity: 0; - visibility: hidden; } - .sell-media-dialog-box a:not(.sell-media-button), - .sell-media-dialog-box a:not(.sell-media-button):visited, - .sell-media-dialog-box a, - .sell-media-dialog-box a:visited { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - text-decoration: none; } - .sell-media-dialog-box p, - .sell-media-dialog-box label, - .sell-media-dialog-box h2 { - color: black; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - text-decoration: none; } - .sell-media-dialog-box a:not(.sell-media-button):hover, - .sell-media-dialog-box a:not(.sell-media-button):focus { - color: #000; } - .sell-media-dialog-box p { - margin: 0 0 16px; } - .sell-media-dialog-box img { - max-width: 100%; - max-height: 100%; - margin: 0 auto; } - .sell-media-dialog-box fieldset { - background-color: #fff; } - .sell-media-dialog-box #sell-media-dialog-box-target { - background-color: #fff; - position: relative; - max-width: 1000px; - width: 100% !important; - margin: 4em auto; } + visibility: hidden; +} +.sell-media-dialog-box a:not(.sell-media-button), +.sell-media-dialog-box a:not(.sell-media-button):visited, +.sell-media-dialog-box a, +.sell-media-dialog-box a:visited { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + text-decoration: none; +} +.sell-media-dialog-box p, +.sell-media-dialog-box label, +.sell-media-dialog-box h2 { + color: black; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + text-decoration: none; +} +.sell-media-dialog-box a:not(.sell-media-button):hover, +.sell-media-dialog-box a:not(.sell-media-button):focus { + color: #000; +} +.sell-media-dialog-box p { + margin: 0 0 16px; +} +.sell-media-dialog-box img { + max-width: 100%; + max-height: 100%; + margin: 0 auto; +} +.sell-media-dialog-box fieldset { + background-color: #fff; +} +.sell-media-dialog-box #sell-media-dialog-box-target { + background-color: #fff; + position: relative; + max-width: 1000px; + width: 100% !important; + margin: 4em auto; +} +.sell-media-dialog-box .sell-media-quick-view-container { + background-color: #fff; + display: flex; +} +@media only screen and (max-width: 768px) { .sell-media-dialog-box .sell-media-quick-view-container { - background-color: #fff; - display: flex; } - @media only screen and (max-width: 768px) { - .sell-media-dialog-box .sell-media-quick-view-container { - padding: 0; } } - .sell-media-dialog-box .sell-media-quick-view-image { - clear: left; - margin-right: 0; - width: 65%; - margin-bottom: 0 !important; } + padding: 0; + } +} +.sell-media-dialog-box .sell-media-quick-view-image { + clear: left; + margin-right: 0; + width: 65%; + margin-bottom: 0 !important; +} +.sell-media-dialog-box .sell-media-quick-view-content { + width: 35%; + padding: 32px 32px; + margin-bottom: 0 !important; +} +@media only screen and (max-width: 768px) { .sell-media-dialog-box .sell-media-quick-view-content { - width: 35%; - padding: 32px 32px; - margin-bottom: 0 !important; } - @media only screen and (max-width: 768px) { - .sell-media-dialog-box .sell-media-quick-view-content { - margin: 0; } } - .sell-media-dialog-box .sell-media-quick-view-content h6 { - font-size: 16px; - font-weight: bold; - line-height: 1.4; - margin: 0 0 24px; - padding: 0; } + margin: 0; + } +} +.sell-media-dialog-box .sell-media-quick-view-content h6 { + font-size: 16px; + font-weight: bold; + line-height: 1.4; + margin: 0 0 24px; + padding: 0; +} +.sell-media-dialog-box .close { + color: #b3b3b3; + right: 0; + top: 0; + position: fixed; + cursor: pointer; + font-size: 32px; + line-height: 1; + text-align: center; + width: 34px; + height: 36px; +} +.admin-bar .sell-media-dialog-box .close { + top: 32px; +} +@media only screen and (max-width: 768px) { + .admin-bar .sell-media-dialog-box .close { + top: 42px; + } +} +@media only screen and (max-width: 768px) { .sell-media-dialog-box .close { - color: #b3b3b3; - right: 0; - top: 0; - position: fixed; - cursor: pointer; - font-size: 32px; - line-height: 1; - text-align: center; - width: 34px; - height: 36px; } - .admin-bar .sell-media-dialog-box .close { - top: 32px; } - @media only screen and (max-width: 768px) { - .admin-bar .sell-media-dialog-box .close { - top: 42px; } } - @media only screen and (max-width: 768px) { - .sell-media-dialog-box .close { - color: #fff; } } - .sell-media-dialog-box .close:hover { - color: #fff; } - .sell-media-dialog-box .sell-media-button { - width: 100%; } - .sell-media-dialog-box .sell-media-credit { color: #fff; - font-size: 11px; - position: absolute; - bottom: -32px; - left: 0; - right: 0; - margin: auto; - text-align: center; } - .sell-media-dialog-box .sell-media-credit a { - color: #fff; - text-decoration: none; } - .sell-media-dialog-box.is-visible { - opacity: 1; - visibility: visible; } - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow { - position: absolute; - display: inline; - z-index: 1000; - color: rgba(255, 255, 255, 0.7); - top: 45%; - text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.5); } - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow:hover { - color: #fff; } - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow span { - font-size: 35px; - height: 40px; - width: 40px; } - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-prev { - left: -40px; - float: left; } - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-next { - float: right; - right: -40px; } - @media only screen and (max-width: 768px) { - .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-next { - float: right; } } - @media only screen and (min-width: 1170px) { - .sell-media-dialog-box #sell-media-dialog-box-target { - margin: 8em auto; } } + } +} +.sell-media-dialog-box .close:hover { + color: #fff; +} +.sell-media-dialog-box .sell-media-button { + width: 100%; +} +.sell-media-dialog-box .sell-media-credit { + color: #fff; + font-size: 11px; + position: absolute; + bottom: -32px; + left: 0; + right: 0; + margin: auto; + text-align: center; +} +.sell-media-dialog-box .sell-media-credit a { + color: #fff; + text-decoration: none; +} +.sell-media-dialog-box.is-visible { + opacity: 1; + visibility: visible; +} +.sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow { + position: absolute; + display: inline; + z-index: 1000; + color: rgba(255, 255, 255, 0.7); + top: 45%; + text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.5); +} +.sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow:hover { + color: #fff; +} +.sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-arrow span { + font-size: 35px; + height: 40px; + width: 40px; +} +.sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-prev { + left: -40px; + float: left; +} +.sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-next { + float: right; + right: -40px; +} +@media only screen and (max-width: 768px) { + .sell-media-dialog-box.is-visible #sell-media-dialog-box-target .sell-media-dialog-box-next { + float: right; + } +} +@media only screen and (min-width: 1170px) { + .sell-media-dialog-box #sell-media-dialog-box-target { + margin: 8em auto; + } +} .sell-media-dialog-box-content { min-height: 150px; - max-width: 100%; } - .sell-media-dialog-box-content .sell-media-quick-view-image .sell_media_image { - object-fit: contain; } + max-width: 100%; +} +.sell-media-dialog-box-content .sell-media-quick-view-image .sell_media_image { + object-fit: contain; +} .quick_view_modal_popup_open { - overflow: hidden; } + overflow: hidden; +} div#sell-media-dialog-box { position: fixed; @@ -1005,11 +1206,13 @@ div#sell-media-dialog-box { overflow: auto; display: flex; flex-wrap: wrap; - align-items: center; } - div#sell-media-dialog-box div#sell-media-dialog-box-target { - top: 0 !important; - margin: 0 auto !important; - max-height: unset; } + align-items: center; +} +div#sell-media-dialog-box div#sell-media-dialog-box-target { + top: 0 !important; + margin: 0 auto !important; + max-height: unset; +} .sell-media-dialog-box .sell-media-quick-view-image { margin-bottom: 0 !important; @@ -1018,42 +1221,55 @@ div#sell-media-dialog-box { display: flex; align-items: center; justify-content: center; - max-height: 100vh; } + max-height: 100vh; +} p.sell-media-item-password-protected { text-align: center; width: 100%; font-weight: bold; font-size: 16px; - letter-spacing: 0.5px; } - p.sell-media-item-password-protected a { - color: #808080 !important; - text-decoration: underline !important; } - p.sell-media-item-password-protected a:hover { - text-decoration: none !important; } + letter-spacing: 0.5px; +} +p.sell-media-item-password-protected a { + color: #808080 !important; + text-decoration: underline !important; +} +p.sell-media-item-password-protected a:hover { + text-decoration: none !important; +} body .sell-media-plan-btn.sell-media-button { - margin: 16px 0; } + margin: 16px 0; +} body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { - display: flex; } + display: flex; +} #sell-media-lightbox-content { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} .sell-media-dialog-box-terms { - overflow: scroll; } + overflow: scroll; +} +.sell-media-dialog-box-terms #sell-media-dialog-box-target { + max-height: 500px; + width: 500px; + overflow-y: scroll; +} +.sell-media-dialog-box-terms #sell-media-dialog-box-target .content { + padding: 5px 10px; +} +@media only screen and (max-width: 768px) { + .sell-media-dialog-box-terms { + overflow: scroll; + } .sell-media-dialog-box-terms #sell-media-dialog-box-target { max-height: 500px; - width: 500px; - overflow-y: scroll; } - .sell-media-dialog-box-terms #sell-media-dialog-box-target .content { - padding: 5px 10px; } - @media only screen and (max-width: 768px) { - .sell-media-dialog-box-terms { - overflow: scroll; } - .sell-media-dialog-box-terms #sell-media-dialog-box-target { - max-height: 500px; - width: 302px; } } + width: 302px; + } +} /*= Select Fields -------------------------------------------------------------- */ @@ -1065,7 +1281,8 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); - border: 0; } + border: 0; +} .sell-media-select { cursor: pointer; @@ -1076,40 +1293,43 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { border: 1px solid #dbdbdb; border-radius: 4px; height: auto; - padding-bottom: calc(.5em - 1px); - padding-left: calc(.90em - 1px); + padding-bottom: calc(0.5em - 1px); + padding-left: calc(0.9em - 1px); padding-right: calc(2.5em - 1px); - padding-top: calc(.5em - 1px); + padding-top: calc(0.5em - 1px); -moz-appearance: none; -webkit-appearance: none; appearance: none; - background-image: none; } + background-image: none; +} .sell-media-select-box { position: relative; - display: inline-flex; } - .sell-media-select-box:not(.sell-media-select-loading)::after { - border: 3px solid transparent; - border-radius: 2px; - border-right: 0; - border-top: 0; - content: " "; - display: block; - height: .79em; - margin-top: -.5375em; - pointer-events: none; - position: absolute; - top: 50%; - transform: rotate(-45deg); - transform-origin: center; - width: .79em; - border-color: #3273dc; - right: 1.125em; - z-index: 4; } + display: inline-flex; +} +.sell-media-select-box:not(.sell-media-select-loading)::after { + border: 3px solid transparent; + border-radius: 2px; + border-right: 0; + border-top: 0; + content: " "; + display: block; + height: 0.79em; + margin-top: -0.5375em; + pointer-events: none; + position: absolute; + top: 50%; + transform: rotate(-45deg); + transform-origin: center; + width: 0.79em; + border-color: #3273dc; + right: 1.125em; + z-index: 4; +} .sell-media-select-loading:after { - -webkit-animation: spin .5s infinite linear; - animation: spin .5s infinite linear; + -webkit-animation: spin 0.5s infinite linear; + animation: spin 0.5s infinite linear; border: 2px solid #dbdbdb; border-radius: 290486px; border-right-color: transparent; @@ -1122,74 +1342,94 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { top: 0; transform: none; left: auto; - right: 1.125em; } + right: 1.125em; +} .sell-media-select-loading.sell-media-select-loading-dark:after { border: 2px solid #000; border-right-color: transparent; - border-top-color: transparent; } + border-top-color: transparent; +} + +.sell-media-search-inner { + width: 100%; +} .sell-media-search-field .sell-media-select-box:not(.sell-media-select-loading)::after { border-width: 2px; - width: .4em; - height: .4em; + width: 0.4em; + height: 0.4em; right: 12%; top: 30%; - margin: 0; } + margin: 0; +} .sell-media-select-small .sell-media-select { - font-size: 0.8em; } + font-size: 0.8em; +} .sell-media-select-box.sell-media-select-small:not(.sell-media-select-loading):after { - width: .6em; - height: .6em; + width: 0.6em; + height: 0.6em; border-width: 2px; - margin-top: -.45em; - right: 0.7em; } + margin-top: -0.45em; + right: 0.7em; +} /*= Cart Fields -------------------------------------------------------------- */ .colors-dark .sell-media-meta .sell-media-add-to-cart-fields, .colors-dark .sell-media-meta .sell-media-add-to-cart-fields fieldset { - border-color: #333; } + border-color: #333; +} .sell-media-add-to-cart-fields { - border-top: 1px solid #eee; } - .sell-media-add-to-cart-fields fieldset { - padding: 12px 0; - border: 0; - background-color: transparent; - display: flex; - align-items: center; } - .sell-media-add-to-cart-fields label { - display: inline-block; - font-weight: normal; - font-size: 12px; - width: 40%; - margin-bottom: 0; } - .sell-media-add-to-cart-fields input[type="radio"] { - margin-right: 5px; } - .sell-media-add-to-cart-fields .sell-media-tooltip { - color: #b3b3b3; - font-size: 12px; } + border-top: 1px solid #eee; +} +.sell-media-add-to-cart-fields fieldset { + padding: 12px 0; + border: 0; + background-color: transparent; + display: flex; + align-items: center; +} +.sell-media-add-to-cart-fields label { + display: inline-block; + font-weight: normal; + font-size: 12px; + width: 40%; + margin-bottom: 0; +} +.sell-media-add-to-cart-fields input[type=radio] { + margin-right: 5px; +} +.sell-media-add-to-cart-fields .sell-media-tooltip { + color: #b3b3b3; + font-size: 12px; +} .total-container, .button-container { clear: both; - margin: 16px 0 0; } + margin: 16px 0 0; +} .total-container { - text-transform: uppercase; } + text-transform: uppercase; +} .price-container { - color: green; } + color: green; +} .subtotal { font-weight: bold; - margin-bottom: 25.6px; } + margin-bottom: 25.6px; +} .cart { padding-left: 16px; - background: url(../images/cart.png) no-repeat 0 50%; } + background: url(../images/cart.png) no-repeat 0 50%; +} /*= Search -------------------------------------------------------------- */ @@ -1197,7 +1437,8 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { clear: both; height: 90px; margin: 20px auto; - position: relative; } + position: relative; +} .sell-media-search-form { border: 1px solid #ccc; @@ -1212,18 +1453,22 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - display: flex; } - .sell-media-search-form.active { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } + display: flex; +} +.sell-media-search-form.active { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); +} .sell-media-search-query { font-size: 20px; float: left; - width: 70%; } + width: 70%; +} .sell-media-search-submit { float: right; - width: 30%; } + width: 30%; +} .sell-media-search-query input[type=text], .sell-media-search-submit input[type=submit] { @@ -1231,16 +1476,19 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { padding: 10px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; - box-sizing: border-box; } + box-sizing: border-box; +} .sell-media-search-query input[type=text] { border: 1px solid #ccc; - border-right: 0; } + border-right: 0; +} .sell-media-search-query input[type=text], .sell-media-search-submit input[type=submit] { border-radius: 0; - width: 100%; } + width: 100%; +} .sell-media-search-submit input[type=submit] { background: gray; @@ -1253,79 +1501,96 @@ body .sell-media-quick-view-container .sell-media-plan-btn.sell-media-button { font-size: 12px; margin: 0; text-shadow: none; - text-transform: uppercase; } + text-transform: uppercase; +} .sell-media-search-submit input[type=submit]:hover { background: #000; - box-shadow: none; } + box-shadow: none; +} .sell-media-search-hidden { - margin: 10px 0; } + margin: 10px 0; +} input.sell-media-search-text[type=text] { background: #fff; border-radius: 0; color: gray; font-size: 12px; - margin: 0; } + margin: 0; +} .sell-media-search-field input { padding: 6px; - height: auto; } + height: auto; +} .sell-media-search-field label { display: inline-block; font-size: 12px; margin-right: 10px; padding: 0; - width: 150px; } + width: 150px; +} .sell-media-search-field select { border: 1px solid gray; display: inline-block; font-size: 12px; - width: 100px; } + width: 100px; +} .sell-media-search-hidden { display: none; - margin-top: 10px; } + margin-top: 10px; +} .sell-media-search-help { color: gray; font-size: 12px; - margin-bottom: 16px; } - .sell-media-search-help ul { - list-style-position: inside; } + margin-bottom: 16px; +} +.sell-media-search-help ul { + list-style-position: inside; +} .sell-media-search-close { color: black; display: none; float: right !important; - text-decoration: none !important; } - .sell-media-search-close:hover { - cursor: pointer; } + text-decoration: none !important; +} +.sell-media-search-close:hover { + cursor: pointer; +} .sell-media-search-results-text { font-size: 24px; font-weight: 900; - margin: 24px 0; } + margin: 24px 0; +} .sell-media-related-keywords { margin: 0 0 1em; padding: 1em 0; border-top: 1px solid #eee; - border-bottom: 1px solid #eee; } + border-bottom: 1px solid #eee; +} .sell-media-related-keywords-title, .sell-media-related-keywords ul { display: inline; - font-size: 1em; } + font-size: 1em; +} .sell-media-related-keywords-title { font-weight: 900; - margin-right: 1em; } + margin-right: 1em; +} .sell-media-related-keywords li { display: inline-block; - margin-right: .5em; } + margin-right: 0.5em; +} /*= Shortcodes -------------------------------------------------------------- */ @@ -1336,21 +1601,26 @@ input.sell-media-search-text[type=text] { margin: 0; padding: 0; width: 70%; - line-height: 1em; } + line-height: 1em; +} .sell-media .sell-media-shortcode-all .sell-media-grid-item .sell-media-text { - font-size: 1em; } + font-size: 1em; +} /* sell_media_download_list */ .downloads { margin: 1em 0; - clear: both; } - .downloads .download { - display: block; - clear: both; } - .downloads img { - float: left; - margin: 0 20px 20px 0; } + clear: both; +} +.downloads .download { + display: block; + clear: both; +} +.downloads img { + float: left; + margin: 0 20px 20px 0; +} .sell-media-ajax-loader { background: url(../images/ajax-loader.gif) no-repeat center center; @@ -1359,57 +1629,66 @@ input.sell-media-search-text[type=text] { text-align: center; padding-top: 100px; color: #BBB; - font-size: 12px; } + font-size: 12px; +} #purchase-history td { vertical-align: top; border-bottom: 1px solid #DFDFDF; - padding: 10px 0 5px 0; } + padding: 10px 0 5px 0; +} #purchase-history th { border: solid #DFDFDF; border-width: 1px 0 1px 0; - padding: 10px 0; } + padding: 10px 0; +} #purchase-history table { font-size: 13px; - margin-bottom: 50px; } + margin-bottom: 50px; +} #purchase-history ul.payment-meta { margin: 10px 0; padding: 0; - font-size: 12px; } + font-size: 12px; +} /*= Form styling ------------------------------------------------------------------- */ -.sell-media-form input[type="number"].small-text { - width: 40px; } +.sell-media-form input[type=number].small-text { + width: 40px; +} .sell-media-tooltip { display: inline; position: relative; cursor: help; - font-size: 11px; } - .sell-media-tooltip:hover:after { - background: #333; - background: rgba(0, 0, 0, 0.8); - border-radius: 2px; - bottom: 26px; - color: #fff; - content: attr(data-tooltip); - left: 0; - padding: 8px 12px; - position: absolute; - z-index: 98; - width: 180px; - font-size: 12px; - line-height: 1.5; } - .sell-media-tooltip:hover:before { - border: solid; - border-color: #333 transparent; - border-width: 6px 6px 0 6px; - bottom: 20px; - content: ""; - left: 50%; - position: absolute; - z-index: 99; } + font-size: 11px; +} +.sell-media-tooltip:hover:after { + background: #333; + background: rgba(0, 0, 0, 0.8); + border-radius: 2px; + bottom: 26px; + color: #fff; + content: attr(data-tooltip); + left: 0; + padding: 8px 12px; + position: absolute; + z-index: 98; + width: 180px; + font-size: 12px; + line-height: 1.5; +} +.sell-media-tooltip:hover:before { + border: solid; + border-color: #333 transparent; + border-width: 6px 6px 0 6px; + bottom: 20px; + content: ""; + left: 50%; + position: absolute; + z-index: 99; +} /*= Notifications -----------------------------------------------------------------------*/ @@ -1418,10 +1697,12 @@ input.sell-media-search-text[type=text] { margin: 25.6px 0; padding: 16px; background: #FFFCDD; - text-align: center; } - .sell-media-added a, - .sell-media-added a:hover { - color: black; } + text-align: center; +} +.sell-media-added a, +.sell-media-added a:hover { + color: black; +} /*= Terms and Conditions -----------------------------------------------------------------------*/ @@ -1433,36 +1714,41 @@ input.sell-media-search-text[type=text] { color: black; box-shadow: 0 0 40px #000; padding: 25px; - line-height: 1.5em; } - #terms-and-conditions-dialog .close { - cursor: pointer; - font-size: 20px; - position: absolute; - right: 5px; - text-align: center; - top: 5px; - width: 20px; } + line-height: 1.5em; +} +#terms-and-conditions-dialog .close { + cursor: pointer; + font-size: 20px; + position: absolute; + right: 5px; + text-align: center; + top: 5px; + width: 20px; +} #sell_media_termsdiv { - clear: both; } + clear: both; +} #sell_media_terms_cb { - margin: 5px 5px 0 0; } + margin: 5px 5px 0 0; +} /*= Error styling -------------------------------------------------------------- */ .sell-media-error { font-size: 13px; margin: 0 0 0 7px; - color: #ff0000; } + color: #ff0000; +} /*= Clearing Floats -------------------------------------------------------------- */ -.cf:before, .sell-media-single-one-col .sell-media-content:before, .sell-media-gallery:before, .sell-media-dialog-box .sell-media-quick-view-container:before, .sell-media-add-to-cart-fields fieldset:before, +.cf:before, .sell-media-single-one-col main .sell-media-content:before, .sell-media-gallery:before, .sell-media-dialog-box .sell-media-quick-view-container:before, .sell-media-add-to-cart-fields fieldset:before, .cf:after, .sell-media-cart-items li:after, .sell-media-meta:after, -.sell-media-single-one-col .sell-media-content:after, +.sell-media-single-one-col main .sell-media-content:after, .sell-media-gallery:after, .sell-media-dialog-box .sell-media-quick-view-container:after, .sell-media-add-to-cart-fields fieldset:after, @@ -1471,12 +1757,14 @@ input.sell-media-search-text[type=text] { .wp-advanced-search:before, .wp-advanced-search:after { content: " "; - display: table; } + display: table; +} -.cf:after, .sell-media-cart-items li:after, .sell-media-meta:after, .sell-media-single-one-col .sell-media-content:after, .sell-media-gallery:after, .sell-media-dialog-box .sell-media-quick-view-container:after, .sell-media-add-to-cart-fields fieldset:after, +.cf:after, .sell-media-cart-items li:after, .sell-media-meta:after, .sell-media-single-one-col main .sell-media-content:after, .sell-media-gallery:after, .sell-media-dialog-box .sell-media-quick-view-container:after, .sell-media-add-to-cart-fields fieldset:after, .sell-media-grid-item-container:after, .wp-advanced-search:after { - clear: both; } + clear: both; +} /*= Lightbox & Checkout counters -------------------------------------------------------------- */ @@ -1484,7 +1772,8 @@ input.sell-media-search-text[type=text] { .checkout-counter, .checkout-price, .checkout-counter-wrap { - margin-left: 5px; } + margin-left: 5px; +} .sell-media-label, .lightbox-counter, @@ -1500,241 +1789,291 @@ input.sell-media-search-text[type=text] { white-space: nowrap; vertical-align: baseline; border-radius: 2px; - display: inline-block; } + display: inline-block; +} /*= Widgets -------------------------------------------------------------- */ #sell-media-single-sidebar { float: left; width: 100%; - margin-top: 1em; } - #sell-media-single-sidebar .widget { - float: left; - width: 100%; - margin-right: 0; } + margin-top: 1em; +} +#sell-media-single-sidebar .widget { + float: left; + width: 100%; + margin-right: 0; +} .sell-media-widget-area .widget { - clear: both; } + clear: both; +} .sell-media-widget.sell-media-masonry-layout-widget { - -webkit-column-count: 3; - /* Chrome, Safari, Opera */ - -moz-column-count: 3; - /* Firefox */ - column-count: 3; } + -webkit-column-count: 3; /* Chrome, Safari, Opera */ + -moz-column-count: 3; /* Firefox */ + column-count: 3; +} .sell-media-widget-thumb-wrap { float: left; - max-width: 100%; } - .sell-media-widget-thumb-wrap img { - float: left; } + max-width: 100%; +} +.sell-media-widget-thumb-wrap img { + float: left; +} .sell-media-recent-widget { - overflow: hidden; } + overflow: hidden; +} /*= Themes -------------------------------------------------------------- */ .theme-twenty-thirteen .sell-media, .theme-photolog .sell-media, .theme-awesome .sell-media, .theme-twenty-fourteen .sell-media, .theme-hemingway .sell-media, .theme-radcliffe .sell-media, .theme-garfunkel .sell-media, .theme-fukasawa .sell-media, .theme-lovecraft .sell-media, .theme-rowling .sell-media, .theme-hitchcock .sell-media, .theme-iwata .sell-media { width: 90%; - margin: 50px auto; } + margin: 50px auto; +} @media screen and (min-width: 1008px) { .theme-twenty-fourteen .sell-media { width: 78%; float: right; - margin: 0 auto; } } + margin: 0 auto; + } +} .theme-garfunkel .sell-media { z-index: 100; - position: relative; } + position: relative; +} .theme-base #content, .theme-twenty-ten #content { margin: 0 auto; - width: 100%; } + width: 100%; +} .theme-sell-photos #sell-media-ajax-filter-container > ul li:hover, .theme-sell-photos #sell-media-ajax-filter-container > ul li.selected-tab { - border-bottom-color: #f5f5f5; } + border-bottom-color: #f5f5f5; +} .theme-sell-photos #sell-media-ajax-filter-container .sell-media-ajax-filter-terms { - background-color: #f5f5f5; } + background-color: #f5f5f5; +} /*= Overrides -------------------------------------------------------------- */ .sell-media-single-one-col #main .sell-media-content, .sell-media-single-one-col #main .sell-media-meta { - width: 100%; } + width: 100%; +} /*= Ajax Filters -------------------------------------------------------------- */ #sell-media-ajax-filter-container { clear: both; - font-size: 16px; } - #sell-media-ajax-filter-container > ul { - margin: 0; - padding: 0; - text-align: center; } - #sell-media-ajax-filter-container > ul li { - border: 1px solid #eee; - display: inline-block; - list-style: none; - margin: 0 4px -1px; - padding: 0; } - #sell-media-ajax-filter-container > ul li:hover, #sell-media-ajax-filter-container > ul li.selected-tab { - color: #fff; - border-bottom-color: #fff; - position: relative; - z-index: 2; } - #sell-media-ajax-filter-container > ul li a { - background-image: none; - box-shadow: none; - border: 0; - color: gray; - display: inline-block; - font-size: 13px; - padding: 6px 12px; - text-decoration: none; - text-shadow: none; } - #sell-media-ajax-filter-container > ul li a span.dashicons { - vertical-align: middle; - font-size: 16px; - margin-right: 5px; } + font-size: 16px; +} +#sell-media-ajax-filter-container > ul { + margin: 0; + padding: 0; + text-align: center; +} +#sell-media-ajax-filter-container > ul li { + border: 1px solid #eee; + display: inline-block; + list-style: none; + margin: 0 4px -1px; + padding: 0; +} +#sell-media-ajax-filter-container > ul li:hover, #sell-media-ajax-filter-container > ul li.selected-tab { + color: #fff; + border-bottom-color: #fff; + position: relative; + z-index: 2; +} +#sell-media-ajax-filter-container > ul li a { + background-image: none; + box-shadow: none; + border: 0; + color: gray; + display: inline-block; + font-size: 13px; + padding: 6px 12px; + text-decoration: none; + text-shadow: none; +} +#sell-media-ajax-filter-container > ul li a span.dashicons { + vertical-align: middle; + font-size: 16px; + margin-right: 5px; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms { + background-color: #fff; + border: 1px solid #eee; + border-bottom: 0; + margin: 0; + padding: 30px 60px 36px; + position: relative; +} +@media only screen and (max-width: 1023px) { #sell-media-ajax-filter-container .sell-media-ajax-filter-terms { - background-color: #fff; - border: 1px solid #eee; - border-bottom: 0; - margin: 0; - padding: 30px 60px 36px; - position: relative; } - @media only screen and (max-width: 1023px) { - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms { - padding: 30px; } } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button { - float: right; - position: absolute; - top: 15px; - right: 15px; - width: 32px; - height: 32px; - opacity: .6; - cursor: pointer; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:hover { - opacity: 1; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:before, #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:after { - position: absolute; - left: 15px; - content: ' '; - height: 16px; - width: 4px; - background-color: #b3b3b3; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:before { - transform: rotate(45deg); } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:after { - transform: rotate(-45deg); } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul { - clear: both; - padding: 0; - margin: 0 0 24px 0; - overflow: hidden; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul.hide { - display: none !important; - /* override themes */ } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { - display: inline-block; - list-style: none; - margin: 0; - padding: 0; - text-align: left; - width: 25%; - float: left; } - @media only screen and (max-width: 1023px) { - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { - width: 33.333%; } } - @media only screen and (max-width: 767px) { - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { - width: 50%; } } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a { - background-image: none; - border: 0; - box-shadow: none; - color: gray; - padding: 0; - text-decoration: none; - text-shadow: none; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a:hover, - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a .selected-term { - color: #343434; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a.selected-term { - color: #343434; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination { - border-top: 1px solid #eee; - position: absolute; - bottom: 0; - left: 0; - width: 100%; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span { - box-sizing: border-box; - color: #b3b3b3; - cursor: pointer; - font-size: 12.8px; - display: inline-block; - text-align: center; - text-transform: uppercase; - width: 50%; - padding: 10px; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span:last-child { - border-left: 1px solid #eee; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span:hover { - background-color: #eee; - color: gray; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span.next { - float: right; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span.prev { - float: left; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-result { - border-top: 1px solid #eee; - padding: 40px 0; - /* theme compatibility */ } - #sell-media-ajax-filter-container .sell-media-ajax-filter-result .sell-media { - width: 100%; - padding: 0; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-result .load-more-button { - width: 100%; - text-align: center; - margin: 10px 0; - display: flex; } - #sell-media-ajax-filter-container .sell-media-ajax-filter-result .load-more-button a { - background-image: none; - border: 0; - text-decoration: none; - text-shadow: none; - display: inline-block; - padding: 10px 15px; - box-shadow: none; } - + padding: 30px; + } +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button { + float: right; + position: absolute; + top: 15px; + right: 15px; + width: 32px; + height: 32px; + opacity: 0.6; + cursor: pointer; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:hover { + opacity: 1; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:before, #sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:after { + position: absolute; + left: 15px; + content: " "; + height: 16px; + width: 4px; + background-color: #b3b3b3; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:before { + transform: rotate(45deg); +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .drop-down-close-button:after { + transform: rotate(-45deg); +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul { + clear: both; + padding: 0; + margin: 0 0 24px 0; + overflow: hidden; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul.hide { + display: none !important; /* override themes */ +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { + display: inline-block; + list-style: none; + margin: 0; + padding: 0; + text-align: left; + width: 25%; + float: left; +} +@media only screen and (max-width: 1023px) { + #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { + width: 33.333%; + } +} +@media only screen and (max-width: 767px) { + #sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li { + width: 50%; + } +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a { + background-image: none; + border: 0; + box-shadow: none; + color: gray; + padding: 0; + text-decoration: none; + text-shadow: none; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a:hover, +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a .selected-term { + color: #343434; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms ul li a.selected-term { + color: #343434; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination { + border-top: 1px solid #eee; + position: absolute; + bottom: 0; + left: 0; + width: 100%; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span { + box-sizing: border-box; + color: #b3b3b3; + cursor: pointer; + font-size: 12.8px; + display: inline-block; + text-align: center; + text-transform: uppercase; + width: 50%; + padding: 10px; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span:last-child { + border-left: 1px solid #eee; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span:hover { + background-color: #eee; + color: gray; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span.next { + float: right; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-terms .term-pagination span.prev { + float: left; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-result { + border-top: 1px solid #eee; + padding: 40px 0; + /* theme compatibility */ +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-result .sell-media { + width: 100%; + padding: 0; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-result .load-more-button { + width: 100%; + text-align: center; + margin: 10px 0; + display: flex; +} +#sell-media-ajax-filter-container .sell-media-ajax-filter-result .load-more-button a { + background-image: none; + border: 0; + text-decoration: none; + text-shadow: none; + display: inline-block; + padding: 10px 15px; + box-shadow: none; +} .sell-media-quick-view-content-inner .sell-media-add-to-cart-fields fieldset .sell-media-select-box { - width: 100%; } + width: 100%; +} .sell-media-add-to-cart-fields fieldset .sell-media-select-box { width: 60%; - position: relative; } - .sell-media-add-to-cart-fields fieldset .sell-media-select-box select { - padding-right: 25px; } - .sell-media-add-to-cart-fields fieldset .sell-media-select-box::after { - border-width: 3px !important; - border: 3px solid transparent; - border-radius: 2px; - border-right: 0; - border-top: 0; - content: " "; - display: block; - height: 9.46875px !important; - margin-top: -0.5375em !important; - pointer-events: none; - position: absolute; - top: 50%; - transform: rotate(-45deg); - transform-origin: center; - width: 9.46875px !important; - border-color: #3c3838; - right: 1.125em !important; - z-index: 4; } + position: relative; +} +.sell-media-add-to-cart-fields fieldset .sell-media-select-box select { + padding-right: 25px; +} +.sell-media-add-to-cart-fields fieldset .sell-media-select-box::after { + border-width: 3px !important; + border: 3px solid transparent; + border-radius: 2px; + border-right: 0; + border-top: 0; + content: " "; + display: block; + height: 9.46875px !important; + margin-top: -0.5375em !important; + pointer-events: none; + position: absolute; + top: 50%; + transform: rotate(-45deg); + transform-origin: center; + width: 9.46875px !important; + border-color: #3c3838; + right: 1.125em !important; + z-index: 4; +} .sell-media-add-to-cart-fields select { width: 100%; height: 33px; @@ -1742,149 +2081,196 @@ input.sell-media-search-text[type=text] { border: 1px solid #dbdbdb; border-radius: 4px; appearance: none; - -webkit-appearance: none; } + -webkit-appearance: none; +} .sell-media-product-type-fields-container ul { - list-style: none; } - .sell-media-product-type-fields-container ul li.selected-tab label { - font-weight: bold; } + list-style: none; +} +.sell-media-product-type-fields-container ul li.selected-tab label { + font-weight: bold; +} #sell_media_product_type { - border: 0; } - #sell_media_product_type ul { - margin: 15px 0 15px; - padding: 0; - display: flex; - border-bottom: 1px solid #eee; - align-items: center; - justify-content: center; } - #sell_media_product_type ul li { - line-height: normal; - width: auto; - background: #ffffff; - position: relative; - display: inline-block; - list-style: none; - margin: 0 4px -1px; } - #sell_media_product_type ul li input[type="radio"] { - position: absolute; - left: 0; - width: 100%; - height: 100%; - opacity: 0; - cursor: pointer; - margin: 0; } - #sell_media_product_type ul li input[type="radio"]:checked ~ label { - border-bottom: 1px solid transparent; } - #sell_media_product_type ul li label { - width: auto; - padding: 6px 12px; - margin-bottom: 0; - border: 1px solid #eee; } - #sell_media_product_type ul li.selected-tab { - margin-bottom: -1px; } - -.shipping_options input[type="radio"] { - margin-left: 0; } + border: 0; +} +#sell_media_product_type ul { + margin: 15px 0 15px; + padding: 0; + display: flex; + border-bottom: 1px solid #eee; + align-items: center; + justify-content: center; +} +#sell_media_product_type ul li { + line-height: normal; + width: auto; + background: #ffffff; + position: relative; + display: inline-block; + list-style: none; + margin: 0 4px -1px; +} +#sell_media_product_type ul li input[type=radio] { + position: absolute; + left: 0; + width: 100%; + height: 100%; + opacity: 0; + cursor: pointer; + margin: 0; +} +#sell_media_product_type ul li input[type=radio]:checked ~ label { + border-bottom: 1px solid transparent; +} +#sell_media_product_type ul li label { + width: auto; + padding: 6px 12px; + margin-bottom: 0; + border: 1px solid #eee; +} +#sell_media_product_type ul li.selected-tab { + margin-bottom: -1px; +} + +.shipping_options input[type=radio] { + margin-left: 0; +} .shipping_options > label { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-totals { margin: 15px 0; float: left; - width: 100%; } - .sell-media-totals .sell-media-totals-table { - width: 100%; - float: right; - margin: 0 0 10px; } + width: 100%; +} +.sell-media-totals .sell-media-totals-table { + width: 100%; + float: right; + margin: 0 0 10px; +} .sell-media-cart-items { margin: 0; float: left; - width: 100%; } + width: 100%; + border-bottom-style: solid; + border-bottom-width: 1px; +} +.sell-media-cart-items li { + border-top: 1px solid; + padding-top: 20px; + padding-bottom: 20px; +} +.sell-media-cart-items li .item-image { + margin-bottom: 0; +} .sell-media-key { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-value .sell-media-cart-total { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-value p { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-value a#remove-discount-code { display: block; width: 100%; font-weight: 400; - margin-bottom: 15px; } + margin-bottom: 15px; +} .sell-media-cart-grand-total { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-cart-shipping { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-checkout-button.group { float: right; width: 100%; - margin: 0; } - .sell-media-checkout-button.group p#sell-media-continue-shopping { - display: block; - font-weight: 400; } - .sell-media-checkout-button.group form#sell_media_payment_gateway { - margin-top: 0 !important; - display: inline-block; } + margin: 0; +} +.sell-media-checkout-button.group p#sell-media-continue-shopping { + display: block; + font-weight: 400; +} +.sell-media-checkout-button.group form#sell_media_payment_gateway { + margin-top: 0 !important; + display: inline-block; +} .item-total { display: block; - font-weight: 400; } + font-weight: 400; +} .sell-media-checkout-button br { - display: none; } + display: none; +} #sell-media-totals-table input#apply-discount-code { - margin: 15px 0 0; } + margin: 15px 0 0; +} #sell-media-totals-table p.message-target { float: left; - width: 100%; } + width: 100%; +} .sell-media-manual-purchase-meta .sell-media-manual-purchase-label { - text-align: left; } + text-align: left; +} .sell-media-cart-checkout-button { clear: both; margin: 10px 0px; - display: inline-block; } + display: inline-block; +} .sell-media-cart-checkout-button.sell-media-button { - text-transform: none; } + text-transform: none; +} @media only screen and (max-width: 768px) { .sell-media-dialog-box .sell-media-quick-view-container { - padding: 0; } - + padding: 0; + } div#sell-media-dialog-box { - width: 100% !important; } - div#sell-media-dialog-box div#sell-media-dialog-box-target { - width: 100%; - max-width: 80%; } - div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content { - width: 100% !important; - min-width: 100%; - height: auto !important; } - div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content .sell-media-quick-view-container { - width: 100% !important; - height: auto !important; } - div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content .sell-media-quick-view-container .sell-media-quick-view-image { - width: 100% !important; - height: auto !important; } - + width: 100% !important; + } + div#sell-media-dialog-box div#sell-media-dialog-box-target { + width: 100%; + max-width: 80%; + } + div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content { + width: 100% !important; + min-width: 100%; + height: auto !important; + } + div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content .sell-media-quick-view-container { + width: 100% !important; + height: auto !important; + } + div#sell-media-dialog-box div#sell-media-dialog-box-target .sell-media-dialog-box-content .sell-media-quick-view-container .sell-media-quick-view-image { + width: 100% !important; + height: auto !important; + } #sell-media-dialog-box .sell-media-quick-view-container .sell-media-quick-view-content { max-height: inherit !important; - width: 100% !important; } } + width: 100% !important; + } +} /*# sourceMappingURL=sell_media.css.map */ diff --git a/inc/admin-menu.php b/inc/admin-menu.php index e0277592..b3205e9a 100755 --- a/inc/admin-menu.php +++ b/inc/admin-menu.php @@ -24,7 +24,7 @@ function sell_media_admin_menu() { add_submenu_page( 'edit.php?post_type=sell_media_item', __('Reports', 'sell_media'), __('Reports', 'sell_media'), $permission, 'sell_media_reports', 'sell_media_reports_callback_fn' ); add_submenu_page( 'edit.php?post_type=sell_media_item', __('Upgrades', 'sell_media'), __('Upgrades', 'sell_media'), $permission, 'sell_media_upgrades', 'sell_media_upgrades_callback_fn' ); remove_submenu_page( 'edit.php?post_type=sell_media_item', 'edit-tags.php?taxonomy=price-group&post_type=sell_media_item' ); - add_submenu_page( null, __('System Info', 'sell_media'), __('System Info', 'sell_media'), $permission, 'sell_media_system_info', 'sell_media_system_info_callback_fn' ); + //add_submenu_page( null, __('System Info', 'sell_media'), __('System Info', 'sell_media'), $permission, 'sell_media_system_info', 'sell_media_system_info_callback_fn' ); remove_submenu_page( 'edit.php?post_type=sell_media_item', 'edit.php?post_type=sell_media_item&page=sell_media_system_info' ); remove_submenu_page( 'edit.php?post_type=sell_media_item', 'edit-tags.php?taxonomy=keywords&post_type=sell_media_item' ); remove_submenu_page( 'edit.php?post_type=sell_media_item', 'edit-tags.php?taxonomy=creator&post_type=sell_media_item' ); diff --git a/inc/class-price-listings-tabs.php b/inc/class-price-listings-tabs.php index 00562bb5..a9b16b15 100755 --- a/inc/class-price-listings-tabs.php +++ b/inc/class-price-listings-tabs.php @@ -8,7 +8,7 @@ /** * Price listing tabs class. */ -class Sell_Media_Price_Listings_Tabs { +class Sell_Media_Price_Listings_Tabs extends \stdClass { /** * Taxonomy name. * @@ -240,6 +240,7 @@ function save_data( $redirect_url ) { )); } } + if ( isset( $_POST['terms_children'] ) && is_array( $_POST['terms_children'] ) && count( $_POST['terms_children'] ) ) { foreach ( (array) $_POST['terms_children'] as $term_id => $data ) { @@ -305,11 +306,13 @@ function save_data( $redirect_url ) { } } } + + // Saving settings. if ( isset( $_POST['settings'] ) && is_array($_POST['settings']) && count($_POST['settings']) ){ - $settings = array_map( 'sanitize_text_field', ( array ) sell_media_get_plugin_options() ); + $settings = ( array ) sell_media_get_plugin_options(); $sanitized_settings_from_post = []; // TODO: move to helpers file @@ -368,6 +371,8 @@ function save_data( $redirect_url ) { 'success_email_body', 'misc' ]; + + // Process only safe keys from $_POST foreach ( $_POST['settings'] as $tmp_key => $tmp_val ) { if( in_array($tmp_key, $gpp_allowed_keys)){ @@ -376,21 +381,24 @@ function save_data( $redirect_url ) { } $settings = array_merge( $settings, $sanitized_settings_from_post ); + $options_name = sell_media_get_current_plugin_id() . '_options'; update_option( $options_name, $settings ); } - $url_parameters['term_parent'] = $parent_term_id; - $redirect_url_new = add_query_arg( $url_parameters, $redirect_url ); - if( $redirect_url ) { + + + if($redirect_url) { + $redirect_url_new = add_query_arg( $url_parameters, $redirect_url ); wp_redirect( $redirect_url_new ); - //exit(); // TODO: look, this will break the form layout + } + } function delete_pricelist( $redirect_url ) { // Check if request is for delete and parent term is set. - if ( ! isset( $_GET['delete'] ) || '1' !== $_GET['delete'] || ! isset( $_GET['term_parent'] ) || '' === $_GET['term_parent'] || !isset($_POST['_wpnonce']) || !wp_verify_nonce($_POST['_wpnonce'],'sell-media-price-list-page') ) { + if ( ! isset( $_GET['delete'] ) || '1' !== $_GET['delete'] || ! isset( $_GET['term_parent'] ) || '' === $_GET['term_parent'] || ! isset($_GET['delete_pricelist_nonce_name']) || ! wp_verify_nonce( $_GET['delete_pricelist_nonce_name'], 'delete_pricelist_nonce_action')) { return; } diff --git a/inc/class-products-images.php b/inc/class-products-images.php index 3dc38da2..a7b09276 100755 --- a/inc/class-products-images.php +++ b/inc/class-products-images.php @@ -14,6 +14,9 @@ class SellMediaImages extends SellMediaProducts { + public $IPTC_MAPPING; + public $metadata; + /** * Constructor */ diff --git a/inc/gateways/class-sm-gateway-paypal-request.php b/inc/gateways/class-sm-gateway-paypal-request.php index 25765bd0..4d27eb1d 100755 --- a/inc/gateways/class-sm-gateway-paypal-request.php +++ b/inc/gateways/class-sm-gateway-paypal-request.php @@ -168,7 +168,7 @@ private function buildRequestBody() { $_discount_id = sanitize_text_field($_POST['discount']); } global $sm_cart; - $_return_url = apply_filters('sell_media_paypal_return_url', empty( $this->settings->thanks_page ) ? site_url() : esc_url( add_query_arg( array( '_nonce' => wp_create_nonce( 'sell_media_paypal_order_complete_nonce' ) ), get_permalink( $this->settings->thanks_page ) ) )); + $_return_url = apply_filters('sell_media_paypal_return_url', empty( $this->settings->thanks_page ) ? site_url() : esc_url_raw( add_query_arg( array( '_nonce' => wp_create_nonce( 'sell_media_paypal_order_complete_nonce' ) ), get_permalink( $this->settings->thanks_page ) ) )); $_cancel_url = apply_filters('sell_media_paypal_return_cancel', empty( $this->settings->checkout_page ) ? site_url() : esc_url( get_permalink( $this->settings->checkout_page ) )); $_sub_total = apply_filters( 'sell_media_paypal_subtotal', $sm_cart->getSubtotal( false ) ); diff --git a/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php b/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php index 03b611fd..6d0232dd 100755 --- a/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php +++ b/inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php @@ -25,6 +25,8 @@ class HttpClient */ public $encoder; + public $curlCls; + /** * HttpClient constructor. Pass the environment you wish to make calls to. * diff --git a/inc/install.php b/inc/install.php index 52b30f5c..5fa36e59 100755 --- a/inc/install.php +++ b/inc/install.php @@ -577,7 +577,29 @@ function sell_media_autocreate_pages() { $title = 'Sell Media ' . ucfirst( $page ); // Check if this page already exists, with shortcode - $existing_page = get_page_by_title( $title ); + + $query = new WP_Query( + array( + 'post_type' => 'page', + 'title' => 'Sample Page', + 'post_status' => 'all', + 'posts_per_page' => 1, + 'no_found_rows' => true, + 'ignore_sticky_posts' => true, + 'update_post_term_cache' => false, + 'update_post_meta_cache' => false, + 'orderby' => 'post_date ID', + 'order' => 'ASC', + ) + ); + + if ( ! empty( $query->post ) ) { + $page_got_by_title = $query->post; + } else { + $page_got_by_title = null; + } + $existing_page = $page_got_by_title; + if ( ! empty( $existing_page ) && 'page' === $existing_page->post_type && has_shortcode( $existing_page->post_content, 'sell_media_' . $page ) ) { $settings[ $setting ] = $existing_page->ID; } else { diff --git a/inc/libraries/wp-session/class-recursive-arrayaccess.php b/inc/libraries/wp-session/class-recursive-arrayaccess.php index be6294e1..91b98d25 100755 --- a/inc/libraries/wp-session/class-recursive-arrayaccess.php +++ b/inc/libraries/wp-session/class-recursive-arrayaccess.php @@ -81,7 +81,7 @@ public function toArray() { * * @return boolean true on success or false on failure. */ - public function offsetExists( $offset ) { + public function offsetExists( mixed $offset ): bool { return isset( $this->container[ $offset ]) ; } @@ -94,7 +94,7 @@ public function offsetExists( $offset ) { * * @return mixed Can return all value types. */ - public function offsetGet( $offset ) { + public function offsetGet( mixed $offset ): mixed { return isset( $this->container[ $offset ] ) ? $this->container[ $offset ] : null; } @@ -108,7 +108,7 @@ public function offsetGet( $offset ) { * * @return void */ - public function offsetSet( $offset, $data ) { + public function offsetSet( mixed $offset, $data ): void { if ( is_array( $data ) ) { $data = new self( $data ); } @@ -130,7 +130,7 @@ public function offsetSet( $offset, $data ) { * * @return void */ - public function offsetUnset( $offset ) { + public function offsetUnset( mixed $offset ): void { unset( $this->container[ $offset ] ); $this->dirty = true; @@ -148,7 +148,7 @@ public function offsetUnset( $offset ) { * * @return mixed */ - public function current() { + public function current(): mixed { return current( $this->container ); } @@ -159,7 +159,7 @@ public function current() { * * @return mixed */ - public function key() { + public function key(): mixed { return key( $this->container ); } @@ -170,7 +170,7 @@ public function key() { * * @return void */ - public function next() { + public function next(): void { next( $this->container ); } @@ -181,7 +181,7 @@ public function next() { * * @return void */ - public function rewind() { + public function rewind(): void { reset( $this->container ); } @@ -192,7 +192,7 @@ public function rewind() { * * @return bool */ - public function valid() { + public function valid(): bool { return $this->offsetExists( $this->key() ); } @@ -207,7 +207,7 @@ public function valid() { * * @return int */ - public function count() { + public function count(): int { return count( $this->container ); } } diff --git a/inc/settings.php b/inc/settings.php index 41f545ec..c1532954 100755 --- a/inc/settings.php +++ b/inc/settings.php @@ -29,7 +29,6 @@ function sell_media_init_settings() { "general_plugin_section_1" => array( "name" => "general_plugin_section_1", "title" => __( "General", "sell_media" ), - "description" => "" ) ) ); @@ -44,7 +43,6 @@ function sell_media_init_settings() { "size_price_plugin_section_1" => array( "name" => "size_price_plugin_section_1", "title" => __( "Pricing", "sell_media" ), - "description" => "" ) ) ); @@ -59,16 +57,14 @@ function sell_media_init_settings() { "payment_section_1" => array( "name" => "payment_section_1", "title" => __("Payment","sell_media"), - "description" => "" ), "payment_section_paypal" => array( "name" => "payment_section_paypal", "title" => __("PayPal Settings","sell_media"), - 'description' => sprintf( - __( 'You must add your PayPal API Keys to process transactions.', 'sell_media' ) - ), + ) ) + ); sell_media_register_plugin_option_tab( apply_filters('sell_media_payment_tab', $payment_tab) ); @@ -81,7 +77,6 @@ function sell_media_init_settings() { "email_section_1" => array( "name" => "email_section_1", "title" => __("Email Settings","sell_media"), - "description" => "" ) ) ); @@ -96,7 +91,6 @@ function sell_media_init_settings() { "misc_section_1" => array( "name" => "misc_section_1", "title" => __("Misc","sell_media"), - "description" => "" ) ) ); @@ -609,7 +603,8 @@ function sell_media_init_settings() { "tab" => "sell_media_payment_settings", "name" => "paypal_test_client_id", "title" => __("PayPal Test Client ID","sell_media"), - "description" => "", + "description" => __( 'You must add your PayPal API Keys to process transactions.', 'sell_media' ), + "default" => "", "section" => "payment_section_paypal", "since" => "1.0.", diff --git a/inc/settings/settings.php b/inc/settings/settings.php index 02e041d4..84409a9e 100755 --- a/inc/settings/settings.php +++ b/inc/settings/settings.php @@ -430,7 +430,7 @@ function sell_media_plugin_field_checkbox( $value, $attr ) { if ( isset( $attr['valid_options'] ) ) : $options = $attr['valid_options']; - foreach( $options as $option_key => $option_value ) : ?> + foreach( $options as $option_key => $option_value ) : if(!$value) $value = []; ?> name="_options[][]" value="">
-
tax ) ) echo esc_html( ' (' . round( ( float ) $settings->tax_rate * 100 ) . '%)' ); ?>:
+
tax ) ) echo esc_html( ' (' . round( ( float ) $settings->tax_rate * 100 ) . '%)' ); ?>:
@@ -662,7 +662,7 @@ function sell_media_ajax_filter( $atts ){ $have_collections = false; $first_tab = false; $first_term = false; - array_walk($choosen_tabs, function(&$value, &$key) { + array_walk($choosen_tabs, function($value, $key) { $value['title'] = esc_attr($value['title']); $value['slug'] = sanitize_text_field($value['slug']); $value['icon'] = sanitize_text_field($value['icon']); diff --git a/readme.txt b/readme.txt index ea3c8710..dd467699 100755 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: endortrails, nhuja Donate link: https://graphpaperpress.com/plugins/sell-media/ Tags: photography, photos, sell media, sell photos, sell videos, sell downloads, download, downloads, e-commerce, paypal, stock photos, photo gallery, photo cart -Requires at least: 6.0.1 -Tested up to: 6.0.1 -Stable tag: 2.5.7.4 +Requires at least: 6.2.1 +Tested up to: 6.2.1 +Stable tag: 2.5.8 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -50,9 +50,9 @@ Take Sell Media to the next level with these powerful extensions: = Server Requirements = -1. PHP 7.4 or higher +1. PHP 8.1 or higher 2. CURL PHP extension -3. GD PHP extension +3. GD / ImageMagick PHP extension 4. Original file uploads are protected automatically on Apache servers using .htaccess. If you are using an NGINX server, you'll need to add this to your sites configuration file: `location ~ /wp-content/uploads/sell_media { rewrite / permanent; @@ -221,6 +221,11 @@ Action hooks available: == Changelog == += 2.5.8 = +* Fix: PHP 8.2 deprecated notices fix +* Fix: Checkout Redirect and Download link encoding bug fixes +* Fix: Added styles for checkout page + = 2.5.7.1 to 2.5.7.4 = * Fix: sanitizations and security bugs * Fix: PHP 8.0 notices diff --git a/sass/sell_media.scss b/sass/sell_media.scss index d6656d19..14de652d 100755 --- a/sass/sell_media.scss +++ b/sass/sell_media.scss @@ -84,7 +84,7 @@ a:focus { .sell-media-main-col { clear: left; - margin-right: 5%; // Legacy themes have conflicting margins. Let's make theme consistent. + margin-right: 5% !important; // Legacy themes have conflicting margins. Let's make theme consistent. width: 65%; // Legacy themes have conflicting widths. Let's make theme consistent. } @@ -201,7 +201,6 @@ body { li { display: block; - margin: 1em 0; &:after { @extend .cf; @@ -239,6 +238,7 @@ body { background: $border-color; cursor: pointer; vertical-align: middle; + border-radius: 5px; &:hover { border-color: darken($border-color, 20%); @@ -340,7 +340,6 @@ body { /*= Buttons -------------------------------------------------------------- */ body { - .sell-media-button, .sell-media-button { cursor: pointer; justify-content: center; @@ -351,6 +350,7 @@ body { text-transform: capitalize; box-shadow: none; text-decoration: none; + padding: 10px 15px; } input[type=submit].sell-media-button:focus, @@ -640,7 +640,8 @@ body { } tr { - border: 0; + border-top-width: 1px; + border-top-style: solid; } th, @@ -736,7 +737,9 @@ body { /*= Single Layouts -------------------------------------------------------------- */ -.sell-media-content { + + +main .sell-media-content { @extend .sell-media-main-col; position: relative; @@ -749,10 +752,11 @@ body { height: auto; } + .sell-media-single-one-col & { @extend .cf; float: none; - margin: 0 0 1.5em 0; + margin: auto !important; width: 100%; } } @@ -1503,6 +1507,10 @@ body { } } +.sell-media-search-inner { + width: 100%; +} + .sell-media-search-field { .sell-media-select-box { &:not(.sell-media-select-loading)::after { @@ -2414,6 +2422,19 @@ input.sell-media-search-text[type=text] { margin: 0; float: left; width: 100%; + + border-bottom-style: solid; + border-bottom-width: 1px; + + li { + border-top: 1px solid; + padding-top: 20px; + padding-bottom: 20px; + + .item-image { + margin-bottom: 0; + } + } } .sell-media-key { display: block; diff --git a/sell-media.php b/sell-media.php index d570052b..7ade051a 100755 --- a/sell-media.php +++ b/sell-media.php @@ -3,7 +3,7 @@ * Plugin Name: Sell Media * Plugin URI: http://graphpaperpress.com/plugins/sell-media/ * Description: A plugin for selling photos, prints and other downloads. - * Version: 2.5.7.4 + * Version: 2.5.8 * Author: Graph Paper Press * Author URI: http://graphpaperpress.com * Author Email: support@graphpaperpress.com @@ -11,7 +11,7 @@ * Domain Path: languages * License: GPL2 * - * Copyright 2020 GRAPH PAPER PRESS (email: support@graphpaperpress.com) + * Copyright 2023 GRAPH PAPER PRESS (email: support@graphpaperpress.com) * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. @@ -24,7 +24,7 @@ * @package SellMedia * @category Core * @author Thad Allender - * @version 2.5.7.4 + * @version 2.5.8 */ // Exit if accessed directly. @@ -39,7 +39,7 @@ * * @since 1.8.5 */ - final class SellMedia { + final class SellMedia extends \stdClass { /** * The single instance of the class. @@ -155,7 +155,7 @@ public static function instance() { */ public function __clone() { // Cloning instances of the class is forbidden. - _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.7.4' ); + _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8' ); } /** @@ -167,7 +167,7 @@ public function __clone() { */ public function __wakeup() { // Unserializing instances of the class is forbidden. - _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.7.4' ); + _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'sell_media' ), '2.5.8' ); } /** @@ -181,7 +181,7 @@ private function constants() { // Plugin version. if ( ! defined( 'SELL_MEDIA_VERSION' ) ) { - define( 'SELL_MEDIA_VERSION', '2.5.7.4' ); + define( 'SELL_MEDIA_VERSION', '2.5.8' ); } // Plugin Folder Path. diff --git a/themes/price-listings-tabs-content.php b/themes/price-listings-tabs-content.php index e74c8b65..026fefe7 100755 --- a/themes/price-listings-tabs-content.php +++ b/themes/price-listings-tabs-content.php @@ -30,9 +30,9 @@ foreach ( $download_parents as $slug => $term ) { $url = add_query_arg( array( 'term_parent' => $term->term_id ), $url ); if ( $this->current_term === $term->term_id ) { - $current_url = esc_url($url); + $current_url = esc_url_raw($url); } - ?> @@ -43,7 +43,7 @@ $delete_url = wp_nonce_url( $delete_url, 'delete_pricelist_nonce_action', 'delete_pricelist_nonce_name' ); $current_term_name = isset( $current_term->name ) ? $current_term->name : ''; if ( isset( $_GET['term_parent'] ) ) { - ?> + ?>