| 1 |
<?php |
| 2 |
ob_start(); // Start output buffering |
| 3 |
?> |
| 4 |
|
| 5 |
|
| 6 |
<!--Start you code here --> |
| 7 |
<div class="fbs_daily_reminder"> |
| 8 |
<div class="fbs_email_greeting"> |
| 9 |
<strong class="fbs_bg_white"><?php echo __('Good Morning', 'fluent-boards').', ' |
| 10 |
.esc_html($name).'!' ?></strong> |
| 11 |
<p class="fbs_bg_white"> It's <?php echo date('l, F j, Y').'. ' |
| 12 |
.__("Here's your task summary for today:") ?> </p> <?php // This will display the current date as "Today is Monday, January 1, 2022" ?> |
| 13 |
</div> |
| 14 |
|
| 15 |
<strong class="fbs_bg_white" style="font-size: 15px"><?php echo __('Tasks Due Today:', 'fluent-boards'); ?></strong> |
| 16 |
|
| 17 |
<ul class="fbs_email_task_list_group"> |
| 18 |
<?php foreach ($tasks as $task): ?> |
| 19 |
<li class="fbs_email_task_list_item"> |
| 20 |
<a target="_blank" |
| 21 |
href="<?php echo htmlspecialchars($page_url.'boards/' |
| 22 |
.$task->board->id |
| 23 |
.'/tasks/'.$task->id |
| 24 |
.'-' |
| 25 |
.substr($task->title, |
| 26 |
0, 10)); ?>"> |
| 27 |
<?php echo esc_html($task->title). ' '; ?> |
| 28 |
</a> |
| 29 |
<?php echo __('task of board', 'fluent-boards'); ?> |
| 30 |
<a target="_blank" |
| 31 |
href="<?php echo htmlspecialchars($page_url.'boards/' |
| 32 |
.$task->board->id); ?>"> |
| 33 |
<?php echo esc_html($task->board->title); ?> |
| 34 |
</a> |
| 35 |
</li> |
| 36 |
<?php endforeach; ?> |
| 37 |
</ul> |
| 38 |
</div> |
| 39 |
|
| 40 |
|
| 41 |
<!--end your code here --> |
| 42 |
|
| 43 |
|
| 44 |
<?php |
| 45 |
$content = ob_get_clean(); // Get the content and clean the buffer |
| 46 |
// Include the template and pass the content |
| 47 |
include 'template.php'; |