Add support for [site:title] and [site:homepage_link]
These will add support for these two shortcodes in the Shortcode engine MAILPOET-4599
This commit is contained in:
committed by
Aschepikov
parent
80f22c5b50
commit
f92ee90e9b
@@ -10,6 +10,7 @@ use MailPoet\Newsletter\NewslettersRepository;
|
||||
use MailPoet\Newsletter\Shortcodes\Categories\Date;
|
||||
use MailPoet\Newsletter\Shortcodes\Categories\Link;
|
||||
use MailPoet\Newsletter\Shortcodes\Categories\Newsletter;
|
||||
use MailPoet\Newsletter\Shortcodes\Categories\Site;
|
||||
use MailPoet\Newsletter\Shortcodes\Categories\Subscriber as SubscriberCategory;
|
||||
use MailPoet\Newsletter\Shortcodes\Shortcodes as NewsletterShortcodes;
|
||||
use MailPoet\Newsletter\Url as NewsletterUrl;
|
||||
@@ -49,6 +50,9 @@ class Shortcodes {
|
||||
/** @var SubscriberCategory */
|
||||
private $subscriberCategory;
|
||||
|
||||
/** @var Site */
|
||||
private $siteCategory;
|
||||
|
||||
public function __construct(
|
||||
Pages $subscriptionPages,
|
||||
WPFunctions $wp,
|
||||
@@ -59,7 +63,8 @@ class Shortcodes {
|
||||
Date $dateCategory,
|
||||
Link $linkCategory,
|
||||
Newsletter $newsletterCategory,
|
||||
SubscriberCategory $subscriberCategory
|
||||
SubscriberCategory $subscriberCategory,
|
||||
Site $siteCategory
|
||||
) {
|
||||
$this->subscriptionPages = $subscriptionPages;
|
||||
$this->wp = $wp;
|
||||
@@ -71,6 +76,7 @@ class Shortcodes {
|
||||
$this->linkCategory = $linkCategory;
|
||||
$this->newsletterCategory = $newsletterCategory;
|
||||
$this->subscriberCategory = $subscriberCategory;
|
||||
$this->siteCategory = $siteCategory;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
@@ -216,6 +222,7 @@ class Shortcodes {
|
||||
$this->linkCategory,
|
||||
$this->newsletterCategory,
|
||||
$this->subscriberCategory,
|
||||
$this->siteCategory,
|
||||
$this->wp
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user