PluginProbe
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More / 2.2.0
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More v2.2.0
2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.10.0 1.9.1 1.9.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 All 59 releases
storeengine / includes / shortcode.php

shortcode.php in StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More 2.2.0, at includes/shortcode.php

65 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace StoreEngine;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly.
7 }
8
9 class Shortcode {
10
11 public static function init() {
12 $self = new self();
13 $self->dispatch_shortcode();
14 $self->dispatch_shortcode_blocks();
15 }
16
17 /**
18 * Boot the shortcode → block bridge: the generic `storeengine/shortcode` block
19 * that renders any registered shortcode with real editor controls (works with
20 * only StoreEngine active), and register the core StoreEngine shortcodes as
21 * block descriptors. Referencing the Bridge class autoloads its file, which
22 * also defines the global storeengine_register_shortcode_block() API.
23 */
24 public function dispatch_shortcode_blocks() {
25 Blocks\Bridge::init();
26 Blocks\CoreShortcodes::register();
27 // Always-on "Restrict This Block" panel — shows the membership access
28 // controls when the addon is active, or an activation promo when it isn't.
29 Blocks\BlockVisibility::init();
30 }
31
32 public function dispatch_shortcode() {
33 new Shortcode\Products();
34 new Shortcode\ProductsSidebar();
35 new Shortcode\ProductsArchive();
36 new Shortcode\Login();
37 new Shortcode\FrontendDashboard();
38 new Shortcode\ArchiveHeaderFilter();
39 new Shortcode\SingleProduct();
40 new Shortcode\ProceedToCheckout();
41 new Shortcode\ContinueShopping();
42 new Shortcode\CartListTable();
43 new Shortcode\CartSubTotalTable();
44 new Shortcode\ApplyCouponForm();
45 new Shortcode\CheckoutForm();
46 new Shortcode\OrderSummary();
47 new Shortcode\ThankyouOrderInfo();
48 new Shortcode\ThankyouPaymentInstructions();
49 new Shortcode\OrderDetails();
50 new Shortcode\OrderDownloads();
51 new Shortcode\OrderBillingAddress();
52 new Shortcode\OrderShippingAddress();
53 new Shortcode\ProductDescription();
54 new Shortcode\AddToCart();
55 new Shortcode\MiniCart();
56 new Shortcode\SingleProductCartNotice();
57 new Shortcode\SingleProductGallery();
58 new Shortcode\SingleProductSummary();
59 new Shortcode\SingleProductDescription();
60 new Shortcode\SingleProductComments();
61 new Shortcode\SingleProductReviews();
62 new Shortcode\SingleProductFaq();
63 }
64 }
65