Changeset 2841301
- Timestamp:
- 12/29/2022 10:01:25 PM (3 years ago)
- Location:
- tori-ajax
- Files:
-
- 440 added
- 1 deleted
- 5 edited
-
tags/2.0.0 (added)
-
tags/2.0.0/LICENSE.txt (added)
-
tags/2.0.0/README.txt (added)
-
tags/2.0.0/admin (added)
-
tags/2.0.0/admin/class-toria-admin.php (added)
-
tags/2.0.0/admin/css (added)
-
tags/2.0.0/admin/css/toria-admin.css (added)
-
tags/2.0.0/admin/css/toria-admin.css.map (added)
-
tags/2.0.0/admin/css/toria-admin.scss (added)
-
tags/2.0.0/assets (added)
-
tags/2.0.0/assets/screenshot-1.png (added)
-
tags/2.0.0/assets/screenshot-2.png (added)
-
tags/2.0.0/assets/toria-edit-Ajax.png (added)
-
tags/2.0.0/assets/toria-menu-list.png (added)
-
tags/2.0.0/freemius (added)
-
tags/2.0.0/freemius/LICENSE.txt (added)
-
tags/2.0.0/freemius/README.md (added)
-
tags/2.0.0/freemius/assets (added)
-
tags/2.0.0/freemius/assets/css (added)
-
tags/2.0.0/freemius/assets/css/admin (added)
-
tags/2.0.0/freemius/assets/css/admin/account.css (added)
-
tags/2.0.0/freemius/assets/css/admin/add-ons.css (added)
-
tags/2.0.0/freemius/assets/css/admin/affiliation.css (added)
-
tags/2.0.0/freemius/assets/css/admin/checkout.css (added)
-
tags/2.0.0/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/2.0.0/freemius/assets/css/admin/common.css (added)
-
tags/2.0.0/freemius/assets/css/admin/connect.css (added)
-
tags/2.0.0/freemius/assets/css/admin/debug.css (added)
-
tags/2.0.0/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/2.0.0/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/2.0.0/freemius/assets/css/admin/index.php (added)
-
tags/2.0.0/freemius/assets/css/admin/optout.css (added)
-
tags/2.0.0/freemius/assets/css/admin/plugins.css (added)
-
tags/2.0.0/freemius/assets/css/customizer.css (added)
-
tags/2.0.0/freemius/assets/css/index.php (added)
-
tags/2.0.0/freemius/assets/img (added)
-
tags/2.0.0/freemius/assets/img/index.php (added)
-
tags/2.0.0/freemius/assets/img/plugin-icon.png (added)
-
tags/2.0.0/freemius/assets/img/theme-icon.png (added)
-
tags/2.0.0/freemius/assets/index.php (added)
-
tags/2.0.0/freemius/assets/js (added)
-
tags/2.0.0/freemius/assets/js/index.php (added)
-
tags/2.0.0/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/2.0.0/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
tags/2.0.0/freemius/assets/js/postmessage.js (added)
-
tags/2.0.0/freemius/config.php (added)
-
tags/2.0.0/freemius/includes (added)
-
tags/2.0.0/freemius/includes/class-freemius-abstract.php (added)
-
tags/2.0.0/freemius/includes/class-freemius.php (added)
-
tags/2.0.0/freemius/includes/class-fs-admin-notices.php (added)
-
tags/2.0.0/freemius/includes/class-fs-api.php (added)
-
tags/2.0.0/freemius/includes/class-fs-lock.php (added)
-
tags/2.0.0/freemius/includes/class-fs-logger.php (added)
-
tags/2.0.0/freemius/includes/class-fs-options.php (added)
-
tags/2.0.0/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/2.0.0/freemius/includes/class-fs-security.php (added)
-
tags/2.0.0/freemius/includes/class-fs-storage.php (added)
-
tags/2.0.0/freemius/includes/class-fs-user-lock.php (added)
-
tags/2.0.0/freemius/includes/customizer (added)
-
tags/2.0.0/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/2.0.0/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/2.0.0/freemius/includes/customizer/index.php (added)
-
tags/2.0.0/freemius/includes/debug (added)
-
tags/2.0.0/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/2.0.0/freemius/includes/debug/debug-bar-start.php (added)
-
tags/2.0.0/freemius/includes/debug/index.php (added)
-
tags/2.0.0/freemius/includes/entities (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-billing.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-entity.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-payment.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-site.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/2.0.0/freemius/includes/entities/class-fs-user.php (added)
-
tags/2.0.0/freemius/includes/entities/index.php (added)
-
tags/2.0.0/freemius/includes/fs-core-functions.php (added)
-
tags/2.0.0/freemius/includes/fs-essential-functions.php (added)
-
tags/2.0.0/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/2.0.0/freemius/includes/index.php (added)
-
tags/2.0.0/freemius/includes/l10n.php (added)
-
tags/2.0.0/freemius/includes/managers (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/2.0.0/freemius/includes/managers/index.php (added)
-
tags/2.0.0/freemius/includes/sdk (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/2.0.0/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/2.0.0/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/2.0.0/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/2.0.0/freemius/includes/sdk/LICENSE.txt (added)
-
tags/2.0.0/freemius/includes/sdk/index.php (added)
-
tags/2.0.0/freemius/includes/supplements (added)
-
tags/2.0.0/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/2.0.0/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/2.0.0/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/2.0.0/freemius/includes/supplements/index.php (added)
-
tags/2.0.0/freemius/index.php (added)
-
tags/2.0.0/freemius/languages (added)
-
tags/2.0.0/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/2.0.0/freemius/languages/freemius-da_DK.mo (added)
-
tags/2.0.0/freemius/languages/freemius-de_DE.mo (added)
-
tags/2.0.0/freemius/languages/freemius-en.mo (added)
-
tags/2.0.0/freemius/languages/freemius-es_ES.mo (added)
-
tags/2.0.0/freemius/languages/freemius-fr_FR.mo (added)
-
tags/2.0.0/freemius/languages/freemius-he_IL.mo (added)
-
tags/2.0.0/freemius/languages/freemius-hu_HU.mo (added)
-
tags/2.0.0/freemius/languages/freemius-it_IT.mo (added)
-
tags/2.0.0/freemius/languages/freemius-ja.mo (added)
-
tags/2.0.0/freemius/languages/freemius-nl_NL.mo (added)
-
tags/2.0.0/freemius/languages/freemius-ru_RU.mo (added)
-
tags/2.0.0/freemius/languages/freemius-ta.mo (added)
-
tags/2.0.0/freemius/languages/freemius-zh_CN.mo (added)
-
tags/2.0.0/freemius/languages/freemius.pot (added)
-
tags/2.0.0/freemius/languages/index.php (added)
-
tags/2.0.0/freemius/require.php (added)
-
tags/2.0.0/freemius/start.php (added)
-
tags/2.0.0/freemius/templates (added)
-
tags/2.0.0/freemius/templates/account (added)
-
tags/2.0.0/freemius/templates/account.php (added)
-
tags/2.0.0/freemius/templates/account/billing.php (added)
-
tags/2.0.0/freemius/templates/account/index.php (added)
-
tags/2.0.0/freemius/templates/account/partials (added)
-
tags/2.0.0/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/2.0.0/freemius/templates/account/partials/addon.php (added)
-
tags/2.0.0/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/2.0.0/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/2.0.0/freemius/templates/account/partials/index.php (added)
-
tags/2.0.0/freemius/templates/account/partials/site.php (added)
-
tags/2.0.0/freemius/templates/account/payments.php (added)
-
tags/2.0.0/freemius/templates/add-ons.php (added)
-
tags/2.0.0/freemius/templates/add-trial-to-pricing.php (added)
-
tags/2.0.0/freemius/templates/admin-notice.php (added)
-
tags/2.0.0/freemius/templates/ajax-loader.php (added)
-
tags/2.0.0/freemius/templates/auto-installation.php (added)
-
tags/2.0.0/freemius/templates/checkout.php (added)
-
tags/2.0.0/freemius/templates/clone-resolution-js.php (added)
-
tags/2.0.0/freemius/templates/connect (added)
-
tags/2.0.0/freemius/templates/connect.php (added)
-
tags/2.0.0/freemius/templates/connect/index.php (added)
-
tags/2.0.0/freemius/templates/connect/permission.php (added)
-
tags/2.0.0/freemius/templates/connect/permissions-group.php (added)
-
tags/2.0.0/freemius/templates/contact.php (added)
-
tags/2.0.0/freemius/templates/debug (added)
-
tags/2.0.0/freemius/templates/debug.php (added)
-
tags/2.0.0/freemius/templates/debug/api-calls.php (added)
-
tags/2.0.0/freemius/templates/debug/index.php (added)
-
tags/2.0.0/freemius/templates/debug/logger.php (added)
-
tags/2.0.0/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/2.0.0/freemius/templates/debug/scheduled-crons.php (added)
-
tags/2.0.0/freemius/templates/email.php (added)
-
tags/2.0.0/freemius/templates/firewall-issues-js.php (added)
-
tags/2.0.0/freemius/templates/forms (added)
-
tags/2.0.0/freemius/templates/forms/affiliation.php (added)
-
tags/2.0.0/freemius/templates/forms/data-debug-mode.php (added)
-
tags/2.0.0/freemius/templates/forms/deactivation (added)
-
tags/2.0.0/freemius/templates/forms/deactivation/contact.php (added)
-
tags/2.0.0/freemius/templates/forms/deactivation/form.php (added)
-
tags/2.0.0/freemius/templates/forms/deactivation/index.php (added)
-
tags/2.0.0/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/2.0.0/freemius/templates/forms/email-address-update.php (added)
-
tags/2.0.0/freemius/templates/forms/index.php (added)
-
tags/2.0.0/freemius/templates/forms/license-activation.php (added)
-
tags/2.0.0/freemius/templates/forms/optout.php (added)
-
tags/2.0.0/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/2.0.0/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/2.0.0/freemius/templates/forms/resend-key.php (added)
-
tags/2.0.0/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/2.0.0/freemius/templates/forms/trial-start.php (added)
-
tags/2.0.0/freemius/templates/forms/user-change.php (added)
-
tags/2.0.0/freemius/templates/gdpr-optin-js.php (added)
-
tags/2.0.0/freemius/templates/index.php (added)
-
tags/2.0.0/freemius/templates/js (added)
-
tags/2.0.0/freemius/templates/js/index.php (added)
-
tags/2.0.0/freemius/templates/js/jquery.content-change.php (added)
-
tags/2.0.0/freemius/templates/js/open-license-activation.php (added)
-
tags/2.0.0/freemius/templates/js/permissions.php (added)
-
tags/2.0.0/freemius/templates/js/style-premium-theme.php (added)
-
tags/2.0.0/freemius/templates/partials (added)
-
tags/2.0.0/freemius/templates/partials/index.php (added)
-
tags/2.0.0/freemius/templates/partials/network-activation.php (added)
-
tags/2.0.0/freemius/templates/plugin-icon.php (added)
-
tags/2.0.0/freemius/templates/plugin-info (added)
-
tags/2.0.0/freemius/templates/plugin-info/description.php (added)
-
tags/2.0.0/freemius/templates/plugin-info/features.php (added)
-
tags/2.0.0/freemius/templates/plugin-info/index.php (added)
-
tags/2.0.0/freemius/templates/plugin-info/screenshots.php (added)
-
tags/2.0.0/freemius/templates/powered-by.php (added)
-
tags/2.0.0/freemius/templates/pricing.php (added)
-
tags/2.0.0/freemius/templates/secure-https-header.php (added)
-
tags/2.0.0/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/2.0.0/freemius/templates/tabs-capture-js.php (added)
-
tags/2.0.0/freemius/templates/tabs.php (added)
-
tags/2.0.0/includes (added)
-
tags/2.0.0/includes/ajax (added)
-
tags/2.0.0/includes/ajax/class-toria-ajax.php (added)
-
tags/2.0.0/includes/ajax/index.php (added)
-
tags/2.0.0/includes/class-toria-activator.php (added)
-
tags/2.0.0/includes/class-toria-ajax-api.php (added)
-
tags/2.0.0/includes/class-toria-deactivator.php (added)
-
tags/2.0.0/includes/class-toria-i18n.php (added)
-
tags/2.0.0/includes/class-toria-loader.php (added)
-
tags/2.0.0/includes/class-toria-uninstaller.php (added)
-
tags/2.0.0/includes/class-toria.php (added)
-
tags/2.0.0/includes/index.php (added)
-
tags/2.0.0/index.php (added)
-
tags/2.0.0/languages (added)
-
tags/2.0.0/languages/index.php (added)
-
tags/2.0.0/languages/toria.pot (added)
-
tags/2.0.0/toria.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin (added)
-
trunk/admin/class-toria-admin.php (added)
-
trunk/admin/css (added)
-
trunk/admin/css/toria-admin.css (added)
-
trunk/admin/css/toria-admin.css.map (added)
-
trunk/admin/css/toria-admin.scss (added)
-
trunk/assets/toria-edit-Ajax.png (added)
-
trunk/assets/toria-menu-list.png (added)
-
trunk/freemius (added)
-
trunk/freemius/LICENSE.txt (added)
-
trunk/freemius/README.md (added)
-
trunk/freemius/assets (added)
-
trunk/freemius/assets/css (added)
-
trunk/freemius/assets/css/admin (added)
-
trunk/freemius/assets/css/admin/account.css (added)
-
trunk/freemius/assets/css/admin/add-ons.css (added)
-
trunk/freemius/assets/css/admin/affiliation.css (added)
-
trunk/freemius/assets/css/admin/checkout.css (added)
-
trunk/freemius/assets/css/admin/clone-resolution.css (added)
-
trunk/freemius/assets/css/admin/common.css (added)
-
trunk/freemius/assets/css/admin/connect.css (added)
-
trunk/freemius/assets/css/admin/debug.css (added)
-
trunk/freemius/assets/css/admin/dialog-boxes.css (added)
-
trunk/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
trunk/freemius/assets/css/admin/index.php (added)
-
trunk/freemius/assets/css/admin/optout.css (added)
-
trunk/freemius/assets/css/admin/plugins.css (added)
-
trunk/freemius/assets/css/customizer.css (added)
-
trunk/freemius/assets/css/index.php (added)
-
trunk/freemius/assets/img (added)
-
trunk/freemius/assets/img/index.php (added)
-
trunk/freemius/assets/img/plugin-icon.png (added)
-
trunk/freemius/assets/img/theme-icon.png (added)
-
trunk/freemius/assets/index.php (added)
-
trunk/freemius/assets/js (added)
-
trunk/freemius/assets/js/index.php (added)
-
trunk/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
trunk/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
trunk/freemius/assets/js/postmessage.js (added)
-
trunk/freemius/config.php (added)
-
trunk/freemius/includes (added)
-
trunk/freemius/includes/class-freemius-abstract.php (added)
-
trunk/freemius/includes/class-freemius.php (added)
-
trunk/freemius/includes/class-fs-admin-notices.php (added)
-
trunk/freemius/includes/class-fs-api.php (added)
-
trunk/freemius/includes/class-fs-lock.php (added)
-
trunk/freemius/includes/class-fs-logger.php (added)
-
trunk/freemius/includes/class-fs-options.php (added)
-
trunk/freemius/includes/class-fs-plugin-updater.php (added)
-
trunk/freemius/includes/class-fs-security.php (added)
-
trunk/freemius/includes/class-fs-storage.php (added)
-
trunk/freemius/includes/class-fs-user-lock.php (added)
-
trunk/freemius/includes/customizer (added)
-
trunk/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
trunk/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
trunk/freemius/includes/customizer/index.php (added)
-
trunk/freemius/includes/debug (added)
-
trunk/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
trunk/freemius/includes/debug/debug-bar-start.php (added)
-
trunk/freemius/includes/debug/index.php (added)
-
trunk/freemius/includes/entities (added)
-
trunk/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
trunk/freemius/includes/entities/class-fs-affiliate.php (added)
-
trunk/freemius/includes/entities/class-fs-billing.php (added)
-
trunk/freemius/includes/entities/class-fs-entity.php (added)
-
trunk/freemius/includes/entities/class-fs-payment.php (added)
-
trunk/freemius/includes/entities/class-fs-plugin-info.php (added)
-
trunk/freemius/includes/entities/class-fs-plugin-license.php (added)
-
trunk/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
trunk/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
trunk/freemius/includes/entities/class-fs-plugin.php (added)
-
trunk/freemius/includes/entities/class-fs-pricing.php (added)
-
trunk/freemius/includes/entities/class-fs-scope-entity.php (added)
-
trunk/freemius/includes/entities/class-fs-site.php (added)
-
trunk/freemius/includes/entities/class-fs-subscription.php (added)
-
trunk/freemius/includes/entities/class-fs-user.php (added)
-
trunk/freemius/includes/entities/index.php (added)
-
trunk/freemius/includes/fs-core-functions.php (added)
-
trunk/freemius/includes/fs-essential-functions.php (added)
-
trunk/freemius/includes/fs-plugin-info-dialog.php (added)
-
trunk/freemius/includes/index.php (added)
-
trunk/freemius/includes/l10n.php (added)
-
trunk/freemius/includes/managers (added)
-
trunk/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-cache-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-clone-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
trunk/freemius/includes/managers/class-fs-license-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-option-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-permission-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-plan-manager.php (added)
-
trunk/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
trunk/freemius/includes/managers/index.php (added)
-
trunk/freemius/includes/sdk (added)
-
trunk/freemius/includes/sdk/Exceptions (added)
-
trunk/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
trunk/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
trunk/freemius/includes/sdk/Exceptions/Exception.php (added)
-
trunk/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
trunk/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
trunk/freemius/includes/sdk/Exceptions/index.php (added)
-
trunk/freemius/includes/sdk/FreemiusBase.php (added)
-
trunk/freemius/includes/sdk/FreemiusWordPress.php (added)
-
trunk/freemius/includes/sdk/LICENSE.txt (added)
-
trunk/freemius/includes/sdk/index.php (added)
-
trunk/freemius/includes/supplements (added)
-
trunk/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
trunk/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
trunk/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
trunk/freemius/includes/supplements/index.php (added)
-
trunk/freemius/index.php (added)
-
trunk/freemius/languages (added)
-
trunk/freemius/languages/freemius-cs_CZ.mo (added)
-
trunk/freemius/languages/freemius-da_DK.mo (added)
-
trunk/freemius/languages/freemius-de_DE.mo (added)
-
trunk/freemius/languages/freemius-en.mo (added)
-
trunk/freemius/languages/freemius-es_ES.mo (added)
-
trunk/freemius/languages/freemius-fr_FR.mo (added)
-
trunk/freemius/languages/freemius-he_IL.mo (added)
-
trunk/freemius/languages/freemius-hu_HU.mo (added)
-
trunk/freemius/languages/freemius-it_IT.mo (added)
-
trunk/freemius/languages/freemius-ja.mo (added)
-
trunk/freemius/languages/freemius-nl_NL.mo (added)
-
trunk/freemius/languages/freemius-ru_RU.mo (added)
-
trunk/freemius/languages/freemius-ta.mo (added)
-
trunk/freemius/languages/freemius-zh_CN.mo (added)
-
trunk/freemius/languages/freemius.pot (added)
-
trunk/freemius/languages/index.php (added)
-
trunk/freemius/require.php (added)
-
trunk/freemius/start.php (added)
-
trunk/freemius/templates (added)
-
trunk/freemius/templates/account (added)
-
trunk/freemius/templates/account.php (added)
-
trunk/freemius/templates/account/billing.php (added)
-
trunk/freemius/templates/account/index.php (added)
-
trunk/freemius/templates/account/partials (added)
-
trunk/freemius/templates/account/partials/activate-license-button.php (added)
-
trunk/freemius/templates/account/partials/addon.php (added)
-
trunk/freemius/templates/account/partials/deactivate-license-button.php (added)
-
trunk/freemius/templates/account/partials/disconnect-button.php (added)
-
trunk/freemius/templates/account/partials/index.php (added)
-
trunk/freemius/templates/account/partials/site.php (added)
-
trunk/freemius/templates/account/payments.php (added)
-
trunk/freemius/templates/add-ons.php (added)
-
trunk/freemius/templates/add-trial-to-pricing.php (added)
-
trunk/freemius/templates/admin-notice.php (added)
-
trunk/freemius/templates/ajax-loader.php (added)
-
trunk/freemius/templates/auto-installation.php (added)
-
trunk/freemius/templates/checkout.php (added)
-
trunk/freemius/templates/clone-resolution-js.php (added)
-
trunk/freemius/templates/connect (added)
-
trunk/freemius/templates/connect.php (added)
-
trunk/freemius/templates/connect/index.php (added)
-
trunk/freemius/templates/connect/permission.php (added)
-
trunk/freemius/templates/connect/permissions-group.php (added)
-
trunk/freemius/templates/contact.php (added)
-
trunk/freemius/templates/debug (added)
-
trunk/freemius/templates/debug.php (added)
-
trunk/freemius/templates/debug/api-calls.php (added)
-
trunk/freemius/templates/debug/index.php (added)
-
trunk/freemius/templates/debug/logger.php (added)
-
trunk/freemius/templates/debug/plugins-themes-sync.php (added)
-
trunk/freemius/templates/debug/scheduled-crons.php (added)
-
trunk/freemius/templates/email.php (added)
-
trunk/freemius/templates/firewall-issues-js.php (added)
-
trunk/freemius/templates/forms (added)
-
trunk/freemius/templates/forms/affiliation.php (added)
-
trunk/freemius/templates/forms/data-debug-mode.php (added)
-
trunk/freemius/templates/forms/deactivation (added)
-
trunk/freemius/templates/forms/deactivation/contact.php (added)
-
trunk/freemius/templates/forms/deactivation/form.php (added)
-
trunk/freemius/templates/forms/deactivation/index.php (added)
-
trunk/freemius/templates/forms/deactivation/retry-skip.php (added)
-
trunk/freemius/templates/forms/email-address-update.php (added)
-
trunk/freemius/templates/forms/index.php (added)
-
trunk/freemius/templates/forms/license-activation.php (added)
-
trunk/freemius/templates/forms/optout.php (added)
-
trunk/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
trunk/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
trunk/freemius/templates/forms/resend-key.php (added)
-
trunk/freemius/templates/forms/subscription-cancellation.php (added)
-
trunk/freemius/templates/forms/trial-start.php (added)
-
trunk/freemius/templates/forms/user-change.php (added)
-
trunk/freemius/templates/gdpr-optin-js.php (added)
-
trunk/freemius/templates/index.php (added)
-
trunk/freemius/templates/js (added)
-
trunk/freemius/templates/js/index.php (added)
-
trunk/freemius/templates/js/jquery.content-change.php (added)
-
trunk/freemius/templates/js/open-license-activation.php (added)
-
trunk/freemius/templates/js/permissions.php (added)
-
trunk/freemius/templates/js/style-premium-theme.php (added)
-
trunk/freemius/templates/partials (added)
-
trunk/freemius/templates/partials/index.php (added)
-
trunk/freemius/templates/partials/network-activation.php (added)
-
trunk/freemius/templates/plugin-icon.php (added)
-
trunk/freemius/templates/plugin-info (added)
-
trunk/freemius/templates/plugin-info/description.php (added)
-
trunk/freemius/templates/plugin-info/features.php (added)
-
trunk/freemius/templates/plugin-info/index.php (added)
-
trunk/freemius/templates/plugin-info/screenshots.php (added)
-
trunk/freemius/templates/powered-by.php (added)
-
trunk/freemius/templates/pricing.php (added)
-
trunk/freemius/templates/secure-https-header.php (added)
-
trunk/freemius/templates/sticky-admin-notice-js.php (added)
-
trunk/freemius/templates/tabs-capture-js.php (added)
-
trunk/freemius/templates/tabs.php (added)
-
trunk/includes/ajax/class-toria-ajax.php (modified) (11 diffs)
-
trunk/includes/class-toria-ajax-api.php (modified) (4 diffs)
-
trunk/includes/class-toria-uninstaller.php (added)
-
trunk/includes/class-toria.php (modified) (7 diffs)
-
trunk/toria.php (modified) (2 diffs)
-
trunk/uninstall.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
tori-ajax/trunk/README.txt
r2754211 r2841301 4 4 Tags: tori_ajax, ajax, wordpress, toria_add_ajax, javascript 5 5 Requires at least: 3.0.0 6 Tested up to: 6. 07 Stable tag: 1.2.06 Tested up to: 6.1.1 7 Stable tag: 2.0.0 8 8 Requires PHP: 5.6.20 9 9 License: GPLv2 or later … … 189 189 `apply_filters( 'toria/ajax/ajax_variables', $ajax_variables, $action, $php_callback, $script_path, $mode, $nonce, $ajax_object, $ajax_handle, $script_depends, $script_version, $script_in_footer );` 190 190 191 = 2.0.0 = 192 * Compatible with WordPress 6.1.1. 193 * Fix: Ajax in **private** mode is only accessible by signed-in users and those in **public** are only accessible by signed-out users. 194 * Pro version available. 195 191 196 == Upgrade Notice == 192 197 193 = 1.2.0 =194 * Added more parameters to some filters.198 = 2.0.0 = 199 * Pro version available. 195 200 196 201 == About == -
tori-ajax/trunk/includes/ajax/class-toria-ajax.php
r2754211 r2841301 21 21 22 22 /** 23 * Holds Toria instance 24 * 25 * @since 2.0.0 26 * 27 * @var Toria 28 */ 29 protected Toria $toria; 30 31 /** 23 32 * Unique action name 24 33 * … … 125 134 * Define the core functionality of the plugin. 126 135 * 136 * @since 1.0.0 137 * @since 1.0.2 Added $script_depends,$script_version, and $script_in_footer arguments. 138 * @since 1.1.0 Added filters in the function definition. 139 * @since 2.0.0 Added param $toria. 140 * 141 * @access public 142 * 143 * @param Toria $toria holds instance of Toria class. 127 144 * @param string $action The name of action. 128 145 * @param mixed $php_callback PHP function to respond to ajax calls. … … 136 153 * @param mixed $script_version String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If the version is set to false, a version number is automatically added equal to the current installed Tori Ajax version. If set to null, no version is added. 137 154 * @param bool $script_in_footer Whether to enqueue the script before </body> instead of in the <head>. 138 *139 * @since 1.0.0140 * @since 1.0.2 Added $script_depends,$script_version, and $script_in_footer arguments.141 * @since 1.1.0 Added filters in the function definition.142 * @access public143 155 */ 144 156 public function __construct( 157 Toria $toria, 145 158 $action, 146 159 $php_callback, … … 156 169 ) { 157 170 // Process variables before use. 171 $this->toria = $toria; 158 172 if ( '' === $ajax_handle ) { 159 173 $ajax_handle = $action; … … 162 176 } 163 177 if ( false === $script_version ) { 164 global $toria; 165 $script_version = $toria->get_version(); 178 $script_version = $this->toria->get_version(); 166 179 } 167 180 … … 201 214 */ 202 215 public function create_ajax() { 203 if ( 'both' === $this->mode ) { 204 $this->add_private_ajax(); 205 $this->add_public_ajax(); 206 } elseif ( 'private' === $this->mode ) { 207 $this->add_private_ajax(); 208 } elseif ( 'public' === $this->mode ) { 209 $this->add_public_ajax(); 210 } 211 216 if ( is_user_logged_in() ) { 217 if ( ( 'both' === $this->mode || 'private' === $this->mode ) ) { 218 $this->add_private_ajax(); 219 $this->admin_enqueue_scripts(); 220 $this->frontend_enqueue_scripts(); 221 } 222 } else { 223 // signed out user on front end. 224 if ( ( 'both' === $this->mode || 'public' === $this->mode ) ) { 225 $this->add_public_ajax(); 226 $this->frontend_enqueue_scripts(); 227 } 228 } 229 } 230 231 /** 232 * Add admin script 233 * 234 * @since 2.0.0 235 * @access public 236 */ 237 public function admin_enqueue_scripts() { 238 add_action( 'admin_enqueue_scripts', array( $this, 'toria_enqueue_script_callback' ) ); 239 } 240 241 /** 242 * Add frond end script 243 * 244 * @since 2.0.0 245 * @access public 246 */ 247 public function frontend_enqueue_scripts() { 248 add_action( 'wp_enqueue_scripts', array( $this, 'toria_enqueue_script_callback' ) ); 212 249 } 213 250 … … 220 257 public function add_public_ajax() { 221 258 add_action( 'wp_ajax_nopriv_' . $this->action, array( $this, 'toria_ajax_callback' ) ); 222 add_action( 'wp_enqueue_scripts', array( $this, 'toria_enqueue_script_callback' ) );223 259 } 224 260 … … 230 266 */ 231 267 public function add_private_ajax() { 232 add_action( 'wp_ajax_' . $this->action, array( $this, 'toria_ajax_callback' ) ); 233 add_action( 'admin_enqueue_scripts', array( $this, 'toria_enqueue_script_callback' ) ); 268 add_action( 'wp_ajax_' . $this->action, array( $this, 'toria_ajax_callback' ) ); 234 269 } 235 270 … … 246 281 } 247 282 248 global $toria; 249 $allowed_html = $toria->get_allowed_html(); 250 if ( $toria->get_wp_version_value() >= 3.6 ) { 283 $allowed_html = $this->toria->get_allowed_html(); 284 if ( $this->toria->get_wp_version_value() >= 3.6 ) { 251 285 if ( ! wp_verify_nonce( wp_kses( wp_unslash( $_REQUEST['nonce'] ), $allowed_html ), $this->nonce ) ) { 252 286 $msg = __( 'Nonce verification failed', 'toria' ); … … 287 321 */ 288 322 private function terminate( $message = '' ) { 289 global $toria; 290 $wp_version_value = $toria->get_wp_version_value(); 323 $wp_version_value = $this->toria->get_wp_version_value(); 291 324 if ( '' !== $message ) { 292 325 if ( $wp_version_value >= 4.1 ) { … … 300 333 if ( $wp_version_value >= 3.4 ) { 301 334 if ( '' !== $message ) { 302 wp_die( wp_kses( $message, $t oria->get_allowed_html() ) );335 wp_die( wp_kses( $message, $this->toria->get_allowed_html() ) ); 303 336 } 304 337 wp_die(); 305 338 } else { 306 339 if ( '' !== $message ) { 307 die( wp_kses( $message, $t oria->get_allowed_html() ) );340 die( wp_kses( $message, $this->toria->get_allowed_html() ) ); 308 341 } 309 342 die; -
tori-ajax/trunk/includes/class-toria-ajax-api.php
r2754211 r2841301 28 28 public $ajax_objects; 29 29 30 /** 31 * Holds Toria instance 32 * 33 * @since 2.0.0 34 * 35 * @var Toria 36 */ 37 protected Toria $toria; 30 38 31 39 /** … … 33 41 * 34 42 * @since 1.0.0 43 * @since 2.0.0 added parameter toria 44 * 45 * @param Toria $toria Toria Instance. 35 46 */ 36 public function __construct() { 47 public function __construct( Toria $toria ) { 48 $this->toria = $toria; 37 49 $this->ajax_objects = array(); 38 50 } … … 76 88 if ( ! array_key_exists( $action, $this->ajax_objects ) ) { 77 89 $this->ajax_objects[ $action ] = new Toria_Ajax( 90 $this->toria, 78 91 $action, 79 92 $php_callback, … … 94 107 95 108 } 96 // Todo: Add function to return all ajax objects in array. 109 110 /** 111 * Gets $jax_objects 112 * 113 * @since 2.0.0 114 * 115 * @return array 116 */ 117 public function get_ajax_objects() { 118 return $this->ajax_objects; 119 } 97 120 } -
tori-ajax/trunk/includes/class-toria.php
r2754211 r2841301 85 85 86 86 /** 87 * Plugin base_url. 88 * 89 * @since 2.0.0 90 * 91 * @var [type] 92 */ 93 protected $plugin_base_url; 94 95 /** 87 96 * Define the core functionality of the plugin. 88 97 * … … 97 106 $this->version = TORIA_VERSION; 98 107 } else { 99 $this->version = ' 1.2.0';108 $this->version = '2.0.0'; 100 109 } 101 110 $this->plugin_name = 'toria'; 102 111 $this->allowed_html = array(); 112 $this->plugin_base_url = plugin_dir_url( __DIR__ ); 113 $this->capability = 'update_core';// 'administrator' 103 114 $this->set_wp_version_value(); 104 115 … … 106 117 $this->set_locale(); 107 118 $this->init_ajax_api(); 119 $this->define_admin_hooks(); 108 120 109 121 } … … 148 160 */ 149 161 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/ajax/class-toria-ajax.php'; 162 163 /** 164 * The class responsible for defining all actions that occur in the admin area. 165 */ 166 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-toria-admin.php'; 150 167 151 168 $this->loader = new Toria_Loader(); … … 197 214 */ 198 215 private function init_ajax_api() { 199 200 $this->ajax_api = new Toria_Ajax_API(); 216 $this->ajax_api = new Toria_Ajax_API( $this ); 201 217 } 202 218 … … 246 262 $script_in_footer 247 263 ); 248 264 } 265 266 /** 267 * Register all of the hooks related to the admin area functionality 268 * of the plugin. 269 * 270 * @since 2.0.0 271 * @access private 272 */ 273 private function define_admin_hooks() { 274 275 $plugin_admin = new Toria_Admin( $this ); 276 // instantiate meta boxes on the post edit screen. 277 if ( is_admin() ) { 278 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); 279 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); 280 $this->loader->add_action( 'init', $plugin_admin, 'admin_menu' ); 281 } 249 282 } 250 283 … … 309 342 } 310 343 344 /** 345 * Returns $this->capability 346 * 347 * @since 2.0.0 348 * 349 * @return mixed 350 */ 351 public function get_capability() { 352 return apply_filters( 'toria/setting/capability', $this->capability, $this );// phpcs:ignore; 353 } 354 355 /** 356 * Gets plugin_base_url 357 * 358 * @since 2.0.0 359 * 360 * @return string 361 */ 362 public function get_plugin_base_url() { 363 return $this->plugin_base_url; 364 } 311 365 312 366 } -
tori-ajax/trunk/toria.php
r2754211 r2841301 16 16 * Plugin URI: http://toriajax.com/ 17 17 * Description: Adds Ajax in WordPress with a few lines of code. 18 * Version: 1.2.018 * Version: 2.0.0 19 19 * Author: Alvin Muthui 20 20 * Author URI: https://profiles.wordpress.org/alvinmuthui/ … … 30 30 } 31 31 32 /** 33 * Currently plugin version. 34 */ 35 define( 'TORIA_VERSION', '1.2.0' ); 36 37 /** 38 * The code that runs during plugin activation. 39 * This action is documented in includes/class-toria-activator.php 40 */ 41 function activate_toria() { 42 require_once plugin_dir_path( __FILE__ ) . 'includes/class-toria-activator.php'; 43 Toria_Activator::activate(); 44 } 45 46 /** 47 * The code that runs during plugin deactivation. 48 * This action is documented in includes/class-toria-deactivator.php 49 */ 50 function deactivate_toria() { 51 require_once plugin_dir_path( __FILE__ ) . 'includes/class-toria-deactivator.php'; 52 Toria_Deactivator::deactivate(); 53 } 54 55 register_activation_hook( __FILE__, 'activate_toria' ); 56 register_deactivation_hook( __FILE__, 'deactivate_toria' ); 57 58 /** 59 * The core plugin class that is used to define internationalization, 60 * admin-specific hooks, and public-facing site hooks. 61 */ 62 require plugin_dir_path( __FILE__ ) . 'includes/class-toria.php'; 63 64 /** 65 * Begins execution of the plugin. 66 * 67 * Since everything within the plugin is registered via hooks, 68 * then kicking off the plugin from this point in the file does 69 * not affect the page life cycle. 70 * 71 * @since 1.0.0 72 */ 73 function init_toria() { 74 75 $toria = new Toria(); 76 $toria->run(); 77 return $toria; 78 79 } 80 $toria = init_toria(); 81 82 /** 83 * Adds Ajax scripts and their associated actions and callback 84 * 85 * @param string $action The name of the Ajax action. 86 * @param mixed $php_callback PHP function to respond to ajax calls. 87 * @param string $script_path File path containing you Javascript file. 88 * @param string $mode (string) Determines if script will be exposed to authenticated Ajax actions for logged-in users or non-authenticated Ajax actions for logged-out users or both. Using both, private, and public. 89 * @param array $ajax_variables Variables to be passed to be available for JS to utilize. 90 * @param string $nonce (string) Used to create WP nonce for verification on PHP callback. 91 * @param string $ajax_object (string) Name of object to be storing JS variables. 92 * @param string $ajax_handle Name of script. 93 * @param array $script_depends (string[]) (Optional) An array of registered script handles this script depends on. Default value: array(). 94 * @param mixed $script_version String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If the version is set to false, a version number is automatically added equal to the current installed Tori Ajax version. If set to null, no version is added. Default value: false. 95 * @param bool $script_in_footer (bool) (Optional) Whether to enqueue the script before </body> instead of in the <head>. Default 'false'. 96 * @return bool Whether it is added or not. 97 * 98 * @since 1.0.0 99 * @since 1.0.2 Added $script_depends, $script_version, and $script_in_footer arguments. 100 * @access public 101 */ 102 function toria_add_ajax( 103 $action, 104 $php_callback, 105 $script_path, 106 $mode = 'private', 107 $ajax_variables = array(), 108 $nonce = 'my_custom_value_submission_test', 109 $ajax_object = 'toria', 110 $ajax_handle = '', 111 $script_depends = array(), 112 $script_version = false, 113 $script_in_footer = true 114 ) { 115 global $toria; 116 return $toria->add_ajax( 32 33 if ( function_exists( 'toria_fs' ) ) { 34 toria_fs()->set_basename( false, __FILE__ ); 35 } else { 36 if ( ! function_exists( 'toria_fs' ) ) { 37 38 /** 39 * FS 40 * 41 * @since 2.0.0 42 * 43 * @return mixed 44 */ 45 function toria_fs() { 46 global $toria_fs; 47 48 if ( ! isset( $toria_fs ) ) { 49 // Activate multisite network integration. 50 if ( ! defined( 'WP_FS__PRODUCT_11581_MULTISITE' ) ) { 51 define( 'WP_FS__PRODUCT_11581_MULTISITE', true ); 52 } 53 54 // Include Freemius SDK. 55 require_once dirname( __FILE__ ) . '/freemius/start.php'; 56 57 $toria_fs = fs_dynamic_init( 58 array( 59 'id' => '11581', 60 'slug' => 'toria', 61 'premium_slug' => 'toria_pro', 62 'type' => 'plugin', 63 'public_key' => 'pk_bd8b9c9b8493ec8bcca873c28ff10', 64 'is_premium' => true, 65 'premium_suffix' => 'Pro', 66 'has_premium_version' => false, 67 'has_addons' => false, 68 'has_paid_plans' => true, 69 'trial' => array( 70 'days' => 7, 71 'is_require_payment' => true, 72 ), 73 'menu' => array( 74 'slug' => 'toria', 75 'first-path' => 'admin.php?page=toria', 76 ), 77 ) 78 ); 79 } 80 81 return $toria_fs; 82 } 83 84 // Init Freemius. 85 toria_fs(); 86 // Signal that SDK was initiated. 87 do_action( 'toria_fs_loaded' ); 88 } 89 90 /** 91 * Currently plugin version. 92 */ 93 define( 'TORIA_VERSION', '2.0.0' ); 94 95 /** 96 * The code that runs during plugin activation. 97 * This action is documented in includes/class-toria-activator.php 98 */ 99 function activate_toria() { 100 require_once plugin_dir_path( __FILE__ ) . 'includes/class-toria-activator.php'; 101 Toria_Activator::activate(); 102 } 103 104 /** 105 * The code that runs during plugin deactivation. 106 * This action is documented in includes/class-toria-deactivator.php 107 */ 108 function deactivate_toria() { 109 require_once plugin_dir_path( __FILE__ ) . 'includes/class-toria-deactivator.php'; 110 Toria_Deactivator::deactivate(); 111 } 112 113 /** 114 * The code that runs during plugin uninstall. 115 * This action is documented in includes/class-toria-uninstaller.php 116 * 117 * @since 2.0.0 118 * 119 * @return void 120 */ 121 function toria_fs_uninstall_cleanup() { 122 require_once plugin_dir_path( __FILE__ ) . 'includes/class-toria-uninstaller.php'; 123 Toria_Uninstaller::uninstall(); 124 } 125 126 register_activation_hook( __FILE__, 'activate_toria' ); 127 register_deactivation_hook( __FILE__, 'deactivate_toria' ); 128 toria_fs()->add_action( 'after_uninstall', 'toria_fs_uninstall_cleanup' ); 129 130 /** 131 * The core plugin class that is used to define internationalization, 132 * admin-specific hooks, and public-facing site hooks. 133 */ 134 require plugin_dir_path( __FILE__ ) . 'includes/class-toria.php'; 135 136 /** 137 * Begins execution of the plugin. 138 * 139 * Since everything within the plugin is registered via hooks, 140 * then kicking off the plugin from this point in the file does 141 * not affect the page life cycle. 142 * 143 * @since 1.0.0 144 */ 145 function init_toria() { 146 147 $toria = new Toria(); 148 $toria->run(); 149 return $toria; 150 151 } 152 $toria = init_toria(); 153 154 /** 155 * Adds Ajax scripts and their associated actions and callback 156 * 157 * @param string $action The name of the Ajax action. 158 * @param mixed $php_callback PHP function to respond to ajax calls. 159 * @param string $script_path File path containing you Javascript file. 160 * @param string $mode (string) Determines if script will be exposed to authenticated Ajax actions for logged-in users or non-authenticated Ajax actions for logged-out users or both. Using both, private, and public. 161 * @param array $ajax_variables Variables to be passed to be available for JS to utilize. 162 * @param string $nonce (string) Used to create WP nonce for verification on PHP callback. 163 * @param string $ajax_object (string) Name of object to be storing JS variables. 164 * @param string $ajax_handle Name of script. 165 * @param array $script_depends (string[]) (Optional) An array of registered script handles this script depends on. Default value: array(). 166 * @param mixed $script_version String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If the version is set to false, a version number is automatically added equal to the current installed Tori Ajax version. If set to null, no version is added. Default value: false. 167 * @param bool $script_in_footer (bool) (Optional) Whether to enqueue the script before </body> instead of in the <head>. Default 'false'. 168 * @return bool Whether it is added or not. 169 * 170 * @since 1.0.0 171 * @since 1.0.2 Added $script_depends, $script_version, and $script_in_footer arguments. 172 * @access public 173 */ 174 function toria_add_ajax( 117 175 $action, 118 176 $php_callback, 119 177 $script_path, 120 $mode, 121 $ajax_variables, 122 $nonce, 123 $ajax_object, 124 $ajax_handle, 125 $script_depends, 126 $script_version, 127 $script_in_footer 128 ); 178 $mode = 'private', 179 $ajax_variables = array(), 180 $nonce = 'my_custom_value_submission_test', 181 $ajax_object = 'toria', 182 $ajax_handle = '', 183 $script_depends = array(), 184 $script_version = false, 185 $script_in_footer = true 186 ) { 187 global $toria; 188 return $toria->add_ajax( 189 $action, 190 $php_callback, 191 $script_path, 192 $mode, 193 $ajax_variables, 194 $nonce, 195 $ajax_object, 196 $ajax_handle, 197 $script_depends, 198 $script_version, 199 $script_in_footer 200 ); 201 } 129 202 } 130 203 131 204 205 206 207 208 209 210 211
Note: See TracChangeset
for help on using the changeset viewer.