Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_blogpdf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24806/plugins/serendipity_event_blogpdf
Modified Files:
serendipity_event_blogpdf.php
Log Message:
Merge from 'branch-smarty' to HEAD.
Index: serendipity_event_blogpdf.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_blogpdf/serendipity_event_blogpdf.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- serendipity_event_blogpdf.php 6 Oct 2004 10:30:47 -0000 1.8
+++ serendipity_event_blogpdf.php 19 Nov 2004 11:05:37 -0000 1.9
@@ -28,7 +28,7 @@
case 'es':
default:
@define('PLUGIN_EVENT_BLOGPDF_NAME', 'Export blog as PDF');
- @define('PLUGIN_EVENT_BLOGPDF_DESC', 'Exports your full blog as a PDF file');
+ @define('PLUGIN_EVENT_BLOGPDF_DESC', 'Allows visitors to download your blog in the PDF format');
@define('PLUGIN_EVENT_BLOGPDF_DOWNLOAD', 'Download this blog as PDF!');
@define('PLUGIN_EVENT_BLOGPDF_PAGE', 'Page');
@define('PLUGIN_EVENT_BLOGPDF_EXPORT', 'Blog Export');
@@ -148,6 +148,9 @@
$propbag->add('name', PLUGIN_EVENT_BLOGPDF_NAME);
$propbag->add('description', PLUGIN_EVENT_BLOGPDF_DESC);
+ $propbag->add('stackable', false);
+ $propbag->add('author', 'Garvin Hicking');
+ $propbag->add('version', '1.0');
$propbag->add('event_hooks', array(
'external_plugin' => true,
'entries_footer' => true,
@@ -171,8 +174,8 @@
case 'frontend_display':
if (isset($serendipity['GET']['id']) && is_numeric($serendipity['GET']['id'])) {
$article_show = true;
- $year = date('Y', $eventData['timestamp']);
- $month = date('m', $eventData['timestamp']);
+ $year = date('Y', serendipity_serverOffsetHour($eventData['timestamp']));
+ $month = date('m', serendipity_serverOffsetHour($eventData['timestamp']));
} else {
break;
}
@@ -196,11 +199,11 @@
}
if (empty($year)) {
- $year = date('Y');
+ $year = date('Y', serendipity_serverOffsetHour());
}
if (empty($month)) {
- $month = date('m');
+ $month = date('m', serendipity_serverOffsetHour());
}
$links[] = '<a href="' . $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/monthpdf_' . $year . $month . '">' . PLUGIN_EVENT_BLOGPDF_VIEW_MONTH . '</a>';
@@ -327,7 +330,7 @@
$posted_by .= implode(', ', $cats);
}
- $posted_by .= ' ' . AT . ' ' . date('H:i', $entry['timestamp']);
+ $posted_by .= ' ' . AT . ' ' . date('H:i', serendipity_serverOffsetHour($entry['timestamp']));
$this->pdf->SetFont('Arial', 'B', 11);
$this->pdf->Write(4, $this->prep_out($entry['title']) . "\n");
@@ -374,7 +377,7 @@
$this->prep_out(
$body . "\n" .
' ' . $name .
- ' ' . ON . ' ' . ucfirst(strftime('%b %e %Y, %H:%M', $comment['timestamp']))
+ ' ' . ON . ' ' . ucfirst(serendipity_strftime('%b %e %Y, %H:%M', $comment['timestamp']))
) . "\n"
);
$this->pdf->Ln();
|