# #
# File: shared/Template/_thread.pm #
# #
-# Authors: Andre Malo <nd@o3media.de>, 2001-04-02 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: convert parsed thread to HTML #
# #
################################################################################
use strict;
+use vars qw(
+ @EXPORT
+);
use Encode::Plain; $Encode::Plain::utf8 = 1;
use Posting::_lib qw(short_hr_time);
use Template;
use Template::_query;
+################################################################################
+#
+# Version check
+#
+# last modified:
+# $Date$ (GMT)
+# by $Author$
+#
+sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'}
+
################################################################################
#
# Export
#
use base qw(Exporter);
-@Template::_thread::EXPORT = qw(html_thread);
+@EXPORT = qw(html_thread);
-### sub html_thread ($$$) ######################################################
+### html_thread () #############################################################
#
# create HTML string
#
$temp -> {subject} => $_ -> {subject},
$temp -> {cat} => $_ -> {cat},
$temp -> {time} => plain(short_hr_time ($_ -> {time})),
- $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}})
+ $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}),
+ $temp -> {tid} => $tid,
+ $temp -> {mid} => $_ -> {mid},
},
$par -> {addParam}
)} .
$temp -> {subject} => $_ -> {subject},
$temp -> {cat} => $_ -> {cat},
$temp -> {time} => plain(short_hr_time ($_ -> {time})),
- $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}})
+ $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}),
+ $temp -> {tid} => $tid,
+ $temp -> {mid} => $_ -> {mid},
},
$par -> {addParam}
)}.
$temp -> {subject} => $_ -> {subject},
$temp -> {cat} => $_ -> {cat},
$temp -> {time} => plain(short_hr_time ($_ -> {time})),
- $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}})
+ $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}),
+ $temp -> {tid} => $tid,
+ $temp -> {mid} => $_ -> {mid},
},
$par -> {addParam}
)}.
$temp -> {subject} => $_ -> {subject},
$temp -> {cat} => $_ -> {cat},
$temp -> {time} => plain(short_hr_time ($_ -> {time})),
- $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}})
+ $temp -> {link} => query_string({$t => $tid, $p => $_ -> {mid}}),
+ $temp -> {tid} => $tid,
+ $temp -> {mid} => $_ -> {mid},
},
$par -> {addParam}
)}.
\$html;
}
-# keep require happy
+# keep 'require' happy
1;
#