├── abstracts ├── index.php ├── mycred-abstract-hook.php ├── mycred-abstract-module.php └── mycred-abstract-object.php ├── addons ├── badges │ ├── assets │ │ ├── css │ │ │ ├── admin.css │ │ │ ├── front.css │ │ │ └── index.php │ │ ├── index.php │ │ └── js │ │ │ ├── admin.js │ │ │ ├── edit-badge.js │ │ │ ├── front.js │ │ │ └── index.php │ ├── includes │ │ ├── index.php │ │ ├── mycred-badge-functions.php │ │ ├── mycred-badge-object.php │ │ ├── mycred-badge-secondary.php │ │ └── mycred-badge-shortcodes.php │ ├── index.php │ ├── myCRED-addon-badges.php │ └── templates │ │ ├── index.php │ │ ├── mycred-metabox-badge-alignment.php │ │ └── mycred-metabox-badge-layout.php ├── banking │ ├── abstracts │ │ ├── index.php │ │ └── mycred-abstract-service.php │ ├── assets │ │ ├── index.php │ │ └── js │ │ │ ├── central-deposit-admin.js │ │ │ ├── central-deposit-emails.js │ │ │ └── index.php │ ├── includes │ │ ├── index.php │ │ └── mycred-banking-functions.php │ ├── index.php │ ├── myCRED-addon-banking.php │ └── services │ │ ├── index.php │ │ ├── mycred-service-central.php │ │ └── mycred-service-schedule-deposit.php ├── buy-creds │ ├── abstracts │ │ ├── index.php │ │ └── mycred-abstract-payment-gateway.php │ ├── assets │ │ ├── css │ │ │ ├── admin-style.css │ │ │ ├── checkout.css │ │ │ ├── gateway.css │ │ │ └── index.php │ │ ├── images │ │ │ ├── bitpay.png │ │ │ ├── checkout-full.png │ │ │ ├── checkout-popup.png │ │ │ ├── index.php │ │ │ ├── loading.gif │ │ │ ├── netbilling.png │ │ │ ├── paypal.png │ │ │ └── skrill.png │ │ ├── index.php │ │ └── js │ │ │ ├── admin-script.js │ │ │ ├── checkout.js │ │ │ └── index.php │ ├── cacert.pem │ ├── gateways │ │ ├── bank-transfer.php │ │ ├── bitpay.php │ │ ├── index.php │ │ ├── netbilling.php │ │ ├── paypal-standard.php │ │ └── skrill.php │ ├── images │ │ ├── index.php │ │ ├── loading.gif │ │ ├── netbilling.png │ │ ├── skrill.png │ │ └── zombaio.jpg │ ├── includes │ │ ├── buycred-functions.php │ │ ├── buycred-reward-hook.php │ │ ├── buycred-reward.php │ │ ├── buycred-shortcodes.php │ │ └── index.php │ ├── index.php │ ├── modules │ │ ├── buycred-module-core.php │ │ ├── buycred-module-pending.php │ │ └── index.php │ ├── myCRED-addon-buy-creds.php │ └── templates │ │ ├── buycred-checkout.php │ │ └── index.php ├── cash-creds │ ├── abstracts │ │ ├── cashcred-abstract-payment-gateway.php │ │ └── index.php │ ├── assets │ │ ├── css │ │ │ ├── admin-style.css │ │ │ ├── index.php │ │ │ └── withdraw.css │ │ ├── images │ │ │ ├── index.php │ │ │ └── loading.gif │ │ ├── index.php │ │ └── js │ │ │ ├── admin-script.js │ │ │ ├── index.php │ │ │ └── withdraw.js │ ├── gateways │ │ ├── bank-transfer.php │ │ └── index.php │ ├── includes │ │ ├── cashcred-functions.php │ │ ├── cashcred-shortcodes.php │ │ └── index.php │ ├── index.php │ ├── modules │ │ ├── cashcred-module-core.php │ │ ├── cashcred-module-withdrawal.php │ │ └── index.php │ └── myCRED-addon-cash-creds.php ├── coupons │ ├── assets │ │ ├── css │ │ │ └── admin.css │ │ └── js │ │ │ └── admin.js │ ├── includes │ │ ├── index.php │ │ ├── mycred-coupon-functions.php │ │ ├── mycred-coupon-object.php │ │ └── mycred-coupon-shortcodes.php │ ├── index.php │ └── myCRED-addon-coupons.php ├── email-notices │ ├── assets │ │ ├── css │ │ │ ├── edit-email-notice.css │ │ │ ├── email-notice.css │ │ │ └── index.php │ │ ├── index.php │ │ └── js │ │ │ ├── edit-email.js │ │ │ └── index.php │ ├── css │ │ ├── edit-email-notice.css │ │ ├── email-notice.css │ │ └── index.php │ ├── includes │ │ ├── index.php │ │ ├── mycred-email-functions.php │ │ ├── mycred-email-object.php │ │ └── mycred-email-shortcodes.php │ ├── index.php │ └── myCRED-addon-email-notices.php ├── gateway │ ├── carts │ │ ├── block-compatibility │ │ │ ├── build │ │ │ │ ├── cart │ │ │ │ │ ├── block.json │ │ │ │ │ ├── cart-block-frontend.asset.php │ │ │ │ │ ├── cart-block-frontend.js │ │ │ │ │ ├── index.asset.php │ │ │ │ │ └── index.js │ │ │ │ ├── checkout │ │ │ │ │ ├── block.json │ │ │ │ │ ├── checkout-block-frontend.asset.php │ │ │ │ │ ├── checkout-block-frontend.js │ │ │ │ │ ├── index.asset.php │ │ │ │ │ └── index.js │ │ │ │ ├── mycred-woo-block-style.css │ │ │ │ └── payment │ │ │ │ │ ├── block.json │ │ │ │ │ ├── index.asset.php │ │ │ │ │ ├── index.js │ │ │ │ │ ├── payment-method.asset.php │ │ │ │ │ └── payment-method.js │ │ │ ├── mycred-woo-block-compatibility.php │ │ │ ├── mycred-woo-block-store-api.php │ │ │ ├── mycred-woo-cart-block-integration.php │ │ │ ├── mycred-woo-checkout-block-integration.php │ │ │ └── mycred-woo-payment-method-integration.php │ │ ├── index.php │ │ ├── mycred-woocommerce.php │ │ └── mycred-wpecommerce.php │ ├── event-booking │ │ ├── index.php │ │ ├── mycred-eventespresso3.php │ │ └── mycred-eventsmanager.php │ ├── index.php │ └── myCRED-addon-gateway.php ├── index.php ├── notifications │ ├── assets │ │ ├── css │ │ │ ├── index.php │ │ │ └── notify.css │ │ ├── index.php │ │ └── js │ │ │ ├── index.php │ │ │ └── notify.js │ ├── index.php │ └── myCRED-addon-notifications.php ├── ranks │ ├── assets │ │ ├── index.php │ │ └── js │ │ │ ├── index.php │ │ │ ├── management.js │ │ │ └── tweaks.js │ ├── includes │ │ ├── index.php │ │ ├── mycred-rank-functions.php │ │ ├── mycred-rank-object.php │ │ └── mycred-rank-shortcodes.php │ ├── index.php │ ├── js │ │ ├── index.php │ │ └── management.js │ └── myCRED-addon-ranks.php ├── sell-content │ ├── assets │ │ ├── index.php │ │ └── js │ │ │ ├── admin.js │ │ │ ├── buy-content.js │ │ │ └── index.php │ ├── css │ │ ├── edit.css │ │ └── index.php │ ├── includes │ │ ├── index.php │ │ ├── mycred-sell-functions.php │ │ └── mycred-sell-shortcodes.php │ ├── index.php │ ├── js │ │ ├── buy-content.js │ │ └── index.php │ └── myCRED-addon-sell-content.php ├── stats │ ├── abstracts │ │ ├── index.php │ │ └── mycred-abstract-stat-widget.php │ ├── assets │ │ ├── css │ │ │ ├── index.php │ │ │ ├── mycred-statistics-admin.css │ │ │ └── mycred-statistics.css │ │ ├── index.php │ │ ├── js │ │ │ ├── Chart.js │ │ │ ├── index.php │ │ │ └── mycred-statistics.js │ │ └── libs │ │ │ ├── Chart.bundle.min.js │ │ │ ├── index.php │ │ │ └── peity.min.js │ ├── includes │ │ ├── classes │ │ │ ├── class.query-stats.php │ │ │ └── index.php │ │ ├── index.php │ │ ├── mycred-stats-functions.php │ │ ├── mycred-stats-object.php │ │ └── mycred-stats-shortcodes.php │ ├── index.php │ ├── myCRED-addon-stats.php │ └── widgets │ │ ├── index.php │ │ ├── mycred-stats-widget-circulation.php │ │ ├── mycred-stats-widget-daily-gains.php │ │ └── mycred-stats-widget-daily-loses.php └── transfer │ ├── assets │ ├── index.php │ └── js │ │ ├── index.php │ │ └── mycred-transfer.js │ ├── css │ ├── index.php │ └── transfer.css │ ├── includes │ ├── index.php │ ├── mycred-transfer-functions.php │ ├── mycred-transfer-object.php │ ├── mycred-transfer-shortcodes.php │ └── mycred-transfer-widgets.php │ ├── index.php │ ├── js │ ├── index.php │ └── transfer.js │ └── myCRED-addon-transfer.php ├── assets ├── css │ ├── bootstrap-grid.css │ ├── font-family │ │ ├── Poppins-LightItalic.ttf │ │ ├── Poppins-Medium.ttf │ │ └── Poppins-Regular.ttf │ ├── fonts │ │ ├── mycred-social-icons.eot │ │ ├── mycred-social-icons.svg │ │ ├── mycred-social-icons.ttf │ │ └── mycred-social-icons.woff │ ├── index.php │ ├── mycred-admin-ui.css │ ├── mycred-buttons.css │ ├── mycred-font │ │ ├── mycred-fonts.eot │ │ ├── mycred-fonts.svg │ │ ├── mycred-fonts.ttf │ │ ├── mycred-fonts.woff │ │ └── mycred-fonts.woff2 │ ├── mycred-front.css │ ├── mycred-metabox.css │ ├── mycred-social-icons.css │ ├── mycred-social-share.css │ ├── select2.css │ └── tourguide.css ├── images │ ├── about │ │ ├── 56826.png │ │ ├── account.png │ │ ├── automatic-points.png │ │ ├── badges.png │ │ ├── buy-points.png │ │ ├── convert-points.png │ │ ├── leaderboards.png │ │ ├── multi-points.png │ │ ├── multi-site-support.png │ │ ├── points-management.png │ │ ├── sell-content.png │ │ └── welcome.png │ ├── addons │ │ ├── mycred-birthdays.jpg │ │ ├── mycred-blocks.jpg │ │ ├── mycred-bp-charges.jpg │ │ ├── mycred-bp-group-leaderboards.jpg │ │ ├── mycred-for-elementor.jpg │ │ ├── mycred-h5p.jpg │ │ ├── mycred-learndash.jpg │ │ ├── mycred-notification-plus.jpg │ │ ├── mycred-pacman.jpg │ │ ├── mycred-social-share.jpg │ │ ├── mycred-spin-wheel.jpg │ │ └── mycred-woocommerce-plus.jpg │ ├── admin-icons.png │ ├── badge.png │ ├── badges-addon.png │ ├── banking-addon.png │ ├── buy-creds-addon.png │ ├── buycred-checkout-page.png │ ├── coupons-addon.png │ ├── cred-icon16.png │ ├── cred-icon32.png │ ├── default-point-type.png │ ├── email-notifications-addon.png │ ├── gateway-addon.png │ ├── gateway-icons.png │ ├── index.php │ ├── logo-menu.png │ ├── mycred-about-balance.png │ ├── mycred-about-hooks.png │ ├── mycred-icon.png │ ├── mycred-loading.gif │ ├── mycred-membership-activated.png │ ├── mycred16-stats-addon.png │ ├── notifications-addon.png │ ├── ranks-addon.png │ ├── sell-content-addon.png │ ├── statistics-addon.png │ ├── token-sitting.png │ ├── transfer-addon.png │ └── treasures │ │ ├── badges.png │ │ ├── currency.png │ │ ├── fitness.png │ │ ├── gems.png │ │ ├── learning.png │ │ └── rank.png ├── index.php ├── js │ ├── admin.js │ ├── index.php │ ├── inline-edit.js │ ├── links.js │ ├── mycred-accordion.js │ ├── mycred-admin-widgets.js │ ├── mycred-edit-balance.js │ ├── mycred-edit-log.js │ ├── mycred-tools.js │ ├── mycred-type-management.js │ ├── select2.js │ ├── send.js │ ├── shepherd.js.map │ ├── tourguide.min.js │ ├── video.js │ └── youtube.js ├── libs │ ├── index.php │ ├── jquery-numerator.js │ ├── mustache.min.js │ └── parsecsv.lib.php ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png └── screenshot-4.png ├── freemius ├── LICENSE.txt ├── README.md ├── assets │ ├── css │ │ ├── admin │ │ │ ├── account.css │ │ │ ├── add-ons.css │ │ │ ├── affiliation.css │ │ │ ├── checkout.css │ │ │ ├── clone-resolution.css │ │ │ ├── common.css │ │ │ ├── connect.css │ │ │ ├── debug.css │ │ │ ├── dialog-boxes.css │ │ │ ├── gdpr-optin-notice.css │ │ │ ├── index.php │ │ │ ├── optout.css │ │ │ └── plugins.css │ │ ├── customizer.css │ │ └── index.php │ ├── img │ │ ├── index.php │ │ ├── plugin-icon.png │ │ └── theme-icon.png │ ├── index.php │ └── js │ │ ├── index.php │ │ ├── nojquery.ba-postmessage.js │ │ ├── nojquery.ba-postmessage.min.js │ │ └── postmessage.js ├── config.php ├── includes │ ├── class-freemius-abstract.php │ ├── class-freemius.php │ ├── class-fs-admin-notices.php │ ├── class-fs-api.php │ ├── class-fs-lock.php │ ├── class-fs-logger.php │ ├── class-fs-options.php │ ├── class-fs-plugin-updater.php │ ├── class-fs-security.php │ ├── class-fs-storage.php │ ├── class-fs-user-lock.php │ ├── customizer │ │ ├── class-fs-customizer-support-section.php │ │ ├── class-fs-customizer-upsell-control.php │ │ └── index.php │ ├── debug │ │ ├── class-fs-debug-bar-panel.php │ │ ├── debug-bar-start.php │ │ └── index.php │ ├── entities │ │ ├── class-fs-affiliate-terms.php │ │ ├── class-fs-affiliate.php │ │ ├── class-fs-billing.php │ │ ├── class-fs-entity.php │ │ ├── class-fs-payment.php │ │ ├── class-fs-plugin-info.php │ │ ├── class-fs-plugin-license.php │ │ ├── class-fs-plugin-plan.php │ │ ├── class-fs-plugin-tag.php │ │ ├── class-fs-plugin.php │ │ ├── class-fs-pricing.php │ │ ├── class-fs-scope-entity.php │ │ ├── class-fs-site.php │ │ ├── class-fs-subscription.php │ │ ├── class-fs-user.php │ │ └── index.php │ ├── fs-core-functions.php │ ├── fs-essential-functions.php │ ├── fs-html-escaping-functions.php │ ├── fs-plugin-info-dialog.php │ ├── index.php │ ├── l10n.php │ ├── managers │ │ ├── class-fs-admin-menu-manager.php │ │ ├── class-fs-admin-notice-manager.php │ │ ├── class-fs-cache-manager.php │ │ ├── class-fs-clone-manager.php │ │ ├── class-fs-gdpr-manager.php │ │ ├── class-fs-key-value-storage.php │ │ ├── class-fs-license-manager.php │ │ ├── class-fs-option-manager.php │ │ ├── class-fs-permission-manager.php │ │ ├── class-fs-plan-manager.php │ │ ├── class-fs-plugin-manager.php │ │ └── index.php │ ├── sdk │ │ ├── Exceptions │ │ │ ├── ArgumentNotExistException.php │ │ │ ├── EmptyArgumentException.php │ │ │ ├── Exception.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── OAuthException.php │ │ │ └── index.php │ │ ├── FreemiusBase.php │ │ ├── FreemiusWordPress.php │ │ ├── LICENSE.txt │ │ └── index.php │ └── supplements │ │ ├── fs-essential-functions-1.1.7.1.php │ │ ├── fs-essential-functions-2.2.1.php │ │ ├── fs-migration-2.5.1.php │ │ └── index.php ├── index.php ├── languages │ ├── freemius-cs_CZ.mo │ ├── freemius-da_DK.mo │ ├── freemius-de_DE.mo │ ├── freemius-en.mo │ ├── freemius-es_ES.mo │ ├── freemius-fr_FR.mo │ ├── freemius-he_IL.mo │ ├── freemius-hu_HU.mo │ ├── freemius-it_IT.mo │ ├── freemius-ja.mo │ ├── freemius-nl_NL.mo │ ├── freemius-ru_RU.mo │ ├── freemius-ta.mo │ ├── freemius-zh_CN.mo │ ├── freemius.pot │ └── index.php ├── require.php ├── start.php └── templates │ ├── account.php │ ├── account │ ├── billing.php │ ├── index.php │ ├── partials │ │ ├── activate-license-button.php │ │ ├── addon.php │ │ ├── deactivate-license-button.php │ │ ├── disconnect-button.php │ │ ├── index.php │ │ └── site.php │ └── payments.php │ ├── add-ons.php │ ├── add-trial-to-pricing.php │ ├── admin-notice.php │ ├── ajax-loader.php │ ├── api-connectivity-message-js.php │ ├── auto-installation.php │ ├── checkout.php │ ├── clone-resolution-js.php │ ├── connect.php │ ├── connect │ ├── index.php │ ├── permission.php │ └── permissions-group.php │ ├── contact.php │ ├── debug.php │ ├── debug │ ├── api-calls.php │ ├── index.php │ ├── logger.php │ ├── plugins-themes-sync.php │ └── scheduled-crons.php │ ├── email.php │ ├── firewall-issues-js.php │ ├── forms │ ├── affiliation.php │ ├── data-debug-mode.php │ ├── deactivation │ │ ├── contact.php │ │ ├── form.php │ │ ├── index.php │ │ └── retry-skip.php │ ├── email-address-update.php │ ├── index.php │ ├── license-activation.php │ ├── optout.php │ ├── premium-versions-upgrade-handler.php │ ├── premium-versions-upgrade-metadata.php │ ├── resend-key.php │ ├── subscription-cancellation.php │ ├── trial-start.php │ └── user-change.php │ ├── gdpr-optin-js.php │ ├── index.php │ ├── js │ ├── index.php │ ├── jquery.content-change.php │ ├── open-license-activation.php │ ├── permissions.php │ └── style-premium-theme.php │ ├── partials │ ├── index.php │ └── network-activation.php │ ├── plugin-icon.php │ ├── plugin-info │ ├── description.php │ ├── features.php │ ├── index.php │ └── screenshots.php │ ├── powered-by.php │ ├── pricing.php │ ├── secure-https-header.php │ ├── sticky-admin-notice-js.php │ ├── tabs-capture-js.php │ └── tabs.php ├── includes ├── classes │ ├── class.mycred-license.php │ ├── class.mycred-open-badge.php │ ├── class.query-export.php │ ├── class.query-leaderboard.php │ ├── class.query-log.php │ └── index.php ├── hooks │ ├── external │ │ ├── index.php │ │ ├── mycred-hook-affiliatewp.php │ │ ├── mycred-hook-badgeOS.php │ │ ├── mycred-hook-bbPress.php │ │ ├── mycred-hook-buddypress-media.php │ │ ├── mycred-hook-buddypress.php │ │ ├── mycred-hook-contact-form7.php │ │ ├── mycred-hook-events-manager-light.php │ │ ├── mycred-hook-gravityforms.php │ │ ├── mycred-hook-invite-anyone.php │ │ ├── mycred-hook-jetpack.php │ │ ├── mycred-hook-simplepress.php │ │ ├── mycred-hook-woocommerce.php │ │ ├── mycred-hook-wp-favorite-posts.php │ │ ├── mycred-hook-wp-polls.php │ │ └── mycred-hook-wp-postratings.php │ ├── index.php │ ├── mycred-hook-anniversary.php │ ├── mycred-hook-comments.php │ ├── mycred-hook-delete-content.php │ ├── mycred-hook-link-clicks.php │ ├── mycred-hook-logins.php │ ├── mycred-hook-publishing-content.php │ ├── mycred-hook-referrals.php │ ├── mycred-hook-registrations.php │ ├── mycred-hook-site-visits.php │ ├── mycred-hook-view-content.php │ └── mycred-hook-watching-video.php ├── importers │ ├── index.php │ ├── mycred-balances.php │ ├── mycred-cubepoints.php │ └── mycred-log-entries.php ├── index.php ├── mycred-about.php ├── mycred-blocks │ ├── blocks │ │ ├── mycred-affiliate-id │ │ │ ├── index.js │ │ │ └── mycred-affiliate-id.php │ │ ├── mycred-affiliate-link │ │ │ ├── index.js │ │ │ └── mycred-affiliate-link.php │ │ ├── mycred-badges-list │ │ │ ├── index.js │ │ │ └── mycred-badges-list.php │ │ ├── mycred-badges │ │ │ ├── index.js │ │ │ └── mycred-badges.php │ │ ├── mycred-best-user │ │ │ ├── index.js │ │ │ └── mycred-best-user.php │ │ ├── mycred-buy-form │ │ │ ├── index.js │ │ │ └── mycred-buy-form.php │ │ ├── mycred-buy-pending │ │ │ ├── index.js │ │ │ └── mycred-buy-pending.php │ │ ├── mycred-buy │ │ │ ├── index.js │ │ │ └── mycred-buy.php │ │ ├── mycred-cashcred │ │ │ ├── index.js │ │ │ └── mycred-cashcred.php │ │ ├── mycred-chart-balance-history │ │ │ ├── index.js │ │ │ └── mycred-chart-balance-history.php │ │ ├── mycred-chart-circu │ │ │ ├── index.js │ │ │ └── mycred-chart-circu.php │ │ ├── mycred-chart-gain-loss │ │ │ ├── index.js │ │ │ └── mycred-chart-gain-loss.php │ │ ├── mycred-chart-history │ │ │ ├── index.js │ │ │ └── mycred-chart-history.php │ │ ├── mycred-chart-instance-history │ │ │ ├── index.js │ │ │ └── mycred-chart-instance-history.php │ │ ├── mycred-chart-top-balance │ │ │ ├── index.js │ │ │ └── mycred-chart-top-balance.php │ │ ├── mycred-chart-top-instance │ │ │ ├── index.js │ │ │ └── mycred-chart-top-instance.php │ │ ├── mycred-email-subsc │ │ │ ├── index.js │ │ │ └── mycred-email-subsc.php │ │ ├── mycred-exchange │ │ │ ├── index.js │ │ │ └── mycred-exchange.php │ │ ├── mycred-give │ │ │ ├── index.js │ │ │ └── mycred-give.php │ │ ├── mycred-history │ │ │ ├── index.js │ │ │ └── mycred-history.php │ │ ├── mycred-hook-table │ │ │ ├── index.js │ │ │ └── mycred-hook-table.php │ │ ├── mycred-leaderboard │ │ │ ├── index.js │ │ │ └── mycred-leaderboard.php │ │ ├── mycred-link │ │ │ ├── index.js │ │ │ └── mycred-link.php │ │ ├── mycred-list-ranks │ │ │ ├── index.js │ │ │ └── mycred-list-ranks.php │ │ ├── mycred-load-coupon │ │ │ ├── index.js │ │ │ └── mycred-load-coupon.php │ │ ├── mycred-my-badges │ │ │ ├── index.js │ │ │ └── mycred-my-badges.php │ │ ├── mycred-my-balance-converted │ │ │ ├── index.js │ │ │ └── mycred-my-balance-converted.php │ │ ├── mycred-my-balance │ │ │ ├── index.js │ │ │ └── mycred-my-balance.php │ │ ├── mycred-my-rank │ │ │ ├── index.js │ │ │ └── mycred-my-rank.php │ │ ├── mycred-my-ranks │ │ │ ├── index.js │ │ │ └── mycred-my-ranks.php │ │ ├── mycred-total-balance │ │ │ ├── index.js │ │ │ └── mycred-total-balance.php │ │ ├── mycred-total-pts │ │ │ ├── index.js │ │ │ └── mycred-total-pts.php │ │ ├── mycred-total-since │ │ │ ├── index.js │ │ │ └── mycred-total-since.php │ │ ├── mycred-transfer │ │ │ ├── index.js │ │ │ └── mycred-transfer.php │ │ ├── mycred-users-of-all-ranks │ │ │ ├── index.js │ │ │ └── mycred-users-of-all-ranks.php │ │ ├── mycred-users-of-rank │ │ │ ├── index.js │ │ │ └── mycred-users-of-rank.php │ │ └── mycred-video │ │ │ ├── index.js │ │ │ └── mycred-video.php │ ├── includes │ │ └── mycred-gutenberg-functions.php │ └── mycred-blocks.php ├── mycred-database-upgrade.php ├── mycred-functions.php ├── mycred-install.php ├── mycred-main-menu.php ├── mycred-nav-menu.php ├── mycred-object.php ├── mycred-open-badge-settings.php ├── mycred-overview.php ├── mycred-protect.php ├── mycred-remote.php ├── mycred-setup.php ├── mycred-tools-bulk-assign.php ├── mycred-tools-import-export.php ├── mycred-tools-setup-import-export.php ├── mycred-tools.php ├── mycred-uninstall.php ├── mycred-walkthrough.php ├── shortcodes │ ├── index.php │ ├── mycred-badge-evidence-page.php │ ├── mycred_affiliate_id.php │ ├── mycred_affiliate_link.php │ ├── mycred_best_user.php │ ├── mycred_exchange.php │ ├── mycred_give.php │ ├── mycred_hide_if.php │ ├── mycred_history.php │ ├── mycred_hook_table.php │ ├── mycred_leaderboard.php │ ├── mycred_leaderboard_position.php │ ├── mycred_link.php │ ├── mycred_my_balance.php │ ├── mycred_my_balance_converted.php │ ├── mycred_referral_stats.php │ ├── mycred_send.php │ ├── mycred_show_if.php │ ├── mycred_total_balance.php │ ├── mycred_total_points.php │ ├── mycred_total_since.php │ └── mycred_video.php └── widgets │ ├── index.php │ ├── mycred-widget-balance.php │ ├── mycred-widget-leaderboard.php │ └── mycred-widget-wallet.php ├── index.php ├── lang ├── index.php ├── mycred-en_US.mo ├── mycred-en_US.po ├── mycred-es_ES.mo ├── mycred-es_ES.po ├── mycred-es_VE.mo ├── mycred-es_VE.po ├── mycred-fa_IR.mo ├── mycred-fa_IR.po ├── mycred-fr_FR.mo ├── mycred-fr_FR.po ├── mycred-ja_JP.mo ├── mycred-ja_JP.po ├── mycred-lt_LT.mo ├── mycred-lt_LT.po ├── mycred-pt_BR.mo ├── mycred-pt_BR.po ├── mycred-ru_RU.mo ├── mycred-ru_RU.po ├── mycred-sv_SE.mo ├── mycred-sv_SE.po ├── mycred-zh_CN.mo ├── mycred-zh_CN.po └── mycred.pot ├── membership ├── index.php ├── mycred-connect-membership.php └── subscription-functions.php ├── modules ├── index.php ├── mycred-module-addons.php ├── mycred-module-br-social-share.php ├── mycred-module-buddypress.php ├── mycred-module-caching.php ├── mycred-module-export.php ├── mycred-module-hooks.php ├── mycred-module-log.php ├── mycred-module-management.php ├── mycred-module-network.php └── mycred-module-settings.php ├── mycred.php └── readme.txt /abstracts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/assets/css/admin.css: -------------------------------------------------------------------------------- 1 | th#title { width: 20%; } 2 | th#badge-images { width: 40%; } 3 | th#badge-reqs { width: 30%; } 4 | th#badge-users { width: 10%; } 5 | 6 | div#edit-badges-page ul#profile-nav { border-bottom:solid 1px #ccc; width:100%; margin-top:1em; margin-bottom:1em; padding:1em 0; padding-bottom: 0; height:2.4em; } 7 | div#badge-wrapper { width: 100%; margin: 0; padding: 0; float: none; clear: both; } 8 | div#badge-wrapper .the-badge { width: 18%; padding: 12px 1%; float: left; margin: 0; text-align: center; } 9 | div#badge-wrapper .the-badge h4 { margin-top: 0; } 10 | div#badge-wrapper .the-badge .badge-image-wrap { padding: 24px; } 11 | div#badge-wrapper .the-badge .badge-image-wrap span { display: block; width: 98px; height: 98px; border: 1px dashed #ddd; margin: 0 auto; line-height: 100px; color: #ddd; } 12 | div#badge-wrapper .the-badge .badge-image-wrap img { margin: 0 auto; padding: 0; display: block; width: 100px; height: auto; } 13 | div#badge-wrapper .the-badge .badge-status { border-top: 1px solid #ddd; padding-top: 12px; } 14 | div#badge-wrapper .the-badge .badge-status label { font-weight: bold; display: block; } 15 | div#badge-wrapper .the-badge .badge-status .earned { color: green; } 16 | div#badge-wrapper .the-badge .badge-status .not-earned { color: red; } 17 | div#badge-wrapper .the-badge .badge-actions { } 18 | div#badge-wrapper .the-badge .badge-actions ul { margin: 0; padding: 12px 0 0 0; } 19 | div#badge-wrapper .the-badge .badge-actions ul li { list-style-type: none; margin: 0; padding: 0 0 12px 0; } -------------------------------------------------------------------------------- /addons/badges/assets/css/front.css: -------------------------------------------------------------------------------- 1 | .mycred-users-badges .the-badge.vertical { 2 | display: flex; 3 | margin-bottom: 10px; 4 | } 5 | 6 | .mycred-users-badges .the-badge.horizontal { 7 | display: inline-flex; 8 | margin-right: 10px; 9 | margin-bottom: 10px; 10 | } 11 | 12 | .mycred-users-badges .the-badge .mycred-badge-content { 13 | display: table; 14 | margin-left: 15px; 15 | } 16 | 17 | .mycred-users-badges .the-badge .mycred-badge-content h4.title { 18 | margin: 0; 19 | } 20 | 21 | .mycred-users-badges .the-badge .mycred-badge-content p.excerpt { 22 | margin: 10px 0 0 0; 23 | } -------------------------------------------------------------------------------- /addons/badges/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/assets/js/admin.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function (){ 2 | 3 | //Validation before switching to Open Badge 4 | jQuery(document).on( 'click', '#mycred-badge-is-open-badge', function (){ 5 | if ( jQuery('input#mycred-badge-is-open-badge').is(':checked') ) { 6 | if ( confirm('Activating Open Badge loss will all Levels of this badge.') ) { 7 | return true; 8 | } else { 9 | return false; 10 | } 11 | } 12 | } ); 13 | 14 | //Switch all to open badge 15 | jQuery(document).on( 'click', '#switch-all-to-open-badge', function (e){ 16 | e.preventDefault(); 17 | if ( confirm('Activating Open Badge loss will all Levels of this badge.') ) { 18 | jQuery.ajax({ 19 | url: ajaxurl, 20 | data: { 21 | action: 'mycred_switch_all_to_open_badge', 22 | }, 23 | type: 'POST', 24 | beforeSend: function() { 25 | jQuery('.mycred-switch-all-badges-icon').css("display", "inherit");; 26 | }, 27 | success:function(data) { 28 | jQuery('.mycred-switch-all-badges-icon').hide(); 29 | alert( data ); 30 | } 31 | }) 32 | } else { 33 | return false; 34 | } 35 | } ); 36 | }) -------------------------------------------------------------------------------- /addons/badges/assets/js/front.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function(){ 2 | 3 | //Badges Search Filter 4 | jQuery("#mycerd-badges-search").on("keyup", function() { 5 | var value = jQuery(this).val().toLowerCase(); 6 | jQuery(".mycred-badges-list .mycred-badges-list-item").filter(function() { 7 | jQuery(this).toggle(jQuery(this).text().toLowerCase().indexOf(value) > -1) 8 | }); 9 | }); 10 | 11 | //Show Achieved Badges 12 | jQuery(document).on( 'click', '.mycred-achieved-badge-btn', function(e){ 13 | e.preventDefault(); 14 | jQuery('.not-earned').hide(); 15 | jQuery('.earned').show(); 16 | }); 17 | 18 | //Show Not Achieved Badges 19 | jQuery(document).on( 'click', '.mycred-not-achieved-badge-btn', function(e){ 20 | e.preventDefault(); 21 | jQuery('.earned').hide(); 22 | jQuery('.not-earned').show(); 23 | }); 24 | 25 | //Clear Filter Button 26 | jQuery(document).on( 'click', '.mycred-clear-filter-btn', function(e){ 27 | e.preventDefault() 28 | jQuery('.earned').show(); 29 | jQuery('.not-earned').show(); 30 | jQuery('#mycerd-badges-search').val(''); 31 | } ) 32 | }); 33 | 34 | -------------------------------------------------------------------------------- /addons/badges/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/badges/templates/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/abstracts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/assets/js/central-deposit-admin.js: -------------------------------------------------------------------------------- 1 | jQuery(function($) { 2 | 3 | $(document).ready(function() { 4 | 5 | $('.mycred_bank_id_select2').select2({ 6 | minimumInputLength: 1, 7 | placeholder: "Select a user", 8 | ajax: { 9 | url: ajaxurl, 10 | dataType: 'json', 11 | delay: 1000, 12 | data: function (params) { 13 | return { 14 | search: params.term, 15 | page: params.page || 1, 16 | action: 'get_bank_accounts' 17 | }; 18 | }, 19 | processResults: function( data ) { 20 | console.log(data); 21 | var options = []; 22 | if ( data.users ) { 23 | 24 | $.each( data.users, function( index, user ) { 25 | options.push( { id: user.ID, text: '#'+user.ID+' - '+user.display_name+' ('+user.user_email+')' } ); 26 | }); 27 | 28 | } 29 | return { 30 | results: options, 31 | pagination: { 32 | 'more': data.more 33 | } 34 | }; 35 | }, 36 | cache: true 37 | } 38 | }); 39 | 40 | }); 41 | 42 | } ); -------------------------------------------------------------------------------- /addons/banking/assets/js/central-deposit-emails.js: -------------------------------------------------------------------------------- 1 | jQuery(function($){ 2 | 3 | $(document).ready(function(){ 4 | 5 | $( 'select#mycred-email-instance' ).change(function(e){ 6 | 7 | var selectedevent = $(this).find( ':selected' ); 8 | 9 | if ( selectedevent.val() == 'central_min_balance' ) { 10 | 11 | $( '#areference-selection' ).show(); 12 | 13 | } 14 | else { 15 | 16 | $( '#areference-selection' ).hide(); 17 | 18 | } 19 | 20 | }); 21 | 22 | }); 23 | 24 | }); -------------------------------------------------------------------------------- /addons/banking/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/includes/mycred-banking-functions.php: -------------------------------------------------------------------------------- 1 | array(), 15 | 'services' => array(), 16 | 'service_prefs' => array() 17 | ); 18 | 19 | $option_id = 'mycred_pref_bank'; 20 | if ( $point_type != MYCRED_DEFAULT_TYPE_KEY ) 21 | $option_id .= '_' . $point_type; 22 | 23 | $settings = mycred_get_option( $option_id, $default ); 24 | $settings = wp_parse_args( $settings, $default ); 25 | 26 | if ( $service !== NULL && array_key_exists( $service, $settings['service_prefs'] ) ) 27 | $settings = $settings['service_prefs'][ $service ]; 28 | 29 | return $settings; 30 | 31 | } 32 | endif; 33 | -------------------------------------------------------------------------------- /addons/banking/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/banking/services/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/abstracts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/assets/css/admin-style.css: -------------------------------------------------------------------------------- 1 | .mycred-metabox .widget-content .hook-instance .specific-hook-actions { 2 | margin-bottom: 12px !important; 3 | } 4 | 5 | .mycred-metabox .widget-content .hook-instance:last-child .specific-hook-actions { 6 | margin-bottom: 0px !important; 7 | } 8 | 9 | .mycred-metabox .widget-content .hook-instance .specific-hook-actions .mycred-add-specific-hook { 10 | display: none; 11 | } 12 | 13 | .mycred-metabox .widget-content .hook-instance:last-child .specific-hook-actions .mycred-add-specific-hook { 14 | display: initial; 15 | } -------------------------------------------------------------------------------- /addons/buy-creds/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/bitpay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/bitpay.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/checkout-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/checkout-full.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/checkout-popup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/checkout-popup.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/loading.gif -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/netbilling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/netbilling.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/paypal.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/images/skrill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/assets/images/skrill.png -------------------------------------------------------------------------------- /addons/buy-creds/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/assets/js/admin-script.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function () { 2 | jQuery(document).on( 'click', '.mycred-add-specific-hook', function() { 3 | var hook = jQuery(this).closest('.hook-instance').clone(); 4 | hook.find('input.buycred-reward-creds').val('10'); 5 | hook.find('input.buycred-reward-log').val('Reward for Buying %plural%.'); 6 | hook.find('select.buycred-reward-min').val('1'); 7 | hook.find('input.buycred-reward-max').val('10'); 8 | jQuery(this).closest('.widget-content').append( hook ); 9 | }); 10 | jQuery(document).on( 'click', '.mycred-remove-specific-hook', function() { 11 | var container = jQuery(this).closest('.widget-content'); 12 | if ( container.find('.hook-instance').length > 1 ) { 13 | var dialog = confirm("Are you sure you want to remove this hook?"); 14 | if (dialog == true) { 15 | jQuery(this).closest('.hook-instance').remove(); 16 | } 17 | } 18 | }); 19 | }); -------------------------------------------------------------------------------- /addons/buy-creds/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/gateways/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/images/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/images/loading.gif -------------------------------------------------------------------------------- /addons/buy-creds/images/netbilling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/images/netbilling.png -------------------------------------------------------------------------------- /addons/buy-creds/images/skrill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/images/skrill.png -------------------------------------------------------------------------------- /addons/buy-creds/images/zombaio.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/buy-creds/images/zombaio.jpg -------------------------------------------------------------------------------- /addons/buy-creds/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/modules/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/buy-creds/templates/buycred-checkout.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 | 8 |
9 |
10 | 11 |
12 | 13 | 14 | 15 |
16 | 17 |
18 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /addons/buy-creds/templates/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/abstracts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/assets/css/withdraw.css: -------------------------------------------------------------------------------- 1 | #cashcred { 2 | width: 100%; 3 | } 4 | 5 | #cashcred * { 6 | box-sizing: border-box; 7 | } 8 | 9 | #cashcred ul.cashcred-nav-tabs li { 10 | display: inline-block; 11 | padding: 10px; 12 | position: relative; 13 | border: 1px solid #e9e9e9; 14 | margin-right: 5px; 15 | margin-bottom: 5px; 16 | } 17 | 18 | #cashcred ul.cashcred-nav-tabs li.active { 19 | background-color: #efefef; 20 | } 21 | 22 | #cashcred ul.cashcred-nav-tabs { 23 | margin: 0; 24 | padding: 0; 25 | list-style: none; 26 | cursor: pointer; 27 | } 28 | 29 | #cashcred #cashcred_tab_content .cashcred-tab { 30 | border: 1px solid #e9e9e9; 31 | padding: 5px; 32 | width: 100%; 33 | margin-top: 5px; 34 | padding-right: 10px; 35 | padding-left: 10px; 36 | } 37 | 38 | #cashcred .form-group label { 39 | min-width: 184px; 40 | } 41 | 42 | #cashcred input[type=number],#cashcred select,#cashcred textarea,#cashcred input[type=text] { 43 | width: 100%; 44 | padding: 12px; 45 | border: 1px solid #ccc; 46 | border-radius: 4px; 47 | resize: vertical; 48 | } 49 | 50 | #cashcred label { 51 | padding: 12px 12px 12px 0; 52 | display: inline-block; 53 | } 54 | 55 | #cashcred input[type=submit] { 56 | margin-top: 10px; 57 | margin-bottom: 5px; 58 | } 59 | 60 | #cashcred input[type=submit]:hover { 61 | background-color: #c8c8c8; 62 | } 63 | 64 | #cashcred select { 65 | cursor: pointer; 66 | } 67 | 68 | #cashcred_total{ 69 | text-align: right; 70 | margin-top: 15px; 71 | margin-bottom: 15px; 72 | border-bottom: 3px double #cccccc; 73 | border-top: 3px double #cccccc; 74 | padding: 10px; 75 | min-width: 140px; 76 | float: right; 77 | } 78 | 79 | .cashcred-tab{ 80 | display:none; 81 | } 82 | 83 | .cashcred-min { 84 | font-style: italic; 85 | } 86 | 87 | .cashcred_gateway_notice { 88 | display: none; 89 | color: red; 90 | font-size: smaller; 91 | } 92 | 93 | #cashcred_total span.amount_label { 94 | margin-right: 5px; 95 | } -------------------------------------------------------------------------------- /addons/cash-creds/assets/images/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/assets/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/cash-creds/assets/images/loading.gif -------------------------------------------------------------------------------- /addons/cash-creds/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/assets/js/admin-script.js: -------------------------------------------------------------------------------- 1 | jQuery(function($){ 2 | 3 | $(document).ready(function(){ 4 | $( 'h1 .page-title-action, .wrap .page-title-action' ).remove(); 5 | $( '#titlewrap #title' ).attr( 'readonly', 'readonly' ).addClass( 'readonly' ); 6 | 7 | //fee 8 | $('#cashcred-pending-payment-points').keyup( function(){ 9 | var cashcred_point_type = $( "#cashcred-pending-payment-point_type" ).val(); 10 | var amount = $(this).val(); 11 | 12 | cashcred_fee_setting( cashcred_point_type, amount ) 13 | 14 | }); 15 | }); 16 | 17 | function cashcred_fee_setting( point_type, withdraw_points ) { 18 | 19 | if ( cashcred_data.use == 1 ) { 20 | var fee = 0; 21 | var ctype = cashcred_data.types[point_type]; 22 | var by = cashcred_data.types[point_type].by; 23 | var fee_amount = cashcred_data.types[point_type].amount; 24 | var max_cap = cashcred_data.types[point_type].max_cap; 25 | var min_cap = cashcred_data.types[point_type].min_cap; 26 | 27 | if( withdraw_points > 0 ) { 28 | 29 | fee = fee_amount; 30 | if( by == 'percent' ){ 31 | fee = ( ( fee_amount / 100 ) * withdraw_points ); 32 | fee_amount = fee_amount + '%'; 33 | } 34 | 35 | if( min_cap != 0 ) 36 | fee = ( parseInt(fee) + parseInt(min_cap) ); 37 | 38 | 39 | if ( max_cap != 0 && fee > max_cap ) 40 | fee = max_cap; 41 | 42 | $( '#cashcred-pending-payment-fee' ).val( fee ); 43 | } 44 | 45 | } 46 | 47 | } 48 | 49 | }); -------------------------------------------------------------------------------- /addons/cash-creds/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/gateways/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/modules/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/cash-creds/myCRED-addon-cash-creds.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/coupons/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/assets/css/edit-email-notice.css: -------------------------------------------------------------------------------- 1 | #poststuff #mycred_email_settings .inside { margin: 0; padding: 0; } 2 | #poststuff .inside .mycred-save { text-align: right; padding: 10px 10px 8px; border-top: 1px solid #ddd; clear: both; margin-top: -2px; background-color: #F5F5F5; } 3 | .mycred-inline label { padding: 0 6px; } 4 | 5 | #mycred-email-notice { border-bottom: 1px solid #DDD; padding-bottom: 8px; margin-top: 0; } 6 | 7 | #mycred_email_settings .misc-pub-section { border-bottom: 1px solid #ddd; } 8 | #mycred_email_settings select { margin-bottom: 6px; min-width: 95%; } 9 | #mycred_email_settings .mycred-inline input[type="radio"] { margin-right: 0; } 10 | #mycred_email_settings input[type="text"] { margin-bottom: 6px; width: 95%; } 11 | 12 | #mycred-test { line-height: 25px; vertical-align: middle; text-align: left; float: left; } 13 | #mycred-text .spinner { float: left; } 14 | #mycred-email-styling { width: 95%; max-width: 98%; min-width: 95%; min-height: 100px; height: 100px; max-height: 200px; } 15 | 16 | #mycred_email_template_tags ul { display: block; width: 50%; height: auto; float: left; } 17 | #mycred_email_template_tags ul .title { font-size: large; } 18 | #mycred_email_template_tags ul li strong { display: block; float: left; min-width: 40%; } 19 | #mycred_email_template_tags ul li div { padding-left: 40%; } 20 | 21 | #misc-publishing-actions #visibility, #misc-publishing-actions .misc-pub-curtime { display: none; display: none !important; } -------------------------------------------------------------------------------- /addons/email-notices/assets/css/email-notice.css: -------------------------------------------------------------------------------- 1 | th#title { width: 30%; } 2 | th#mycred-email-status { width: 20%; } -------------------------------------------------------------------------------- /addons/email-notices/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/assets/js/edit-email.js: -------------------------------------------------------------------------------- 1 | jQuery(function($){ 2 | 3 | $(document).ready(function(){ 4 | 5 | $( 'select#mycred-email-instance' ).change(function(e){ 6 | 7 | var selectedevent = $(this).find( ':selected' ); 8 | console.log( selectedevent.val() ); 9 | if ( selectedevent.val() == 'custom' ) { 10 | 11 | $( '#reference-selection' ).show(); 12 | 13 | } 14 | else { 15 | 16 | $( '#reference-selection' ).hide(); 17 | 18 | } 19 | 20 | }); 21 | 22 | $( 'select#mycred-email-reference' ).change(function(e){ 23 | 24 | var selectedevent = $(this).find( ':selected' ); 25 | if ( selectedevent.val() == 'mycred_custom' ) { 26 | 27 | $( '#custom-reference-selection' ).show(); 28 | $( '#mycred-email-custom-ref' ).focus(); 29 | 30 | } 31 | else { 32 | 33 | $( '#custom-reference-selection' ).hide(); 34 | $( '#mycred-email-custom-ref' ).blur(); 35 | 36 | } 37 | 38 | }); 39 | 40 | }); 41 | 42 | }); -------------------------------------------------------------------------------- /addons/email-notices/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/css/edit-email-notice.css: -------------------------------------------------------------------------------- 1 | #poststuff #mycred_email_settings .inside { margin: 0; padding: 0; } 2 | #poststuff .inside .mycred-save { text-align: right; padding: 10px 10px 8px; border-top: 1px solid #f5f5f5; clear: both; margin-top: -2px; } 3 | .mycred-inline label { padding: 0 6px; } 4 | #mycred_email_settings select { margin-bottom: 6px; } 5 | #mycred_email_settings input[type="text"] { margin-bottom: 6px; width: 80%; } 6 | #mycred-test { line-height: 25px; vertical-align: middle; text-align: left; float: left; } 7 | #mycred-text .spinner { float: left; } 8 | #mycred-email-styling { width: 95%; max-width: 98%; min-width: 95%; min-height: 100px; height: 100px; max-height: 200px; } 9 | 10 | #mycred_email_template_tags ul { display: block; width: 50%; height: auto; float: left; } 11 | #mycred_email_template_tags ul .title { font-size: large; } -------------------------------------------------------------------------------- /addons/email-notices/css/email-notice.css: -------------------------------------------------------------------------------- 1 | th#title { width: 30%; } 2 | th#mycred-email-status { width: 20%; } -------------------------------------------------------------------------------- /addons/email-notices/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/email-notices/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/cart/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://schemas.wp.org/trunk/block.json", 3 | "apiVersion": 2, 4 | "name": "mycred-woocommerce/mycred-woo-cart-block", 5 | "version": "1.0.0", 6 | "title": "myCred WooCommerce", 7 | "category": "woocommerce", 8 | "attributes": { 9 | "lock": { 10 | "type": "object", 11 | "default": { 12 | "remove": true, 13 | "move": true 14 | } 15 | } 16 | }, 17 | "textdomain": "mycred-woocommerce", 18 | "editorScript": "file:./build/index.js" 19 | } -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/cart/cart-block-frontend.asset.php: -------------------------------------------------------------------------------- 1 | array('react', 'wc-settings', 'wp-i18n'), 'version' => 'edcd41835330a175b895'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/cart/cart-block-frontend.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.React,o=window.wp.i18n,t=window.wc.wcSettings,{registerPlugin:c}=wp.plugins,{ExperimentalOrderMeta:a}=wc.blocksCheckout,l=(0,t.getSetting)("mycredwoo_data",{}),r=({extensions:t})=>{const{mycredwoo:c}=t,a=""!=c.mycred_woo_balance_label,r="checkout"!==l.show_total&&""!==l.show_total;var n="no"===c.payment_gateway?"low-balance":"",d=""==c?"wrapper-disabled":"";return(0,e.createElement)("div",{class:`mycred-woo-fields-wrapper ${d}`},r&&(0,e.createElement)("div",{class:"mycred-woo-order-total"},(0,e.createElement)("span",{class:"mycred-woo-order-total-label"},(0,o.__)(c.mycred_woo_total_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:`mycred-woo-order-total-value ${n}`},c.mycred_woo_total)),a&&(0,e.createElement)("div",{class:"mycred-woo-total-credit"},(0,e.createElement)("span",{class:"mycred-woo-total-credit-label"},(0,o.__)(c.mycred_woo_balance_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-total-credit-value"},c.mycred_woo_balance)))};c("mycredwoo",{render:()=>(0,e.createElement)(a,null,(0,e.createElement)(r,null)),scope:"woocommerce-checkout"})})(); -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/cart/index.asset.php: -------------------------------------------------------------------------------- 1 | array('react', 'wp-i18n'), 'version' => 'a15b43583f591fe0e1d4'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/cart/index.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.React,t=window.wp.i18n,c=wcSettings.paymentMethodData.mycred,o=()=>c&&(0,e.createElement)("div",{class:"mycred-woo-fields-wrapper"},(0,e.createElement)("div",{class:"mycred-woo-order-total"},(0,e.createElement)("span",{class:"mycred-woo-order-total-label"},(0,t.__)(c.order_total_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-order-total-value"},c.order_total)),(0,e.createElement)("div",{class:"mycred-woo-total-credit"},(0,e.createElement)("span",{class:"mycred-woo-total-credit-label"},(0,t.__)(c.balance_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-total-credit-value"},c.balance))),{registerPlugin:r}=wp.plugins,{ExperimentalOrderMeta:a}=wc.blocksCheckout;r("mycredwoo",{render:()=>(0,e.createElement)(a,null,(0,e.createElement)(o,null)),scope:"woocommerce-checkout"})})(); -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/checkout/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://schemas.wp.org/trunk/block.json", 3 | "apiVersion": 2, 4 | "name": "mycred-woocommerce/mycred-woo-checkout-block", 5 | "version": "1.0.0", 6 | "title": "myCred WooCommerce", 7 | "category": "woocommerce", 8 | "parent": [ 9 | "woocommerce/checkout-totals-block" 10 | ], 11 | "attributes": { 12 | "lock": { 13 | "type": "object", 14 | "default": { 15 | "remove": true, 16 | "move": true 17 | } 18 | } 19 | }, 20 | "textdomain": "mycred-woocommerce", 21 | "editorScript": "file:./build/index.js" 22 | } -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/checkout/checkout-block-frontend.asset.php: -------------------------------------------------------------------------------- 1 | array('react', 'wc-settings', 'wp-i18n'), 'version' => 'b269d62462cc4037fd8c'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/checkout/checkout-block-frontend.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.React,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"mycred-woocommerce/mycred-woo-checkout-block","version":"1.0.0","title":"myCred WooCommerce","category":"woocommerce","parent":["woocommerce/checkout-totals-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"textdomain":"mycred-woocommerce","editorScript":"file:./build/index.js"}'),t=window.wp.i18n,c=window.wc.wcSettings,{registerCheckoutBlock:a}=wc.blocksCheckout,r=(0,c.getSetting)("mycredwoo_data",{});a({metadata:o,component:({extensions:o})=>{const{mycredwoo:c}=o,a=""!=c.mycred_woo_balance_label,l="cart"!==r.show_total&&""!==r.show_total;var m="no"===c.payment_gateway?"low-balance":"",d=""==c?"wrapper-disabled":"";return(0,e.createElement)("div",{class:`mycred-woo-fields-wrapper ${d}`},l&&(0,e.createElement)("div",{class:"mycred-woo-order-total"},(0,e.createElement)("span",{class:"mycred-woo-order-total-label"},(0,t.__)(c.mycred_woo_total_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:`mycred-woo-order-total-value ${m}`},c.mycred_woo_total)),a&&(0,e.createElement)("div",{class:"mycred-woo-total-credit"},(0,e.createElement)("span",{class:"mycred-woo-total-credit-label"},(0,t.__)(c.mycred_woo_balance_label,"mycred-woocommerce")),(0,e.createElement)("span",{class:"mycred-woo-total-credit-value"},c.mycred_woo_balance)))}})})(); -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/checkout/index.asset.php: -------------------------------------------------------------------------------- 1 | array('wp-blocks'), 'version' => '1c1705295c8feec35d0e'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/checkout/index.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.wp.blocks,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"mycred-woocommerce/mycred-woo-checkout-block","version":"1.0.0","title":"myCred WooCommerce","category":"woocommerce","parent":["woocommerce/checkout-totals-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"textdomain":"mycred-woocommerce","editorScript":"file:./build/index.js"}');(0,e.registerBlockType)(o,{})})(); -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/mycred-woo-block-style.css: -------------------------------------------------------------------------------- 1 | .mycred-woo-fields-wrapper{border:solid #d3d3d3;border-width:1px 0 0;font-size:1.25rem;padding:16px 0;position:relative}.mycred-woo-order-total,.mycred-woo-total-credit{box-sizing:border-box;display:flex;flex-wrap:wrap;padding-left:16px;padding-right:16px;width:100%}.mycred-woo-order-total-label,.mycred-woo-total-credit-label{flex-grow:1}.mycred-woo-order-total-value,.mycred-woo-total-credit-value{font-weight:700;white-space:nowrap}div.disable{display:none;padding:0}.low-balance{color:red}.wrapper-disabled{border:none}div.mycred-woo-fields-wrapper.cart-wrap-dis{padding:0} 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/payment/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://schemas.wp.org/trunk/block.json", 3 | "apiVersion": 2, 4 | "name": "mycred-woocommerce/mycred-woo-payment-gateway", 5 | "version": "1.0.0", 6 | "title": "myCred WooCommerce", 7 | "category": "woocommerce", 8 | "parent": [ 9 | "woocommerce/checkout-payment-block" 10 | ], 11 | "attributes": { 12 | "lock": { 13 | "type": "object", 14 | "default": { 15 | "remove": false, 16 | "move": false 17 | } 18 | } 19 | }, 20 | "textdomain": "mycred-woocommerce", 21 | "editorScript": "file:./build/payment/index.js" 22 | } -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/payment/index.asset.php: -------------------------------------------------------------------------------- 1 | array('react', 'wp-blocks', 'wp-i18n'), 'version' => 'd83b52bee15e86c16da1'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/payment/index.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.wp.blocks,o=window.React,c=(window.wp.i18n,JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"mycred-woocommerce/mycred-woo-payment-gateway","version":"1.0.0","title":"myCred WooCommerce","category":"woocommerce","parent":["woocommerce/checkout-payment-block"],"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"textdomain":"mycred-woocommerce","editorScript":"file:./build/payment/index.js"}'));(0,e.registerBlockType)(c,{edit:()=>(0,o.createElement)("div",{class:"mycred-woo-fields-wrapper"},"ABCD")})})(); -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/payment/payment-method.asset.php: -------------------------------------------------------------------------------- 1 | array('react', 'wc-blocks-registry', 'wc-settings', 'wp-html-entities', 'wp-i18n'), 'version' => '6e9534c4ae40018806cc'); 2 | -------------------------------------------------------------------------------- /addons/gateway/carts/block-compatibility/build/payment/payment-method.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";const e=window.React,t=window.wc.wcSettings,n=window.wp.i18n,c=window.wp.htmlEntities,a=window.wc.wcBlocksRegistry,i=(0,t.getSetting)("mycred_data",{}),o=(0,n.__)("Default Pay with myCRED","mycred-woocommerce"),r=(0,c.decodeEntities)(i.title)||o,s=()=>(0,c.decodeEntities)(i.description||""),w={name:"mycred",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:n}=t.components;return(0,e.createElement)(n,{text:r})}),null),content:(0,e.createElement)(s,null),edit:(0,e.createElement)(s,null),canMakePayment:({cart:e})=>"yes"===e.extensions.mycredwoo.payment_gateway,ariaLabel:r,supports:{features:i.supports}};(0,a.registerPaymentMethod)(w)})(); -------------------------------------------------------------------------------- /addons/gateway/carts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/gateway/event-booking/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/gateway/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/gateway/myCRED-addon-gateway.php: -------------------------------------------------------------------------------- 1 | load(); 39 | 40 | } 41 | add_action( 'mycred_init', 'mycred_load_event_espresso3' ); 42 | 43 | /** 44 | * Events Manager 45 | */ 46 | function mycred_load_events_manager() { 47 | 48 | if ( ! defined( 'EM_VERSION' ) ) return; 49 | 50 | // Free only 51 | if ( ! class_exists( 'EM_Pro' ) ) { 52 | 53 | require_once myCRED_GATE_EVENT_DIR . 'mycred-eventsmanager.php'; 54 | $events = new myCRED_Events_Manager_Gateway(); 55 | $events->load(); 56 | 57 | } 58 | 59 | } 60 | add_action( 'mycred_init', 'mycred_load_events_manager' ); 61 | -------------------------------------------------------------------------------- /addons/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/notifications/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/notifications/assets/css/notify.css: -------------------------------------------------------------------------------- 1 | .notice-wrap { 2 | position: fixed; 3 | top: 50px; 4 | right: 50px; 5 | z-index: 9999; 6 | opacity: 0.8; 7 | } 8 | 9 | * html .notice-wrap { 10 | position: absolute; 11 | } 12 | 13 | .notice-item { 14 | position: relative; 15 | display: block; 16 | width: auto; 17 | height: auto; 18 | margin: 0 0 24px 0; 19 | padding: 12px; 20 | 21 | line-height: 22px; 22 | font-size: 12px; 23 | 24 | border-radius: 5px; 25 | background-color: #dedede; 26 | color: #333; 27 | } 28 | .notice-item p { display: block; float: right; margin: 0; padding: 0; } 29 | .notice-item h1 { margin: 0 !important; padding: 0; } 30 | 31 | .notice-item-close{ 32 | display: block; 33 | float: left; 34 | width: 22px; 35 | height: 22px; 36 | line-height: 22px; 37 | font-size: 20px; 38 | text-align: center; 39 | cursor: pointer; 40 | } -------------------------------------------------------------------------------- /addons/notifications/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/notifications/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/notifications/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/ranks/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/ranks/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/ranks/assets/js/tweaks.js: -------------------------------------------------------------------------------- 1 | /** 2 | * myCRED Rank Tweaks 3 | * @since 1.6 4 | * @version 1.0.1 5 | */ 6 | (function($) { 7 | 8 | // When the page has loaded, append the point type to the "Add New" button url 9 | // This will make sure the new rank is created for the correct point type. 10 | $( document ).ready(function() { 11 | 12 | var newurl = $( 'a.add-new-h2' ).attr( 'href' ); 13 | newurl = newurl + '&ctype=' + myCRED_Ranks.rank_ctype; 14 | $( 'a.add-new-h2' ).attr( 'href', newurl ); 15 | 16 | }); 17 | 18 | })( jQuery ); -------------------------------------------------------------------------------- /addons/ranks/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/ranks/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/ranks/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/assets/js/admin.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | $( document ).on( 'click', '#update-sales-count', function( e ){ 3 | e.preventDefault(); 4 | $.ajax({ 5 | url: ajaxurl, 6 | type: 'POST', 7 | data:{ 8 | action: 'mycred_ajax_update_sell_count' 9 | }, 10 | beforeSend: function() { 11 | jQuery('.mycred-update-sells-count').css("display", "inherit"); 12 | }, 13 | success:function(data) { 14 | alert( data ); 15 | jQuery('.mycred-update-sells-count').hide(); 16 | } 17 | }) 18 | } ) 19 | })( jQuery ); -------------------------------------------------------------------------------- /addons/sell-content/assets/js/buy-content.js: -------------------------------------------------------------------------------- 1 | /** 2 | * myCRED Sell Content 3 | * @since 1.1 4 | * @version 1.2 5 | */ 6 | (function($) { 7 | 8 | var buying = false; 9 | 10 | $( '.mycred-sell-this-wrapper' ).on( 'click', '.mycred-buy-this-content-button', function(){ 11 | 12 | if ( buying === true ) return false; 13 | 14 | buying = true; 15 | 16 | var button = $(this); 17 | var post_id = button.data( 'pid' ); 18 | var point_type = button.data( 'type' ); 19 | var buttonlabel = button.html(); 20 | var content_for_sale = $( '#mycred-buy-content' + post_id ); 21 | 22 | $.ajax({ 23 | type : "POST", 24 | data : { 25 | action : 'mycred-buy-content', 26 | token : myCREDBuyContent.token, 27 | postid : post_id, 28 | ctype : point_type 29 | }, 30 | dataType : "JSON", 31 | url : myCREDBuyContent.ajaxurl, 32 | beforeSend : function() { 33 | 34 | button.attr( 'disabled', 'disabled' ).html( myCREDBuyContent.working ); 35 | 36 | }, 37 | success : function( response ) { 38 | 39 | if ( response.success === undefined || ( response.success === true && myCREDBuyContent.reload === '1' ) ) 40 | location.reload(); 41 | 42 | else { 43 | 44 | if ( response.success ) { 45 | content_for_sale.fadeOut(function(){ 46 | content_for_sale.removeClass( 'mycred-sell-this-wrapper mycred-sell-entire-content mycred-sell-partial-content' ).empty().append( response.data ).fadeIn(); 47 | }); 48 | } 49 | 50 | else { 51 | 52 | button.removeAttr( 'disabled' ).html( buttonlabel ); 53 | 54 | if ( response.data != '' ) 55 | alert( response.data ); 56 | 57 | } 58 | 59 | } 60 | 61 | console.log( response ); 62 | 63 | }, 64 | complete : function(){ 65 | 66 | buying = false; 67 | 68 | } 69 | }); 70 | 71 | }); 72 | 73 | })( jQuery ); -------------------------------------------------------------------------------- /addons/sell-content/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/css/edit.css: -------------------------------------------------------------------------------- 1 | #mycred_sell_content { } 2 | #mycred_sell_content .inside input[type="checkbox"] { margin-right: 12px; } 3 | 4 | #mycred_sell_content .inside ul { } 5 | #mycred_sell_content .inside ul li label { padding-right: 12px; } 6 | #mycred_sell_content .inside ul li>input, #mycred_sell_content .inside ul li .formated { float: right; } 7 | 8 | #mycred_sell_content .inside ul li { float: none; clear: both; line-height: 25px; } 9 | #mycred_sell_content .inside ul li.long input { width: 100%; float: none; clear: both; } 10 | 11 | p#mycred-submit { text-align: right; } 12 | #mycred_sell_content .inside ul li input.disabled { background-color: #F8F8F8; border-color: #DFDFDF; } -------------------------------------------------------------------------------- /addons/sell-content/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/sell-content/js/buy-content.js: -------------------------------------------------------------------------------- 1 | /** 2 | * myCRED Sell Content 3 | * @since 1.1 4 | * @version 1.0 5 | */ 6 | jQuery(function($) { 7 | var mycred_buy_content = function( button, label ) { 8 | wrapper = button.parents( 'div.mycred-content-forsale' ); 9 | $.ajax({ 10 | type : "POST", 11 | data : { 12 | action : 'mycred-buy-content', 13 | postid : button.attr( 'data-id' ), 14 | token : myCREDsell.token 15 | }, 16 | dataType : "HTML", 17 | url : myCREDsell.ajaxurl, 18 | // Before we start 19 | beforeSend : function() { 20 | button.attr( 'value', myCREDsell.working ); 21 | button.attr( 'disabled', 'disabled' ); 22 | wrapper.slideUp(); 23 | }, 24 | // On Successful Communication 25 | success : function( data ) { 26 | wrapper.empty(); 27 | wrapper.append( data ); 28 | wrapper.slideDown(); 29 | }, 30 | // Error (sent to console) 31 | error : function( jqXHR, textStatus, errorThrown ) { 32 | button.attr( 'value', 'Upps!' ); 33 | button.removeAttr( 'disabled' ); 34 | wrapper.slideDown(); 35 | // Debug - uncomment to use 36 | console.log( jqXHR ); 37 | console.log( textStatus ); 38 | console.log( errorThrown ); 39 | } 40 | }); 41 | }; 42 | 43 | $('.mycred-sell-this-button').click(function(){ 44 | mycred_buy_content( $(this), $(this).attr( 'value' ) ); 45 | }); 46 | }); -------------------------------------------------------------------------------- /addons/sell-content/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/abstracts/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/assets/css/mycred-statistics.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/addons/stats/assets/css/mycred-statistics.css -------------------------------------------------------------------------------- /addons/stats/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/assets/js/mycred-statistics.js: -------------------------------------------------------------------------------- 1 | var myCREDCharts = {}; 2 | jQuery(function($){ 3 | 4 | $(document).ready(function(){ 5 | 6 | $.each( myCREDStats.charts, function(elementid, data){ 7 | 8 | if( $( 'canvas#' + elementid ).length > 0 ) { 9 | myCREDCharts[ elementid ] = new Chart( $( 'canvas#' + elementid ).get(0).getContext( '2d' ), data ); 10 | } 11 | 12 | }); 13 | 14 | }); 15 | 16 | }); -------------------------------------------------------------------------------- /addons/stats/assets/libs/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/includes/classes/class.query-stats.php: -------------------------------------------------------------------------------- 1 | db = $mycred->log_table; 23 | 24 | } 25 | 26 | } 27 | endif; 28 | -------------------------------------------------------------------------------- /addons/stats/includes/classes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/stats/widgets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addons/transfer/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/css/font-family/Poppins-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/font-family/Poppins-LightItalic.ttf -------------------------------------------------------------------------------- /assets/css/font-family/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/font-family/Poppins-Medium.ttf -------------------------------------------------------------------------------- /assets/css/font-family/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/font-family/Poppins-Regular.ttf -------------------------------------------------------------------------------- /assets/css/fonts/mycred-social-icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/fonts/mycred-social-icons.eot -------------------------------------------------------------------------------- /assets/css/fonts/mycred-social-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/fonts/mycred-social-icons.ttf -------------------------------------------------------------------------------- /assets/css/fonts/mycred-social-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/fonts/mycred-social-icons.woff -------------------------------------------------------------------------------- /assets/css/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/css/mycred-font/mycred-fonts.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/mycred-font/mycred-fonts.eot -------------------------------------------------------------------------------- /assets/css/mycred-font/mycred-fonts.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/mycred-font/mycred-fonts.ttf -------------------------------------------------------------------------------- /assets/css/mycred-font/mycred-fonts.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/mycred-font/mycred-fonts.woff -------------------------------------------------------------------------------- /assets/css/mycred-font/mycred-fonts.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/css/mycred-font/mycred-fonts.woff2 -------------------------------------------------------------------------------- /assets/css/mycred-social-icons.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'mycred-social-icons'; 3 | src: url('fonts/mycred-social-icons.eot?u9j1dx'); 4 | src: url('fonts/mycred-social-icons.eot?u9j1dx#iefix') format('embedded-opentype'), 5 | url('fonts/mycred-social-icons.ttf?u9j1dx') format('truetype'), 6 | url('fonts/mycred-social-icons.woff?u9j1dx') format('woff'), 7 | url('fonts/mycred-social-icons.svg?u9j1dx#mycred-social-icons') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | font-display: block; 11 | } 12 | 13 | [class^="mycred-social-icon-"], [class*=" mycred-social-icon-"] { 14 | /* use !important to prevent issues with browser extensions that change fonts */ 15 | font-family: 'mycred-social-icons' !important; 16 | speak: none; 17 | font-style: normal; 18 | font-weight: normal; 19 | font-variant: normal; 20 | text-transform: none; 21 | line-height: 1; 22 | 23 | /* Better Font Rendering =========== */ 24 | -webkit-font-smoothing: antialiased; 25 | -moz-osx-font-smoothing: grayscale; 26 | } 27 | 28 | .mycred-social-icon-bars:before { 29 | content: "\e900"; 30 | } 31 | .mycred-social-icon-facebook:before { 32 | content: "\e901"; 33 | } 34 | .mycred-social-icon-instagram:before { 35 | content: "\e902"; 36 | } 37 | .mycred-social-icon-linkedin:before { 38 | content: "\e903"; 39 | } 40 | .mycred-social-icon-pinterest:before { 41 | content: "\e904"; 42 | } 43 | .mycred-social-icon-twitch:before { 44 | content: "\e905"; 45 | } 46 | .mycred-social-icon-twitter:before { 47 | content: "\e906"; 48 | } 49 | .mycred-social-icon-whatsapp:before { 50 | content: "\e907"; 51 | } 52 | .mycred-social-icon-youtube:before { 53 | content: "\e908"; 54 | } 55 | -------------------------------------------------------------------------------- /assets/images/about/56826.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/56826.png -------------------------------------------------------------------------------- /assets/images/about/account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/account.png -------------------------------------------------------------------------------- /assets/images/about/automatic-points.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/automatic-points.png -------------------------------------------------------------------------------- /assets/images/about/badges.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/badges.png -------------------------------------------------------------------------------- /assets/images/about/buy-points.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/buy-points.png -------------------------------------------------------------------------------- /assets/images/about/convert-points.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/convert-points.png -------------------------------------------------------------------------------- /assets/images/about/leaderboards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/leaderboards.png -------------------------------------------------------------------------------- /assets/images/about/multi-points.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/multi-points.png -------------------------------------------------------------------------------- /assets/images/about/multi-site-support.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/multi-site-support.png -------------------------------------------------------------------------------- /assets/images/about/points-management.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/points-management.png -------------------------------------------------------------------------------- /assets/images/about/sell-content.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/sell-content.png -------------------------------------------------------------------------------- /assets/images/about/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/about/welcome.png -------------------------------------------------------------------------------- /assets/images/addons/mycred-birthdays.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-birthdays.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-blocks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-blocks.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-bp-charges.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-bp-charges.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-bp-group-leaderboards.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-bp-group-leaderboards.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-for-elementor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-for-elementor.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-h5p.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-h5p.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-learndash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-learndash.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-notification-plus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-notification-plus.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-pacman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-pacman.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-social-share.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-social-share.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-spin-wheel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-spin-wheel.jpg -------------------------------------------------------------------------------- /assets/images/addons/mycred-woocommerce-plus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/addons/mycred-woocommerce-plus.jpg -------------------------------------------------------------------------------- /assets/images/admin-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/admin-icons.png -------------------------------------------------------------------------------- /assets/images/badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/badge.png -------------------------------------------------------------------------------- /assets/images/badges-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/badges-addon.png -------------------------------------------------------------------------------- /assets/images/banking-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/banking-addon.png -------------------------------------------------------------------------------- /assets/images/buy-creds-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/buy-creds-addon.png -------------------------------------------------------------------------------- /assets/images/buycred-checkout-page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/buycred-checkout-page.png -------------------------------------------------------------------------------- /assets/images/coupons-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/coupons-addon.png -------------------------------------------------------------------------------- /assets/images/cred-icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/cred-icon16.png -------------------------------------------------------------------------------- /assets/images/cred-icon32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/cred-icon32.png -------------------------------------------------------------------------------- /assets/images/default-point-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/default-point-type.png -------------------------------------------------------------------------------- /assets/images/email-notifications-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/email-notifications-addon.png -------------------------------------------------------------------------------- /assets/images/gateway-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/gateway-addon.png -------------------------------------------------------------------------------- /assets/images/gateway-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/gateway-icons.png -------------------------------------------------------------------------------- /assets/images/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/images/logo-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/logo-menu.png -------------------------------------------------------------------------------- /assets/images/mycred-about-balance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred-about-balance.png -------------------------------------------------------------------------------- /assets/images/mycred-about-hooks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred-about-hooks.png -------------------------------------------------------------------------------- /assets/images/mycred-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred-icon.png -------------------------------------------------------------------------------- /assets/images/mycred-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred-loading.gif -------------------------------------------------------------------------------- /assets/images/mycred-membership-activated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred-membership-activated.png -------------------------------------------------------------------------------- /assets/images/mycred16-stats-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/mycred16-stats-addon.png -------------------------------------------------------------------------------- /assets/images/notifications-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/notifications-addon.png -------------------------------------------------------------------------------- /assets/images/ranks-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/ranks-addon.png -------------------------------------------------------------------------------- /assets/images/sell-content-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/sell-content-addon.png -------------------------------------------------------------------------------- /assets/images/statistics-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/statistics-addon.png -------------------------------------------------------------------------------- /assets/images/token-sitting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/token-sitting.png -------------------------------------------------------------------------------- /assets/images/transfer-addon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/transfer-addon.png -------------------------------------------------------------------------------- /assets/images/treasures/badges.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/badges.png -------------------------------------------------------------------------------- /assets/images/treasures/currency.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/currency.png -------------------------------------------------------------------------------- /assets/images/treasures/fitness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/fitness.png -------------------------------------------------------------------------------- /assets/images/treasures/gems.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/gems.png -------------------------------------------------------------------------------- /assets/images/treasures/learning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/learning.png -------------------------------------------------------------------------------- /assets/images/treasures/rank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/images/treasures/rank.png -------------------------------------------------------------------------------- /assets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/js/admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/js/admin.js -------------------------------------------------------------------------------- /assets/js/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/js/links.js: -------------------------------------------------------------------------------- 1 | /** 2 | * myCRED Points for Link Clicks jQuery Scripts 3 | * @contributors Kevin Reeves 4 | * @since 0.1 5 | * @version 1.7.1 6 | */ 7 | jQuery(function($) { 8 | 9 | $( '.mycred-points-link' ).click(function(){ 10 | 11 | var mycredlink = $(this); 12 | var linkdestination = mycredlink.attr( 'href' ); 13 | var target = mycredlink.attr( 'target' ); 14 | if ( typeof target === 'undefined' ) { 15 | target = 'self'; 16 | } 17 | 18 | $.ajax({ 19 | type : "POST", 20 | data : { 21 | action : 'mycred-click-points', 22 | url : linkdestination, 23 | token : myCREDlink.token, 24 | etitle : mycredlink.text(), 25 | ctype : mycredlink.attr( 'data-type' ), 26 | key : mycredlink.attr( 'data-token' ) 27 | }, 28 | dataType : "JSON", 29 | url : myCREDlink.ajaxurl, 30 | success : function( response ) { 31 | console.log( response ); 32 | if ( target == 'self' || target == '_self' ) 33 | window.location.href = linkdestination; 34 | } 35 | }); 36 | 37 | if ( target == 'self' || target == '_self' ) return false; 38 | 39 | }); 40 | 41 | }); -------------------------------------------------------------------------------- /assets/js/mycred-accordion.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Accordion 3 | * @since 0.1 4 | * @since 2.3 Added open in new tab 5 | * @version 1.1 6 | */ 7 | jQuery(function($) { 8 | 9 | var active_box = false; 10 | if ( typeof myCRED !== 'undefined' ) { 11 | if ( myCRED.active != '-1' ) 12 | active_box = parseInt( myCRED.active, 10 ); 13 | } 14 | 15 | $( "#accordion" ).accordion({ collapsible: true, header: ".mycred-ui-accordion-header", heightStyle: "content", active: active_box }); 16 | 17 | $( document ).on( 'click', '.buycred-cashcred-more-tab-btn', function(){ 18 | var $url = $( this ).data( 'url' ); 19 | window.open( $url, '_blank'); 20 | }); 21 | 22 | }); 23 | 24 | -------------------------------------------------------------------------------- /assets/js/send.js: -------------------------------------------------------------------------------- 1 | /** 2 | * myCRED 3 | * Handle mycred_send shortcode buttons. 4 | * @since 0.1 5 | * @version 1.3 6 | */ 7 | jQuery(function($) { 8 | 9 | $( 'button.mycred-send-points-button' ).click(function(){ 10 | 11 | var button = $(this); 12 | var originallabel = button.text(); 13 | 14 | $.ajax({ 15 | type : "POST", 16 | data : { 17 | action : 'mycred-send-points', 18 | amount : button.data( 'amount' ), 19 | recipient : button.data( 'to' ), 20 | log : button.data( 'log' ), 21 | reference : button.data( 'ref' ), 22 | type : button.data( 'type' ), 23 | token : myCREDsend.token 24 | }, 25 | dataType : "JSON", 26 | url : myCREDsend.ajaxurl, 27 | beforeSend : function() { 28 | 29 | button.attr( 'disabled', 'disabled' ).text( myCREDsend.working ); 30 | 31 | }, 32 | success : function( data ) { 33 | 34 | if ( data == 'done' ) { 35 | 36 | button.text( myCREDsend.done ); 37 | setTimeout( function(){ 38 | button.removeAttr( 'disabled' ).text( originallabel ); 39 | }, 2000 ); 40 | 41 | } 42 | 43 | else if ( data == 'zero' ) { 44 | 45 | button.text( myCREDsend.done ); 46 | setTimeout( function(){ 47 | 48 | $( 'button.mycred-send-points-button' ).each(function(){ 49 | $(this).attr( 'disabled', 'disabled' ).hide(); 50 | }); 51 | 52 | }, 2000 ); 53 | 54 | } 55 | else { 56 | 57 | button.text( myCREDsend.error ); 58 | setTimeout( function(){ 59 | button.removeAttr( 'disabled' ).text( originallabel ); 60 | }, 2000 ); 61 | 62 | } 63 | 64 | } 65 | }); 66 | 67 | }); 68 | 69 | }); -------------------------------------------------------------------------------- /assets/js/youtube.js: -------------------------------------------------------------------------------- 1 | /** 2 | * YouTube Iframe API 3 | * @since 1.3.3 4 | * @version 1.0 5 | */ 6 | if (!window['YT']) {var YT = {loading: 0,loaded: 0};}if (!window['YTConfig']) {var YTConfig = {};}if (!YT.loading) {YT.loading = 1;(function(){var l = [];YT.ready = function(f) {if (YT.loaded) {f();} else {l.push(f);}};window.onYTReady = function() {YT.loaded = 1;for (var i = 0; i < l.length; i++) {try {l[i]();} catch (e) {}}};YT.setConfig = function(c) {for (var k in c) {if (c.hasOwnProperty(k)) {YTConfig[k] = c[k];}}};var a = document.createElement('script');a.src = 'https:' + '//s.ytimg.com/yts/jsbin/www-widgetapi-vflpUkZCc.js';a.async = true;var b = document.getElementsByTagName('script')[0];b.parentNode.insertBefore(a, b);})();} 7 | 8 | /** 9 | * onYouTubeIframeAPIReady 10 | * Creates a player for YouTube Iframes 11 | * @since 1.3.3 12 | * @version 1.0 13 | */ 14 | function onYouTubeIframeAPIReady() { 15 | console.log( 'YouTube Iframe API' ); 16 | 17 | // Listen for the ready event for any vimeo video players on the page 18 | var youtPlayers = document.querySelectorAll( 'iframe.mycred-youtube-video' ), 19 | youframes, 20 | yplayer; 21 | 22 | for (var i = 0, length = youtPlayers.length; i < length; i++) { 23 | yplayer = youtPlayers[i]; 24 | var video_id = yplayer.getAttribute( 'data-vid' ); 25 | youframes = new YT.Player( yplayer, { events : { 'onStateChange': 'mycred_vvideo_v' + video_id } } ); 26 | console.log( video_id ); 27 | } 28 | } 29 | 30 | /** 31 | * onYouTubePlayerReady 32 | * Old JS API used before 1.3.3 33 | * @since 1.0 34 | * @version 1.0 35 | */ 36 | function onYouTubePlayerReady( id ) { 37 | // Define Player 38 | var yplayer = document.getElementById( id ); 39 | 40 | // Duration 41 | duration[ id ] = yplayer.getDuration(); 42 | 43 | // Listen in on state changes 44 | yplayer.addEventListener( 'onStateChange', 'mycred_video_' + id ); 45 | 46 | console.log( id ); 47 | } -------------------------------------------------------------------------------- /assets/libs/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/screenshot-1.png -------------------------------------------------------------------------------- /assets/screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/screenshot-2.png -------------------------------------------------------------------------------- /assets/screenshot-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/screenshot-3.png -------------------------------------------------------------------------------- /assets/screenshot-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/assets/screenshot-4.png -------------------------------------------------------------------------------- /freemius/assets/css/admin/checkout.css: -------------------------------------------------------------------------------- 1 | @media screen and (max-width: 782px){#wpbody-content{padding-bottom:0 !important}} 2 | -------------------------------------------------------------------------------- /freemius/assets/css/admin/clone-resolution.css: -------------------------------------------------------------------------------- 1 | .fs-notice[data-id^=clone_resolution_options_notice]{padding:0;color:inherit !important}.fs-notice[data-id^=clone_resolution_options_notice] .fs-notice-body{padding:0;margin-bottom:0}.fs-notice[data-id^=clone_resolution_options_notice] .fs-notice-header{padding:5px 10px}.fs-notice[data-id^=clone_resolution_options_notice] ol{margin-top:0;margin-bottom:0}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-options-container{display:flex;flex-direction:row;padding:0 10px 10px}@media(max-width: 750px){.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-options-container{flex-direction:column}}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-option{border:1px solid #ccc;padding:10px 10px 15px 10px;flex:auto;margin:5px}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-option:first-child{margin-left:0}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-option:last-child{margin-right:0}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-resolution-option strong{font-size:1.2em;padding:2px;line-height:1.5em}.fs-notice[data-id^=clone_resolution_options_notice] a{text-decoration:none}.fs-notice[data-id^=clone_resolution_options_notice] .button{margin-right:10px}.rtl .fs-notice[data-id^=clone_resolution_options_notice] .button{margin-right:0;margin-left:10px}.fs-notice[data-id^=clone_resolution_options_notice] .fs-clone-documentation-container{padding:0 10px 15px}.fs-notice[data-id=temporary_duplicate_notice] #fs_clone_resolution_error_message{border:1px solid #d3135a;background:#fee;color:#d3135a;padding:10px}.fs-notice[data-id=temporary_duplicate_notice] ol{margin-top:0} 2 | -------------------------------------------------------------------------------- /freemius/assets/css/admin/debug.css: -------------------------------------------------------------------------------- 1 | label.fs-tag,span.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn,span.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-info,span.fs-tag.fs-info{background:#00a0d2}label.fs-tag.fs-success,span.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error,span.fs-tag.fs-error{background:#dc3232}.fs-switch-label{font-size:20px;line-height:31px;margin:0 5px}#fs_log_book table{font-family:Consolas,Monaco,monospace;font-size:12px}#fs_log_book table th{color:#ccc}#fs_log_book table tr{background:#232525}#fs_log_book table tr.alternate{background:#2b2b2b}#fs_log_book table tr td.fs-col--logger{color:#5a7435}#fs_log_book table tr td.fs-col--type{color:#ffc861}#fs_log_book table tr td.fs-col--function{color:#a7b7b1;font-weight:bold}#fs_log_book table tr td.fs-col--message,#fs_log_book table tr td.fs-col--message a{color:#9a73ac !important}#fs_log_book table tr td.fs-col--file{color:#d07922}#fs_log_book table tr td.fs-col--timestamp{color:#6596be} 2 | -------------------------------------------------------------------------------- /freemius/assets/css/admin/gdpr-optin-notice.css: -------------------------------------------------------------------------------- 1 | .fs-notice[data-id^=gdpr_optin_actions] .underlined{text-decoration:underline}.fs-notice[data-id^=gdpr_optin_actions] ul .button,.fs-notice[data-id^=gdpr_optin_actions] ul .action-description{vertical-align:middle}.fs-notice[data-id^=gdpr_optin_actions] ul .action-description{display:inline-block;margin-left:3px} 2 | -------------------------------------------------------------------------------- /freemius/assets/css/admin/index.php: -------------------------------------------------------------------------------- 1 | title( 'Freemius' ); 24 | } 25 | 26 | static function requests_count() { 27 | if ( class_exists( 'Freemius_Api_WordPress' ) ) { 28 | $logger = Freemius_Api_WordPress::GetLogger(); 29 | } else { 30 | $logger = array(); 31 | } 32 | 33 | return number_format( count( $logger ) ); 34 | } 35 | 36 | static function total_time() { 37 | if ( class_exists( 'Freemius_Api_WordPress' ) ) { 38 | $logger = Freemius_Api_WordPress::GetLogger(); 39 | } else { 40 | $logger = array(); 41 | } 42 | 43 | $total_time = .0; 44 | foreach ( $logger as $l ) { 45 | $total_time += $l['total']; 46 | } 47 | 48 | return number_format( 100 * $total_time, 2 ) . ' ' . fs_text_x_inline( 'ms', 'milliseconds' ); 49 | } 50 | 51 | function render() { 52 | ?> 53 |
54 | 55 |
56 | 57 |
58 | 59 |
60 | 61 |
62 | release_mode ); 63 | } 64 | } -------------------------------------------------------------------------------- /freemius/includes/entities/class-fs-scope-entity.php: -------------------------------------------------------------------------------- 1 | first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) ); 53 | } 54 | 55 | function is_verified() { 56 | return ( isset( $this->is_verified ) && true === $this->is_verified ); 57 | } 58 | 59 | /** 60 | * @author Leo Fajardo (@leorw) 61 | * @since 2.4.2 62 | * 63 | * @return bool 64 | */ 65 | function is_beta() { 66 | // Return `false` since this is just for backward compatibility. 67 | return false; 68 | } 69 | 70 | static function get_type() { 71 | return 'user'; 72 | } 73 | } -------------------------------------------------------------------------------- /freemius/includes/entities/index.php: -------------------------------------------------------------------------------- 1 | $data ) { 35 | if ( 0 === strpos( $file_real_path, fs_normalize_path( dirname( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) ) . '/' ) ) ) { 36 | if ( '.' !== dirname( trailingslashit( $relative_path ) ) ) { 37 | return $relative_path; 38 | } 39 | } 40 | } 41 | 42 | return null; 43 | } 44 | -------------------------------------------------------------------------------- /freemius/includes/supplements/fs-essential-functions-2.2.1.php: -------------------------------------------------------------------------------- 1 | $install ) { 21 | if ( true === $install->is_disconnected ) { 22 | $permission_manager->update_site_tracking( 23 | false, 24 | ( 0 == $blog_id ) ? null : $blog_id, 25 | // Update only if permissions are not yet set. 26 | true 27 | ); 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /freemius/includes/supplements/index.php: -------------------------------------------------------------------------------- 1 | 30 |
31 | 32 | 33 | 34 | 35 | 36 |
-------------------------------------------------------------------------------- /freemius/templates/account/partials/index.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /freemius/templates/ajax-loader.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /freemius/templates/api-connectivity-message-js.php: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /freemius/templates/connect/index.php: -------------------------------------------------------------------------------- 1 | 18 | 19 | $section ) { 21 | ?> 22 | 23 | 24 | 25 | 26 | $row ) { 28 | $col_count = count( $row ); 29 | ?> 30 | 31 | 33 | 34 | 36 | 37 | 38 | 41 | 42 | 45 | 46 | 49 |
:
-------------------------------------------------------------------------------- /freemius/templates/forms/deactivation/contact.php: -------------------------------------------------------------------------------- 1 | get_slug(); 18 | 19 | echo fs_text_inline( 'Sorry for the inconvenience and we are here to help if you give us a chance.', 'contact-support-before-deactivation', $slug ) 20 | . sprintf(" %s", 21 | $fs->contact_url( 'technical_support' ), 22 | fs_text_inline( 'Contact Support', 'contact-support', $slug ) 23 | ); 24 | -------------------------------------------------------------------------------- /freemius/templates/forms/deactivation/index.php: -------------------------------------------------------------------------------- 1 | get_slug(); 18 | 19 | $skip_url = fs_nonce_url( $fs->_get_admin_page_url( '', array( 'fs_action' => $fs->get_unique_affix() . '_skip_activation' ) ), $fs->get_unique_affix() . '_skip_activation' ); 20 | $skip_text = strtolower( fs_text_x_inline( 'Skip', 'verb', 'skip', $slug ) ); 21 | $use_plugin_anonymously_text = fs_text_inline( 'Click here to use the plugin anonymously', 'click-here-to-use-plugin-anonymously', $slug ); 22 | 23 | echo sprintf( fs_text_inline( "You might have missed it, but you don't have to share any data and can just %s the opt-in.", 'dont-have-to-share-any-data', $slug ), "{$skip_text}" ) 24 | . " {$use_plugin_anonymously_text}"; -------------------------------------------------------------------------------- /freemius/templates/forms/index.php: -------------------------------------------------------------------------------- 1 | _get_license(); 19 | 20 | if ( ! is_object( $license ) ) { 21 | $purchase_url = $fs->pricing_url(); 22 | } else { 23 | $subscription = $fs->_get_subscription( $license->id ); 24 | 25 | $purchase_url = $fs->checkout_url( 26 | is_object( $subscription ) ? 27 | ( 1 == $subscription->billing_cycle ? WP_FS__PERIOD_MONTHLY : WP_FS__PERIOD_ANNUALLY ) : 28 | WP_FS__PERIOD_LIFETIME, 29 | false, 30 | array( 'licenses' => $license->quota ) 31 | ); 32 | } 33 | 34 | $plugin_data = $fs->get_plugin_data(); 35 | ?> 36 | -------------------------------------------------------------------------------- /freemius/templates/index.php: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /freemius/templates/js/open-license-activation.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /freemius/templates/js/style-premium-theme.php: -------------------------------------------------------------------------------- 1 | get_slug(); 21 | 22 | ?> 23 | -------------------------------------------------------------------------------- /freemius/templates/partials/index.php: -------------------------------------------------------------------------------- 1 | 20 |
21 | 22 |
-------------------------------------------------------------------------------- /freemius/templates/plugin-info/index.php: -------------------------------------------------------------------------------- 1 | 22 |
    23 | $url ) : ?> 25 |
  1. 26 | 27 |
  2. 28 | 29 |
30 | -------------------------------------------------------------------------------- /freemius/templates/secure-https-header.php: -------------------------------------------------------------------------------- 1 | 15 |
16 | 17 | get_text_inline( 'Secure HTTPS %s page, running from an external domain', 'secure-x-page-header' ), 29 | $VARS['page'] 30 | ) ) . 31 | ' - ' . 32 | sprintf( 33 | '%s', 34 | 'https://www.mcafeesecure.com/verify?host=' . WP_FS__ROOT_DOMAIN_PRODUCTION, 35 | 'Freemius Inc. [US]' 36 | ); 37 | } 38 | ?> 39 |
-------------------------------------------------------------------------------- /freemius/templates/sticky-admin-notice-js.php: -------------------------------------------------------------------------------- 1 | 16 | 41 | -------------------------------------------------------------------------------- /includes/classes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/hooks/external/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/hooks/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/importers/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-affiliate-id/mycred-affiliate-id.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-affiliate-id', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | $mycred_types = mycred_get_types(true); 35 | $mycred_types = array_merge( array( '' => __('Select point type', 'mycred') ), $mycred_types ); 36 | wp_localize_script('mycred-affiliate-id', 'mycred_types', $mycred_types); 37 | 38 | } 39 | 40 | public function render_block( $attributes, $content ) { 41 | 42 | if ( empty( $attributes['type'] ) ) 43 | $attributes['type'] = 'mycred_default'; 44 | 45 | return "[mycred_affiliate_id " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 46 | } 47 | 48 | } 49 | endif; 50 | 51 | new mycred_affiliate_id_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-affiliate-link/mycred-affiliate-link.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-affiliate-link', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['pt_type'] ) ) 38 | $attributes['pt_type'] = 'mycred_default'; 39 | 40 | return "[mycred_affiliate_link " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | } 42 | 43 | } 44 | endif; 45 | 46 | new mycred_affiliate_link_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-badges-list/index.js: -------------------------------------------------------------------------------- 1 | (function (wp) { 2 | var registerBlockType = wp.blocks.registerBlockType; 3 | var InspectorControls = wp.blockEditor.InspectorControls; 4 | var el = wp.element.createElement; 5 | var TextControl = wp.components.TextControl; 6 | var panelBody = wp.components.PanelBody; 7 | 8 | var __ = wp.i18n.__; 9 | registerBlockType('mycred-gb-blocks/mycred-badges-list', { 10 | title: __('Badges List', 'mycred'), 11 | category: 'mycred', 12 | attributes: { 13 | achievement_tabs : { 14 | type: 'string', 15 | default: 1 16 | } 17 | }, 18 | edit: function (props) { 19 | var achievement_tabs = props.attributes.achievement_tabs; 20 | 21 | function setAchievement_tabs(value) { 22 | props.setAttributes({achievement_tabs: value}); 23 | } 24 | 25 | 26 | return el('div', {}, [ 27 | el('p', {}, __('Badges List Shortcode', 'mycred') ), 28 | el(InspectorControls, null, 29 | el( panelBody, { title: 'Form Settings', initialOpen: true }, 30 | el(TextControl, { 31 | label: __('Achievement Tabs', 'mycred'), 32 | help: __(' Use (1) to enable or (0) to disable the achievement tabs.', 'mycred'), 33 | value: achievement_tabs, 34 | onChange: setAchievement_tabs 35 | 36 | }), 37 | ) 38 | ) 39 | ]); 40 | }, 41 | save: function (props) { 42 | return null; 43 | } 44 | }); 45 | })(window.wp); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-badges-list/mycred-badges-list.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-badges-list', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_badges_list " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_badges_list_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-badges/mycred-badges.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-badges', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_badges " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_badges_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-best-user/mycred-best-user.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 18 | ); 19 | 20 | } 21 | 22 | public function register_assets() { 23 | 24 | wp_enqueue_script( 25 | 'mycred-best-user', 26 | plugins_url('index.js', __FILE__), 27 | array( 28 | 'wp-blocks', 29 | 'wp-element', 30 | 'wp-components', 31 | 'wp-block-editor' 32 | ) 33 | ); 34 | 35 | } 36 | 37 | public function render_block( $attributes, $content ) { 38 | 39 | $content = ""; 40 | 41 | if ( isset( $attributes['content'] ) ) 42 | $content = $attributes['content']; 43 | 44 | unset( $attributes['content'] ); 45 | 46 | return "[mycred_best_user " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]" . $content . "[/mycred_best_user]"; 47 | 48 | } 49 | 50 | } 51 | 52 | endif; 53 | 54 | new mycred_best_user_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-buy-form/mycred-buy-form.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-buy-form', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | return "[mycred_buy_form " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | 39 | } 40 | 41 | } 42 | endif; 43 | 44 | new mycred_buy_form_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-buy-pending/mycred-buy-pending.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-buy-pending', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_buy_pending " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_buy_pending_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-balance-history/mycred-chart-balance-history.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-balance-history', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_balance_history " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_balance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-circu/mycred-chart-circu.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-circu', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_circulation " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_circulation_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-gain-loss/mycred-chart-gain-loss.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-gain-loss', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_gain_loss " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_gain_loss_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-history/mycred-chart-history.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-history', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_history " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_history_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-instance-history/mycred-chart-instance-history.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-instance-history', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_instance_history " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_instance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-top-balance/mycred-chart-top-balance.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-top-balance', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_top_balances " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_top_balance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-chart-top-instance/mycred-chart-top-instance.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-chart-top-instance', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | return "[mycred_chart_top_instances " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | } 39 | 40 | } 41 | endif; 42 | 43 | new mycred_chart_top_instance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-email-subsc/index.js: -------------------------------------------------------------------------------- 1 | (function (wp) { 2 | var registerBlockType = wp.blocks.registerBlockType; 3 | var InspectorControls = wp.blockEditor.InspectorControls; 4 | var el = wp.element.createElement; 5 | var TextControl = wp.components.TextControl; 6 | var panelBody = wp.components.PanelBody; 7 | var __ = wp.i18n.__; 8 | registerBlockType('mycred-gb-blocks/mycred-email-subsc', { 9 | title: __('Email Subscriptions', 'mycred'), 10 | category: 'mycred', 11 | attributes: { 12 | success: { 13 | type: 'string', 14 | default: 'Settings Updated' 15 | } 16 | }, 17 | edit: function (props) { 18 | var success = props.attributes.success; 19 | 20 | function setSuccess(value) { 21 | props.setAttributes({success: value}); 22 | } 23 | 24 | return el('div', {}, [ 25 | el('p', {}, __('Email Subscriptions Shortcode', 'mycred') ), 26 | el(InspectorControls, null, 27 | el( panelBody, { title: 'Form Settings', initialOpen: true }, 28 | el(TextControl, { 29 | label: __('Success', 'mycred'), 30 | help: __('Message to show when settings have been changed.', 'mycred'), 31 | value: success, 32 | onChange: setSuccess 33 | }), 34 | ) 35 | ) 36 | ]); 37 | }, 38 | save: function (props) { 39 | return null; 40 | } 41 | }); 42 | })(window.wp); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-email-subsc/mycred-email-subsc.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-email-subsc', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | 38 | return "[mycred_email_subscriptions " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 39 | 40 | } 41 | 42 | } 43 | endif; 44 | 45 | new mycred_email_subscriptions_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-exchange/mycred-exchange.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 17 | ); 18 | 19 | } 20 | 21 | public function register_assets() { 22 | 23 | wp_enqueue_script( 24 | 'mycred-exchange', 25 | plugins_url('index.js', __FILE__), 26 | array( 27 | 'wp-blocks', 28 | 'wp-element', 29 | 'wp-components', 30 | 'wp-block-editor', 31 | 'wp-rich-text' 32 | ) 33 | ); 34 | 35 | } 36 | 37 | public function render_block( $attributes, $content ) { 38 | return "[mycred_exchange " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 39 | } 40 | 41 | } 42 | 43 | endif; 44 | 45 | new mycred_exchange_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-give/mycred-give.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 17 | ); 18 | 19 | } 20 | 21 | public function register_assets() { 22 | 23 | wp_enqueue_script( 24 | 'mycred-give', 25 | plugins_url('index.js', __FILE__), 26 | array( 27 | 'wp-blocks', 28 | 'wp-element', 29 | 'wp-components', 30 | 'wp-block-editor', 31 | 'wp-rich-text' 32 | ) 33 | ); 34 | 35 | } 36 | 37 | public function render_block( $attributes, $content ) { 38 | 39 | $content = ''; 40 | 41 | if ( empty( $attributes['type'] ) ) 42 | $attributes['type'] = 'mycred_default'; 43 | 44 | if ( ! empty( $attributes['content'] ) ) 45 | $content = $attributes['content']; 46 | 47 | unset( $attributes['content'] ); 48 | 49 | return "[mycred_give " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]" . $content . "[/mycred_give]"; 50 | 51 | } 52 | 53 | } 54 | 55 | endif; 56 | 57 | new mycred_give_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-history/mycred-history.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 17 | ); 18 | 19 | } 20 | 21 | public function register_assets() { 22 | 23 | wp_enqueue_script( 24 | 'mycred-history', 25 | plugins_url('index.js', __FILE__), 26 | array( 27 | 'wp-blocks', 28 | 'wp-element', 29 | 'wp-components', 30 | 'wp-block-editor', 31 | 'wp-rich-text' 32 | ) 33 | ); 34 | 35 | } 36 | 37 | public function render_block( $attributes, $content ) { 38 | 39 | if ( empty( $attributes['type'] ) ) 40 | $attributes['type'] = 'mycred_default'; 41 | 42 | return "[mycred_history " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 43 | 44 | } 45 | 46 | } 47 | 48 | endif; 49 | 50 | new mycred_history_block(); 51 | -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-hook-table/mycred-hook-table.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 17 | ); 18 | 19 | } 20 | 21 | public function register_assets() { 22 | 23 | wp_enqueue_script( 24 | 'mycred-hook-table', 25 | plugins_url('index.js', __FILE__), 26 | array( 27 | 'wp-blocks', 28 | 'wp-element', 29 | 'wp-components', 30 | 'wp-block-editor', 31 | 'wp-rich-text' 32 | ) 33 | ); 34 | 35 | } 36 | 37 | public function render_block( $attributes, $content ) { 38 | 39 | if ( empty( $attributes['type'] ) ) 40 | $attributes['type'] = 'mycred_default'; 41 | 42 | return "[mycred_hook_table " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 43 | } 44 | 45 | } 46 | 47 | endif; 48 | 49 | new mycred_hook_table_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-leaderboard/mycred-leaderboard.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-leaderboard', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | 38 | if ( empty( $attributes['type'] ) ) 39 | $attributes['type'] = 'mycred_default'; 40 | 41 | return "[mycred_leaderboard " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 42 | 43 | } 44 | 45 | } 46 | endif; 47 | 48 | new mycred_leaderboard_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-link/mycred-link.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-link', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | $content = ''; 38 | 39 | if ( empty( $attributes['ctype'] ) ) 40 | $attributes['ctype'] = 'mycred_default'; 41 | 42 | if ( isset( $attributes['clss'] ) ) { 43 | $attributes['class'] = $attributes['clss']; 44 | unset($attributes['clss']); 45 | } 46 | 47 | if ( ! empty( $attributes['content'] ) ) { 48 | $content = $attributes['content']; 49 | unset( $attributes['content'] ); 50 | } 51 | 52 | return "[mycred_link " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]" . $content . "[/mycred_link]"; 53 | 54 | } 55 | 56 | } 57 | endif; 58 | 59 | new mycred_link_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-list-ranks/mycred-list-ranks.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-list-ranks', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | return "[mycred_list_ranks " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_list_ranks_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-load-coupon/mycred-load-coupon.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-load-coupon', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | return "[mycred_load_coupon " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | 39 | } 40 | 41 | } 42 | endif; 43 | 44 | new mycred_load_coupon_block(); 45 | -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-my-badges/mycred-my-badges.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-my-badges', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | return "[mycred_my_badges " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 37 | } 38 | 39 | } 40 | endif; 41 | 42 | new mycred_my_badges_block(); 43 | -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-my-balance-converted/mycred-my-balance-converted.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-my-balance-converted', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | return "[mycred_my_balance_converted " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | 39 | } 40 | 41 | } 42 | endif; 43 | 44 | new mycred_my_balance_converted_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-my-balance/mycred-my-balance.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-my-balance', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | $content = ''; 38 | 39 | if ( empty( $attributes['type'] ) ) 40 | $attributes['type'] = 'mycred_default'; 41 | 42 | if ( isset( $attributes['content'] ) ) { 43 | $content = $attributes['content']; 44 | unset( $attributes['content'] ); 45 | } 46 | 47 | return "[mycred_my_balance " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]" . $content . "[/mycred_my_balance]"; 48 | 49 | } 50 | 51 | } 52 | endif; 53 | 54 | new mycred_my_balance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-my-rank/mycred-my-rank.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-my-rank', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | return "[mycred_my_rank " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_my_rank_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-my-ranks/mycred-my-ranks.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-my-ranks', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | return "[mycred_my_ranks " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_my_ranks_block(); 48 | -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-total-balance/mycred-total-balance.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-total-balance', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['types'] ) ) 38 | $attributes['types'] = 'mycred_default'; 39 | 40 | return "[mycred_total_balance " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_total_balance_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-total-pts/mycred-total-pts.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-total-pts', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor', 30 | 'wp-rich-text' 31 | ) 32 | ); 33 | 34 | } 35 | 36 | public function render_block( $attributes, $content ) { 37 | 38 | if ( empty( $attributes['type'] ) ) 39 | $attributes['type'] = 'mycred_default'; 40 | 41 | return "[mycred_total_points " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 42 | 43 | } 44 | 45 | } 46 | endif; 47 | 48 | new mycred_total_points_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-total-since/mycred-total-since.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-total-since', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['type'] ) ) 38 | $attributes['type'] = 'mycred_default'; 39 | 40 | return "[mycred_total_since " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_total_since_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-transfer/mycred-transfer.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-transfers', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | return "[mycred_transfer " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 38 | 39 | } 40 | 41 | } 42 | endif; 43 | 44 | new mycred_transfer_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-users-of-all-ranks/mycred-users-of-all-ranks.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-users-of-all-ranks', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | return "[mycred_users_of_all_ranks " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_users_of_all_ranks_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-users-of-rank/mycred-users-of-rank.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-users-of-rank', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | return "[mycred_users_of_rank " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 41 | 42 | } 43 | 44 | } 45 | endif; 46 | 47 | new mycred_users_of_rank_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/blocks/mycred-video/mycred-video.php: -------------------------------------------------------------------------------- 1 | array( $this, 'render_block' ) ) 16 | ); 17 | 18 | } 19 | 20 | public function register_assets() { 21 | 22 | wp_enqueue_script( 23 | 'mycred-video', 24 | plugins_url('index.js', __FILE__), 25 | array( 26 | 'wp-blocks', 27 | 'wp-element', 28 | 'wp-components', 29 | 'wp-block-editor' 30 | ) 31 | ); 32 | 33 | } 34 | 35 | public function render_block( $attributes, $content ) { 36 | // var_dump($attributes['video_id']); 37 | if ( empty( $attributes['ctype'] ) ) 38 | $attributes['ctype'] = 'mycred_default'; 39 | 40 | if( ! empty( $attributes['video_id'] ) ) 41 | $attributes['id'] = $attributes['video_id']; 42 | 43 | return "[mycred_video " . mycred_blocks_functions::mycred_extract_attributes( $attributes ) . "]"; 44 | 45 | } 46 | 47 | } 48 | endif; 49 | 50 | new mycred_video_block(); -------------------------------------------------------------------------------- /includes/mycred-blocks/includes/mycred-gutenberg-functions.php: -------------------------------------------------------------------------------- 1 | $attribute) { 14 | $attr[] = $k . '=' . "'" . $attribute . "'"; 15 | } 16 | return implode(' ',$attr); 17 | } 18 | 19 | } 20 | endif; -------------------------------------------------------------------------------- /includes/mycred-main-menu.php: -------------------------------------------------------------------------------- 1 | get_point_editor_capability(), 26 | MYCRED_MAIN_SLUG, 27 | '', 28 | 'dashicons-mycred-main' 29 | ); 30 | 31 | mycred_add_main_submenu( 32 | 'General Settings', 33 | 'General Settings', 34 | $mycred->get_point_editor_capability(), 35 | MYCRED_MAIN_SLUG, 36 | array( $modules['type'][ MYCRED_DEFAULT_TYPE_KEY ]['settings'], 'admin_page' ) 37 | ); 38 | 39 | global $pagenow; 40 | 41 | if ( $pagenow == 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] == 'mycred-main' ) { 42 | 43 | $modules['type'][ MYCRED_DEFAULT_TYPE_KEY ]['settings']->scripts_and_styles(); 44 | $modules['type'][ MYCRED_DEFAULT_TYPE_KEY ]['settings']->settings_header(); 45 | 46 | wp_enqueue_script( 'mycred-accordion' ); 47 | 48 | } 49 | 50 | add_action( 'admin_menu', array( $this, 'add_submenu' ) ); 51 | 52 | } 53 | 54 | public function add_submenu() { 55 | 56 | mycred_add_main_submenu( 57 | __( 'About', 'mycred' ), 58 | __( 'About', 'mycred' ), 59 | 'moderate_comments', 60 | MYCRED_SLUG . '-about', 61 | 'mycred_about_page' 62 | ); 63 | 64 | } 65 | 66 | } 67 | endif; -------------------------------------------------------------------------------- /includes/shortcodes/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_affiliate_id.php: -------------------------------------------------------------------------------- 1 | MYCRED_DEFAULT_TYPE_KEY 14 | ), $atts, MYCRED_SLUG . '_affiliate_id' ) ); 15 | 16 | return apply_filters( 'mycred_affiliate_id_' . $type, '', $atts, $content ); 17 | 18 | } 19 | endif; 20 | add_shortcode( MYCRED_SLUG . '_affiliate_id', 'mycred_render_affiliate_id' ); 21 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_affiliate_link.php: -------------------------------------------------------------------------------- 1 | MYCRED_DEFAULT_TYPE_KEY 14 | ), $atts, MYCRED_SLUG . '_affiliate_link' ) ); 15 | 16 | return apply_filters( 'mycred_affiliate_link_' . $type, '', $atts, $content ); 17 | 18 | } 19 | endif; 20 | add_shortcode( MYCRED_SLUG . '_affiliate_link', 'mycred_render_affiliate_link' ); 21 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_give.php: -------------------------------------------------------------------------------- 1 | '', 19 | 'user_id' => 'current', 20 | 'log' => '', 21 | 'ref' => 'gift', 22 | 'limit' => 0, 23 | 'type' => MYCRED_DEFAULT_TYPE_KEY 24 | ), $atts, MYCRED_SLUG . '_give' ) ); 25 | 26 | if ( ! is_user_logged_in() && $user_id == 'current' ) 27 | return $content; 28 | 29 | if ( ! mycred_point_type_exists( $type ) || apply_filters( 'mycred_give_run', true, $atts ) === false ) return $content; 30 | 31 | $mycred = mycred( $type ); 32 | $user_id = mycred_get_user_id( $user_id ); 33 | $ref = sanitize_key( $ref ); 34 | $limit = absint( $limit ); 35 | 36 | // Check for exclusion 37 | if ( $mycred->exclude_user( $user_id ) ) return $content; 38 | 39 | // Limit 40 | if ( $limit > 0 && mycred_count_ref_instances( $ref, $user_id, $type ) >= $limit ) return $content; 41 | 42 | $mycred->add_creds( 43 | $ref, 44 | $user_id, 45 | $amount, 46 | $log, 47 | 0, 48 | '', 49 | $type 50 | ); 51 | 52 | } 53 | endif; 54 | add_shortcode( MYCRED_SLUG . '_give', 'mycred_render_shortcode_give' ); 55 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_leaderboard.php: -------------------------------------------------------------------------------- 1 | 25, 15 | 'order' => 'DESC', 16 | 'offset' => 0, 17 | 'type' => MYCRED_DEFAULT_TYPE_KEY, 18 | 'based_on' => 'balance', 19 | 'total' => 0, 20 | 'wrap' => 'li', 21 | 'template' => '#%position% %user_profile_link% %image% %cred_f%', 22 | 'nothing' => 'Leaderboard is empty', 23 | 'current' => 0, 24 | 'exclude_zero' => 1, 25 | 'timeframe' => '', 26 | 'to' => '', 27 | 'exclude' => '', 28 | 'image' => 0 29 | ), $atts, MYCRED_SLUG . '_leaderboard' ); 30 | 31 | // Construct the leaderboard class 32 | $leaderboard = mycred_get_leaderboard( $args ); 33 | 34 | // Just constructing the class will not yeld any results 35 | // We need to run the query to populate the leaderboard 36 | $leaderboard->get_leaderboard_results( (bool) $args['current'] ); 37 | 38 | // Render and return 39 | return do_shortcode( $leaderboard->render( $args, $content ) ); 40 | 41 | } 42 | endif; 43 | add_shortcode( MYCRED_SLUG . '_leaderboard', 'mycred_render_shortcode_leaderboard' ); 44 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_leaderboard_position.php: -------------------------------------------------------------------------------- 1 | 'current', 16 | 'ctype' => MYCRED_DEFAULT_TYPE_KEY, 17 | 'type' => '', 18 | 'based_on' => 'balance', 19 | 'total' => 0, 20 | 'missing' => '-', 21 | 'suffix' => 0, 22 | 'timeframe' => '' 23 | ), $atts, MYCRED_SLUG . '_leaderboard_position' ); 24 | 25 | // Get the user ID we need a position for 26 | $user_id = mycred_get_user_id( $args['user_id'] ); 27 | 28 | // Backwards comp. 29 | if ( $args['type'] == '' ) 30 | $args['type'] = $args['ctype']; 31 | 32 | // Construct the leaderboard class 33 | $leaderboard = mycred_get_leaderboard( $args ); 34 | 35 | // Query the users position 36 | $position = $leaderboard->get_users_current_position( $user_id, $args['missing'] ); 37 | 38 | if ( $position != $args['missing'] && $args['suffix'] == 1 ) 39 | $position = mycred_ordinal_suffix( $position, true ); 40 | 41 | return $position; 42 | 43 | } 44 | endif; 45 | add_shortcode( MYCRED_SLUG . '_leaderboard_position', 'mycred_render_shortcode_leaderbaord_position' ); 46 | -------------------------------------------------------------------------------- /includes/shortcodes/mycred_referral_stats.php: -------------------------------------------------------------------------------- 1 | MYCRED_DEFAULT_TYPE_KEY 18 | 19 | ), $atts, MYCRED_SLUG . '_referral' ) ); 20 | 21 | $hooks = mycred_get_option( 'mycred_pref_hooks', false ); 22 | 23 | if ( $ctype != MYCRED_DEFAULT_TYPE_KEY ) 24 | $hooks = mycred_get_option( 'mycred_pref_hooks_' . sanitize_key( $ctype ), false ); 25 | $active = $hooks['active']; 26 | if( is_array( $active) && in_array( 'affiliate' , $active )){ 27 | 28 | $visit = $hooks['hook_prefs']['affiliate']['visit']; 29 | $signup = $hooks['hook_prefs']['affiliate']['signup']; 30 | 31 | $output = ''; 32 | 33 | $user_id = get_current_user_id(); 34 | 35 | $output .= ''; 36 | 37 | // Show Visitor referral count 38 | if ( $visit['creds'] != 0 ) 39 | $output .= sprintf( '', __( 'Visitors Referred', 'mycred' ), mycred_count_ref_instances( 'visitor_referral', $user_id, $ctype ) ); 40 | 41 | // Show Signup referral count 42 | if ( $signup['creds'] != 0 ) 43 | $output .= sprintf( '', __( 'Signups Referred', 'mycred' ), mycred_count_ref_instances( 'signup_referral', $user_id, $ctype ) ); 44 | 45 | $output .= '
%s%s
'; 46 | return $output; 47 | } 48 | } 49 | endif; 50 | 51 | add_shortcode( MYCRED_SLUG . '_referral_stats' , 'mycred_referral_front' ); -------------------------------------------------------------------------------- /includes/shortcodes/mycred_total_since.php: -------------------------------------------------------------------------------- 1 | 'today', 15 | 'until' => 'now', 16 | 'type' => MYCRED_DEFAULT_TYPE_KEY, 17 | 'ref' => '', 18 | 'user_id' => 'current', 19 | 'formatted' => 1 20 | ), $atts, MYCRED_SLUG . '_total_since' ) ); 21 | 22 | if ( ! mycred_point_type_exists( $type ) ) 23 | $type = MYCRED_DEFAULT_TYPE_KEY; 24 | 25 | if ( $ref == '' ) $ref = NULL; 26 | 27 | $user_id = mycred_get_user_id( $user_id ); 28 | $mycred = mycred( $type ); 29 | $total = mycred_get_total_by_time( $from, $until, $ref, $user_id, $type ); 30 | 31 | if ( substr( $total, 0, 7 ) != 'Invalid' && $formatted == 1 ) 32 | $total = $mycred->format_creds( $total ); 33 | 34 | return $total; 35 | 36 | } 37 | endif; 38 | add_shortcode( MYCRED_SLUG . '_total_since', 'mycred_render_shortcode_total_since' ); 39 | -------------------------------------------------------------------------------- /includes/widgets/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/mycred-en_US.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-en_US.mo -------------------------------------------------------------------------------- /lang/mycred-es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-es_ES.mo -------------------------------------------------------------------------------- /lang/mycred-es_VE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-es_VE.mo -------------------------------------------------------------------------------- /lang/mycred-fa_IR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-fa_IR.mo -------------------------------------------------------------------------------- /lang/mycred-fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-fr_FR.mo -------------------------------------------------------------------------------- /lang/mycred-ja_JP.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-ja_JP.mo -------------------------------------------------------------------------------- /lang/mycred-lt_LT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-lt_LT.mo -------------------------------------------------------------------------------- /lang/mycred-pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-pt_BR.mo -------------------------------------------------------------------------------- /lang/mycred-ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-ru_RU.mo -------------------------------------------------------------------------------- /lang/mycred-sv_SE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-sv_SE.mo -------------------------------------------------------------------------------- /lang/mycred-zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mycred/myCRED/2b288f95df91d7a45ab3403c1fe31653c122ab47/lang/mycred-zh_CN.mo -------------------------------------------------------------------------------- /membership/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /membership/subscription-functions.php: -------------------------------------------------------------------------------- 1 | array( 29 | 'license_key' => $key, 30 | 'site' => get_bloginfo( 'url' ), 31 | 'api-key' => md5( get_bloginfo( 'url' ) ) 32 | ), 33 | 'timeout' => 12 34 | ); 35 | 36 | // Start checking for an update 37 | $response = wp_remote_post( $api_endpoint, $request_args ); 38 | 39 | if ( ! is_wp_error( $response ) ) { 40 | 41 | $response_data = json_decode( $response['body'] ); 42 | 43 | if ( 44 | ! empty( $response_data->status ) && 45 | $response_data->status == 'success' 46 | ) { 47 | 48 | $is_valid = $response_data->data; 49 | 50 | } 51 | 52 | } 53 | 54 | set_site_transient( 'mycred_is_valid_license_key', $is_valid, DAY_IN_SECONDS * 9999 ); 55 | } 56 | 57 | return ( $is_valid == 'yes' ); 58 | 59 | } 60 | endif; -------------------------------------------------------------------------------- /modules/index.php: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------