]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak html digest template (add excerpt)
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 30 Oct 2007 07:13:06 +0000 (08:13 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 30 Oct 2007 07:13:06 +0000 (08:13 +0100)
config.php-dist
functions.php
sanity_check.php
templates/digest_template_html.txt

index 6da8eb1f055292aaf545d9de49dcca52cda4fad0..55c0684416b31a2ca6d5e07d34a65d54dd068bdc 100644 (file)
 
        define('DIGEST_FROM_NAME', 'Tiny Tiny RSS');
        define('DIGEST_FROM_ADDRESS', 'noreply@your.domain.dom');
-       // Name and address for sending email digests from.
+       define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
+       // Name, address and subject for sending email digests from.
 
        define('DIGEST_SMTP_HOST', '');
        // SMTP Host to send digests. When blank tt-rss uses
        // These two options enable SMTP authentication when sending
        // digests. Require DIGEST_SMTP_HOST.
 
-       define('CONFIG_VERSION', 10);
+       define('CONFIG_VERSION', 11);
        // Expected config version. Please update this option in config.php
        // if necessary (after migrating all new options from this file).
 
index 2303f54ad299057d19e49ff6cd5abab68928b71f..ab03832b0cb94d3b2d9b3b5e1991885fad07233c 100644 (file)
                                        }
 
                                        $mail->IsHTML(true);
-                                       $mail->Subject = "[tt-rss] New headlines for last 24 hours";
+                                       $mail->Subject = DIGEST_SUBJECT;
                                        $mail->Body = $digest;
                                        $mail->AltBody = $digest_text;
 
                        $tpl->setVariable('ARTICLE_TITLE', $line["title"]);
                        $tpl->setVariable('ARTICLE_LINK', $line["link"]);
                        $tpl->setVariable('ARTICLE_UPDATED', $updated);
-//                     $tpl->setVariable('ARTICLE_EXCERPT', 
-//                             truncate_string(strip_tags($line["excerpt"]), 100));
+                       $tpl->setVariable('ARTICLE_EXCERPT', 
+                               truncate_string(strip_tags($line["excerpt"]), 100));
 
                        $tpl->addBlock('article');
 
index 21fc0380606bf0a074c64a3a34ddef7a9fdec754..b9290b50cb3f6937ab54da41722e1c32579abdfa 100644 (file)
@@ -1,7 +1,7 @@
 <?php
        require_once "functions.php";
 
-       define('EXPECTED_CONFIG_VERSION', 10);
+       define('EXPECTED_CONFIG_VERSION', 11);
        define('SCHEMA_VERSION', 24);
 
        if (!file_exists("config.php")) {
index 4b85f8ba986b8f55ec8841e0540d639bc1c1e61a..b25010d9afc737328dff3d8c335df529cb4553d1 100644 (file)
@@ -1,14 +1,16 @@
 <!-- $BeginBlock digest -->
-<h1>New headlines for last 24 hours, as of ${CUR_DATE} ${CUR_TIME}</h1>
+<h1 style='font-size : x-large'>New headlines for last 24 hours, as of ${CUR_DATE} ${CUR_TIME}</h1>
 <!-- $BeginBlock feed -->
-<h2>${FEED_TITLE}</h2>
+<h2 style='font-size : large'>${FEED_TITLE}</h2>
 
 <ul>
 <!-- $BeginBlock article -->
 <li><a href="${ARTICLE_LINK}">${ARTICLE_TITLE}</a> - ${ARTICLE_UPDATED}
+<p style='color : gray'>${ARTICLE_EXCERPT}</p>
 <!-- $EndBlock article -->
 </ul>
 <!-- $EndBlock feed -->
  
-<p><em>To unsubscribe, visit your configuration options or contact instance owner.</em></p>
+<hr>
+<em>To unsubscribe, visit your configuration options or contact instance owner.</em>
 <!-- $EndBlock digest -->