Version Description
Download this release
Release Info
Developer | |
Plugin | |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- changelog.txt +5 -0
- composer.json +1 -1
- composer.lock +52 -53
- core/FacebookPixel.php +1 -1
- core/FacebookPluginConfig.php +1 -1
- core/ServerEventFactory.php +51 -14
- facebook-for-wordpress.php +1 -1
- integration/FacebookWordpressCalderaForm.php +3 -1
- integration/FacebookWordpressContactForm7.php +3 -1
- integration/FacebookWordpressEasyDigitalDownloads.php +4 -2
- integration/FacebookWordpressFormidableForm.php +3 -1
- integration/FacebookWordpressGravityForms.php +3 -1
- integration/FacebookWordpressMailchimpForWp.php +3 -1
- integration/FacebookWordpressNinjaForms.php +3 -1
- integration/FacebookWordpressWPECommerce.php +6 -3
- integration/FacebookWordpressWPForms.php +29 -17
- languages/official-facebook-pixel-ar_AR.po +1 -1
- languages/official-facebook-pixel-cs_CZ.po +1 -1
- languages/official-facebook-pixel-da_DK.po +1 -1
- languages/official-facebook-pixel-de_DE.po +1 -1
- languages/official-facebook-pixel-en_GB.po +1 -1
- languages/official-facebook-pixel-es_ES.po +1 -1
- languages/official-facebook-pixel-es_LA.po +1 -1
- languages/official-facebook-pixel-fi_FI.po +1 -1
- languages/official-facebook-pixel-fr_CA.po +1 -1
- languages/official-facebook-pixel-fr_FR.po +1 -1
- languages/official-facebook-pixel-he_IL.po +1 -1
- languages/official-facebook-pixel-it_IT.po +1 -1
- languages/official-facebook-pixel-ja_JP.po +1 -1
- languages/official-facebook-pixel-ko_KR.po +1 -1
- languages/official-facebook-pixel-nb_NO.po +1 -1
- languages/official-facebook-pixel-nl_NL.po +1 -1
- languages/official-facebook-pixel-pl_PL.po +1 -1
- languages/official-facebook-pixel-pt_BR.po +1 -1
- languages/official-facebook-pixel-pt_PT.po +1 -1
- languages/official-facebook-pixel-ru_RU.po +1 -1
- languages/official-facebook-pixel-sv_SE.po +1 -1
- languages/official-facebook-pixel-th_TH.po +1 -1
- languages/official-facebook-pixel-tr_TR.po +1 -1
- languages/official-facebook-pixel-vi_VN.po +1 -1
- languages/official-facebook-pixel-zh_CN.po +1 -1
- languages/official-facebook-pixel-zh_TW.po +1 -1
- readme.txt +6 -1
- trunk/CODE_OF_CONDUCT.md +0 -5
- trunk/CONTRIBUTING.md +0 -65
- trunk/LICENSE +0 -339
- trunk/changelog.txt +0 -79
- trunk/composer.json +0 -28
- trunk/composer.lock +0 -2319
- trunk/core/EventIdGenerator.php +0 -34
- trunk/core/FacebookPixel.php +0 -240
- trunk/core/FacebookPluginConfig.php +0 -65
- trunk/core/FacebookPluginUtils.php +0 -56
- trunk/core/FacebookServerSideEvent.php +0 -68
- trunk/core/FacebookWordpressOptions.php +0 -170
- trunk/core/FacebookWordpressPixelInjection.php +0 -66
- trunk/core/FacebookWordpressSettingsPage.php +0 -310
- trunk/core/PixelRenderer.php +0 -72
- trunk/core/ServerEventAsyncTask.php +0 -52
- trunk/core/ServerEventFactory.php +0 -163
- trunk/css/admin.css +0 -11
- trunk/facebook-for-wordpress.php +0 -84
- trunk/integration/EDDUtils.php +0 -30
- trunk/integration/FacebookWordpressCalderaForm.php +0 -102
- trunk/integration/FacebookWordpressContactForm7.php +0 -122
- trunk/integration/FacebookWordpressEasyDigitalDownloads.php +0 -231
- trunk/integration/FacebookWordpressFormidableForm.php +0 -135
- trunk/integration/FacebookWordpressGravityForms.php +0 -135
- trunk/integration/FacebookWordpressIntegrationBase.php +0 -63
- trunk/integration/FacebookWordpressMailchimpForWp.php +0 -76
- trunk/integration/FacebookWordpressNinjaForms.php +0 -115
- trunk/integration/FacebookWordpressWPECommerce.php +0 -186
- trunk/integration/FacebookWordpressWPForms.php +0 -122
- trunk/integration/IntegrationUtils.php +0 -26
- trunk/languages/official-facebook-pixel-ar_AR.mo +0 -0
- trunk/languages/official-facebook-pixel-ar_AR.po +0 -95
- trunk/languages/official-facebook-pixel-cs_CZ.mo +0 -0
- trunk/languages/official-facebook-pixel-cs_CZ.po +0 -93
- trunk/languages/official-facebook-pixel-da_DK.mo +0 -0
- trunk/languages/official-facebook-pixel-da_DK.po +0 -95
- trunk/languages/official-facebook-pixel-de_DE.mo +0 -0
- trunk/languages/official-facebook-pixel-de_DE.po +0 -97
- trunk/languages/official-facebook-pixel-en_GB.mo +0 -0
- trunk/languages/official-facebook-pixel-en_GB.po +0 -94
- trunk/languages/official-facebook-pixel-es_ES.mo +0 -0
- trunk/languages/official-facebook-pixel-es_ES.po +0 -99
- trunk/languages/official-facebook-pixel-es_LA.mo +0 -0
- trunk/languages/official-facebook-pixel-es_LA.po +0 -97
- trunk/languages/official-facebook-pixel-fi_FI.mo +0 -0
- trunk/languages/official-facebook-pixel-fi_FI.po +0 -97
- trunk/languages/official-facebook-pixel-fr_CA.mo +0 -0
- trunk/languages/official-facebook-pixel-fr_CA.po +0 -99
- trunk/languages/official-facebook-pixel-fr_FR.mo +0 -0
- trunk/languages/official-facebook-pixel-fr_FR.po +0 -100
- trunk/languages/official-facebook-pixel-he_IL.mo +0 -0
- trunk/languages/official-facebook-pixel-he_IL.po +0 -94
- trunk/languages/official-facebook-pixel-it_IT.mo +0 -0
- trunk/languages/official-facebook-pixel-it_IT.po +0 -99
- trunk/languages/official-facebook-pixel-ja_JP.mo +0 -0
- trunk/languages/official-facebook-pixel-ja_JP.po +0 -95
- trunk/languages/official-facebook-pixel-ko_KR.mo +0 -0
- trunk/languages/official-facebook-pixel-ko_KR.po +0 -94
- trunk/languages/official-facebook-pixel-nb_NO.mo +0 -0
- trunk/languages/official-facebook-pixel-nb_NO.po +0 -97
- trunk/languages/official-facebook-pixel-nl_NL.mo +0 -0
- trunk/languages/official-facebook-pixel-nl_NL.po +0 -98
- trunk/languages/official-facebook-pixel-pl_PL.mo +0 -0
- trunk/languages/official-facebook-pixel-pl_PL.po +0 -98
- trunk/languages/official-facebook-pixel-pt_BR.mo +0 -0
- trunk/languages/official-facebook-pixel-pt_BR.po +0 -96
- trunk/languages/official-facebook-pixel-pt_PT.mo +0 -0
- trunk/languages/official-facebook-pixel-pt_PT.po +0 -96
- trunk/languages/official-facebook-pixel-ru_RU.mo +0 -0
- trunk/languages/official-facebook-pixel-ru_RU.po +0 -94
- trunk/languages/official-facebook-pixel-sv_SE.mo +0 -0
- trunk/languages/official-facebook-pixel-sv_SE.po +0 -95
- trunk/languages/official-facebook-pixel-th_TH.mo +0 -0
- trunk/languages/official-facebook-pixel-th_TH.po +0 -87
- trunk/languages/official-facebook-pixel-tr_TR.mo +0 -0
- trunk/languages/official-facebook-pixel-tr_TR.po +0 -98
- trunk/languages/official-facebook-pixel-vi_VN.mo +0 -0
- trunk/languages/official-facebook-pixel-vi_VN.po +0 -97
- trunk/languages/official-facebook-pixel-zh_CN.mo +0 -0
- trunk/languages/official-facebook-pixel-zh_CN.po +0 -90
- trunk/languages/official-facebook-pixel-zh_TW.mo +0 -0
- trunk/languages/official-facebook-pixel-zh_TW.po +0 -93
- trunk/languages/official-facebook-pixel.pot +0 -76
- trunk/readme.txt +0 -97
- trunk/uninstall.php +0 -30
- trunk/vendor/autoload.php +0 -7
- trunk/vendor/composer/ClassLoader.php +0 -445
- trunk/vendor/composer/LICENSE +0 -21
- trunk/vendor/composer/autoload_classmap.php +0 -10
- trunk/vendor/composer/autoload_namespaces.php +0 -9
- trunk/vendor/composer/autoload_psr4.php +0 -13
- trunk/vendor/composer/autoload_real.php +0 -52
- trunk/vendor/composer/autoload_static.php +0 -51
- trunk/vendor/composer/installed.json +0 -94
- trunk/vendor/facebook/php-business-sdk/.github/ISSUE_TEMPLATE.md +0 -3
- trunk/vendor/facebook/php-business-sdk/.travis.yml +0 -30
- trunk/vendor/facebook/php-business-sdk/CHANGELOG.md +0 -71
- trunk/vendor/facebook/php-business-sdk/CODE_OF_CONDUCT.md +0 -3
- trunk/vendor/facebook/php-business-sdk/CONTRIBUTING.md +0 -45
- trunk/vendor/facebook/php-business-sdk/DEVELOPER_GUIDE.md +0 -495
- trunk/vendor/facebook/php-business-sdk/LICENSE +0 -19
- trunk/vendor/facebook/php-business-sdk/README.md +0 -360
- trunk/vendor/facebook/php-business-sdk/bin/clean_account.php +0 -111
- trunk/vendor/facebook/php-business-sdk/bin/create_phar.php +0 -112
- trunk/vendor/facebook/php-business-sdk/bin/docsmith.php +0 -68
- trunk/vendor/facebook/php-business-sdk/bin/get_version.php +0 -34
- trunk/vendor/facebook/php-business-sdk/composer.json +0 -23
- trunk/vendor/facebook/php-business-sdk/fb_ca_chain_bundle.crt +0 -3920
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/AnonymousSession.php +0 -35
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Api.php +0 -247
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/ApiRequest.php +0 -219
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/CrashReporter.php +0 -216
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Cursor.php +0 -536
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Enum/AbstractEnum.php +0 -181
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Enum/EmptyEnum.php +0 -56
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Enum/EnumInstanceInterface.php +0 -91
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Exception/Exception.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/AbstractAdapter.php +0 -56
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/AdapterInterface.php +0 -64
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/Curl/AbstractCurl.php +0 -130
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/Curl/Curl.php +0 -101
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/Curl/Curl55.php +0 -96
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/Curl/CurlInterface.php +0 -106
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Adapter/CurlAdapter.php +0 -201
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Client.php +0 -220
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/AuthorizationException.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/ClientException.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/EmptyResponseException.php +0 -42
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/PermissionException.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php +0 -248
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/ServerException.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/ThrottleException.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/FileParameter.php +0 -89
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Headers.php +0 -29
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Parameters.php +0 -59
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Request.php +0 -296
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/RequestInterface.php +0 -169
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Response.php +0 -125
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/ResponseInterface.php +0 -73
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Util.php +0 -48
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Logger/CurlLogger.php +0 -276
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Logger/CurlLogger/JsonAwareParameters.php +0 -38
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Logger/CurlLogger/JsonNode.php +0 -196
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Logger/LoggerInterface.php +0 -54
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Logger/NullLogger.php +0 -60
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AbstractArchivableCrudObject.php +0 -92
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AbstractCrudObject.php +0 -531
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AbstractObject.php +0 -185
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/Ad.php +0 -516
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php +0 -3220
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountActivity.php +0 -80
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountAdRulesHistory.php +0 -61
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountAdVolume.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountContentFilterLevelsInheritance.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountCreationRequest.php +0 -103
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountDefaultDestination.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountDefaultObjective.php +0 -61
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountDeliveryEstimate.php +0 -59
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountMatchedSearchApplicationsEdgeData.php +0 -59
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountMaxBid.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountPromotableObjects.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountReachEstimate.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountRecommendedCamapaignBudget.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountRoas.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountSubscribedApps.php +0 -64
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountTargetingUnified.php +0 -67
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountTrackingData.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountUser.php +0 -76
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdActivity.php +0 -61
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpec.php +0 -59
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecAssetLabel.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecBody.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecCaption.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecDescription.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecGroupRule.php +0 -57
- trunk/vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAssetFeedSpecImage.php +0 -21
changelog.txt
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
*** Facebook for WordPress Changelog ***
|
|
|
|
|
|
|
|
|
|
|
2 |
2020-03-23 version 2.0.1
|
3 |
* Fixing an Undefined index error
|
4 |
|
1 |
*** Facebook for WordPress Changelog ***
|
2 |
+
2020-04-23 version 2.0.2
|
3 |
+
* Support for WordPress 5.4
|
4 |
+
* Fixing an Illegal string offset error with WP Forms
|
5 |
+
* Fixing the event source url for Server-Side API events
|
6 |
+
|
7 |
2020-03-23 version 2.0.1
|
8 |
* Fixing an Undefined index error
|
9 |
|
composer.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
},
|
10 |
"license": "GPL",
|
11 |
"require": {
|
12 |
-
"facebook/php-business-sdk": "6.0.
|
13 |
"techcrunch/wp-async-task": "dev-master"
|
14 |
},
|
15 |
"autoload": {
|
9 |
},
|
10 |
"license": "GPL",
|
11 |
"require": {
|
12 |
+
"facebook/php-business-sdk": "6.0.4",
|
13 |
"techcrunch/wp-async-task": "dev-master"
|
14 |
},
|
15 |
"autoload": {
|
composer.lock
CHANGED
@@ -4,20 +4,20 @@
|
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "facebook/php-business-sdk",
|
11 |
-
"version": "6.0.
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/facebook/facebook-php-business-sdk.git",
|
15 |
-
"reference": "
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/
|
20 |
-
"reference": "
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require-dev": {
|
@@ -41,7 +41,7 @@
|
|
41 |
"page",
|
42 |
"sdk"
|
43 |
],
|
44 |
-
"time": "2020-
|
45 |
},
|
46 |
{
|
47 |
"name": "techcrunch/wp-async-task",
|
@@ -687,16 +687,16 @@
|
|
687 |
},
|
688 |
{
|
689 |
"name": "phpdocumentor/reflection-docblock",
|
690 |
-
"version": "5.
|
691 |
"source": {
|
692 |
"type": "git",
|
693 |
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
694 |
-
"reference": "
|
695 |
},
|
696 |
"dist": {
|
697 |
"type": "zip",
|
698 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/
|
699 |
-
"reference": "
|
700 |
"shasum": ""
|
701 |
},
|
702 |
"require": {
|
@@ -736,30 +736,29 @@
|
|
736 |
}
|
737 |
],
|
738 |
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
739 |
-
"time": "2020-02-
|
740 |
},
|
741 |
{
|
742 |
"name": "phpdocumentor/type-resolver",
|
743 |
-
"version": "1.0
|
744 |
"source": {
|
745 |
"type": "git",
|
746 |
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
747 |
-
"reference": "
|
748 |
},
|
749 |
"dist": {
|
750 |
"type": "zip",
|
751 |
-
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/
|
752 |
-
"reference": "
|
753 |
"shasum": ""
|
754 |
},
|
755 |
"require": {
|
756 |
-
"php": "^7.
|
757 |
"phpdocumentor/reflection-common": "^2.0"
|
758 |
},
|
759 |
"require-dev": {
|
760 |
-
"ext-tokenizer": "^7.
|
761 |
-
"mockery/mockery": "~1"
|
762 |
-
"phpunit/phpunit": "^7.0"
|
763 |
},
|
764 |
"type": "library",
|
765 |
"extra": {
|
@@ -783,20 +782,20 @@
|
|
783 |
}
|
784 |
],
|
785 |
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
|
786 |
-
"time": "
|
787 |
},
|
788 |
{
|
789 |
"name": "phpspec/prophecy",
|
790 |
-
"version": "v1.10.
|
791 |
"source": {
|
792 |
"type": "git",
|
793 |
"url": "https://github.com/phpspec/prophecy.git",
|
794 |
-
"reference": "
|
795 |
},
|
796 |
"dist": {
|
797 |
"type": "zip",
|
798 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/
|
799 |
-
"reference": "
|
800 |
"shasum": ""
|
801 |
},
|
802 |
"require": {
|
@@ -846,7 +845,7 @@
|
|
846 |
"spy",
|
847 |
"stub"
|
848 |
],
|
849 |
-
"time": "2020-
|
850 |
},
|
851 |
{
|
852 |
"name": "phpunit/php-code-coverage",
|
@@ -1851,16 +1850,16 @@
|
|
1851 |
},
|
1852 |
{
|
1853 |
"name": "symfony/console",
|
1854 |
-
"version": "v4.4.
|
1855 |
"source": {
|
1856 |
"type": "git",
|
1857 |
"url": "https://github.com/symfony/console.git",
|
1858 |
-
"reference": "
|
1859 |
},
|
1860 |
"dist": {
|
1861 |
"type": "zip",
|
1862 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
1863 |
-
"reference": "
|
1864 |
"shasum": ""
|
1865 |
},
|
1866 |
"require": {
|
@@ -1923,20 +1922,20 @@
|
|
1923 |
],
|
1924 |
"description": "Symfony Console Component",
|
1925 |
"homepage": "https://symfony.com",
|
1926 |
-
"time": "2020-
|
1927 |
},
|
1928 |
{
|
1929 |
"name": "symfony/polyfill-ctype",
|
1930 |
-
"version": "v1.
|
1931 |
"source": {
|
1932 |
"type": "git",
|
1933 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
1934 |
-
"reference": "
|
1935 |
},
|
1936 |
"dist": {
|
1937 |
"type": "zip",
|
1938 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/
|
1939 |
-
"reference": "
|
1940 |
"shasum": ""
|
1941 |
},
|
1942 |
"require": {
|
@@ -1948,7 +1947,7 @@
|
|
1948 |
"type": "library",
|
1949 |
"extra": {
|
1950 |
"branch-alias": {
|
1951 |
-
"dev-master": "1.
|
1952 |
}
|
1953 |
},
|
1954 |
"autoload": {
|
@@ -1981,20 +1980,20 @@
|
|
1981 |
"polyfill",
|
1982 |
"portable"
|
1983 |
],
|
1984 |
-
"time": "2020-
|
1985 |
},
|
1986 |
{
|
1987 |
"name": "symfony/polyfill-mbstring",
|
1988 |
-
"version": "v1.
|
1989 |
"source": {
|
1990 |
"type": "git",
|
1991 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
1992 |
-
"reference": "
|
1993 |
},
|
1994 |
"dist": {
|
1995 |
"type": "zip",
|
1996 |
-
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/
|
1997 |
-
"reference": "
|
1998 |
"shasum": ""
|
1999 |
},
|
2000 |
"require": {
|
@@ -2006,7 +2005,7 @@
|
|
2006 |
"type": "library",
|
2007 |
"extra": {
|
2008 |
"branch-alias": {
|
2009 |
-
"dev-master": "1.
|
2010 |
}
|
2011 |
},
|
2012 |
"autoload": {
|
@@ -2040,20 +2039,20 @@
|
|
2040 |
"portable",
|
2041 |
"shim"
|
2042 |
],
|
2043 |
-
"time": "2020-
|
2044 |
},
|
2045 |
{
|
2046 |
"name": "symfony/polyfill-php73",
|
2047 |
-
"version": "v1.
|
2048 |
"source": {
|
2049 |
"type": "git",
|
2050 |
"url": "https://github.com/symfony/polyfill-php73.git",
|
2051 |
-
"reference": "
|
2052 |
},
|
2053 |
"dist": {
|
2054 |
"type": "zip",
|
2055 |
-
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/
|
2056 |
-
"reference": "
|
2057 |
"shasum": ""
|
2058 |
},
|
2059 |
"require": {
|
@@ -2062,7 +2061,7 @@
|
|
2062 |
"type": "library",
|
2063 |
"extra": {
|
2064 |
"branch-alias": {
|
2065 |
-
"dev-master": "1.
|
2066 |
}
|
2067 |
},
|
2068 |
"autoload": {
|
@@ -2098,7 +2097,7 @@
|
|
2098 |
"portable",
|
2099 |
"shim"
|
2100 |
],
|
2101 |
-
"time": "2020-
|
2102 |
},
|
2103 |
{
|
2104 |
"name": "symfony/service-contracts",
|
@@ -2160,16 +2159,16 @@
|
|
2160 |
},
|
2161 |
{
|
2162 |
"name": "symfony/yaml",
|
2163 |
-
"version": "v4.4.
|
2164 |
"source": {
|
2165 |
"type": "git",
|
2166 |
"url": "https://github.com/symfony/yaml.git",
|
2167 |
-
"reference": "
|
2168 |
},
|
2169 |
"dist": {
|
2170 |
"type": "zip",
|
2171 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
2172 |
-
"reference": "
|
2173 |
"shasum": ""
|
2174 |
},
|
2175 |
"require": {
|
@@ -2215,7 +2214,7 @@
|
|
2215 |
],
|
2216 |
"description": "Symfony Yaml Component",
|
2217 |
"homepage": "https://symfony.com",
|
2218 |
-
"time": "2020-
|
2219 |
},
|
2220 |
{
|
2221 |
"name": "theseer/tokenizer",
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "7377f41bb6d7412df023388bf4be179f",
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "facebook/php-business-sdk",
|
11 |
+
"version": "6.0.4",
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/facebook/facebook-php-business-sdk.git",
|
15 |
+
"reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83"
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
|
20 |
+
"reference": "c7bf72b1f5ca8f3fd6120544cb2541546204bf83",
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require-dev": {
|
41 |
"page",
|
42 |
"sdk"
|
43 |
],
|
44 |
+
"time": "2020-04-08T04:52:23+00:00"
|
45 |
},
|
46 |
{
|
47 |
"name": "techcrunch/wp-async-task",
|
687 |
},
|
688 |
{
|
689 |
"name": "phpdocumentor/reflection-docblock",
|
690 |
+
"version": "5.1.0",
|
691 |
"source": {
|
692 |
"type": "git",
|
693 |
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
694 |
+
"reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e"
|
695 |
},
|
696 |
"dist": {
|
697 |
"type": "zip",
|
698 |
+
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
|
699 |
+
"reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e",
|
700 |
"shasum": ""
|
701 |
},
|
702 |
"require": {
|
736 |
}
|
737 |
],
|
738 |
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
739 |
+
"time": "2020-02-22T12:28:44+00:00"
|
740 |
},
|
741 |
{
|
742 |
"name": "phpdocumentor/type-resolver",
|
743 |
+
"version": "1.1.0",
|
744 |
"source": {
|
745 |
"type": "git",
|
746 |
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
747 |
+
"reference": "7462d5f123dfc080dfdf26897032a6513644fc95"
|
748 |
},
|
749 |
"dist": {
|
750 |
"type": "zip",
|
751 |
+
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/7462d5f123dfc080dfdf26897032a6513644fc95",
|
752 |
+
"reference": "7462d5f123dfc080dfdf26897032a6513644fc95",
|
753 |
"shasum": ""
|
754 |
},
|
755 |
"require": {
|
756 |
+
"php": "^7.2",
|
757 |
"phpdocumentor/reflection-common": "^2.0"
|
758 |
},
|
759 |
"require-dev": {
|
760 |
+
"ext-tokenizer": "^7.2",
|
761 |
+
"mockery/mockery": "~1"
|
|
|
762 |
},
|
763 |
"type": "library",
|
764 |
"extra": {
|
782 |
}
|
783 |
],
|
784 |
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
|
785 |
+
"time": "2020-02-18T18:59:58+00:00"
|
786 |
},
|
787 |
{
|
788 |
"name": "phpspec/prophecy",
|
789 |
+
"version": "v1.10.3",
|
790 |
"source": {
|
791 |
"type": "git",
|
792 |
"url": "https://github.com/phpspec/prophecy.git",
|
793 |
+
"reference": "451c3cd1418cf640de218914901e51b064abb093"
|
794 |
},
|
795 |
"dist": {
|
796 |
"type": "zip",
|
797 |
+
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093",
|
798 |
+
"reference": "451c3cd1418cf640de218914901e51b064abb093",
|
799 |
"shasum": ""
|
800 |
},
|
801 |
"require": {
|
845 |
"spy",
|
846 |
"stub"
|
847 |
],
|
848 |
+
"time": "2020-03-05T15:02:03+00:00"
|
849 |
},
|
850 |
{
|
851 |
"name": "phpunit/php-code-coverage",
|
1850 |
},
|
1851 |
{
|
1852 |
"name": "symfony/console",
|
1853 |
+
"version": "v4.4.7",
|
1854 |
"source": {
|
1855 |
"type": "git",
|
1856 |
"url": "https://github.com/symfony/console.git",
|
1857 |
+
"reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7"
|
1858 |
},
|
1859 |
"dist": {
|
1860 |
"type": "zip",
|
1861 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/10bb3ee3c97308869d53b3e3d03f6ac23ff985f7",
|
1862 |
+
"reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7",
|
1863 |
"shasum": ""
|
1864 |
},
|
1865 |
"require": {
|
1922 |
],
|
1923 |
"description": "Symfony Console Component",
|
1924 |
"homepage": "https://symfony.com",
|
1925 |
+
"time": "2020-03-30T11:41:10+00:00"
|
1926 |
},
|
1927 |
{
|
1928 |
"name": "symfony/polyfill-ctype",
|
1929 |
+
"version": "v1.15.0",
|
1930 |
"source": {
|
1931 |
"type": "git",
|
1932 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
1933 |
+
"reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14"
|
1934 |
},
|
1935 |
"dist": {
|
1936 |
"type": "zip",
|
1937 |
+
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
|
1938 |
+
"reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
|
1939 |
"shasum": ""
|
1940 |
},
|
1941 |
"require": {
|
1947 |
"type": "library",
|
1948 |
"extra": {
|
1949 |
"branch-alias": {
|
1950 |
+
"dev-master": "1.15-dev"
|
1951 |
}
|
1952 |
},
|
1953 |
"autoload": {
|
1980 |
"polyfill",
|
1981 |
"portable"
|
1982 |
],
|
1983 |
+
"time": "2020-02-27T09:26:54+00:00"
|
1984 |
},
|
1985 |
{
|
1986 |
"name": "symfony/polyfill-mbstring",
|
1987 |
+
"version": "v1.15.0",
|
1988 |
"source": {
|
1989 |
"type": "git",
|
1990 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
1991 |
+
"reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac"
|
1992 |
},
|
1993 |
"dist": {
|
1994 |
"type": "zip",
|
1995 |
+
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
|
1996 |
+
"reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
|
1997 |
"shasum": ""
|
1998 |
},
|
1999 |
"require": {
|
2005 |
"type": "library",
|
2006 |
"extra": {
|
2007 |
"branch-alias": {
|
2008 |
+
"dev-master": "1.15-dev"
|
2009 |
}
|
2010 |
},
|
2011 |
"autoload": {
|
2039 |
"portable",
|
2040 |
"shim"
|
2041 |
],
|
2042 |
+
"time": "2020-03-09T19:04:49+00:00"
|
2043 |
},
|
2044 |
{
|
2045 |
"name": "symfony/polyfill-php73",
|
2046 |
+
"version": "v1.15.0",
|
2047 |
"source": {
|
2048 |
"type": "git",
|
2049 |
"url": "https://github.com/symfony/polyfill-php73.git",
|
2050 |
+
"reference": "0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7"
|
2051 |
},
|
2052 |
"dist": {
|
2053 |
"type": "zip",
|
2054 |
+
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7",
|
2055 |
+
"reference": "0f27e9f464ea3da33cbe7ca3bdf4eb66def9d0f7",
|
2056 |
"shasum": ""
|
2057 |
},
|
2058 |
"require": {
|
2061 |
"type": "library",
|
2062 |
"extra": {
|
2063 |
"branch-alias": {
|
2064 |
+
"dev-master": "1.15-dev"
|
2065 |
}
|
2066 |
},
|
2067 |
"autoload": {
|
2097 |
"portable",
|
2098 |
"shim"
|
2099 |
],
|
2100 |
+
"time": "2020-02-27T09:26:54+00:00"
|
2101 |
},
|
2102 |
{
|
2103 |
"name": "symfony/service-contracts",
|
2159 |
},
|
2160 |
{
|
2161 |
"name": "symfony/yaml",
|
2162 |
+
"version": "v4.4.7",
|
2163 |
"source": {
|
2164 |
"type": "git",
|
2165 |
"url": "https://github.com/symfony/yaml.git",
|
2166 |
+
"reference": "ef166890d821518106da3560086bfcbeb4fadfec"
|
2167 |
},
|
2168 |
"dist": {
|
2169 |
"type": "zip",
|
2170 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/ef166890d821518106da3560086bfcbeb4fadfec",
|
2171 |
+
"reference": "ef166890d821518106da3560086bfcbeb4fadfec",
|
2172 |
"shasum": ""
|
2173 |
},
|
2174 |
"require": {
|
2214 |
],
|
2215 |
"description": "Symfony Yaml Component",
|
2216 |
"homepage": "https://symfony.com",
|
2217 |
+
"time": "2020-03-30T11:41:10+00:00"
|
2218 |
},
|
2219 |
{
|
2220 |
"name": "theseer/tokenizer",
|
core/FacebookPixel.php
CHANGED
@@ -108,7 +108,7 @@ src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
|
108 |
: self::$pixelFbqCodeWithoutScript;
|
109 |
$param_str = $param;
|
110 |
if (is_array($param)) {
|
111 |
-
$param_str = json_encode($param, JSON_PRETTY_PRINT);
|
112 |
}
|
113 |
$agent_param = array('agent' => $agent_string);
|
114 |
return sprintf(
|
108 |
: self::$pixelFbqCodeWithoutScript;
|
109 |
$param_str = $param;
|
110 |
if (is_array($param)) {
|
111 |
+
$param_str = json_encode($param, JSON_PRETTY_PRINT | JSON_FORCE_OBJECT);
|
112 |
}
|
113 |
$agent_param = array('agent' => $agent_string);
|
114 |
return sprintf(
|
core/FacebookPluginConfig.php
CHANGED
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Core;
|
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
class FacebookPluginConfig {
|
23 |
-
const PLUGIN_VERSION = '2.0.
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
20 |
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
|
22 |
class FacebookPluginConfig {
|
23 |
+
const PLUGIN_VERSION = '2.0.2';
|
24 |
const SOURCE = 'wordpress';
|
25 |
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
|
core/ServerEventFactory.php
CHANGED
@@ -26,7 +26,10 @@ use FacebookPixelPlugin\Core\FacebookWordpressOptions;
|
|
26 |
defined('ABSPATH') or die('Direct access not allowed');
|
27 |
|
28 |
class ServerEventFactory {
|
29 |
-
public static function newEvent(
|
|
|
|
|
|
|
30 |
$user_data = (new UserData())
|
31 |
->setClientIpAddress(self::getIpAddress())
|
32 |
->setClientUserAgent(self::getHttpUserAgent())
|
@@ -37,7 +40,8 @@ class ServerEventFactory {
|
|
37 |
->setEventName($event_name)
|
38 |
->setEventTime(time())
|
39 |
->setEventId(EventIdGenerator::guidv4())
|
40 |
-
->setEventSourceUrl(
|
|
|
41 |
->setUserData($user_data)
|
42 |
->setCustomData(new CustomData());
|
43 |
|
@@ -45,17 +49,29 @@ class ServerEventFactory {
|
|
45 |
}
|
46 |
|
47 |
private static function getIpAddress() {
|
48 |
-
$
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
-
return
|
59 |
}
|
60 |
|
61 |
private static function getHttpUserAgent() {
|
@@ -68,7 +84,11 @@ class ServerEventFactory {
|
|
68 |
return $user_agent;
|
69 |
}
|
70 |
|
71 |
-
private static function getRequestUri() {
|
|
|
|
|
|
|
|
|
72 |
$url = "http://";
|
73 |
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
74 |
$url = "https://";
|
@@ -105,8 +125,23 @@ class ServerEventFactory {
|
|
105 |
return $fbc;
|
106 |
}
|
107 |
|
108 |
-
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
try {
|
112 |
$data = call_user_func_array($callback, $arguments);
|
@@ -127,6 +162,8 @@ class ServerEventFactory {
|
|
127 |
}
|
128 |
|
129 |
$custom_data = $event->getCustomData();
|
|
|
|
|
130 |
if (!empty($data['currency'])) {
|
131 |
$custom_data->setCurrency($data['currency']);
|
132 |
}
|
26 |
defined('ABSPATH') or die('Direct access not allowed');
|
27 |
|
28 |
class ServerEventFactory {
|
29 |
+
public static function newEvent(
|
30 |
+
$event_name,
|
31 |
+
$prefer_referrer_for_event_src = false)
|
32 |
+
{
|
33 |
$user_data = (new UserData())
|
34 |
->setClientIpAddress(self::getIpAddress())
|
35 |
->setClientUserAgent(self::getHttpUserAgent())
|
40 |
->setEventName($event_name)
|
41 |
->setEventTime(time())
|
42 |
->setEventId(EventIdGenerator::guidv4())
|
43 |
+
->setEventSourceUrl(
|
44 |
+
self::getRequestUri($prefer_referrer_for_event_src))
|
45 |
->setUserData($user_data)
|
46 |
->setCustomData(new CustomData());
|
47 |
|
49 |
}
|
50 |
|
51 |
private static function getIpAddress() {
|
52 |
+
$HEADERS_TO_SCAN = array(
|
53 |
+
'HTTP_CLIENT_IP',
|
54 |
+
'HTTP_X_FORWARDED_FOR',
|
55 |
+
'HTTP_X_FORWARDED',
|
56 |
+
'HTTP_X_CLUSTER_CLIENT_IP',
|
57 |
+
'HTTP_FORWARDED_FOR',
|
58 |
+
'HTTP_FORWARDED',
|
59 |
+
'REMOTE_ADDR'
|
60 |
+
);
|
61 |
+
|
62 |
+
foreach ($HEADERS_TO_SCAN as $header) {
|
63 |
+
if (array_key_exists($header, $_SERVER)) {
|
64 |
+
$ip_list = explode(',', $_SERVER[$header]);
|
65 |
+
foreach($ip_list as $ip) {
|
66 |
+
$trimmed_ip = trim($ip);
|
67 |
+
if (self::isValidIpAddress($trimmed_ip)) {
|
68 |
+
return $trimmed_ip;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
}
|
73 |
|
74 |
+
return null;
|
75 |
}
|
76 |
|
77 |
private static function getHttpUserAgent() {
|
84 |
return $user_agent;
|
85 |
}
|
86 |
|
87 |
+
private static function getRequestUri($prefer_referrer_for_event_src) {
|
88 |
+
if ($prefer_referrer_for_event_src && !empty($_SERVER['HTTP_REFERER'])) {
|
89 |
+
return $_SERVER['HTTP_REFERER'];
|
90 |
+
}
|
91 |
+
|
92 |
$url = "http://";
|
93 |
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
94 |
$url = "https://";
|
125 |
return $fbc;
|
126 |
}
|
127 |
|
128 |
+
private static function isValidIpAddress($ip_address) {
|
129 |
+
return filter_var($ip_address,
|
130 |
+
FILTER_VALIDATE_IP,
|
131 |
+
FILTER_FLAG_IPV4
|
132 |
+
| FILTER_FLAG_IPV6
|
133 |
+
| FILTER_FLAG_NO_PRIV_RANGE
|
134 |
+
| FILTER_FLAG_NO_RES_RANGE);
|
135 |
+
}
|
136 |
+
|
137 |
+
public static function safeCreateEvent(
|
138 |
+
$event_name,
|
139 |
+
$callback,
|
140 |
+
$arguments,
|
141 |
+
$integration,
|
142 |
+
$prefer_referrer_for_event_src = false)
|
143 |
+
{
|
144 |
+
$event = self::newEvent($event_name, $prefer_referrer_for_event_src);
|
145 |
|
146 |
try {
|
147 |
$data = call_user_func_array($callback, $arguments);
|
162 |
}
|
163 |
|
164 |
$custom_data = $event->getCustomData();
|
165 |
+
$custom_data->addCustomProperty('fb_integration_tracking', $integration);
|
166 |
+
|
167 |
if (!empty($data['currency'])) {
|
168 |
$custom_data->setCurrency($data['currency']);
|
169 |
}
|
facebook-for-wordpress.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
|
6 |
* Author: Facebook
|
7 |
* Author URI: https://www.facebook.com/
|
8 |
-
* Version: 2.0.
|
9 |
* Text Domain: official-facebook-pixel
|
10 |
*/
|
11 |
|
5 |
* Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
|
6 |
* Author: Facebook
|
7 |
* Author URI: https://www.facebook.com/
|
8 |
+
* Version: 2.0.2
|
9 |
* Text Domain: official-facebook-pixel
|
10 |
*/
|
11 |
|
integration/FacebookWordpressCalderaForm.php
CHANGED
@@ -46,7 +46,9 @@ class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
|
|
46 |
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
'Lead',
|
48 |
array(__CLASS__, 'readFormData'),
|
49 |
-
array($form)
|
|
|
|
|
50 |
);
|
51 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
52 |
|
46 |
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
'Lead',
|
48 |
array(__CLASS__, 'readFormData'),
|
49 |
+
array($form),
|
50 |
+
self::TRACKING_NAME,
|
51 |
+
true
|
52 |
);
|
53 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
54 |
|
integration/FacebookWordpressContactForm7.php
CHANGED
@@ -46,7 +46,9 @@ class FacebookWordpressContactForm7 extends FacebookWordpressIntegrationBase {
|
|
46 |
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
'Lead',
|
48 |
array(__CLASS__, 'readFormData'),
|
49 |
-
array($form)
|
|
|
|
|
50 |
);
|
51 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
52 |
|
46 |
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
'Lead',
|
48 |
array(__CLASS__, 'readFormData'),
|
49 |
+
array($form),
|
50 |
+
self::TRACKING_NAME,
|
51 |
+
true
|
52 |
);
|
53 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
54 |
|
integration/FacebookWordpressEasyDigitalDownloads.php
CHANGED
@@ -118,7 +118,8 @@ jQuery(document).ready(function ($) {
|
|
118 |
$server_event = ServerEventFactory::safeCreateEvent(
|
119 |
'InitiateCheckout',
|
120 |
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
121 |
-
array()
|
|
|
122 |
);
|
123 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
124 |
|
@@ -139,7 +140,8 @@ jQuery(document).ready(function ($) {
|
|
139 |
$server_event = ServerEventFactory::safeCreateEvent(
|
140 |
'Purchase',
|
141 |
array(__CLASS__, 'createPurchaseEvent'),
|
142 |
-
array($payment)
|
|
|
143 |
);
|
144 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
145 |
|
118 |
$server_event = ServerEventFactory::safeCreateEvent(
|
119 |
'InitiateCheckout',
|
120 |
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
121 |
+
array(),
|
122 |
+
self::TRACKING_NAME
|
123 |
);
|
124 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
125 |
|
140 |
$server_event = ServerEventFactory::safeCreateEvent(
|
141 |
'Purchase',
|
142 |
array(__CLASS__, 'createPurchaseEvent'),
|
143 |
+
array($payment),
|
144 |
+
self::TRACKING_NAME
|
145 |
);
|
146 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
147 |
|
integration/FacebookWordpressFormidableForm.php
CHANGED
@@ -49,7 +49,9 @@ class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
|
|
49 |
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
'Lead',
|
51 |
array(__CLASS__, 'readFormData'),
|
52 |
-
array($entry_id)
|
|
|
|
|
53 |
);
|
54 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
55 |
|
49 |
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
'Lead',
|
51 |
array(__CLASS__, 'readFormData'),
|
52 |
+
array($entry_id),
|
53 |
+
self::TRACKING_NAME,
|
54 |
+
true
|
55 |
);
|
56 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
57 |
|
integration/FacebookWordpressGravityForms.php
CHANGED
@@ -47,7 +47,9 @@ class FacebookWordpressGravityForms extends FacebookWordpressIntegrationBase {
|
|
47 |
$event = ServerEventFactory::safeCreateEvent(
|
48 |
'Lead',
|
49 |
array(__CLASS__, 'readFormData'),
|
50 |
-
array($form, $entry)
|
|
|
|
|
51 |
);
|
52 |
FacebookServerSideEvent::getInstance()->track($event);
|
53 |
|
47 |
$event = ServerEventFactory::safeCreateEvent(
|
48 |
'Lead',
|
49 |
array(__CLASS__, 'readFormData'),
|
50 |
+
array($form, $entry),
|
51 |
+
self::TRACKING_NAME,
|
52 |
+
true
|
53 |
);
|
54 |
FacebookServerSideEvent::getInstance()->track($event);
|
55 |
|
integration/FacebookWordpressMailchimpForWp.php
CHANGED
@@ -44,7 +44,9 @@ class FacebookWordpressMailchimpForWp extends FacebookWordpressIntegrationBase {
|
|
44 |
$server_event = ServerEventFactory::safeCreateEvent(
|
45 |
'Lead',
|
46 |
array(__CLASS__, 'readFormData'),
|
47 |
-
array()
|
|
|
|
|
48 |
);
|
49 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
50 |
|
44 |
$server_event = ServerEventFactory::safeCreateEvent(
|
45 |
'Lead',
|
46 |
array(__CLASS__, 'readFormData'),
|
47 |
+
array(),
|
48 |
+
self::TRACKING_NAME,
|
49 |
+
true
|
50 |
);
|
51 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
52 |
|
integration/FacebookWordpressNinjaForms.php
CHANGED
@@ -59,7 +59,9 @@ class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
|
|
59 |
$event = ServerEventFactory::safeCreateEvent(
|
60 |
'Lead',
|
61 |
array(__CLASS__, 'readFormData'),
|
62 |
-
array($form_data)
|
|
|
|
|
63 |
);
|
64 |
FacebookServerSideEvent::getInstance()->track($event);
|
65 |
|
59 |
$event = ServerEventFactory::safeCreateEvent(
|
60 |
'Lead',
|
61 |
array(__CLASS__, 'readFormData'),
|
62 |
+
array($form_data),
|
63 |
+
self::TRACKING_NAME,
|
64 |
+
true
|
65 |
);
|
66 |
FacebookServerSideEvent::getInstance()->track($event);
|
67 |
|
integration/FacebookWordpressWPECommerce.php
CHANGED
@@ -56,7 +56,8 @@ class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
|
56 |
$server_event = ServerEventFactory::safeCreateEvent(
|
57 |
'AddToCart',
|
58 |
array(__CLASS__, 'createAddToCartEvent'),
|
59 |
-
array($product_id)
|
|
|
60 |
);
|
61 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
62 |
|
@@ -79,7 +80,8 @@ class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
|
79 |
$server_event = ServerEventFactory::safeCreateEvent(
|
80 |
'InitiateCheckout',
|
81 |
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
82 |
-
array()
|
|
|
83 |
);
|
84 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
85 |
|
@@ -104,7 +106,8 @@ class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
|
104 |
$server_event = ServerEventFactory::safeCreateEvent(
|
105 |
'Purchase',
|
106 |
array(__CLASS__, 'createPurchaseEvent'),
|
107 |
-
array($purchase_log_object)
|
|
|
108 |
);
|
109 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
110 |
|
56 |
$server_event = ServerEventFactory::safeCreateEvent(
|
57 |
'AddToCart',
|
58 |
array(__CLASS__, 'createAddToCartEvent'),
|
59 |
+
array($product_id),
|
60 |
+
self::TRACKING_NAME
|
61 |
);
|
62 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
63 |
|
80 |
$server_event = ServerEventFactory::safeCreateEvent(
|
81 |
'InitiateCheckout',
|
82 |
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
83 |
+
array(),
|
84 |
+
self::TRACKING_NAME
|
85 |
);
|
86 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
87 |
|
106 |
$server_event = ServerEventFactory::safeCreateEvent(
|
107 |
'Purchase',
|
108 |
array(__CLASS__, 'createPurchaseEvent'),
|
109 |
+
array($purchase_log_object),
|
110 |
+
self::TRACKING_NAME
|
111 |
);
|
112 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
113 |
|
integration/FacebookWordpressWPForms.php
CHANGED
@@ -49,7 +49,9 @@ class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
|
49 |
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
'Lead',
|
51 |
array(__CLASS__, 'readFormData'),
|
52 |
-
array($entry, $form_data)
|
|
|
|
|
53 |
);
|
54 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
55 |
|
@@ -81,10 +83,12 @@ class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
|
81 |
return array();
|
82 |
}
|
83 |
|
|
|
|
|
84 |
return array(
|
85 |
'email' => self::getEmail($entry, $form_data),
|
86 |
-
'first_name' =>
|
87 |
-
'last_name' =>
|
88 |
);
|
89 |
}
|
90 |
|
@@ -92,28 +96,36 @@ class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
|
92 |
return self::getField($entry, $form_data, 'email');
|
93 |
}
|
94 |
|
95 |
-
private static function
|
96 |
-
|
97 |
-
|
|
|
98 |
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
|
103 |
-
private static function getField($entry, $form_data, $type
|
104 |
-
if (empty($form_data['fields'])) {
|
105 |
return null;
|
106 |
}
|
107 |
|
108 |
foreach ($form_data['fields'] as $field) {
|
109 |
if ($field['type'] == $type) {
|
110 |
-
|
111 |
-
if (!empty($label)) {
|
112 |
-
return $entry['fields'][$field['id']][$label];
|
113 |
-
} else {
|
114 |
-
return $entry['fields'][$field['id']];
|
115 |
-
}
|
116 |
-
}
|
117 |
}
|
118 |
}
|
119 |
|
49 |
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
'Lead',
|
51 |
array(__CLASS__, 'readFormData'),
|
52 |
+
array($entry, $form_data),
|
53 |
+
self::TRACKING_NAME,
|
54 |
+
true
|
55 |
);
|
56 |
FacebookServerSideEvent::getInstance()->track($server_event);
|
57 |
|
83 |
return array();
|
84 |
}
|
85 |
|
86 |
+
$name = self::getName($entry, $form_data);
|
87 |
+
|
88 |
return array(
|
89 |
'email' => self::getEmail($entry, $form_data),
|
90 |
+
'first_name' => !empty($name) ? $name[0] : null,
|
91 |
+
'last_name' => !empty($name) ? $name[1] : null
|
92 |
);
|
93 |
}
|
94 |
|
96 |
return self::getField($entry, $form_data, 'email');
|
97 |
}
|
98 |
|
99 |
+
private static function getName($entry, $form_data) {
|
100 |
+
if (empty($form_data['fields']) || empty($entry['fields'])) {
|
101 |
+
return null;
|
102 |
+
}
|
103 |
|
104 |
+
$entries = $entry['fields'];
|
105 |
+
foreach ($form_data['fields'] as $field) {
|
106 |
+
if ($field['type'] == 'name') {
|
107 |
+
if ($field['format'] == 'simple') {
|
108 |
+
return ServerEventFactory::splitName($entries[$field['id']]);
|
109 |
+
} else if ($field['format'] == 'first-last') {
|
110 |
+
return array(
|
111 |
+
$entries[$field['id']]['first'],
|
112 |
+
$entries[$field['id']]['last']
|
113 |
+
);
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
return null;
|
119 |
}
|
120 |
|
121 |
+
private static function getField($entry, $form_data, $type) {
|
122 |
+
if (empty($form_data['fields']) || empty($entry['fields'])) {
|
123 |
return null;
|
124 |
}
|
125 |
|
126 |
foreach ($form_data['fields'] as $field) {
|
127 |
if ($field['type'] == $type) {
|
128 |
+
return $entry['fields'][$field['id']];
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
}
|
131 |
|
languages/official-facebook-pixel-ar_AR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-cs_CZ.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-da_DK.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-de_DE.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-en_GB.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-es_ES.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-es_LA.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fi_FI.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fr_CA.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-fr_FR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-he_IL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-it_IT.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ja_JP.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ko_KR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-nb_NO.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-nl_NL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pl_PL.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pt_BR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-pt_PT.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-ru_RU.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-sv_SE.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-th_TH.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
|
7 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
8 |
"PO-Revision-Date: 2018-11-28 17:37-0800\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
|
7 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
8 |
"PO-Revision-Date: 2018-11-28 17:37-0800\n"
|
languages/official-facebook-pixel-tr_TR.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-vi_VN.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-zh_CN.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
languages/official-facebook-pixel-zh_TW.po
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
2 |
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Official Facebook Pixel 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
"pixel\n"
|
8 |
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: facebook
|
3 |
Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.3
|
7 |
Stable tag: 2.0.1
|
8 |
License: GPLv2
|
@@ -49,6 +49,11 @@ If you get stuck, or have any questions, you can ask for help in the [Official F
|
|
49 |
Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
|
50 |
|
51 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
52 |
= 2020-03-23 version 2.0.1 =
|
53 |
* Fixing an Undefined index error
|
54 |
|
2 |
Contributors: facebook
|
3 |
Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, facebook retargeting, facebook standard events
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.4
|
6 |
Requires PHP: 5.3
|
7 |
Stable tag: 2.0.1
|
8 |
License: GPLv2
|
49 |
Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
|
50 |
|
51 |
== Changelog ==
|
52 |
+
= 2020-04-23 version 2.0.2 =
|
53 |
+
* Support for WordPress 5.4
|
54 |
+
* Fixing an Illegal string offset error with WP Forms
|
55 |
+
* Fixing the event source url for Server-Side API events
|
56 |
+
|
57 |
= 2020-03-23 version 2.0.1 =
|
58 |
* Fixing an Undefined index error
|
59 |
|
trunk/CODE_OF_CONDUCT.md
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
# Code of Conduct
|
2 |
-
|
3 |
-
Facebook has adopted a Code of Conduct that we expect project participants to adhere to.
|
4 |
-
Please read the [full text](https://code.fb.com/codeofconduct/)
|
5 |
-
so that you can understand what actions will and will not be tolerated.
|
|
|
|
|
|
|
|
|
|
trunk/CONTRIBUTING.md
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
# Contributing to Facebook for WordPress
|
2 |
-
We want to make contributing to this project as easy and transparent as
|
3 |
-
possible.
|
4 |
-
|
5 |
-
## Pull Requests
|
6 |
-
We actively welcome your pull requests.
|
7 |
-
|
8 |
-
1. Fork the repo and create your branch from `master`.
|
9 |
-
2. If you've added code that should be tested, add tests.
|
10 |
-
3. If you've changed APIs, update the documentation.
|
11 |
-
4. Make sure your code lints.
|
12 |
-
5. If you haven't already, complete the Contributor License Agreement ("CLA").
|
13 |
-
|
14 |
-
### Get started
|
15 |
-
|
16 |
-
Clone this repo with the following command:
|
17 |
-
|
18 |
-
`$ git clone https://github.com/facebookincubator/facebook-pixel-for-wordpress.git`
|
19 |
-
|
20 |
-
Initiate the development environment:
|
21 |
-
|
22 |
-
1. Install Composer
|
23 |
-
2. Run the command to install the necessary package: `$ composer install`
|
24 |
-
|
25 |
-
Build the project and create the zip
|
26 |
-
Run the command to run tests and create the zip under build directory.
|
27 |
-
|
28 |
-
`$ vendor/bin/phing`
|
29 |
-
|
30 |
-
### How to integrate your plugins
|
31 |
-
|
32 |
-
1. Add your integration class under `integration/` folder
|
33 |
-
2. Extend the class from `FacebookWordpressIntegrationBase`
|
34 |
-
3. Define class variable `PLUGIN_FILE` to be your plugin PHP file
|
35 |
-
4. Define class variable `TRACKING_NAME` for tracking purpose, put this value under 'fb_wp_tracking' as a parameter in the pixel event
|
36 |
-
5. Define a public static function `injectPixelCode()` to inject pixel at your page
|
37 |
-
6. Add your unit test class under `tests/` folder
|
38 |
-
7. Extend the test class from `FacebookWordpressTestBase`
|
39 |
-
8. After the classes development, run tests by `$ vendor/bin/phing`
|
40 |
-
|
41 |
-
You can reference to integration/FacebookWordpressContactForm7.php and tests/FacebookWordpressContactForm7Test.php as an example
|
42 |
-
|
43 |
-
|
44 |
-
## Contributor License Agreement ("CLA")
|
45 |
-
In order to accept your pull request, we need you to submit a CLA. You only need
|
46 |
-
to do this once to work on any of Facebook's open source projects.
|
47 |
-
|
48 |
-
Complete your CLA here: <https://code.facebook.com/cla>
|
49 |
-
|
50 |
-
## Issues
|
51 |
-
We use GitHub issues to track public bugs. Please ensure your description is
|
52 |
-
clear and has sufficient instructions to be able to reproduce the issue.
|
53 |
-
|
54 |
-
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
|
55 |
-
disclosure of security bugs. In those cases, please go through the process
|
56 |
-
outlined on that page and do not file a public issue.
|
57 |
-
|
58 |
-
## Coding Style
|
59 |
-
* 4 spaces for indentation rather than tabs
|
60 |
-
* 80 character line length
|
61 |
-
|
62 |
-
## License
|
63 |
-
By contributing to Facebook for Wordpress, you agree that your contributions
|
64 |
-
will be licensed under the LICENSE file in the root directory of
|
65 |
-
this source tree.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/LICENSE
DELETED
@@ -1,339 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
<one line to give the program's name and a brief idea of what it does.>
|
294 |
-
Copyright (C) <year> <name of author>
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type `show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than `show w' and `show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
<signature of Ty Coon>, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
-
Public License instead of this License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/changelog.txt
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
*** Facebook for WordPress Changelog ***
|
2 |
-
2020-03-23 version 2.0.1
|
3 |
-
* Fixing an Undefined index error
|
4 |
-
|
5 |
-
2020-03-09 version 2.0.0
|
6 |
-
* Added support for Server-Side API
|
7 |
-
|
8 |
-
2019-12-02 version 1.8.0
|
9 |
-
* Support for WordPress 5.3
|
10 |
-
* Fix Gravity Forms confirmation redirect
|
11 |
-
|
12 |
-
2019-02-18 version 1.7.25
|
13 |
-
* remove get_called_class from the codebase
|
14 |
-
|
15 |
-
2019-02-10 version 1.7.24
|
16 |
-
* Fix for PHP 5.3
|
17 |
-
* Fix the Util function
|
18 |
-
* Fix Ninja Form
|
19 |
-
|
20 |
-
2019-01-29 version 1.7.23
|
21 |
-
* Add Gravity Forms
|
22 |
-
* Add Caldera Form
|
23 |
-
* Add Formidable Form
|
24 |
-
|
25 |
-
2019-01-20 version 1.7.22
|
26 |
-
* fix css asset error
|
27 |
-
|
28 |
-
2018-11-30 version 1.7.21
|
29 |
-
* fix abstract static function
|
30 |
-
|
31 |
-
2018-11-28 version 1.7.20
|
32 |
-
* Change plugin file name, Add Supports for MailChimp for WordPress and WP eCommerce
|
33 |
-
|
34 |
-
2018-11-20 version 1.7.19
|
35 |
-
* Support php 5.3 onwards
|
36 |
-
|
37 |
-
2018-11-16 version 1.7.18
|
38 |
-
* Fix translation and set the advanced matching on by default
|
39 |
-
|
40 |
-
2018-11-09 version 1.7.17
|
41 |
-
* Fix Lead event
|
42 |
-
|
43 |
-
2018-11-02 version 1.7.16
|
44 |
-
* Fix advance matching
|
45 |
-
|
46 |
-
2018-10-29 version 1.7.15
|
47 |
-
* Add tracking
|
48 |
-
|
49 |
-
2018-07-06 version 1.7.14
|
50 |
-
* Add language files
|
51 |
-
|
52 |
-
2018-07-06 version 1.7.13
|
53 |
-
* Add Ninja Forms
|
54 |
-
|
55 |
-
2018-07-06 version 1.7.12
|
56 |
-
* Add WPForms
|
57 |
-
|
58 |
-
2018-07-06 version 1.7.11
|
59 |
-
* Add Easy-Digital-Download
|
60 |
-
|
61 |
-
2018-07-06 version 1.7.10
|
62 |
-
* Code Refactor
|
63 |
-
|
64 |
-
2018-07-06 version 1.7.9
|
65 |
-
* Added Lead event for Contact Form 7.
|
66 |
-
|
67 |
-
2018-03-28 version 1.7.7
|
68 |
-
* Removed unused code that was previously used by WooCommerce plugin.
|
69 |
-
* Added DB cleanup on uninstall.
|
70 |
-
* Added pot file for i18n.
|
71 |
-
|
72 |
-
2018-01-03 version 1.7.6
|
73 |
-
* WordPress only plugin notice on missing Pixel ID.
|
74 |
-
* WordPress only plugin direct link to settings page from plugin page.
|
75 |
-
|
76 |
-
2017-09-05 version 1.5.0
|
77 |
-
* Added support for generic WordPress installations (without WooCommerce)
|
78 |
-
* Added Search events
|
79 |
-
* Setting page for Pixel ID and for enabling advanced measurement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/composer.json
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "facebook/pixel-for-wordpress",
|
3 |
-
"description": "Facebook Pixel plugins for wordpress",
|
4 |
-
"type": "project",
|
5 |
-
"require-dev": {
|
6 |
-
"phpunit/phpunit": "^6.5",
|
7 |
-
"phing/phing": "3.0.0-alpha1",
|
8 |
-
"10up/wp_mock": "0.3.0"
|
9 |
-
},
|
10 |
-
"license": "GPL",
|
11 |
-
"require": {
|
12 |
-
"facebook/php-business-sdk": "6.0.0",
|
13 |
-
"techcrunch/wp-async-task": "dev-master"
|
14 |
-
},
|
15 |
-
"autoload": {
|
16 |
-
"psr-4": {
|
17 |
-
"FacebookPixelPlugin\\": "./",
|
18 |
-
"FacebookPixelPlugin\\Core\\": "core/",
|
19 |
-
"FacebookPixelPlugin\\Integration\\": "integration/"
|
20 |
-
}
|
21 |
-
},
|
22 |
-
"autoload-dev": {
|
23 |
-
"classmap": [
|
24 |
-
"__tests__/",
|
25 |
-
"./"
|
26 |
-
]
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/composer.lock
DELETED
@@ -1,2319 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"_readme": [
|
3 |
-
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
-
"This file is @generated automatically"
|
6 |
-
],
|
7 |
-
"content-hash": "8c78f3821e9ebc5ffc8c03dab0e2a8b3",
|
8 |
-
"packages": [
|
9 |
-
{
|
10 |
-
"name": "facebook/php-business-sdk",
|
11 |
-
"version": "6.0.0",
|
12 |
-
"source": {
|
13 |
-
"type": "git",
|
14 |
-
"url": "https://github.com/facebook/facebook-php-business-sdk.git",
|
15 |
-
"reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15"
|
16 |
-
},
|
17 |
-
"dist": {
|
18 |
-
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/32c8678d3c50e0570b68d7cbb23062c16a5faf15",
|
20 |
-
"reference": "32c8678d3c50e0570b68d7cbb23062c16a5faf15",
|
21 |
-
"shasum": ""
|
22 |
-
},
|
23 |
-
"require-dev": {
|
24 |
-
"phpunit/phpunit": "~8",
|
25 |
-
"symfony/finder": "~2.6"
|
26 |
-
},
|
27 |
-
"type": "library",
|
28 |
-
"autoload": {
|
29 |
-
"psr-4": {
|
30 |
-
"FacebookAds\\": "src/FacebookAds/"
|
31 |
-
}
|
32 |
-
},
|
33 |
-
"notification-url": "https://packagist.org/downloads/",
|
34 |
-
"description": "PHP SDK for Facebook Business",
|
35 |
-
"homepage": "https://developers.facebook.com/",
|
36 |
-
"keywords": [
|
37 |
-
"ads",
|
38 |
-
"business",
|
39 |
-
"facebook",
|
40 |
-
"instagram",
|
41 |
-
"page",
|
42 |
-
"sdk"
|
43 |
-
],
|
44 |
-
"time": "2020-02-03T20:06:10+00:00"
|
45 |
-
},
|
46 |
-
{
|
47 |
-
"name": "techcrunch/wp-async-task",
|
48 |
-
"version": "dev-master",
|
49 |
-
"source": {
|
50 |
-
"type": "git",
|
51 |
-
"url": "https://github.com/techcrunch/wp-async-task.git",
|
52 |
-
"reference": "9bdbbf9df4ff5179711bb58b9a2451296f6753dc"
|
53 |
-
},
|
54 |
-
"dist": {
|
55 |
-
"type": "zip",
|
56 |
-
"url": "https://api.github.com/repos/techcrunch/wp-async-task/zipball/9bdbbf9df4ff5179711bb58b9a2451296f6753dc",
|
57 |
-
"reference": "9bdbbf9df4ff5179711bb58b9a2451296f6753dc",
|
58 |
-
"shasum": ""
|
59 |
-
},
|
60 |
-
"require-dev": {
|
61 |
-
"10up/wp_mock": "dev-master",
|
62 |
-
"phpunit/phpunit": "*@stable"
|
63 |
-
},
|
64 |
-
"type": "wordpress-plugin",
|
65 |
-
"autoload": {
|
66 |
-
"classmap": [
|
67 |
-
"wp-async-task.php"
|
68 |
-
]
|
69 |
-
},
|
70 |
-
"notification-url": "https://packagist.org/downloads/",
|
71 |
-
"license": [
|
72 |
-
"MIT"
|
73 |
-
],
|
74 |
-
"authors": [
|
75 |
-
{
|
76 |
-
"name": "Alex Khadiwala",
|
77 |
-
"role": "developer"
|
78 |
-
},
|
79 |
-
{
|
80 |
-
"name": "Nicolas Vincent",
|
81 |
-
"role": "developer"
|
82 |
-
},
|
83 |
-
{
|
84 |
-
"name": "Eric Mann",
|
85 |
-
"email": "eric.mann@10up.com",
|
86 |
-
"role": "developer"
|
87 |
-
},
|
88 |
-
{
|
89 |
-
"name": "John P. Bloch",
|
90 |
-
"email": "john.bloch@10up.com",
|
91 |
-
"role": "developer"
|
92 |
-
}
|
93 |
-
],
|
94 |
-
"description": "Run asynchronous tasks for long-running operations in WordPress",
|
95 |
-
"time": "2016-03-10T17:37:13+00:00"
|
96 |
-
}
|
97 |
-
],
|
98 |
-
"packages-dev": [
|
99 |
-
{
|
100 |
-
"name": "10up/wp_mock",
|
101 |
-
"version": "0.3.0",
|
102 |
-
"source": {
|
103 |
-
"type": "git",
|
104 |
-
"url": "https://github.com/10up/wp_mock.git",
|
105 |
-
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714"
|
106 |
-
},
|
107 |
-
"dist": {
|
108 |
-
"type": "zip",
|
109 |
-
"url": "https://api.github.com/repos/10up/wp_mock/zipball/64956557e98ee4c8c56cd1e396e822adb4673714",
|
110 |
-
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714",
|
111 |
-
"shasum": ""
|
112 |
-
},
|
113 |
-
"require": {
|
114 |
-
"antecedent/patchwork": "^2.1",
|
115 |
-
"mockery/mockery": "^1.0",
|
116 |
-
"php": ">=7.0",
|
117 |
-
"phpunit/phpunit": ">=6.0"
|
118 |
-
},
|
119 |
-
"require-dev": {
|
120 |
-
"behat/behat": "^3.0",
|
121 |
-
"satooshi/php-coveralls": "^1.0",
|
122 |
-
"sebastian/comparator": ">=1.2.3"
|
123 |
-
},
|
124 |
-
"type": "library",
|
125 |
-
"autoload": {
|
126 |
-
"psr-4": {
|
127 |
-
"WP_Mock\\": "./php/WP_Mock"
|
128 |
-
},
|
129 |
-
"classmap": [
|
130 |
-
"php/WP_Mock.php"
|
131 |
-
]
|
132 |
-
},
|
133 |
-
"notification-url": "https://packagist.org/downloads/",
|
134 |
-
"license": [
|
135 |
-
"GPL-2.0+"
|
136 |
-
],
|
137 |
-
"description": "A mocking library to take the pain out of unit testing for WordPress",
|
138 |
-
"time": "2017-12-03T19:28:28+00:00"
|
139 |
-
},
|
140 |
-
{
|
141 |
-
"name": "antecedent/patchwork",
|
142 |
-
"version": "2.1.12",
|
143 |
-
"source": {
|
144 |
-
"type": "git",
|
145 |
-
"url": "https://github.com/antecedent/patchwork.git",
|
146 |
-
"reference": "b98e046dd4c0acc34a0846604f06f6111654d9ea"
|
147 |
-
},
|
148 |
-
"dist": {
|
149 |
-
"type": "zip",
|
150 |
-
"url": "https://api.github.com/repos/antecedent/patchwork/zipball/b98e046dd4c0acc34a0846604f06f6111654d9ea",
|
151 |
-
"reference": "b98e046dd4c0acc34a0846604f06f6111654d9ea",
|
152 |
-
"shasum": ""
|
153 |
-
},
|
154 |
-
"require": {
|
155 |
-
"php": ">=5.4.0"
|
156 |
-
},
|
157 |
-
"require-dev": {
|
158 |
-
"phpunit/phpunit": ">=4"
|
159 |
-
},
|
160 |
-
"type": "library",
|
161 |
-
"notification-url": "https://packagist.org/downloads/",
|
162 |
-
"license": [
|
163 |
-
"MIT"
|
164 |
-
],
|
165 |
-
"authors": [
|
166 |
-
{
|
167 |
-
"name": "Ignas Rudaitis",
|
168 |
-
"email": "ignas.rudaitis@gmail.com"
|
169 |
-
}
|
170 |
-
],
|
171 |
-
"description": "Method redefinition (monkey-patching) functionality for PHP.",
|
172 |
-
"homepage": "http://patchwork2.org/",
|
173 |
-
"keywords": [
|
174 |
-
"aop",
|
175 |
-
"aspect",
|
176 |
-
"interception",
|
177 |
-
"monkeypatching",
|
178 |
-
"redefinition",
|
179 |
-
"runkit",
|
180 |
-
"testing"
|
181 |
-
],
|
182 |
-
"time": "2019-12-22T17:52:09+00:00"
|
183 |
-
},
|
184 |
-
{
|
185 |
-
"name": "doctrine/instantiator",
|
186 |
-
"version": "1.3.0",
|
187 |
-
"source": {
|
188 |
-
"type": "git",
|
189 |
-
"url": "https://github.com/doctrine/instantiator.git",
|
190 |
-
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
|
191 |
-
},
|
192 |
-
"dist": {
|
193 |
-
"type": "zip",
|
194 |
-
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
|
195 |
-
"reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
|
196 |
-
"shasum": ""
|
197 |
-
},
|
198 |
-
"require": {
|
199 |
-
"php": "^7.1"
|
200 |
-
},
|
201 |
-
"require-dev": {
|
202 |
-
"doctrine/coding-standard": "^6.0",
|
203 |
-
"ext-pdo": "*",
|
204 |
-
"ext-phar": "*",
|
205 |
-
"phpbench/phpbench": "^0.13",
|
206 |
-
"phpstan/phpstan-phpunit": "^0.11",
|
207 |
-
"phpstan/phpstan-shim": "^0.11",
|
208 |
-
"phpunit/phpunit": "^7.0"
|
209 |
-
},
|
210 |
-
"type": "library",
|
211 |
-
"extra": {
|
212 |
-
"branch-alias": {
|
213 |
-
"dev-master": "1.2.x-dev"
|
214 |
-
}
|
215 |
-
},
|
216 |
-
"autoload": {
|
217 |
-
"psr-4": {
|
218 |
-
"Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
|
219 |
-
}
|
220 |
-
},
|
221 |
-
"notification-url": "https://packagist.org/downloads/",
|
222 |
-
"license": [
|
223 |
-
"MIT"
|
224 |
-
],
|
225 |
-
"authors": [
|
226 |
-
{
|
227 |
-
"name": "Marco Pivetta",
|
228 |
-
"email": "ocramius@gmail.com",
|
229 |
-
"homepage": "http://ocramius.github.com/"
|
230 |
-
}
|
231 |
-
],
|
232 |
-
"description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
|
233 |
-
"homepage": "https://www.doctrine-project.org/projects/instantiator.html",
|
234 |
-
"keywords": [
|
235 |
-
"constructor",
|
236 |
-
"instantiate"
|
237 |
-
],
|
238 |
-
"time": "2019-10-21T16:45:58+00:00"
|
239 |
-
},
|
240 |
-
{
|
241 |
-
"name": "hamcrest/hamcrest-php",
|
242 |
-
"version": "v2.0.0",
|
243 |
-
"source": {
|
244 |
-
"type": "git",
|
245 |
-
"url": "https://github.com/hamcrest/hamcrest-php.git",
|
246 |
-
"reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad"
|
247 |
-
},
|
248 |
-
"dist": {
|
249 |
-
"type": "zip",
|
250 |
-
"url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/776503d3a8e85d4f9a1148614f95b7a608b046ad",
|
251 |
-
"reference": "776503d3a8e85d4f9a1148614f95b7a608b046ad",
|
252 |
-
"shasum": ""
|
253 |
-
},
|
254 |
-
"require": {
|
255 |
-
"php": "^5.3|^7.0"
|
256 |
-
},
|
257 |
-
"replace": {
|
258 |
-
"cordoval/hamcrest-php": "*",
|
259 |
-
"davedevelopment/hamcrest-php": "*",
|
260 |
-
"kodova/hamcrest-php": "*"
|
261 |
-
},
|
262 |
-
"require-dev": {
|
263 |
-
"phpunit/php-file-iterator": "1.3.3",
|
264 |
-
"phpunit/phpunit": "~4.0",
|
265 |
-
"satooshi/php-coveralls": "^1.0"
|
266 |
-
},
|
267 |
-
"type": "library",
|
268 |
-
"extra": {
|
269 |
-
"branch-alias": {
|
270 |
-
"dev-master": "2.0-dev"
|
271 |
-
}
|
272 |
-
},
|
273 |
-
"autoload": {
|
274 |
-
"classmap": [
|
275 |
-
"hamcrest"
|
276 |
-
]
|
277 |
-
},
|
278 |
-
"notification-url": "https://packagist.org/downloads/",
|
279 |
-
"license": [
|
280 |
-
"BSD"
|
281 |
-
],
|
282 |
-
"description": "This is the PHP port of Hamcrest Matchers",
|
283 |
-
"keywords": [
|
284 |
-
"test"
|
285 |
-
],
|
286 |
-
"time": "2016-01-20T08:20:44+00:00"
|
287 |
-
},
|
288 |
-
{
|
289 |
-
"name": "mehr-als-nix/parallel",
|
290 |
-
"version": "v1.0.0",
|
291 |
-
"source": {
|
292 |
-
"type": "git",
|
293 |
-
"url": "https://github.com/MehrAlsNix/Parallel.git",
|
294 |
-
"reference": "14a71eb1a8f851108bed4a5b32d1c1027976e8f3"
|
295 |
-
},
|
296 |
-
"dist": {
|
297 |
-
"type": "zip",
|
298 |
-
"url": "https://api.github.com/repos/MehrAlsNix/Parallel/zipball/14a71eb1a8f851108bed4a5b32d1c1027976e8f3",
|
299 |
-
"reference": "14a71eb1a8f851108bed4a5b32d1c1027976e8f3",
|
300 |
-
"shasum": ""
|
301 |
-
},
|
302 |
-
"require-dev": {
|
303 |
-
"phpunit/phpunit": "^6.5"
|
304 |
-
},
|
305 |
-
"type": "library",
|
306 |
-
"autoload": {
|
307 |
-
"psr-4": {
|
308 |
-
"MehrAlsNix\\Parallel\\": "src"
|
309 |
-
}
|
310 |
-
},
|
311 |
-
"notification-url": "https://packagist.org/downloads/",
|
312 |
-
"license": [
|
313 |
-
"MIT"
|
314 |
-
],
|
315 |
-
"authors": [
|
316 |
-
{
|
317 |
-
"name": "siad007",
|
318 |
-
"email": "siad.ardroumli@gmail.com"
|
319 |
-
}
|
320 |
-
],
|
321 |
-
"description": "This package is a port of PhpDumentor/Parallel",
|
322 |
-
"time": "2017-12-10T12:33:51+00:00"
|
323 |
-
},
|
324 |
-
{
|
325 |
-
"name": "mockery/mockery",
|
326 |
-
"version": "1.3.1",
|
327 |
-
"source": {
|
328 |
-
"type": "git",
|
329 |
-
"url": "https://github.com/mockery/mockery.git",
|
330 |
-
"reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be"
|
331 |
-
},
|
332 |
-
"dist": {
|
333 |
-
"type": "zip",
|
334 |
-
"url": "https://api.github.com/repos/mockery/mockery/zipball/f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
|
335 |
-
"reference": "f69bbde7d7a75d6b2862d9ca8fab1cd28014b4be",
|
336 |
-
"shasum": ""
|
337 |
-
},
|
338 |
-
"require": {
|
339 |
-
"hamcrest/hamcrest-php": "~2.0",
|
340 |
-
"lib-pcre": ">=7.0",
|
341 |
-
"php": ">=5.6.0"
|
342 |
-
},
|
343 |
-
"require-dev": {
|
344 |
-
"phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0"
|
345 |
-
},
|
346 |
-
"type": "library",
|
347 |
-
"extra": {
|
348 |
-
"branch-alias": {
|
349 |
-
"dev-master": "1.3.x-dev"
|
350 |
-
}
|
351 |
-
},
|
352 |
-
"autoload": {
|
353 |
-
"psr-0": {
|
354 |
-
"Mockery": "library/"
|
355 |
-
}
|
356 |
-
},
|
357 |
-
"notification-url": "https://packagist.org/downloads/",
|
358 |
-
"license": [
|
359 |
-
"BSD-3-Clause"
|
360 |
-
],
|
361 |
-
"authors": [
|
362 |
-
{
|
363 |
-
"name": "Pádraic Brady",
|
364 |
-
"email": "padraic.brady@gmail.com",
|
365 |
-
"homepage": "http://blog.astrumfutura.com"
|
366 |
-
},
|
367 |
-
{
|
368 |
-
"name": "Dave Marshall",
|
369 |
-
"email": "dave.marshall@atstsolutions.co.uk",
|
370 |
-
"homepage": "http://davedevelopment.co.uk"
|
371 |
-
}
|
372 |
-
],
|
373 |
-
"description": "Mockery is a simple yet flexible PHP mock object framework",
|
374 |
-
"homepage": "https://github.com/mockery/mockery",
|
375 |
-
"keywords": [
|
376 |
-
"BDD",
|
377 |
-
"TDD",
|
378 |
-
"library",
|
379 |
-
"mock",
|
380 |
-
"mock objects",
|
381 |
-
"mockery",
|
382 |
-
"stub",
|
383 |
-
"test",
|
384 |
-
"test double",
|
385 |
-
"testing"
|
386 |
-
],
|
387 |
-
"time": "2019-12-26T09:49:15+00:00"
|
388 |
-
},
|
389 |
-
{
|
390 |
-
"name": "myclabs/deep-copy",
|
391 |
-
"version": "1.9.5",
|
392 |
-
"source": {
|
393 |
-
"type": "git",
|
394 |
-
"url": "https://github.com/myclabs/DeepCopy.git",
|
395 |
-
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef"
|
396 |
-
},
|
397 |
-
"dist": {
|
398 |
-
"type": "zip",
|
399 |
-
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef",
|
400 |
-
"reference": "b2c28789e80a97badd14145fda39b545d83ca3ef",
|
401 |
-
"shasum": ""
|
402 |
-
},
|
403 |
-
"require": {
|
404 |
-
"php": "^7.1"
|
405 |
-
},
|
406 |
-
"replace": {
|
407 |
-
"myclabs/deep-copy": "self.version"
|
408 |
-
},
|
409 |
-
"require-dev": {
|
410 |
-
"doctrine/collections": "^1.0",
|
411 |
-
"doctrine/common": "^2.6",
|
412 |
-
"phpunit/phpunit": "^7.1"
|
413 |
-
},
|
414 |
-
"type": "library",
|
415 |
-
"autoload": {
|
416 |
-
"psr-4": {
|
417 |
-
"DeepCopy\\": "src/DeepCopy/"
|
418 |
-
},
|
419 |
-
"files": [
|
420 |
-
"src/DeepCopy/deep_copy.php"
|
421 |
-
]
|
422 |
-
},
|
423 |
-
"notification-url": "https://packagist.org/downloads/",
|
424 |
-
"license": [
|
425 |
-
"MIT"
|
426 |
-
],
|
427 |
-
"description": "Create deep copies (clones) of your objects",
|
428 |
-
"keywords": [
|
429 |
-
"clone",
|
430 |
-
"copy",
|
431 |
-
"duplicate",
|
432 |
-
"object",
|
433 |
-
"object graph"
|
434 |
-
],
|
435 |
-
"time": "2020-01-17T21:11:47+00:00"
|
436 |
-
},
|
437 |
-
{
|
438 |
-
"name": "phar-io/manifest",
|
439 |
-
"version": "1.0.1",
|
440 |
-
"source": {
|
441 |
-
"type": "git",
|
442 |
-
"url": "https://github.com/phar-io/manifest.git",
|
443 |
-
"reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0"
|
444 |
-
},
|
445 |
-
"dist": {
|
446 |
-
"type": "zip",
|
447 |
-
"url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0",
|
448 |
-
"reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0",
|
449 |
-
"shasum": ""
|
450 |
-
},
|
451 |
-
"require": {
|
452 |
-
"ext-dom": "*",
|
453 |
-
"ext-phar": "*",
|
454 |
-
"phar-io/version": "^1.0.1",
|
455 |
-
"php": "^5.6 || ^7.0"
|
456 |
-
},
|
457 |
-
"type": "library",
|
458 |
-
"extra": {
|
459 |
-
"branch-alias": {
|
460 |
-
"dev-master": "1.0.x-dev"
|
461 |
-
}
|
462 |
-
},
|
463 |
-
"autoload": {
|
464 |
-
"classmap": [
|
465 |
-
"src/"
|
466 |
-
]
|
467 |
-
},
|
468 |
-
"notification-url": "https://packagist.org/downloads/",
|
469 |
-
"license": [
|
470 |
-
"BSD-3-Clause"
|
471 |
-
],
|
472 |
-
"authors": [
|
473 |
-
{
|
474 |
-
"name": "Arne Blankerts",
|
475 |
-
"email": "arne@blankerts.de",
|
476 |
-
"role": "Developer"
|
477 |
-
},
|
478 |
-
{
|
479 |
-
"name": "Sebastian Heuer",
|
480 |
-
"email": "sebastian@phpeople.de",
|
481 |
-
"role": "Developer"
|
482 |
-
},
|
483 |
-
{
|
484 |
-
"name": "Sebastian Bergmann",
|
485 |
-
"email": "sebastian@phpunit.de",
|
486 |
-
"role": "Developer"
|
487 |
-
}
|
488 |
-
],
|
489 |
-
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
|
490 |
-
"time": "2017-03-05T18:14:27+00:00"
|
491 |
-
},
|
492 |
-
{
|
493 |
-
"name": "phar-io/version",
|
494 |
-
"version": "1.0.1",
|
495 |
-
"source": {
|
496 |
-
"type": "git",
|
497 |
-
"url": "https://github.com/phar-io/version.git",
|
498 |
-
"reference": "a70c0ced4be299a63d32fa96d9281d03e94041df"
|
499 |
-
},
|
500 |
-
"dist": {
|
501 |
-
"type": "zip",
|
502 |
-
"url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df",
|
503 |
-
"reference": "a70c0ced4be299a63d32fa96d9281d03e94041df",
|
504 |
-
"shasum": ""
|
505 |
-
},
|
506 |
-
"require": {
|
507 |
-
"php": "^5.6 || ^7.0"
|
508 |
-
},
|
509 |
-
"type": "library",
|
510 |
-
"autoload": {
|
511 |
-
"classmap": [
|
512 |
-
"src/"
|
513 |
-
]
|
514 |
-
},
|
515 |
-
"notification-url": "https://packagist.org/downloads/",
|
516 |
-
"license": [
|
517 |
-
"BSD-3-Clause"
|
518 |
-
],
|
519 |
-
"authors": [
|
520 |
-
{
|
521 |
-
"name": "Arne Blankerts",
|
522 |
-
"email": "arne@blankerts.de",
|
523 |
-
"role": "Developer"
|
524 |
-
},
|
525 |
-
{
|
526 |
-
"name": "Sebastian Heuer",
|
527 |
-
"email": "sebastian@phpeople.de",
|
528 |
-
"role": "Developer"
|
529 |
-
},
|
530 |
-
{
|
531 |
-
"name": "Sebastian Bergmann",
|
532 |
-
"email": "sebastian@phpunit.de",
|
533 |
-
"role": "Developer"
|
534 |
-
}
|
535 |
-
],
|
536 |
-
"description": "Library for handling version information and constraints",
|
537 |
-
"time": "2017-03-05T17:38:23+00:00"
|
538 |
-
},
|
539 |
-
{
|
540 |
-
"name": "phing/phing",
|
541 |
-
"version": "3.0.0-alpha1",
|
542 |
-
"source": {
|
543 |
-
"type": "git",
|
544 |
-
"url": "https://github.com/phingofficial/phing.git",
|
545 |
-
"reference": "2419a2a73df176cd5120661a517041f4d5094df0"
|
546 |
-
},
|
547 |
-
"dist": {
|
548 |
-
"type": "zip",
|
549 |
-
"url": "https://api.github.com/repos/phingofficial/phing/zipball/2419a2a73df176cd5120661a517041f4d5094df0",
|
550 |
-
"reference": "2419a2a73df176cd5120661a517041f4d5094df0",
|
551 |
-
"shasum": ""
|
552 |
-
},
|
553 |
-
"require": {
|
554 |
-
"mehr-als-nix/parallel": "^v1.0",
|
555 |
-
"php": ">=7.1",
|
556 |
-
"sebastian/version": "^2.0",
|
557 |
-
"symfony/console": "^2.8 || ^3.0 || ^4.0",
|
558 |
-
"symfony/yaml": "^2.8 || ^3.1 || ^4.0"
|
559 |
-
},
|
560 |
-
"require-dev": {
|
561 |
-
"aws/aws-sdk-php": "^3.32",
|
562 |
-
"ext-pdo_sqlite": "*",
|
563 |
-
"mikey179/vfsstream": "^1.6",
|
564 |
-
"pdepend/pdepend": "2.x",
|
565 |
-
"pear/archive_tar": "1.4.x",
|
566 |
-
"pear/http_request2": "dev-trunk",
|
567 |
-
"pear/net_growl": "dev-trunk",
|
568 |
-
"pear/pear-core-minimal": "1.10.3",
|
569 |
-
"pear/versioncontrol_git": "@dev",
|
570 |
-
"pear/versioncontrol_svn": "~0.5",
|
571 |
-
"phpdocumentor/phpdocumentor": "2.x",
|
572 |
-
"phploc/phploc": "^4.0",
|
573 |
-
"phpmd/phpmd": "~2.2",
|
574 |
-
"phpunit/phpunit": "^6.5",
|
575 |
-
"sebastian/phpcpd": "^3.0",
|
576 |
-
"siad007/versioncontrol_hg": "^1.0",
|
577 |
-
"squizlabs/php_codesniffer": "~2.2"
|
578 |
-
},
|
579 |
-
"suggest": {
|
580 |
-
"aws/aws-sdk-php": "AWS SDK used by S3*Tasks",
|
581 |
-
"pdepend/pdepend": "PHP version of JDepend",
|
582 |
-
"pear/archive_tar": "Tar file management class",
|
583 |
-
"pear/versioncontrol_git": "A library that provides OO interface to handle Git repository",
|
584 |
-
"pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system",
|
585 |
-
"phpdocumentor/phpdocumentor": "Documentation Generator for PHP",
|
586 |
-
"phploc/phploc": "A tool for quickly measuring the size of a PHP project",
|
587 |
-
"phpmd/phpmd": "PHP version of PMD tool",
|
588 |
-
"phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information",
|
589 |
-
"phpunit/phpunit": "The PHP Unit Testing Framework",
|
590 |
-
"sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code",
|
591 |
-
"siad007/versioncontrol_hg": "A library for interfacing with Mercurial repositories.",
|
592 |
-
"symfony/stopwatch": "Needed by the StopwatchTask",
|
593 |
-
"tedivm/jshrink": "Javascript Minifier built in PHP"
|
594 |
-
},
|
595 |
-
"bin": [
|
596 |
-
"bin/phing"
|
597 |
-
],
|
598 |
-
"type": "library",
|
599 |
-
"extra": {
|
600 |
-
"branch-alias": {
|
601 |
-
"dev-master": "3.0.x-dev"
|
602 |
-
}
|
603 |
-
},
|
604 |
-
"autoload": {
|
605 |
-
"classmap": [
|
606 |
-
"classes/phing/"
|
607 |
-
]
|
608 |
-
},
|
609 |
-
"notification-url": "https://packagist.org/downloads/",
|
610 |
-
"include-path": [
|
611 |
-
"classes"
|
612 |
-
],
|
613 |
-
"license": [
|
614 |
-
"LGPL-3.0-only"
|
615 |
-
],
|
616 |
-
"authors": [
|
617 |
-
{
|
618 |
-
"name": "Michiel Rook",
|
619 |
-
"email": "mrook@php.net"
|
620 |
-
},
|
621 |
-
{
|
622 |
-
"name": "Phing Community",
|
623 |
-
"homepage": "https://github.com/phingofficial/phing/blob/master/CREDITS.md"
|
624 |
-
}
|
625 |
-
],
|
626 |
-
"description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.",
|
627 |
-
"homepage": "https://www.phing.info/",
|
628 |
-
"keywords": [
|
629 |
-
"build",
|
630 |
-
"phing",
|
631 |
-
"task",
|
632 |
-
"tool"
|
633 |
-
],
|
634 |
-
"time": "2018-03-23T09:07:02+00:00"
|
635 |
-
},
|
636 |
-
{
|
637 |
-
"name": "phpdocumentor/reflection-common",
|
638 |
-
"version": "2.0.0",
|
639 |
-
"source": {
|
640 |
-
"type": "git",
|
641 |
-
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
|
642 |
-
"reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a"
|
643 |
-
},
|
644 |
-
"dist": {
|
645 |
-
"type": "zip",
|
646 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a",
|
647 |
-
"reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a",
|
648 |
-
"shasum": ""
|
649 |
-
},
|
650 |
-
"require": {
|
651 |
-
"php": ">=7.1"
|
652 |
-
},
|
653 |
-
"require-dev": {
|
654 |
-
"phpunit/phpunit": "~6"
|
655 |
-
},
|
656 |
-
"type": "library",
|
657 |
-
"extra": {
|
658 |
-
"branch-alias": {
|
659 |
-
"dev-master": "2.x-dev"
|
660 |
-
}
|
661 |
-
},
|
662 |
-
"autoload": {
|
663 |
-
"psr-4": {
|
664 |
-
"phpDocumentor\\Reflection\\": "src/"
|
665 |
-
}
|
666 |
-
},
|
667 |
-
"notification-url": "https://packagist.org/downloads/",
|
668 |
-
"license": [
|
669 |
-
"MIT"
|
670 |
-
],
|
671 |
-
"authors": [
|
672 |
-
{
|
673 |
-
"name": "Jaap van Otterdijk",
|
674 |
-
"email": "opensource@ijaap.nl"
|
675 |
-
}
|
676 |
-
],
|
677 |
-
"description": "Common reflection classes used by phpdocumentor to reflect the code structure",
|
678 |
-
"homepage": "http://www.phpdoc.org",
|
679 |
-
"keywords": [
|
680 |
-
"FQSEN",
|
681 |
-
"phpDocumentor",
|
682 |
-
"phpdoc",
|
683 |
-
"reflection",
|
684 |
-
"static analysis"
|
685 |
-
],
|
686 |
-
"time": "2018-08-07T13:53:10+00:00"
|
687 |
-
},
|
688 |
-
{
|
689 |
-
"name": "phpdocumentor/reflection-docblock",
|
690 |
-
"version": "5.0.0",
|
691 |
-
"source": {
|
692 |
-
"type": "git",
|
693 |
-
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
694 |
-
"reference": "a48807183a4b819072f26e347bbd0b5199a9d15f"
|
695 |
-
},
|
696 |
-
"dist": {
|
697 |
-
"type": "zip",
|
698 |
-
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/a48807183a4b819072f26e347bbd0b5199a9d15f",
|
699 |
-
"reference": "a48807183a4b819072f26e347bbd0b5199a9d15f",
|
700 |
-
"shasum": ""
|
701 |
-
},
|
702 |
-
"require": {
|
703 |
-
"ext-filter": "^7.1",
|
704 |
-
"php": "^7.2",
|
705 |
-
"phpdocumentor/reflection-common": "^2.0",
|
706 |
-
"phpdocumentor/type-resolver": "^1.0",
|
707 |
-
"webmozart/assert": "^1"
|
708 |
-
},
|
709 |
-
"require-dev": {
|
710 |
-
"doctrine/instantiator": "^1",
|
711 |
-
"mockery/mockery": "^1"
|
712 |
-
},
|
713 |
-
"type": "library",
|
714 |
-
"extra": {
|
715 |
-
"branch-alias": {
|
716 |
-
"dev-master": "5.x-dev"
|
717 |
-
}
|
718 |
-
},
|
719 |
-
"autoload": {
|
720 |
-
"psr-4": {
|
721 |
-
"phpDocumentor\\Reflection\\": "src"
|
722 |
-
}
|
723 |
-
},
|
724 |
-
"notification-url": "https://packagist.org/downloads/",
|
725 |
-
"license": [
|
726 |
-
"MIT"
|
727 |
-
],
|
728 |
-
"authors": [
|
729 |
-
{
|
730 |
-
"name": "Mike van Riel",
|
731 |
-
"email": "me@mikevanriel.com"
|
732 |
-
},
|
733 |
-
{
|
734 |
-
"name": "Jaap van Otterdijk",
|
735 |
-
"email": "account@ijaap.nl"
|
736 |
-
}
|
737 |
-
],
|
738 |
-
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
739 |
-
"time": "2020-02-09T09:16:15+00:00"
|
740 |
-
},
|
741 |
-
{
|
742 |
-
"name": "phpdocumentor/type-resolver",
|
743 |
-
"version": "1.0.1",
|
744 |
-
"source": {
|
745 |
-
"type": "git",
|
746 |
-
"url": "https://github.com/phpDocumentor/TypeResolver.git",
|
747 |
-
"reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9"
|
748 |
-
},
|
749 |
-
"dist": {
|
750 |
-
"type": "zip",
|
751 |
-
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
|
752 |
-
"reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
|
753 |
-
"shasum": ""
|
754 |
-
},
|
755 |
-
"require": {
|
756 |
-
"php": "^7.1",
|
757 |
-
"phpdocumentor/reflection-common": "^2.0"
|
758 |
-
},
|
759 |
-
"require-dev": {
|
760 |
-
"ext-tokenizer": "^7.1",
|
761 |
-
"mockery/mockery": "~1",
|
762 |
-
"phpunit/phpunit": "^7.0"
|
763 |
-
},
|
764 |
-
"type": "library",
|
765 |
-
"extra": {
|
766 |
-
"branch-alias": {
|
767 |
-
"dev-master": "1.x-dev"
|
768 |
-
}
|
769 |
-
},
|
770 |
-
"autoload": {
|
771 |
-
"psr-4": {
|
772 |
-
"phpDocumentor\\Reflection\\": "src"
|
773 |
-
}
|
774 |
-
},
|
775 |
-
"notification-url": "https://packagist.org/downloads/",
|
776 |
-
"license": [
|
777 |
-
"MIT"
|
778 |
-
],
|
779 |
-
"authors": [
|
780 |
-
{
|
781 |
-
"name": "Mike van Riel",
|
782 |
-
"email": "me@mikevanriel.com"
|
783 |
-
}
|
784 |
-
],
|
785 |
-
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
|
786 |
-
"time": "2019-08-22T18:11:29+00:00"
|
787 |
-
},
|
788 |
-
{
|
789 |
-
"name": "phpspec/prophecy",
|
790 |
-
"version": "v1.10.2",
|
791 |
-
"source": {
|
792 |
-
"type": "git",
|
793 |
-
"url": "https://github.com/phpspec/prophecy.git",
|
794 |
-
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9"
|
795 |
-
},
|
796 |
-
"dist": {
|
797 |
-
"type": "zip",
|
798 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
799 |
-
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
800 |
-
"shasum": ""
|
801 |
-
},
|
802 |
-
"require": {
|
803 |
-
"doctrine/instantiator": "^1.0.2",
|
804 |
-
"php": "^5.3|^7.0",
|
805 |
-
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
806 |
-
"sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
|
807 |
-
"sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
|
808 |
-
},
|
809 |
-
"require-dev": {
|
810 |
-
"phpspec/phpspec": "^2.5 || ^3.2",
|
811 |
-
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
812 |
-
},
|
813 |
-
"type": "library",
|
814 |
-
"extra": {
|
815 |
-
"branch-alias": {
|
816 |
-
"dev-master": "1.10.x-dev"
|
817 |
-
}
|
818 |
-
},
|
819 |
-
"autoload": {
|
820 |
-
"psr-4": {
|
821 |
-
"Prophecy\\": "src/Prophecy"
|
822 |
-
}
|
823 |
-
},
|
824 |
-
"notification-url": "https://packagist.org/downloads/",
|
825 |
-
"license": [
|
826 |
-
"MIT"
|
827 |
-
],
|
828 |
-
"authors": [
|
829 |
-
{
|
830 |
-
"name": "Konstantin Kudryashov",
|
831 |
-
"email": "ever.zet@gmail.com",
|
832 |
-
"homepage": "http://everzet.com"
|
833 |
-
},
|
834 |
-
{
|
835 |
-
"name": "Marcello Duarte",
|
836 |
-
"email": "marcello.duarte@gmail.com"
|
837 |
-
}
|
838 |
-
],
|
839 |
-
"description": "Highly opinionated mocking framework for PHP 5.3+",
|
840 |
-
"homepage": "https://github.com/phpspec/prophecy",
|
841 |
-
"keywords": [
|
842 |
-
"Double",
|
843 |
-
"Dummy",
|
844 |
-
"fake",
|
845 |
-
"mock",
|
846 |
-
"spy",
|
847 |
-
"stub"
|
848 |
-
],
|
849 |
-
"time": "2020-01-20T15:57:02+00:00"
|
850 |
-
},
|
851 |
-
{
|
852 |
-
"name": "phpunit/php-code-coverage",
|
853 |
-
"version": "5.3.2",
|
854 |
-
"source": {
|
855 |
-
"type": "git",
|
856 |
-
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
857 |
-
"reference": "c89677919c5dd6d3b3852f230a663118762218ac"
|
858 |
-
},
|
859 |
-
"dist": {
|
860 |
-
"type": "zip",
|
861 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac",
|
862 |
-
"reference": "c89677919c5dd6d3b3852f230a663118762218ac",
|
863 |
-
"shasum": ""
|
864 |
-
},
|
865 |
-
"require": {
|
866 |
-
"ext-dom": "*",
|
867 |
-
"ext-xmlwriter": "*",
|
868 |
-
"php": "^7.0",
|
869 |
-
"phpunit/php-file-iterator": "^1.4.2",
|
870 |
-
"phpunit/php-text-template": "^1.2.1",
|
871 |
-
"phpunit/php-token-stream": "^2.0.1",
|
872 |
-
"sebastian/code-unit-reverse-lookup": "^1.0.1",
|
873 |
-
"sebastian/environment": "^3.0",
|
874 |
-
"sebastian/version": "^2.0.1",
|
875 |
-
"theseer/tokenizer": "^1.1"
|
876 |
-
},
|
877 |
-
"require-dev": {
|
878 |
-
"phpunit/phpunit": "^6.0"
|
879 |
-
},
|
880 |
-
"suggest": {
|
881 |
-
"ext-xdebug": "^2.5.5"
|
882 |
-
},
|
883 |
-
"type": "library",
|
884 |
-
"extra": {
|
885 |
-
"branch-alias": {
|
886 |
-
"dev-master": "5.3.x-dev"
|
887 |
-
}
|
888 |
-
},
|
889 |
-
"autoload": {
|
890 |
-
"classmap": [
|
891 |
-
"src/"
|
892 |
-
]
|
893 |
-
},
|
894 |
-
"notification-url": "https://packagist.org/downloads/",
|
895 |
-
"license": [
|
896 |
-
"BSD-3-Clause"
|
897 |
-
],
|
898 |
-
"authors": [
|
899 |
-
{
|
900 |
-
"name": "Sebastian Bergmann",
|
901 |
-
"email": "sebastian@phpunit.de",
|
902 |
-
"role": "lead"
|
903 |
-
}
|
904 |
-
],
|
905 |
-
"description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
|
906 |
-
"homepage": "https://github.com/sebastianbergmann/php-code-coverage",
|
907 |
-
"keywords": [
|
908 |
-
"coverage",
|
909 |
-
"testing",
|
910 |
-
"xunit"
|
911 |
-
],
|
912 |
-
"time": "2018-04-06T15:36:58+00:00"
|
913 |
-
},
|
914 |
-
{
|
915 |
-
"name": "phpunit/php-file-iterator",
|
916 |
-
"version": "1.4.5",
|
917 |
-
"source": {
|
918 |
-
"type": "git",
|
919 |
-
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
|
920 |
-
"reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
|
921 |
-
},
|
922 |
-
"dist": {
|
923 |
-
"type": "zip",
|
924 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
|
925 |
-
"reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
|
926 |
-
"shasum": ""
|
927 |
-
},
|
928 |
-
"require": {
|
929 |
-
"php": ">=5.3.3"
|
930 |
-
},
|
931 |
-
"type": "library",
|
932 |
-
"extra": {
|
933 |
-
"branch-alias": {
|
934 |
-
"dev-master": "1.4.x-dev"
|
935 |
-
}
|
936 |
-
},
|
937 |
-
"autoload": {
|
938 |
-
"classmap": [
|
939 |
-
"src/"
|
940 |
-
]
|
941 |
-
},
|
942 |
-
"notification-url": "https://packagist.org/downloads/",
|
943 |
-
"license": [
|
944 |
-
"BSD-3-Clause"
|
945 |
-
],
|
946 |
-
"authors": [
|
947 |
-
{
|
948 |
-
"name": "Sebastian Bergmann",
|
949 |
-
"email": "sb@sebastian-bergmann.de",
|
950 |
-
"role": "lead"
|
951 |
-
}
|
952 |
-
],
|
953 |
-
"description": "FilterIterator implementation that filters files based on a list of suffixes.",
|
954 |
-
"homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
|
955 |
-
"keywords": [
|
956 |
-
"filesystem",
|
957 |
-
"iterator"
|
958 |
-
],
|
959 |
-
"time": "2017-11-27T13:52:08+00:00"
|
960 |
-
},
|
961 |
-
{
|
962 |
-
"name": "phpunit/php-text-template",
|
963 |
-
"version": "1.2.1",
|
964 |
-
"source": {
|
965 |
-
"type": "git",
|
966 |
-
"url": "https://github.com/sebastianbergmann/php-text-template.git",
|
967 |
-
"reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
|
968 |
-
},
|
969 |
-
"dist": {
|
970 |
-
"type": "zip",
|
971 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
|
972 |
-
"reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
|
973 |
-
"shasum": ""
|
974 |
-
},
|
975 |
-
"require": {
|
976 |
-
"php": ">=5.3.3"
|
977 |
-
},
|
978 |
-
"type": "library",
|
979 |
-
"autoload": {
|
980 |
-
"classmap": [
|
981 |
-
"src/"
|
982 |
-
]
|
983 |
-
},
|
984 |
-
"notification-url": "https://packagist.org/downloads/",
|
985 |
-
"license": [
|
986 |
-
"BSD-3-Clause"
|
987 |
-
],
|
988 |
-
"authors": [
|
989 |
-
{
|
990 |
-
"name": "Sebastian Bergmann",
|
991 |
-
"email": "sebastian@phpunit.de",
|
992 |
-
"role": "lead"
|
993 |
-
}
|
994 |
-
],
|
995 |
-
"description": "Simple template engine.",
|
996 |
-
"homepage": "https://github.com/sebastianbergmann/php-text-template/",
|
997 |
-
"keywords": [
|
998 |
-
"template"
|
999 |
-
],
|
1000 |
-
"time": "2015-06-21T13:50:34+00:00"
|
1001 |
-
},
|
1002 |
-
{
|
1003 |
-
"name": "phpunit/php-timer",
|
1004 |
-
"version": "1.0.9",
|
1005 |
-
"source": {
|
1006 |
-
"type": "git",
|
1007 |
-
"url": "https://github.com/sebastianbergmann/php-timer.git",
|
1008 |
-
"reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
|
1009 |
-
},
|
1010 |
-
"dist": {
|
1011 |
-
"type": "zip",
|
1012 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
|
1013 |
-
"reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
|
1014 |
-
"shasum": ""
|
1015 |
-
},
|
1016 |
-
"require": {
|
1017 |
-
"php": "^5.3.3 || ^7.0"
|
1018 |
-
},
|
1019 |
-
"require-dev": {
|
1020 |
-
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
|
1021 |
-
},
|
1022 |
-
"type": "library",
|
1023 |
-
"extra": {
|
1024 |
-
"branch-alias": {
|
1025 |
-
"dev-master": "1.0-dev"
|
1026 |
-
}
|
1027 |
-
},
|
1028 |
-
"autoload": {
|
1029 |
-
"classmap": [
|
1030 |
-
"src/"
|
1031 |
-
]
|
1032 |
-
},
|
1033 |
-
"notification-url": "https://packagist.org/downloads/",
|
1034 |
-
"license": [
|
1035 |
-
"BSD-3-Clause"
|
1036 |
-
],
|
1037 |
-
"authors": [
|
1038 |
-
{
|
1039 |
-
"name": "Sebastian Bergmann",
|
1040 |
-
"email": "sb@sebastian-bergmann.de",
|
1041 |
-
"role": "lead"
|
1042 |
-
}
|
1043 |
-
],
|
1044 |
-
"description": "Utility class for timing",
|
1045 |
-
"homepage": "https://github.com/sebastianbergmann/php-timer/",
|
1046 |
-
"keywords": [
|
1047 |
-
"timer"
|
1048 |
-
],
|
1049 |
-
"time": "2017-02-26T11:10:40+00:00"
|
1050 |
-
},
|
1051 |
-
{
|
1052 |
-
"name": "phpunit/php-token-stream",
|
1053 |
-
"version": "2.0.2",
|
1054 |
-
"source": {
|
1055 |
-
"type": "git",
|
1056 |
-
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
|
1057 |
-
"reference": "791198a2c6254db10131eecfe8c06670700904db"
|
1058 |
-
},
|
1059 |
-
"dist": {
|
1060 |
-
"type": "zip",
|
1061 |
-
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db",
|
1062 |
-
"reference": "791198a2c6254db10131eecfe8c06670700904db",
|
1063 |
-
"shasum": ""
|
1064 |
-
},
|
1065 |
-
"require": {
|
1066 |
-
"ext-tokenizer": "*",
|
1067 |
-
"php": "^7.0"
|
1068 |
-
},
|
1069 |
-
"require-dev": {
|
1070 |
-
"phpunit/phpunit": "^6.2.4"
|
1071 |
-
},
|
1072 |
-
"type": "library",
|
1073 |
-
"extra": {
|
1074 |
-
"branch-alias": {
|
1075 |
-
"dev-master": "2.0-dev"
|
1076 |
-
}
|
1077 |
-
},
|
1078 |
-
"autoload": {
|
1079 |
-
"classmap": [
|
1080 |
-
"src/"
|
1081 |
-
]
|
1082 |
-
},
|
1083 |
-
"notification-url": "https://packagist.org/downloads/",
|
1084 |
-
"license": [
|
1085 |
-
"BSD-3-Clause"
|
1086 |
-
],
|
1087 |
-
"authors": [
|
1088 |
-
{
|
1089 |
-
"name": "Sebastian Bergmann",
|
1090 |
-
"email": "sebastian@phpunit.de"
|
1091 |
-
}
|
1092 |
-
],
|
1093 |
-
"description": "Wrapper around PHP's tokenizer extension.",
|
1094 |
-
"homepage": "https://github.com/sebastianbergmann/php-token-stream/",
|
1095 |
-
"keywords": [
|
1096 |
-
"tokenizer"
|
1097 |
-
],
|
1098 |
-
"time": "2017-11-27T05:48:46+00:00"
|
1099 |
-
},
|
1100 |
-
{
|
1101 |
-
"name": "phpunit/phpunit",
|
1102 |
-
"version": "6.5.14",
|
1103 |
-
"source": {
|
1104 |
-
"type": "git",
|
1105 |
-
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
1106 |
-
"reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7"
|
1107 |
-
},
|
1108 |
-
"dist": {
|
1109 |
-
"type": "zip",
|
1110 |
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bac23fe7ff13dbdb461481f706f0e9fe746334b7",
|
1111 |
-
"reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7",
|
1112 |
-
"shasum": ""
|
1113 |
-
},
|
1114 |
-
"require": {
|
1115 |
-
"ext-dom": "*",
|
1116 |
-
"ext-json": "*",
|
1117 |
-
"ext-libxml": "*",
|
1118 |
-
"ext-mbstring": "*",
|
1119 |
-
"ext-xml": "*",
|
1120 |
-
"myclabs/deep-copy": "^1.6.1",
|
1121 |
-
"phar-io/manifest": "^1.0.1",
|
1122 |
-
"phar-io/version": "^1.0",
|
1123 |
-
"php": "^7.0",
|
1124 |
-
"phpspec/prophecy": "^1.7",
|
1125 |
-
"phpunit/php-code-coverage": "^5.3",
|
1126 |
-
"phpunit/php-file-iterator": "^1.4.3",
|
1127 |
-
"phpunit/php-text-template": "^1.2.1",
|
1128 |
-
"phpunit/php-timer": "^1.0.9",
|
1129 |
-
"phpunit/phpunit-mock-objects": "^5.0.9",
|
1130 |
-
"sebastian/comparator": "^2.1",
|
1131 |
-
"sebastian/diff": "^2.0",
|
1132 |
-
"sebastian/environment": "^3.1",
|
1133 |
-
"sebastian/exporter": "^3.1",
|
1134 |
-
"sebastian/global-state": "^2.0",
|
1135 |
-
"sebastian/object-enumerator": "^3.0.3",
|
1136 |
-
"sebastian/resource-operations": "^1.0",
|
1137 |
-
"sebastian/version": "^2.0.1"
|
1138 |
-
},
|
1139 |
-
"conflict": {
|
1140 |
-
"phpdocumentor/reflection-docblock": "3.0.2",
|
1141 |
-
"phpunit/dbunit": "<3.0"
|
1142 |
-
},
|
1143 |
-
"require-dev": {
|
1144 |
-
"ext-pdo": "*"
|
1145 |
-
},
|
1146 |
-
"suggest": {
|
1147 |
-
"ext-xdebug": "*",
|
1148 |
-
"phpunit/php-invoker": "^1.1"
|
1149 |
-
},
|
1150 |
-
"bin": [
|
1151 |
-
"phpunit"
|
1152 |
-
],
|
1153 |
-
"type": "library",
|
1154 |
-
"extra": {
|
1155 |
-
"branch-alias": {
|
1156 |
-
"dev-master": "6.5.x-dev"
|
1157 |
-
}
|
1158 |
-
},
|
1159 |
-
"autoload": {
|
1160 |
-
"classmap": [
|
1161 |
-
"src/"
|
1162 |
-
]
|
1163 |
-
},
|
1164 |
-
"notification-url": "https://packagist.org/downloads/",
|
1165 |
-
"license": [
|
1166 |
-
"BSD-3-Clause"
|
1167 |
-
],
|
1168 |
-
"authors": [
|
1169 |
-
{
|
1170 |
-
"name": "Sebastian Bergmann",
|
1171 |
-
"email": "sebastian@phpunit.de",
|
1172 |
-
"role": "lead"
|
1173 |
-
}
|
1174 |
-
],
|
1175 |
-
"description": "The PHP Unit Testing framework.",
|
1176 |
-
"homepage": "https://phpunit.de/",
|
1177 |
-
"keywords": [
|
1178 |
-
"phpunit",
|
1179 |
-
"testing",
|
1180 |
-
"xunit"
|
1181 |
-
],
|
1182 |
-
"time": "2019-02-01T05:22:47+00:00"
|
1183 |
-
},
|
1184 |
-
{
|
1185 |
-
"name": "phpunit/phpunit-mock-objects",
|
1186 |
-
"version": "5.0.10",
|
1187 |
-
"source": {
|
1188 |
-
"type": "git",
|
1189 |
-
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
1190 |
-
"reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f"
|
1191 |
-
},
|
1192 |
-
"dist": {
|
1193 |
-
"type": "zip",
|
1194 |
-
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f",
|
1195 |
-
"reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f",
|
1196 |
-
"shasum": ""
|
1197 |
-
},
|
1198 |
-
"require": {
|
1199 |
-
"doctrine/instantiator": "^1.0.5",
|
1200 |
-
"php": "^7.0",
|
1201 |
-
"phpunit/php-text-template": "^1.2.1",
|
1202 |
-
"sebastian/exporter": "^3.1"
|
1203 |
-
},
|
1204 |
-
"conflict": {
|
1205 |
-
"phpunit/phpunit": "<6.0"
|
1206 |
-
},
|
1207 |
-
"require-dev": {
|
1208 |
-
"phpunit/phpunit": "^6.5.11"
|
1209 |
-
},
|
1210 |
-
"suggest": {
|
1211 |
-
"ext-soap": "*"
|
1212 |
-
},
|
1213 |
-
"type": "library",
|
1214 |
-
"extra": {
|
1215 |
-
"branch-alias": {
|
1216 |
-
"dev-master": "5.0.x-dev"
|
1217 |
-
}
|
1218 |
-
},
|
1219 |
-
"autoload": {
|
1220 |
-
"classmap": [
|
1221 |
-
"src/"
|
1222 |
-
]
|
1223 |
-
},
|
1224 |
-
"notification-url": "https://packagist.org/downloads/",
|
1225 |
-
"license": [
|
1226 |
-
"BSD-3-Clause"
|
1227 |
-
],
|
1228 |
-
"authors": [
|
1229 |
-
{
|
1230 |
-
"name": "Sebastian Bergmann",
|
1231 |
-
"email": "sebastian@phpunit.de",
|
1232 |
-
"role": "lead"
|
1233 |
-
}
|
1234 |
-
],
|
1235 |
-
"description": "Mock Object library for PHPUnit",
|
1236 |
-
"homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
|
1237 |
-
"keywords": [
|
1238 |
-
"mock",
|
1239 |
-
"xunit"
|
1240 |
-
],
|
1241 |
-
"abandoned": true,
|
1242 |
-
"time": "2018-08-09T05:50:03+00:00"
|
1243 |
-
},
|
1244 |
-
{
|
1245 |
-
"name": "psr/container",
|
1246 |
-
"version": "1.0.0",
|
1247 |
-
"source": {
|
1248 |
-
"type": "git",
|
1249 |
-
"url": "https://github.com/php-fig/container.git",
|
1250 |
-
"reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
|
1251 |
-
},
|
1252 |
-
"dist": {
|
1253 |
-
"type": "zip",
|
1254 |
-
"url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
1255 |
-
"reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
|
1256 |
-
"shasum": ""
|
1257 |
-
},
|
1258 |
-
"require": {
|
1259 |
-
"php": ">=5.3.0"
|
1260 |
-
},
|
1261 |
-
"type": "library",
|
1262 |
-
"extra": {
|
1263 |
-
"branch-alias": {
|
1264 |
-
"dev-master": "1.0.x-dev"
|
1265 |
-
}
|
1266 |
-
},
|
1267 |
-
"autoload": {
|
1268 |
-
"psr-4": {
|
1269 |
-
"Psr\\Container\\": "src/"
|
1270 |
-
}
|
1271 |
-
},
|
1272 |
-
"notification-url": "https://packagist.org/downloads/",
|
1273 |
-
"license": [
|
1274 |
-
"MIT"
|
1275 |
-
],
|
1276 |
-
"authors": [
|
1277 |
-
{
|
1278 |
-
"name": "PHP-FIG",
|
1279 |
-
"homepage": "http://www.php-fig.org/"
|
1280 |
-
}
|
1281 |
-
],
|
1282 |
-
"description": "Common Container Interface (PHP FIG PSR-11)",
|
1283 |
-
"homepage": "https://github.com/php-fig/container",
|
1284 |
-
"keywords": [
|
1285 |
-
"PSR-11",
|
1286 |
-
"container",
|
1287 |
-
"container-interface",
|
1288 |
-
"container-interop",
|
1289 |
-
"psr"
|
1290 |
-
],
|
1291 |
-
"time": "2017-02-14T16:28:37+00:00"
|
1292 |
-
},
|
1293 |
-
{
|
1294 |
-
"name": "sebastian/code-unit-reverse-lookup",
|
1295 |
-
"version": "1.0.1",
|
1296 |
-
"source": {
|
1297 |
-
"type": "git",
|
1298 |
-
"url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
|
1299 |
-
"reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
|
1300 |
-
},
|
1301 |
-
"dist": {
|
1302 |
-
"type": "zip",
|
1303 |
-
"url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
|
1304 |
-
"reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
|
1305 |
-
"shasum": ""
|
1306 |
-
},
|
1307 |
-
"require": {
|
1308 |
-
"php": "^5.6 || ^7.0"
|
1309 |
-
},
|
1310 |
-
"require-dev": {
|
1311 |
-
"phpunit/phpunit": "^5.7 || ^6.0"
|
1312 |
-
},
|
1313 |
-
"type": "library",
|
1314 |
-
"extra": {
|
1315 |
-
"branch-alias": {
|
1316 |
-
"dev-master": "1.0.x-dev"
|
1317 |
-
}
|
1318 |
-
},
|
1319 |
-
"autoload": {
|
1320 |
-
"classmap": [
|
1321 |
-
"src/"
|
1322 |
-
]
|
1323 |
-
},
|
1324 |
-
"notification-url": "https://packagist.org/downloads/",
|
1325 |
-
"license": [
|
1326 |
-
"BSD-3-Clause"
|
1327 |
-
],
|
1328 |
-
"authors": [
|
1329 |
-
{
|
1330 |
-
"name": "Sebastian Bergmann",
|
1331 |
-
"email": "sebastian@phpunit.de"
|
1332 |
-
}
|
1333 |
-
],
|
1334 |
-
"description": "Looks up which function or method a line of code belongs to",
|
1335 |
-
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
|
1336 |
-
"time": "2017-03-04T06:30:41+00:00"
|
1337 |
-
},
|
1338 |
-
{
|
1339 |
-
"name": "sebastian/comparator",
|
1340 |
-
"version": "2.1.3",
|
1341 |
-
"source": {
|
1342 |
-
"type": "git",
|
1343 |
-
"url": "https://github.com/sebastianbergmann/comparator.git",
|
1344 |
-
"reference": "34369daee48eafb2651bea869b4b15d75ccc35f9"
|
1345 |
-
},
|
1346 |
-
"dist": {
|
1347 |
-
"type": "zip",
|
1348 |
-
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9",
|
1349 |
-
"reference": "34369daee48eafb2651bea869b4b15d75ccc35f9",
|
1350 |
-
"shasum": ""
|
1351 |
-
},
|
1352 |
-
"require": {
|
1353 |
-
"php": "^7.0",
|
1354 |
-
"sebastian/diff": "^2.0 || ^3.0",
|
1355 |
-
"sebastian/exporter": "^3.1"
|
1356 |
-
},
|
1357 |
-
"require-dev": {
|
1358 |
-
"phpunit/phpunit": "^6.4"
|
1359 |
-
},
|
1360 |
-
"type": "library",
|
1361 |
-
"extra": {
|
1362 |
-
"branch-alias": {
|
1363 |
-
"dev-master": "2.1.x-dev"
|
1364 |
-
}
|
1365 |
-
},
|
1366 |
-
"autoload": {
|
1367 |
-
"classmap": [
|
1368 |
-
"src/"
|
1369 |
-
]
|
1370 |
-
},
|
1371 |
-
"notification-url": "https://packagist.org/downloads/",
|
1372 |
-
"license": [
|
1373 |
-
"BSD-3-Clause"
|
1374 |
-
],
|
1375 |
-
"authors": [
|
1376 |
-
{
|
1377 |
-
"name": "Jeff Welch",
|
1378 |
-
"email": "whatthejeff@gmail.com"
|
1379 |
-
},
|
1380 |
-
{
|
1381 |
-
"name": "Volker Dusch",
|
1382 |
-
"email": "github@wallbash.com"
|
1383 |
-
},
|
1384 |
-
{
|
1385 |
-
"name": "Bernhard Schussek",
|
1386 |
-
"email": "bschussek@2bepublished.at"
|
1387 |
-
},
|
1388 |
-
{
|
1389 |
-
"name": "Sebastian Bergmann",
|
1390 |
-
"email": "sebastian@phpunit.de"
|
1391 |
-
}
|
1392 |
-
],
|
1393 |
-
"description": "Provides the functionality to compare PHP values for equality",
|
1394 |
-
"homepage": "https://github.com/sebastianbergmann/comparator",
|
1395 |
-
"keywords": [
|
1396 |
-
"comparator",
|
1397 |
-
"compare",
|
1398 |
-
"equality"
|
1399 |
-
],
|
1400 |
-
"time": "2018-02-01T13:46:46+00:00"
|
1401 |
-
},
|
1402 |
-
{
|
1403 |
-
"name": "sebastian/diff",
|
1404 |
-
"version": "2.0.1",
|
1405 |
-
"source": {
|
1406 |
-
"type": "git",
|
1407 |
-
"url": "https://github.com/sebastianbergmann/diff.git",
|
1408 |
-
"reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd"
|
1409 |
-
},
|
1410 |
-
"dist": {
|
1411 |
-
"type": "zip",
|
1412 |
-
"url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
|
1413 |
-
"reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd",
|
1414 |
-
"shasum": ""
|
1415 |
-
},
|
1416 |
-
"require": {
|
1417 |
-
"php": "^7.0"
|
1418 |
-
},
|
1419 |
-
"require-dev": {
|
1420 |
-
"phpunit/phpunit": "^6.2"
|
1421 |
-
},
|
1422 |
-
"type": "library",
|
1423 |
-
"extra": {
|
1424 |
-
"branch-alias": {
|
1425 |
-
"dev-master": "2.0-dev"
|
1426 |
-
}
|
1427 |
-
},
|
1428 |
-
"autoload": {
|
1429 |
-
"classmap": [
|
1430 |
-
"src/"
|
1431 |
-
]
|
1432 |
-
},
|
1433 |
-
"notification-url": "https://packagist.org/downloads/",
|
1434 |
-
"license": [
|
1435 |
-
"BSD-3-Clause"
|
1436 |
-
],
|
1437 |
-
"authors": [
|
1438 |
-
{
|
1439 |
-
"name": "Kore Nordmann",
|
1440 |
-
"email": "mail@kore-nordmann.de"
|
1441 |
-
},
|
1442 |
-
{
|
1443 |
-
"name": "Sebastian Bergmann",
|
1444 |
-
"email": "sebastian@phpunit.de"
|
1445 |
-
}
|
1446 |
-
],
|
1447 |
-
"description": "Diff implementation",
|
1448 |
-
"homepage": "https://github.com/sebastianbergmann/diff",
|
1449 |
-
"keywords": [
|
1450 |
-
"diff"
|
1451 |
-
],
|
1452 |
-
"time": "2017-08-03T08:09:46+00:00"
|
1453 |
-
},
|
1454 |
-
{
|
1455 |
-
"name": "sebastian/environment",
|
1456 |
-
"version": "3.1.0",
|
1457 |
-
"source": {
|
1458 |
-
"type": "git",
|
1459 |
-
"url": "https://github.com/sebastianbergmann/environment.git",
|
1460 |
-
"reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5"
|
1461 |
-
},
|
1462 |
-
"dist": {
|
1463 |
-
"type": "zip",
|
1464 |
-
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
|
1465 |
-
"reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5",
|
1466 |
-
"shasum": ""
|
1467 |
-
},
|
1468 |
-
"require": {
|
1469 |
-
"php": "^7.0"
|
1470 |
-
},
|
1471 |
-
"require-dev": {
|
1472 |
-
"phpunit/phpunit": "^6.1"
|
1473 |
-
},
|
1474 |
-
"type": "library",
|
1475 |
-
"extra": {
|
1476 |
-
"branch-alias": {
|
1477 |
-
"dev-master": "3.1.x-dev"
|
1478 |
-
}
|
1479 |
-
},
|
1480 |
-
"autoload": {
|
1481 |
-
"classmap": [
|
1482 |
-
"src/"
|
1483 |
-
]
|
1484 |
-
},
|
1485 |
-
"notification-url": "https://packagist.org/downloads/",
|
1486 |
-
"license": [
|
1487 |
-
"BSD-3-Clause"
|
1488 |
-
],
|
1489 |
-
"authors": [
|
1490 |
-
{
|
1491 |
-
"name": "Sebastian Bergmann",
|
1492 |
-
"email": "sebastian@phpunit.de"
|
1493 |
-
}
|
1494 |
-
],
|
1495 |
-
"description": "Provides functionality to handle HHVM/PHP environments",
|
1496 |
-
"homepage": "http://www.github.com/sebastianbergmann/environment",
|
1497 |
-
"keywords": [
|
1498 |
-
"Xdebug",
|
1499 |
-
"environment",
|
1500 |
-
"hhvm"
|
1501 |
-
],
|
1502 |
-
"time": "2017-07-01T08:51:00+00:00"
|
1503 |
-
},
|
1504 |
-
{
|
1505 |
-
"name": "sebastian/exporter",
|
1506 |
-
"version": "3.1.2",
|
1507 |
-
"source": {
|
1508 |
-
"type": "git",
|
1509 |
-
"url": "https://github.com/sebastianbergmann/exporter.git",
|
1510 |
-
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
|
1511 |
-
},
|
1512 |
-
"dist": {
|
1513 |
-
"type": "zip",
|
1514 |
-
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
|
1515 |
-
"reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
|
1516 |
-
"shasum": ""
|
1517 |
-
},
|
1518 |
-
"require": {
|
1519 |
-
"php": "^7.0",
|
1520 |
-
"sebastian/recursion-context": "^3.0"
|
1521 |
-
},
|
1522 |
-
"require-dev": {
|
1523 |
-
"ext-mbstring": "*",
|
1524 |
-
"phpunit/phpunit": "^6.0"
|
1525 |
-
},
|
1526 |
-
"type": "library",
|
1527 |
-
"extra": {
|
1528 |
-
"branch-alias": {
|
1529 |
-
"dev-master": "3.1.x-dev"
|
1530 |
-
}
|
1531 |
-
},
|
1532 |
-
"autoload": {
|
1533 |
-
"classmap": [
|
1534 |
-
"src/"
|
1535 |
-
]
|
1536 |
-
},
|
1537 |
-
"notification-url": "https://packagist.org/downloads/",
|
1538 |
-
"license": [
|
1539 |
-
"BSD-3-Clause"
|
1540 |
-
],
|
1541 |
-
"authors": [
|
1542 |
-
{
|
1543 |
-
"name": "Sebastian Bergmann",
|
1544 |
-
"email": "sebastian@phpunit.de"
|
1545 |
-
},
|
1546 |
-
{
|
1547 |
-
"name": "Jeff Welch",
|
1548 |
-
"email": "whatthejeff@gmail.com"
|
1549 |
-
},
|
1550 |
-
{
|
1551 |
-
"name": "Volker Dusch",
|
1552 |
-
"email": "github@wallbash.com"
|
1553 |
-
},
|
1554 |
-
{
|
1555 |
-
"name": "Adam Harvey",
|
1556 |
-
"email": "aharvey@php.net"
|
1557 |
-
},
|
1558 |
-
{
|
1559 |
-
"name": "Bernhard Schussek",
|
1560 |
-
"email": "bschussek@gmail.com"
|
1561 |
-
}
|
1562 |
-
],
|
1563 |
-
"description": "Provides the functionality to export PHP variables for visualization",
|
1564 |
-
"homepage": "http://www.github.com/sebastianbergmann/exporter",
|
1565 |
-
"keywords": [
|
1566 |
-
"export",
|
1567 |
-
"exporter"
|
1568 |
-
],
|
1569 |
-
"time": "2019-09-14T09:02:43+00:00"
|
1570 |
-
},
|
1571 |
-
{
|
1572 |
-
"name": "sebastian/global-state",
|
1573 |
-
"version": "2.0.0",
|
1574 |
-
"source": {
|
1575 |
-
"type": "git",
|
1576 |
-
"url": "https://github.com/sebastianbergmann/global-state.git",
|
1577 |
-
"reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
|
1578 |
-
},
|
1579 |
-
"dist": {
|
1580 |
-
"type": "zip",
|
1581 |
-
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
|
1582 |
-
"reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
|
1583 |
-
"shasum": ""
|
1584 |
-
},
|
1585 |
-
"require": {
|
1586 |
-
"php": "^7.0"
|
1587 |
-
},
|
1588 |
-
"require-dev": {
|
1589 |
-
"phpunit/phpunit": "^6.0"
|
1590 |
-
},
|
1591 |
-
"suggest": {
|
1592 |
-
"ext-uopz": "*"
|
1593 |
-
},
|
1594 |
-
"type": "library",
|
1595 |
-
"extra": {
|
1596 |
-
"branch-alias": {
|
1597 |
-
"dev-master": "2.0-dev"
|
1598 |
-
}
|
1599 |
-
},
|
1600 |
-
"autoload": {
|
1601 |
-
"classmap": [
|
1602 |
-
"src/"
|
1603 |
-
]
|
1604 |
-
},
|
1605 |
-
"notification-url": "https://packagist.org/downloads/",
|
1606 |
-
"license": [
|
1607 |
-
"BSD-3-Clause"
|
1608 |
-
],
|
1609 |
-
"authors": [
|
1610 |
-
{
|
1611 |
-
"name": "Sebastian Bergmann",
|
1612 |
-
"email": "sebastian@phpunit.de"
|
1613 |
-
}
|
1614 |
-
],
|
1615 |
-
"description": "Snapshotting of global state",
|
1616 |
-
"homepage": "http://www.github.com/sebastianbergmann/global-state",
|
1617 |
-
"keywords": [
|
1618 |
-
"global state"
|
1619 |
-
],
|
1620 |
-
"time": "2017-04-27T15:39:26+00:00"
|
1621 |
-
},
|
1622 |
-
{
|
1623 |
-
"name": "sebastian/object-enumerator",
|
1624 |
-
"version": "3.0.3",
|
1625 |
-
"source": {
|
1626 |
-
"type": "git",
|
1627 |
-
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
|
1628 |
-
"reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
|
1629 |
-
},
|
1630 |
-
"dist": {
|
1631 |
-
"type": "zip",
|
1632 |
-
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
|
1633 |
-
"reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
|
1634 |
-
"shasum": ""
|
1635 |
-
},
|
1636 |
-
"require": {
|
1637 |
-
"php": "^7.0",
|
1638 |
-
"sebastian/object-reflector": "^1.1.1",
|
1639 |
-
"sebastian/recursion-context": "^3.0"
|
1640 |
-
},
|
1641 |
-
"require-dev": {
|
1642 |
-
"phpunit/phpunit": "^6.0"
|
1643 |
-
},
|
1644 |
-
"type": "library",
|
1645 |
-
"extra": {
|
1646 |
-
"branch-alias": {
|
1647 |
-
"dev-master": "3.0.x-dev"
|
1648 |
-
}
|
1649 |
-
},
|
1650 |
-
"autoload": {
|
1651 |
-
"classmap": [
|
1652 |
-
"src/"
|
1653 |
-
]
|
1654 |
-
},
|
1655 |
-
"notification-url": "https://packagist.org/downloads/",
|
1656 |
-
"license": [
|
1657 |
-
"BSD-3-Clause"
|
1658 |
-
],
|
1659 |
-
"authors": [
|
1660 |
-
{
|
1661 |
-
"name": "Sebastian Bergmann",
|
1662 |
-
"email": "sebastian@phpunit.de"
|
1663 |
-
}
|
1664 |
-
],
|
1665 |
-
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
|
1666 |
-
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
|
1667 |
-
"time": "2017-08-03T12:35:26+00:00"
|
1668 |
-
},
|
1669 |
-
{
|
1670 |
-
"name": "sebastian/object-reflector",
|
1671 |
-
"version": "1.1.1",
|
1672 |
-
"source": {
|
1673 |
-
"type": "git",
|
1674 |
-
"url": "https://github.com/sebastianbergmann/object-reflector.git",
|
1675 |
-
"reference": "773f97c67f28de00d397be301821b06708fca0be"
|
1676 |
-
},
|
1677 |
-
"dist": {
|
1678 |
-
"type": "zip",
|
1679 |
-
"url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
|
1680 |
-
"reference": "773f97c67f28de00d397be301821b06708fca0be",
|
1681 |
-
"shasum": ""
|
1682 |
-
},
|
1683 |
-
"require": {
|
1684 |
-
"php": "^7.0"
|
1685 |
-
},
|
1686 |
-
"require-dev": {
|
1687 |
-
"phpunit/phpunit": "^6.0"
|
1688 |
-
},
|
1689 |
-
"type": "library",
|
1690 |
-
"extra": {
|
1691 |
-
"branch-alias": {
|
1692 |
-
"dev-master": "1.1-dev"
|
1693 |
-
}
|
1694 |
-
},
|
1695 |
-
"autoload": {
|
1696 |
-
"classmap": [
|
1697 |
-
"src/"
|
1698 |
-
]
|
1699 |
-
},
|
1700 |
-
"notification-url": "https://packagist.org/downloads/",
|
1701 |
-
"license": [
|
1702 |
-
"BSD-3-Clause"
|
1703 |
-
],
|
1704 |
-
"authors": [
|
1705 |
-
{
|
1706 |
-
"name": "Sebastian Bergmann",
|
1707 |
-
"email": "sebastian@phpunit.de"
|
1708 |
-
}
|
1709 |
-
],
|
1710 |
-
"description": "Allows reflection of object attributes, including inherited and non-public ones",
|
1711 |
-
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
|
1712 |
-
"time": "2017-03-29T09:07:27+00:00"
|
1713 |
-
},
|
1714 |
-
{
|
1715 |
-
"name": "sebastian/recursion-context",
|
1716 |
-
"version": "3.0.0",
|
1717 |
-
"source": {
|
1718 |
-
"type": "git",
|
1719 |
-
"url": "https://github.com/sebastianbergmann/recursion-context.git",
|
1720 |
-
"reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
|
1721 |
-
},
|
1722 |
-
"dist": {
|
1723 |
-
"type": "zip",
|
1724 |
-
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
|
1725 |
-
"reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
|
1726 |
-
"shasum": ""
|
1727 |
-
},
|
1728 |
-
"require": {
|
1729 |
-
"php": "^7.0"
|
1730 |
-
},
|
1731 |
-
"require-dev": {
|
1732 |
-
"phpunit/phpunit": "^6.0"
|
1733 |
-
},
|
1734 |
-
"type": "library",
|
1735 |
-
"extra": {
|
1736 |
-
"branch-alias": {
|
1737 |
-
"dev-master": "3.0.x-dev"
|
1738 |
-
}
|
1739 |
-
},
|
1740 |
-
"autoload": {
|
1741 |
-
"classmap": [
|
1742 |
-
"src/"
|
1743 |
-
]
|
1744 |
-
},
|
1745 |
-
"notification-url": "https://packagist.org/downloads/",
|
1746 |
-
"license": [
|
1747 |
-
"BSD-3-Clause"
|
1748 |
-
],
|
1749 |
-
"authors": [
|
1750 |
-
{
|
1751 |
-
"name": "Jeff Welch",
|
1752 |
-
"email": "whatthejeff@gmail.com"
|
1753 |
-
},
|
1754 |
-
{
|
1755 |
-
"name": "Sebastian Bergmann",
|
1756 |
-
"email": "sebastian@phpunit.de"
|
1757 |
-
},
|
1758 |
-
{
|
1759 |
-
"name": "Adam Harvey",
|
1760 |
-
"email": "aharvey@php.net"
|
1761 |
-
}
|
1762 |
-
],
|
1763 |
-
"description": "Provides functionality to recursively process PHP variables",
|
1764 |
-
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
|
1765 |
-
"time": "2017-03-03T06:23:57+00:00"
|
1766 |
-
},
|
1767 |
-
{
|
1768 |
-
"name": "sebastian/resource-operations",
|
1769 |
-
"version": "1.0.0",
|
1770 |
-
"source": {
|
1771 |
-
"type": "git",
|
1772 |
-
"url": "https://github.com/sebastianbergmann/resource-operations.git",
|
1773 |
-
"reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
|
1774 |
-
},
|
1775 |
-
"dist": {
|
1776 |
-
"type": "zip",
|
1777 |
-
"url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
|
1778 |
-
"reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
|
1779 |
-
"shasum": ""
|
1780 |
-
},
|
1781 |
-
"require": {
|
1782 |
-
"php": ">=5.6.0"
|
1783 |
-
},
|
1784 |
-
"type": "library",
|
1785 |
-
"extra": {
|
1786 |
-
"branch-alias": {
|
1787 |
-
"dev-master": "1.0.x-dev"
|
1788 |
-
}
|
1789 |
-
},
|
1790 |
-
"autoload": {
|
1791 |
-
"classmap": [
|
1792 |
-
"src/"
|
1793 |
-
]
|
1794 |
-
},
|
1795 |
-
"notification-url": "https://packagist.org/downloads/",
|
1796 |
-
"license": [
|
1797 |
-
"BSD-3-Clause"
|
1798 |
-
],
|
1799 |
-
"authors": [
|
1800 |
-
{
|
1801 |
-
"name": "Sebastian Bergmann",
|
1802 |
-
"email": "sebastian@phpunit.de"
|
1803 |
-
}
|
1804 |
-
],
|
1805 |
-
"description": "Provides a list of PHP built-in functions that operate on resources",
|
1806 |
-
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
|
1807 |
-
"time": "2015-07-28T20:34:47+00:00"
|
1808 |
-
},
|
1809 |
-
{
|
1810 |
-
"name": "sebastian/version",
|
1811 |
-
"version": "2.0.1",
|
1812 |
-
"source": {
|
1813 |
-
"type": "git",
|
1814 |
-
"url": "https://github.com/sebastianbergmann/version.git",
|
1815 |
-
"reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
|
1816 |
-
},
|
1817 |
-
"dist": {
|
1818 |
-
"type": "zip",
|
1819 |
-
"url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
|
1820 |
-
"reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
|
1821 |
-
"shasum": ""
|
1822 |
-
},
|
1823 |
-
"require": {
|
1824 |
-
"php": ">=5.6"
|
1825 |
-
},
|
1826 |
-
"type": "library",
|
1827 |
-
"extra": {
|
1828 |
-
"branch-alias": {
|
1829 |
-
"dev-master": "2.0.x-dev"
|
1830 |
-
}
|
1831 |
-
},
|
1832 |
-
"autoload": {
|
1833 |
-
"classmap": [
|
1834 |
-
"src/"
|
1835 |
-
]
|
1836 |
-
},
|
1837 |
-
"notification-url": "https://packagist.org/downloads/",
|
1838 |
-
"license": [
|
1839 |
-
"BSD-3-Clause"
|
1840 |
-
],
|
1841 |
-
"authors": [
|
1842 |
-
{
|
1843 |
-
"name": "Sebastian Bergmann",
|
1844 |
-
"email": "sebastian@phpunit.de",
|
1845 |
-
"role": "lead"
|
1846 |
-
}
|
1847 |
-
],
|
1848 |
-
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
|
1849 |
-
"homepage": "https://github.com/sebastianbergmann/version",
|
1850 |
-
"time": "2016-10-03T07:35:21+00:00"
|
1851 |
-
},
|
1852 |
-
{
|
1853 |
-
"name": "symfony/console",
|
1854 |
-
"version": "v4.4.4",
|
1855 |
-
"source": {
|
1856 |
-
"type": "git",
|
1857 |
-
"url": "https://github.com/symfony/console.git",
|
1858 |
-
"reference": "f512001679f37e6a042b51897ed24a2f05eba656"
|
1859 |
-
},
|
1860 |
-
"dist": {
|
1861 |
-
"type": "zip",
|
1862 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/f512001679f37e6a042b51897ed24a2f05eba656",
|
1863 |
-
"reference": "f512001679f37e6a042b51897ed24a2f05eba656",
|
1864 |
-
"shasum": ""
|
1865 |
-
},
|
1866 |
-
"require": {
|
1867 |
-
"php": "^7.1.3",
|
1868 |
-
"symfony/polyfill-mbstring": "~1.0",
|
1869 |
-
"symfony/polyfill-php73": "^1.8",
|
1870 |
-
"symfony/service-contracts": "^1.1|^2"
|
1871 |
-
},
|
1872 |
-
"conflict": {
|
1873 |
-
"symfony/dependency-injection": "<3.4",
|
1874 |
-
"symfony/event-dispatcher": "<4.3|>=5",
|
1875 |
-
"symfony/lock": "<4.4",
|
1876 |
-
"symfony/process": "<3.3"
|
1877 |
-
},
|
1878 |
-
"provide": {
|
1879 |
-
"psr/log-implementation": "1.0"
|
1880 |
-
},
|
1881 |
-
"require-dev": {
|
1882 |
-
"psr/log": "~1.0",
|
1883 |
-
"symfony/config": "^3.4|^4.0|^5.0",
|
1884 |
-
"symfony/dependency-injection": "^3.4|^4.0|^5.0",
|
1885 |
-
"symfony/event-dispatcher": "^4.3",
|
1886 |
-
"symfony/lock": "^4.4|^5.0",
|
1887 |
-
"symfony/process": "^3.4|^4.0|^5.0",
|
1888 |
-
"symfony/var-dumper": "^4.3|^5.0"
|
1889 |
-
},
|
1890 |
-
"suggest": {
|
1891 |
-
"psr/log": "For using the console logger",
|
1892 |
-
"symfony/event-dispatcher": "",
|
1893 |
-
"symfony/lock": "",
|
1894 |
-
"symfony/process": ""
|
1895 |
-
},
|
1896 |
-
"type": "library",
|
1897 |
-
"extra": {
|
1898 |
-
"branch-alias": {
|
1899 |
-
"dev-master": "4.4-dev"
|
1900 |
-
}
|
1901 |
-
},
|
1902 |
-
"autoload": {
|
1903 |
-
"psr-4": {
|
1904 |
-
"Symfony\\Component\\Console\\": ""
|
1905 |
-
},
|
1906 |
-
"exclude-from-classmap": [
|
1907 |
-
"/Tests/"
|
1908 |
-
]
|
1909 |
-
},
|
1910 |
-
"notification-url": "https://packagist.org/downloads/",
|
1911 |
-
"license": [
|
1912 |
-
"MIT"
|
1913 |
-
],
|
1914 |
-
"authors": [
|
1915 |
-
{
|
1916 |
-
"name": "Fabien Potencier",
|
1917 |
-
"email": "fabien@symfony.com"
|
1918 |
-
},
|
1919 |
-
{
|
1920 |
-
"name": "Symfony Community",
|
1921 |
-
"homepage": "https://symfony.com/contributors"
|
1922 |
-
}
|
1923 |
-
],
|
1924 |
-
"description": "Symfony Console Component",
|
1925 |
-
"homepage": "https://symfony.com",
|
1926 |
-
"time": "2020-01-25T12:44:29+00:00"
|
1927 |
-
},
|
1928 |
-
{
|
1929 |
-
"name": "symfony/polyfill-ctype",
|
1930 |
-
"version": "v1.14.0",
|
1931 |
-
"source": {
|
1932 |
-
"type": "git",
|
1933 |
-
"url": "https://github.com/symfony/polyfill-ctype.git",
|
1934 |
-
"reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38"
|
1935 |
-
},
|
1936 |
-
"dist": {
|
1937 |
-
"type": "zip",
|
1938 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
|
1939 |
-
"reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
|
1940 |
-
"shasum": ""
|
1941 |
-
},
|
1942 |
-
"require": {
|
1943 |
-
"php": ">=5.3.3"
|
1944 |
-
},
|
1945 |
-
"suggest": {
|
1946 |
-
"ext-ctype": "For best performance"
|
1947 |
-
},
|
1948 |
-
"type": "library",
|
1949 |
-
"extra": {
|
1950 |
-
"branch-alias": {
|
1951 |
-
"dev-master": "1.14-dev"
|
1952 |
-
}
|
1953 |
-
},
|
1954 |
-
"autoload": {
|
1955 |
-
"psr-4": {
|
1956 |
-
"Symfony\\Polyfill\\Ctype\\": ""
|
1957 |
-
},
|
1958 |
-
"files": [
|
1959 |
-
"bootstrap.php"
|
1960 |
-
]
|
1961 |
-
},
|
1962 |
-
"notification-url": "https://packagist.org/downloads/",
|
1963 |
-
"license": [
|
1964 |
-
"MIT"
|
1965 |
-
],
|
1966 |
-
"authors": [
|
1967 |
-
{
|
1968 |
-
"name": "Gert de Pagter",
|
1969 |
-
"email": "BackEndTea@gmail.com"
|
1970 |
-
},
|
1971 |
-
{
|
1972 |
-
"name": "Symfony Community",
|
1973 |
-
"homepage": "https://symfony.com/contributors"
|
1974 |
-
}
|
1975 |
-
],
|
1976 |
-
"description": "Symfony polyfill for ctype functions",
|
1977 |
-
"homepage": "https://symfony.com",
|
1978 |
-
"keywords": [
|
1979 |
-
"compatibility",
|
1980 |
-
"ctype",
|
1981 |
-
"polyfill",
|
1982 |
-
"portable"
|
1983 |
-
],
|
1984 |
-
"time": "2020-01-13T11:15:53+00:00"
|
1985 |
-
},
|
1986 |
-
{
|
1987 |
-
"name": "symfony/polyfill-mbstring",
|
1988 |
-
"version": "v1.14.0",
|
1989 |
-
"source": {
|
1990 |
-
"type": "git",
|
1991 |
-
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
1992 |
-
"reference": "34094cfa9abe1f0f14f48f490772db7a775559f2"
|
1993 |
-
},
|
1994 |
-
"dist": {
|
1995 |
-
"type": "zip",
|
1996 |
-
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/34094cfa9abe1f0f14f48f490772db7a775559f2",
|
1997 |
-
"reference": "34094cfa9abe1f0f14f48f490772db7a775559f2",
|
1998 |
-
"shasum": ""
|
1999 |
-
},
|
2000 |
-
"require": {
|
2001 |
-
"php": ">=5.3.3"
|
2002 |
-
},
|
2003 |
-
"suggest": {
|
2004 |
-
"ext-mbstring": "For best performance"
|
2005 |
-
},
|
2006 |
-
"type": "library",
|
2007 |
-
"extra": {
|
2008 |
-
"branch-alias": {
|
2009 |
-
"dev-master": "1.14-dev"
|
2010 |
-
}
|
2011 |
-
},
|
2012 |
-
"autoload": {
|
2013 |
-
"psr-4": {
|
2014 |
-
"Symfony\\Polyfill\\Mbstring\\": ""
|
2015 |
-
},
|
2016 |
-
"files": [
|
2017 |
-
"bootstrap.php"
|
2018 |
-
]
|
2019 |
-
},
|
2020 |
-
"notification-url": "https://packagist.org/downloads/",
|
2021 |
-
"license": [
|
2022 |
-
"MIT"
|
2023 |
-
],
|
2024 |
-
"authors": [
|
2025 |
-
{
|
2026 |
-
"name": "Nicolas Grekas",
|
2027 |
-
"email": "p@tchwork.com"
|
2028 |
-
},
|
2029 |
-
{
|
2030 |
-
"name": "Symfony Community",
|
2031 |
-
"homepage": "https://symfony.com/contributors"
|
2032 |
-
}
|
2033 |
-
],
|
2034 |
-
"description": "Symfony polyfill for the Mbstring extension",
|
2035 |
-
"homepage": "https://symfony.com",
|
2036 |
-
"keywords": [
|
2037 |
-
"compatibility",
|
2038 |
-
"mbstring",
|
2039 |
-
"polyfill",
|
2040 |
-
"portable",
|
2041 |
-
"shim"
|
2042 |
-
],
|
2043 |
-
"time": "2020-01-13T11:15:53+00:00"
|
2044 |
-
},
|
2045 |
-
{
|
2046 |
-
"name": "symfony/polyfill-php73",
|
2047 |
-
"version": "v1.14.0",
|
2048 |
-
"source": {
|
2049 |
-
"type": "git",
|
2050 |
-
"url": "https://github.com/symfony/polyfill-php73.git",
|
2051 |
-
"reference": "5e66a0fa1070bf46bec4bea7962d285108edd675"
|
2052 |
-
},
|
2053 |
-
"dist": {
|
2054 |
-
"type": "zip",
|
2055 |
-
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/5e66a0fa1070bf46bec4bea7962d285108edd675",
|
2056 |
-
"reference": "5e66a0fa1070bf46bec4bea7962d285108edd675",
|
2057 |
-
"shasum": ""
|
2058 |
-
},
|
2059 |
-
"require": {
|
2060 |
-
"php": ">=5.3.3"
|
2061 |
-
},
|
2062 |
-
"type": "library",
|
2063 |
-
"extra": {
|
2064 |
-
"branch-alias": {
|
2065 |
-
"dev-master": "1.14-dev"
|
2066 |
-
}
|
2067 |
-
},
|
2068 |
-
"autoload": {
|
2069 |
-
"psr-4": {
|
2070 |
-
"Symfony\\Polyfill\\Php73\\": ""
|
2071 |
-
},
|
2072 |
-
"files": [
|
2073 |
-
"bootstrap.php"
|
2074 |
-
],
|
2075 |
-
"classmap": [
|
2076 |
-
"Resources/stubs"
|
2077 |
-
]
|
2078 |
-
},
|
2079 |
-
"notification-url": "https://packagist.org/downloads/",
|
2080 |
-
"license": [
|
2081 |
-
"MIT"
|
2082 |
-
],
|
2083 |
-
"authors": [
|
2084 |
-
{
|
2085 |
-
"name": "Nicolas Grekas",
|
2086 |
-
"email": "p@tchwork.com"
|
2087 |
-
},
|
2088 |
-
{
|
2089 |
-
"name": "Symfony Community",
|
2090 |
-
"homepage": "https://symfony.com/contributors"
|
2091 |
-
}
|
2092 |
-
],
|
2093 |
-
"description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
|
2094 |
-
"homepage": "https://symfony.com",
|
2095 |
-
"keywords": [
|
2096 |
-
"compatibility",
|
2097 |
-
"polyfill",
|
2098 |
-
"portable",
|
2099 |
-
"shim"
|
2100 |
-
],
|
2101 |
-
"time": "2020-01-13T11:15:53+00:00"
|
2102 |
-
},
|
2103 |
-
{
|
2104 |
-
"name": "symfony/service-contracts",
|
2105 |
-
"version": "v2.0.1",
|
2106 |
-
"source": {
|
2107 |
-
"type": "git",
|
2108 |
-
"url": "https://github.com/symfony/service-contracts.git",
|
2109 |
-
"reference": "144c5e51266b281231e947b51223ba14acf1a749"
|
2110 |
-
},
|
2111 |
-
"dist": {
|
2112 |
-
"type": "zip",
|
2113 |
-
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749",
|
2114 |
-
"reference": "144c5e51266b281231e947b51223ba14acf1a749",
|
2115 |
-
"shasum": ""
|
2116 |
-
},
|
2117 |
-
"require": {
|
2118 |
-
"php": "^7.2.5",
|
2119 |
-
"psr/container": "^1.0"
|
2120 |
-
},
|
2121 |
-
"suggest": {
|
2122 |
-
"symfony/service-implementation": ""
|
2123 |
-
},
|
2124 |
-
"type": "library",
|
2125 |
-
"extra": {
|
2126 |
-
"branch-alias": {
|
2127 |
-
"dev-master": "2.0-dev"
|
2128 |
-
}
|
2129 |
-
},
|
2130 |
-
"autoload": {
|
2131 |
-
"psr-4": {
|
2132 |
-
"Symfony\\Contracts\\Service\\": ""
|
2133 |
-
}
|
2134 |
-
},
|
2135 |
-
"notification-url": "https://packagist.org/downloads/",
|
2136 |
-
"license": [
|
2137 |
-
"MIT"
|
2138 |
-
],
|
2139 |
-
"authors": [
|
2140 |
-
{
|
2141 |
-
"name": "Nicolas Grekas",
|
2142 |
-
"email": "p@tchwork.com"
|
2143 |
-
},
|
2144 |
-
{
|
2145 |
-
"name": "Symfony Community",
|
2146 |
-
"homepage": "https://symfony.com/contributors"
|
2147 |
-
}
|
2148 |
-
],
|
2149 |
-
"description": "Generic abstractions related to writing services",
|
2150 |
-
"homepage": "https://symfony.com",
|
2151 |
-
"keywords": [
|
2152 |
-
"abstractions",
|
2153 |
-
"contracts",
|
2154 |
-
"decoupling",
|
2155 |
-
"interfaces",
|
2156 |
-
"interoperability",
|
2157 |
-
"standards"
|
2158 |
-
],
|
2159 |
-
"time": "2019-11-18T17:27:11+00:00"
|
2160 |
-
},
|
2161 |
-
{
|
2162 |
-
"name": "symfony/yaml",
|
2163 |
-
"version": "v4.4.4",
|
2164 |
-
"source": {
|
2165 |
-
"type": "git",
|
2166 |
-
"url": "https://github.com/symfony/yaml.git",
|
2167 |
-
"reference": "cd014e425b3668220adb865f53bff64b3ad21767"
|
2168 |
-
},
|
2169 |
-
"dist": {
|
2170 |
-
"type": "zip",
|
2171 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/cd014e425b3668220adb865f53bff64b3ad21767",
|
2172 |
-
"reference": "cd014e425b3668220adb865f53bff64b3ad21767",
|
2173 |
-
"shasum": ""
|
2174 |
-
},
|
2175 |
-
"require": {
|
2176 |
-
"php": "^7.1.3",
|
2177 |
-
"symfony/polyfill-ctype": "~1.8"
|
2178 |
-
},
|
2179 |
-
"conflict": {
|
2180 |
-
"symfony/console": "<3.4"
|
2181 |
-
},
|
2182 |
-
"require-dev": {
|
2183 |
-
"symfony/console": "^3.4|^4.0|^5.0"
|
2184 |
-
},
|
2185 |
-
"suggest": {
|
2186 |
-
"symfony/console": "For validating YAML files using the lint command"
|
2187 |
-
},
|
2188 |
-
"type": "library",
|
2189 |
-
"extra": {
|
2190 |
-
"branch-alias": {
|
2191 |
-
"dev-master": "4.4-dev"
|
2192 |
-
}
|
2193 |
-
},
|
2194 |
-
"autoload": {
|
2195 |
-
"psr-4": {
|
2196 |
-
"Symfony\\Component\\Yaml\\": ""
|
2197 |
-
},
|
2198 |
-
"exclude-from-classmap": [
|
2199 |
-
"/Tests/"
|
2200 |
-
]
|
2201 |
-
},
|
2202 |
-
"notification-url": "https://packagist.org/downloads/",
|
2203 |
-
"license": [
|
2204 |
-
"MIT"
|
2205 |
-
],
|
2206 |
-
"authors": [
|
2207 |
-
{
|
2208 |
-
"name": "Fabien Potencier",
|
2209 |
-
"email": "fabien@symfony.com"
|
2210 |
-
},
|
2211 |
-
{
|
2212 |
-
"name": "Symfony Community",
|
2213 |
-
"homepage": "https://symfony.com/contributors"
|
2214 |
-
}
|
2215 |
-
],
|
2216 |
-
"description": "Symfony Yaml Component",
|
2217 |
-
"homepage": "https://symfony.com",
|
2218 |
-
"time": "2020-01-21T11:12:16+00:00"
|
2219 |
-
},
|
2220 |
-
{
|
2221 |
-
"name": "theseer/tokenizer",
|
2222 |
-
"version": "1.1.3",
|
2223 |
-
"source": {
|
2224 |
-
"type": "git",
|
2225 |
-
"url": "https://github.com/theseer/tokenizer.git",
|
2226 |
-
"reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
|
2227 |
-
},
|
2228 |
-
"dist": {
|
2229 |
-
"type": "zip",
|
2230 |
-
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
|
2231 |
-
"reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
|
2232 |
-
"shasum": ""
|
2233 |
-
},
|
2234 |
-
"require": {
|
2235 |
-
"ext-dom": "*",
|
2236 |
-
"ext-tokenizer": "*",
|
2237 |
-
"ext-xmlwriter": "*",
|
2238 |
-
"php": "^7.0"
|
2239 |
-
},
|
2240 |
-
"type": "library",
|
2241 |
-
"autoload": {
|
2242 |
-
"classmap": [
|
2243 |
-
"src/"
|
2244 |
-
]
|
2245 |
-
},
|
2246 |
-
"notification-url": "https://packagist.org/downloads/",
|
2247 |
-
"license": [
|
2248 |
-
"BSD-3-Clause"
|
2249 |
-
],
|
2250 |
-
"authors": [
|
2251 |
-
{
|
2252 |
-
"name": "Arne Blankerts",
|
2253 |
-
"email": "arne@blankerts.de",
|
2254 |
-
"role": "Developer"
|
2255 |
-
}
|
2256 |
-
],
|
2257 |
-
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
|
2258 |
-
"time": "2019-06-13T22:48:21+00:00"
|
2259 |
-
},
|
2260 |
-
{
|
2261 |
-
"name": "webmozart/assert",
|
2262 |
-
"version": "1.7.0",
|
2263 |
-
"source": {
|
2264 |
-
"type": "git",
|
2265 |
-
"url": "https://github.com/webmozart/assert.git",
|
2266 |
-
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598"
|
2267 |
-
},
|
2268 |
-
"dist": {
|
2269 |
-
"type": "zip",
|
2270 |
-
"url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598",
|
2271 |
-
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598",
|
2272 |
-
"shasum": ""
|
2273 |
-
},
|
2274 |
-
"require": {
|
2275 |
-
"php": "^5.3.3 || ^7.0",
|
2276 |
-
"symfony/polyfill-ctype": "^1.8"
|
2277 |
-
},
|
2278 |
-
"conflict": {
|
2279 |
-
"vimeo/psalm": "<3.6.0"
|
2280 |
-
},
|
2281 |
-
"require-dev": {
|
2282 |
-
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
2283 |
-
},
|
2284 |
-
"type": "library",
|
2285 |
-
"autoload": {
|
2286 |
-
"psr-4": {
|
2287 |
-
"Webmozart\\Assert\\": "src/"
|
2288 |
-
}
|
2289 |
-
},
|
2290 |
-
"notification-url": "https://packagist.org/downloads/",
|
2291 |
-
"license": [
|
2292 |
-
"MIT"
|
2293 |
-
],
|
2294 |
-
"authors": [
|
2295 |
-
{
|
2296 |
-
"name": "Bernhard Schussek",
|
2297 |
-
"email": "bschussek@gmail.com"
|
2298 |
-
}
|
2299 |
-
],
|
2300 |
-
"description": "Assertions to validate method input/output with nice error messages.",
|
2301 |
-
"keywords": [
|
2302 |
-
"assert",
|
2303 |
-
"check",
|
2304 |
-
"validate"
|
2305 |
-
],
|
2306 |
-
"time": "2020-02-14T12:15:55+00:00"
|
2307 |
-
}
|
2308 |
-
],
|
2309 |
-
"aliases": [],
|
2310 |
-
"minimum-stability": "stable",
|
2311 |
-
"stability-flags": {
|
2312 |
-
"techcrunch/wp-async-task": 20,
|
2313 |
-
"phing/phing": 15
|
2314 |
-
},
|
2315 |
-
"prefer-stable": false,
|
2316 |
-
"prefer-lowest": false,
|
2317 |
-
"platform": [],
|
2318 |
-
"platform-dev": []
|
2319 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/EventIdGenerator.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright (C) 2015-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
*
|
9 |
-
* This program is distributed in the hope that it will be useful,
|
10 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
-
* GNU General Public License for more details.
|
13 |
-
*
|
14 |
-
* You should have received a copy of the GNU General Public License along
|
15 |
-
* with this program; if not, write to the Free Software Foundation, Inc.,
|
16 |
-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
17 |
-
*/
|
18 |
-
|
19 |
-
namespace FacebookPixelPlugin\Core;
|
20 |
-
|
21 |
-
final class EventIdGenerator {
|
22 |
-
/**
|
23 |
-
* Creates a new guid v4 - via https://stackoverflow.com/a/15875555
|
24 |
-
* @return string A 36 character string containing dashes.
|
25 |
-
*/
|
26 |
-
public static function guidv4() {
|
27 |
-
$data = openssl_random_pseudo_bytes(16);
|
28 |
-
|
29 |
-
$data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
|
30 |
-
$data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
|
31 |
-
|
32 |
-
return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookPixel.php
DELETED
@@ -1,240 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use ReflectionClass;
|
23 |
-
|
24 |
-
class FacebookPixel {
|
25 |
-
const ADDPAYMENTINFO = 'AddPaymentInfo';
|
26 |
-
const ADDTOCART = 'AddToCart';
|
27 |
-
const ADDTOWISHLIST = 'AddToWishlist';
|
28 |
-
const COMPLETEREGISTRATION = 'CompleteRegistration';
|
29 |
-
const CONTACT = 'Contact';
|
30 |
-
const CUSTOMIZEPRODUCT = 'CustomizeProduct';
|
31 |
-
const DONATE = 'Donate';
|
32 |
-
const FINDLOCATION = 'FindLocation';
|
33 |
-
const INITIATECHECKOUT = 'InitiateCheckout';
|
34 |
-
const LEAD = 'Lead';
|
35 |
-
const PAGEVIEW = 'PageView';
|
36 |
-
const PURCHASE = 'Purchase';
|
37 |
-
const SCHEDULE = 'Schedule';
|
38 |
-
const SEARCH = 'Search';
|
39 |
-
const STARTTRIAL = 'StartTrial';
|
40 |
-
const SUBMITAPPLICATION = 'SubmitApplication';
|
41 |
-
const SUBSCRIBE = 'Subscribe';
|
42 |
-
const VIEWCONTENT = 'ViewContent';
|
43 |
-
|
44 |
-
const FB_INTEGRATION_TRACKING_KEY = 'fb_integration_tracking';
|
45 |
-
|
46 |
-
private static $pixelId = '';
|
47 |
-
|
48 |
-
private static $pixelBaseCode = "
|
49 |
-
<!-- Facebook Pixel Code -->
|
50 |
-
<script type='text/javascript'>
|
51 |
-
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
52 |
-
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
53 |
-
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
|
54 |
-
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
|
55 |
-
document,'script','https://connect.facebook.net/en_US/fbevents.js');
|
56 |
-
</script>
|
57 |
-
<!-- End Facebook Pixel Code -->
|
58 |
-
";
|
59 |
-
|
60 |
-
private static $pixelFbqCodeWithoutScript = "
|
61 |
-
fbq('%s', '%s'%s%s);
|
62 |
-
";
|
63 |
-
|
64 |
-
private static $pixelNoscriptCode = "
|
65 |
-
<!-- Facebook Pixel Code -->
|
66 |
-
<noscript>
|
67 |
-
<img height=\"1\" width=\"1\" style=\"display:none\" alt=\"fbpx\"
|
68 |
-
src=\"https://www.facebook.com/tr?id=%s&ev=%s%s&noscript=1\" />
|
69 |
-
</noscript>
|
70 |
-
<!-- End Facebook Pixel Code -->
|
71 |
-
";
|
72 |
-
|
73 |
-
public static function initialize($pixel_id = '') {
|
74 |
-
self::$pixelId = $pixel_id;
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* Gets FB pixel ID
|
79 |
-
*/
|
80 |
-
public static function getPixelId() {
|
81 |
-
return self::$pixelId;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Sets FB pixel ID
|
86 |
-
*/
|
87 |
-
public static function setPixelId($pixel_id) {
|
88 |
-
self::$pixelId = $pixel_id;
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Gets FB pixel base code
|
93 |
-
*/
|
94 |
-
public static function getPixelBaseCode() {
|
95 |
-
return self::$pixelBaseCode;
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Gets FB pixel init code
|
100 |
-
*/
|
101 |
-
public static function getPixelInitCode($agent_string, $param = array(), $with_script_tag = true) {
|
102 |
-
if (empty(self::$pixelId)) {
|
103 |
-
return;
|
104 |
-
}
|
105 |
-
|
106 |
-
$code = $with_script_tag
|
107 |
-
? "<script type='text/javascript'>" . self::$pixelFbqCodeWithoutScript . "</script>"
|
108 |
-
: self::$pixelFbqCodeWithoutScript;
|
109 |
-
$param_str = $param;
|
110 |
-
if (is_array($param)) {
|
111 |
-
$param_str = json_encode($param, JSON_PRETTY_PRINT);
|
112 |
-
}
|
113 |
-
$agent_param = array('agent' => $agent_string);
|
114 |
-
return sprintf(
|
115 |
-
$code,
|
116 |
-
'init',
|
117 |
-
self::$pixelId,
|
118 |
-
', ' . $param_str,
|
119 |
-
', ' . json_encode($agent_param, JSON_PRETTY_PRINT));
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Gets FB pixel track code
|
124 |
-
* $param is the parameter for the pixel event.
|
125 |
-
* If it is an array, FB_INTEGRATION_TRACKING_KEY parameter with $tracking_name value will automatically
|
126 |
-
* be added into the $param. If it is a string, please append the FB_INTEGRATION_TRACKING_KEY parameter
|
127 |
-
* with its tracking name into the JS Parameter block
|
128 |
-
*/
|
129 |
-
public static function getPixelTrackCode($event, $param = array(), $tracking_name = '', $with_script_tag = true) {
|
130 |
-
if (empty(self::$pixelId)) {
|
131 |
-
return;
|
132 |
-
}
|
133 |
-
|
134 |
-
$code = $with_script_tag
|
135 |
-
? "<script type='text/javascript'>" . self::$pixelFbqCodeWithoutScript . "</script>"
|
136 |
-
: self::$pixelFbqCodeWithoutScript;
|
137 |
-
$param_str = $param;
|
138 |
-
if (is_array($param)) {
|
139 |
-
if (!empty($tracking_name)) {
|
140 |
-
$param[self::FB_INTEGRATION_TRACKING_KEY] = $tracking_name;
|
141 |
-
}
|
142 |
-
$param_str = json_encode($param, JSON_PRETTY_PRINT);
|
143 |
-
}
|
144 |
-
$class = new ReflectionClass(__CLASS__);
|
145 |
-
return sprintf(
|
146 |
-
$code,
|
147 |
-
$class->getConstant(strtoupper($event)) !== false ? 'track' : 'trackCustom',
|
148 |
-
$event,
|
149 |
-
', ' . $param_str,
|
150 |
-
'');
|
151 |
-
}
|
152 |
-
|
153 |
-
/**
|
154 |
-
* Gets FB pixel noscript code
|
155 |
-
*/
|
156 |
-
public static function getPixelNoscriptCode($event = 'PageView', $cd = array(), $tracking_name = '') {
|
157 |
-
if (empty(self::$pixelId)) {
|
158 |
-
return;
|
159 |
-
}
|
160 |
-
|
161 |
-
$data = '';
|
162 |
-
foreach ($cd as $k => $v) {
|
163 |
-
$data .= '&cd[' . $k . ']=' . $v;
|
164 |
-
}
|
165 |
-
if (!empty($tracking_name)) {
|
166 |
-
$data .= '&cd[' . self::FB_INTEGRATION_TRACKING_KEY . ']=' . $tracking_name;
|
167 |
-
}
|
168 |
-
return sprintf(
|
169 |
-
self::$pixelNoscriptCode,
|
170 |
-
self::$pixelId,
|
171 |
-
$event,
|
172 |
-
$data);
|
173 |
-
}
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Gets FB pixel AddToCart code
|
177 |
-
*/
|
178 |
-
public static function getPixelAddToCartCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
179 |
-
return self::getPixelTrackCode(
|
180 |
-
self::ADDTOCART,
|
181 |
-
$param,
|
182 |
-
$tracking_name,
|
183 |
-
$with_script_tag);
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* Gets FB pixel InitiateCheckout code
|
188 |
-
*/
|
189 |
-
public static function getPixelInitiateCheckoutCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
190 |
-
return self::getPixelTrackCode(
|
191 |
-
self::INITIATECHECKOUT,
|
192 |
-
$param,
|
193 |
-
$tracking_name,
|
194 |
-
$with_script_tag);
|
195 |
-
}
|
196 |
-
|
197 |
-
/**
|
198 |
-
* Gets FB pixel Lead code
|
199 |
-
*/
|
200 |
-
public static function getPixelLeadCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
201 |
-
return self::getPixelTrackCode(
|
202 |
-
self::LEAD,
|
203 |
-
$param,
|
204 |
-
$tracking_name,
|
205 |
-
$with_script_tag);
|
206 |
-
}
|
207 |
-
|
208 |
-
/**
|
209 |
-
* Gets FB pixel PageView code
|
210 |
-
*/
|
211 |
-
public static function getPixelPageViewCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
212 |
-
return self::getPixelTrackCode(
|
213 |
-
self::PAGEVIEW,
|
214 |
-
$param,
|
215 |
-
$tracking_name,
|
216 |
-
$with_script_tag);
|
217 |
-
}
|
218 |
-
|
219 |
-
/**
|
220 |
-
* Gets FB pixel Purchase code
|
221 |
-
*/
|
222 |
-
public static function getPixelPurchaseCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
223 |
-
return self::getPixelTrackCode(
|
224 |
-
self::PURCHASE,
|
225 |
-
$param,
|
226 |
-
$tracking_name,
|
227 |
-
$with_script_tag);
|
228 |
-
}
|
229 |
-
|
230 |
-
/**
|
231 |
-
* Gets FB pixel ViewContent code
|
232 |
-
*/
|
233 |
-
public static function getPixelViewContentCode($param = array(), $tracking_name = '', $with_script_tag = true) {
|
234 |
-
return self::getPixelTrackCode(
|
235 |
-
self::VIEWCONTENT,
|
236 |
-
$param,
|
237 |
-
$tracking_name,
|
238 |
-
$with_script_tag);
|
239 |
-
}
|
240 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookPluginConfig.php
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class FacebookPluginConfig {
|
23 |
-
const PLUGIN_VERSION = '2.0.1';
|
24 |
-
const SOURCE = 'wordpress';
|
25 |
-
const TEXT_DOMAIN = 'official-facebook-pixel';
|
26 |
-
|
27 |
-
const ADMIN_CAPABILITY = 'manage_options';
|
28 |
-
const ADMIN_DISMISS_PIXEL_ID_NOTICE = 'dismiss_pixel_id_notice';
|
29 |
-
const ADMIN_IGNORE_PIXEL_ID_NOTICE = 'ignore_pixel_id_notice';
|
30 |
-
const ADMIN_MENU_SLUG = 'facebook_pixel_options';
|
31 |
-
const ADMIN_MENU_TITLE = 'Facebook Pixel';
|
32 |
-
const ADMIN_OPTION_GROUP = 'facebook_option_group';
|
33 |
-
const ADMIN_PAGE_TITLE = 'Facebook Pixel Settings';
|
34 |
-
const ADMIN_PRIVACY_URL = 'https://developers.facebook.com/docs/privacy/';
|
35 |
-
const ADMIN_S2S_URL = 'https://developers.facebook.com/docs/marketing-api/facebook-pixel/server-side-api';
|
36 |
-
const ADMIN_SECTION_ID = 'facebook_settings_section';
|
37 |
-
|
38 |
-
const DEFAULT_PIXEL_ID = null;
|
39 |
-
const PIXEL_ID_KEY = 'pixel_id';
|
40 |
-
const SETTINGS_KEY = 'facebook_config';
|
41 |
-
const USE_PII_KEY = 'use_pii';
|
42 |
-
const USE_ADVANCED_MATCHING_DEFAULT = null;
|
43 |
-
const USE_S2S_KEY = 'use_s2s';
|
44 |
-
const DEFAULT_ACCESS_TOKEN = null;
|
45 |
-
const ACCESS_TOKEN_KEY = 'access_token';
|
46 |
-
const USE_S2S_DEFAULT = null;
|
47 |
-
|
48 |
-
const IS_PIXEL_RENDERED = 'is_pixel_rendered';
|
49 |
-
const IS_NOSCRIPT_RENDERED = 'is_noscript_rendered';
|
50 |
-
|
51 |
-
// integration config: INTEGRATION_KEY => PLUGIN_CLASS
|
52 |
-
public static function integrationConfig() {
|
53 |
-
return array(
|
54 |
-
'CALDERA_FORM' => 'FacebookWordpressCalderaForm',
|
55 |
-
'CONTACT_FORM_7' => 'FacebookWordpressContactForm7',
|
56 |
-
'EASY_DIGITAL_DOWNLOAD' => 'FacebookWordpressEasyDigitalDownloads',
|
57 |
-
'FORMIDABLE_FORM' => 'FacebookWordpressFormidableForm',
|
58 |
-
'GRAVITY_FORMS' => 'FacebookWordpressGravityForms',
|
59 |
-
'MAILCHIMP_FOR_WP' => 'FacebookWordpressMailchimpForWp',
|
60 |
-
'NINJA_FORMS' => 'FacebookWordpressNinjaForms',
|
61 |
-
'WPFORMS' => 'FacebookWordpressWPForms',
|
62 |
-
'WP_E_COMMERCE' => 'FacebookWordpressWPECommerce',
|
63 |
-
);
|
64 |
-
}
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookPluginUtils.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Helper functions
|
24 |
-
*/
|
25 |
-
class FacebookPluginUtils {
|
26 |
-
/**
|
27 |
-
* Returns true if id is a positive non-zero integer
|
28 |
-
*
|
29 |
-
* @access public
|
30 |
-
* @param string $pixel_id
|
31 |
-
* @return bool
|
32 |
-
*/
|
33 |
-
public static function isPositiveInteger($pixel_id) {
|
34 |
-
return isset($pixel_id) && ctype_digit($pixel_id) && $pixel_id !== '0';
|
35 |
-
}
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Whether current user is Administrator.
|
39 |
-
*/
|
40 |
-
public static function isAdmin() {
|
41 |
-
return current_user_can('install_plugins');
|
42 |
-
}
|
43 |
-
|
44 |
-
public static function getLoggedInUserInfo() {
|
45 |
-
$current_user = wp_get_current_user();
|
46 |
-
if (empty($current_user)) {
|
47 |
-
return array();
|
48 |
-
}
|
49 |
-
|
50 |
-
return array(
|
51 |
-
'email' => $current_user->user_email,
|
52 |
-
'first_name' => $current_user->user_firstname,
|
53 |
-
'last_name' => $current_user->user_lastname,
|
54 |
-
);
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookServerSideEvent.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
use FacebookAds\Api;
|
21 |
-
use FacebookAds\Object\ServerSide\Event;
|
22 |
-
use FacebookAds\Object\ServerSide\EventRequest;
|
23 |
-
use FacebookAds\Object\ServerSide\UserData;
|
24 |
-
|
25 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
26 |
-
|
27 |
-
class FacebookServerSideEvent {
|
28 |
-
private static $instance = null;
|
29 |
-
private $tracked_events = [];
|
30 |
-
|
31 |
-
public static function getInstance() {
|
32 |
-
if (self::$instance == null) {
|
33 |
-
self::$instance = new FacebookServerSideEvent();
|
34 |
-
}
|
35 |
-
|
36 |
-
return self::$instance;
|
37 |
-
}
|
38 |
-
|
39 |
-
public function track($event) {
|
40 |
-
$this->tracked_events[] = $event;
|
41 |
-
|
42 |
-
if (FacebookWordpressOptions::getUseS2S()) {
|
43 |
-
do_action('send_server_event', $event);
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
public function getTrackedEvents() {
|
48 |
-
return $this->tracked_events;
|
49 |
-
}
|
50 |
-
|
51 |
-
public static function send($events) {
|
52 |
-
if (empty($events)) {
|
53 |
-
return;
|
54 |
-
}
|
55 |
-
|
56 |
-
$pixel_id = FacebookWordpressOptions::getPixelId();
|
57 |
-
$access_token = FacebookWordpressOptions::getAccessToken();
|
58 |
-
$agent = FacebookWordpressOptions::getAgentString();
|
59 |
-
|
60 |
-
$api = Api::init(null, null, $access_token);
|
61 |
-
|
62 |
-
$request = (new EventRequest($pixel_id))
|
63 |
-
->setEvents($events)
|
64 |
-
->setPartnerAgent($agent);
|
65 |
-
|
66 |
-
$response = $request->execute();
|
67 |
-
}
|
68 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookWordpressOptions.php
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class FacebookWordpressOptions {
|
23 |
-
private static $options = array();
|
24 |
-
private static $userInfo = array();
|
25 |
-
private static $versionInfo = array();
|
26 |
-
|
27 |
-
public static function initialize() {
|
28 |
-
self::setOptions();
|
29 |
-
self::setUserInfo();
|
30 |
-
self::setVersionInfo();
|
31 |
-
}
|
32 |
-
|
33 |
-
public static function getOptions() {
|
34 |
-
return self::$options;
|
35 |
-
}
|
36 |
-
|
37 |
-
public static function getDefaultPixelID() {
|
38 |
-
return is_null(FacebookPluginConfig::DEFAULT_PIXEL_ID)
|
39 |
-
? '' : FacebookPluginConfig::DEFAULT_PIXEL_ID;
|
40 |
-
}
|
41 |
-
|
42 |
-
public static function getDefaultAccessToken() {
|
43 |
-
return is_null(FacebookPluginConfig::DEFAULT_ACCESS_TOKEN)
|
44 |
-
? '' : FacebookPluginConfig::DEFAULT_ACCESS_TOKEN;
|
45 |
-
}
|
46 |
-
|
47 |
-
// Default is on for unset config
|
48 |
-
public static function getDefaultUsePIIKey() {
|
49 |
-
return (!is_null(FacebookPluginConfig::USE_ADVANCED_MATCHING_DEFAULT)
|
50 |
-
&& !FacebookPluginConfig::USE_ADVANCED_MATCHING_DEFAULT) ? '0' : '1';
|
51 |
-
}
|
52 |
-
|
53 |
-
// We default not to send events through S2S, if the config is unset.
|
54 |
-
public static function getDefaultUseS2SKey() {
|
55 |
-
return (is_null(FacebookPluginConfig::USE_S2S_DEFAULT)
|
56 |
-
|| !FacebookPluginConfig::USE_S2S_DEFAULT) ? '0' : '1';
|
57 |
-
}
|
58 |
-
|
59 |
-
private static function setOptions() {
|
60 |
-
self::$options = \get_option(
|
61 |
-
FacebookPluginConfig::SETTINGS_KEY,
|
62 |
-
array(
|
63 |
-
FacebookPluginConfig::PIXEL_ID_KEY => self::getDefaultPixelID(),
|
64 |
-
FacebookPluginConfig::USE_PII_KEY => self::getDefaultUsePIIKey(),
|
65 |
-
FacebookPluginConfig::USE_S2S_KEY => self::getDefaultUseS2SKey(),
|
66 |
-
FacebookPluginConfig::ACCESS_TOKEN_KEY => self::getDefaultAccessToken(),
|
67 |
-
));
|
68 |
-
|
69 |
-
// we need esc_js because the id is set through the form
|
70 |
-
if (array_key_exists(FacebookPluginConfig::PIXEL_ID_KEY, self::$options)) {
|
71 |
-
self::$options[FacebookPluginConfig::PIXEL_ID_KEY] =
|
72 |
-
esc_js(self::$options[FacebookPluginConfig::PIXEL_ID_KEY]);
|
73 |
-
}
|
74 |
-
|
75 |
-
if (array_key_exists(
|
76 |
-
FacebookPluginConfig::ACCESS_TOKEN_KEY, self::$options)) {
|
77 |
-
self::$options[FacebookPluginConfig::ACCESS_TOKEN_KEY] =
|
78 |
-
esc_js(self::$options[FacebookPluginConfig::ACCESS_TOKEN_KEY]);
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
public static function getPixelId() {
|
83 |
-
if (array_key_exists(FacebookPluginConfig::PIXEL_ID_KEY, self::$options)) {
|
84 |
-
return self::$options[FacebookPluginConfig::PIXEL_ID_KEY];
|
85 |
-
}
|
86 |
-
|
87 |
-
return self::getDefaultPixelID();
|
88 |
-
}
|
89 |
-
|
90 |
-
public static function getAccessToken() {
|
91 |
-
if (array_key_exists(
|
92 |
-
FacebookPluginConfig::ACCESS_TOKEN_KEY, self::$options)) {
|
93 |
-
return self::$options[FacebookPluginConfig::ACCESS_TOKEN_KEY];
|
94 |
-
}
|
95 |
-
|
96 |
-
return self::getDefaultAccessToken();
|
97 |
-
}
|
98 |
-
|
99 |
-
public static function getUsePii() {
|
100 |
-
if (array_key_exists(
|
101 |
-
FacebookPluginConfig::USE_PII_KEY, self::$options)) {
|
102 |
-
return self::$options[FacebookPluginConfig::USE_PII_KEY];
|
103 |
-
}
|
104 |
-
|
105 |
-
return self::getDefaultUsePIIKey();
|
106 |
-
}
|
107 |
-
|
108 |
-
public static function getUseS2S() {
|
109 |
-
if (array_key_exists(FacebookPluginConfig::USE_S2S_KEY, self::$options)) {
|
110 |
-
return self::$options[FacebookPluginConfig::USE_S2S_KEY];
|
111 |
-
}
|
112 |
-
|
113 |
-
return self::getDefaultUseS2SKey();
|
114 |
-
}
|
115 |
-
|
116 |
-
public static function getUserInfo() {
|
117 |
-
return self::$userInfo;
|
118 |
-
}
|
119 |
-
|
120 |
-
public static function setUserInfo() {
|
121 |
-
add_action(
|
122 |
-
'init',
|
123 |
-
array(
|
124 |
-
'FacebookPixelPlugin\\Core\\FacebookWordpressOptions',
|
125 |
-
'registerUserInfo'
|
126 |
-
),
|
127 |
-
0);
|
128 |
-
}
|
129 |
-
|
130 |
-
public static function registerUserInfo() {
|
131 |
-
$current_user = wp_get_current_user();
|
132 |
-
$use_pii = self::getUsePii();
|
133 |
-
if (0 === $current_user->ID || $use_pii !== '1') {
|
134 |
-
// User not logged in or admin chose not to send PII.
|
135 |
-
self::$userInfo = array();
|
136 |
-
} else {
|
137 |
-
self::$userInfo = array_filter(
|
138 |
-
array(
|
139 |
-
// Keys documented in
|
140 |
-
// https://developers.facebook.com/docs/facebook-pixel/pixel-with-ads/conversion-tracking#advanced_match
|
141 |
-
'em' => $current_user->user_email,
|
142 |
-
'fn' => $current_user->user_firstname,
|
143 |
-
'ln' => $current_user->user_lastname
|
144 |
-
),
|
145 |
-
function ($value) { return $value !== null && $value !== ''; });
|
146 |
-
}
|
147 |
-
}
|
148 |
-
|
149 |
-
public static function getVersionInfo() {
|
150 |
-
return self::$versionInfo;
|
151 |
-
}
|
152 |
-
|
153 |
-
public static function setVersionInfo() {
|
154 |
-
global $wp_version;
|
155 |
-
|
156 |
-
self::$versionInfo = array(
|
157 |
-
'pluginVersion' => FacebookPluginConfig::PLUGIN_VERSION,
|
158 |
-
'source' => FacebookPluginConfig::SOURCE,
|
159 |
-
'version' => $wp_version
|
160 |
-
);
|
161 |
-
}
|
162 |
-
|
163 |
-
public static function getAgentString() {
|
164 |
-
return sprintf(
|
165 |
-
'%s-%s-%s',
|
166 |
-
self::$versionInfo['source'],
|
167 |
-
self::$versionInfo['version'],
|
168 |
-
self::$versionInfo['pluginVersion']);
|
169 |
-
}
|
170 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookWordpressPixelInjection.php
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class FacebookWordpressPixelInjection {
|
23 |
-
public static $renderCache = array();
|
24 |
-
|
25 |
-
public function __construct() {
|
26 |
-
}
|
27 |
-
|
28 |
-
public function inject() {
|
29 |
-
$pixel_id = FacebookWordpressOptions::getPixelId();
|
30 |
-
if (FacebookPluginUtils::isPositiveInteger($pixel_id)) {
|
31 |
-
add_action(
|
32 |
-
'wp_head',
|
33 |
-
array($this, 'injectPixelCode'));
|
34 |
-
add_action(
|
35 |
-
'wp_head',
|
36 |
-
array($this, 'injectPixelNoscriptCode'));
|
37 |
-
|
38 |
-
foreach (FacebookPluginConfig::integrationConfig() as $key => $value) {
|
39 |
-
$class_name = 'FacebookPixelPlugin\\Integration\\'.$value;
|
40 |
-
$class_name::injectPixelCode();
|
41 |
-
}
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
public function injectPixelCode() {
|
46 |
-
$pixel_id = FacebookPixel::getPixelId();
|
47 |
-
if (
|
48 |
-
(isset(self::$renderCache[FacebookPluginConfig::IS_PIXEL_RENDERED]) &&
|
49 |
-
self::$renderCache[FacebookPluginConfig::IS_PIXEL_RENDERED] === true) ||
|
50 |
-
empty($pixel_id)
|
51 |
-
) {
|
52 |
-
return;
|
53 |
-
}
|
54 |
-
|
55 |
-
self::$renderCache[FacebookPluginConfig::IS_PIXEL_RENDERED] = true;
|
56 |
-
echo(FacebookPixel::getPixelBaseCode());
|
57 |
-
echo(FacebookPixel::getPixelInitCode(
|
58 |
-
FacebookWordpressOptions::getAgentString(),
|
59 |
-
FacebookWordpressOptions::getUserInfo()));
|
60 |
-
echo(FacebookPixel::getPixelPageViewCode());
|
61 |
-
}
|
62 |
-
|
63 |
-
public function injectPixelNoscriptCode() {
|
64 |
-
echo(FacebookPixel::getPixelNoscriptCode());
|
65 |
-
}
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/FacebookWordpressSettingsPage.php
DELETED
@@ -1,310 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class FacebookWordpressSettingsPage {
|
23 |
-
private $optionsPage = '';
|
24 |
-
|
25 |
-
public function __construct($plugin_name) {
|
26 |
-
add_action('admin_menu', array($this, 'addMenu'));
|
27 |
-
add_action('admin_init', array($this, 'registerSettingsPage'));
|
28 |
-
add_action('admin_init', array($this, 'dismissNotices'));
|
29 |
-
add_action('admin_enqueue_scripts', array($this, 'registerPluginStyles'));
|
30 |
-
add_action('current_screen', array($this, 'registerNotices'));
|
31 |
-
add_filter(
|
32 |
-
'plugin_action_links_'.$plugin_name,
|
33 |
-
array($this, 'addSettingsLink'));
|
34 |
-
}
|
35 |
-
|
36 |
-
public function addMenu() {
|
37 |
-
$this->optionsPage = add_options_page(
|
38 |
-
FacebookPluginConfig::ADMIN_PAGE_TITLE,
|
39 |
-
FacebookPluginConfig::ADMIN_MENU_TITLE,
|
40 |
-
FacebookPluginConfig::ADMIN_CAPABILITY,
|
41 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG,
|
42 |
-
array($this, 'createMenuPage'));
|
43 |
-
}
|
44 |
-
|
45 |
-
public function createMenuPage() {
|
46 |
-
if (!current_user_can(FacebookPluginConfig::ADMIN_CAPABILITY)) {
|
47 |
-
wp_die(__(
|
48 |
-
'You do not have sufficient permissions to access this page',
|
49 |
-
FacebookPluginConfig::TEXT_DOMAIN));
|
50 |
-
}
|
51 |
-
|
52 |
-
printf(
|
53 |
-
'
|
54 |
-
<div class="wrap">
|
55 |
-
<h2>%s</h2>
|
56 |
-
<form action="options.php" method="POST">
|
57 |
-
',
|
58 |
-
FacebookPluginConfig::ADMIN_PAGE_TITLE);
|
59 |
-
settings_fields(FacebookPluginConfig::ADMIN_OPTION_GROUP);
|
60 |
-
do_settings_sections(FacebookPluginConfig::ADMIN_MENU_SLUG);
|
61 |
-
submit_button();
|
62 |
-
printf(
|
63 |
-
'
|
64 |
-
</form>
|
65 |
-
</div>
|
66 |
-
');
|
67 |
-
}
|
68 |
-
|
69 |
-
public function registerSettingsPage() {
|
70 |
-
register_setting(
|
71 |
-
FacebookPluginConfig::ADMIN_OPTION_GROUP,
|
72 |
-
FacebookPluginConfig::SETTINGS_KEY,
|
73 |
-
array($this, 'sanitizeInput'));
|
74 |
-
add_settings_section(
|
75 |
-
FacebookPluginConfig::ADMIN_SECTION_ID,
|
76 |
-
null,
|
77 |
-
array($this, 'sectionSubTitle'),
|
78 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG);
|
79 |
-
add_settings_field(
|
80 |
-
FacebookPluginConfig::PIXEL_ID_KEY,
|
81 |
-
'Pixel ID',
|
82 |
-
array($this, 'pixelIdFormField'),
|
83 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG,
|
84 |
-
FacebookPluginConfig::ADMIN_SECTION_ID);
|
85 |
-
add_settings_field(
|
86 |
-
FacebookPluginConfig::USE_PII_KEY,
|
87 |
-
'Use Advanced Matching on pixel?',
|
88 |
-
array($this, 'usePiiFormField'),
|
89 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG,
|
90 |
-
FacebookPluginConfig::ADMIN_SECTION_ID);
|
91 |
-
add_settings_field(
|
92 |
-
FacebookPluginConfig::USE_S2S_KEY,
|
93 |
-
'Use Server-Side API?',
|
94 |
-
array($this, 'useS2SFormField'),
|
95 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG,
|
96 |
-
FacebookPluginConfig::ADMIN_SECTION_ID);
|
97 |
-
add_settings_field(
|
98 |
-
FacebookPluginConfig::ACCESS_TOKEN_KEY,
|
99 |
-
'Access Token',
|
100 |
-
array($this, 'accessTokenFormField'),
|
101 |
-
FacebookPluginConfig::ADMIN_MENU_SLUG,
|
102 |
-
FacebookPluginConfig::ADMIN_SECTION_ID);
|
103 |
-
}
|
104 |
-
|
105 |
-
public function sanitizeInput($input) {
|
106 |
-
$input[FacebookPluginConfig::USE_PII_KEY] =
|
107 |
-
!empty($input[FacebookPluginConfig::USE_PII_KEY])
|
108 |
-
? '1'
|
109 |
-
: '0';
|
110 |
-
$input[FacebookPluginConfig::PIXEL_ID_KEY] =
|
111 |
-
!empty($input[FacebookPluginConfig::PIXEL_ID_KEY])
|
112 |
-
? FacebookPluginUtils::isPositiveInteger($input[FacebookPluginConfig::PIXEL_ID_KEY])
|
113 |
-
? $input[FacebookPluginConfig::PIXEL_ID_KEY]
|
114 |
-
: ''
|
115 |
-
: FacebookPixel::getPixelId();
|
116 |
-
return $input;
|
117 |
-
}
|
118 |
-
|
119 |
-
public function sectionSubTitle() {
|
120 |
-
printf(
|
121 |
-
esc_html__(
|
122 |
-
'Please note that we are now also supporting lower funnel pixel events for Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms',
|
123 |
-
FacebookPluginConfig::TEXT_DOMAIN));
|
124 |
-
}
|
125 |
-
|
126 |
-
public function pixelIdFormField() {
|
127 |
-
$description = esc_html__(
|
128 |
-
'The unique identifier for your Facebook pixel.',
|
129 |
-
FacebookPluginConfig::TEXT_DOMAIN);
|
130 |
-
|
131 |
-
$pixel_id = FacebookWordpressOptions::getPixelId();
|
132 |
-
printf(
|
133 |
-
'
|
134 |
-
<input name="%s" id="%s" value="%s" />
|
135 |
-
<p class="description">%s</p>
|
136 |
-
',
|
137 |
-
FacebookPluginConfig::SETTINGS_KEY . '[' . FacebookPluginConfig::PIXEL_ID_KEY . ']',
|
138 |
-
FacebookPluginConfig::PIXEL_ID_KEY,
|
139 |
-
isset($pixel_id)
|
140 |
-
? esc_attr($pixel_id)
|
141 |
-
: '',
|
142 |
-
$description);
|
143 |
-
}
|
144 |
-
|
145 |
-
|
146 |
-
public function accessTokenFormField() {
|
147 |
-
$description = esc_html__(
|
148 |
-
'',
|
149 |
-
FacebookPluginConfig::TEXT_DOMAIN);
|
150 |
-
|
151 |
-
$access_token = FacebookWordpressOptions::getAccessToken();
|
152 |
-
$existing_access_token_value = isset($access_token) ? esc_attr($access_token) : '';
|
153 |
-
$input_name = FacebookPluginConfig::SETTINGS_KEY .
|
154 |
-
'[' . FacebookPluginConfig::ACCESS_TOKEN_KEY . ']';
|
155 |
-
|
156 |
-
printf(
|
157 |
-
'
|
158 |
-
<textarea name="%s" id="%s" rows=4 cols=60 maxlength=250>%s</textarea>
|
159 |
-
<p class="description">%s</p>
|
160 |
-
',
|
161 |
-
$input_name,
|
162 |
-
FacebookPluginConfig::ACCESS_TOKEN_KEY,
|
163 |
-
$existing_access_token_value,
|
164 |
-
$description);
|
165 |
-
}
|
166 |
-
|
167 |
-
public function usePiiFormField() {
|
168 |
-
$link = sprintf(
|
169 |
-
wp_kses(
|
170 |
-
__(
|
171 |
-
'For businesses that operate in the European Union, you may need to take additional action. Read the <a href="%s" target="_blank">Cookie Consent Guide for Sites and Apps</a> for suggestions on complying with EU privacy requirements.',
|
172 |
-
FacebookPluginConfig::TEXT_DOMAIN),
|
173 |
-
array('a' => array('href' => array(), 'target' => array()))),
|
174 |
-
esc_url(FacebookPluginConfig::ADMIN_PRIVACY_URL));
|
175 |
-
printf(
|
176 |
-
'
|
177 |
-
<label for="%s">
|
178 |
-
<input
|
179 |
-
type="checkbox"
|
180 |
-
name="%s"
|
181 |
-
id="%s"
|
182 |
-
value="1"
|
183 |
-
',
|
184 |
-
FacebookPluginConfig::USE_PII_KEY,
|
185 |
-
FacebookPluginConfig::SETTINGS_KEY . '[' . FacebookPluginConfig::USE_PII_KEY . ']',
|
186 |
-
FacebookPluginConfig::USE_PII_KEY);
|
187 |
-
checked(1, FacebookWordpressOptions::getUsePii());
|
188 |
-
printf(
|
189 |
-
'
|
190 |
-
/>
|
191 |
-
%s
|
192 |
-
</label>
|
193 |
-
<p class="description">%s</p>
|
194 |
-
',
|
195 |
-
esc_html__(
|
196 |
-
'Enabling Advanced Matching improves audience building.',
|
197 |
-
FacebookPluginConfig::TEXT_DOMAIN),
|
198 |
-
$link);
|
199 |
-
}
|
200 |
-
|
201 |
-
// Allow to the Plugin to send S2S Events
|
202 |
-
public function useS2SFormField() {
|
203 |
-
$link = sprintf(
|
204 |
-
wp_kses(
|
205 |
-
__(
|
206 |
-
'An access token is required to use the server-side API.<br>
|
207 |
-
<a href="%s" target="_blank"> Generate Access Token</a>',
|
208 |
-
FacebookPluginConfig::TEXT_DOMAIN),
|
209 |
-
array('a' => array('href' => array(), 'target' => array()))),
|
210 |
-
esc_url(FacebookPluginConfig::ADMIN_S2S_URL));
|
211 |
-
printf(
|
212 |
-
'
|
213 |
-
<label for="%s">
|
214 |
-
<input
|
215 |
-
type="checkbox"
|
216 |
-
name="%s"
|
217 |
-
id="%s"
|
218 |
-
value="1"
|
219 |
-
',
|
220 |
-
FacebookPluginConfig::USE_S2S_KEY,
|
221 |
-
FacebookPluginConfig::SETTINGS_KEY . '[' . FacebookPluginConfig::USE_S2S_KEY . ']',
|
222 |
-
FacebookPluginConfig::USE_S2S_KEY);
|
223 |
-
checked(1, FacebookWordpressOptions::getUseS2S());
|
224 |
-
printf(
|
225 |
-
'
|
226 |
-
/>
|
227 |
-
%s
|
228 |
-
</label>
|
229 |
-
<p class="description">%s</p>
|
230 |
-
',
|
231 |
-
esc_html__(
|
232 |
-
'Also send events directly from your web server to Facebook through the
|
233 |
-
server-side API. This can help you capture more events.',
|
234 |
-
FacebookPluginConfig::TEXT_DOMAIN),
|
235 |
-
$link);
|
236 |
-
}
|
237 |
-
|
238 |
-
|
239 |
-
public function registerNotices() {
|
240 |
-
// Update class field
|
241 |
-
$pixel_id = FacebookWordpressOptions::getPixelId();
|
242 |
-
$current_screen_id = get_current_screen()->id;
|
243 |
-
if (
|
244 |
-
!FacebookPluginUtils::isPositiveInteger($pixel_id)
|
245 |
-
&& current_user_can(FacebookPluginConfig::ADMIN_CAPABILITY)
|
246 |
-
&& in_array(
|
247 |
-
$current_screen_id,
|
248 |
-
array('dashboard', 'plugins', $this->optionsPage),
|
249 |
-
true)
|
250 |
-
&& !get_user_meta(
|
251 |
-
get_current_user_id(),
|
252 |
-
FacebookPluginConfig::ADMIN_IGNORE_PIXEL_ID_NOTICE,
|
253 |
-
true)
|
254 |
-
) {
|
255 |
-
add_action('admin_notices', array($this, 'pixelIdNotSetNotice'));
|
256 |
-
}
|
257 |
-
}
|
258 |
-
|
259 |
-
public function pixelIdNotSetNotice() {
|
260 |
-
$url = admin_url('options-general.php?page='.FacebookPluginConfig::ADMIN_MENU_SLUG);
|
261 |
-
$link = sprintf(
|
262 |
-
wp_kses(
|
263 |
-
__(
|
264 |
-
'The Facebook Pixel plugin requires a Pixel ID. Click <a href="%s">here</a> to configure the plugin.',
|
265 |
-
FacebookPluginConfig::TEXT_DOMAIN),
|
266 |
-
array('a' => array('href' => array()))),
|
267 |
-
esc_url($url));
|
268 |
-
printf(
|
269 |
-
'
|
270 |
-
<div class="notice notice-warning is-dismissible hide-last-button">
|
271 |
-
<p>%s</p>
|
272 |
-
<button
|
273 |
-
type="button"
|
274 |
-
class="notice-dismiss"
|
275 |
-
onClick="location.href=\'%s\'">
|
276 |
-
<span class="screen-reader-text">%s</span>
|
277 |
-
</button>
|
278 |
-
</div>
|
279 |
-
',
|
280 |
-
$link,
|
281 |
-
esc_url(add_query_arg(FacebookPluginConfig::ADMIN_DISMISS_PIXEL_ID_NOTICE, '')),
|
282 |
-
esc_html__(
|
283 |
-
'Dismiss this notice.',
|
284 |
-
FacebookPluginConfig::TEXT_DOMAIN));
|
285 |
-
}
|
286 |
-
|
287 |
-
public function dismissNotices() {
|
288 |
-
$user_id = get_current_user_id();
|
289 |
-
if (isset($_GET[FacebookPluginConfig::ADMIN_DISMISS_PIXEL_ID_NOTICE])) {
|
290 |
-
update_user_meta($user_id, FacebookPluginConfig::ADMIN_IGNORE_PIXEL_ID_NOTICE, true);
|
291 |
-
}
|
292 |
-
}
|
293 |
-
|
294 |
-
public function registerPluginStyles() {
|
295 |
-
wp_register_style(
|
296 |
-
FacebookPluginConfig::TEXT_DOMAIN,
|
297 |
-
plugins_url('../css/admin.css', __FILE__));
|
298 |
-
wp_enqueue_style(FacebookPluginConfig::TEXT_DOMAIN);
|
299 |
-
}
|
300 |
-
|
301 |
-
public function addSettingsLink($links) {
|
302 |
-
$settings = array(
|
303 |
-
'settings' => sprintf(
|
304 |
-
'<a href="%s">%s</a>',
|
305 |
-
admin_url('options-general.php?page='.FacebookPluginConfig::ADMIN_MENU_SLUG),
|
306 |
-
'Settings')
|
307 |
-
);
|
308 |
-
return array_merge($settings, $links);
|
309 |
-
}
|
310 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/PixelRenderer.php
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
use ReflectionClass;
|
21 |
-
use FacebookAds\Object\ServerSide\CustomData;
|
22 |
-
|
23 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
24 |
-
|
25 |
-
class PixelRenderer {
|
26 |
-
const EVENT_ID = 'eventID';
|
27 |
-
const TRACK = 'track';
|
28 |
-
const TRACK_CUSTOM = 'trackCustom';
|
29 |
-
const FB_INTEGRATION_TRACKING = 'fb_integration_tracking';
|
30 |
-
const SCRIPT_TAG = "<script type='text/javascript'>%s</script>";
|
31 |
-
const FBQ_CODE = "
|
32 |
-
fbq('%s', '%s', %s, %s);
|
33 |
-
";
|
34 |
-
|
35 |
-
public static function render($events, $fb_integration_tracking) {
|
36 |
-
if (empty($events)) {
|
37 |
-
return "";
|
38 |
-
}
|
39 |
-
|
40 |
-
$code = "";
|
41 |
-
foreach ($events as $event) {
|
42 |
-
$code .= self::getPixelTrackCode($event, $fb_integration_tracking);
|
43 |
-
}
|
44 |
-
|
45 |
-
return sprintf(self::SCRIPT_TAG, $code);
|
46 |
-
}
|
47 |
-
|
48 |
-
private static function getPixelTrackCode($event, $fb_integration_tracking) {
|
49 |
-
$event_data[self::EVENT_ID] = $event->getEventId();
|
50 |
-
|
51 |
-
$custom_data = $event->getCustomData() !== null ?
|
52 |
-
$event->getCustomData() :
|
53 |
-
new CustomData();
|
54 |
-
|
55 |
-
$normalized_custom_data = $custom_data->normalize();
|
56 |
-
if (!is_null($fb_integration_tracking)) {
|
57 |
-
$normalized_custom_data[
|
58 |
-
self::FB_INTEGRATION_TRACKING] = $fb_integration_tracking;
|
59 |
-
}
|
60 |
-
|
61 |
-
$class = new ReflectionClass('FacebookPixelPlugin\Core\FacebookPixel');
|
62 |
-
|
63 |
-
return sprintf(
|
64 |
-
self::FBQ_CODE,
|
65 |
-
$class->getConstant(strtoupper($event->getEventName())) !== false
|
66 |
-
? self::TRACK : self::TRACK_CUSTOM,
|
67 |
-
$event->getEventName(),
|
68 |
-
json_encode($normalized_custom_data, JSON_PRETTY_PRINT),
|
69 |
-
json_encode($event_data, JSON_PRETTY_PRINT)
|
70 |
-
);
|
71 |
-
}
|
72 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/ServerEventAsyncTask.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
21 |
-
|
22 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
23 |
-
|
24 |
-
class ServerEventAsyncTask extends \WP_Async_Task {
|
25 |
-
protected $action = 'send_server_event';
|
26 |
-
|
27 |
-
protected function prepare_data($data) {
|
28 |
-
try {
|
29 |
-
if (!empty($data)) {
|
30 |
-
return array('data' => base64_encode(serialize($data)));
|
31 |
-
}
|
32 |
-
} catch (\Exception $ex) {
|
33 |
-
error_log($ex);
|
34 |
-
}
|
35 |
-
|
36 |
-
return array();
|
37 |
-
}
|
38 |
-
|
39 |
-
protected function run_action() {
|
40 |
-
try {
|
41 |
-
$events = unserialize(base64_decode($_POST['data']));
|
42 |
-
if (empty($events)) {
|
43 |
-
return;
|
44 |
-
}
|
45 |
-
|
46 |
-
FacebookServerSideEvent::send($events);
|
47 |
-
}
|
48 |
-
catch (\Exception $ex) {
|
49 |
-
error_log($ex);
|
50 |
-
}
|
51 |
-
}
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/core/ServerEventFactory.php
DELETED
@@ -1,163 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Core;
|
19 |
-
|
20 |
-
use FacebookAds\Object\ServerSide\Event;
|
21 |
-
use FacebookAds\Object\ServerSide\UserData;
|
22 |
-
use FacebookAds\Object\ServerSide\CustomData;
|
23 |
-
use FacebookPixelPlugin\Core\EventIdGenerator;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookWordpressOptions;
|
25 |
-
|
26 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
27 |
-
|
28 |
-
class ServerEventFactory {
|
29 |
-
public static function newEvent($event_name) {
|
30 |
-
$user_data = (new UserData())
|
31 |
-
->setClientIpAddress(self::getIpAddress())
|
32 |
-
->setClientUserAgent(self::getHttpUserAgent())
|
33 |
-
->setFbp(self::getFbp())
|
34 |
-
->setFbc(self::getFbc());
|
35 |
-
|
36 |
-
$event = (new Event())
|
37 |
-
->setEventName($event_name)
|
38 |
-
->setEventTime(time())
|
39 |
-
->setEventId(EventIdGenerator::guidv4())
|
40 |
-
->setEventSourceUrl(self::getRequestUri())
|
41 |
-
->setUserData($user_data)
|
42 |
-
->setCustomData(new CustomData());
|
43 |
-
|
44 |
-
return $event;
|
45 |
-
}
|
46 |
-
|
47 |
-
private static function getIpAddress() {
|
48 |
-
$ip_address = null;
|
49 |
-
|
50 |
-
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
51 |
-
$ip_address = $_SERVER['HTTP_CLIENT_IP'];
|
52 |
-
} else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
53 |
-
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
54 |
-
} else if (!empty($_SERVER['REMOTE_ADDR'])) {
|
55 |
-
$ip_address = $_SERVER['REMOTE_ADDR'];
|
56 |
-
}
|
57 |
-
|
58 |
-
return $ip_address;
|
59 |
-
}
|
60 |
-
|
61 |
-
private static function getHttpUserAgent() {
|
62 |
-
$user_agent = null;
|
63 |
-
|
64 |
-
if (!empty($_SERVER['HTTP_USER_AGENT'])) {
|
65 |
-
$user_agent = $_SERVER['HTTP_USER_AGENT'];
|
66 |
-
}
|
67 |
-
|
68 |
-
return $user_agent;
|
69 |
-
}
|
70 |
-
|
71 |
-
private static function getRequestUri() {
|
72 |
-
$url = "http://";
|
73 |
-
if(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
|
74 |
-
$url = "https://";
|
75 |
-
}
|
76 |
-
|
77 |
-
if (!empty($_SERVER['HTTP_HOST'])) {
|
78 |
-
$url .= $_SERVER['HTTP_HOST'];
|
79 |
-
}
|
80 |
-
|
81 |
-
if (!empty($_SERVER['REQUEST_URI'])) {
|
82 |
-
$url .= $_SERVER['REQUEST_URI'];
|
83 |
-
}
|
84 |
-
|
85 |
-
return $url;
|
86 |
-
}
|
87 |
-
|
88 |
-
private static function getFbp() {
|
89 |
-
$fbp = null;
|
90 |
-
|
91 |
-
if (!empty($_COOKIE['_fbp'])) {
|
92 |
-
$fbp = $_COOKIE['_fbp'];
|
93 |
-
}
|
94 |
-
|
95 |
-
return $fbp;
|
96 |
-
}
|
97 |
-
|
98 |
-
private static function getFbc() {
|
99 |
-
$fbc = null;
|
100 |
-
|
101 |
-
if (!empty($_COOKIE['_fbc'])) {
|
102 |
-
$fbc = $_COOKIE['_fbc'];
|
103 |
-
}
|
104 |
-
|
105 |
-
return $fbc;
|
106 |
-
}
|
107 |
-
|
108 |
-
public static function safeCreateEvent($event_name, $callback, $arguments) {
|
109 |
-
$event = self::newEvent($event_name);
|
110 |
-
|
111 |
-
try {
|
112 |
-
$data = call_user_func_array($callback, $arguments);
|
113 |
-
|
114 |
-
if (FacebookWordpressOptions::getUsePii()) {
|
115 |
-
$user_data = $event->getUserData();
|
116 |
-
if (!empty($data['email'])) {
|
117 |
-
$user_data->setEmail($data['email']);
|
118 |
-
}
|
119 |
-
|
120 |
-
if (!empty($data['first_name'])) {
|
121 |
-
$user_data->setFirstName($data['first_name']);
|
122 |
-
}
|
123 |
-
|
124 |
-
if (!empty($data['last_name'])) {
|
125 |
-
$user_data->setLastName($data['last_name']);
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
$custom_data = $event->getCustomData();
|
130 |
-
if (!empty($data['currency'])) {
|
131 |
-
$custom_data->setCurrency($data['currency']);
|
132 |
-
}
|
133 |
-
|
134 |
-
if (!empty($data['value'])) {
|
135 |
-
$custom_data->setValue($data['value']);
|
136 |
-
}
|
137 |
-
|
138 |
-
if (!empty($data['content_ids'])) {
|
139 |
-
$custom_data->setContentIds($data['content_ids']);
|
140 |
-
}
|
141 |
-
|
142 |
-
if (!empty($data['content_type'])) {
|
143 |
-
$custom_data->setContentType($data['content_type']);
|
144 |
-
}
|
145 |
-
} catch (\Exception $e) {
|
146 |
-
// Need to log
|
147 |
-
}
|
148 |
-
|
149 |
-
return $event;
|
150 |
-
}
|
151 |
-
|
152 |
-
public static function splitName($name) {
|
153 |
-
$first_name = $name;
|
154 |
-
$last_name = null;
|
155 |
-
$index = strpos($name, ' ');
|
156 |
-
if ($index !== false) {
|
157 |
-
$first_name = substr($name, 0, $index);
|
158 |
-
$last_name = substr($name, $index + 1);
|
159 |
-
}
|
160 |
-
|
161 |
-
return array($first_name, $last_name);
|
162 |
-
}
|
163 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/css/admin.css
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Copyright 2017-present, Facebook, Inc.
|
3 |
-
* All rights reserved.
|
4 |
-
*
|
5 |
-
* This source code is licensed under the license found in the
|
6 |
-
* LICENSE file in the root directory of this source tree.
|
7 |
-
*/
|
8 |
-
|
9 |
-
.hide-last-button button:last-of-type{
|
10 |
-
display: none;
|
11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/facebook-for-wordpress.php
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Name: Official Facebook Pixel
|
4 |
-
* Plugin URI: https://www.facebook.com/business/help/881403525362441
|
5 |
-
* Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
|
6 |
-
* Author: Facebook
|
7 |
-
* Author URI: https://www.facebook.com/
|
8 |
-
* Version: 2.0.1
|
9 |
-
* Text Domain: official-facebook-pixel
|
10 |
-
*/
|
11 |
-
|
12 |
-
/*
|
13 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
14 |
-
*
|
15 |
-
* This program is free software; you can redistribute it and/or modify
|
16 |
-
* it under the terms of the GNU General Public License as published by
|
17 |
-
* the Free Software Foundation; version 2 of the License.
|
18 |
-
* This program is distributed in the hope that it will be useful,
|
19 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
* GNU General Public License for more details.
|
22 |
-
*/
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @package FacebookPixelPlugin
|
26 |
-
*/
|
27 |
-
|
28 |
-
namespace FacebookPixelPlugin;
|
29 |
-
|
30 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
31 |
-
|
32 |
-
require_once plugin_dir_path(__FILE__).'vendor/autoload.php';
|
33 |
-
|
34 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
35 |
-
use FacebookPixelPlugin\Core\FacebookPluginConfig;
|
36 |
-
use FacebookPixelPlugin\Core\FacebookWordpressOptions;
|
37 |
-
use FacebookPixelPlugin\Core\FacebookWordpressPixelInjection;
|
38 |
-
use FacebookPixelPlugin\Core\FacebookWordpressSettingsPage;
|
39 |
-
use FacebookPixelPlugin\Core\ServerEventAsyncTask;
|
40 |
-
|
41 |
-
class FacebookForWordpress {
|
42 |
-
public function __construct() {
|
43 |
-
// initialize options
|
44 |
-
FacebookWordpressOptions::initialize();
|
45 |
-
|
46 |
-
// load textdomain
|
47 |
-
load_plugin_textdomain(
|
48 |
-
FacebookPluginConfig::TEXT_DOMAIN,
|
49 |
-
false,
|
50 |
-
dirname(plugin_basename(__FILE__)) . '/languages/');
|
51 |
-
|
52 |
-
// initialize pixel
|
53 |
-
$options = FacebookWordpressOptions::getOptions();
|
54 |
-
FacebookPixel::initialize(FacebookWordpressOptions::getPixelId());
|
55 |
-
// Register WordPress pixel injection controlling where to fire pixel
|
56 |
-
add_action('init', array($this, 'registerPixelInjection'), 0);
|
57 |
-
|
58 |
-
// initialize admin page config
|
59 |
-
$this->registerSettingsPage();
|
60 |
-
|
61 |
-
// initialize the s2s event async task
|
62 |
-
new ServerEventAsyncTask();
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Helper function for registering pixel injection.
|
67 |
-
*/
|
68 |
-
public function registerPixelInjection() {
|
69 |
-
$injectionObj = new FacebookWordpressPixelInjection();
|
70 |
-
$injectionObj->inject();
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Helper function for registering the settings page.
|
75 |
-
*/
|
76 |
-
public function registerSettingsPage() {
|
77 |
-
if (is_admin()) {
|
78 |
-
$plugin_name = plugin_basename(__FILE__);
|
79 |
-
new FacebookWordpressSettingsPage($plugin_name);
|
80 |
-
}
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
$WP_FacebookForWordpress = new FacebookForWordpress();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/EDDUtils.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class EDDUtils {
|
23 |
-
public static function getCurrency() {
|
24 |
-
return edd_get_currency();
|
25 |
-
}
|
26 |
-
|
27 |
-
public static function getCartTotal() {
|
28 |
-
return EDD()->cart->get_total();
|
29 |
-
}
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressCalderaForm.php
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
25 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
26 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
27 |
-
use FacebookAds\Object\ServerSide\Event;
|
28 |
-
use FacebookAds\Object\ServerSide\UserData;
|
29 |
-
|
30 |
-
class FacebookWordpressCalderaForm extends FacebookWordpressIntegrationBase {
|
31 |
-
const PLUGIN_FILE = 'caldera-forms/caldera-core.php';
|
32 |
-
const TRACKING_NAME = 'caldera-forms';
|
33 |
-
|
34 |
-
public static function injectPixelCode() {
|
35 |
-
add_action(
|
36 |
-
'caldera_forms_ajax_return',
|
37 |
-
array(__CLASS__, 'injectLeadEvent'),
|
38 |
-
10, 2);
|
39 |
-
}
|
40 |
-
|
41 |
-
public static function injectLeadEvent($out, $form) {
|
42 |
-
if (FacebookPluginUtils::isAdmin() || $out['status'] !== 'complete') {
|
43 |
-
return $out;
|
44 |
-
}
|
45 |
-
|
46 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
-
'Lead',
|
48 |
-
array(__CLASS__, 'readFormData'),
|
49 |
-
array($form)
|
50 |
-
);
|
51 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
52 |
-
|
53 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
54 |
-
$code = sprintf("
|
55 |
-
<!-- Facebook Pixel Event Code -->
|
56 |
-
%s
|
57 |
-
<!-- End Facebook Pixel Event Code -->
|
58 |
-
",
|
59 |
-
$code);
|
60 |
-
|
61 |
-
$out['html'] .= $code;
|
62 |
-
return $out;
|
63 |
-
}
|
64 |
-
|
65 |
-
public static function readFormData($form) {
|
66 |
-
if (empty($form)) {
|
67 |
-
return array();
|
68 |
-
}
|
69 |
-
|
70 |
-
return array(
|
71 |
-
'email' => self::getEmail($form),
|
72 |
-
'first_name' => self::getFirstName($form),
|
73 |
-
'last_name' => self::getLastName($form)
|
74 |
-
);
|
75 |
-
}
|
76 |
-
|
77 |
-
private static function getEmail($form) {
|
78 |
-
return self::getFieldValue($form, 'type', 'email');
|
79 |
-
}
|
80 |
-
|
81 |
-
private static function getFirstName($form) {
|
82 |
-
return self::getFieldValue($form, 'slug', 'first_name');
|
83 |
-
}
|
84 |
-
|
85 |
-
private static function getLastName($form) {
|
86 |
-
return self::getFieldValue($form, 'slug', 'last_name');
|
87 |
-
}
|
88 |
-
|
89 |
-
private static function getFieldValue($form, $attr, $attr_value) {
|
90 |
-
if (empty($form['fields'])) {
|
91 |
-
return null;
|
92 |
-
}
|
93 |
-
|
94 |
-
foreach ($form['fields'] as $field) {
|
95 |
-
if (array_key_exists($attr, $field) && $field[$attr] == $attr_value) {
|
96 |
-
return $_POST[$field['ID']];
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
return null;
|
101 |
-
}
|
102 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressContactForm7.php
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
25 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
26 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
27 |
-
use FacebookAds\Object\ServerSide\Event;
|
28 |
-
use FacebookAds\Object\ServerSide\UserData;
|
29 |
-
|
30 |
-
class FacebookWordpressContactForm7 extends FacebookWordpressIntegrationBase {
|
31 |
-
const PLUGIN_FILE = 'contact-form-7/wp-contact-form-7.php';
|
32 |
-
const TRACKING_NAME = 'contact-form-7';
|
33 |
-
|
34 |
-
public static function injectPixelCode() {
|
35 |
-
add_action(
|
36 |
-
'wpcf7_submit',
|
37 |
-
array(__CLASS__, 'trackServerEvent'),
|
38 |
-
10, 2);
|
39 |
-
}
|
40 |
-
|
41 |
-
public static function trackServerEvent($form, $result) {
|
42 |
-
if (FacebookPluginUtils::isAdmin()) {
|
43 |
-
return $result;
|
44 |
-
}
|
45 |
-
|
46 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
47 |
-
'Lead',
|
48 |
-
array(__CLASS__, 'readFormData'),
|
49 |
-
array($form)
|
50 |
-
);
|
51 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
52 |
-
|
53 |
-
add_action(
|
54 |
-
'wpcf7_ajax_json_echo',
|
55 |
-
array(__CLASS__, 'injectLeadEvent'),
|
56 |
-
20, 2);
|
57 |
-
|
58 |
-
return $result;
|
59 |
-
}
|
60 |
-
|
61 |
-
public static function injectLeadEvent($response, $result) {
|
62 |
-
if (FacebookPluginUtils::isAdmin()) {
|
63 |
-
return $response;
|
64 |
-
}
|
65 |
-
|
66 |
-
$events = FacebookServerSideEvent::getInstance()->getTrackedEvents();
|
67 |
-
$code = PixelRenderer::render($events, self::TRACKING_NAME);
|
68 |
-
$code = sprintf("
|
69 |
-
<!-- Facebook Pixel Event Code -->
|
70 |
-
%s
|
71 |
-
<!-- End Facebook Pixel Event Code -->
|
72 |
-
",
|
73 |
-
$code);
|
74 |
-
|
75 |
-
$response['message'] .= $code;
|
76 |
-
return $response;
|
77 |
-
}
|
78 |
-
|
79 |
-
public static function readFormData($form) {
|
80 |
-
if (empty($form)) {
|
81 |
-
return array();
|
82 |
-
}
|
83 |
-
|
84 |
-
$form_tags = $form->scan_form_tags();
|
85 |
-
$name = self::getName($form_tags);
|
86 |
-
|
87 |
-
return array(
|
88 |
-
'email' => self::getEmail($form_tags),
|
89 |
-
'first_name' => $name[0],
|
90 |
-
'last_name' => $name[1]
|
91 |
-
);
|
92 |
-
}
|
93 |
-
|
94 |
-
private static function getEmail($form_tags) {
|
95 |
-
if (empty($form_tags)) {
|
96 |
-
return null;
|
97 |
-
}
|
98 |
-
|
99 |
-
foreach ($form_tags as $tag) {
|
100 |
-
if ($tag->basetype == "email") {
|
101 |
-
return $_POST[$tag->name];
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
return null;
|
106 |
-
}
|
107 |
-
|
108 |
-
private static function getName($form_tags) {
|
109 |
-
if (empty($form_tags)) {
|
110 |
-
return null;
|
111 |
-
}
|
112 |
-
|
113 |
-
foreach ($form_tags as $tag) {
|
114 |
-
if ($tag->basetype === "text"
|
115 |
-
&& strpos(strtolower($tag->name), 'name') !== false) {
|
116 |
-
return ServerEventFactory::splitName($_POST[$tag->name]);
|
117 |
-
}
|
118 |
-
}
|
119 |
-
|
120 |
-
return null;
|
121 |
-
}
|
122 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressEasyDigitalDownloads.php
DELETED
@@ -1,231 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
26 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
27 |
-
|
28 |
-
class FacebookWordpressEasyDigitalDownloads extends FacebookWordpressIntegrationBase {
|
29 |
-
const PLUGIN_FILE = 'easy-digital-downloads/easy-digital-downloads.php';
|
30 |
-
const TRACKING_NAME = 'easy-digital-downloads';
|
31 |
-
|
32 |
-
private static $addToCartJS = "
|
33 |
-
jQuery(document).ready(function ($) {
|
34 |
-
$('.edd-add-to-cart').click(function (e) {
|
35 |
-
e.preventDefault();
|
36 |
-
|
37 |
-
var _this = $(this), form = _this.closest('form');
|
38 |
-
var download = _this.data('download-id');
|
39 |
-
var currency = $('.edd_purchase_' + download + ' meta[itemprop=\'priceCurrency\']').attr('content');
|
40 |
-
var form = _this.parents('form').last();
|
41 |
-
var value = 0;
|
42 |
-
var variable_price = _this.data('variable-price');
|
43 |
-
if( variable_price == 'yes' ) {
|
44 |
-
form.find('.edd_price_option_' + download + ':checked', form).each(function(index) {
|
45 |
-
value = $(this).data('price');
|
46 |
-
});
|
47 |
-
} else {
|
48 |
-
if ( _this.data('price') && _this.data('price') > 0 ) {
|
49 |
-
value = _this.data('price');
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
var param = {
|
54 |
-
'content_ids': [download],
|
55 |
-
'content_type': 'product',
|
56 |
-
'currency': currency,
|
57 |
-
'%s': '%s',
|
58 |
-
'value': value
|
59 |
-
};
|
60 |
-
%s
|
61 |
-
});
|
62 |
-
});
|
63 |
-
";
|
64 |
-
|
65 |
-
public static function injectPixelCode() {
|
66 |
-
// AddToCart
|
67 |
-
self::addPixelFireForHook(array(
|
68 |
-
'hook_name' => 'edd_after_download_content',
|
69 |
-
'classname' => __CLASS__,
|
70 |
-
'inject_function' => 'injectAddToCartEvent'));
|
71 |
-
|
72 |
-
// InitiateCheckout
|
73 |
-
self::addPixelFireForHook(array(
|
74 |
-
'hook_name' => 'edd_after_checkout_cart',
|
75 |
-
'classname' => __CLASS__,
|
76 |
-
'inject_function' => 'injectInitiateCheckoutEvent'));
|
77 |
-
|
78 |
-
// Purchase
|
79 |
-
add_action(
|
80 |
-
'edd_payment_receipt_after',
|
81 |
-
array(__CLASS__, 'trackPurchaseEvent'),
|
82 |
-
10, 2);
|
83 |
-
|
84 |
-
// ViewContent
|
85 |
-
self::addPixelFireForHook(array(
|
86 |
-
'hook_name' => 'edd_after_download_content',
|
87 |
-
'classname' => __CLASS__,
|
88 |
-
'inject_function' => 'injectViewContentEvent'));
|
89 |
-
}
|
90 |
-
|
91 |
-
public static function injectAddToCartEvent($download_id) {
|
92 |
-
if (FacebookPluginUtils::isAdmin()) {
|
93 |
-
return;
|
94 |
-
}
|
95 |
-
|
96 |
-
$pixel_code = FacebookPixel::getPixelAddToCartCode('param', self::TRACKING_NAME, false);
|
97 |
-
$listener_code = sprintf(
|
98 |
-
self::$addToCartJS,
|
99 |
-
FacebookPixel::FB_INTEGRATION_TRACKING_KEY,
|
100 |
-
self::TRACKING_NAME,
|
101 |
-
$pixel_code);
|
102 |
-
|
103 |
-
printf("
|
104 |
-
<!-- Facebook Pixel Event Code -->
|
105 |
-
<script>
|
106 |
-
%s
|
107 |
-
</script>
|
108 |
-
<!-- End Facebook Pixel Event Code -->
|
109 |
-
",
|
110 |
-
$listener_code);
|
111 |
-
}
|
112 |
-
|
113 |
-
public static function injectInitiateCheckoutEvent() {
|
114 |
-
if (FacebookPluginUtils::isAdmin() || !function_exists('EDD')) {
|
115 |
-
return;
|
116 |
-
}
|
117 |
-
|
118 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
119 |
-
'InitiateCheckout',
|
120 |
-
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
121 |
-
array()
|
122 |
-
);
|
123 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
124 |
-
|
125 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
126 |
-
printf("
|
127 |
-
<!-- Facebook Pixel Event Code -->
|
128 |
-
%s
|
129 |
-
<!-- End Facebook Pixel Event Code -->
|
130 |
-
",
|
131 |
-
$code);
|
132 |
-
}
|
133 |
-
|
134 |
-
public static function trackPurchaseEvent($payment, $edd_receipt_args) {
|
135 |
-
if (FacebookPluginUtils::isAdmin() || empty($payment->ID)) {
|
136 |
-
return;
|
137 |
-
}
|
138 |
-
|
139 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
140 |
-
'Purchase',
|
141 |
-
array(__CLASS__, 'createPurchaseEvent'),
|
142 |
-
array($payment)
|
143 |
-
);
|
144 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
145 |
-
|
146 |
-
add_action(
|
147 |
-
'wp_footer',
|
148 |
-
array(__CLASS__, 'injectPurchaseEvent'),
|
149 |
-
20
|
150 |
-
);
|
151 |
-
}
|
152 |
-
|
153 |
-
public static function injectPurchaseEvent() {
|
154 |
-
$events = FacebookServerSideEvent::getInstance()->getTrackedEvents();
|
155 |
-
$code = PixelRenderer::render($events, self::TRACKING_NAME);
|
156 |
-
|
157 |
-
printf("
|
158 |
-
<!-- Facebook Pixel Event Code -->
|
159 |
-
%s
|
160 |
-
<!-- End Facebook Pixel Event Code -->
|
161 |
-
",
|
162 |
-
$code);
|
163 |
-
}
|
164 |
-
|
165 |
-
public static function injectViewContentEvent($download_id) {
|
166 |
-
if (FacebookPluginUtils::isAdmin() || empty($download_id)) {
|
167 |
-
return;
|
168 |
-
}
|
169 |
-
|
170 |
-
$currency = edd_get_currency();
|
171 |
-
if (get_post_meta($download_id, '_variable_pricing', true)) { // variable price
|
172 |
-
$prices = get_post_meta($download_id, 'edd_variable_prices', true);
|
173 |
-
$price = array_shift($prices);
|
174 |
-
$value = $price['amount'];
|
175 |
-
} else {
|
176 |
-
$value = get_post_meta($download_id, 'edd_price', true);
|
177 |
-
}
|
178 |
-
if (!$value) {
|
179 |
-
$value = 0;
|
180 |
-
}
|
181 |
-
$param = array(
|
182 |
-
'content_ids' => array($download_id),
|
183 |
-
'content_type' => 'product',
|
184 |
-
'currency' => $currency,
|
185 |
-
'value' => $value,
|
186 |
-
);
|
187 |
-
$code = FacebookPixel::getPixelViewContentCode($param, self::TRACKING_NAME);
|
188 |
-
|
189 |
-
printf("
|
190 |
-
<!-- Facebook Pixel Event Code -->
|
191 |
-
%s
|
192 |
-
<!-- End Facebook Pixel Event Code -->
|
193 |
-
",
|
194 |
-
$code);
|
195 |
-
}
|
196 |
-
|
197 |
-
public static function createInitiateCheckoutEvent() {
|
198 |
-
$event_data = FacebookPluginUtils::getLoggedInUserInfo();
|
199 |
-
$event_data['currency'] = EDDUtils::getCurrency();
|
200 |
-
$event_data['value'] = EDDUtils::getCartTotal();
|
201 |
-
|
202 |
-
return $event_data;
|
203 |
-
}
|
204 |
-
|
205 |
-
public static function createPurchaseEvent($payment) {
|
206 |
-
$event_data = array();
|
207 |
-
|
208 |
-
$payment_meta = \edd_get_payment_meta($payment->ID);
|
209 |
-
if (empty($payment_meta)) {
|
210 |
-
return $event_data;
|
211 |
-
}
|
212 |
-
|
213 |
-
$event_data['email'] = $payment_meta['email'];
|
214 |
-
$event_data['first_name'] = $payment_meta['user_info']['first_name'];
|
215 |
-
$event_data['last_name'] = $payment_meta['user_info']['last_name'];
|
216 |
-
|
217 |
-
$content_ids = array();
|
218 |
-
$value = 0;
|
219 |
-
foreach ($payment_meta['cart_details'] as $item) {
|
220 |
-
$content_ids[] = $item['id'];
|
221 |
-
$value += $item['price'];
|
222 |
-
}
|
223 |
-
|
224 |
-
$event_data['currency'] = $payment_meta['currency'];
|
225 |
-
$event_data['value'] = $value;
|
226 |
-
$event_data['content_ids'] = $content_ids;
|
227 |
-
$event_data['content_type'] = 'product';
|
228 |
-
|
229 |
-
return $event_data;
|
230 |
-
}
|
231 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressFormidableForm.php
DELETED
@@ -1,135 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
26 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
27 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
28 |
-
use FacebookAds\Object\ServerSide\Event;
|
29 |
-
use FacebookAds\Object\ServerSide\UserData;
|
30 |
-
|
31 |
-
class FacebookWordpressFormidableForm extends FacebookWordpressIntegrationBase {
|
32 |
-
const PLUGIN_FILE = 'formidable/formidable.php';
|
33 |
-
const TRACKING_NAME = 'formidable-lite';
|
34 |
-
|
35 |
-
public static function injectPixelCode() {
|
36 |
-
add_action(
|
37 |
-
'frm_after_create_entry',
|
38 |
-
array(__CLASS__, 'trackServerEvent'),
|
39 |
-
20,
|
40 |
-
2
|
41 |
-
);
|
42 |
-
}
|
43 |
-
|
44 |
-
public static function trackServerEvent($entry_id, $form_id) {
|
45 |
-
if (FacebookPluginUtils::isAdmin()) {
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
|
49 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
-
'Lead',
|
51 |
-
array(__CLASS__, 'readFormData'),
|
52 |
-
array($entry_id)
|
53 |
-
);
|
54 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
55 |
-
|
56 |
-
add_action(
|
57 |
-
'wp_footer',
|
58 |
-
array(__CLASS__, 'injectLeadEvent'),
|
59 |
-
20
|
60 |
-
);
|
61 |
-
}
|
62 |
-
|
63 |
-
public static function injectLeadEvent() {
|
64 |
-
if (FacebookPluginUtils::isAdmin()) {
|
65 |
-
return;
|
66 |
-
}
|
67 |
-
|
68 |
-
$events = FacebookServerSideEvent::getInstance()->getTrackedEvents();
|
69 |
-
$code = PixelRenderer::render($events, self::TRACKING_NAME);
|
70 |
-
|
71 |
-
printf("
|
72 |
-
<!-- Facebook Pixel Event Code -->
|
73 |
-
%s
|
74 |
-
<!-- End Facebook Pixel Event Code -->
|
75 |
-
",
|
76 |
-
$code);
|
77 |
-
}
|
78 |
-
|
79 |
-
public static function readFormData($entry_id) {
|
80 |
-
if (empty($entry_id)) {
|
81 |
-
return array();
|
82 |
-
}
|
83 |
-
|
84 |
-
$entry_values =
|
85 |
-
IntegrationUtils::getFormidableFormsEntryValues($entry_id);
|
86 |
-
|
87 |
-
$field_values = $entry_values->get_field_values();
|
88 |
-
if (!empty($field_values)) {
|
89 |
-
return array(
|
90 |
-
'email' => self::getEmail($field_values),
|
91 |
-
'first_name' => self::getFirstName($field_values),
|
92 |
-
'last_name' => self::getLastName($field_values)
|
93 |
-
);
|
94 |
-
}
|
95 |
-
|
96 |
-
return array();
|
97 |
-
}
|
98 |
-
|
99 |
-
private static function getEmail($field_values) {
|
100 |
-
foreach ($field_values as $field_value) {
|
101 |
-
$field = $field_value->get_field();
|
102 |
-
if ($field->type == 'email') {
|
103 |
-
return $field_value->get_saved_value();
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
-
return null;
|
108 |
-
}
|
109 |
-
|
110 |
-
private static function getFirstName($field_values) {
|
111 |
-
return self::getFieldValue($field_values, 'text', 'Name', 'First');
|
112 |
-
}
|
113 |
-
|
114 |
-
private static function getLastName($field_values) {
|
115 |
-
return self::getFieldValue($field_values, 'text', 'Last', 'Last');
|
116 |
-
}
|
117 |
-
|
118 |
-
private static function getFieldValue(
|
119 |
-
$field_values,
|
120 |
-
$type,
|
121 |
-
$name,
|
122 |
-
$description)
|
123 |
-
{
|
124 |
-
foreach ($field_values as $field_value) {
|
125 |
-
$field = $field_value->get_field();
|
126 |
-
if ($field->type == $type &&
|
127 |
-
$field->name == $name &&
|
128 |
-
$field->description == $description) {
|
129 |
-
return $field_value->get_saved_value();
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
return null;
|
134 |
-
}
|
135 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressGravityForms.php
DELETED
@@ -1,135 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
26 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
27 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
28 |
-
use FacebookAds\Object\ServerSide\Event;
|
29 |
-
use FacebookAds\Object\ServerSide\UserData;
|
30 |
-
|
31 |
-
class FacebookWordpressGravityForms extends FacebookWordpressIntegrationBase {
|
32 |
-
const PLUGIN_FILE = 'gravityforms/gravityforms.php';
|
33 |
-
const TRACKING_NAME = 'gravity-forms';
|
34 |
-
|
35 |
-
public static function injectPixelCode() {
|
36 |
-
add_filter(
|
37 |
-
'gform_confirmation',
|
38 |
-
array(__CLASS__, 'injectLeadEvent'),
|
39 |
-
10, 4);
|
40 |
-
}
|
41 |
-
|
42 |
-
public static function injectLeadEvent($confirmation, $form, $entry, $ajax) {
|
43 |
-
if (FacebookPluginUtils::isAdmin()) {
|
44 |
-
return $confirmation;
|
45 |
-
}
|
46 |
-
|
47 |
-
$event = ServerEventFactory::safeCreateEvent(
|
48 |
-
'Lead',
|
49 |
-
array(__CLASS__, 'readFormData'),
|
50 |
-
array($form, $entry)
|
51 |
-
);
|
52 |
-
FacebookServerSideEvent::getInstance()->track($event);
|
53 |
-
|
54 |
-
$pixel_code = PixelRenderer::render(array($event), self::TRACKING_NAME);
|
55 |
-
$code = sprintf("
|
56 |
-
<!-- Facebook Pixel Event Code -->
|
57 |
-
%s
|
58 |
-
<!-- End Facebook Pixel Event Code -->
|
59 |
-
", $pixel_code);
|
60 |
-
|
61 |
-
if (is_string($confirmation)) {
|
62 |
-
$confirmation .= $code;
|
63 |
-
} elseif ( is_array($confirmation) && isset($confirmation['redirect'])) {
|
64 |
-
$redirect_code = sprintf("
|
65 |
-
<!-- Facebook Pixel Gravity Forms Redirect Code -->
|
66 |
-
<script>%sdocument.location.href=%s;%s</script>
|
67 |
-
<!-- End Facebook Pixel Gravity Forms Redirect Code -->",
|
68 |
-
apply_filters('gform_cdata_open', ''),
|
69 |
-
defined('JSON_HEX_TAG') ?
|
70 |
-
json_encode($confirmation['redirect'], JSON_HEX_TAG)
|
71 |
-
: json_encode($confirmation['redirect']),
|
72 |
-
apply_filters('gform_cdata_close', '')
|
73 |
-
);
|
74 |
-
|
75 |
-
$confirmation = $code . $redirect_code;
|
76 |
-
}
|
77 |
-
|
78 |
-
return $confirmation;
|
79 |
-
}
|
80 |
-
|
81 |
-
public static function readFormData($form, $entry) {
|
82 |
-
if (empty($form) || empty($entry)) {
|
83 |
-
return array();
|
84 |
-
}
|
85 |
-
|
86 |
-
return array(
|
87 |
-
'email' => self::getEmail($form, $entry),
|
88 |
-
'first_name' => self::getFirstName($form, $entry),
|
89 |
-
'last_name' => self::getLastName($form, $entry)
|
90 |
-
);
|
91 |
-
}
|
92 |
-
|
93 |
-
private static function getEmail($form, $entry) {
|
94 |
-
if (empty($form['fields'])) {
|
95 |
-
return null;
|
96 |
-
}
|
97 |
-
|
98 |
-
foreach ($form['fields'] as $field) {
|
99 |
-
if ($field->type == 'email') {
|
100 |
-
return $entry[$field->id];
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
return null;
|
105 |
-
}
|
106 |
-
|
107 |
-
private static function getFirstName($form, $entry) {
|
108 |
-
return self::getName($form, $entry, 'name', 'First');
|
109 |
-
}
|
110 |
-
|
111 |
-
private static function getLastName($form, $entry) {
|
112 |
-
return self::getName($form, $entry, 'name', 'Last');
|
113 |
-
}
|
114 |
-
|
115 |
-
private static function getName($form, $entry, $type, $label) {
|
116 |
-
if (empty($form['fields'])) {
|
117 |
-
return null;
|
118 |
-
}
|
119 |
-
|
120 |
-
foreach ($form['fields'] as $field) {
|
121 |
-
if ($field->type == $type) {
|
122 |
-
$inputs = $field->inputs;
|
123 |
-
if (!empty($inputs)) {
|
124 |
-
foreach ($inputs as $input) {
|
125 |
-
if ($input['label'] == $label) {
|
126 |
-
return $entry[$input['id']];
|
127 |
-
}
|
128 |
-
}
|
129 |
-
}
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
return null;
|
134 |
-
}
|
135 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressIntegrationBase.php
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use ReflectionMethod;
|
23 |
-
|
24 |
-
abstract class FacebookWordpressIntegrationBase {
|
25 |
-
const PLUGIN_FILE = '';
|
26 |
-
const TRACKING_NAME = '';
|
27 |
-
|
28 |
-
/**
|
29 |
-
* inject the pixel code for the plugin
|
30 |
-
*/
|
31 |
-
public static function injectPixelCode() {
|
32 |
-
}
|
33 |
-
|
34 |
-
// TODO(T39560845): Add unit test for addPixelFireForHook
|
35 |
-
public static function addPixelFireForHook($pixel_fire_for_hook_params) {
|
36 |
-
$hook_name = $pixel_fire_for_hook_params['hook_name'];
|
37 |
-
$classname = $pixel_fire_for_hook_params['classname'];
|
38 |
-
$inject_function = $pixel_fire_for_hook_params['inject_function'];
|
39 |
-
$priority = isset($pixel_fire_for_hook_params['priority'])
|
40 |
-
? $pixel_fire_for_hook_params['priority']
|
41 |
-
: 11;
|
42 |
-
|
43 |
-
$user_function = array(
|
44 |
-
// get derived class in base class
|
45 |
-
$classname,
|
46 |
-
$inject_function);
|
47 |
-
$reflection = new ReflectionMethod($classname, $inject_function);
|
48 |
-
$argc = $reflection->getNumberOfParameters();
|
49 |
-
$argv = $reflection->getParameters();
|
50 |
-
|
51 |
-
$callback = function () use ($user_function, $argv) {
|
52 |
-
$hook_wp_footer = function () use ($user_function, $argv) {
|
53 |
-
\call_user_func_array($user_function, $argv);
|
54 |
-
};
|
55 |
-
add_action(
|
56 |
-
'wp_footer',
|
57 |
-
$hook_wp_footer,
|
58 |
-
11);
|
59 |
-
};
|
60 |
-
|
61 |
-
add_action($hook_name, $callback, $priority, $argc);
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressMailchimpForWp.php
DELETED
@@ -1,76 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
26 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
27 |
-
|
28 |
-
class FacebookWordpressMailchimpForWp extends FacebookWordpressIntegrationBase {
|
29 |
-
const PLUGIN_FILE = 'mailchimp-for-wp/mailchimp-for-wp.php';
|
30 |
-
const TRACKING_NAME = 'mailchimp-for-wp';
|
31 |
-
|
32 |
-
public static function injectPixelCode() {
|
33 |
-
self::addPixelFireForHook(array(
|
34 |
-
'hook_name' => 'mc4wp_form_subscribed',
|
35 |
-
'classname' => __CLASS__,
|
36 |
-
'inject_function' => 'injectLeadEvent'));
|
37 |
-
}
|
38 |
-
|
39 |
-
public static function injectLeadEvent() {
|
40 |
-
if (FacebookPluginUtils::isAdmin()) {
|
41 |
-
return;
|
42 |
-
}
|
43 |
-
|
44 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
45 |
-
'Lead',
|
46 |
-
array(__CLASS__, 'readFormData'),
|
47 |
-
array()
|
48 |
-
);
|
49 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
50 |
-
|
51 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
52 |
-
printf("
|
53 |
-
<!-- Facebook Pixel Event Code -->
|
54 |
-
%s
|
55 |
-
<!-- End Facebook Pixel Event Code -->
|
56 |
-
",
|
57 |
-
$code);
|
58 |
-
}
|
59 |
-
|
60 |
-
public static function readFormData() {
|
61 |
-
$event_data = array();
|
62 |
-
if (!empty($_POST['EMAIL'])) {
|
63 |
-
$event_data['email'] = $_POST['EMAIL'];
|
64 |
-
}
|
65 |
-
|
66 |
-
if (!empty($_POST['FNAME'])) {
|
67 |
-
$event_data['first_name'] = $_POST['FNAME'];
|
68 |
-
}
|
69 |
-
|
70 |
-
if (!empty($_POST['LNAME'])) {
|
71 |
-
$event_data['last_name'] = $_POST['LNAME'];
|
72 |
-
}
|
73 |
-
|
74 |
-
return $event_data;
|
75 |
-
}
|
76 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressNinjaForms.php
DELETED
@@ -1,115 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
26 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
27 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
28 |
-
use FacebookAds\Object\ServerSide\Event;
|
29 |
-
use FacebookAds\Object\ServerSide\UserData;
|
30 |
-
|
31 |
-
class FacebookWordpressNinjaForms extends FacebookWordpressIntegrationBase {
|
32 |
-
const PLUGIN_FILE = 'ninja-forms/ninja-forms.php';
|
33 |
-
const TRACKING_NAME = 'ninja-forms';
|
34 |
-
|
35 |
-
public static function injectPixelCode() {
|
36 |
-
add_action(
|
37 |
-
'ninja_forms_submission_actions',
|
38 |
-
array(__CLASS__, 'injectLeadEvent'),
|
39 |
-
10, 3);
|
40 |
-
}
|
41 |
-
|
42 |
-
public static function injectLeadEvent($actions, $form_cache, $form_data) {
|
43 |
-
if (FacebookPluginUtils::isAdmin()) {
|
44 |
-
return $actions;
|
45 |
-
}
|
46 |
-
|
47 |
-
foreach ($actions as $key => $action) {
|
48 |
-
if (!isset($action['settings']) || !isset($action['settings']['type'])) {
|
49 |
-
continue;
|
50 |
-
}
|
51 |
-
|
52 |
-
$type = $action['settings']['type'];
|
53 |
-
if (!is_string($type)) {
|
54 |
-
continue;
|
55 |
-
}
|
56 |
-
|
57 |
-
// inject code when form is submitted successfully
|
58 |
-
if ($type == 'successmessage') {
|
59 |
-
$event = ServerEventFactory::safeCreateEvent(
|
60 |
-
'Lead',
|
61 |
-
array(__CLASS__, 'readFormData'),
|
62 |
-
array($form_data)
|
63 |
-
);
|
64 |
-
FacebookServerSideEvent::getInstance()->track($event);
|
65 |
-
|
66 |
-
$pixel_code = PixelRenderer::render(array($event), self::TRACKING_NAME);
|
67 |
-
$code = sprintf("
|
68 |
-
<!-- Facebook Pixel Event Code -->
|
69 |
-
%s
|
70 |
-
<!-- End Facebook Pixel Event Code -->
|
71 |
-
", $pixel_code);
|
72 |
-
|
73 |
-
$action['settings']['success_msg'] .= $code;
|
74 |
-
$actions[$key] = $action;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
return $actions;
|
79 |
-
}
|
80 |
-
|
81 |
-
public static function readFormData($form_data) {
|
82 |
-
if (empty($form_data)) {
|
83 |
-
return array();
|
84 |
-
}
|
85 |
-
|
86 |
-
$name = self::getName($form_data);
|
87 |
-
return array(
|
88 |
-
'email' => self::getEmail($form_data),
|
89 |
-
'first_name' => $name[0],
|
90 |
-
'last_name' => $name[1]
|
91 |
-
);
|
92 |
-
}
|
93 |
-
|
94 |
-
private static function getEmail($form_data) {
|
95 |
-
return self::getField($form_data, 'email');
|
96 |
-
}
|
97 |
-
|
98 |
-
private static function getName($form_data) {
|
99 |
-
return ServerEventFactory::splitName(self::getField($form_data, 'name'));
|
100 |
-
}
|
101 |
-
|
102 |
-
private static function getField($form_data, $key) {
|
103 |
-
if (empty($form_data['fields'])) {
|
104 |
-
return null;
|
105 |
-
}
|
106 |
-
|
107 |
-
foreach ($form_data['fields'] as $field) {
|
108 |
-
if ($field['key'] == $key) {
|
109 |
-
return $field['value'];
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
-
return null;
|
114 |
-
}
|
115 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressWPECommerce.php
DELETED
@@ -1,186 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
26 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
27 |
-
|
28 |
-
class FacebookWordpressWPECommerce extends FacebookWordpressIntegrationBase {
|
29 |
-
const PLUGIN_FILE = 'wp-e-commerce/wp-e-commerce.php';
|
30 |
-
const TRACKING_NAME = 'wp-e-commerce';
|
31 |
-
|
32 |
-
public static function injectPixelCode() {
|
33 |
-
// AddToCart
|
34 |
-
add_action('wpsc_add_to_cart_json_response',
|
35 |
-
array(__CLASS__, 'injectAddToCartEvent'), 11);
|
36 |
-
|
37 |
-
// InitiateCheckout
|
38 |
-
self::addPixelFireForHook(array(
|
39 |
-
'hook_name' => 'wpsc_before_shopping_cart_page',
|
40 |
-
'classname' => __CLASS__,
|
41 |
-
'inject_function' => 'injectInitiateCheckoutEvent'));
|
42 |
-
|
43 |
-
// Purchase
|
44 |
-
add_action(
|
45 |
-
'wpsc_transaction_results_shutdown',
|
46 |
-
array(__CLASS__, 'injectPurchaseEvent'), 11, 3);
|
47 |
-
}
|
48 |
-
|
49 |
-
// Event hook for AddToCart.
|
50 |
-
public static function injectAddToCartEvent($response) {
|
51 |
-
if (FacebookPluginUtils::isAdmin()) {
|
52 |
-
return $response;
|
53 |
-
}
|
54 |
-
|
55 |
-
$product_id = $response['product_id'];
|
56 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
57 |
-
'AddToCart',
|
58 |
-
array(__CLASS__, 'createAddToCartEvent'),
|
59 |
-
array($product_id)
|
60 |
-
);
|
61 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
62 |
-
|
63 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
64 |
-
$code = sprintf("
|
65 |
-
<!-- Facebook Pixel Event Code -->
|
66 |
-
%s
|
67 |
-
<!-- End Facebook Pixel Event Code -->
|
68 |
-
",
|
69 |
-
$code);
|
70 |
-
$response['widget_output'] .= $code;
|
71 |
-
return $response;
|
72 |
-
}
|
73 |
-
|
74 |
-
public static function injectInitiateCheckoutEvent() {
|
75 |
-
if (FacebookPluginUtils::isAdmin()) {
|
76 |
-
return;
|
77 |
-
}
|
78 |
-
|
79 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
80 |
-
'InitiateCheckout',
|
81 |
-
array(__CLASS__, 'createInitiateCheckoutEvent'),
|
82 |
-
array()
|
83 |
-
);
|
84 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
85 |
-
|
86 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
87 |
-
printf("
|
88 |
-
<!-- Facebook Pixel Event Code -->
|
89 |
-
%s
|
90 |
-
<!-- End Facebook Pixel Event Code -->
|
91 |
-
",
|
92 |
-
$code);
|
93 |
-
}
|
94 |
-
|
95 |
-
public static function injectPurchaseEvent(
|
96 |
-
$purchase_log_object,
|
97 |
-
$session_id,
|
98 |
-
$display_to_screen)
|
99 |
-
{
|
100 |
-
if (FacebookPluginUtils::isAdmin() || !$display_to_screen) {
|
101 |
-
return;
|
102 |
-
}
|
103 |
-
|
104 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
105 |
-
'Purchase',
|
106 |
-
array(__CLASS__, 'createPurchaseEvent'),
|
107 |
-
array($purchase_log_object)
|
108 |
-
);
|
109 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
110 |
-
|
111 |
-
$code = PixelRenderer::render(array($server_event), self::TRACKING_NAME);
|
112 |
-
|
113 |
-
printf("
|
114 |
-
<!-- Facebook Pixel Event Code -->
|
115 |
-
%s
|
116 |
-
<!-- End Facebook Pixel Event Code -->
|
117 |
-
",
|
118 |
-
$code);
|
119 |
-
}
|
120 |
-
|
121 |
-
public static function createPurchaseEvent($purchase_log_object) {
|
122 |
-
$event_data = FacebookPluginUtils::getLoggedInUserInfo();
|
123 |
-
|
124 |
-
$cart_items = $purchase_log_object->get_items();
|
125 |
-
$total_price = $purchase_log_object->get_total();
|
126 |
-
$currency = function_exists('\wpsc_get_currency_code')
|
127 |
-
? \wpsc_get_currency_code() : '';
|
128 |
-
|
129 |
-
$item_ids = array();
|
130 |
-
foreach ($cart_items as $item) {
|
131 |
-
// This is for backwards compatibility
|
132 |
-
$item_array = (array) $item;
|
133 |
-
$item_ids[] = $item_array['prodid'];
|
134 |
-
}
|
135 |
-
|
136 |
-
$event_data['content_ids'] = $item_ids;
|
137 |
-
$event_data['content_type'] = 'product';
|
138 |
-
$event_data['currency'] = $currency;
|
139 |
-
$event_data['value'] = $total_price;
|
140 |
-
|
141 |
-
return $event_data;
|
142 |
-
}
|
143 |
-
|
144 |
-
public static function createAddToCartEvent($product_id) {
|
145 |
-
$event_data = FacebookPluginUtils::getLoggedInUserInfo();
|
146 |
-
|
147 |
-
global $wpsc_cart;
|
148 |
-
$cart_items = $wpsc_cart->get_items();
|
149 |
-
foreach ($cart_items as $item) {
|
150 |
-
if ($item->product_id === $product_id) {
|
151 |
-
$unit_price = $item->unit_price;
|
152 |
-
break;
|
153 |
-
}
|
154 |
-
}
|
155 |
-
|
156 |
-
$event_data['content_ids'] = array($product_id);
|
157 |
-
$event_data['content_type'] = 'product';
|
158 |
-
$event_data['currency'] =
|
159 |
-
function_exists('\wpsc_get_currency_code')
|
160 |
-
? \wpsc_get_currency_code() : '';
|
161 |
-
$event_data['value'] = $unit_price;
|
162 |
-
|
163 |
-
return $event_data;
|
164 |
-
}
|
165 |
-
|
166 |
-
public static function createInitiateCheckoutEvent() {
|
167 |
-
$event_data = FacebookPluginUtils::getLoggedInUserInfo();
|
168 |
-
$content_ids = array();
|
169 |
-
|
170 |
-
$value = 0;
|
171 |
-
global $wpsc_cart;
|
172 |
-
$cart_items = $wpsc_cart->get_items();
|
173 |
-
foreach ($cart_items as $item) {
|
174 |
-
$content_ids[] = $item->product_id;
|
175 |
-
$value += $item->unit_price;
|
176 |
-
}
|
177 |
-
|
178 |
-
$event_data['currency'] =
|
179 |
-
function_exists('\wpsc_get_currency_code')
|
180 |
-
? \wpsc_get_currency_code() : '';
|
181 |
-
$event_data['value'] = $value;
|
182 |
-
$event_data['content_ids'] = $content_ids;
|
183 |
-
|
184 |
-
return $event_data;
|
185 |
-
}
|
186 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/FacebookWordpressWPForms.php
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
use FacebookPixelPlugin\Core\FacebookPixel;
|
23 |
-
use FacebookPixelPlugin\Core\FacebookPluginUtils;
|
24 |
-
use FacebookPixelPlugin\Core\FacebookServerSideEvent;
|
25 |
-
use FacebookPixelPlugin\Core\FacebookWordPressOptions;
|
26 |
-
use FacebookPixelPlugin\Core\ServerEventFactory;
|
27 |
-
use FacebookPixelPlugin\Core\PixelRenderer;
|
28 |
-
use FacebookAds\Object\ServerSide\Event;
|
29 |
-
use FacebookAds\Object\ServerSide\UserData;
|
30 |
-
|
31 |
-
class FacebookWordpressWPForms extends FacebookWordpressIntegrationBase {
|
32 |
-
const PLUGIN_FILE = 'wpforms-lite/wpforms.php';
|
33 |
-
const TRACKING_NAME = 'wpforms-lite';
|
34 |
-
|
35 |
-
public static function injectPixelCode() {
|
36 |
-
add_action(
|
37 |
-
'wpforms_process_before',
|
38 |
-
array(__CLASS__, 'trackEvent'),
|
39 |
-
20,
|
40 |
-
2
|
41 |
-
);
|
42 |
-
}
|
43 |
-
|
44 |
-
public static function trackEvent($entry, $form_data) {
|
45 |
-
if (FacebookPluginUtils::isAdmin()) {
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
|
49 |
-
$server_event = ServerEventFactory::safeCreateEvent(
|
50 |
-
'Lead',
|
51 |
-
array(__CLASS__, 'readFormData'),
|
52 |
-
array($entry, $form_data)
|
53 |
-
);
|
54 |
-
FacebookServerSideEvent::getInstance()->track($server_event);
|
55 |
-
|
56 |
-
add_action(
|
57 |
-
'wp_footer',
|
58 |
-
array(__CLASS__, 'injectLeadEvent'),
|
59 |
-
20
|
60 |
-
);
|
61 |
-
}
|
62 |
-
|
63 |
-
public static function injectLeadEvent() {
|
64 |
-
if (FacebookPluginUtils::isAdmin()) {
|
65 |
-
return;
|
66 |
-
}
|
67 |
-
|
68 |
-
$events = FacebookServerSideEvent::getInstance()->getTrackedEvents();
|
69 |
-
$pixel_code = PixelRenderer::render($events, self::TRACKING_NAME);
|
70 |
-
|
71 |
-
printf("
|
72 |
-
<!-- Facebook Pixel Event Code -->
|
73 |
-
%s
|
74 |
-
<!-- End Facebook Pixel Event Code -->
|
75 |
-
",
|
76 |
-
$pixel_code);
|
77 |
-
}
|
78 |
-
|
79 |
-
public static function readFormData($entry, $form_data) {
|
80 |
-
if (empty($entry) || empty($form_data)) {
|
81 |
-
return array();
|
82 |
-
}
|
83 |
-
|
84 |
-
return array(
|
85 |
-
'email' => self::getEmail($entry, $form_data),
|
86 |
-
'first_name' => self::getFirstName($entry, $form_data),
|
87 |
-
'last_name' => self::getLastName($entry, $form_data)
|
88 |
-
);
|
89 |
-
}
|
90 |
-
|
91 |
-
private static function getEmail($entry, $form_data) {
|
92 |
-
return self::getField($entry, $form_data, 'email');
|
93 |
-
}
|
94 |
-
|
95 |
-
private static function getFirstName($entry, $form_data) {
|
96 |
-
return self::getField($entry, $form_data, 'name', 'first');
|
97 |
-
}
|
98 |
-
|
99 |
-
private static function getLastName($entry, $form_data) {
|
100 |
-
return self::getField($entry, $form_data, 'name', 'last');
|
101 |
-
}
|
102 |
-
|
103 |
-
private static function getField($entry, $form_data, $type, $label = null) {
|
104 |
-
if (empty($form_data['fields'])) {
|
105 |
-
return null;
|
106 |
-
}
|
107 |
-
|
108 |
-
foreach ($form_data['fields'] as $field) {
|
109 |
-
if ($field['type'] == $type) {
|
110 |
-
if (!empty($entry['fields'])) {
|
111 |
-
if (!empty($label)) {
|
112 |
-
return $entry['fields'][$field['id']][$label];
|
113 |
-
} else {
|
114 |
-
return $entry['fields'][$field['id']];
|
115 |
-
}
|
116 |
-
}
|
117 |
-
}
|
118 |
-
}
|
119 |
-
|
120 |
-
return null;
|
121 |
-
}
|
122 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/integration/IntegrationUtils.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright (C) 2017-present, Facebook, Inc.
|
4 |
-
*
|
5 |
-
* This program is free software; you can redistribute it and/or modify
|
6 |
-
* it under the terms of the GNU General Public License as published by
|
7 |
-
* the Free Software Foundation; version 2 of the License.
|
8 |
-
* This program is distributed in the hope that it will be useful,
|
9 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
-
* GNU General Public License for more details.
|
12 |
-
*/
|
13 |
-
|
14 |
-
/**
|
15 |
-
* @package FacebookPixelPlugin
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace FacebookPixelPlugin\Integration;
|
19 |
-
|
20 |
-
defined('ABSPATH') or die('Direct access not allowed');
|
21 |
-
|
22 |
-
class IntegrationUtils {
|
23 |
-
public static function getFormidableFormsEntryValues($entry_id) {
|
24 |
-
return new \FrmEntryValues($entry_id);
|
25 |
-
}
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-ar_AR.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-ar_AR.po
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:47-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: ar_AR\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr "لا تمتلك أذونات كافية للوصول إلى هذه الصفحة"
|
21 |
-
|
22 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
23 |
-
msgid ""
|
24 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
25 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
29 |
-
msgid "The unique identifier for your Facebook pixel."
|
30 |
-
msgstr "المعرف الفريد لبيكسل فيسبوك."
|
31 |
-
|
32 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
33 |
-
msgid ""
|
34 |
-
"For businesses that operate in the European Union, you may need to take "
|
35 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
36 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
37 |
-
"requirements."
|
38 |
-
msgstr ""
|
39 |
-
"بالنسبة للأنشطة التجارية التي يتم ممارستها داخل الاتحاد الأوروبي، قد تحتاج "
|
40 |
-
"إلى اتخاذ إجراءات إضافية. يُرجى قراءة <a href=\"%s\" target=\"_blank\">دليل "
|
41 |
-
"الموافقة على ملفات تعريف الارتباط للمواقع والتطبيقات</a> للحصول على مقترحات "
|
42 |
-
"بشأن الالتزام بمتطلبات الخصوصية الخاصة بالاتحاد الأوروبي."
|
43 |
-
|
44 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
45 |
-
msgid "Enabling Advanced Matching improves audience building."
|
46 |
-
msgstr "يؤدي تمكين المطابقة المتقدمة إلى تحسين عملية إنشاء الجمهور."
|
47 |
-
|
48 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
49 |
-
msgid ""
|
50 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
51 |
-
"to configure the plugin."
|
52 |
-
msgstr ""
|
53 |
-
"يتطلب المكون الإضافي لبيكسل فيسبوك معرف بيكسل. انقر <a href=\"%s\">هنا</a> "
|
54 |
-
"لتكوين المكون الإضافي."
|
55 |
-
|
56 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
57 |
-
msgid "Dismiss this notice."
|
58 |
-
msgstr "تجاهل هذا الإشعار."
|
59 |
-
|
60 |
-
#. Plugin Name of the plugin/theme
|
61 |
-
#, fuzzy
|
62 |
-
#| msgid "Facebook Pixel"
|
63 |
-
msgid "Official Facebook Pixel"
|
64 |
-
msgstr "بيكسل فيسبوك"
|
65 |
-
|
66 |
-
#. Plugin URI of the plugin/theme
|
67 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
68 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
69 |
-
|
70 |
-
#. Description of the plugin/theme
|
71 |
-
#, fuzzy
|
72 |
-
#| msgid ""
|
73 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
74 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
75 |
-
#| "understand the actions people are taking on your website and reach "
|
76 |
-
#| "audiences you care about."
|
77 |
-
msgid ""
|
78 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
79 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
80 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
81 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
82 |
-
"pixel to understand the actions people are taking on your website and reach "
|
83 |
-
"audiences you care about."
|
84 |
-
msgstr ""
|
85 |
-
"يعتبر بيكسل فيسبوك أداة تحليلات تساعدك على قياس فاعلية إعلانك. يمكنك استخدام "
|
86 |
-
"بيكسل فيسبوك في التعرف على الإجراءات التي يتخذها الأشخاص على موقعك على ا "
|
87 |
-
"لويب وللوصول إلى الجمهور الذي ينال اهتمامك."
|
88 |
-
|
89 |
-
#. Author of the plugin/theme
|
90 |
-
msgid "Facebook"
|
91 |
-
msgstr "فيسبوك"
|
92 |
-
|
93 |
-
#. Author URI of the plugin/theme
|
94 |
-
msgid "https://www.facebook.com/"
|
95 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-cs_CZ.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-cs_CZ.po
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:31-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: cs_CZ\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr "Nemáte dostatečná oprávnění k přístupu na tuto stránku"
|
21 |
-
|
22 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
23 |
-
msgid ""
|
24 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
25 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
29 |
-
msgid "The unique identifier for your Facebook pixel."
|
30 |
-
msgstr "Jedinečný identifikátor vašeho Facebook pixelu."
|
31 |
-
|
32 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
33 |
-
msgid ""
|
34 |
-
"For businesses that operate in the European Union, you may need to take "
|
35 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
36 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
37 |
-
"requirements."
|
38 |
-
msgstr ""
|
39 |
-
"Firmy působící mimo Evropskou unii budou možná muset podniknout další kroky. "
|
40 |
-
"Přečtěte si <a href=\"%s\" target=\"_blank\">Průvodce získáním souhlasu "
|
41 |
-
"s používáním cookies na webech a v aplikacích</a>, kde najdete návrhy "
|
42 |
-
"ohledně dodržování požadavků EU na ochranu soukromí."
|
43 |
-
|
44 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
45 |
-
msgid "Enabling Advanced Matching improves audience building."
|
46 |
-
msgstr "Zapnutí Pokročilého párování zkvalitňuje sestavování okruhu uživatelů."
|
47 |
-
|
48 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
49 |
-
msgid ""
|
50 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
51 |
-
"to configure the plugin."
|
52 |
-
msgstr ""
|
53 |
-
"Plugin pro Facebook pixel vyžaduje ID pixelu. Plugin můžete nakonfigurovat "
|
54 |
-
"kliknutím <a href=\"%s\">sem</a>."
|
55 |
-
|
56 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
57 |
-
msgid "Dismiss this notice."
|
58 |
-
msgstr "Toto upozornění ignorujte."
|
59 |
-
|
60 |
-
#. Plugin Name of the plugin/theme
|
61 |
-
msgid "Official Facebook Pixel"
|
62 |
-
msgstr "Official Facebook pixel"
|
63 |
-
|
64 |
-
#. Plugin URI of the plugin/theme
|
65 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
66 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
67 |
-
|
68 |
-
#. Description of the plugin/theme
|
69 |
-
#, fuzzy
|
70 |
-
#| msgid ""
|
71 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
72 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
73 |
-
#| "understand the actions people are taking on your website and reach "
|
74 |
-
#| "audiences you care about."
|
75 |
-
msgid ""
|
76 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
77 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
78 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
79 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
80 |
-
"pixel to understand the actions people are taking on your website and reach "
|
81 |
-
"audiences you care about."
|
82 |
-
msgstr ""
|
83 |
-
"Facebook pixel je analytický nástroj, který vám pomůže měřit efektivitu "
|
84 |
-
"vašich reklam. Pomocí něho porozumíte akcím, které lidé na vašem webu "
|
85 |
-
"provádějí, a oslovíte okruhy uživatelů, na kterých vám záleží."
|
86 |
-
|
87 |
-
#. Author of the plugin/theme
|
88 |
-
msgid "Facebook"
|
89 |
-
msgstr "Facebook"
|
90 |
-
|
91 |
-
#. Author URI of the plugin/theme
|
92 |
-
msgid "https://www.facebook.com/"
|
93 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-da_DK.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-da_DK.po
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:31-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: da_DK\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr ""
|
21 |
-
"Du har ikke tilstrækkelige tilladelser til at få adgang til denne side."
|
22 |
-
|
23 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
24 |
-
msgid ""
|
25 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
26 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
27 |
-
msgstr ""
|
28 |
-
|
29 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
30 |
-
msgid "The unique identifier for your Facebook pixel."
|
31 |
-
msgstr "Det unikke id for din Facebook-pixel."
|
32 |
-
|
33 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
34 |
-
msgid ""
|
35 |
-
"For businesses that operate in the European Union, you may need to take "
|
36 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
37 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
38 |
-
"requirements."
|
39 |
-
msgstr ""
|
40 |
-
"Hvis din virksomhed drives i EU, skal du muligvis træffe yderligere "
|
41 |
-
"foranstaltninger. Læs <a href=\"%s\" target=\"_blank\">vejledningen til "
|
42 |
-
"cookiesamtykke for sites og apps</a> for at finde forslag til at overholde "
|
43 |
-
"EU's krav til beskyttelse af personlige oplysninger."
|
44 |
-
|
45 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
46 |
-
msgid "Enabling Advanced Matching improves audience building."
|
47 |
-
msgstr "Aktivering af avanceret matchning forbedrer målgruppeopbygningen."
|
48 |
-
|
49 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
50 |
-
msgid ""
|
51 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
52 |
-
"to configure the plugin."
|
53 |
-
msgstr ""
|
54 |
-
"Facebook-pixelpluginet kræver et pixel-id. Klik <a href=\"%s\">her</a> for "
|
55 |
-
"at konfigurere pluginet."
|
56 |
-
|
57 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
58 |
-
msgid "Dismiss this notice."
|
59 |
-
msgstr "Afvis meddelelsen."
|
60 |
-
|
61 |
-
#. Plugin Name of the plugin/theme
|
62 |
-
msgid "Official Facebook Pixel"
|
63 |
-
msgstr "Official Facebook-pixel"
|
64 |
-
|
65 |
-
#. Plugin URI of the plugin/theme
|
66 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
67 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
68 |
-
|
69 |
-
#. Description of the plugin/theme
|
70 |
-
#, fuzzy
|
71 |
-
#| msgid ""
|
72 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
73 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
74 |
-
#| "understand the actions people are taking on your website and reach "
|
75 |
-
#| "audiences you care about."
|
76 |
-
msgid ""
|
77 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
78 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
79 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
80 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
81 |
-
"pixel to understand the actions people are taking on your website and reach "
|
82 |
-
"audiences you care about."
|
83 |
-
msgstr ""
|
84 |
-
"Facebook-pixlen er et analyseværktøj, der hjælper dig med at måle "
|
85 |
-
"effektiviteten af din annoncering. Du kan bruge Facebook-pixlen til at "
|
86 |
-
"forstå de handlinger, folk foretager på dit website, og nå ud til "
|
87 |
-
"målgrupper, du er interesseret i."
|
88 |
-
|
89 |
-
#. Author of the plugin/theme
|
90 |
-
msgid "Facebook"
|
91 |
-
msgstr "Facebook"
|
92 |
-
|
93 |
-
#. Author URI of the plugin/theme
|
94 |
-
msgid "https://www.facebook.com/"
|
95 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-de_DE.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-de_DE.po
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:31-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: de_DE\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr ""
|
21 |
-
"Du besitzt nicht die nötigen Berechtigungen, um auf diese Seite zuzugreifen"
|
22 |
-
|
23 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
24 |
-
msgid ""
|
25 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
26 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
27 |
-
msgstr ""
|
28 |
-
|
29 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
30 |
-
msgid "The unique identifier for your Facebook pixel."
|
31 |
-
msgstr "Die individuelle ID für dein Facebook-Pixel."
|
32 |
-
|
33 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
34 |
-
msgid ""
|
35 |
-
"For businesses that operate in the European Union, you may need to take "
|
36 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
37 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
38 |
-
"requirements."
|
39 |
-
msgstr ""
|
40 |
-
"Für Unternehmen in der Europäischen Union musst du möglicherweise weitere "
|
41 |
-
"Maßnahmen ergreifen. Vorschläge zur Einhaltung der EU-"
|
42 |
-
"Datenschutzbestimmungen findest du im <a href=\"%s\" target=\"_blank"
|
43 |
-
"\">Leitfaden für die Cookie-Zustimmung für Webseiten und Apps</a>."
|
44 |
-
|
45 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
46 |
-
msgid "Enabling Advanced Matching improves audience building."
|
47 |
-
msgstr ""
|
48 |
-
"Durch die Aktivierung des erweiterten Abgleichs kannst du den Aufbau deiner "
|
49 |
-
"Zielgruppe optimieren."
|
50 |
-
|
51 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
52 |
-
msgid ""
|
53 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
54 |
-
"to configure the plugin."
|
55 |
-
msgstr ""
|
56 |
-
"Zur Nutzung des Facebook-Pixel-Plugins benötigst du eine Pixel-ID. Klicke <a "
|
57 |
-
"href=\"%s\">hier</a>, um das Plugin zu konfigurieren."
|
58 |
-
|
59 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
60 |
-
msgid "Dismiss this notice."
|
61 |
-
msgstr "Diese Nachricht schließen."
|
62 |
-
|
63 |
-
#. Plugin Name of the plugin/theme
|
64 |
-
msgid "Official Facebook Pixel"
|
65 |
-
msgstr "Official Facebook-Pixel"
|
66 |
-
|
67 |
-
#. Plugin URI of the plugin/theme
|
68 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
69 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
70 |
-
|
71 |
-
#. Description of the plugin/theme
|
72 |
-
#, fuzzy
|
73 |
-
#| msgid ""
|
74 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
75 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
76 |
-
#| "understand the actions people are taking on your website and reach "
|
77 |
-
#| "audiences you care about."
|
78 |
-
msgid ""
|
79 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
80 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
81 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
82 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
83 |
-
"pixel to understand the actions people are taking on your website and reach "
|
84 |
-
"audiences you care about."
|
85 |
-
msgstr ""
|
86 |
-
"Das Facebook-Pixel ist ein Analysetool, mit dem du die Effektivität deiner "
|
87 |
-
"Werbemaßnahmen messen kannst. Verwende das Facebook-Pixel, um zu verstehen, "
|
88 |
-
"wie Nutzer mit deiner Website interagieren, und um die Zielgruppen zu "
|
89 |
-
"erreichen, die dir wichtig sind."
|
90 |
-
|
91 |
-
#. Author of the plugin/theme
|
92 |
-
msgid "Facebook"
|
93 |
-
msgstr "Facebook"
|
94 |
-
|
95 |
-
#. Author URI of the plugin/theme
|
96 |
-
msgid "https://www.facebook.com/"
|
97 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-en_GB.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-en_GB.po
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:32-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: en_GB\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr "You do not have sufficient permissions to access this Page"
|
21 |
-
|
22 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
23 |
-
msgid ""
|
24 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
25 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
29 |
-
msgid "The unique identifier for your Facebook pixel."
|
30 |
-
msgstr "The unique identifier for your Facebook pixel."
|
31 |
-
|
32 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
33 |
-
msgid ""
|
34 |
-
"For businesses that operate in the European Union, you may need to take "
|
35 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
36 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
37 |
-
"requirements."
|
38 |
-
msgstr ""
|
39 |
-
"For businesses that operate in the European Union, you may need to take "
|
40 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
41 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
42 |
-
"requirements."
|
43 |
-
|
44 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
45 |
-
msgid "Enabling Advanced Matching improves audience building."
|
46 |
-
msgstr "Enabling advanced matching improves audience building."
|
47 |
-
|
48 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
49 |
-
msgid ""
|
50 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
51 |
-
"to configure the plugin."
|
52 |
-
msgstr ""
|
53 |
-
"The Facebook pixel plugin requires a pixel ID. Click <a href=\"%s\">here</a> "
|
54 |
-
"to configure the plugin."
|
55 |
-
|
56 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
57 |
-
msgid "Dismiss this notice."
|
58 |
-
msgstr "Dismiss this notice."
|
59 |
-
|
60 |
-
#. Plugin Name of the plugin/theme
|
61 |
-
msgid "Official Facebook Pixel"
|
62 |
-
msgstr "Official Facebook pixel"
|
63 |
-
|
64 |
-
#. Plugin URI of the plugin/theme
|
65 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
66 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
67 |
-
|
68 |
-
#. Description of the plugin/theme
|
69 |
-
#, fuzzy
|
70 |
-
#| msgid ""
|
71 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
72 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
73 |
-
#| "understand the actions people are taking on your website and reach "
|
74 |
-
#| "audiences you care about."
|
75 |
-
msgid ""
|
76 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
77 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
78 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
79 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
80 |
-
"pixel to understand the actions people are taking on your website and reach "
|
81 |
-
"audiences you care about."
|
82 |
-
msgstr ""
|
83 |
-
"The Facebook pixel is an analytics tool that helps you measure the "
|
84 |
-
"effectiveness of your advertising. You can use the Facebook pixel to "
|
85 |
-
"understand the actions people are taking on your website and reach audiences "
|
86 |
-
"you care about."
|
87 |
-
|
88 |
-
#. Author of the plugin/theme
|
89 |
-
msgid "Facebook"
|
90 |
-
msgstr "Facebook"
|
91 |
-
|
92 |
-
#. Author URI of the plugin/theme
|
93 |
-
msgid "https://www.facebook.com/"
|
94 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-es_ES.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-es_ES.po
DELETED
@@ -1,99 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:33-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: es_ES\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr "No tienes suficientes permisos para acceder a esta página."
|
21 |
-
|
22 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
23 |
-
msgid ""
|
24 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
25 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
29 |
-
msgid "The unique identifier for your Facebook pixel."
|
30 |
-
msgstr "El identificador único para tu píxel de Facebook."
|
31 |
-
|
32 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
33 |
-
msgid ""
|
34 |
-
"For businesses that operate in the European Union, you may need to take "
|
35 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
36 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
37 |
-
"requirements."
|
38 |
-
msgstr ""
|
39 |
-
"En el caso de las empresas que operan en la Unión Europea, puede ser "
|
40 |
-
"necesario realizar trámites adicionales. Lee la <a href=\"%s\" target="
|
41 |
-
"\"_blank\">Guía sobre el consentimiento de cookies para sitios y "
|
42 |
-
"aplicaciones</a>, que incluye sugerencias en relación con el cumplimiento de "
|
43 |
-
"los requisitos de privacidad de la UE."
|
44 |
-
|
45 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
46 |
-
msgid "Enabling Advanced Matching improves audience building."
|
47 |
-
msgstr ""
|
48 |
-
"La habilitación de las coincidencias avanzadas contribuye a formar una "
|
49 |
-
"audiencia."
|
50 |
-
|
51 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
52 |
-
msgid ""
|
53 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
54 |
-
"to configure the plugin."
|
55 |
-
msgstr ""
|
56 |
-
"El plugin de Píxel de Facebook requiere un identificador de Píxel. Haz clic "
|
57 |
-
"<a href=\"%s\">aquí</a> para configurar el plugin."
|
58 |
-
|
59 |
-
#: core/FacebookWordpressSettingsPage.php:210
|
60 |
-
msgid "Dismiss this notice."
|
61 |
-
msgstr "Ignorar este aviso."
|
62 |
-
|
63 |
-
#. Plugin Name of the plugin/theme
|
64 |
-
#, fuzzy
|
65 |
-
#| msgid "Facebook Pixel"
|
66 |
-
msgid "Official Facebook Pixel"
|
67 |
-
msgstr "Píxel de Facebook"
|
68 |
-
|
69 |
-
#. Plugin URI of the plugin/theme
|
70 |
-
msgid "https://www.facebook.com/business/help/881403525362441"
|
71 |
-
msgstr "https://www.facebook.com/business/help/881403525362441"
|
72 |
-
|
73 |
-
#. Description of the plugin/theme
|
74 |
-
#, fuzzy
|
75 |
-
#| msgid ""
|
76 |
-
#| "The Facebook pixel is an analytics tool that helps you measure the "
|
77 |
-
#| "effectiveness of your advertising. You can use the Facebook pixel to "
|
78 |
-
#| "understand the actions people are taking on your website and reach "
|
79 |
-
#| "audiences you care about."
|
80 |
-
msgid ""
|
81 |
-
"<strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to "
|
82 |
-
"a known issue, to workaround please refresh this page and activate plugin."
|
83 |
-
"***</em></strong> The Facebook pixel is an analytics tool that helps you "
|
84 |
-
"measure the effectiveness of your advertising. You can use the Facebook "
|
85 |
-
"pixel to understand the actions people are taking on your website and reach "
|
86 |
-
"audiences you care about."
|
87 |
-
msgstr ""
|
88 |
-
"El píxel de Facebook es una herramienta de análisis que te ayuda a "
|
89 |
-
"determinar la eficacia de tu publicidad. Puedes utilizar el píxel de "
|
90 |
-
"Facebook para conocer las acciones que las personas realizan en tu sitio web "
|
91 |
-
"y para llegar a la audiencia que más te importa."
|
92 |
-
|
93 |
-
#. Author of the plugin/theme
|
94 |
-
msgid "Facebook"
|
95 |
-
msgstr "Facebook"
|
96 |
-
|
97 |
-
#. Author URI of the plugin/theme
|
98 |
-
msgid "https://www.facebook.com/"
|
99 |
-
msgstr "https://www.facebook.com/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/official-facebook-pixel-es_LA.mo
DELETED
Binary file
|
trunk/languages/official-facebook-pixel-es_LA.po
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
# Copyright (C) 2018 Official Facebook Pixel
|
2 |
-
# This file is distributed under the same license as the Facebook Pixel package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Official Facebook Pixel 2.0.1\n"
|
6 |
-
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
|
7 |
-
"pixel\n"
|
8 |
-
"POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
|
9 |
-
"PO-Revision-Date: 2018-11-28 17:33-0800\n"
|
10 |
-
"Last-Translator: \n"
|
11 |
-
"Language-Team: \n"
|
12 |
-
"Language: es_LA\n"
|
13 |
-
"MIME-Version: 1.0\n"
|
14 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
-
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 2.2\n"
|
17 |
-
|
18 |
-
#: core/FacebookWordpressSettingsPage.php:47
|
19 |
-
msgid "You do not have sufficient permissions to access this page"
|
20 |
-
msgstr "No tienes permisos suficientes para acceder a esta página"
|
21 |
-
|
22 |
-
#: core/FacebookWordpressSettingsPage.php:109
|
23 |
-
msgid ""
|
24 |
-
"Please note that we are now also supporting lower funnel pixel events for "
|
25 |
-
"Contact Form 7, Easy Digital Downloads, Ninja Forms and WP Forms"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: core/FacebookWordpressSettingsPage.php:115
|
29 |
-
msgid "The unique identifier for your Facebook pixel."
|
30 |
-
msgstr "El identificador único de tu píxel de Facebook."
|
31 |
-
|
32 |
-
#: core/FacebookWordpressSettingsPage.php:136
|
33 |
-
msgid ""
|
34 |
-
"For businesses that operate in the European Union, you may need to take "
|
35 |
-
"additional action. Read the <a href=\"%s\" target=\"_blank\">Cookie Consent "
|
36 |
-
"Guide for Sites and Apps</a> for suggestions on complying with EU privacy "
|
37 |
-
"requirements."
|
38 |
-
msgstr ""
|
39 |
-
"Es posible que para aquellas empresas que operen en la Unión Europea se "
|
40 |
-
"deban realizar acciones adicionales. Lee la <a href=\"%s\" target=\"_blank"
|
41 |
-
"\">guía sobre el consentimiento de cookies para sitios web y apps</a> si "
|
42 |
-
"quieres obtener sugerencias sobre el cumplimiento de los requisitos de "
|
43 |
-
"privacidad de la Unión Europea."
|
44 |
-
|
45 |
-
#: core/FacebookWordpressSettingsPage.php:161
|
46 |
-
msgid "Enabling Advanced Matching improves audience building."
|
47 |
-
msgstr "Activar las coincidencias avanzadas mejora la creación de públicos."
|
48 |
-
|
49 |
-
#: core/FacebookWordpressSettingsPage.php:191
|
50 |
-
msgid ""
|
51 |
-
"The Facebook Pixel plugin requires a Pixel ID. Click <a href=\"%s\">here</a> "
|
52 |
-
"to configure the plugin."
|
53 |
-
msgstr ""
|
54 |
-
"El plugin del píxel de Facebook necesita un identificador del píxel. Haz "
|
55 |
-
"clic <a href=\"%s\">aquí</a> para configurar el plugin."
|
56 |
-
|