Version 1.1-alpha7()
------------------------------------------------------------------------
+ * Added experimental PHP-engine templating support, bypassing
+ Smarty. Work in progress, mostly proof-of-concept. Might
+ be changed completely. Read instructions in the
+ include/template_api.inc.php file. Dedicated to Davey. ;)
+ (garvinhicking)
+
* Support to crop images from within the media database. Pick a
picture in the MDB, go to the property section of that image
and click on the "EDIT" link. (garvinhicking)
global $serendipity, $template_config;
if (!isset($serendipity['smarty'])) {
- @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
- if (!class_exists('Smarty')) {
- require SMARTY_DIR . 'Smarty.class.php';
- }
- $serendipity['smarty'] = new Smarty;
- if ($serendipity['production'] === 'debug') {
- $serendipity['smarty']->force_compile = true;
- $serendipity['smarty']->debugging = true;
- }
- $serendipity['smarty']->template_dir = array(
- $serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'],
- $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default'
- );
- $serendipity['smarty']->compile_dir = $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE;
-
- if (!is_dir($serendipity['smarty']->compile_dir) || !is_writable($serendipity['smarty']->compile_dir)) {
- serendipity_die(sprintf(DIRECTORY_WRITE_ERROR, $serendipity['smarty']->compile_dir));
+ $template_dir = $serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'];
+ if (!defined('IN_serendipity_admin') && file_exists($template_dir . '/template.inc.php')) {
+ // If this file exists, a custom template engine will be loaded.
+ // Beware: Smarty is used in the Admin backend, despite of this.
+ include $template_dir . '/template.inc.php';
+ } else {
+ // Default Smarty Engine will be used
+
+ @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
+ if (!class_exists('Smarty')) {
+ require SMARTY_DIR . 'Smarty.class.php';
+ }
+ $serendipity['smarty'] = new Smarty;
+ if ($serendipity['production'] === 'debug') {
+ $serendipity['smarty']->force_compile = true;
+ $serendipity['smarty']->debugging = true;
+ }
+
+ $serendipity['smarty']->template_dir = array(
+ $template_dir,
+ $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default'
+ );
+ $serendipity['smarty']->compile_dir = $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE;
+
+ if (!is_dir($serendipity['smarty']->compile_dir) || !is_writable($serendipity['smarty']->compile_dir)) {
+ serendipity_die(sprintf(DIRECTORY_WRITE_ERROR, $serendipity['smarty']->compile_dir));
+ }
+
+ $serendipity['smarty']->config_dir = $template_dir;
+ $serendipity['smarty']->secure_dir = array($serendipity['serendipityPath'] . $serendipity['templatePath']);
+ $serendipity['smarty']->security_settings['MODIFIER_FUNCS'] = array('sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat');
+ $serendipity['smarty']->security_settings['ALLOW_CONSTANTS'] = true;
+ $serendipity['smarty']->security = true;
+ $serendipity['smarty']->use_sub_dirs = false;
+ $serendipity['smarty']->compile_check = true;
+ $serendipity['smarty']->compile_id = &$serendipity['template'];
+
+ $serendipity['smarty']->register_modifier('makeFilename', 'serendipity_makeFilename');
+ $serendipity['smarty']->register_modifier('xhtml_target', 'serendipity_xhtml_target');
+ $serendipity['smarty']->register_modifier('emptyPrefix', 'serendipity_emptyPrefix');
+ $serendipity['smarty']->register_modifier('formatTime', 'serendipity_smarty_formatTime');
+ $serendipity['smarty']->register_modifier('serendipity_utf8_encode', 'serendipity_utf8_encode');
+ $serendipity['smarty']->register_modifier('ifRemember', 'serendipity_ifRemember');
+
+ $serendipity['smarty']->register_function('serendipity_printSidebar', 'serendipity_smarty_printSidebar');
+ $serendipity['smarty']->register_function('serendipity_hookPlugin', 'serendipity_smarty_hookPlugin');
+ $serendipity['smarty']->register_function('serendipity_showPlugin', 'serendipity_smarty_showPlugin');
+ $serendipity['smarty']->register_function('serendipity_getFile', 'serendipity_smarty_getFile');
+ $serendipity['smarty']->register_function('serendipity_printComments', 'serendipity_smarty_printComments');
+ $serendipity['smarty']->register_function('serendipity_printTrackbacks', 'serendipity_smarty_printTrackbacks');
+ $serendipity['smarty']->register_function('serendipity_rss_getguid', 'serendipity_smarty_rss_getguid');
+ $serendipity['smarty']->register_function('serendipity_fetchPrintEntries', 'serendipity_smarty_fetchPrintEntries');
+ $serendipity['smarty']->register_function('serendipity_getTotalCount', 'serendipity_smarty_getTotalCount');
+ $serendipity['smarty']->register_function('pickKey', 'serendipity_smarty_pickKey');
+
+ $serendipity['smarty']->register_prefilter('serendipity_replaceSmartyVars');
}
-
- $serendipity['smarty']->config_dir = &$serendipity['smarty']->template_dir[0];
- $serendipity['smarty']->secure_dir = array($serendipity['serendipityPath'] . $serendipity['templatePath']);
- $serendipity['smarty']->security_settings['MODIFIER_FUNCS'] = array('sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat');
- $serendipity['smarty']->security_settings['ALLOW_CONSTANTS'] = true;
- $serendipity['smarty']->security = true;
- $serendipity['smarty']->use_sub_dirs = false;
- $serendipity['smarty']->compile_check = true;
- $serendipity['smarty']->compile_id = &$serendipity['template'];
-
- $serendipity['smarty']->register_modifier('makeFilename', 'serendipity_makeFilename');
- $serendipity['smarty']->register_modifier('xhtml_target', 'serendipity_xhtml_target');
- $serendipity['smarty']->register_modifier('emptyPrefix', 'serendipity_emptyPrefix');
- $serendipity['smarty']->register_modifier('formatTime', 'serendipity_smarty_formatTime');
- $serendipity['smarty']->register_modifier('serendipity_utf8_encode', 'serendipity_utf8_encode');
- $serendipity['smarty']->register_modifier('ifRemember', 'serendipity_ifRemember');
-
- $serendipity['smarty']->register_function('serendipity_printSidebar', 'serendipity_smarty_printSidebar');
- $serendipity['smarty']->register_function('serendipity_hookPlugin', 'serendipity_smarty_hookPlugin');
- $serendipity['smarty']->register_function('serendipity_showPlugin', 'serendipity_smarty_showPlugin');
- $serendipity['smarty']->register_function('serendipity_getFile', 'serendipity_smarty_getFile');
- $serendipity['smarty']->register_function('serendipity_printComments', 'serendipity_smarty_printComments');
- $serendipity['smarty']->register_function('serendipity_printTrackbacks', 'serendipity_smarty_printTrackbacks');
- $serendipity['smarty']->register_function('serendipity_rss_getguid', 'serendipity_smarty_rss_getguid');
- $serendipity['smarty']->register_function('serendipity_fetchPrintEntries', 'serendipity_smarty_fetchPrintEntries');
- $serendipity['smarty']->register_function('serendipity_getTotalCount', 'serendipity_smarty_getTotalCount');
- $serendipity['smarty']->register_function('pickKey', 'serendipity_smarty_pickKey');
-
- $serendipity['smarty']->register_prefilter('serendipity_replaceSmartyVars');
}
if (!isset($serendipity['smarty_raw_mode'])) {
--- /dev/null
+<?php # $Id: plugin_api.inc.php 1228 2006-06-01 11:18:53Z garvinhicking $
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
+# All rights reserved. See LICENSE file for licensing details
+
+/*
+ *@author Garvin Hicking
+ *@state EXPERIMENTAL
+
+ This file provides a basic Smarty emulating layer
+ You can use different template engines than the default Smarty one
+ by putting a "template.inc.php" file into your template directory.
+ It should look something like this:
+
+ <?php
+ include_once S9Y_INCLUDE_PATH . 'include/template_api.inc.php';
+ $GLOBALS['template'] = new serendipity_smarty_emulator();
+ $GLOBALS['serendipity']['smarty'] =& $GLOBALS['template'];
+ ?>
+
+ You could of course also use inherited different template classes. It is important
+ that your own template object contains method declarations like the class below
+ for full interoperability to Serendipity templates. It is important that
+ you assign a reference copy of your template object to the $serendipity['smarty']
+ object for backwards compatibility.
+
+ All variables that are assigned from this class to your templates/.php files
+ will be put into $GLOBALS['tpl'].
+
+ Since the scope of includes can vary, you'll need to use $GLOBALS['tpl'] instead
+ of just $tpl in some cases. Thus it's recommended to always use the $GLOBALS['tpl']
+ way. Also it's safer to use $GLOBALS['serendipity'] / $GLOBALS['template'] in most
+ cases because of the same reason.
+
+ Instead of Smarty $CONST.xxx constants you can use the usual 'xxx' constant access
+ method by PHP.
+
+ You can use any Smarty template file to construct your custom PHP template. You
+ just need to do this:
+
+ - Replace '{$variable}' calls with '<?= $GLOBALS['tpl']['variable'] ?>'.
+
+ - Replace '{$variable|XXX}' smarty modifiers with corresponding PHP code, like:
+ '<?= substr($GLOBALS['tpl']['XXX'], 0, 25) ?>'
+ would correspond with
+ '{$variable|truncate:'...':25}'
+ - Replace '{if CONDITION} ... {/if}' checks with '<?php if (CONDITION): ?> ... <?php endif; ?>'
+
+ - Replace '{foreach} ... {/foreach}' calls correspondingly.
+
+ - Replace '{smartycommand param1=x param2=x}' function calls with
+ '<?php $GLOBALS['template']->call('smartycommand', array('param1' => 'x', 'param2' => 'x')); ?>' ones
+
+ - NOTA BENE: Be aware that many smarty function calls are just wrappers to Serendipity API
+ calls. To save grandma's performance pennies you should search the original Serendipity API
+ function before calling them with the $GLOBALS['template']->call() wrapper! This costs dearly.
+
+ The Serendipity Admin backend will still make use of Smarty. It rocks.
+
+ Know your PHP before you think about using this. :-)
+*/
+
+class serendipity_smarty_emulator {
+ var $compile_dir = '/tmp'; // Not used
+ var $security_settings = array(); // Not used
+
+/**
+ * Assign one or multiple template variable
+ * @TODO: Why can't this function accept references. This sucks.
+ *
+ * @param mixed Either a variable name, or an array of variables
+ * @param mixed Either null or the variable content.
+ * @access public
+ * @return null
+ */
+ function assign($tpl_var, $value = null) {
+ if (is_array($tpl_var)) {
+ foreach ($tpl_var as $key => $val) {
+ if ($key != '') {
+ $GLOBALS['tpl'][$key] = $tpl_var[$key];
+ }
+ }
+ } else {
+ $GLOBALS['tpl'][$tpl_var] = $value;
+ }
+
+ return true;
+ }
+
+/**
+ * Helper function to call a 'serendipity_smarty_xx' function with less parameters.
+ *
+ * @param string Function name to call.
+ * @param array Array of parameters
+ * @access public
+ * @return string Output
+ */
+ function call($funcname, $params) {
+ if (function_exists('serendipity_smarty_' . $funcname)) {
+ return call_user_func('serendipity_smarty_' . $funcname, $params, $this);
+ } elseif (function_exists('serendipity_' . $funcname)) {
+ return call_user_func('serendipity_' . $funcname, $params, $this);
+ } elseif (function_exists($funcname)) {
+ return call_user_func($funcname, $params, $this);
+ } else {
+ return "ERROR: " . htmlspecialchars($funcname) . " NOT FOUND.<br />\n";
+ }
+ }
+
+/**
+ * Outputs a smarty template.
+ *
+ * @param string Full path to template file
+ * @access public
+ * @return boolean
+ */
+ function display($resource_name) {
+ return include $resource_name;
+ }
+
+/**
+ * Triggers a template error
+ *
+ * @param string Error message
+ * @access public
+ * @return null
+ */
+ function trigger_error($txt) {
+ echo '<b>SMARTY EMULATOR ERROR: ' . $txt;
+ }
+
+/**
+ * Echoes a default value. Append multiple values and will output the first non empty value.
+ *
+ * @param mixed The value to emit.
+ * @access public
+ * @return null
+ */
+ function getdefault() {
+ $vars = func_get_args();
+ foreach($vars as $title) {
+ if (!empty($GLOBALS['tpl'][$title])) {
+ return $GLOBALS['tpl'][$title];
+ }
+ }
+
+ return false;
+ }
+
+/**
+ * Parses a template file into another.
+ *
+ * @param string The path to the resource name (prefixed with 'file:' usually)
+ * @param string The Cache ID (not used)
+ * @param string The Compile ID (not used)
+ * @param boolean Output data (true) or return it (false)?
+ * @access public
+ * @return null
+ */
+ function &fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) {
+ $resource_name = str_replace('file:', '', $resource_name);
+
+ if (!$display) {
+ ob_start();
+ }
+
+ include $resource_name;
+
+ if (!$display) {
+ $out = ob_get_contents();
+ ob_end_clean();
+ return $out;
+ } else {
+ return true;
+ }
+ }
+}
+
--- /dev/null
+<div id="serendipityCommentFormC" class="serendipityCommentForm">
+ <div id="serendipity_replyform_0"></div>
+ <a id="serendipity_CommentForm"></a>
+ <form id="serendipity_comment" action="<?= $GLOBALS['tpl']['commentform_action'] ?>#feedback" method="post">
+ <div><input type="hidden" name="serendipity[entry_id]" value="<?= $GLOBALS['tpl']['commentform_id'] ?>" /></div>
+ <table border="0" width="100%" cellpadding="3">
+ <tr>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_name"><?= NAME ?></label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_name" name="serendipity[name]" value="<?= $GLOBALS['tpl']['commentform_name'] ?>" size="30" /></td>
+ </tr>
+
+ <tr>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_email"><?= EMAIL ?></label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_email" name="serendipity[email]" value="<?= $GLOBALS['tpl']['commentform_email'] ?>" /></td>
+ </tr>
+
+ <tr>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_url"><?= HOMEPAGE ?></label></td>
+ <td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_url" name="serendipity[url]" value="<?= $GLOBALS['tpl']['commentform_url'] ?>" /></td>
+ </tr>
+
+ <tr>
+ <td class="serendipity_commentsLabel"><label for="serendipity_replyTo"><?= IN_REPLY_TO ?></label></td>
+ <td class="serendipity_commentsValue"><?= $GLOBALS['tpl']['commentform_replyTo'] ?></td>
+ </tr>
+
+ <tr>
+ <td class="serendipity_commentsLabel"><label for="serendipity_commentform_comment"><?= COMMENT ?></label></td>
+ <td class="serendipity_commentsValue">
+ <textarea rows="10" cols="40" id="serendipity_commentform_comment" name="serendipity[comment]"><?= $GLOBALS['tpl']['commentform_data'] ?></textarea><br />
+ {serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
+ </td>
+ </tr>
+
+{if $is_commentform_showToolbar}
+ <tr>
+ <td> </td>
+ <td class="serendipity_commentsLabel">
+ <input id="checkbox_remember" type="checkbox" name="serendipity[remember]" <?= $GLOBALS['tpl']['commentform_remember'] ?> /><label for="checkbox_remember"><?= REMEMBER_INFO ?></label>
+ {if $is_allowSubscriptions}
+ <br />
+ <input id="checkbox_subscribe" type="checkbox" name="serendipity[subscribe]" <?= $GLOBALS['tpl']['commentform_subscribe'] ?> /><label for="checkbox_subscribe"><?= SUBSCRIBE_TO_THIS_ENTRY ?></label>
+ <?php endif; ?>
+ </td>
+ </tr>
+<?php endif; ?>
+
+{if $is_moderate_comments}
+ <tr>
+ <td class="serendipity_commentsValue serendipity_msg_important" colspan="2"><?= COMMENTS_WILL_BE_MODERATED ?></td>
+ </tr>
+<?php endif; ?>
+
+ <tr>
+ <td> </td>
+ <td><input type="submit" name="serendipity[submit]" value="<?= SUBMIT_COMMENT ?>" /> <input type="submit" id="serendipity_preview" name="serendipity[preview]" value="<?= PREVIEW ?>" /></td>
+ </tr>
+ </table>
+ </form>
+</div>
--- /dev/null
+{if $is_xhtml}
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?php else: ?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<?php endif; ?>
+
+<html>
+<head>
+ <title>{$head_title|@default:$blogTitle} {if $head_subtitle} - <?= $GLOBALS['tpl']['head_subtitle'] ?><?php endif; ?></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=<?= $GLOBALS['tpl']['head_charset'] ?>" />
+ <meta name="Powered-By" content="Serendipity v.<?= $GLOBALS['tpl']['head_version'] ?>" />
+ <link rel="stylesheet" type="text/css" href="<?= $GLOBALS['tpl']['serendipityHTTPPath'] ?>serendipity.css.php" />
+ <link rel="alternate" type="application/rss+xml" title="<?= $GLOBALS['tpl']['blogTitle'] ?> RSS feed" href="<?= $GLOBALS['tpl']['serendipityBaseURL'] ?><?= $GLOBALS['tpl']['serendipityRewritePrefix'] ?>feeds/index.rss2" />
+ <link rel="alternate" type="application/x.atom+xml" title="<?= $GLOBALS['tpl']['blogTitle'] ?> Atom feed" href="<?= $GLOBALS['tpl']['serendipityBaseURL'] ?><?= $GLOBALS['tpl']['serendipityRewritePrefix'] ?>feeds/atom.xml" />
+</head>
+
+<body class="s9y_wrap" id="serendipity_comment_page">
+
+{if $is_comment_added}
+
+ <div class="popup_comments_message popup_comments_message_added"><?= COMMENT_ADDED ?><?= $GLOBALS['tpl']['comment_string']['0'] ?><a href="<?= $GLOBALS['tpl']['comment_url'] ?>"><?= $GLOBALS['tpl']['comment_string']['1'] ?></a><?= $GLOBALS['tpl']['comment_string']['2'] ?><a href="#" onclick="self.close()"><?= $GLOBALS['tpl']['comment_string']['3'] ?></a><?= $GLOBALS['tpl']['comment_string']['4'] ?></div>
+
+{elseif $is_comment_notadded}
+
+ <div class="popup_comments_message popup_comments_message_notadded"><?= COMMENT_NOT_ADDED ?><?= $GLOBALS['tpl']['comment_string']['0'] ?><a href="<?= $GLOBALS['tpl']['comment_url'] ?>"><?= $GLOBALS['tpl']['comment_string']['1'] ?></a><?= $GLOBALS['tpl']['comment_string']['2'] ?><a href="#" onclick="self.close()"><?= $GLOBALS['tpl']['comment_string']['3'] ?></a><?= $GLOBALS['tpl']['comment_string']['4'] ?></div>
+
+{elseif $is_comment_empty}
+
+ <div class="popup_comments_message popup_comments_message_empty"><?= $GLOBALS['tpl']['comment_string']['0'] ?><a href="#" onclick="history.go(-1)"><?= $GLOBALS['tpl']['comment_string']['1'] ?></a></div>
+
+{elseif $is_showtrackbacks}
+
+ <div class="serendipity_commentsTitle"><?= TRACKBACKS ?></div>
+ <dl>
+ <dt><strong><?= TRACKBACK_SPECIFIC ?>:</strong></dt>
+ <dd><a rel="nofollow" href="<?= $GLOBALS['tpl']['comment_url'] ?>"><?= $GLOBALS['tpl']['comment_url'] ?></a></dd>
+
+ <dt><strong><?= DIRECT_LINK ?>:</strong></dt>
+ <dd><a href="<?= $GLOBALS['tpl']['comment_entryurl'] ?>"><?= $GLOBALS['tpl']['comment_entryurl'] ?></a></dd>
+ </dl>
+
+ {serendipity_printTrackbacks entry=$entry_id}
+
+{elseif $is_showcomments}
+
+ <div class="serendipity_commentsTitle"><?= COMMENTS ?></div>
+
+ {serendipity_printComments entry=$entry_id}
+ {if $is_comment_allowed}
+ <div class="serendipity_commentsTitle"><?= ADD_COMMENT ?></div>
+ <?= $GLOBALS['tpl']['COMMENTFORM'] ?>
+ <?php else: ?>
+ <div class="serendipity_center serendipity_msg_important"><?= COMMENTS_CLOSED ?></div>
+ <?php endif; ?>
+
+<?php endif; ?>
+
+</body>
+</html>
--- /dev/null
+{foreach from=$comments item=comment name="comments"}
+ <a id="c<?= $comment['id'] ?>"></a>
+ <div id="serendipity_comment_<?= $comment['id'] ?>" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self<?php endif; ?>{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: <?= $comment['depth']*20 ?>px">
+ <div class="serendipity_commentBody">
+ {if $comment.body == 'COMMENT_DELETED'}
+ <?= COMMENT_IS_DELETED ?>
+ <?php else: ?>
+ <?= $comment['body'] ?>
+ <?php endif; ?>
+ </div>
+ <div class="serendipity_comment_source">
+ <a class="comment_source_trace" href="#c<?= $comment['id'] ?>">#<?= $comment['trace'] ?></a>
+ <span class="comment_source_author">
+ {if $comment.email}
+ <a href="mailto:<?= $comment['email'] ?>">{$comment.author|@default:$CONST.ANONYMOUS}</a>
+ <?php else: ?>
+ {$comment.author|@default:$CONST.ANONYMOUS}
+ <?php endif; ?>
+ </span>
+ {if $comment.url}
+ (<a class="comment_source_url" href="<?= $comment['url'] ?>" title="{$comment.url|@escape}"><?= HOMEPAGE ?></a>)
+ <?php endif; ?>
+ <?= ON ?>
+ <span class="comment_source_date">{$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT}</span>
+
+ {if $entry.is_entry_owner}
+ (<a class="comment_source_ownerlink" href="<?= $comment['link_delete'] ?>" onclick="return confirm('<?= COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author ?>');"><?= DELETE ?></a>)
+ <?php endif; ?>
+ {if $entry.allow_comments AND $comment.body != 'COMMENT_DELETED'}
+ (<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_<?= $comment['id'] ?>" onclick="document.getElementById('serendipity_replyTo').value='<?= $comment['id'] ?>'; <?= $GLOBALS['tpl']['comment_onchange'] ?>"><?= REPLY ?></a>)
+ <div id="serendipity_replyform_<?= $comment['id'] ?>"></div>
+ <?php endif; ?>
+ </div>
+ </div>
+{foreachelse}
+ <div class="serendipity_center nocomments"><?= NO_COMMENTS ?></div>
+<?php endforeach; ?>
--- /dev/null
+<!-- CONTENT START -->
+
+<?php if ($GLOBALS['tpl']['searchresult_tooShort']): ?>
+ <h3 class="serendipity_date"><?= QUICKSEARCH ?></h3>
+ <div class="serendipity_search serendipity_search_tooshort"><?= $GLOBALS['tpl']['content_message']; ?></div>
+<?php elseif ($GLOBALS['tpl']['searchresult_error']): ?>
+ <h3 class="serendipity_date"><?= QUICKSEARCH ?></h3>
+ <div class="serendipity_search serendipity_search_error"><?= $GLOBALS['tpl']['content_message']; ?></div>
+<?php elseif ($GLOBALS['tpl']['searchresult_noEntries']): ?>
+ <h3 class="serendipity_date"><?= QUICKSEARCH ?></h3>
+ <div class="serendipity_search serendipity_search_noentries"><?= $GLOBALS['tpl']['content_message']; ?></div>
+<?php elseif ($GLOBALS['tpl']['searchresult_results']): ?>
+ <h3 class="serendipity_date"><?= QUICKSEARCH ?></h3>
+ <div class="serendipity_search serendipity_search_results"><?= $GLOBALS['tpl']['content_message']; ?></div>
+<?php else: ?>
+ <div class="serendipity_content_message"><?= $GLOBALS['tpl']['content_message']; ?></div>
+<?php endif; ?>
+
+<?= $GLOBALS['tpl']['ENTRIES']; ?>
+<?= $GLOBALS['tpl']['ARCHIVES']; ?>
+
+<!-- CONTENT END -->
--- /dev/null
+<!-- ENTRIES START -->
+ <?php serendipity_plugin_api::hook_event('entries_header', $GLOBALS['tpl']['entry_id']); ?>
+
+ <?php if (count($GLOBALS['tpl']['entries']) < 1): ?>
+ <?= NO_ENTRIES_TO_PRINT ?>
+ <?php endif; ?>
+
+ <?php foreach($GLOBALS['tpl']['entries'] AS $dategroup): ?>
+ <div class="serendipity_Entry_Date">
+ <?php if ($dategroup['is_sticky']): ?>
+ <h3 class="serendipity_date"><?= STICKY_POSTINGS ?></h3>
+ <?php else: ?>
+ <h3 class="serendipity_date"><?= serendipity_formatTime(DATE_FORMAT_ENTRY, $dategroup['date']); ?></h3>
+ <?php endif; ?>
+
+ <?php foreach($dategroup['entries'] AS $entry): ?>
+ <h4 class="serendipity_title"><a href="<?= $entry['link'] ?>"><?= $entry['title'] ?></a></h4>
+
+ <div class="serendipity_entry serendipity_entry_author_<?= serendipity_makeFilename($entry['author']); ?> <?php if ($entry['is_entry_owner']): ?>serendipity_entry_author_self<?php endif; ?>">
+ <?php if ($entry['categories']): ?>
+ <span class="serendipity_entryIcon">
+ <?php foreach($entry['categories'] AS $entry_category): ?>
+ <?php if ($entry_category.category_icon): ?>
+ <a href="<?= $entry_category['category_link'] ?>"><img class="serendipity_entryIcon" title="<?= htmlspecialchars($entry_category['category_name']) ?> <?= $entry_category['category_description'] ?>" alt="<?= htmlspecialchars($entry_category['category_name']) ?>" src="<?= $entry_category['category_icon'] ?>" /></a>
+ <?php endif; ?>
+ <?php endforeach; ?>
+ </span>
+ <?php endif; ?>
+
+ <div class="serendipity_entry_body">
+ <?= $entry['body'] ?>
+ </div>
+
+ <?php if ($entry['is_extended']): ?>
+ <div class="serendipity_entry_extended"><a id="extended"></a><?= $entry['extended'] ?></div>
+ <?php endif; ?>
+
+ <?php if ($entry['has_extended'] AND !$GLOBALS['tpl']['is_single_entry'] AND !$entry['is_extended']): ?>
+ <br /><a href="<?= $entry['link'] ?>#extended"><?php printf(VIEW_EXTENDED_ENTRY, $entry['title']) ?></a><br /><br />
+ <?php endif; ?>
+
+ <div class='serendipity_entryFooter'>
+ <?= POSTED_BY ?> <a href="<?= $entry['link_author'] ?>"><?= $entry['author'] ?></a>
+ <?php if ($entry['categories']): ?>
+ <?= IN ?> <?php foreach($entry['categories'] AS $entry_category): ?><a href="<?= $entry_category['category_link'] ?>"><?= htmlspecialchars($entry_category['category_name']); ?></a>, <?php endforeach; ?>
+ <?php endif; ?>
+
+ <?php if ($dategroup['is_sticky']): ?>
+ <?= ON ?>
+ <?php else: ?>
+ <?= AT ?>
+ <?php endif; ?> <a href="<?= $entry['link'] ?>"><?php if ($dategroup['is_sticky']): ?><?= serendipity_formatTime(DATE_FORMAT_ENTRY, $entry['timestamp']); ?> <?php endif; ?><?= serendipity_formatTime('%H:%M', $entry['timestamp']); ?></a>
+
+ <?php if ($entry['has_comments']): ?>
+ <?php if ($GLOBALS['tpl']['use_popups']): ?>
+ | <a href="<?= $entry['link_popup_comments'] ?>" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;"><?= $entry['label_comments'] ?> (<?= $entry['comments'] ?>)</a>
+ <?php else: ?>
+ | <a href="<?= $entry['link'] ?>#comments"><?= $entry['label_comments'] ?> (<?= $entry['comments'] ?>)</a>
+ <?php endif; ?>
+ <?php endif; ?>
+
+ <?php if ($entry['has_trackbacks']): ?>
+ <?php if ($GLOBALS['tpl']['use_popups']): ?>
+ | <a href="<?= $entry['link_popup_trackbacks'] ?>" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;"><?= $entry['label_trackbacks'] ?> (<?= $entry['trackbacks'] ?>)</a>
+ <?php else: ?>
+ | <a href="<?= $entry['link'] ?>#trackbacks"><?= $entry['label_trackbacks'] ?> (<?= $entry['trackbacks'] ?>)</a>
+ <?php endif; ?>
+ <?php endif; ?>
+
+ <?php if ($entry['is_entry_owner'] AND !$GLOBALS['tpl']['is_preview']): ?>
+ | <a href="<?= $entry['link_edit'] ?>"><?= EDIT_ENTRY; ?></a>
+ <?php endif; ?>
+
+ <?= $entry['add_footer'] ?>
+ </div>
+ </div>
+ <!--
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <rdf:Description
+ rdf:about="<?= $entry['link_rdf'] ?>"
+ trackback:ping="<?= $entry['link_trackback'] ?>"
+ dc:title="<?= $GLOBALS['template']->getdefault($entry['title_rdf'], $entry['title']) ?>"
+ dc:identifier="<?= $entry['rdf_ident'] ?>" />
+ </rdf:RDF>
+ -->
+ <?= $entry['plugin_display_dat'] ?>
+
+ <?php if ($GLOBALS['tpl']['is_single_entry'] AND !$GLOBALS['tpl']['use_popups'] AND !$GLOBALS['tpl']['is_preview']): ?>
+ <?php if (defined('DATA_UNSUBSCRIBED')): ?>
+ <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_UNSUBSCRIBED, UNSUBSCRIBE_OK) ?></div><br />
+ <?php endif; ?>
+
+ <?php if (defined('DATA_TRACKBACK_DELETED')): ?>
+ <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_TRACKBACK_DELETED, TRACKBACK_DELETED) ?></div><br />
+ <?php endif; ?>
+
+ <?php if (defined('DATA_TRACKBACK_APPROVED')): ?>
+ <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_TRACKBACK_APPROVED, TRACKBACK_APPROVED) ?></div><br />
+ <?php endif; ?>
+
+ <?php if (defined('DATA_COMMENT_DELETED')): ?>
+ <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_COMMENT_DELETED, COMMENT_DELETED) ?></div><br />
+ <?php endif; ?>
+
+ <?php if (defined('DATA_COMMENT_APPROVED')): ?>
+ <br /><div class="serendipity_center serendipity_msg_notice"><? printf(DATA_COMMENT_APPROVED, COMMENT_APPROVED) ?></div><br />
+ <?php endif; ?>
+
+ <div class="serendipity_comments serendipity_section_trackbacks">
+ <br />
+ <a id="trackbacks"></a>
+ <div class="serendipity_commentsTitle"><?= TRACKBACKS ?></div>
+ <div class="serendipity_center">
+ <a rel="nofollow" style="font-weight: normal" href="<?= $entry['link_trackback'] ?>" onclick="alert('<?= htmlspecialchars(TRACKBACK_SPECIFIC_ON_CLICK) ?>'); return false;" title="<?= htmlspecialchars(TRACKBACK_SPECIFIC_ON_CLICK) ?>"><?= TRACKBACK_SPECIFIC; ?></a>
+ </div>
+ <br />
+ <?php echo serendipity_printTrackbacks(serendipity_fetchTrackbacks($entry['id'])) ?>
+ </div>
+ <?php endif; ?>
+
+ <?php if ($GLOBALS['tpl']['is_single_entry'] AND !$GLOBALS['tpl']['is_preview']): ?>
+ <div class="serendipity_comments serendipity_section_comments">
+ <br />
+ <a id="comments"></a>
+ <div class="serendipity_commentsTitle"><?= COMMENTS; ?></div>
+ <div class="serendipity_center"><?= DISPLAY_COMMENTS_AS; ?>
+ <?php if ($entry['viewmode'] == VIEWMODE_LINEAR): ?>
+ (<?= COMMENTS_VIEWMODE_LINEAR; ?> | <a href="<?= $entry['link_viewmode_threaded'] ?>#comments" rel="nofollow"><?= COMMENTS_VIEWMODE_THREADED; ?></a>)
+ <?php else: ?>
+ (<a rel="nofollow" href="<?= $entry['link_viewmode_linear'] ?>#comments"><?= COMMENTS_VIEWMODE_LINEAR; ?></a> | <?= COMMENTS_VIEWMODE_THREADED; ?>)
+ <?php endif; ?>
+ </div>
+ <br />
+ <?php $GLOBALS['template']->call('printComments', array('entry' => $entry['id'], 'mode' => $entry['viewmode'])); ?>
+
+ <?php if ($entry['is_entry_owner']): ?>
+ <?php if ($entry['allow_comments']): ?>
+ <div class="serendipity_center">(<a href="<?= $entry['link_deny_comments'] ?>"><?= COMMENTS_DISABLE ?></a>)</div>
+ <?php else: ?>
+ <div class="serendipity_center">(<a href="<?= $entry['link_allow_comments'] ?>"><?= COMMENTS_ENABLE ?></a>)</div>
+ <?php endif; ?>
+ <?php endif; ?>
+ <a id="feedback"></a>
+
+ <?php foreach($GLOBALS['tpl']['comments_messagestack'] AS $message): ?>
+ <div class="serendipity_center serendipity_msg_important"><?= $GLOBALS['tpl']['message'] ?></div>
+ <?php endforeach; ?>
+
+ <?php if ($GLOBALS['tpl']['is_comment_added']): ?>
+
+ <br />
+ <div class="serendipity_center serendipity_msg_notice"><?= COMMENT_ADDED; ?></div>
+
+ <?php elseif ($GLOBALS['tpl']['is_comment_moderate']): ?>
+
+ <br />
+ <div class="serendipity_center serendipity_msg_notice"><?= COMMENT_ADDED; ?><br /><?= THIS_COMMENT_NEEDS_REVIEW ?></div>
+
+ <?php elseif ($entry['allow_comments']): ?>
+
+ <br />
+ <div class="serendipity_center serendipity_msg_important"><?= COMMENTS_CLOSED; ?></div>
+
+ <?php else: ?>
+
+ <br />
+ <div class="serendipity_section_commentform">
+ <div class="serendipity_commentsTitle"><?= ADD_COMMENT; ?></div>
+ <?= $GLOBALS['tpl']['COMMENTFORM']; ?>
+ </div>
+
+ <?php endif; ?>
+ </div>
+ <?php endif; ?>
+
+ <?= $entry['backend_preview'] ?>
+ <?php endforeach; ?>
+ </div>
+ <?php endforeach; ?>
+
+ <div class='serendipity_entryFooter' style="text-align: center">
+ <?php if ($GLOBALS['tpl']['footer_prev_page']): ?>
+ <a href="<?= $GLOBALS['tpl']['footer_prev_page'] ?>">« <?= PREVIOUS_PAGE; ?></a>  
+ <?php endif; ?>
+
+ <?php if ($GLOBALS['tpl']['footer_info']): ?>
+ (<?= $GLOBALS['tpl']['footer_info'] ?>)
+ <?php endif; ?>
+
+ <?php if ($GLOBALS['tpl']['footer_next_page']): ?>
+ <a href="<?= $GLOBALS['tpl']['footer_next_page'] ?>">» <?= NEXT_PAGE; ?></a>
+ <?php endif; ?>
+
+ <?php serendipity_plugin_api::hook_event('entries_footer', $GLOBALS['template']); ?>
+ </div>
+<!-- ENTRIES END -->
--- /dev/null
+{serendipity_hookPlugin hook="entries_header"}
+<h3 class="serendipity_date"><?= ARCHIVES ?></h3>
+{foreach from=$archives item="archive"}
+<table id="archives_listing" cellspacing="4" cellpadding="4" border="0">
+ <tr class="archives_header">
+ <td class="archives_header" colspan="4"><h2><?= $archive['year'] ?></h2></td>
+ </tr>
+ {foreach from=$archive.months item="month"}
+ <tr class="archives_row">
+ <td class="archives_graph" width="100"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000"></td>
+ <td class="archives_date">{$month.date|@formatTime:"%B"}</td>
+ <td class="archives_count"><?= $month['entry_count'] ?> <?= ENTRIES ?></td>
+ <td class="archives_count_link">({if $month.entry_count}<a href="<?= $month['link'] ?>"><?php endif; ?><?= VIEW_FULL ?>{if $month.entry_count}</a><?php endif; ?>)</td>
+ <td class="archives_link">({if $month.entry_count}<a href="<?= $month['link_summary'] ?>"><?php endif; ?><?= VIEW_TOPICS ?>{if $month.entry_count}</a><?php endif; ?>)</td>
+ </tr>
+ <?php endforeach; ?>
+</table>
+<?php endforeach; ?>
+<div class="serendipity_pageFooter" style="text-align: center">
+{serendipity_hookPlugin hook="entries_footer"}</div>
--- /dev/null
+{serendipity_hookPlugin hook="entries_header"}
+<div class='serendipity_date'><?= TOPICS_OF ?> {$dateRange.0|@formatTime:"%B, %Y"}</div>
+
+<div class="serendipity_entry">
+ <ul>
+ {foreach from=$entries item="entries"}
+ {foreach from=$entries.entries item="entry"}
+ <li><a href="<?= $entry['link'] ?>"><?= $entry['title'] ?></a>
+ <div class="summary_posted_by"><?= POSTED_BY ?> <span class="posted_by_author"><?= $entry['author'] ?></span> <?= ON ?> <span class="posted_by_date">{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</span></div></li>
+ <?php endforeach; ?>
+ <?php endforeach; ?>
+ </ul>
+</div>
+<div class='serendipity_entryFooter' style="text-align: center">
+{serendipity_hookPlugin hook="entries_footer"}</div>
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+
+<rss version="0.91" <?= $GLOBALS['tpl']['namespace_display_dat'] ?>>
+<channel>
+<title><?= $GLOBALS['tpl']['metadata']['title'] ?></title>
+<link><?= $GLOBALS['tpl']['metadata']['link'] ?></link>
+<description><?= $GLOBALS['tpl']['metadata']['description'] ?></description>
+<language><?= $GLOBALS['tpl']['metadata']['language'] ?></language>
+<?= $GLOBALS['tpl']['metadata']['additional_fields']['image'] ?>
+
+{foreach from=$entries item="entry"}
+<item>
+ <title><?= $entry['feed_title'] ?></title>
+ <link><?= $entry['feed_entryLink'] ?></link>
+
+{if !empty($entry.body)}
+ <description>
+ {$entry.feed_body|@escape} {$entry.feed_ext|@escape}
+ </description>
+{/if}
+</item>
+{/foreach}
+
+</channel>
+</rss>
+
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+
+<rdf:RDF <?= $GLOBALS['tpl']['namespace_display_dat'] ?>
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:admin="http://webns.net/mvcb/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/"
+ xmlns="http://my.netscape.com/rdf/simple/0.9/">
+<channel>
+ <title><?= $GLOBALS['tpl']['metadata']['title'] ?></title>
+ <link><?= $GLOBALS['tpl']['metadata']['link'] ?></link>
+ <description><?= $GLOBALS['tpl']['metadata']['description'] ?></description>
+ <dc:language><?= $GLOBALS['tpl']['metadata']['language'] ?></dc:language>
+{if $metadata.showMail}
+ <admin:errorReportsTo rdf:resource="mailto:<?= $GLOBALS['tpl']['metadata']['email'] ?>" />
+{/if}
+
+ <?= $GLOBALS['tpl']['metadata']['additional_fields']['image_rss10_channel'] ?>
+
+ <items>
+ <rdf:Seq>
+{foreach from=$entries item="entry"}
+ <rdf:li resource="{serendipity_rss_getguid entry=$entry is_comments=$is_comments}" />
+{/foreach}
+ </rdf:Seq>
+ </items>
+</channel>
+
+<?= $GLOBALS['tpl']['metadata']['additional_fields']['image_rss10_rdf'] ?>
+<?= $GLOBALS['tpl']['once_display_dat'] ?>
+
+{foreach from=$entries item="entry"}
+<item rdf:about="<?= $entry['feed_guid'] ?>">
+ <title><?= $entry['feed_title'] ?></title>
+ <link><?= $entry['feed_entryLink'] ?></link>
+{if !empty($entry.body)}
+ <description>
+ {$entry.feed_body|@escape} {$entry.feed_ext|@escape}
+ </description>
+{/if}
+
+ <dc:publisher><?= $entry['feed_blogTitle'] ?></dc:publisher>
+ <dc:creator><?= $entry['feed_email'] ?> (<?= $entry['feed_author'] ?>)</dc:creator>
+ <dc:subject>
+ {foreach from=$entry.categories item="cat"}<?= $cat['feed_category_name'] ?>, {/foreach}</dc:subject>
+ <dc:date><?= $entry['feed_timestamp'] ?></dc:date>
+ <wfw:comment><?= $GLOBALS['tpl']['serendipityBaseURL'] ?>wfwcomment.php?cid=<?= $entry['feed_id'] ?></wfw:comment>
+{if !$is_comments}
+ <slash:comments><?= $entry['comments'] ?></slash:comments>
+ <wfw:commentRss><?= $GLOBALS['tpl']['serendipityBaseURL'] ?>rss.php?version=<?= $GLOBALS['tpl']['metadata']['version'] ?>&type=comments&cid=<?= $entry['feed_id'] ?></wfw:commentRss>
+{/if}
+ <?= $entry['per_entry_display_dat'] ?>
+</item>
+{/foreach}
+
+</rdf:RDF>
+
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+
+<rss version="2.0"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:admin="http://webns.net/mvcb/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ {$namespace_display_dat}>
+<channel>
+ <title>{$metadata.title}</title>
+ <link>{$metadata.link}</link>
+ <description>{$metadata.description}</description>
+ <dc:language>{$metadata.language}</dc:language>
+{if $metadata.showMail}
+ <admin:errorReportsTo rdf:resource="mailto:{$metadata.email}" />
+{/if}
+ <generator>Serendipity {$serendipityVersion} - http://www.s9y.org/</generator>
+ {$metadata.additional_fields.channel}
+ {$metadata.additional_fields.image}
+
+{foreach from=$entries item="entry"}
+<item>
+ <title>{$entry.feed_title}</title>
+ <link>{$entry.feed_entryLink}</link>
+ {foreach from=$entry.categories item="cat"}
+ <category>{$cat.feed_category_name}</category>
+ {/foreach}
+
+ <comments>{$entry.feed_entryLink}#comments</comments>
+ <wfw:comment>{$serendipityBaseURL}wfwcomment.php?cid={$entry.feed_id}</wfw:comment>
+
+{if !$is_comments}
+ <slash:comments>{$entry.comments}</slash:comments>
+ <wfw:commentRss>{$serendipityBaseURL}rss.php?version={$metadata.version}&type=comments&cid={$entry.feed_id}</wfw:commentRss>
+{/if}
+
+ <author>{$entry.feed_email} ({$entry.feed_author})</author>
+{if !empty($entry.body)}
+ <content:encoded>
+ {$entry.feed_body|@escape} {$entry.feed_ext|@escape}
+ </content:encoded>
+{/if}
+
+ <pubDate>{$entry.feed_timestamp_r}</pubDate>
+ <guid isPermaLink="false">{$entry.feed_guid}</guid>
+ {$entry.per_entry_display_dat}
+</item>
+{/foreach}
+
+</channel>
+</rss>
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<?xml-stylesheet href="{serendipity_getFile file='atom.css'}" type="text/css" ?>
+
+<feed version="0.3" {$namespace_display_dat}
+ xmlns="http://purl.org/atom/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:admin="http://webns.net/mvcb/"
+ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/">
+ <link href="{$serendipityBaseURL}rss.php?version=atom0.3" rel="service.feed" title="{$metadata.title}" type="application/x.atom+xml" />
+ <link href="{$serendipityBaseURL}" rel="alternate" title="{$metadata.title}" type="text/html" />
+ <link href="{$serendipityBaseURL}rss.php?version=2.0" rel="alternate" title="{$metadata.title}" type="application/rss+xml" />
+ <title mode="escaped" type="text/html">{$metadata.title}</title>
+ <tagline mode="escaped" type="text/html">{$metadata.description}</tagline>
+ <id>{$metadata.link}</id>
+ <modified>{$last_modified}</modified>
+ <generator url="http://www.s9y.org/" version="{$serendipityVersion}">Serendipity {$serendipityVersion} - http://www.s9y.org/</generator>
+ <dc:language>{$metadata.language}</dc:language>
+{if $metadata.showMail}
+ <admin:errorReportsTo rdf:resource="mailto:{$metadata.email}" />
+{/if}
+ <info mode="xml" type="text/html">
+ <div xmlns="http://www.w3.org/1999/xhtml">You are viewing an ATOM formatted XML site feed. Usually this file is inteded to be viewed in an aggregator or syndication software. If you want to know more about ATOM, please visist <a href="http://atomenabled.org/">Atomenabled.org</a></div>
+ </info>
+
+{foreach from=$entries item="entry"}
+ <entry>
+ <link href="{$entry.feed_entryLink}" rel="alternate" title="{$entry.feed_title}" type="text/html" />
+ <author>
+ <name>{$entry.feed_author}</name>
+ <email>{$entry.feed_email}</email>
+ </author>
+
+ <issued>{$entry.feed_timestamp}</issued>
+ <created>{$entry.feed_timestamp}</created>
+ <modified>{$entry.feed_last_modified}</modified>
+ <wfw:comment>{$serendipityBaseURL}wfwcomment.php?cid={$entry.feed_id}</wfw:comment>
+{if !$is_comments}
+ <slash:comments>{$entry.comments}</slash:comments>
+ <wfw:commentRss>{$serendipityBaseURL}rss.php?version={$metadata.version}&type=comments&cid={$entry.feed_id}</wfw:commentRss>
+{/if}
+ <id>{$entry.feed_guid}</id>
+ <title mode="escaped" type="text/html">{$entry.feed_title}</title>
+{if !empty($entry.body)}
+ <content type="application/xhtml+xml" xml:base="{$serendipityBaseURL}">
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ {$entry.feed_body} {$entry.feed_ext}
+ </div>
+ </content>
+{/if}
+
+ {$entry.per_entry_display_dat}
+ </entry>
+{/foreach}
+</feed>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<?xml-stylesheet href="{serendipity_getFile file='atom.css'}" type="text/css" ?>
+
+<feed {$namespace_display_dat}
+ xmlns="http://www.w3.org/2005/Atom"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:admin="http://webns.net/mvcb/"
+ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/">
+ <link href="{$self_url}" rel="self" title="{$metadata.title}" type="application/atom+xml" />
+ <link href="{$serendipityBaseURL}" rel="alternate" title="{$metadata.title}" type="text/html" />
+ <link href="{$serendipityBaseURL}rss.php?version=2.0" rel="alternate" title="{$metadata.title}" type="application/rss+xml" />
+ <title type="html">{$metadata.title}</title>
+ <subtitle type="html">{$metadata.description}</subtitle>
+ {$metadata.additional_fields.image_atom10}
+ <id>{$metadata.link}</id>
+ <updated>{$last_modified}</updated>
+ <generator uri="http://www.s9y.org/" version="{$serendipityVersion}">Serendipity {$serendipityVersion} - http://www.s9y.org/</generator>
+ <dc:language>{$metadata.language}</dc:language>
+{if $metadata.showMail}
+ <admin:errorReportsTo rdf:resource="mailto:{$metadata.email}" />
+{/if}
+
+{foreach from=$entries item="entry"}
+ <entry>
+ <link href="{$entry.feed_entryLink}" rel="alternate" title="{$entry.feed_title}" />
+ <author>
+ <name>{$entry.feed_author}</name>
+ <email>{$entry.feed_email}</email>
+ </author>
+
+ <published>{$entry.feed_timestamp}</published>
+ <updated>{$entry.feed_last_modified}</updated>
+ <wfw:comment>{$serendipityBaseURL}wfwcomment.php?cid={$entry.feed_id}</wfw:comment>
+
+{if !$is_comments}
+ <slash:comments>{$entry.comments}</slash:comments>
+ <wfw:commentRss>{$serendipityBaseURL}rss.php?version={$metadata.version}&type=comments&cid={$entry.feed_id}</wfw:commentRss>
+{/if}
+
+ {foreach from=$entry.categories item="cat"}
+ <category scheme="{$cat.categoryURL}" label="{$cat.feed_category_name}" term="{$cat.feed_category_name}" />
+ {/foreach}
+
+ <id>{$entry.feed_guid}</id>
+ <title type="html">{$entry.feed_title}</title>
+{if !empty($entry.body)}
+ <content type="xhtml" xml:base="{$serendipityBaseURL}">
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ {$entry.feed_body} {$entry.feed_ext}
+ </div>
+ </content>
+{/if}
+ {$entry.per_entry_display_dat}
+ </entry>
+{/foreach}
+
+</feed>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+\r
+<opml version="{$metadata.version}" {$namespace_display_dat}>
+<head>
+ <title>{$metadata.title}</title>
+ <dateModified>{$last_modified}</dateModified>
+ <ownerName>Serendipity {$serendipityVersion} - http://www.s9y.org/</ownerName>
+</head>
+<body>
+\r
+{foreach from=$entries item="entry"}
+ <outline text="{$entry.feed_title}" type="url" htmlUrl="{$entry.feed_entryLink}" urlHTTP="{$entry.feed_entryLink}" />
+{/foreach}\r
+
+</body>\r
+</opml>
\ No newline at end of file
--- /dev/null
+<?php if ($GLOBALS['tpl']['is_embedded'] != true): ?>
+<html>
+<head>
+ <title><?= $GLOBALS['template']->getdefault('head_title', 'blogTitle'); ?> - <?= $GLOBALS['template']->getdefault('head_subtitle', 'blogDescription'); ?></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=<?= $GLOBALS['tpl']['head_charset']; ?>" />
+ <meta name="Powered-By" content="Serendipity v.<?= $GLOBALS['tpl']['head_version']; ?>" />
+ <link rel="stylesheet" type="text/css" href="<?= $GLOBALS['tpl']['head_link_stylesheet']; ?>" />
+ <link rel="alternate" type="application/rss+xml" title="<?= $GLOBALS['tpl']['blogTitle']; ?> RSS feed" href="<?= $GLOBALS['tpl']['serendipityBaseURL']; ?><?= $GLOBALS['tpl']['serendipityRewritePrefix']; ?>feeds/index.rss2" />
+ <link rel="alternate" type="application/x.atom+xml" title="<?= $GLOBALS['tpl']['blogTitle']; ?> Atom feed" href="<?= $GLOBALS['tpl']['serendipityBaseURL']; ?><?= $GLOBALS['tpl']['serendipityRewritePrefix']; ?>feeds/atom.xml" />
+<?php if ($GLOBALS['tpl']['entry_id']): ?>
+ <link rel="pingback" href="<?= $GLOBALS['tpl']['serendipityBaseURL']; ?>comment.php?type=pingback&entry_id=<?= $GLOBALS['tpl']['entry_id']; ?>" />
+<?php endif; ?>
+
+<?php serendipity_plugin_api::hook_event('frontend_header', $GLOBALS['template']); ?>
+</head>
+
+<body>
+<?php else: ?>
+<?php serendipity_plugin_api::hook_event('frontend_header', $GLOBALS['template']); ?>
+<?php endif; ?>
+
+<?php if ($GLOBALS['tpl']['is_raw_mode'] != true): ?>
+<div id="serendipity_banner">
+ <h1><a class="homelink1" href="<?= $GLOBALS['tpl']['serendipityBaseURL']; ?>"><?= $GLOBALS['template']->getdefault('head_title', 'blogTitle'); ?></a></h1>
+ <h2><a class="homelink2" href="<?= $GLOBALS['tpl']['serendipityBaseURL']; ?>"><?= $GLOBALS['template']->getdefault('head_subtitle', 'blogDescription'); ?></a></h2>
+</div>
+
+<table id="mainpane">
+ <tr>
+<?php if ($GLOBALS['tpl']['leftSidebarElements'] > 0): ?>
+ <td id="serendipityLeftSideBar" valign="top"><?php echo serendipity_plugin_api::generate_plugins('left'); ?></td>
+<?php endif; ?>
+ <td id="content" valign="top"><?= $GLOBALS['tpl']['CONTENT']; ?></td>
+<?php if ($GLOBALS['tpl']['rightSidebarElements'] > 0): ?>
+ <td id="serendipityRightSideBar" valign="top"><?php echo serendipity_plugin_api::generate_plugins('right'); ?></td>
+<?php endif; ?>
+ </tr>
+</table>
+<?php endif; ?>
+
+<?= $GLOBALS['tpl']['raw_data']; ?>
+<?php serendipity_plugin_api::hook_event('frontend_footer', $GLOBALS['template']); ?>
+
+<?php if ($GLOBALS['tpl']['is_embedded'] != true): ?>
+</body>
+</html>
+<?php endif; ?>
+
--- /dev/null
+Name: PHP Engine. EXPERIMENTAL. (Developers only)
+Author: Garvin Hicking
+Date: 06.06.2006
+Require Serendipity: 1.1
--- /dev/null
+<table style="width: 100%" cellspacing="0" cellpadding="0" class="serendipity_calendar">
+ <tr>
+ <td class="serendipity_calendarHeader">
+<?php if ($GLOBALS['tpl']['plugin_calendar_head']['minScroll'] <= $GLOBALS['tpl']['plugin_calendar_head']['month_date']): ?>
+ <a title="<?= BACK ?>" href="<?= $GLOBALS['tpl']['plugin_calendar_head']['uri_previous'] ?>"><img alt="<?= BACK ?>" src="<?php echo serendipity_getTemplateFile('img/back.png'); ?>" width="16" height="12" style="border: 0px" /></a>
+<?php endif; ?>
+ </td>
+
+ <td colspan="5" class="serendipity_calendarHeader" style="text-align: center; vertical-align: bottom">
+ <b><a style="white-space: nowrap" href="<?= $GLOBALS['tpl']['plugin_calendar_head']['uri_month'] ?>"><?= serendipity_formatTime("%B '%y", $GLOBALS['tpl']['plugin_calendar_head']['month_date']); ?></a></b>
+ </td>
+
+ <td class="serendipity_calendarHeader" style="text-align: right">
+<?php if ($GLOBALS['tpl']['plugin_calendar_head']['maxScroll'] >= $GLOBALS['tpl']['plugin_calendar_head']['month_date']): ?>
+ <a title="<?= FORWARD ?>" href="<?= $GLOBALS['tpl']['plugin_calendar_head']['uri_next'] ?>"><img alt="<?= FORWARD ?>" src="<?php echo serendipity_getTemplateFile('img/forward.png'); ?>" width="16" height="12" style="border: 0px" /></a>
+<?php endif; ?>
+ </td>
+ </tr>
+
+ <tr>
+ <?php foreach($GLOBALS['tpl']['plugin_calendar_dow'] AS $dow): ?>
+ <td scope="col" abbr="<?= serendipity_formatTime('%A', $dow['date']); ?>" title="<?= serendipity_formatTime('%A', $dow['date']); ?>" class="serendipity_weekDayName" align="center"><?= serendipity_formatTime('%a', $dow['date']); ?></td>
+ <?php endforeach; ?>
+ </tr>
+
+ <?php foreach($GLOBALS['tpl']['plugin_calendar_weeks'] AS $week): ?>
+ <tr class="serendipity_calendar">
+ <?php foreach($week['days'] AS $day): ?>
+ <td class="serendipity_calendarDay <?= $day['classes'] ?>"<?php if (isset($day['properties']['Title'])): ?> title="<?= $day['properties']['Title'] ?>"<?php endif; ?>><?php if (isset($day['properties']['Active']) AND $day['properties']['Active']): ?><a href="<?= $day['properties']['Link'] ?>"><?php endif; ?><?= $day['name']; ?><?php if (isset($day['properties']['Active']) AND $day['properties']['Active']): ?></a><?php endif; ?></td>
+ <?php endforeach; ?>
+ </tr>
+ <?php endforeach; ?>
+</table>
--- /dev/null
+{if $is_form}
+<form id="serendipity_category_form" action="<?= $GLOBALS['tpl']['form_url'] ?>" method="post">
+ <div id="serendipity_category_form_content">
+<?php endif; ?>
+
+ <ul id="serendipity_categories_list" style="list-style: none; margin: 0px; padding: 0px">
+{foreach from=$categories item="plugin_category"}
+ <li style="display: block;">
+ {if $is_form}
+ <input style="width: 15px" type="checkbox" name="serendipity[multiCat][]" value="<?= $plugin_category['categoryid'] ?>" />
+ <?php endif; ?>
+
+ {if !empty($category_image)}
+ <a class="serendipity_xml_icon" href="<?= $plugin_category['feedCategoryURL'] ?>"><img src="<?= $GLOBALS['tpl']['category_image'] ?>" alt="XML" style="border: 0px" /></a>
+ <?php endif; ?>
+
+ <a href="<?= $plugin_category['categoryURL'] ?>" title="{$plugin_category.category_description|escape}" style="padding-left: <?= $plugin_category['paddingPx'] ?>px">{$plugin_category.category_name|escape}</a>
+ </li>
+<?php endforeach; ?>
+ </ul>
+
+{if $is_form}
+ <div class="category_submit"><input type="submit" name="serendipity[isMultiCat]" value="<?= GO ?>" /></div>
+<?php endif; ?>
+
+ <div class="category_link_all"><a href="<?= $GLOBALS['tpl']['form_url'] ?>" title="<?= ALL_CATEGORIES ?>"><?= ALL_CATEGORIES ?></a></div>
+
+{if $is_form}
+ </div>
+</form>
+<?php endif; ?>
--- /dev/null
+ <head>
+ <title><?= SERENDIPITY_ADMIN_SUITE ?></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=<?= $GLOBALS['tpl']['head_charset'] ?>" />
+ <meta name="Powered-By" content="Serendipity v.<?= $GLOBALS['tpl']['head_version'] ?>" />
+ <link rel="stylesheet" type="text/css" href="<?= $GLOBALS['tpl']['head_link_stylesheet'] ?>" />
+ <script type="text/javascript">
+ window.onload = function() {ldelim}
+ parent.document.getElementById('serendipity_iframe').style.height = document.getElementById('mainpane').offsetHeight
+ + parseInt(document.getElementById('mainpane').style.marginTop)
+ + parseInt(document.getElementById('mainpane').style.marginBottom)
+ + 'px';
+ parent.document.getElementById('serendipity_iframe').scrolling = 'no';
+ parent.document.getElementById('serendipity_iframe').style.border = 0;
+ {rdelim}
+ </script>
+ </head>
+
+ <body style="padding: 0px; margin: 0px;">
+ <div id="mainpane" style="padding: 0px; margin: 5px auto 5px auto; width: 98%;">
+ <div id="content" style="padding: 5px; margin: 0px;">
+ <?= $GLOBALS['tpl']['preview'] ?>
+ </div>
+ </div>
+ </body>
--- /dev/null
+<?php if ($GLOBALS['tpl']['is_raw_mode']): ?>
+<div id="serendipity<?= $GLOBALS['tpl']['pluginside'] ?>SideBar">
+<?php endif; ?>
+<?php foreach($GLOBALS['tpl']['plugindata'] AS $item): ?>
+ <div class="serendipitySideBarItem container_<?= $item['class'] ?>">
+ <?php if ($item.title != ''): ?><h3 class="serendipitySideBarTitle <?= $item['class'] ?>"><?= $item['title'] ?></h3><?php endif; ?>
+ <div class="serendipitySideBarContent"><?= $item['content'] ?></div>
+ </div>
+<?php endforeach; ?>
+<?php if ($GLOBALS['tpl']['is_raw_mode']): ?>
+</div>
+<?php endif; ?>
--- /dev/null
+<?php
+// THIS FILE IS WORK-IN-PROGRESS. Mostly proof-of-code.
+// Proceed at your own risk. Read the "template_api.inc.php
+// instructions.
+include_once S9Y_INCLUDE_PATH . 'include/template_api.inc.php';
+$GLOBALS['template'] = new serendipity_smarty_emulator();
+$GLOBALS['serendipity']['smarty'] =& $GLOBALS['template'];
--- /dev/null
+{foreach from=$trackbacks item=trackback}
+ <div class="serendipity_comment">
+ <div class="serendipity_commentBody">
+ <a href="{$trackback.url|@strip_tags}" {'blank'|@xhtml_target}><?= $trackback['title'] ?></a><br />
+ {$trackback.body|@strip_tags|@escape:all}
+ </div>
+ <div class="serendipity_comment_source">
+ <b>Weblog:</b> {$trackback.author|@default:$CONST.ANONYMOUS}<br />
+ <b><?= TRACKED ?>:</b> {$trackback.timestamp|@formatTime:'%b %d, %H:%M'}
+ {if $entry.is_entry_owner}
+ (<a href="<?= $GLOBALS['tpl']['serendipityBaseURL'] ?>comment.php?serendipity[delete]=<?= $trackback['id'] ?>&serendipity[entry]=<?= $trackback['entry_id'] ?>&serendipity[type]=trackbacks"><?= DELETE ?></a>)
+ <?php endif; ?>
+ </div>
+ </div>
+{foreachelse}
+ <div class="serendipity_center"><?= NO_TRACKBACKS ?></div>
+<?php endforeach; ?>