├── inc ├── gateways │ └── php-paypal-sdk │ │ ├── vendor │ │ ├── sebastian │ │ │ ├── version │ │ │ │ ├── .gitignore │ │ │ │ ├── .gitattributes │ │ │ │ ├── composer.json │ │ │ │ └── LICENSE │ │ │ ├── diff │ │ │ │ ├── .gitignore │ │ │ │ ├── tests │ │ │ │ │ ├── fixtures │ │ │ │ │ │ ├── patch.txt │ │ │ │ │ │ └── patch2.txt │ │ │ │ │ ├── ParserTest.php │ │ │ │ │ ├── LCS │ │ │ │ │ │ ├── TimeEfficientImplementationTest.php │ │ │ │ │ │ └── MemoryEfficientImplementationTest.php │ │ │ │ │ ├── LineTest.php │ │ │ │ │ ├── ChunkTest.php │ │ │ │ │ └── DiffTest.php │ │ │ │ ├── .travis.yml │ │ │ │ ├── src │ │ │ │ │ ├── LCS │ │ │ │ │ │ └── LongestCommonSubsequence.php │ │ │ │ │ ├── Line.php │ │ │ │ │ └── Diff.php │ │ │ │ ├── phpunit.xml │ │ │ │ ├── build.xml │ │ │ │ ├── composer.json │ │ │ │ └── LICENSE │ │ │ ├── resource-operations │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── composer.json │ │ │ │ ├── build.xml │ │ │ │ ├── build │ │ │ │ │ └── generate.php │ │ │ │ └── LICENSE │ │ │ ├── code-unit-reverse-lookup │ │ │ │ ├── .gitignore │ │ │ │ ├── ChangeLog.md │ │ │ │ ├── .travis.yml │ │ │ │ ├── README.md │ │ │ │ ├── composer.json │ │ │ │ ├── phpunit.xml │ │ │ │ ├── build.xml │ │ │ │ ├── tests │ │ │ │ │ └── WizardTest.php │ │ │ │ └── LICENSE │ │ │ ├── environment │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── phpunit.xml │ │ │ │ ├── composer.json │ │ │ │ ├── build.xml │ │ │ │ ├── LICENSE │ │ │ │ └── tests │ │ │ │ │ └── ConsoleTest.php │ │ │ ├── global-state │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── src │ │ │ │ │ ├── Exception.php │ │ │ │ │ └── RuntimeException.php │ │ │ │ ├── tests │ │ │ │ │ └── _fixture │ │ │ │ │ │ ├── SnapshotFunctions.php │ │ │ │ │ │ ├── SnapshotTrait.php │ │ │ │ │ │ ├── BlacklistedInterface.php │ │ │ │ │ │ ├── BlacklistedChildClass.php │ │ │ │ │ │ ├── BlacklistedClass.php │ │ │ │ │ │ ├── SnapshotDomDocument.php │ │ │ │ │ │ ├── BlacklistedImplementor.php │ │ │ │ │ │ └── SnapshotClass.php │ │ │ │ ├── README.md │ │ │ │ ├── phpunit.xml.dist │ │ │ │ ├── composer.json │ │ │ │ ├── build.xml │ │ │ │ └── LICENSE │ │ │ ├── comparator │ │ │ │ ├── .gitignore │ │ │ │ ├── tests │ │ │ │ │ ├── bootstrap.php │ │ │ │ │ └── _files │ │ │ │ │ │ ├── TestClass.php │ │ │ │ │ │ ├── TestClassComparator.php │ │ │ │ │ │ ├── ClassWithToString.php │ │ │ │ │ │ ├── Book.php │ │ │ │ │ │ ├── Struct.php │ │ │ │ │ │ ├── SampleClass.php │ │ │ │ │ │ └── Author.php │ │ │ │ ├── build │ │ │ │ │ └── travis-ci.xml │ │ │ │ ├── .travis.yml │ │ │ │ ├── phpunit.xml.dist │ │ │ │ ├── build.xml │ │ │ │ ├── composer.json │ │ │ │ ├── README.md │ │ │ │ ├── src │ │ │ │ │ ├── MockObjectComparator.php │ │ │ │ │ ├── ExceptionComparator.php │ │ │ │ │ ├── ResourceComparator.php │ │ │ │ │ ├── DoubleComparator.php │ │ │ │ │ └── Comparator.php │ │ │ │ └── LICENSE │ │ │ ├── object-enumerator │ │ │ │ ├── .gitignore │ │ │ │ ├── src │ │ │ │ │ ├── Exception.php │ │ │ │ │ └── InvalidArgumentException.php │ │ │ │ ├── .travis.yml │ │ │ │ ├── README.md │ │ │ │ ├── tests │ │ │ │ │ └── Fixtures │ │ │ │ │ │ └── ExceptionThrower.php │ │ │ │ ├── ChangeLog.md │ │ │ │ ├── phpunit.xml │ │ │ │ ├── composer.json │ │ │ │ ├── build.xml │ │ │ │ └── LICENSE │ │ │ ├── exporter │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── phpunit.xml.dist │ │ │ │ ├── build.xml │ │ │ │ ├── composer.json │ │ │ │ └── LICENSE │ │ │ └── recursion-context │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── src │ │ │ │ ├── Exception.php │ │ │ │ └── InvalidArgumentException.php │ │ │ │ ├── README.md │ │ │ │ ├── phpunit.xml.dist │ │ │ │ ├── build.xml │ │ │ │ ├── composer.json │ │ │ │ └── LICENSE │ │ ├── paypal │ │ │ └── paypalhttp │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── Rakefile │ │ │ │ ├── .gitattributes │ │ │ │ ├── phpunit.xml │ │ │ │ ├── .travis.yml │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── lib │ │ │ │ └── PayPalHttp │ │ │ │ │ ├── IOException.php │ │ │ │ │ ├── Environment.php │ │ │ │ │ ├── Injector.php │ │ │ │ │ ├── HttpException.php │ │ │ │ │ ├── Serializer │ │ │ │ │ ├── FormPart.php │ │ │ │ │ ├── Text.php │ │ │ │ │ ├── Json.php │ │ │ │ │ └── Form.php │ │ │ │ │ ├── HttpResponse.php │ │ │ │ │ ├── Serializer.php │ │ │ │ │ ├── HttpRequest.php │ │ │ │ │ └── Curl.php │ │ │ │ ├── composer.json │ │ │ │ ├── .gitignore │ │ │ │ └── LICENSE │ │ ├── autoload.php │ │ ├── myclabs │ │ │ └── deep-copy │ │ │ │ ├── src │ │ │ │ └── DeepCopy │ │ │ │ │ ├── Exception │ │ │ │ │ ├── CloneException.php │ │ │ │ │ └── PropertyException.php │ │ │ │ │ ├── TypeFilter │ │ │ │ │ ├── Spl │ │ │ │ │ │ ├── SplDoublyLinkedList.php │ │ │ │ │ │ ├── ArrayObjectFilter.php │ │ │ │ │ │ └── SplDoublyLinkedListFilter.php │ │ │ │ │ ├── TypeFilter.php │ │ │ │ │ ├── ShallowCopyFilter.php │ │ │ │ │ ├── ReplaceFilter.php │ │ │ │ │ └── Date │ │ │ │ │ │ └── DateIntervalFilter.php │ │ │ │ │ ├── Matcher │ │ │ │ │ ├── Matcher.php │ │ │ │ │ ├── Doctrine │ │ │ │ │ │ └── DoctrineProxyMatcher.php │ │ │ │ │ ├── PropertyNameMatcher.php │ │ │ │ │ ├── PropertyMatcher.php │ │ │ │ │ └── PropertyTypeMatcher.php │ │ │ │ │ ├── Filter │ │ │ │ │ ├── KeepFilter.php │ │ │ │ │ ├── Filter.php │ │ │ │ │ ├── Doctrine │ │ │ │ │ │ ├── DoctrineProxyFilter.php │ │ │ │ │ │ ├── DoctrineEmptyCollectionFilter.php │ │ │ │ │ │ └── DoctrineCollectionFilter.php │ │ │ │ │ ├── SetNullFilter.php │ │ │ │ │ └── ReplaceFilter.php │ │ │ │ │ ├── deep_copy.php │ │ │ │ │ └── TypeMatcher │ │ │ │ │ └── TypeMatcher.php │ │ │ │ ├── .github │ │ │ │ └── FUNDING.yml │ │ │ │ ├── composer.json │ │ │ │ └── LICENSE │ │ ├── composer │ │ │ ├── autoload_namespaces.php │ │ │ ├── autoload_files.php │ │ │ ├── LICENSE │ │ │ └── autoload_psr4.php │ │ └── symfony │ │ │ ├── polyfill-ctype │ │ │ ├── README.md │ │ │ ├── LICENSE │ │ │ ├── composer.json │ │ │ └── bootstrap.php │ │ │ └── yaml │ │ │ ├── README.md │ │ │ ├── Exception │ │ │ ├── DumpException.php │ │ │ ├── ExceptionInterface.php │ │ │ └── RuntimeException.php │ │ │ ├── Tag │ │ │ └── TaggedValue.php │ │ │ ├── LICENSE │ │ │ └── composer.json │ │ ├── lib │ │ └── PayPalCheckoutSdk │ │ │ ├── Core │ │ │ ├── Version.php │ │ │ ├── GzipInjector.php │ │ │ ├── ProductionEnvironment.php │ │ │ ├── SandboxEnvironment.php │ │ │ ├── FPTIInstrumentationInjector.php │ │ │ ├── PayPalEnvironment.php │ │ │ ├── AccessToken.php │ │ │ ├── RefreshTokenRequest.php │ │ │ ├── PayPalHttpClient.php │ │ │ ├── AccessTokenRequest.php │ │ │ ├── UserAgent.php │ │ │ └── AuthorizationInjector.php │ │ │ ├── Payments │ │ │ └── AuthorizationsVoidRequest.php │ │ │ └── Orders │ │ │ └── OrdersPatchRequest.php │ │ └── composer.json ├── class-queries.php ├── mime-types.php ├── class-mail.php ├── class-admin-search.php └── admin-scripts.php ├── images ├── cart.png ├── loading.gif ├── ajax-loader.gif ├── chosen-sprite.png └── chosen-sprite@2x.png ├── languages ├── sell_media-bg_BG.mo ├── sell_media-de_DE.mo ├── sell_media-en_US.mo ├── sell_media-es_ES.mo ├── sell_media-fr_FR.mo ├── sell_media-it_IT.mo ├── sell_media-ja_JA.mo ├── sell_media-nl_NL.mo ├── sell_media-pt_BR.mo └── readme.txt ├── .wordpress-org ├── banner-772x250.png ├── icon-128x128.png ├── icon-256x256.png ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png ├── screenshot-4.png ├── screenshot-5.png ├── screenshot-6.png ├── screenshot-7.png ├── screenshot-8.png ├── screenshot-9.png └── banner-1544x500.png ├── css ├── sell_media-light.css └── sell_media-dark.css ├── .distignore ├── Gruntfile.js ├── gutenberg ├── src │ └── index.js ├── build │ └── index.asset.php ├── package.json ├── css │ ├── frontend-index.css │ └── images │ │ ├── Black-1.svg │ │ ├── Blue-1.svg │ │ ├── Blue-3.svg │ │ ├── Black-3.svg │ │ ├── Black-2.svg │ │ └── Blue-2.svg ├── sell-media-items.php ├── blocks │ └── sell-media-list-all-collections │ │ └── index.js └── class-sell-media-gutenberg-block.php ├── .github └── workflows │ └── wp-deploy.yml ├── js └── sell_media_lightbox.js ├── themes ├── collection-password.php ├── theme-support │ ├── class-sm-twenty-ten.php │ ├── class-sm-twenty-eleven.php │ ├── class-sm-twenty-sixteen.php │ ├── class-sm-twenty-twelve.php │ ├── class-sm-twenty-fifteen.php │ ├── class-sm-twenty-thirteen.php │ ├── class-sm-twenty-fourteen.php │ ├── class-sm-twenty-twenty.php │ ├── class-sm-twenty-nineteen.php │ └── class-sm-twenty-seventeen.php └── admin-add-item-main-container.php ├── .gitignore ├── CONTRIBUTING.md ├── package.json └── wpml-config.xml /inc/gateways/php-paypal-sdk/vendor/sebastian/version/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/version/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/images/cart.png -------------------------------------------------------------------------------- /images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/images/loading.gif -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0 2 | - First release 3 | -------------------------------------------------------------------------------- /images/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/images/ajax-loader.gif -------------------------------------------------------------------------------- /images/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/images/chosen-sprite.png -------------------------------------------------------------------------------- /images/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/images/chosen-sprite@2x.png -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /composer.lock 3 | /vendor 4 | /.php_cs.cache -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /build/arginfo.php 3 | 4 | -------------------------------------------------------------------------------- /languages/sell_media-bg_BG.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-bg_BG.mo -------------------------------------------------------------------------------- /languages/sell_media-de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-de_DE.mo -------------------------------------------------------------------------------- /languages/sell_media-en_US.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-en_US.mo -------------------------------------------------------------------------------- /languages/sell_media-es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-es_ES.mo -------------------------------------------------------------------------------- /languages/sell_media-fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-fr_FR.mo -------------------------------------------------------------------------------- /languages/sell_media-it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-it_IT.mo -------------------------------------------------------------------------------- /languages/sell_media-ja_JA.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-ja_JA.mo -------------------------------------------------------------------------------- /languages/sell_media-nl_NL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-nl_NL.mo -------------------------------------------------------------------------------- /languages/sell_media-pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/languages/sell_media-pt_BR.mo -------------------------------------------------------------------------------- /.wordpress-org/banner-772x250.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/banner-772x250.png -------------------------------------------------------------------------------- /.wordpress-org/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/icon-128x128.png -------------------------------------------------------------------------------- /.wordpress-org/icon-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/icon-256x256.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-1.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-2.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-3.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-4.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-5.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-6.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-7.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-8.png -------------------------------------------------------------------------------- /.wordpress-org/screenshot-9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/screenshot-9.png -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /composer.lock 3 | /vendor 4 | 5 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /vendor 3 | /composer.lock 4 | /composer.phar 5 | -------------------------------------------------------------------------------- /.wordpress-org/banner-1544x500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/graphpaperpress/Sell-Media/HEAD/.wordpress-org/banner-1544x500.png -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | composer.lock 3 | composer.phar 4 | vendor/ 5 | cache.properties 6 | phpunit.xml 7 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/.gitignore: -------------------------------------------------------------------------------- 1 | /build/coverage 2 | /composer.lock 3 | /composer.phar 4 | /phpunit.xml 5 | /.idea 6 | /vendor 7 | -------------------------------------------------------------------------------- /css/sell_media-light.css: -------------------------------------------------------------------------------- 1 | /*= Light 2 | -------------------------------------------------------------- */ 3 | .sell-media-subtotal { 4 | border-bottom: 1px solid #ddd; 5 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/Rakefile: -------------------------------------------------------------------------------- 1 | spec = Gem::Specification.find_by_name 'releasinator' 2 | load "#{spec.gem_dir}/lib/tasks/releasinator.rake" 3 | -------------------------------------------------------------------------------- /.distignore: -------------------------------------------------------------------------------- 1 | /.wordpress-org 2 | /.git 3 | /.github 4 | /node_modules 5 | /build 6 | /grunt 7 | 8 | .distignore 9 | .gitignore 10 | 11 | *.map 12 | .sass-cache 13 | deploy.sh -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/Version.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ./tests/unit 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/TypeFilter.php: -------------------------------------------------------------------------------- 1 | headers["Accept-Encoding"] = "gzip"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/ChangeLog.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to `sebastianbergmann/code-unit-reverse-lookup` are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. 4 | 5 | ## 1.0.0 - 2016-02-13 6 | 7 | ### Added 8 | 9 | * Initial release 10 | 11 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Matcher.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | class TestClass { 14 | } 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', 10 | '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', 11 | ); 12 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.3.3 5 | - 5.3 6 | - 5.4 7 | - 5.5 8 | - 5.6 9 | - hhvm 10 | 11 | sudo: false 12 | 13 | before_script: 14 | - composer self-update 15 | - composer install --no-interaction --prefer-source --dev 16 | 17 | script: ./vendor/bin/phpunit 18 | 19 | notifications: 20 | email: false 21 | irc: "irc.freenode.org#phpunit" 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/src/Exception.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\ObjectEnumerator; 12 | 13 | interface Exception 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/ProductionEnvironment.php: -------------------------------------------------------------------------------- 1 | array('wp-blocks', 'wp-components', 'wp-edit-widgets', 'wp-element'), 'version' => '6c63fc0260e6a67764a3652eff7a928f'); 8 | } else { 9 | return array('dependencies' => array('wp-blocks', 'wp-components', 'wp-editor', 'wp-element'), 'version' => '6c63fc0260e6a67764a3652eff7a925f'); 10 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Injector.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState; 12 | 13 | /** 14 | */ 15 | interface Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/polyfill-ctype/README.md: -------------------------------------------------------------------------------- 1 | Symfony Polyfill / Ctype 2 | ======================== 3 | 4 | This component provides `ctype_*` functions to users who run php versions without the ctype extension. 5 | 6 | More information can be found in the 7 | [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md). 8 | 9 | License 10 | ======= 11 | 12 | This library is released under the [MIT license](LICENSE). 13 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/src/Exception.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\RecursionContext; 12 | 13 | /** 14 | */ 15 | interface Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/_files/TestClassComparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | class TestClassComparator extends ObjectComparator { 14 | } 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | function snapshotFunction() 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | /** 14 | */ 15 | trait SnapshotTrait 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /.github/workflows/wp-deploy.yml: -------------------------------------------------------------------------------- 1 | name: Deploy to WordPress.org 2 | on: 3 | push: 4 | tags: 5 | - "*" 6 | jobs: 7 | tag: 8 | name: New tag 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@master 12 | - name: WordPress Plugin Deploy 13 | uses: 10up/action-wordpress-plugin-deploy@stable 14 | env: 15 | SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} 16 | SVN_USERNAME: ${{ secrets.SVN_USERNAME }} 17 | SLUG: ${{ secrets.SLUG }} 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Filter.php: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | ../tests 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | /** 14 | */ 15 | interface BlacklistedInterface 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.6 5 | - 7.0 6 | - 7.1 7 | - nightly 8 | 9 | sudo: false 10 | 11 | before_install: 12 | - composer self-update 13 | - composer clear-cache 14 | 15 | install: 16 | - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable 17 | 18 | script: 19 | - ./vendor/bin/phpunit 20 | 21 | notifications: 22 | email: false 23 | 24 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/exporter/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | before_script: 4 | - composer self-update 5 | - composer install --no-interaction --prefer-source --dev 6 | 7 | php: 8 | - 5.3.3 9 | - 5.3 10 | - 5.4 11 | - 5.5 12 | - 5.6 13 | - hhvm 14 | 15 | notifications: 16 | email: false 17 | webhooks: 18 | urls: 19 | - https://webhooks.gitter.im/e/6668f52f3dd4e3f81960 20 | on_success: always 21 | on_failure: always 22 | on_start: false 23 | 24 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/src/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState; 12 | 13 | /** 14 | */ 15 | class RuntimeException extends \RuntimeException implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | /** 14 | */ 15 | class BlacklistedChildClass extends BlacklistedClass 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/src/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\ObjectEnumerator; 12 | 13 | class InvalidArgumentException extends \InvalidArgumentException implements Exception 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | /** 14 | */ 15 | class BlacklistedClass 16 | { 17 | private static $attribute; 18 | } 19 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | use DomDocument; 14 | 15 | /** 16 | */ 17 | class SnapshotDomDocument extends DomDocument 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/README.md: -------------------------------------------------------------------------------- 1 | # Recursion Context 2 | 3 | ... 4 | 5 | ## Installation 6 | 7 | You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): 8 | 9 | composer require sebastian/recursion-context 10 | 11 | If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: 12 | 13 | composer require --dev sebastian/recursion-context 14 | 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php: -------------------------------------------------------------------------------- 1 | copy($value); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.6 5 | - 7.0 6 | - 7.0snapshot 7 | - 7.1 8 | - 7.1snapshot 9 | - master 10 | 11 | sudo: false 12 | 13 | before_install: 14 | - composer self-update 15 | - composer clear-cache 16 | 17 | install: 18 | - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable 19 | 20 | script: 21 | - ./vendor/bin/phpunit 22 | 23 | notifications: 24 | email: false 25 | 26 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/FPTIInstrumentationInjector.php: -------------------------------------------------------------------------------- 1 | headers["sdk_name"] = "Checkout SDK"; 12 | $request->headers["sdk_version"] = "1.0.1"; 13 | $request->headers["sdk_tech_stack"] = "PHP " . PHP_VERSION; 14 | $request->headers["api_integration_type"] = "PAYPALSDK"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/src/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\RecursionContext; 12 | 13 | /** 14 | */ 15 | final class InvalidArgumentException extends \InvalidArgumentException implements Exception 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/README.md: -------------------------------------------------------------------------------- 1 | Yaml Component 2 | ============== 3 | 4 | The Yaml component loads and dumps YAML files. 5 | 6 | Resources 7 | --------- 8 | 9 | * [Documentation](https://symfony.com/doc/current/components/yaml.html) 10 | * [Contributing](https://symfony.com/doc/current/contributing/index.html) 11 | * [Report issues](https://github.com/symfony/symfony/issues) and 12 | [send Pull Requests](https://github.com/symfony/symfony/pulls) 13 | in the [main Symfony repository](https://github.com/symfony/symfony) 14 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | class ClassWithToString 14 | { 15 | public function __toString() 16 | { 17 | return 'string representation'; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/fixtures/patch2.txt: -------------------------------------------------------------------------------- 1 | diff --git a/Foo.php b/Foo.php 2 | index abcdefg..abcdefh 100644 3 | --- a/Foo.php 4 | +++ b/Foo.php 5 | @@ -20,4 +20,5 @@ class Foo 6 | const ONE = 1; 7 | const TWO = 2; 8 | + const THREE = 3; 9 | const FOUR = 4; 10 | 11 | @@ -320,4 +320,5 @@ class Foo 12 | const A = 'A'; 13 | const B = 'B'; 14 | + const C = 'C'; 15 | const D = 'D'; 16 | 17 | @@ -600,4 +600,5 @@ class Foo 18 | public function doSomething() { 19 | 20 | + return 'foo'; 21 | } 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | /** 14 | */ 15 | class BlacklistedImplementor implements BlacklistedInterface 16 | { 17 | private static $attribute; 18 | } 19 | -------------------------------------------------------------------------------- /gutenberg/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sellmediaitems", 3 | "version": "1.0.0", 4 | "description": "Sell Media Items", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "wp-scripts start", 9 | "build": "wp-scripts build" 10 | }, 11 | "author": "Graph Paper Press", 12 | "license": "GPL2", 13 | "devDependencies": { 14 | "@wordpress/components": "8.5.0", 15 | "@wordpress/editor": "9.22.0", 16 | "@wordpress/i18n": "3.15.0", 17 | "@wordpress/scripts": "12.3.0" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpException.php: -------------------------------------------------------------------------------- 1 | statusCode = $statusCode; 21 | $this->headers = $headers; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | sudo: false 4 | 5 | install: 6 | - travis_retry composer install --no-interaction --prefer-source 7 | 8 | script: ./vendor/bin/phpunit --configuration ./build/travis-ci.xml 9 | 10 | php: 11 | - 5.3.3 12 | - 5.3 13 | - 5.4 14 | - 5.5 15 | - 5.6 16 | - hhvm 17 | 18 | notifications: 19 | email: false 20 | webhooks: 21 | urls: 22 | - https://webhooks.gitter.im/e/6668f52f3dd4e3f81960 23 | on_success: always 24 | on_failure: always 25 | on_start: false 26 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/_files/Book.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * A book. 15 | * 16 | */ 17 | class Book 18 | { 19 | // the order of properties is important for testing the cycle! 20 | public $author = null; 21 | } 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/FormPart.php: -------------------------------------------------------------------------------- 1 | value = $value; 13 | $this->headers = array_merge([], $headers); 14 | } 15 | 16 | public function getValue() 17 | { 18 | return $this->value; 19 | } 20 | 21 | public function getHeaders() 22 | { 23 | return $this->headers; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php: -------------------------------------------------------------------------------- 1 | __load(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/_files/Struct.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * A struct. 15 | * 16 | */ 17 | class Struct 18 | { 19 | public $var; 20 | 21 | public function __construct($var) 22 | { 23 | $this->var = $var; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/README.md: -------------------------------------------------------------------------------- 1 | # Resource Operations 2 | 3 | Provides a list of PHP built-in functions that operate on resources. 4 | 5 | ## Installation 6 | 7 | To add this component as a local, per-project dependency to your project, simply add a dependency on `sebastian/resource-operations` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on this component: 8 | 9 | ```JSON 10 | { 11 | "require": { 12 | "sebastian/resource-operations": "~1.0" 13 | } 14 | } 15 | ``` 16 | 17 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/Exception/DumpException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception class thrown when an error occurs during dumping. 16 | * 17 | * @author Fabien Potencier 18 | */ 19 | class DumpException extends RuntimeException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/README.md: -------------------------------------------------------------------------------- 1 | # Object Enumerator 2 | 3 | Traverses array structures and object graphs to enumerate all referenced objects. 4 | 5 | ## Installation 6 | 7 | You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): 8 | 9 | composer require sebastian/object-enumerator 10 | 11 | If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: 12 | 13 | composer require --dev sebastian/object-enumerator 14 | 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception interface for all exceptions thrown by the component. 16 | * 17 | * @author Fabien Potencier 18 | */ 19 | interface ExceptionInterface extends \Throwable 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/README.md: -------------------------------------------------------------------------------- 1 | # code-unit-reverse-lookup 2 | 3 | Looks up which function or method a line of code belongs to. 4 | 5 | ## Installation 6 | 7 | You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): 8 | 9 | composer require sebastian/code-unit-reverse-lookup 10 | 11 | If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: 12 | 13 | composer require --dev sebastian/code-unit-reverse-lookup 14 | 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/PayPalEnvironment.php: -------------------------------------------------------------------------------- 1 | clientId = $clientId; 15 | $this->clientSecret = $clientSecret; 16 | } 17 | 18 | public function authorizationString() 19 | { 20 | return base64_encode($this->clientId . ":" . $this->clientSecret); 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /js/sell_media_lightbox.js: -------------------------------------------------------------------------------- 1 | jQuery(function($) { 2 | $(window).load(function(){ 3 | var key = 'sellMediaLightbox'; 4 | var lightbox_data = localStorage.getItem(key); 5 | var data = { 6 | action: 'sell_media_lightbox', 7 | lightbox_ids: lightbox_data, 8 | lightbox_domain: key 9 | }; 10 | $.ajax({ 11 | type: 'POST', 12 | url: sell_media.ajaxurl, 13 | data: data, 14 | success: function(msg){ 15 | $('#sell-media-lightbox-content').html(msg); 16 | } 17 | }); 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paypal/paypalhttp", 3 | "type": "library", 4 | "license": "MIT", 5 | "authors": [ 6 | { 7 | "name": "PayPal", 8 | "homepage": "https://github.com/paypal/paypalhttp_php/contributors" 9 | } 10 | ], 11 | "require": { 12 | "ext-curl": "*" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": "^5.7", 16 | "wiremock-php/wiremock-php": "1.43.2" 17 | }, 18 | "autoload": { 19 | "psr-4": { 20 | "PayPalHttp\\": "lib/PayPalHttp" 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/Exception/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception class thrown when an error occurs during parsing. 16 | * 17 | * @author Romain Neutron 18 | */ 19 | class RuntimeException extends \RuntimeException implements ExceptionInterface 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/AccessToken.php: -------------------------------------------------------------------------------- 1 | token = $token; 16 | $this->tokenType = $tokenType; 17 | $this->expiresIn = $expiresIn; 18 | $this->createDate = time(); 19 | } 20 | 21 | public function isExpired() 22 | { 23 | return time() >= $this->createDate + $this->expiresIn; 24 | } 25 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/SetNullFilter.php: -------------------------------------------------------------------------------- 1 | setAccessible(true); 22 | $reflectionProperty->setValue($object, null); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /css/sell_media-dark.css: -------------------------------------------------------------------------------- 1 | /*= Dark 2 | -------------------------------------------------------------- */ 3 | .sell-media-subtotal { 4 | border-bottom: 1px solid #111; 5 | } 6 | 7 | .sell-media-cart-items td.item-decrement a, 8 | .sell-media-cart-items td.item-increment a { 9 | background: #333; 10 | border: 1px solid #444; 11 | } 12 | 13 | .sell-media-cart-items td.item-decrement a:hover, 14 | .sell-media-cart-items td.item-increment a:hover { 15 | background: #555; 16 | border: 1px solid #666; 17 | } 18 | 19 | .sell-media-totals-table { 20 | border-top: 5px solid #333; 21 | border-bottom: 5px solid #333; 22 | } 23 | 24 | input, 25 | textarea { 26 | color: #111; 27 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.3 5 | - 5.4 6 | - 5.5 7 | - 5.6 8 | - 7.0 9 | - 7.0snapshot 10 | - 7.1 11 | - 7.1snapshot 12 | - master 13 | 14 | sudo: false 15 | 16 | before_install: 17 | - composer self-update 18 | - composer clear-cache 19 | 20 | install: 21 | - travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable 22 | 23 | script: 24 | - ./vendor/bin/phpunit --coverage-clover=coverage.xml 25 | 26 | after_success: 27 | - bash <(curl -s https://codecov.io/bash) 28 | 29 | notifications: 30 | email: false 31 | 32 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/ParserTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | use PHPUnit\Framework\TestCase; 14 | 15 | /** 16 | * @covers SebastianBergmann\Diff\Parser 17 | * 18 | * @uses SebastianBergmann\Diff\Chunk 19 | * @uses SebastianBergmann\Diff\Diff 20 | * @uses SebastianBergmann\Diff\Line 21 | */ 22 | class ParserTest extends TestCase 23 | { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /gutenberg/css/frontend-index.css: -------------------------------------------------------------------------------- 1 | /*-------------------------------------------------------------- 2 | # Alignments 3 | --------------------------------------------------------------*/ 4 | .alignleft { 5 | display: flex; 6 | justify-content: flex-start; 7 | flex-wrap: wrap; 8 | } 9 | 10 | .alignright { 11 | display: flex; 12 | justify-content: flex-end; 13 | flex-wrap: wrap; 14 | } 15 | 16 | .aligncenter { 17 | display: flex; 18 | justify-content: center; 19 | flex-wrap: wrap; 20 | } 21 | 22 | .alignfull { 23 | max-width: 80%; 24 | width: 80%; 25 | display: block; 26 | margin: 0 auto; 27 | } 28 | 29 | .alignwide { 30 | width: 100%; 31 | display: block; 32 | } -------------------------------------------------------------------------------- /gutenberg/css/images/Black-1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeMatcher/TypeMatcher.php: -------------------------------------------------------------------------------- 1 | type = $type; 18 | } 19 | 20 | /** 21 | * @param mixed $element 22 | * 23 | * @return boolean 24 | */ 25 | public function matches($element) 26 | { 27 | return is_object($element) ? is_a($element, $this->type) : gettype($element) === $this->type; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/LCS/TimeEfficientImplementationTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff\LCS; 12 | 13 | /** 14 | * @covers SebastianBergmann\Diff\LCS\TimeEfficientImplementation 15 | */ 16 | class TimeEfficientImplementationTest extends LongestCommonSubsequenceTest 17 | { 18 | protected function createImplementation() 19 | { 20 | return new TimeEfficientImplementation; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/_files/SampleClass.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * A sample class. 15 | * 16 | */ 17 | class SampleClass 18 | { 19 | public $a; 20 | protected $b; 21 | protected $c; 22 | 23 | public function __construct($a, $b, $c) 24 | { 25 | $this->a = $a; 26 | $this->b = $b; 27 | $this->c = $c; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/LCS/MemoryEfficientImplementationTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff\LCS; 12 | 13 | /** 14 | * @covers SebastianBergmann\Diff\LCS\MemoryEfficientImplementation 15 | */ 16 | class MemoryEfficientImplementationTest extends LongestCommonSubsequenceTest 17 | { 18 | protected function createImplementation() 19 | { 20 | return new MemoryEfficientImplementation; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/tests/_files/Author.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * An author. 15 | * 16 | */ 17 | class Author 18 | { 19 | // the order of properties is important for testing the cycle! 20 | public $books = array(); 21 | 22 | private $name = ''; 23 | 24 | public function __construct($name) 25 | { 26 | $this->name = $name; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/README.md: -------------------------------------------------------------------------------- 1 | # GlobalState 2 | 3 | Snapshotting of global state, factored out of PHPUnit into a stand-alone component. 4 | 5 | [![Build Status](https://travis-ci.org/sebastianbergmann/global-state.svg?branch=master)](https://travis-ci.org/sebastianbergmann/global-state) 6 | 7 | ## Installation 8 | 9 | To add this package as a local, per-project dependency to your project, simply add a dependency on `sebastian/global-state` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on GlobalState: 10 | 11 | { 12 | "require": { 13 | "sebastian/global-state": "1.0.*" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php: -------------------------------------------------------------------------------- 1 | property = $property; 21 | } 22 | 23 | /** 24 | * Matches a property by its name. 25 | * 26 | * {@inheritdoc} 27 | */ 28 | public function matches($object, $property) 29 | { 30 | return $property == $this->property; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/RefreshTokenRequest.php: -------------------------------------------------------------------------------- 1 | headers["Authorization"] = "Basic " . $environment->authorizationString(); 13 | $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; 14 | $this->body = [ 15 | "grant_type" => "authorization_code", 16 | "code" => $authorizationCode 17 | ]; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php: -------------------------------------------------------------------------------- 1 | callback = $callable; 21 | } 22 | 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function apply($element) 27 | { 28 | return call_user_func($this->callback, $element); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpResponse.php: -------------------------------------------------------------------------------- 1 | statusCode = $statusCode; 31 | $this->headers = $headers; 32 | $this->result = $body; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/tests/Fixtures/ExceptionThrower.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\ObjectEnumerator\Fixtures; 12 | 13 | use RuntimeException; 14 | 15 | class ExceptionThrower 16 | { 17 | private $property; 18 | 19 | public function __construct() 20 | { 21 | unset($this->property); 22 | } 23 | 24 | public function __get($property) 25 | { 26 | throw new RuntimeException; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /themes/collection-password.php: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 |
13 |

14 | 15 | 16 |

17 |
18 |
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /gutenberg/css/images/Blue-1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /gutenberg/css/images/Blue-3.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /vendor/ 3 | composer.phar 4 | composer.lock 5 | 6 | # User-specific stuff: 7 | .idea/**/workspace.xml 8 | .idea/**/tasks.xml 9 | .idea/dictionaries 10 | 11 | .idea/codeStyles/Project.xml 12 | .idea/codeStyles/codeStyleConfig.xml 13 | .idea/* 14 | 15 | # Sensitive or high-churn files: 16 | .idea/**/dataSources/ 17 | .idea/**/dataSources.ids 18 | .idea/**/dataSources.xml 19 | .idea/**/dataSources.local.xml 20 | .idea/**/sqlDataSources.xml 21 | .idea/**/dynamic.xml 22 | .idea/**/uiDesigner.xml 23 | 24 | ## File-based project format: 25 | *.iws 26 | .idea/*.iml 27 | .idea/vcs.xml 28 | .idea/php.xml 29 | .idea/php-test-framework.xml 30 | .idea/modules.xml 31 | __files/* 32 | mappings/* 33 | -------------------------------------------------------------------------------- /gutenberg/css/images/Black-3.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: "packagist/myclabs/deep-copy" 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | tests 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/resource-operations", 3 | "description": "Provides a list of PHP built-in functions that operate on resources", 4 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations", 5 | "license": "BSD-3-Clause", 6 | "authors": [ 7 | { 8 | "name": "Sebastian Bergmann", 9 | "email": "sebastian@phpunit.de" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.6.0" 14 | }, 15 | "autoload": { 16 | "classmap": [ 17 | "src/" 18 | ] 19 | }, 20 | "extra": { 21 | "branch-alias": { 22 | "dev-master": "1.0.x-dev" 23 | } 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /gutenberg/sell-media-items.php: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | tests 13 | 14 | 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | tests 9 | 10 | 11 | 12 | 13 | src 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/src/LCS/LongestCommonSubsequence.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff\LCS; 12 | 13 | /** 14 | * Interface for implementations of longest common subsequence calculation. 15 | */ 16 | interface LongestCommonSubsequence 17 | { 18 | /** 19 | * Calculates the longest common subsequence of two arrays. 20 | * 21 | * @param array $from 22 | * @param array $to 23 | * 24 | * @return array 25 | */ 26 | public function calculate(array $from, array $to); 27 | } 28 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | tests 13 | 14 | 15 | 16 | 17 | src 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | tests 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer.php: -------------------------------------------------------------------------------- 1 | path = $path; 38 | $this->verb = $verb; 39 | $this->body = NULL; 40 | $this->headers = []; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/code-unit-reverse-lookup", 3 | "description": "Looks up which function or method a line of code belongs to", 4 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", 5 | "license": "BSD-3-Clause", 6 | "authors": [ 7 | { 8 | "name": "Sebastian Bergmann", 9 | "email": "sebastian@phpunit.de" 10 | } 11 | ], 12 | "require": { 13 | "php": "^5.6 || ^7.0" 14 | }, 15 | "require-dev": { 16 | "phpunit/phpunit": "^5.7 || ^6.0" 17 | }, 18 | "autoload": { 19 | "classmap": [ 20 | "src/" 21 | ] 22 | }, 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "1.0.x-dev" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php: -------------------------------------------------------------------------------- 1 | refreshToken = $refreshToken; 16 | $this->authInjector = new AuthorizationInjector($this, $environment, $refreshToken); 17 | $this->addInjector($this->authInjector); 18 | $this->addInjector(new GzipInjector()); 19 | $this->addInjector(new FPTIInstrumentationInjector()); 20 | } 21 | 22 | public function userAgent() 23 | { 24 | return UserAgent::getValue(); 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php: -------------------------------------------------------------------------------- 1 | $propertyValue) { 28 | $copy->{$propertyName} = $propertyValue; 29 | } 30 | 31 | return $copy; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | tests 13 | 14 | 15 | 16 | 17 | src 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | tests 13 | 14 | 15 | 16 | 17 | src 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/version/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/version", 3 | "description": "Library that helps with managing the version number of Git-hosted PHP projects", 4 | "homepage": "https://github.com/sebastianbergmann/version", 5 | "license": "BSD-3-Clause", 6 | "authors": [ 7 | { 8 | "name": "Sebastian Bergmann", 9 | "email": "sebastian@phpunit.de", 10 | "role": "lead" 11 | } 12 | ], 13 | "support": { 14 | "issues": "https://github.com/sebastianbergmann/version/issues" 15 | }, 16 | "require": { 17 | "php": ">=5.6" 18 | }, 19 | "autoload": { 20 | "classmap": [ 21 | "src/" 22 | ] 23 | }, 24 | "extra": { 25 | "branch-alias": { 26 | "dev-master": "2.0.x-dev" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/AccessTokenRequest.php: -------------------------------------------------------------------------------- 1 | headers["Authorization"] = "Basic " . $environment->authorizationString(); 13 | $body = [ 14 | "grant_type" => "client_credentials" 15 | ]; 16 | 17 | if (!is_null($refreshToken)) 18 | { 19 | $body["grant_type"] = "refresh_token"; 20 | $body["refresh_token"] = $refreshToken; 21 | } 22 | 23 | $this->body = $body; 24 | $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/Text.php: -------------------------------------------------------------------------------- 1 | body; 25 | if (is_string($body)) { 26 | return $body; 27 | } 28 | if (is_array($body)) { 29 | return json_encode($body); 30 | } 31 | return implode(" ", $body); 32 | } 33 | 34 | public function decode($data) 35 | { 36 | return $data; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/environment", 3 | "description": "Provides functionality to handle HHVM/PHP environments", 4 | "keywords": ["environment","hhvm","xdebug"], 5 | "homepage": "http://www.github.com/sebastianbergmann/environment", 6 | "license": "BSD-3-Clause", 7 | "authors": [ 8 | { 9 | "name": "Sebastian Bergmann", 10 | "email": "sebastian@phpunit.de" 11 | } 12 | ], 13 | "prefer-stable": true, 14 | "require": { 15 | "php": "^5.6 || ^7.0" 16 | }, 17 | "require-dev": { 18 | "phpunit/phpunit": "^5.0" 19 | }, 20 | "autoload": { 21 | "classmap": [ 22 | "src/" 23 | ] 24 | }, 25 | "extra": { 26 | "branch-alias": { 27 | "dev-master": "2.0.x-dev" 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineEmptyCollectionFilter.php: -------------------------------------------------------------------------------- 1 | setAccessible(true); 25 | 26 | $reflectionProperty->setValue($object, new ArrayCollection()); 27 | } 28 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/diff", 3 | "description": "Diff implementation", 4 | "keywords": ["diff"], 5 | "homepage": "https://github.com/sebastianbergmann/diff", 6 | "license": "BSD-3-Clause", 7 | "authors": [ 8 | { 9 | "name": "Sebastian Bergmann", 10 | "email": "sebastian@phpunit.de" 11 | }, 12 | { 13 | "name": "Kore Nordmann", 14 | "email": "mail@kore-nordmann.de" 15 | } 16 | ], 17 | "require": { 18 | "php": "^5.3.3 || ^7.0" 19 | }, 20 | "require-dev": { 21 | "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" 22 | }, 23 | "autoload": { 24 | "classmap": [ 25 | "src/" 26 | ] 27 | }, 28 | "extra": { 29 | "branch-alias": { 30 | "dev-master": "1.4-dev" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/Tag/TaggedValue.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Tag; 13 | 14 | /** 15 | * @author Nicolas Grekas 16 | * @author Guilhem N. 17 | */ 18 | final class TaggedValue 19 | { 20 | private $tag; 21 | private $value; 22 | 23 | public function __construct(string $tag, $value) 24 | { 25 | $this->tag = $tag; 26 | $this->value = $value; 27 | } 28 | 29 | public function getTag(): string 30 | { 31 | return $this->tag; 32 | } 33 | 34 | public function getValue() 35 | { 36 | return $this->value; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store 32 | .DS_Store? 33 | ._* 34 | .Spotlight-V100 35 | .Trashes 36 | Icon? 37 | ehthumbs.db 38 | Thumbs.db 39 | .htaccess 40 | 41 | # Node and Grunt # 42 | ################## 43 | */node_modules/ 44 | /build/ 45 | /grunt/ 46 | 47 | # SASS # 48 | ######## 49 | *.map 50 | .sass-cache 51 | 52 | # Deployment # 53 | ############## 54 | deploy.sh 55 | 56 | # Editors # 57 | ############## 58 | .idea 59 | sell-media.sublime-workspace -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | tests 14 | 15 | 16 | 17 | 18 | src 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyMatcher.php: -------------------------------------------------------------------------------- 1 | class = $class; 27 | $this->property = $property; 28 | } 29 | 30 | /** 31 | * Matches a specific property of a specific class. 32 | * 33 | * {@inheritdoc} 34 | */ 35 | public function matches($object, $property) 36 | { 37 | return ($object instanceof $this->class) && $property == $this->property; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-ten.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 30 | } 31 | 32 | /** 33 | * Close wrappers. 34 | */ 35 | public static function sm_output_content_wrapper_end() { 36 | _e('
','sell_media'); 37 | } 38 | } 39 | 40 | SM_Twenty_Ten::init(); 41 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/Json.php: -------------------------------------------------------------------------------- 1 | body; 25 | if (is_string($body)) { 26 | return $body; 27 | } 28 | if (is_array($body)) { 29 | return json_encode($body); 30 | } 31 | throw new \Exception("Cannot serialize data. Unknown type"); 32 | } 33 | 34 | public function decode($data) 35 | { 36 | return json_decode($data); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/ArrayObjectFilter.php: -------------------------------------------------------------------------------- 1 | copier = $copier; 21 | } 22 | 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function apply($arrayObject) 27 | { 28 | $clone = clone $arrayObject; 29 | foreach ($arrayObject->getArrayCopy() as $k => $v) { 30 | $clone->offsetSet($k, $this->copier->copy($v)); 31 | } 32 | 33 | return $clone; 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/exporter/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-eleven.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 30 | } 31 | 32 | /** 33 | * Close wrappers. 34 | */ 35 | public static function sm_output_content_wrapper_end() { 36 | _e('
','sell_media'); 37 | } 38 | } 39 | 40 | SM_Twenty_Eleven::init(); 41 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/global-state", 3 | "description": "Snapshotting of global state", 4 | "keywords": ["global state"], 5 | "homepage": "http://www.github.com/sebastianbergmann/global-state", 6 | "license": "BSD-3-Clause", 7 | "authors": [ 8 | { 9 | "name": "Sebastian Bergmann", 10 | "email": "sebastian@phpunit.de" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3.3" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "~4.2" 18 | }, 19 | "suggest": { 20 | "ext-uopz": "*" 21 | }, 22 | "autoload": { 23 | "classmap": [ 24 | "src/" 25 | ] 26 | }, 27 | "autoload-dev": { 28 | "classmap": [ 29 | "tests/_fixture/" 30 | ] 31 | }, 32 | "extra": { 33 | "branch-alias": { 34 | "dev-master": "1.0-dev" 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/object-enumerator", 3 | "description": "Traverses array structures and object graphs to enumerate all referenced objects", 4 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/", 5 | "license": "BSD-3-Clause", 6 | "authors": [ 7 | { 8 | "name": "Sebastian Bergmann", 9 | "email": "sebastian@phpunit.de" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.6", 14 | "sebastian/recursion-context": "~2.0" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "~5" 18 | }, 19 | "autoload": { 20 | "classmap": [ 21 | "src/" 22 | ] 23 | }, 24 | "autoload-dev": { 25 | "classmap": [ 26 | "tests/" 27 | ] 28 | }, 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "2.0.x-dev" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /inc/class-queries.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | // Exit if accessed directly 10 | if ( ! defined( 'ABSPATH' ) ) { 11 | exit; 12 | } 13 | 14 | class SellMediaQueries { 15 | 16 | /** 17 | * Constructor 18 | */ 19 | public function __construct() { 20 | 21 | add_action( 'parse_query', array( $this, 'parse_query' ) ); 22 | 23 | } 24 | 25 | /** 26 | * Show attachments on taxonomy archives 27 | * By default, WordPress doesn't show attachments on archives. 28 | * @return object the $wp_query object 29 | */ 30 | public function parse_query() { 31 | 32 | global $wp_query; 33 | 34 | // When inside a custom taxonomy archive include attachments 35 | if ( is_tax( 'keywords' ) or is_tax( 'creator' ) ) { 36 | $wp_query->query_vars['post_type'] = array( 'attachment' ); 37 | $wp_query->query_vars['post_status'] = array( null ); 38 | 39 | return $wp_query; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-sixteen.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 30 | } 31 | 32 | /** 33 | * Close wrappers. 34 | */ 35 | public static function sm_output_content_wrapper_end() { 36 | _e('
','sell_media'); 37 | } 38 | } 39 | 40 | SM_Twenty_Sixteen::init(); 41 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php: -------------------------------------------------------------------------------- 1 | setAccessible(true); 23 | $oldCollection = $reflectionProperty->getValue($object); 24 | 25 | $newCollection = $oldCollection->map( 26 | function ($item) use ($objectCopier) { 27 | return $objectCopier($item); 28 | } 29 | ); 30 | 31 | $reflectionProperty->setValue($object, $newCollection); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-twelve.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 31 | } 32 | 33 | /** 34 | * Close wrappers. 35 | */ 36 | public static function sm_output_content_wrapper_end() { 37 | _e('
','sell_media'); 38 | } 39 | } 40 | 41 | SM_Twenty_Twelve::init(); 42 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-fifteen.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 31 | } 32 | 33 | /** 34 | * Close wrappers. 35 | */ 36 | public static function sm_output_content_wrapper_end() { 37 | _e('
','sell_media'); 38 | } 39 | } 40 | 41 | SM_Twenty_Fifteen::init(); 42 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/recursion-context", 3 | "description": "Provides functionality to recursively process PHP variables", 4 | "homepage": "http://www.github.com/sebastianbergmann/recursion-context", 5 | "license": "BSD-3-Clause", 6 | "authors": [ 7 | { 8 | "name": "Sebastian Bergmann", 9 | "email": "sebastian@phpunit.de" 10 | }, 11 | { 12 | "name": "Jeff Welch", 13 | "email": "whatthejeff@gmail.com" 14 | }, 15 | { 16 | "name": "Adam Harvey", 17 | "email": "aharvey@php.net" 18 | } 19 | ], 20 | "require": { 21 | "php": ">=5.3.3" 22 | }, 23 | "require-dev": { 24 | "phpunit/phpunit": "~4.4" 25 | }, 26 | "autoload": { 27 | "classmap": [ 28 | "src/" 29 | ] 30 | }, 31 | "extra": { 32 | "branch-alias": { 33 | "dev-master": "2.0.x-dev" 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-thirteen.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 31 | } 32 | 33 | /** 34 | * Close wrappers. 35 | */ 36 | public static function sm_output_content_wrapper_end() { 37 | _e('
','sell_media'); 38 | } 39 | } 40 | 41 | SM_Twenty_Thirteen::init(); 42 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "myclabs/deep-copy", 3 | "type": "library", 4 | "description": "Create deep copies (clones) of your objects", 5 | "keywords": ["clone", "copy", "duplicate", "object", "object graph"], 6 | "license": "MIT", 7 | 8 | "autoload": { 9 | "psr-4": { 10 | "DeepCopy\\": "src/DeepCopy/" 11 | }, 12 | "files": [ 13 | "src/DeepCopy/deep_copy.php" 14 | ] 15 | }, 16 | "autoload-dev": { 17 | "psr-4": { 18 | "DeepCopy\\": "fixtures/", 19 | "DeepCopyTest\\": "tests/DeepCopyTest/" 20 | } 21 | }, 22 | 23 | "require": { 24 | "php": "^7.1 || ^8.0" 25 | }, 26 | "require-dev": { 27 | "doctrine/collections": "^1.0", 28 | "doctrine/common": "^2.6", 29 | "phpunit/phpunit": "^7.1" 30 | }, 31 | "replace": { 32 | "myclabs/deep-copy": "self.version" 33 | }, 34 | 35 | "config": { 36 | "sort-packages": true 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-fourteen.php: -------------------------------------------------------------------------------- 1 |
','sell_media'); 31 | } 32 | 33 | /** 34 | * Close wrappers. 35 | */ 36 | public static function sm_output_content_wrapper_end() { 37 | _e('
','sell_media'); 38 | get_sidebar( 'content' ); 39 | } 40 | } 41 | 42 | SM_Twenty_Fourteen::init(); 43 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-twenty.php: -------------------------------------------------------------------------------- 1 | ','sell_media'); 31 | _e('
','sell_media'); 32 | } 33 | 34 | /** 35 | * Close the Twenty Nineteen wrapper. 36 | */ 37 | public static function sm_output_content_wrapper_end() { 38 | _e('
','sell_media'); 39 | _e('','sell_media'); 40 | } 41 | } 42 | 43 | SM_Twenty_Twenty::init(); 44 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-nineteen.php: -------------------------------------------------------------------------------- 1 | ','sell_media'); 30 | _e('
','sell_media'); 31 | } 32 | 33 | /** 34 | * Close the Twenty Nineteen wrapper. 35 | */ 36 | public static function sm_output_content_wrapper_end() { 37 | _e('
','sell_media'); 38 | _e('','sell_media'); 39 | } 40 | 41 | } 42 | 43 | SM_Twenty_Nineteen::init(); 44 | -------------------------------------------------------------------------------- /gutenberg/css/images/Black-2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /inc/mime-types.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | // Exit if accessed directly 11 | if ( ! defined( 'ABSPATH' ) ) exit; 12 | 13 | /** 14 | * Allowed Mime Types 15 | * 16 | * @since 1.0 17 | * 18 | * @param array $existing_mimes A list of all the existing MIME types 19 | * @return array A list of all the new MIME types appended 20 | */ 21 | function sell_media_allowed_mime_types( $existing_mimes = array() ) { 22 | $existing_mimes['zip'] = 'application/zip'; 23 | $existing_mimes['epub'] = 'application/epub+zip'; 24 | $existing_mimes['mobi'] = 'application/x-mobipocket-ebook'; 25 | $existing_mimes['m4r'] = 'audio/aac'; 26 | $existing_mimes['aif'] = 'audio/x-aiff'; 27 | $existing_mimes['aiff'] = 'audio/aiff'; 28 | $existing_mimes['psd'] = 'image/photoshop'; 29 | $existing_mimes['apk'] = 'application/vnd.android.package-archive'; 30 | $existing_mimes['msi'] = 'application/x-ole-storage'; 31 | 32 | return $existing_mimes; 33 | } 34 | add_filter( 'upload_mimes', 'sell_media_allowed_mime_types' ); -------------------------------------------------------------------------------- /gutenberg/blocks/sell-media-list-all-collections/index.js: -------------------------------------------------------------------------------- 1 | import { registerBlockType } from '@wordpress/blocks'; 2 | import { components } from '@wordpress/components'; 3 | import { editor } from '@wordpress/editor'; 4 | 5 | const { __, _x, sprintf } = wp.i18n; 6 | const { 7 | ServerSideRender, 8 | } = wp.components; 9 | 10 | registerBlockType( 'sellmedia/sell-media-list-all-collections', { 11 | title: 'Sell Media Collection Items', 12 | description: __( 'Block showing a Sell Media Collection Items' ), 13 | icon: 'grid-view', 14 | category: 'sellmedia-blocks', 15 | attributes: { 16 | align: { 17 | type: 'string', 18 | default: 'full', 19 | }, 20 | }, 21 | supports: { 22 | align: true 23 | }, 24 | edit( props ) { 25 | function do_serverside_render() { 26 | return 29 | } 30 | return [ 31 | do_serverside_render(), 32 | ]; 33 | }, 34 | save: props => { 35 | }, 36 | 37 | }); -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Filter/ReplaceFilter.php: -------------------------------------------------------------------------------- 1 | callback = $callable; 23 | } 24 | 25 | /** 26 | * Replaces the object property by the result of the callback called with the object property. 27 | * 28 | * {@inheritdoc} 29 | */ 30 | public function apply($object, $property, $objectCopier) 31 | { 32 | $reflectionProperty = ReflectionHelper::getProperty($object, $property); 33 | $reflectionProperty->setAccessible(true); 34 | 35 | $value = call_user_func($this->callback, $reflectionProperty->getValue($object)); 36 | 37 | $reflectionProperty->setValue($object, $value); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/LineTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | use PHPUnit\Framework\TestCase; 14 | 15 | /** 16 | * @covers SebastianBergmann\Diff\Line 17 | */ 18 | class LineTest extends TestCase 19 | { 20 | /** 21 | * @var Line 22 | */ 23 | private $line; 24 | 25 | protected function setUp() 26 | { 27 | $this->line = new Line; 28 | } 29 | 30 | public function testCanBeCreatedWithoutArguments() 31 | { 32 | $this->assertInstanceOf('SebastianBergmann\Diff\Line', $this->line); 33 | } 34 | 35 | public function testTypeCanBeRetrieved() 36 | { 37 | $this->assertEquals(Line::UNCHANGED, $this->line->getType()); 38 | } 39 | 40 | public function testContentCanBeRetrieved() 41 | { 42 | $this->assertEquals('', $this->line->getContent()); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "paypal/paypal-checkout-sdk", 3 | "description": "PayPal's PHP SDK for Checkout REST APIs", 4 | "keywords": ["paypal", "payments", "rest", "sdk", "orders", "checkout"], 5 | "type": "library", 6 | "license": "https://github.com/paypal/Checkout-PHP-SDK/blob/master/LICENSE", 7 | "homepage": "http://github.com/paypal/Checkout-PHP-SDK/", 8 | "require": { 9 | "paypal/paypalhttp": "1.0.0" 10 | }, 11 | "authors": [ 12 | { 13 | "name": "PayPal", 14 | "homepage": "https://github.com/paypal/Checkout-PHP-SDK/contributors" 15 | } 16 | ], 17 | "require-dev": { 18 | "phpunit/phpunit": "^5.7" 19 | }, 20 | "autoload": { 21 | "psr-4": { 22 | "PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk", 23 | "Sample\\":"samples/" 24 | } 25 | }, 26 | "autoload-dev": { 27 | "psr-4": { 28 | "Test\\":"tests/" 29 | } 30 | }, 31 | "scripts": { 32 | "unit": "phpunit --testsuite unit", 33 | "integration": "phpunit --testsuite integration" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2020 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\GlobalState\TestFixture; 12 | 13 | use DomDocument; 14 | use ArrayObject; 15 | 16 | /** 17 | */ 18 | class SnapshotClass 19 | { 20 | private static $string = 'snapshot'; 21 | private static $dom; 22 | private static $closure; 23 | private static $arrayObject; 24 | private static $snapshotDomDocument; 25 | private static $resource; 26 | private static $stdClass; 27 | 28 | public static function init() 29 | { 30 | self::$dom = new DomDocument(); 31 | self::$closure = function () {}; 32 | self::$arrayObject = new ArrayObject(array(1, 2, 3)); 33 | self::$snapshotDomDocument = new SnapshotDomDocument(); 34 | self::$resource = fopen('php://memory', 'r'); 35 | self::$stdClass = new \stdClass(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/polyfill-ctype/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018-2019 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'), 10 | 'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), 11 | 'Test\\' => array($baseDir . '/tests'), 12 | 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'), 13 | 'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'), 14 | 'Sample\\' => array($baseDir . '/samples'), 15 | 'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'), 16 | 'PayPalHttp\\' => array($vendorDir . '/paypal/paypalhttp/lib/PayPalHttp'), 17 | 'PayPalCheckoutSdk\\' => array($baseDir . '/lib/PayPalCheckoutSdk'), 18 | 'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'), 19 | 'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'), 20 | ); 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 My C-Sense 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2016 PayPal, Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/src/Line.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | class Line 14 | { 15 | const ADDED = 1; 16 | const REMOVED = 2; 17 | const UNCHANGED = 3; 18 | 19 | /** 20 | * @var int 21 | */ 22 | private $type; 23 | 24 | /** 25 | * @var string 26 | */ 27 | private $content; 28 | 29 | /** 30 | * @param int $type 31 | * @param string $content 32 | */ 33 | public function __construct($type = self::UNCHANGED, $content = '') 34 | { 35 | $this->type = $type; 36 | $this->content = $content; 37 | } 38 | 39 | /** 40 | * @return string 41 | */ 42 | public function getContent() 43 | { 44 | return $this->content; 45 | } 46 | 47 | /** 48 | * @return int 49 | */ 50 | public function getType() 51 | { 52 | return $this->type; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/polyfill-ctype/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/polyfill-ctype", 3 | "type": "library", 4 | "description": "Symfony polyfill for ctype functions", 5 | "keywords": ["polyfill", "compatibility", "portable", "ctype"], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Gert de Pagter", 11 | "email": "BackEndTea@gmail.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.3.3" 20 | }, 21 | "autoload": { 22 | "psr-4": { "Symfony\\Polyfill\\Ctype\\": "" }, 23 | "files": [ "bootstrap.php" ] 24 | }, 25 | "suggest": { 26 | "ext-ctype": "For best performance" 27 | }, 28 | "minimum-stability": "dev", 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "1.18-dev" 32 | }, 33 | "thanks": { 34 | "name": "symfony/polyfill", 35 | "url": "https://github.com/symfony/polyfill" 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /themes/theme-support/class-sm-twenty-seventeen.php: -------------------------------------------------------------------------------- 1 | ','sell_media'); 30 | _e('
','sell_media'); 31 | _e('
','sell_media'); 32 | } 33 | 34 | /** 35 | * Close the Twenty Seventeen wrapper. 36 | */ 37 | public static function sm_output_content_wrapper_end() { 38 | _e('
','sell_media'); 39 | _e('
','sell_media'); 40 | get_sidebar(); 41 | _e('','sell_media'); 42 | } 43 | } 44 | 45 | SM_Twenty_Seventeen::init(); -------------------------------------------------------------------------------- /gutenberg/css/images/Blue-2.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/tests/WizardTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\CodeUnitReverseLookup; 12 | 13 | use PHPUnit\Framework\TestCase; 14 | 15 | /** 16 | * @covers SebastianBergmann\CodeUnitReverseLookup\Wizard 17 | */ 18 | class WizardTest extends TestCase 19 | { 20 | /** 21 | * @var Wizard 22 | */ 23 | private $wizard; 24 | 25 | protected function setUp() 26 | { 27 | $this->wizard = new Wizard; 28 | } 29 | 30 | public function testMethodCanBeLookedUp() 31 | { 32 | $this->assertEquals( 33 | __METHOD__, 34 | $this->wizard->lookup(__FILE__, __LINE__) 35 | ); 36 | } 37 | 38 | public function testReturnsFilenameAndLineNumberAsStringWhenNotInCodeUnit() 39 | { 40 | $this->assertEquals( 41 | 'file.php:1', 42 | $this->wizard->lookup('file.php', 1) 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Curl.php: -------------------------------------------------------------------------------- 1 | curl = $curl; 24 | } 25 | 26 | public function setOpt($option, $value) 27 | { 28 | curl_setopt($this->curl, $option, $value); 29 | return $this; 30 | } 31 | 32 | public function close() 33 | { 34 | curl_close($this->curl); 35 | return $this; 36 | } 37 | 38 | public function exec() 39 | { 40 | return curl_exec($this->curl); 41 | } 42 | 43 | public function errNo() 44 | { 45 | return curl_errno($this->curl); 46 | } 47 | 48 | public function getInfo($option) 49 | { 50 | return curl_getinfo($this->curl, $option); 51 | } 52 | 53 | public function error() 54 | { 55 | return curl_error($this->curl); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/yaml/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/yaml", 3 | "type": "library", 4 | "description": "Symfony Yaml Component", 5 | "keywords": [], 6 | "homepage": "https://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Fabien Potencier", 11 | "email": "fabien@symfony.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "https://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=7.1.3", 20 | "symfony/polyfill-ctype": "~1.8" 21 | }, 22 | "require-dev": { 23 | "symfony/console": "^3.4|^4.0|^5.0" 24 | }, 25 | "conflict": { 26 | "symfony/console": "<3.4" 27 | }, 28 | "suggest": { 29 | "symfony/console": "For validating YAML files using the lint command" 30 | }, 31 | "autoload": { 32 | "psr-4": { "Symfony\\Component\\Yaml\\": "" }, 33 | "exclude-from-classmap": [ 34 | "/Tests/" 35 | ] 36 | }, 37 | "minimum-stability": "dev", 38 | "extra": { 39 | "branch-alias": { 40 | "dev-master": "4.4-dev" 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsVoidRequest.php: -------------------------------------------------------------------------------- 1 | path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); 21 | $this->headers["Content-Type"] = "application/json"; 22 | } 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/comparator", 3 | "description": "Provides the functionality to compare PHP values for equality", 4 | "keywords": ["comparator","compare","equality"], 5 | "homepage": "http://www.github.com/sebastianbergmann/comparator", 6 | "license": "BSD-3-Clause", 7 | "authors": [ 8 | { 9 | "name": "Sebastian Bergmann", 10 | "email": "sebastian@phpunit.de" 11 | }, 12 | { 13 | "name": "Jeff Welch", 14 | "email": "whatthejeff@gmail.com" 15 | }, 16 | { 17 | "name": "Volker Dusch", 18 | "email": "github@wallbash.com" 19 | }, 20 | { 21 | "name": "Bernhard Schussek", 22 | "email": "bschussek@2bepublished.at" 23 | } 24 | ], 25 | "require": { 26 | "php": ">=5.3.3", 27 | "sebastian/diff": "~1.2", 28 | "sebastian/exporter": "~1.2 || ~2.0" 29 | }, 30 | "require-dev": { 31 | "phpunit/phpunit": "~4.4" 32 | }, 33 | "autoload": { 34 | "classmap": [ 35 | "src/" 36 | ] 37 | }, 38 | "extra": { 39 | "branch-alias": { 40 | "dev-master": "1.2.x-dev" 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /inc/class-mail.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | // Exit if accessed directly 11 | if ( ! defined( 'ABSPATH' ) ) exit; 12 | 13 | Class SellMediaMail { 14 | 15 | private $settings; 16 | 17 | /** 18 | * Constructor 19 | */ 20 | public function __construct() { 21 | 22 | $this->settings = sell_media_get_plugin_options(); 23 | 24 | add_filter( 'wp_mail_from', array( &$this, 'from_email' ) ); 25 | add_filter( 'wp_mail_from_name', array( &$this, 'from_name' ) ); 26 | } 27 | 28 | /** 29 | * Change the from email address to user defined setting in Sell Media or the admin_email 30 | * 31 | * @return string the new email address 32 | */ 33 | public function from_email() { 34 | $email = ( isset($this->settings->from_email) && $this->settings->from_email ) ? $this->settings->from_email : get_bloginfo( 'admin_email' ); 35 | return $email; 36 | } 37 | 38 | /** 39 | * Change the from name from WordPress to user defined setting in Sell Media or the site name 40 | * @return string the new from name 41 | */ 42 | public function from_name() { 43 | $name = ( isset($this->settings->from_name) && $this->settings->from_name ) ? $this->settings->from_name : get_bloginfo( 'name' ); 44 | 45 | return $name; 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php: -------------------------------------------------------------------------------- 1 | propertyType = $propertyType; 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | public function matches($object, $property) 35 | { 36 | try { 37 | $reflectionProperty = ReflectionHelper::getProperty($object, $property); 38 | } catch (ReflectionException $exception) { 39 | return false; 40 | } 41 | 42 | $reflectionProperty->setAccessible(true); 43 | 44 | return $reflectionProperty->getValue($object) instanceof $this->propertyType; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedListFilter.php: -------------------------------------------------------------------------------- 1 | copier = $copier; 20 | } 21 | 22 | /** 23 | * {@inheritdoc} 24 | */ 25 | public function apply($element) 26 | { 27 | $newElement = clone $element; 28 | 29 | $copy = $this->createCopyClosure(); 30 | 31 | return $copy($newElement); 32 | } 33 | 34 | private function createCopyClosure() 35 | { 36 | $copier = $this->copier; 37 | 38 | $copy = function (SplDoublyLinkedList $list) use ($copier) { 39 | // Replace each element in the list with a deep copy of itself 40 | for ($i = 1; $i <= $list->count(); $i++) { 41 | $copy = $copier->recursiveCopy($list->shift()); 42 | 43 | $list->push($copy); 44 | } 45 | 46 | return $list; 47 | }; 48 | 49 | return Closure::bind($copy, null, DeepCopy::class); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/sebastianbergmann/comparator.svg?branch=master)](https://travis-ci.org/sebastianbergmann/comparator) 2 | 3 | # Comparator 4 | 5 | This component provides the functionality to compare PHP values for equality. 6 | 7 | ## Installation 8 | 9 | You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): 10 | 11 | composer require sebastian/comparator 12 | 13 | If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: 14 | 15 | composer require --dev sebastian/comparator 16 | 17 | ## Usage 18 | 19 | ```php 20 | getComparatorFor($date1, $date2); 29 | 30 | try { 31 | $comparator->assertEquals($date1, $date2); 32 | print "Dates match"; 33 | } 34 | 35 | catch (ComparisonFailure $failure) { 36 | print "Dates don't match"; 37 | } 38 | ``` 39 | 40 | -------------------------------------------------------------------------------- /themes/admin-add-item-main-container.php: -------------------------------------------------------------------------------- 1 | get_tabs(); 11 | if ( empty( $tabs ) ) { 12 | return false; 13 | } 14 | ?> 15 |
16 |
    17 | $tab ) : 19 | $class = ( 0 === $i ) ? 'sell-media-tab-nav-active' : ''; 20 | ?> 21 |
  • 22 | 23 |
  • 24 | 25 |
26 |
27 | $tab ) : 29 | ?> 30 |
31 |

32 | 37 |
38 | 39 |
40 |
41 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/exporter/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sebastian/exporter", 3 | "description": "Provides the functionality to export PHP variables for visualization", 4 | "keywords": ["exporter","export"], 5 | "homepage": "http://www.github.com/sebastianbergmann/exporter", 6 | "license": "BSD-3-Clause", 7 | "authors": [ 8 | { 9 | "name": "Sebastian Bergmann", 10 | "email": "sebastian@phpunit.de" 11 | }, 12 | { 13 | "name": "Jeff Welch", 14 | "email": "whatthejeff@gmail.com" 15 | }, 16 | { 17 | "name": "Volker Dusch", 18 | "email": "github@wallbash.com" 19 | }, 20 | { 21 | "name": "Adam Harvey", 22 | "email": "aharvey@php.net" 23 | }, 24 | { 25 | "name": "Bernhard Schussek", 26 | "email": "bschussek@2bepublished.at" 27 | } 28 | ], 29 | "require": { 30 | "php": ">=5.3.3", 31 | "sebastian/recursion-context": "~2.0" 32 | }, 33 | "require-dev": { 34 | "phpunit/phpunit": "~4.4", 35 | "ext-mbstring": "*" 36 | }, 37 | "autoload": { 38 | "classmap": [ 39 | "src/" 40 | ] 41 | }, 42 | "extra": { 43 | "branch-alias": { 44 | "dev-master": "2.0.x-dev" 45 | } 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/paypal/paypalhttp/lib/PayPalHttp/Serializer/Form.php: -------------------------------------------------------------------------------- 1 | body) || !$this->isAssociative($request->body)) 25 | { 26 | throw new \Exception("HttpRequest body must be an associative array when Content-Type is: " . $request->headers["Content-Type"]); 27 | } 28 | 29 | return http_build_query($request->body); 30 | } 31 | 32 | /** 33 | * @param $body 34 | * @return mixed 35 | * @throws \Exception as multipart does not support deserialization. 36 | */ 37 | public function decode($body) 38 | { 39 | throw new \Exception("CurlSupported does not support deserialization"); 40 | } 41 | 42 | private function isAssociative(array $array) 43 | { 44 | return array_values($array) !== $array; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/src/MockObjectComparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * Compares PHPUnit_Framework_MockObject_MockObject instances for equality. 15 | */ 16 | class MockObjectComparator extends ObjectComparator 17 | { 18 | /** 19 | * Returns whether the comparator can compare two values. 20 | * 21 | * @param mixed $expected The first value to compare 22 | * @param mixed $actual The second value to compare 23 | * @return bool 24 | */ 25 | public function accepts($expected, $actual) 26 | { 27 | return $expected instanceof \PHPUnit_Framework_MockObject_MockObject && $actual instanceof \PHPUnit_Framework_MockObject_MockObject; 28 | } 29 | 30 | /** 31 | * Converts an object to an array containing all of its private, protected 32 | * and public properties. 33 | * 34 | * @param object $object 35 | * @return array 36 | */ 37 | protected function toArray($object) 38 | { 39 | $array = parent::toArray($object); 40 | 41 | unset($array['__phpunit_invocationMocker']); 42 | 43 | return $array; 44 | } 45 | } -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | #Contributing to Sell Media 2 | 3 | Code contributions, patches, localizations and bug reports are always welcome and are critical to the success of Sell Media. Please follow these guidelines when contributing to Sell Media: 4 | 5 | __Please Note:__ GitHub is for bug reports and contributions only. Feature requests, extension ideas and general support inquiries can be send here: support@graphpaperpress.com 6 | 7 | ## Getting Started 8 | 9 | * File an issue on the [Issue Tracker](https://github.com/graphpaperpress/Sell-Media/issues), assuming one does not already exist. 10 | * Clearly describe the issue, including steps to reproduce the bug. 11 | * Attach screenshots to the issue. 12 | 13 | ## Making Changes 14 | 15 | * Fork the repository on GitHub 16 | * Make the changes to your forked repository 17 | * Adhere to [WordPress Coding Standards](http://codex.wordpress.org/WordPress_Coding_Standards) 18 | * When committing, reference your issue (if present) and include a note about the fix 19 | * Push the changes to your fork and submit a pull request to the 'master' branch of the Sell Media repository 20 | 21 | ## Translations 22 | 23 | * Please refer to the readme.txt file located inside the sell_media/languages/ folder 24 | 25 | ## Additional Resources 26 | 27 | * [Sell Media Documentation](http://graphpaperpress.com/docs/sell-media/) 28 | * [General GitHub Documentation](http://help.github.com/) 29 | * [GitHub Pull Request documentation](http://help.github.com/send-pull-requests/) -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/src/ExceptionComparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * Compares Exception instances for equality. 15 | */ 16 | class ExceptionComparator extends ObjectComparator 17 | { 18 | /** 19 | * Returns whether the comparator can compare two values. 20 | * 21 | * @param mixed $expected The first value to compare 22 | * @param mixed $actual The second value to compare 23 | * @return bool 24 | */ 25 | public function accepts($expected, $actual) 26 | { 27 | return $expected instanceof \Exception && $actual instanceof \Exception; 28 | } 29 | 30 | /** 31 | * Converts an object to an array containing all of its private, protected 32 | * and public properties. 33 | * 34 | * @param object $object 35 | * @return array 36 | */ 37 | protected function toArray($object) 38 | { 39 | $array = parent::toArray($object); 40 | 41 | unset( 42 | $array['file'], 43 | $array['line'], 44 | $array['trace'], 45 | $array['string'], 46 | $array['xdebug_message'] 47 | ); 48 | 49 | return $array; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /inc/class-admin-search.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | // Exit if accessed directly 11 | if ( ! defined( 'ABSPATH' ) ) exit; 12 | 13 | Class SellMediaAdminSearch { 14 | 15 | 16 | /** 17 | * Constructor 18 | */ 19 | public function __construct(){ 20 | 21 | add_filter( 'posts_where', array( &$this, 'posts_where' ) ); 22 | 23 | } 24 | 25 | /** 26 | * Filter posts_where to search by ids. 27 | * Has ability to search one or many. 28 | * Separate ids with a comma. 29 | * 30 | * @since 1.0 31 | * @return array ids 32 | */ 33 | public function posts_where( $where ) { 34 | 35 | if ( is_admin() && is_search() ) { 36 | $s = (isset($_GET['s'])) ? sanitize_text_field( $_GET['s'] ) : ''; 37 | if ( ! empty( $s ) ) { 38 | global $wpdb; 39 | if ( is_numeric( $s ) ) { 40 | $where = str_replace( '(' . $wpdb->posts . '.post_title LIKE', '(' . $wpdb->posts . '.ID = ' . (int) $s . ') OR (' . $wpdb->posts . '.post_title LIKE', $where ); 41 | } elseif( preg_match( "/^(\d+)(,\s*\d+)*\$/", $s ) ) { // a string of post ids 42 | $where = str_replace( '(' . $wpdb->posts . '.post_title LIKE', '(' . $wpdb->posts . '.ID in (' . (int) $s . ')) OR (' . $wpdb->posts . '.post_title LIKE', $where ); 43 | } 44 | } 45 | } 46 | return $where; 47 | } 48 | 49 | } -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/src/Diff.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | class Diff 14 | { 15 | /** 16 | * @var string 17 | */ 18 | private $from; 19 | 20 | /** 21 | * @var string 22 | */ 23 | private $to; 24 | 25 | /** 26 | * @var Chunk[] 27 | */ 28 | private $chunks; 29 | 30 | /** 31 | * @param string $from 32 | * @param string $to 33 | * @param Chunk[] $chunks 34 | */ 35 | public function __construct($from, $to, array $chunks = array()) 36 | { 37 | $this->from = $from; 38 | $this->to = $to; 39 | $this->chunks = $chunks; 40 | } 41 | 42 | /** 43 | * @return string 44 | */ 45 | public function getFrom() 46 | { 47 | return $this->from; 48 | } 49 | 50 | /** 51 | * @return string 52 | */ 53 | public function getTo() 54 | { 55 | return $this->to; 56 | } 57 | 58 | /** 59 | * @return Chunk[] 60 | */ 61 | public function getChunks() 62 | { 63 | return $this->chunks; 64 | } 65 | 66 | /** 67 | * @param Chunk[] $chunks 68 | */ 69 | public function setChunks(array $chunks) 70 | { 71 | $this->chunks = $chunks; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/build/generate.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | $functions = require __DIR__ . '/arginfo.php'; 13 | $resourceFunctions = []; 14 | 15 | foreach ($functions as $function => $arguments) { 16 | foreach ($arguments as $argument) { 17 | if ($argument == 'resource') { 18 | $resourceFunctions[] = $function; 19 | } 20 | } 21 | } 22 | 23 | $resourceFunctions = array_unique($resourceFunctions); 24 | sort($resourceFunctions); 25 | 26 | $buffer = << 32 | * 33 | * For the full copyright and license information, please view the LICENSE 34 | * file that was distributed with this source code. 35 | */ 36 | 37 | namespace SebastianBergmann\ResourceOperations; 38 | 39 | class ResourceOperations 40 | { 41 | /** 42 | * @return string[] 43 | */ 44 | public static function getFunctions() 45 | { 46 | return [ 47 | 48 | EOT; 49 | 50 | foreach ($resourceFunctions as $function) { 51 | $buffer .= sprintf(" '%s',\n", $function); 52 | } 53 | 54 | $buffer .= <<< EOT 55 | ]; 56 | } 57 | } 58 | 59 | EOT; 60 | 61 | file_put_contents(__DIR__ . '/../src/ResourceOperations.php', $buffer); 62 | 63 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/UserAgent.php: -------------------------------------------------------------------------------- 1 | . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/LICENSE: -------------------------------------------------------------------------------- 1 | sebastian/diff 2 | 3 | Copyright (c) 2002-2017, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/exporter/LICENSE: -------------------------------------------------------------------------------- 1 | Exporter 2 | 3 | Copyright (c) 2002-2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/LICENSE: -------------------------------------------------------------------------------- 1 | Comparator 2 | 3 | Copyright (c) 2002-2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/LICENSE: -------------------------------------------------------------------------------- 1 | Environment 2 | 3 | Copyright (c) 2014-2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/global-state/LICENSE: -------------------------------------------------------------------------------- 1 | GlobalState 2 | 3 | Copyright (c) 2001-2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/object-enumerator/LICENSE: -------------------------------------------------------------------------------- 1 | Object Enumerator 2 | 3 | Copyright (c) 2016, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/recursion-context/LICENSE: -------------------------------------------------------------------------------- 1 | Recursion Context 2 | 3 | Copyright (c) 2002-2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/resource-operations/LICENSE: -------------------------------------------------------------------------------- 1 | Resource Operations 2 | 3 | Copyright (c) 2015, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/code-unit-reverse-lookup/LICENSE: -------------------------------------------------------------------------------- 1 | code-unit-reverse-lookup 2 | 3 | Copyright (c) 2016-2017, Sebastian Bergmann . 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in 15 | the documentation and/or other materials provided with the 16 | distribution. 17 | 18 | * Neither the name of Sebastian Bergmann nor the names of his 19 | contributors may be used to endorse or promote products derived 20 | from this software without specific prior written permission. 21 | 22 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 27 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 28 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 30 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 32 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | POSSIBILITY OF SUCH DAMAGE. 34 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/symfony/polyfill-ctype/bootstrap.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | use Symfony\Polyfill\Ctype as p; 13 | 14 | if (!function_exists('ctype_alnum')) { 15 | function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); } 16 | } 17 | if (!function_exists('ctype_alpha')) { 18 | function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); } 19 | } 20 | if (!function_exists('ctype_cntrl')) { 21 | function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); } 22 | } 23 | if (!function_exists('ctype_digit')) { 24 | function ctype_digit($text) { return p\Ctype::ctype_digit($text); } 25 | } 26 | if (!function_exists('ctype_graph')) { 27 | function ctype_graph($text) { return p\Ctype::ctype_graph($text); } 28 | } 29 | if (!function_exists('ctype_lower')) { 30 | function ctype_lower($text) { return p\Ctype::ctype_lower($text); } 31 | } 32 | if (!function_exists('ctype_print')) { 33 | function ctype_print($text) { return p\Ctype::ctype_print($text); } 34 | } 35 | if (!function_exists('ctype_punct')) { 36 | function ctype_punct($text) { return p\Ctype::ctype_punct($text); } 37 | } 38 | if (!function_exists('ctype_space')) { 39 | function ctype_space($text) { return p\Ctype::ctype_space($text); } 40 | } 41 | if (!function_exists('ctype_upper')) { 42 | function ctype_upper($text) { return p\Ctype::ctype_upper($text); } 43 | } 44 | if (!function_exists('ctype_xdigit')) { 45 | function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); } 46 | } 47 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Sell-Media", 3 | "version": "2.5.7.4", 4 | "description": "A plugin for selling photos, prints and other downloads.", 5 | "homepage": "https://graphpaperpress.com/plugins/sell-media/", 6 | "author": { 7 | "name": "Graph Paper Press", 8 | "email": "support@graphpaperpress.com", 9 | "url": "https://graphpaperpress.com/" 10 | }, 11 | "contributors": "", 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/graphpaperpress/Sell-Media" 15 | }, 16 | "bugs": { 17 | "url": "https://graphpaperpress.com/support/", 18 | "email": "support@graphpaperpress.com" 19 | }, 20 | "license": "GPLv2+", 21 | "private": true, 22 | "directories": { 23 | "js": "", 24 | "sass": "", 25 | "css": "", 26 | "build": "./build", 27 | "languages": "./languages" 28 | }, 29 | "pot": { 30 | "type": "wp-plugin", 31 | "textdomain": "sell_media", 32 | "src": "sell-media.php", 33 | "header": { 34 | "bugs": "https://graphpaperpress.com/", 35 | "team": "Graph Paper Press ", 36 | "last_translator": "Graph Paper Press " 37 | } 38 | }, 39 | "devDependencies": { 40 | "@wordpress/scripts": "^19.2.4", 41 | "grunt": "~1.3.0", 42 | "grunt-checktextdomain": "~1.0.0", 43 | "grunt-contrib-clean": "~2.0.0", 44 | "grunt-contrib-compress": "~2.0.0", 45 | "grunt-contrib-copy": "~1.0.0", 46 | "grunt-exec": "~0.4.5", 47 | "grunt-newer": "^1.1.0", 48 | "grunt-potomo": "~3.5.0", 49 | "grunt-text-replace": "^0.4.0", 50 | "grunt-wp-i18n": "~0.5.1", 51 | "grunt-wp-readme-to-markdown": "^2.1.0", 52 | "load-grunt-config": "0.16.0", 53 | "load-grunt-tasks": "~0.3.0" 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Orders/OrdersPatchRequest.php: -------------------------------------------------------------------------------- 1 | path = str_replace("{order_id}", urlencode($orderId), $this->path); 21 | $this->headers["Content-Type"] = "application/json"; 22 | } 23 | 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php: -------------------------------------------------------------------------------- 1 | client = $client; 19 | $this->environment = $environment; 20 | $this->refreshToken = $refreshToken; 21 | } 22 | 23 | public function inject($request) 24 | { 25 | if (!$this->hasAuthHeader($request) && !$this->isAuthRequest($request)) 26 | { 27 | if (is_null($this->accessToken) || $this->accessToken->isExpired()) 28 | { 29 | $this->accessToken = $this->fetchAccessToken(); 30 | } 31 | $request->headers['Authorization'] = 'Bearer ' . $this->accessToken->token; 32 | } 33 | } 34 | 35 | private function fetchAccessToken() 36 | { 37 | $accessTokenResponse = $this->client->execute(new AccessTokenRequest($this->environment, $this->refreshToken)); 38 | $accessToken = $accessTokenResponse->result; 39 | return new AccessToken($accessToken->access_token, $accessToken->token_type, $accessToken->expires_in); 40 | } 41 | 42 | private function isAuthRequest($request) 43 | { 44 | return $request instanceof AccessTokenRequest || $request instanceof RefreshTokenRequest; 45 | } 46 | 47 | private function hasAuthHeader(HttpRequest $request) 48 | { 49 | return array_key_exists("Authorization", $request->headers); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/src/ResourceComparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * Compares resources for equality. 15 | */ 16 | class ResourceComparator extends Comparator 17 | { 18 | /** 19 | * Returns whether the comparator can compare two values. 20 | * 21 | * @param mixed $expected The first value to compare 22 | * @param mixed $actual The second value to compare 23 | * @return bool 24 | */ 25 | public function accepts($expected, $actual) 26 | { 27 | return is_resource($expected) && is_resource($actual); 28 | } 29 | 30 | /** 31 | * Asserts that two values are equal. 32 | * 33 | * @param mixed $expected First value to compare 34 | * @param mixed $actual Second value to compare 35 | * @param float $delta Allowed numerical distance between two values to consider them equal 36 | * @param bool $canonicalize Arrays are sorted before comparison when set to true 37 | * @param bool $ignoreCase Case is ignored when set to true 38 | * 39 | * @throws ComparisonFailure 40 | */ 41 | public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false) 42 | { 43 | if ($actual != $expected) { 44 | throw new ComparisonFailure( 45 | $expected, 46 | $actual, 47 | $this->exporter->export($expected), 48 | $this->exporter->export($actual) 49 | ); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /languages/readme.txt: -------------------------------------------------------------------------------- 1 | === Sell Media I18n === 2 | 3 | Do not put custom translations here. They will be deleted when Sell Media updates. 4 | 5 | Keep custom Sell Media translations in /wp-content/languages/sell_media/ 6 | 7 | To submit your translation and receive a free Business Bundle, please email it to: support@graphpaperpress.com 8 | 9 | ====== How To Translate Sell Media ====== 10 | 11 | 1. Install [Poedit](http://www.poedit.net/download.php) 12 | 2. Open Poedit and go to File -> New catalog from POT file. 13 | 3. Open the file sell_media/languages/sell_media.pot 14 | 4. A catalog properties box will pop up asking for information about what you are translating. Enter the language you want to translate here along with any other details. 15 | 5. After you hit "OK" you'll be asked what you want to name your translation file. The name is important because there's a particular format you should follow for consistency. For example, if you’re translating Chinese for China, the file should be sell_media-zh_CH.po (sell_media for the Sell Media plugin, zh for the language and CH for the country). For this file we are translating to French for France so we should name it sell_media-fr_FR.po 16 | 6. Save the file. When we are done translating, we will put it in /wp-content/languages/sell_media/ 17 | 7. Now you can start translating all the text strings. The user interface is simple: Select the text you want to translate and add the translated text below. Do that for each text string. 18 | 8. When you've finishing translating, simply save your file. Poedit will automatically create both .po and .mo files. Put these files in /wp-content/languages/sell_media/ 19 | 9. Open up the wp_config.php file and add this line of code: define('WPLANG', 'fr_FR'); This tells WordPress to use French for France. 20 | 10. Visit the Settings -> General -> Site Language and select your desired Language. -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/ChunkTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | use PHPUnit\Framework\TestCase; 14 | 15 | /** 16 | * @covers SebastianBergmann\Diff\Chunk 17 | */ 18 | class ChunkTest extends TestCase 19 | { 20 | /** 21 | * @var Chunk 22 | */ 23 | private $chunk; 24 | 25 | protected function setUp() 26 | { 27 | $this->chunk = new Chunk; 28 | } 29 | 30 | public function testCanBeCreatedWithoutArguments() 31 | { 32 | $this->assertInstanceOf('SebastianBergmann\Diff\Chunk', $this->chunk); 33 | } 34 | 35 | public function testStartCanBeRetrieved() 36 | { 37 | $this->assertEquals(0, $this->chunk->getStart()); 38 | } 39 | 40 | public function testStartRangeCanBeRetrieved() 41 | { 42 | $this->assertEquals(1, $this->chunk->getStartRange()); 43 | } 44 | 45 | public function testEndCanBeRetrieved() 46 | { 47 | $this->assertEquals(0, $this->chunk->getEnd()); 48 | } 49 | 50 | public function testEndRangeCanBeRetrieved() 51 | { 52 | $this->assertEquals(1, $this->chunk->getEndRange()); 53 | } 54 | 55 | public function testLinesCanBeRetrieved() 56 | { 57 | $this->assertEquals(array(), $this->chunk->getLines()); 58 | } 59 | 60 | public function testLinesCanBeSet() 61 | { 62 | $this->assertEquals(array(), $this->chunk->getLines()); 63 | 64 | $testValue = array('line0', 'line1'); 65 | $this->chunk->setLines($testValue); 66 | $this->assertEquals($testValue, $this->chunk->getLines()); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /gutenberg/class-sell-media-gutenberg-block.php: -------------------------------------------------------------------------------- 1 | block_base . '/' . $this->block_slug, 43 | array( 44 | 'render_callback' => array( $this, 'render_block' ), 45 | 'attributes' => $this->block_attributes, 46 | ) 47 | ); 48 | } 49 | 50 | /** 51 | * Render Block 52 | * 53 | * This function is called per the register_block_type() function above. This function will output 54 | * the block rendered content. In the case of this function the rendered output will be for the 55 | * [shortcode] shortcode. 56 | * 57 | * @access public 58 | * @since 2.4.6 59 | * 60 | * @param array $attributes Shortcode attrbutes. 61 | * @return none The output is echoed. 62 | */ 63 | public function render_block( $attributes = array() ) { 64 | return; 65 | } 66 | 67 | // End of functions. 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/diff/tests/DiffTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Diff; 12 | 13 | use PHPUnit\Framework\TestCase; 14 | 15 | /** 16 | * @covers SebastianBergmann\Diff\Diff 17 | * 18 | * @uses SebastianBergmann\Diff\Chunk 19 | */ 20 | final class DiffTest extends TestCase 21 | { 22 | public function testGettersAfterConstructionWithDefault() 23 | { 24 | $from = 'line1a'; 25 | $to = 'line2a'; 26 | $diff = new Diff($from, $to); 27 | 28 | $this->assertSame($from, $diff->getFrom()); 29 | $this->assertSame($to, $diff->getTo()); 30 | $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".'); 31 | } 32 | 33 | public function testGettersAfterConstructionWithChunks() 34 | { 35 | $from = 'line1b'; 36 | $to = 'line2b'; 37 | $chunks = array(new Chunk(), new Chunk(2, 3)); 38 | 39 | $diff = new Diff($from, $to, $chunks); 40 | 41 | $this->assertSame($from, $diff->getFrom()); 42 | $this->assertSame($to, $diff->getTo()); 43 | $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.'); 44 | } 45 | 46 | public function testSetChunksAfterConstruction() 47 | { 48 | $diff = new Diff('line1c', 'line2c'); 49 | $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".'); 50 | 51 | $chunks = array(new Chunk(), new Chunk(2, 3)); 52 | $diff->setChunks($chunks); 53 | $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/src/DoubleComparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | /** 14 | * Compares doubles for equality. 15 | */ 16 | class DoubleComparator extends NumericComparator 17 | { 18 | /** 19 | * Smallest value available in PHP. 20 | * 21 | * @var float 22 | */ 23 | const EPSILON = 0.0000000001; 24 | 25 | /** 26 | * Returns whether the comparator can compare two values. 27 | * 28 | * @param mixed $expected The first value to compare 29 | * @param mixed $actual The second value to compare 30 | * @return bool 31 | */ 32 | public function accepts($expected, $actual) 33 | { 34 | return (is_double($expected) || is_double($actual)) && is_numeric($expected) && is_numeric($actual); 35 | } 36 | 37 | /** 38 | * Asserts that two values are equal. 39 | * 40 | * @param mixed $expected First value to compare 41 | * @param mixed $actual Second value to compare 42 | * @param float $delta Allowed numerical distance between two values to consider them equal 43 | * @param bool $canonicalize Arrays are sorted before comparison when set to true 44 | * @param bool $ignoreCase Case is ignored when set to true 45 | * 46 | * @throws ComparisonFailure 47 | */ 48 | public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false) 49 | { 50 | if ($delta == 0) { 51 | $delta = self::EPSILON; 52 | } 53 | 54 | parent::assertEquals($expected, $actual, $delta, $canonicalize, $ignoreCase); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /wpml-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | sell_media_item 4 | sell_media_payment 5 | 6 | 7 | licenses 8 | keywords 9 | city 10 | state 11 | creator 12 | collection 13 | price-group 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/environment/tests/ConsoleTest.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Environment; 12 | 13 | use PHPUnit_Framework_TestCase; 14 | 15 | class ConsoleTest extends PHPUnit_Framework_TestCase 16 | { 17 | /** 18 | * @var \SebastianBergmann\Environment\Console 19 | */ 20 | private $console; 21 | 22 | protected function setUp() 23 | { 24 | $this->console = new Console; 25 | } 26 | 27 | /** 28 | * @covers \SebastianBergmann\Environment\Console::isInteractive 29 | */ 30 | public function testCanDetectIfStdoutIsInteractiveByDefault() 31 | { 32 | $this->assertInternalType('boolean', $this->console->isInteractive()); 33 | } 34 | 35 | /** 36 | * @covers \SebastianBergmann\Environment\Console::isInteractive 37 | */ 38 | public function testCanDetectIfFileDescriptorIsInteractive() 39 | { 40 | $this->assertInternalType('boolean', $this->console->isInteractive(STDOUT)); 41 | } 42 | 43 | /** 44 | * @covers \SebastianBergmann\Environment\Console::hasColorSupport 45 | * 46 | * @uses \SebastianBergmann\Environment\Console::isInteractive 47 | */ 48 | public function testCanDetectColorSupport() 49 | { 50 | $this->assertInternalType('boolean', $this->console->hasColorSupport()); 51 | } 52 | 53 | /** 54 | * @covers \SebastianBergmann\Environment\Console::getNumberOfColumns 55 | * 56 | * @uses \SebastianBergmann\Environment\Console::isInteractive 57 | */ 58 | public function testCanDetectNumberOfColumns() 59 | { 60 | $this->assertInternalType('integer', $this->console->getNumberOfColumns()); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /inc/admin-scripts.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | // Exit if accessed directly 11 | if (!defined('ABSPATH')) exit; 12 | 13 | /** 14 | * Admin Scripts 15 | * 16 | * Enqueues all necessary scripts in the WP Admin to run Sell Media 17 | * 18 | * @since 1.8.5 19 | * @return void 20 | */ 21 | 22 | if (!defined('ABSPATH')) exit; 23 | 24 | function sell_media_admin_scripts($hook) 25 | { 26 | 27 | 28 | if (sell_media_is_sell_media_post_type_page() || 'post.php' == $hook || 'post-new.php' == $hook) { 29 | wp_enqueue_style('sell_media-admin', SELL_MEDIA_PLUGIN_URL . 'css/sell_media-admin.css', array('thickbox'), SELL_MEDIA_VERSION); 30 | wp_enqueue_script('sell_media-admin-items', SELL_MEDIA_PLUGIN_URL . 'js/admin-items.js', array('jquery', 'inline-edit-post'), SELL_MEDIA_VERSION); 31 | 32 | wp_register_script('sell_media-admin-media-uploader', SELL_MEDIA_PLUGIN_URL . 'js/admin-media-uploader.js', array('jquery', 'plupload-handlers'), SELL_MEDIA_VERSION); 33 | 34 | $translation_array = array( 35 | 'ajax' => admin_url('admin-ajax.php'), 36 | 'drag_drop_nonce' => wp_create_nonce('sell-media-drag-drop-nonce') 37 | ); 38 | wp_localize_script('sell_media-admin-media-uploader', 'sell_media_drag_drop_uploader', $translation_array); 39 | wp_enqueue_script('sell_media-admin-media-uploader'); 40 | 41 | if (sell_media_is_license_page() || sell_media_is_license_term_page()) { 42 | wp_enqueue_script('jquery-ui-slider'); 43 | } 44 | wp_localize_script('sell_media-admin-media-uploader', 'sell_media', array( 45 | 'pluginurl' => esc_url(SELL_MEDIA_PLUGIN_URL) 46 | )); 47 | } 48 | 49 | if (sell_media_is_reports_page()) { 50 | wp_enqueue_script('google_charts', 'https://www.google.com/jsapi', array('jquery'), SELL_MEDIA_VERSION); 51 | } 52 | 53 | do_action('sell_media_admin_scripts_hook'); 54 | } 55 | add_action('admin_enqueue_scripts', 'sell_media_admin_scripts'); 56 | -------------------------------------------------------------------------------- /inc/gateways/php-paypal-sdk/vendor/sebastian/comparator/src/Comparator.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace SebastianBergmann\Comparator; 12 | 13 | use SebastianBergmann\Exporter\Exporter; 14 | 15 | /** 16 | * Abstract base class for comparators which compare values for equality. 17 | */ 18 | abstract class Comparator 19 | { 20 | /** 21 | * @var Factory 22 | */ 23 | protected $factory; 24 | 25 | /** 26 | * @var Exporter 27 | */ 28 | protected $exporter; 29 | 30 | public function __construct() 31 | { 32 | $this->exporter = new Exporter; 33 | } 34 | 35 | /** 36 | * @param Factory $factory 37 | */ 38 | public function setFactory(Factory $factory) 39 | { 40 | $this->factory = $factory; 41 | } 42 | 43 | /** 44 | * Returns whether the comparator can compare two values. 45 | * 46 | * @param mixed $expected The first value to compare 47 | * @param mixed $actual The second value to compare 48 | * @return bool 49 | */ 50 | abstract public function accepts($expected, $actual); 51 | 52 | /** 53 | * Asserts that two values are equal. 54 | * 55 | * @param mixed $expected First value to compare 56 | * @param mixed $actual Second value to compare 57 | * @param float $delta Allowed numerical distance between two values to consider them equal 58 | * @param bool $canonicalize Arrays are sorted before comparison when set to true 59 | * @param bool $ignoreCase Case is ignored when set to true 60 | * 61 | * @throws ComparisonFailure 62 | */ 63 | abstract public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false); 64 | } 65 | --------------------------------------------------------------------------------