','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 |
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('
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 |
--------------------------------------------------------------------------------