SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/email/pages_stale.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. use Sprout\Helpers\Enc;
  17.  
  18.  
  19. ?>
  20. <p>Hi,</p>
  21.  
  22. <p>The following pages have stale content, and should be updated:</p>
  23.  
  24. <table>
  25. <tr>
  26. <th>Name</th>
  27. <th>Links</th>
  28. <th>Age (days)</th>
  29. <?php if ($show_op): ?>
  30. <th>Last edited by</th>
  31. <?php endif; ?>
  32. </tr>
  33.  
  34. <?php foreach ($pages as $page): ?>
  35. <tr>
  36. <td><?= Enc::html($page['name']); ?></td>
  37. <td><a href="<?= Enc::html($page['url']); ?>">view</a> |
  38. <a href="<?= Enc::html($base); ?>admin/edit/page/<?= $page['id']; ?>">edit</a>
  39. </td>
  40. <td><?= $page['age']; ?></td>
  41. <?php if ($show_op): ?>
  42. <td><?= Enc::html($page['editor']); ?></td>
  43. <?php endif; ?>
  44. </tr>
  45. <?php endforeach; ?>
  46.