PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Views / Campaigns / CampaignsView.php

CampaignsView.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.2, at back/Views/Campaigns/CampaignsView.php

68 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AcyMailing\Views\Campaigns;
4
5 use AcyMailing\Core\AcymView;
6
7 /**
8 * Class CampaignsViewLists
9 */
10 class CampaignsView extends AcymView
11 {
12 public $followupSteps;
13
14 public function __construct()
15 {
16 parent::__construct();
17
18 $this->steps = [
19 'chooseTemplate' => 'ACYM_CHOOSE_TEMPLATE',
20 'editEmail' => 'ACYM_EDIT_EMAIL',
21 'recipients' => 'ACYM_RECIPIENTS',
22 'sendSettings' => 'ACYM_SEND_SETTINGS',
23 'tests' => 'ACYM_TEST',
24 'summary' => 'ACYM_SUMMARY',
25 ];
26
27 $this->followupSteps = [
28 'followupTrigger' => 'ACYM_TRIGGER',
29 'followupCondition' => 'ACYM_CONDITIONS',
30 'followupEmail' => 'ACYM_EMAILS',
31 'followupSummary' => 'ACYM_SUMMARY',
32 ];
33
34 $this->tabs = [
35 'campaigns' => 'ACYM_CAMPAIGNS',
36 ];
37
38 $this->tabs['followup'] = 'ACYM_FOLLOW_UP';
39
40 if (acym_isAllowed('mails')) {
41 $this->tabs['welcome'] = 'ACYM_WELCOME_EMAILS';
42 $this->tabs['unsubscribe'] = 'ACYM_UNSUBSCRIBE_EMAILS';
43 }
44
45 acym_trigger('onAcymDisplayCampaignListingSpecificTabs', [&$this->tabs]);
46
47 $this->tabs['mailbox_action'] = 'ACYM_MAILBOX_ACTION_CAMPAIGN';
48 }
49
50 public function addSegmentStep($displaySegmentTab)
51 {
52 if (!$displaySegmentTab) {
53 return;
54 }
55 $this->steps = [
56 'chooseTemplate' => 'ACYM_CHOOSE_TEMPLATE',
57 'editEmail' => 'ACYM_EDIT_EMAIL',
58 'recipients' => 'ACYM_RECIPIENTS',
59 ];
60 if (acym_isAllowed('segments')) {
61 $this->steps['segment'] = 'ACYM_SEGMENT';
62 }
63 $this->steps['sendSettings'] = 'ACYM_SEND_SETTINGS';
64 $this->steps['tests'] = 'ACYM_TEST';
65 $this->steps['summary'] = 'ACYM_SUMMARY';
66 }
67 }
68