PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.8.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.8.0
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / subscription / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.8.0, at modules/subscription/module.php

31 lines 941 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Subscription module.
4 *
5 * "Subscription" in the cloud sidebar — the current plan and the comparison
6 * table. Ported from `latest`'s `profile/Subscription.js`.
7 *
8 * DELIBERATELY OWNS NO ROUTE. The screen is read-only: plan changes,
9 * cancellation and resumption all happen on templately.com, and it links out
10 * for them. What it reads already exists — the plan comes from the stored user
11 * record (`connect` / `profile/sync`) and the catalog from the public
12 * `/templately/v1/pricing` endpoint template-browsing already serves. Purchases
13 * go through `template-details`' `POST /checkout`, whose `subscription` branch
14 * is admin-gated.
15 *
16 * So this module is JS-only: a route registration and a screen.
17 *
18 * @package Templately
19 */
20
21 namespace Templately\Modules\Subscription;
22
23 use Templately\Core\Module_Base;
24
25 class Module extends Module_Base {
26
27 public function get_name(): string {
28 return 'subscription';
29 }
30 }
31