From 794d14f8921d8cd77cc9a8774e794ea3afd01f46 Mon Sep 17 00:00:00 2001 From: garvinhicking <garvinhicking> Date: Sun, 18 Jun 2006 19:44:27 +0000 Subject: [PATCH] Add PHP engine, for Davey. --- docs/NEWS | 6 + include/functions_smarty.inc.php | 102 +++++----- include/template_api.inc.php | 177 +++++++++++++++++ templates/default-php/commentform.tpl | 60 ++++++ templates/default-php/commentpopup.tpl | 61 ++++++ templates/default-php/comments.tpl | 37 ++++ templates/default-php/content.tpl | 22 +++ templates/default-php/entries.tpl | 198 ++++++++++++++++++++ templates/default-php/entries_archives.tpl | 20 ++ templates/default-php/entries_summary.tpl | 15 ++ templates/default-php/feed_0.91.tpl | 26 +++ templates/default-php/feed_1.0.tpl | 59 ++++++ templates/default-php/feed_2.0.tpl | 53 ++++++ templates/default-php/feed_atom0.3.tpl | 56 ++++++ templates/default-php/feed_atom1.0.tpl | 59 ++++++ templates/default-php/feed_opml1.0.tpl | 16 ++ templates/default-php/index.tpl | 48 +++++ templates/default-php/info.txt | 4 + templates/default-php/plugin_calendar.tpl | 33 ++++ templates/default-php/plugin_categories.tpl | 31 +++ templates/default-php/preview.png | Bin 0 -> 13606 bytes templates/default-php/preview_iframe.tpl | 24 +++ templates/default-php/sidebar.tpl | 12 ++ templates/default-php/template.inc.php | 7 + templates/default-php/trackbacks.tpl | 17 ++ 25 files changed, 1097 insertions(+), 46 deletions(-) create mode 100644 include/template_api.inc.php create mode 100644 templates/default-php/commentform.tpl create mode 100644 templates/default-php/commentpopup.tpl create mode 100644 templates/default-php/comments.tpl create mode 100644 templates/default-php/content.tpl create mode 100644 templates/default-php/entries.tpl create mode 100644 templates/default-php/entries_archives.tpl create mode 100644 templates/default-php/entries_summary.tpl create mode 100644 templates/default-php/feed_0.91.tpl create mode 100644 templates/default-php/feed_1.0.tpl create mode 100644 templates/default-php/feed_2.0.tpl create mode 100644 templates/default-php/feed_atom0.3.tpl create mode 100644 templates/default-php/feed_atom1.0.tpl create mode 100644 templates/default-php/feed_opml1.0.tpl create mode 100644 templates/default-php/index.tpl create mode 100644 templates/default-php/info.txt create mode 100644 templates/default-php/plugin_calendar.tpl create mode 100644 templates/default-php/plugin_categories.tpl create mode 100644 templates/default-php/preview.png create mode 100644 templates/default-php/preview_iframe.tpl create mode 100644 templates/default-php/sidebar.tpl create mode 100644 templates/default-php/template.inc.php create mode 100644 templates/default-php/trackbacks.tpl diff --git a/docs/NEWS b/docs/NEWS index f038da4..5182ff6 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,12 @@ 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) diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 54db6ee..5a58ade 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -616,53 +616,63 @@ function serendipity_smarty_init($vars = array()) { 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'])) { diff --git a/include/template_api.inc.php b/include/template_api.inc.php new file mode 100644 index 0000000..50ab843 --- /dev/null +++ b/include/template_api.inc.php @@ -0,0 +1,177 @@ +<?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; + } + } +} + diff --git a/templates/default-php/commentform.tpl b/templates/default-php/commentform.tpl new file mode 100644 index 0000000..f014fe6 --- /dev/null +++ b/templates/default-php/commentform.tpl @@ -0,0 +1,60 @@ +<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> diff --git a/templates/default-php/commentpopup.tpl b/templates/default-php/commentpopup.tpl new file mode 100644 index 0000000..fec9ad5 --- /dev/null +++ b/templates/default-php/commentpopup.tpl @@ -0,0 +1,61 @@ +{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> diff --git a/templates/default-php/comments.tpl b/templates/default-php/comments.tpl new file mode 100644 index 0000000..f48518d --- /dev/null +++ b/templates/default-php/comments.tpl @@ -0,0 +1,37 @@ +{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; ?> diff --git a/templates/default-php/content.tpl b/templates/default-php/content.tpl new file mode 100644 index 0000000..4fb9585 --- /dev/null +++ b/templates/default-php/content.tpl @@ -0,0 +1,22 @@ +<!-- 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 --> diff --git a/templates/default-php/entries.tpl b/templates/default-php/entries.tpl new file mode 100644 index 0000000..e7da546 --- /dev/null +++ b/templates/default-php/entries.tpl @@ -0,0 +1,198 @@ +<!-- 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 --> diff --git a/templates/default-php/entries_archives.tpl b/templates/default-php/entries_archives.tpl new file mode 100644 index 0000000..f2aaaca --- /dev/null +++ b/templates/default-php/entries_archives.tpl @@ -0,0 +1,20 @@ +{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> diff --git a/templates/default-php/entries_summary.tpl b/templates/default-php/entries_summary.tpl new file mode 100644 index 0000000..584c47f --- /dev/null +++ b/templates/default-php/entries_summary.tpl @@ -0,0 +1,15 @@ +{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> diff --git a/templates/default-php/feed_0.91.tpl b/templates/default-php/feed_0.91.tpl new file mode 100644 index 0000000..91f1ddb --- /dev/null +++ b/templates/default-php/feed_0.91.tpl @@ -0,0 +1,26 @@ +<?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> + diff --git a/templates/default-php/feed_1.0.tpl b/templates/default-php/feed_1.0.tpl new file mode 100644 index 0000000..aa217e1 --- /dev/null +++ b/templates/default-php/feed_1.0.tpl @@ -0,0 +1,59 @@ +<?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> + diff --git a/templates/default-php/feed_2.0.tpl b/templates/default-php/feed_2.0.tpl new file mode 100644 index 0000000..6631b87 --- /dev/null +++ b/templates/default-php/feed_2.0.tpl @@ -0,0 +1,53 @@ +<?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> diff --git a/templates/default-php/feed_atom0.3.tpl b/templates/default-php/feed_atom0.3.tpl new file mode 100644 index 0000000..9c873b5 --- /dev/null +++ b/templates/default-php/feed_atom0.3.tpl @@ -0,0 +1,56 @@ +<?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 diff --git a/templates/default-php/feed_atom1.0.tpl b/templates/default-php/feed_atom1.0.tpl new file mode 100644 index 0000000..5106bb8 --- /dev/null +++ b/templates/default-php/feed_atom1.0.tpl @@ -0,0 +1,59 @@ +<?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 diff --git a/templates/default-php/feed_opml1.0.tpl b/templates/default-php/feed_opml1.0.tpl new file mode 100644 index 0000000..3d3b2d4 --- /dev/null +++ b/templates/default-php/feed_opml1.0.tpl @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8" ?> + +<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> + +{foreach from=$entries item="entry"} + <outline text="{$entry.feed_title}" type="url" htmlUrl="{$entry.feed_entryLink}" urlHTTP="{$entry.feed_entryLink}" /> +{/foreach} + +</body> +</opml> \ No newline at end of file diff --git a/templates/default-php/index.tpl b/templates/default-php/index.tpl new file mode 100644 index 0000000..1450cbf --- /dev/null +++ b/templates/default-php/index.tpl @@ -0,0 +1,48 @@ +<?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; ?> + diff --git a/templates/default-php/info.txt b/templates/default-php/info.txt new file mode 100644 index 0000000..3e924fd --- /dev/null +++ b/templates/default-php/info.txt @@ -0,0 +1,4 @@ +Name: PHP Engine. EXPERIMENTAL. (Developers only) +Author: Garvin Hicking +Date: 06.06.2006 +Require Serendipity: 1.1 diff --git a/templates/default-php/plugin_calendar.tpl b/templates/default-php/plugin_calendar.tpl new file mode 100644 index 0000000..35274b5 --- /dev/null +++ b/templates/default-php/plugin_calendar.tpl @@ -0,0 +1,33 @@ +<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> diff --git a/templates/default-php/plugin_categories.tpl b/templates/default-php/plugin_categories.tpl new file mode 100644 index 0000000..99ca06e --- /dev/null +++ b/templates/default-php/plugin_categories.tpl @@ -0,0 +1,31 @@ +{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; ?> diff --git a/templates/default-php/preview.png b/templates/default-php/preview.png new file mode 100644 index 0000000000000000000000000000000000000000..4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q2=dxGk^X> z+LdJSawoEOU#bu?zJEycFl!QmYLy@9ECE=WeHOmVcKUF^(Ez0*<QX7qI%Rz{dfqS4 ze`R%vTe3Z)Q49(A^xpm!j*vpt5@IS?YqP8;syhfZRS!wkviLQGK8!hgb>8>%^E|_? z;#)u4?tbQasuOOKP5#BqMAgM^HpWk938#=|XUXoHT>t%pU`#dFxT%*)8m|V~nmQHM zrpQE(%~79@uQ=&zQc-DO+<x*k{kqQ)WzTS<Hwy`=H7ROzf2)8wUSe%YX|rSlIhg)y zSykRAtu1^oHj?9Ql-7T#z4f(QJH>9l`*ES;g;(z#NP!pSV*ma3b?n)-8mrIJJ9{pb zo1^htjb!)ZR_;-{*7C3$YNEDE0!c3k3;c}W9d{u`@!Ww6@VzJWV!7Xb>GQJq^eQCY zhjXA_0$k4{sy{ROSpPI(i#4G$GppQ2YMJNtZERoxIVX6QmHUwulHng77uicP!_b@h zGJrRN4~F(fW{#OdNzI8Kmxid_C#^7{YK%T)ouZ+hWSR(Opl`}UxXiwp-HoZRF!&Pu z?j^yL3PY{_FVR*1d0PGJPw02Eyt^O2`J%%<=if+`cB5`UG@eU}aGj;xhY~T=g3d%A z`M|i(_OLdjscAOrFkmf0b>DTE%a?Zl&L2pee*B|oZFgG#BnOA6PUS2M(_-~G=AUac zF=<ZD{dci9+>}q9Bza_Jnq*}1Uw#_PP^adOWm?W)rNT;KZq&*4Q5NWz9!}A70H!s_ zZAHA}U_*T4+RhP#q1F#0Y_hw;jLp^dPp-s~2kFHf&q)t&-3H?{m2>#u;p&#rBMFr3 lL@!vig^b~LbCCc7O=+{a4^G2x|8oN9Y8q<1S96RZ|3Ae(bBX`} literal 0 HcmV?d00001 diff --git a/templates/default-php/preview_iframe.tpl b/templates/default-php/preview_iframe.tpl new file mode 100644 index 0000000..c9761d5 --- /dev/null +++ b/templates/default-php/preview_iframe.tpl @@ -0,0 +1,24 @@ + <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> diff --git a/templates/default-php/sidebar.tpl b/templates/default-php/sidebar.tpl new file mode 100644 index 0000000..33e02e1 --- /dev/null +++ b/templates/default-php/sidebar.tpl @@ -0,0 +1,12 @@ +<?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; ?> diff --git a/templates/default-php/template.inc.php b/templates/default-php/template.inc.php new file mode 100644 index 0000000..1ca9224 --- /dev/null +++ b/templates/default-php/template.inc.php @@ -0,0 +1,7 @@ +<?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']; diff --git a/templates/default-php/trackbacks.tpl b/templates/default-php/trackbacks.tpl new file mode 100644 index 0000000..4fdbd9e --- /dev/null +++ b/templates/default-php/trackbacks.tpl @@ -0,0 +1,17 @@ +{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; ?> -- 2.39.5