Skip to content

Commit 3572300

Browse files
authored
Merge pull request #397 from flohdez/master
Change newsletter subscription form and add 2 new templates to manage the newsletter subscription steps
2 parents 5ece9aa + 8b16c6f commit 3572300

4 files changed

Lines changed: 240 additions & 143 deletions

File tree

config/routes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
});
106106
$routes->connect('/meetups', ['controller' => 'Pages', 'action' => 'display', 'meetups']);
107107

108+
/**
109+
* Custom routes for newsletter subscription
110+
*/
111+
$routes->connect('/newsletter_completed', ['controller' => 'Pages', 'action' => 'display', 'newsletter_completed']);
112+
$routes->connect('/newsletter_confirmation', ['controller' => 'Pages', 'action' => 'display', 'newsletter_confirmation']);
113+
108114
/**
109115
* ...and connect the rest of 'Pages' controller's URLs.
110116
*/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* @var \App\View\AppView $this
4+
*/
5+
6+
$title = __('CakePHP - Build fast, grow solid | CakePHP Newsletter');
7+
$description = __('CakePHP Newsletter subscription completed confirmation page');
8+
$this->assign('title', $title);
9+
$this->assign('meta', $this->Html->meta('description', $description));
10+
$this->assign('socialMeta', $this->Meta->socialTags(['title' => $title, 'description' => $description]));
11+
12+
?>
13+
<div class="section newsletter">
14+
<div class="main dev">
15+
<div class="container-fluid docs newsletter">
16+
<div class="col-md-12 text-center mt100 mb100">
17+
<h1 class="title-red"><?= __('Your subscription has been completed.') ?></h1>
18+
<div class="clearfix"></div>
19+
</div>
20+
</div>
21+
</div>
22+
</div>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/**
3+
* @var \App\View\AppView $this
4+
*/
5+
6+
$title = __('CakePHP - Build fast, grow solid | CakePHP Newsletter');
7+
$description = __('CakePHP newsletter subscription registration confirmation page');
8+
$this->assign('title', $title);
9+
$this->assign('meta', $this->Html->meta('description', $description));
10+
$this->assign('socialMeta', $this->Meta->socialTags(['title' => $title, 'description' => $description]));
11+
12+
?>
13+
<div class="section newsletter">
14+
<div class="main dev">
15+
<div class="container-fluid docs newsletter">
16+
<div class="col-md-4"></div>
17+
<div class="col-md-6 mt100">
18+
<h1 class="title-red mb50"><?= __('Confirm your subscription.') ?></h1>
19+
<p>
20+
<?= __('We need to confirm your email address to complete the subscription process.') ?>
21+
</p>
22+
<p>
23+
<?= __('Please click on the list in the email we have just sent you.') ?>
24+
</p>
25+
<p>
26+
<?= __('Your subscription will not be completed unless you click the confirmation link.') ?>
27+
</p>
28+
<div class="clearfix"></div>
29+
</div>
30+
</div>
31+
</div>
32+
</div>

0 commit comments

Comments
 (0)