Version 1.3 ()
------------------------------------------------------------------------
- * Added new parameter "joinown" and "entryprops" to {serendipity_
- fetchPrintEntries} smarty function, to be able to fetch entries
- according to their entryprops or other custom SQL.
+ * Add spartacus remote management versioning information subpage.
(garvinhicking)
- * Added LifeType importer (garvinhicking)
-
- * Updated Textile library to 2.0, by Lars Strojny
-
* Allow the "send mail" plugin to send mails to all registered
authors (garvinhicking)
- * Add spartacus remote management versioning information subpage.
- (garvinhicking)
+ * New spam blocking method for trackbacks: ip validation. The
+ senders ip is compared with the ip of the host, the trackback is
+ set to. If they don't match, the trackback is rejected/moderated.
+ This should reject most of the trackback spam bots. (brockhaus)
- * Patch popup-HTML-code insertion javascript to better inter-
- operate with tinymce, xinha or fckeditor. Thanks to
- Assen Tchorbadjiev.
-
- * Updated WordPress imported to be able to import from a 2.3
- structure (experimental). Also added WPXRSS import to the
- generic RSS importer. (garvinhicking)
+ * Updated karma plugin to not track clicks of registered users
+ (brockhaus)
- * Fix wrong entry timestamp used in comment feeds (garvinhicking)
+ * Made short-urls index.php?serendipity[id]=X or index.php?p=X
+ properly show a single entry view (garvinhicking)
- * Add experimental DB layer for "SQLRelay" database proxy extension,
- by Dante Mason
+ * Added new parameter "joinown" and "entryprops" to {serendipity_
+ fetchPrintEntries} smarty function, to be able to fetch entries
+ according to their entryprops or other custom SQL.
+ (garvinhicking)
- * Highlighting searched words in entries now uses str_replace instead
- of slower and possibly insecure preg_replace(). Thanks to
- Dietrich Raisin!
-
* New plugin API method "parseTemplate($filename)" to allow a
sidebar- or event-plugin to fetch+display a smarty template.
(garvinhicking)
- * Made short-urls index.php?serendipity[id]=X or index.php?p=X
- properly show a single entry view (garvinhicking)
+ * The archive sidebar plugin shiped with s9y now displays numbers
+ of articles correctly for month, catergories and so on, even
+ if multicategory articles are used. (brockhaus)
- * Extended spam blocking plugin to handle pingbacks like trackbacks.
+ * Added LifeType importer (garvinhicking)
+
+ * The recent entries sidebar plugin shiped with s9y listed entries
+ not accessable by the current user because of right restrictions.
(brockhaus)
- * Pingback receiving is working now with internal functionality in
- comment.php Smarty trackback loader now loads trackbacks and
- pingbacks (brockhaus)
+ * Patch popup-HTML-code insertion javascript to better inter-
+ operate with tinymce, xinha or fckeditor. Thanks to
+ Assen Tchorbadjiev.
+
+ * Add experimental DB layer for "SQLRelay" database proxy extension,
+ by Dante Mason
* On the fly update of the media database: Not only images are added
but video and audio, too. (brockhaus)
- * New spam blocking method for trackbacks: ip validation. The
- senders ip is compared with the ip of the host, the trackback is
- set to. If they don't match, the trackback is rejected/moderated.
- This should reject most of the trackback spam bots. (brockhaus)
-
- * The recent entries sidebar plugin shiped with s9y listed entries
- not accessable by the current user because of right restrictions.
- (brockhaus)
+ * Trackbacks to links without a RDF-description now get properly
+ evaluated. Mostly WordPress-specific. (brockhaus)
- * The archive sidebar plugin shiped with s9y now displays numbers
- of articles correctly for month, catergories and so on, even
- if multicategory articles are used. (brockhaus)
+ * Pingback receiving is working now with internal functionality in
+ comment.php Smarty trackback loader now loads trackbacks and
+ pingbacks (brockhaus)
- * Trackbacks to links without a description now get properly
- evaluated. (brockhaus)
+ * Extended spam blocking plugin to handle pingbacks like trackbacks.
+ (brockhaus)
* Full pingback support, fallback trackback method for WordPress
blogs. (brockhaus)
Version 1.2.1 ()
------------------------------------------------------------------------
+ * Updated Textile library to 2.0, by Lars Strojny
+
+ * Fix wrong entry timestamp used in comment feeds (garvinhicking)
+
+ * Highlighting searched words in entries now uses str_replace instead
+ of slower and possibly insecure preg_replace(). Thanks to
+ Dietrich Raisin!
+
+ * Updated WordPress imported to be able to import from a 2.3
+ structure (experimental). Also added WPXRSS import to the
+ generic RSS importer. (garvinhicking)
+
* Fix proper encoding of '%' sign when used in post titles
(garvinhicking)
-<?php # $Id$
+<?php # $Id:$
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
<div>
<input type="hidden" name="serendipity[action]" value="search" />
<input alt="<?php echo QUICKSEARCH; ?>" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" size="13" />
+ <input class="quicksearch_submit" type="submit" value=">" alt="<?php echo QUICKSEARCH; ?>" name="serendipity[searchButton]" title="<?PHP echo GO; ?>" style="width: 2em;" />
</div>
<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>
</form>
$propbag->add('stackable', true);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '1.0');
- $propbag->add('configuration', array('title', 'frequency', 'count', 'show_count'));
+ $propbag->add('configuration', array('title', 'frequency', 'count', 'show_count', 'hide_zero_count'));
$propbag->add('groups', array('FRONTEND_VIEWS'));
}
$propbag->add('default', false);
break;
+ case 'hide_zero_count':
+ $propbag->add('type', 'boolean');
+ $propbag->add('name', CATEGORY_PLUGIN_HIDEZEROCOUNT);
+ $propbag->add('description', '');
+ $propbag->add('default', false);
+ break;
+
default:
return false;
}
$ts = mktime(0, 0, 0, date('m'), 1);
$add_query = '';
- if (isset($serendipity['GET']['category'])) {
+
+ $category_set = isset($serendipity['GET']['category']);
+ if ($category_set) {
$base_query = 'C' . (int)$serendipity['GET']['category'];
$add_query = '/' . $base_query;
}
$max_x = $this->get_config('count', 3);
$show_count = serendipity_db_bool($this->get_config('show_count', false));
+ $hide_zero_count = serendipity_db_bool($this->get_config('hide_zero_count', false));
$freq = $this->get_config('frequency', 'months');
-
+
for($x = 0; $x < $max_x; $x++) {
$current_ts = $ts;
switch($freq) {
$link = serendipity_rewriteURL(PATH_ARCHIVES . '/' . $linkStamp . $add_query . '.html', 'serendipityHTTPPath');
$html_count = '';
+ $hidden_by_zero_count = false;
if ($show_count) {
switch($freq) {
case 'months':
true,
'count(e.id) AS orderkey',
'',
- 'single'
+ 'single',
+ false, $category_set // the joins used
);
if (is_array($ec)) {
if (empty($ec['orderkey'])) {
$ec['orderkey'] = '0';
}
+ $hidden_by_zero_count = $hide_zero_count && ( $ec['orderkey'] == '0');
$html_count .= ' (' . $ec['orderkey'] . ')';
}
}
- echo '<a href="' . $link . '" title="' . $ts_title . '">' . $ts_title . $html_count . '</a><br />' . "\n";
-
+ if (!$hidden_by_zero_count) {
+ echo '<a href="' . $link . '" title="' . $ts_title . '">' . $ts_title . $html_count . '</a><br />' . "\n";
+ }
}
- echo '<a href="'. $serendipity['serendipityHTTPPath'] .'">' . RECENT . '</a><br />' . "\n";
+ echo '<a href="'. $serendipity['serendipityHTTPPath'] . $serendipity['indexFile'] . '?frontpage">' . RECENT . '</a><br />' . "\n";
echo '<a href="'. serendipity_rewriteURL(PATH_ARCHIVE . $add_query) .'">' . OLDER . '</a>'. "\n";
}
}
$link = $base . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] .'?/' : '') . PATH_ADMIN;
$text = (($_SESSION['serendipityAuthedUser'] === true) ? SUPERUSER_OPEN_ADMIN : SUPERUSER_OPEN_LOGIN);
- echo '<a rel="nofollow" href="' . $link . '" title="'. $text .'">'. $text .'</a>';
+ echo '<a href="' . $link . '" rel="nofollow" title="'. $text .'">'. $text .'</a>';
}
function introspect_config_item($name, &$propbag)
$categories[$cid]['feedCategoryURL'] = serendipity_feedCategoryURL($cat, 'serendipityHTTPPath');
$categories[$cid]['categoryURL'] = serendipity_categoryURL($cat, 'serendipityHTTPPath');
$categories[$cid]['paddingPx'] = $cat['depth']*6;
- $categories[$cid]['catdepth'] = $cat['depth'];
+ $categories[$cid]['catdepth'] = $cat['depth'];
if (!empty($cat_count[$cat['categoryid']])) {
$categories[$cid]['true_category_name'] = $cat['category_name'];
}
if (!$smarty) {
- $html .= '<li class="category_depth'. $cat['depth']. ' category_' . $cat['categoryid'] .'" style="display: block;">';
+ $html .= '<li class="category_depth' . $cat['depth'] . ' category_' . $cat['categoryid'] . '" style="display: block;">';
if ($is_form) {
$html .= '<input style="width: 15px" type="checkbox" name="serendipity[multiCat][]" value="' . $cat['categoryid'] . '" />';