Initial commit
This commit is contained in:
.gitignore
wp-content
index.phpchangelog.txtclass-conditions.phpclass-elements-helper.phpclass-hero.phpclass-hooks.phpclass-layout.phpclass-metabox.phpclass-post-type.phpelements.phpgenerate-menu-plus.phpgenerate-page-header.phpgenerate-spacing.phpwoocommerce.phpwpml-config.xmlindex.phpreadme.txtloco.xmlreadme.txtSiteHealth.phpUpgrade.phpWP.phpuninstall.php
mu-plugins
LICENSE.mdREADME.mdVERSIONVagrantfilebuild.xmlcomposer.jsondocker-compose.yml
dockersetup
langs
phpunit.travis.xmlphpunit.xml.distreadme.txtscreenshot-1.pngscreenshot-2.pngscreenshot-3.pngscreenshot-4.pngsrc
tests
view
plugins
activitypub
LICENSEactivitypub.php
includes
class-activity-dispatcher.phpclass-activitypub.phpclass-admin.phpclass-debug.phpclass-hashtag.phpclass-health-check.phpclass-signature.phpfunctions.php
model
peer
rest
class-followers.phpclass-following.phpclass-inbox.phpclass-nodeinfo.phpclass-ostatus.phpclass-outbox.phpclass-server.phpclass-webfinger.php
table
languages
readme.txttemplates
authLdap-2.3.1
.ci
50-init.ldif
.gitignore.rsyncIgnore.svnAccess.dist.travis.after.sh.travis.install.sh.travis.ymlLICENSE.mdREADME.mdVERSIONVagrantfileauthLdap.cssauthLdap.phpbuild.xmlcomposer.jsondocker-compose.ymlOpenLDAP
OpenLDAP_run.shldif
example.com.ldifexamplespace.com.ldifmanager.example.com.ldiftest.example.com.ldifuser1.example.com.ldifuser2.example.com.ldifuser3.example.com.ldifuser4.example.com.ldifuser5.example.com.ldif
load_fixtures.shphp.inidockersetup
ldap.phpphpunit.travis.xmlphpunit.xml.distreadme.txtsrc
tests
view
disable-wordpress-core-update
gitium
functions.phpgitium-webhook.phpgitium.php
img
inc
class-git-wrapper.phpclass-gitium-admin.phpclass-gitium-help.phpclass-gitium-menu-bubble.phpclass-gitium-menu.phpclass-gitium-requirements.phpclass-gitium-submenu-commits.phpclass-gitium-submenu-configure.phpclass-gitium-submenu-settings.phpclass-gitium-submenu-status.phpssh-git
languages
readme.txtgp-premium
backgrounds
blog
functions
generate-blog.phpcolors
functions
generate-colors.phpcopyright
disable-elements
elements
assets
admin
js
general
gp-premium.phphooks
import-export
inc
langs
gp-premium-cs_CZ.mogp-premium-cs_CZ.pogp-premium-da_DK.mogp-premium-da_DK.pogp-premium-de_DE.mogp-premium-de_De.pogp-premium-fr_FR.mogp-premium-fr_FR.pogp-premium-it_IT.mogp-premium-it_IT.pogp-premium-pl_PL.mogp-premium-pl_PL.pogp-premium-pt_BR.mogp-premium-pt_BR.pogp-premium-pt_PT.mogp-premium-pt_PT.pogp-premium-ru_RU.mogp-premium-ru_RU.pogp-premium-sk_SK.mogp-premium-sk_SK.pogp-premium-sv_SE.mogp-premium-sv_SE.pogp-premium-zh_CN.mogp-premium-zh_CN.pogp-premium.pot
library
EDD_SL_Plugin_Updater.php
batch-processing
class-make-css.phpcustomizer-helpers.phpcustomizer
active-callbacks.php
controls
class-action-button-control.phpclass-alpha-color-control.phpclass-backgrounds-control.phpclass-control-toggle.phpclass-copyright-control.phpclass-deprecated.phpclass-information-control.phpclass-range-slider-control.phpclass-refresh-button-control.phpclass-section-shortcuts-control.phpclass-spacing-control.phpclass-title-control.phpclass-typography-control.php
deprecated.phpsanitize.phpcss
alpha-color-picker.csscontrol-toggle-customizer.csssection-shortcuts.cssselectWoo.min.cssslider-customizer.cssspacing-customizer.csstitle-customizer.csstransparency-grid.pngtypography-customizer.css
js
image-processing-queue
image-processing-queue.php
includes
select2
menu-plus
functions
css
menu-logo.cssmenu-logo.min.cssnavigation-branding.cssnavigation-branding.min.cssoffside.cssoffside.min.csssticky.csssticky.min.css
generate-menu-plus.phpjs
page-header
functions
css
functions.phpglobal-locations.phpjs
full-height.jsfull-height.min.jsjquery.vide.min.jslc_switch.jsmetabox.jsparallax.jsparallax.min.jswp-color-picker-alpha.min.js
metabox.phppage-header.phppost-image.phppost-type.phpsecondary-nav
functions
generate-secondary-nav.phpsections
functions
generate-sections.phpsites
assets
classes
class-beaver-builder-batch-processing.phpclass-content-importer.phpclass-site-helper.phpclass-site-import-image.phpclass-site-restore.phpclass-site-widget-importer.phpclass-site.phpclass-sites-background-process.php
libs
sites.phpspacing
functions
customizer
content-spacing.phpfooter-spacing.phpheader-spacing.php
functions.phpmigration.phpjs
navigation-spacing.phpsecondary-nav-spacing.phpsidebar-spacing.phptop-bar-spacing.phptypography
functions
functions.phpgoogle-fonts.json
generate-fonts.phpjs
migration.phpsecondary-nav-fonts.phpslideout-nav-fonts.phpwoocommerce-fonts.phpwoocommerce
functions
css
woocommerce-mobile.csswoocommerce-mobile.min.csswoocommerce-tablet.csswoocommerce-tablet.min.csswoocommerce.csswoocommerce.min.css
customizer
functions.phpjs
menu-icons
CHANGELOG.mdLICENSE
assets
banner-1544x500.jpgbanner-772x250.jpgscreenshot-1.pngscreenshot-2.pngscreenshot-3.pngscreenshot-4.pngscreenshot-5.pngscreenshot-6.pngscreenshot-7.pngscreenshot-8.png
css
includes
js
languages
mailin.phpmenu-icons.phpreadme.mdreadme.txtvendor
autoload.php
codeinwp
icon-picker
LICENSE
assets
css
icon-picker.cssicon-picker.min.css
icon-picker.phptypes
Elusive-Icons.eotElusive-Icons.svgElusive-Icons.ttfElusive-Icons.woffGenericons.eotGenericons.svgGenericons.ttfGenericons.woffelusive.csselusive.min.cssfont-awesome.cssfont-awesome.min.cssfontawesome-webfont.eotfontawesome-webfont.svgfontawesome-webfont.ttffontawesome-webfont.wofffontawesome-webfont.woff2foundation-icons.cssfoundation-icons.eotfoundation-icons.min.cssfoundation-icons.svgfoundation-icons.ttffoundation-icons.woffgenericons.cssgenericons.min.css
includes
js
languages
phpcs.ruleset.xmlreadme.mdreadme.txtmenu-item-custom-fields
themeisle-sdk
composer
simple-local-avatars
readme.txtscreenshot-1.pngsimple-local-avatars.dev.jssimple-local-avatars.jssimple-local-avatars.php
static-html-output-plugin
languages
static-html-output-plugin-ja_UTF.mostatic-html-output-plugin-ja_UTF.postatic-html-output-plugin-sp_UTF.mostatic-html-output-plugin-sp_UTF.postatic-html-output-plugin.pot
plugin
CSSParser
FTP
URL2
WP2Static.phpWP2Static
Archive.phpArchiveProcessor.phpCSSProcessor.phpDBSettings.phpDeployer.phpDispatcher.phpExporter.phpFileCopier.phpFileWriter.phpFilesHelper.phpHTMLProcessor.phpMimeTypes.phpOptions.phpPostSettings.phpProgressLog.phpRequest.phpSiteCrawler.phpSitePublisher.phpTXTProcessor.phpTemplateHelper.phpView.phpWP2Static.phpWPSite.phpWsLog.php
deployers
wp2static-wp-cli-commands.phpviews
bitbucket_settings_block.phtmlbunnycdn_settings_block.phtmlfolder_settings_block.phtmlftp_settings_block.phtmlgithub_settings_block.phtmlgitlab_settings_block.phtmlmessage.phtmlnetlify_settings_block.phtmloptions-page-js.phtmloptions-page.phtmls3_settings_block.phtmltab_advanced.phtmltab_crawling.phtmltab_export.phtmltab_help.phtmltab_logs.phtmltab_love.phtmltab_processing.phtmlzip_settings_block.phtml
wp2static.csswp2static.phpwp-mail-smtp
assets
css
images
about
icon-full.svgicon-none.svgicon-partial.svgplugin-mi.pngplugin-om.pngplugin-rp.pngplugin-wpf.pngteam.jpg
control
email
logo.svglogs
menu-icon.svgproviders
aws.svggoogle.svgmailgun.svgmicrosoft.svgpepipost-smtp.pngpepipost.pngphp.svgsendgrid.svgsendinblue.svgsmtp.svg
recommended.svgjs
jquery.matchHeight.jsjquery.matchHeight.min.jssmtp-about.jssmtp-about.min.jssmtp-admin.jssmtp-admin.min.js
languages
libs
src
Admin
Conflicts.phpCore.phpDebug.phpGeo.phpMailCatcher.phpMigration.phpOptions.phpProcessor.phpProviders
AmazonSES
AuthAbstract.phpAuthInterface.phpGmail
Loader.phpMail
MailerAbstract.phpMailerInterface.phpMailgun
OptionsAbstract.phpOptionsInterface.phpOutlook
Pepipost
PepipostAPI
SMTP
Sendgrid
Sendinblue
vendor
autoload.php
wp-mail-smtp-0.11.2.phpwp-mail-smtp.phpwp_mail_smtp.phpcomposer
ClassLoader.phpautoload_classmap.phpautoload_files.phpautoload_namespaces.phpautoload_psr4.phpautoload_real.phpautoload_static.php
google
apiclient-services
LICENSE
src
Google
Service
Gmail.php
Gmail
AutoForwarding.phpBatchDeleteMessagesRequest.phpBatchModifyMessagesRequest.phpDelegate.phpDraft.phpFilter.phpFilterAction.phpFilterCriteria.phpForwardingAddress.phpHistory.phpHistoryLabelAdded.phpHistoryLabelRemoved.phpHistoryMessageAdded.phpHistoryMessageDeleted.phpImapSettings.phpLabel.phpLabelColor.phpLanguageSettings.phpListDelegatesResponse.phpListDraftsResponse.phpListFiltersResponse.phpListForwardingAddressesResponse.phpListHistoryResponse.phpListLabelsResponse.phpListMessagesResponse.phpListSendAsResponse.phpListSmimeInfoResponse.phpListThreadsResponse.phpMessage.phpMessagePart.phpMessagePartBody.phpMessagePartHeader.phpModifyMessageRequest.phpModifyThreadRequest.phpPopSettings.phpProfile.php
Resource
Users.phpUsersDrafts.phpUsersHistory.phpUsersLabels.phpUsersMessages.phpUsersMessagesAttachments.phpUsersSettings.phpUsersSettingsDelegates.phpUsersSettingsFilters.phpUsersSettingsForwardingAddresses.phpUsersSettingsSendAs.phpUsersSettingsSendAsSmimeInfo.phpUsersThreads.php
SendAs.phpSmimeInfo.phpSmtpMsa.phpThread.phpVacationSettings.phpWatchRequest.phpWatchResponse.phpapiclient
LICENSE
src
Google
AccessToken
AuthHandler
Client.phpCollection.phpException.phpHttp
Model.phpService.phpService
Task
Utils
autoload.phpauth
COPYINGLICENSEautoload.php
src
AccessToken.phpApplicationDefaultCredentials.php
Cache
CacheTrait.phpCredentials
AppIdentityCredentials.phpGCECredentials.phpIAMCredentials.phpInsecureCredentials.phpServiceAccountCredentials.phpServiceAccountJwtAccessCredentials.phpUserRefreshCredentials.php
CredentialsLoader.phpFetchAuthTokenCache.phpFetchAuthTokenInterface.phpHttpHandler
Iam.phpMiddleware
OAuth2.phpServiceAccountSignerTrait.phpSignBlobInterface.phpSubscriber
guzzlehttp
guzzle
DockerfileLICENSE
src
Client.phpClientInterface.php
Cookie
Exception
BadResponseException.phpClientException.phpConnectException.phpGuzzleException.phpInvalidArgumentException.phpRequestException.phpSeekException.phpServerException.phpTooManyRedirectsException.phpTransferException.php
Handler
CurlFactory.phpCurlFactoryInterface.phpCurlHandler.phpCurlMultiHandler.phpEasyHandle.phpMockHandler.phpProxy.phpStreamHandler.php
HandlerStack.phpMessageFormatter.phpMiddleware.phpPool.phpPrepareBodyMiddleware.phpRedirectMiddleware.phpRequestOptions.phpRetryMiddleware.phpTransferStats.phpUriTemplate.phpfunctions.phpfunctions_include.phppromises
LICENSE
src
psr7
LICENSE
src
AppendStream.phpBufferStream.phpCachingStream.phpDroppingStream.phpFnStream.phpInflateStream.phpLazyOpenStream.phpLimitStream.phpMessageTrait.phpMultipartStream.phpNoSeekStream.phpPumpStream.phpRequest.phpResponse.phpRfc7230.phpServerRequest.phpStream.phpStreamDecoratorTrait.phpStreamWrapper.phpUploadedFile.phpUri.phpUriNormalizer.phpUriResolver.phpfunctions.phpfunctions_include.php
monolog
monolog
LICENSE
src
Monolog
ErrorHandler.php
Formatter
ChromePHPFormatter.phpElasticaFormatter.phpFlowdockFormatter.phpFluentdFormatter.phpFormatterInterface.phpGelfMessageFormatter.phpHtmlFormatter.phpJsonFormatter.phpLineFormatter.phpLogglyFormatter.phpLogstashFormatter.phpMongoDBFormatter.phpNormalizerFormatter.phpScalarFormatter.phpWildfireFormatter.php
Handler
AbstractHandler.phpAbstractProcessingHandler.phpAbstractSyslogHandler.phpAmqpHandler.phpBrowserConsoleHandler.phpBufferHandler.phpChromePHPHandler.phpCouchDBHandler.phpCubeHandler.php
Logger.phpCurl
DeduplicationHandler.phpDoctrineCouchDBHandler.phpDynamoDbHandler.phpElasticSearchHandler.phpErrorLogHandler.phpFilterHandler.phpFingersCrossed
FingersCrossedHandler.phpFirePHPHandler.phpFleepHookHandler.phpFlowdockHandler.phpFormattableHandlerInterface.phpFormattableHandlerTrait.phpGelfHandler.phpGroupHandler.phpHandlerInterface.phpHandlerWrapper.phpHipChatHandler.phpIFTTTHandler.phpInsightOpsHandler.phpLogEntriesHandler.phpLogglyHandler.phpMailHandler.phpMandrillHandler.phpMissingExtensionException.phpMongoDBHandler.phpNativeMailerHandler.phpNewRelicHandler.phpNullHandler.phpPHPConsoleHandler.phpProcessableHandlerInterface.phpProcessableHandlerTrait.phpPsrHandler.phpPushoverHandler.phpRavenHandler.phpRedisHandler.phpRollbarHandler.phpRotatingFileHandler.phpSamplingHandler.phpSlack
SlackHandler.phpSlackWebhookHandler.phpSlackbotHandler.phpSocketHandler.phpStreamHandler.phpSwiftMailerHandler.phpSyslogHandler.phpSyslogUdp
SyslogUdpHandler.phpTestHandler.phpWhatFailureGroupHandler.phpZendMonitorHandler.phpProcessor
GitProcessor.phpIntrospectionProcessor.phpMemoryPeakUsageProcessor.phpMemoryProcessor.phpMemoryUsageProcessor.phpMercurialProcessor.phpProcessIdProcessor.phpProcessorInterface.phpPsrLogMessageProcessor.phpTagProcessor.phpUidProcessor.phpWebProcessor.php
Registry.phpResettableInterface.phpSignalHandler.phpUtils.phpphpseclib
phpseclib
psr
ralouphie
getallheaders
sendinblue
api-v3-sdk
lib
Api
AccountApi.phpAttributesApi.phpContactsApi.phpEmailCampaignsApi.phpFoldersApi.phpListsApi.phpProcessApi.phpResellerApi.phpSMSCampaignsApi.phpSMTPApi.phpSendersApi.phpTransactionalSMSApi.phpWebhooksApi.php
ApiException.phpConfiguration.phpHeaderSelector.phpModel
AddChildDomain.phpAddContactToList.phpAddCredits.phpCreateAttribute.phpCreateAttributeEnumeration.phpCreateChild.phpCreateContact.phpCreateEmailCampaign.phpCreateEmailCampaignRecipients.phpCreateEmailCampaignSender.phpCreateList.phpCreateModel.phpCreateReseller.phpCreateSender.phpCreateSenderIps.phpCreateSenderModel.phpCreateSmsCampaign.phpCreateSmsCampaignRecipients.phpCreateSmtpEmail.phpCreateSmtpTemplate.phpCreateSmtpTemplateSender.phpCreateUpdateContactModel.phpCreateUpdateFolder.phpCreateWebhook.phpCreatedProcessId.phpDeleteHardbounces.phpEmailExportRecipients.phpErrorModel.phpGetAccount.phpGetAccountMarketingAutomation.phpGetAccountPlan.phpGetAccountRelay.phpGetAccountRelayData.phpGetAggregatedReport.phpGetAttributes.phpGetAttributesAttributes.phpGetAttributesEnumeration.phpGetCampaignOverview.phpGetCampaignRecipients.phpGetCampaignStats.phpGetChildDomain.phpGetChildDomains.phpGetChildInfo.phpGetChildInfoApiKeys.phpGetChildInfoApiKeysV2.phpGetChildInfoApiKeysV3.phpGetChildInfoCredits.phpGetChildInfoStatistics.phpGetChildrenList.phpGetClient.phpGetContactCampaignStats.phpGetContactCampaignStatsClicked.phpGetContactCampaignStatsOpened.phpGetContactCampaignStatsTransacAttributes.phpGetContactCampaignStatsUnsubscriptions.phpGetContactDetails.phpGetContacts.phpGetEmailCampaign.phpGetEmailCampaigns.phpGetEmailEventReport.phpGetEmailEventReportEvents.phpGetExtendedCampaignOverview.phpGetExtendedCampaignOverviewSender.phpGetExtendedCampaignStats.phpGetExtendedClient.phpGetExtendedClientAddress.phpGetExtendedContactDetails.phpGetExtendedContactDetailsStatistics.phpGetExtendedContactDetailsStatisticsClicked.phpGetExtendedContactDetailsStatisticsLinks.phpGetExtendedContactDetailsStatisticsMessagesSent.phpGetExtendedContactDetailsStatisticsOpened.phpGetExtendedContactDetailsStatisticsUnsubscriptions.phpGetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.phpGetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.phpGetExtendedList.phpGetExtendedListCampaignStats.phpGetFolder.phpGetFolderLists.phpGetFolders.phpGetIp.phpGetIpFromSender.phpGetIps.phpGetIpsFromSender.phpGetList.phpGetLists.phpGetProcess.phpGetProcesses.phpGetReports.phpGetReportsReports.phpGetSendersList.phpGetSendersListIps.phpGetSendersListSenders.phpGetSmsCampaign.phpGetSmsCampaignOverview.phpGetSmsCampaignStats.phpGetSmsCampaigns.phpGetSmsEventReport.phpGetSmsEventReportEvents.phpGetSmtpTemplateOverview.phpGetSmtpTemplateOverviewSender.phpGetSmtpTemplates.phpGetSsoToken.phpGetStatsByDomain.phpGetTransacAggregatedSmsReport.phpGetTransacSmsReport.phpGetTransacSmsReportReports.phpGetWebhook.phpGetWebhooks.phpManageIp.phpModelInterface.phpPostContactInfo.phpPostContactInfoContacts.phpPostSendFailed.phpPostSendSmsTestFailed.phpRemainingCreditModel.phpRemainingCreditModelChild.phpRemainingCreditModelReseller.phpRemoveContactFromList.phpRemoveCredits.phpRequestContactExport.phpRequestContactImport.phpRequestContactImportNewList.phpRequestSMSRecipientExport.phpSendEmail.phpSendEmailAttachment.phpSendReport.phpSendReportEmail.phpSendSms.phpSendSmtpEmail.phpSendSmtpEmailAttachment.phpSendSmtpEmailBcc.phpSendSmtpEmailCc.phpSendSmtpEmailReplyTo.phpSendSmtpEmailSender.phpSendSmtpEmailTo.phpSendTemplateEmail.phpSendTestEmail.phpSendTestSms.phpSendTransacSms.phpUpdateAttribute.phpUpdateAttributeEnumeration.phpUpdateCampaignStatus.phpUpdateChild.phpUpdateChildAccountStatus.phpUpdateChildDomain.phpUpdateContact.phpUpdateEmailCampaign.phpUpdateEmailCampaignRecipients.phpUpdateEmailCampaignSender.phpUpdateList.phpUpdateSender.phpUpdateSmsCampaign.phpUpdateSmtpTemplate.phpUpdateSmtpTemplateSender.phpUpdateWebhook.php
ObjectSerializer.phpwp-piwik
LICENSEREADME.mdbitcoin.png
classes
WP_Piwik.php
config.phpWP_Piwik
Admin.php
Admin
Logger.phpLogger
Request.phpRequest
Settings.phpShortcode.phpTemplate.phpTemplate
TrackingCode.phpWidget.phpWidget
css
gpl-3.0.htmlindex.phpjs
index.php
jqplot
IMPORTANT_NOTICE.txtMIT-LICENSE.txtREADME.txtchanges.txtcopyright.txtexcanvas.min.jsgpl-2.0.txtindex.phpjquery.jqplot.min.cssjquery.jqplot.min.js
plugins
usage.txtwp-piwik.jqplot.jssparkline
wp-piwik.jslanguages
.tx
update.shwp-piwik-az_AZ.mowp-piwik-az_AZ.powp-piwik-be_BY.mowp-piwik-be_BY.powp-piwik-cs_CZ.mowp-piwik-cs_CZ.powp-piwik-de_CH.mowp-piwik-de_CH.powp-piwik-de_DE.mowp-piwik-de_DE.powp-piwik-el.mowp-piwik-el.powp-piwik-el_GR.mowp-piwik-el_GR.powp-piwik-es_ES.mowp-piwik-es_ES.powp-piwik-fa_IR.mowp-piwik-fa_IR.powp-piwik-fr_FR.mowp-piwik-fr_FR.powp-piwik-hi.mowp-piwik-hi.powp-piwik-hu_HU.mowp-piwik-hu_HU.powp-piwik-id.mowp-piwik-id.powp-piwik-it_IT.mowp-piwik-it_IT.powp-piwik-lb.mowp-piwik-lb.powp-piwik-lt_LT.mowp-piwik-lt_LT.powp-piwik-nb_NO.mowp-piwik-nb_NO.powp-piwik-nl_NL.mowp-piwik-nl_NL.powp-piwik-pl_PL.mowp-piwik-pl_PL.powp-piwik-pt_BR.mowp-piwik-pt_BR.powp-piwik-ro_RO.mowp-piwik-ro_RO.powp-piwik-ru_RU.mowp-piwik-ru_RU.powp-piwik-sl_SI.mowp-piwik-sl_SI.powp-piwik-sq.mowp-piwik-sq.powp-piwik-sv_SE.mowp-piwik-sv_SE.powp-piwik-tr_TR.mowp-piwik-tr_TR.powp-piwik-ua_UA.mowp-piwik-ua_UA.powp-piwik-uk_UA.mowp-piwik-uk_UA.powp-piwik-zh_CN.mowp-piwik-zh_CN.powp-piwik.potproxy
readme.txtscreenshot-1.gifscreenshot-2.gifscreenshot-3.gifscreenshot-4.gifscreenshot-5.gifuninstall.phpupdate
wp-piwik.phpwpml-config.xmlthemes
generatepress
404.phparchive.phpcomments.phpcontent-link.phpcontent-page.phpcontent-single.phpcontent.php
index.phpcss
admin
all.min.cssfont-awesome.cssfont-awesome.min.cssmobile.cssmobile.min.cssunsemantic-grid-lite.cssunsemantic-grid-lite.min.cssunsemantic-grid.cssunsemantic-grid.min.cssfonts
FontAwesome.otffontawesome-webfont.eotfontawesome-webfont.svgfontawesome-webfont.ttffontawesome-webfont.wofffontawesome-webfont.woff2generatepress.eotgeneratepress.svggeneratepress.ttfgeneratepress.woffgeneratepress.woff2
footer.phpfunctions.phpheader.phpinc
block-editor.phpclass-css.phpcss-output.phpcustomizer.phpdashboard.phpdefaults.phpdeprecated.phpgeneral.phpmarkup.phpmeta-box.phpmigrate.phpplugin-compat.php
index.phpcustomizer
controls
class-deprecated.phpclass-range-control.phpclass-typography-control.phpclass-upsell-control.phpclass-upsell-section.php
customizer-helpers.phpdeprecated.phphelpers.phpcss
js
structure
archives.phpcomments.phpfeatured-images.phpfooter.phpheader.phpnavigation.phppost-meta.phpsidebars.php
theme-functions.phptypography.phpjs
a11y.jsa11y.min.js
no-results.phppage.phpreadme.txtrtl.cssscreenshot.pngsearch.phpsearchform.phpsidebar-left.phpsidebar.phpsingle.phpstyle.cssstyle.min.cssadmin
back-to-top.jsback-to-top.min.jsclassList.jsclassList.min.jsdropdown-click.jsdropdown-click.min.jsmenu.jsmenu.min.jsnavigation-search.jsnavigation-search.min.jstwentynineteen
404.phparchive.php
classes
comments.phpfonts
footer.phpfunctions.phpheader.phpimage.phpinc
back-compat.phpcolor-patterns.phpcustomizer.phphelper-functions.phpicon-functions.phptemplate-functions.phptemplate-tags.php
index.phpjs
customize-controls.jscustomize-preview.jspriority-menu.jsskip-link-focus-fix.jstouch-keyboard-navigation.js
package-lock.jsonpackage.jsonpage.phppostcss.config.jsprint.cssprint.scssreadme.txtsass
_normalize.scss
screenshot.pngsearch.phpsingle.phpstyle-editor-customizer.cssstyle-editor-customizer.scssstyle-editor.cssstyle-editor.scssstyle-rtl.cssstyle.cssstyle.scssblocks
elements
forms
layout
media
mixins
modules
navigation
_links.scss_menu-footer-navigation.scss_menu-main-navigation.scss_menu-social-navigation.scss_navigation.scss_next-previous.scss
site
typography
variables-site
template-parts
twentyseventeen
404.phparchive.phpcomments.phpfooter.phpfront-page.phpfunctions.phpheader.php
assets
css
images
js
inc
back-compat.phpcolor-patterns.phpcustom-header.phpcustomizer.phpicon-functions.phptemplate-functions.phptemplate-tags.php
index.phppage.phpreadme.txtrtl.cssscreenshot.pngsearch.phpsearchform.phpsidebar.phpsingle.phpstyle.csstemplate-parts
twentysixteen
404.phparchive.phpcomments.php
css
footer.phpfunctions.phpgenericons
COPYING.txtGenericons.eotGenericons.svgGenericons.ttfGenericons.woffLICENSE.txtREADME.mdgenericons.css
header.phpimage.phpinc
index.phpjs
color-scheme-control.jscustomize-preview.jsfunctions.jshtml5.jskeyboard-image-navigation.jsskip-link-focus-fix.js
page.phpreadme.txtrtl.cssscreenshot.pngsearch.phpsearchform.phpsidebar-content-bottom.phpsidebar.phpsingle.phpstyle.csstemplate-parts
191
wp-content/plugins/activitypub/includes/rest/class-nodeinfo.php
Normal file
191
wp-content/plugins/activitypub/includes/rest/class-nodeinfo.php
Normal file
@ -0,0 +1,191 @@
|
||||
<?php
|
||||
namespace Activitypub\Rest;
|
||||
|
||||
/**
|
||||
* ActivityPub NodeInfo REST-Class
|
||||
*
|
||||
* @author Matthias Pfefferle
|
||||
*
|
||||
* @see http://nodeinfo.diaspora.software/
|
||||
*/
|
||||
class Nodeinfo {
|
||||
/**
|
||||
* Initialize the class, registering WordPress hooks
|
||||
*/
|
||||
public static function init() {
|
||||
\add_action( 'rest_api_init', array( '\Activitypub\Rest\Nodeinfo', 'register_routes' ) );
|
||||
\add_filter( 'nodeinfo_data', array( '\Activitypub\Rest\Nodeinfo', 'add_nodeinfo_discovery' ), 10, 2 );
|
||||
\add_filter( 'nodeinfo2_data', array( '\Activitypub\Rest\Nodeinfo', 'add_nodeinfo2_discovery' ), 10 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register routes
|
||||
*/
|
||||
public static function register_routes() {
|
||||
\register_rest_route(
|
||||
'activitypub/1.0', '/nodeinfo/discovery', array(
|
||||
array(
|
||||
'methods' => \WP_REST_Server::READABLE,
|
||||
'callback' => array( '\Activitypub\Rest\Nodeinfo', 'discovery' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
\register_rest_route(
|
||||
'activitypub/1.0', '/nodeinfo', array(
|
||||
array(
|
||||
'methods' => \WP_REST_Server::READABLE,
|
||||
'callback' => array( '\Activitypub\Rest\Nodeinfo', 'nodeinfo' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
\register_rest_route(
|
||||
'activitypub/1.0', '/nodeinfo2', array(
|
||||
array(
|
||||
'methods' => \WP_REST_Server::READABLE,
|
||||
'callback' => array( '\Activitypub\Rest\Nodeinfo', 'nodeinfo2' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render NodeInfo file
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
*
|
||||
* @return WP_REST_Response
|
||||
*/
|
||||
public static function nodeinfo( $request ) {
|
||||
$nodeinfo = array();
|
||||
|
||||
$nodeinfo['version'] = '2.0';
|
||||
$nodeinfo['software'] = array(
|
||||
'name' => 'wordpress',
|
||||
'version' => \get_bloginfo( 'version' ),
|
||||
);
|
||||
|
||||
$users = \count_users();
|
||||
$posts = \wp_count_posts();
|
||||
$comments = \wp_count_comments();
|
||||
|
||||
$nodeinfo['usage'] = array(
|
||||
'users' => array(
|
||||
'total' => (int) $users['total_users'],
|
||||
),
|
||||
'localPosts' => (int) $posts->publish,
|
||||
'localComments' => (int) $comments->approved,
|
||||
);
|
||||
|
||||
$nodeinfo['openRegistrations'] = false;
|
||||
$nodeinfo['protocols'] = array( 'activitypub' );
|
||||
|
||||
$nodeinfo['services'] = array(
|
||||
'inbound' => array(),
|
||||
'outbound' => array(),
|
||||
);
|
||||
|
||||
$nodeinfo['metadata'] = array(
|
||||
'email' => \get_option( 'admin_email' ),
|
||||
);
|
||||
|
||||
return new \WP_REST_Response( $nodeinfo, 200 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Render NodeInfo file
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
*
|
||||
* @return WP_REST_Response
|
||||
*/
|
||||
public static function nodeinfo2( $request ) {
|
||||
$nodeinfo = array();
|
||||
|
||||
$nodeinfo['version'] = '1.0';
|
||||
$nodeinfo['server'] = array(
|
||||
'baseUrl' => home_url( '/' ),
|
||||
'name' => \get_bloginfo( 'name' ),
|
||||
'software' => 'wordpress',
|
||||
'version' => \get_bloginfo( 'version' ),
|
||||
);
|
||||
|
||||
$users = \count_users();
|
||||
$posts = \wp_count_posts();
|
||||
$comments = \wp_count_comments();
|
||||
|
||||
$nodeinfo['usage'] = array(
|
||||
'users' => array(
|
||||
'total' => (int) $users['total_users'],
|
||||
),
|
||||
'localPosts' => (int) $posts->publish,
|
||||
'localComments' => (int) $comments->approved,
|
||||
);
|
||||
|
||||
$nodeinfo['openRegistrations'] = false;
|
||||
$nodeinfo['protocols'] = array( 'activitypub' );
|
||||
|
||||
$nodeinfo['services'] = array(
|
||||
'inbound' => array(),
|
||||
'outbound' => array(),
|
||||
);
|
||||
|
||||
$nodeinfo['metadata'] = array(
|
||||
'email' => \get_option( 'admin_email' ),
|
||||
);
|
||||
|
||||
return new \WP_REST_Response( $nodeinfo, 200 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Render NodeInfo discovery file
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
*
|
||||
* @return WP_REST_Response
|
||||
*/
|
||||
public static function discovery( $request ) {
|
||||
$discovery = array();
|
||||
$discovery['links'] = array(
|
||||
array(
|
||||
'rel' => 'http://nodeinfo.diaspora.software/ns/schema/2.0',
|
||||
'href' => \get_rest_url( null, 'activitypub/1.0/nodeinfo' ),
|
||||
),
|
||||
);
|
||||
|
||||
return new \WP_REST_Response( $discovery, 200 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Extend NodeInfo data
|
||||
*
|
||||
* @param array $nodeinfo NodeInfo data
|
||||
* @param string The NodeInfo Version
|
||||
*
|
||||
* @return array The extended array
|
||||
*/
|
||||
public static function add_nodeinfo_discovery( $nodeinfo, $version ) {
|
||||
if ( '2.0' === $version ) {
|
||||
$nodeinfo['protocols'][] = 'activitypub';
|
||||
} else {
|
||||
$nodeinfo['protocols']['inbound'][] = 'activitypub';
|
||||
$nodeinfo['protocols']['outbound'][] = 'activitypub';
|
||||
}
|
||||
|
||||
return $nodeinfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extend NodeInfo2 data
|
||||
*
|
||||
* @param array $nodeinfo NodeInfo2 data
|
||||
*
|
||||
* @return array The extended array
|
||||
*/
|
||||
public static function add_nodeinfo2_discovery( $nodeinfo ) {
|
||||
$nodeinfo['protocols'][] = 'activitypub';
|
||||
|
||||
return $nodeinfo;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user