| 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 |
|