SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/email/content_subscribe.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2015 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 3 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. ?>
  19. <p>Hi <?php echo Enc::html($name); ?>,</p>
  20.  
  21. <p>There have been some updates on the <?php echo Enc::html($subsite_title); ?> website:</p>
  22.  
  23.  
  24. <div class="content-subscribe-list">
  25.  
  26. <?php foreach ($items as $row): ?>
  27.  
  28. <div class="content-subscribe-item">
  29. <h2><?php echo Enc::html($row['name']); ?></h2>
  30.  
  31. <p><?php echo Enc::html($row['text']); ?></p>
  32.  
  33. <p><a href="<?php echo Enc::html($row['url']); ?>"><?php echo Enc::html($row['url']); ?></a></p>
  34. </div>
  35.  
  36. <?php endforeach; ?>
  37.  
  38. </div>
  39.  
  40.  
  41. <p>To unsubscribe from these notifications, use this link:
  42. <br><a href="<?php echo $unsubscribe_url; ?>"><?php echo $unsubscribe_url; ?></a></p>
  43.