From 66369f335a30222d472d2b912aa9665d38a26c7f Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 30 Jan 2006 10:12:54 +0000 Subject: [PATCH] Output more , for Carl. :) --- docs/NEWS | 3 +++ include/genpage.inc.php | 5 ++--- .../serendipity_event_karma.php | 11 +++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 4c1d61f..a39de9b 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.0-beta2 () ------------------------------------------------------------------------ + * Change karma plugin and search results to output more HTML span + classes for better styling (garvinhicking) + * Modified plugin API to allow deactivating the output of plugin sidebars (garvinhicking) diff --git a/include/genpage.inc.php b/include/genpage.inc.php index 43cc60b..b71ed68 100644 --- a/include/genpage.inc.php +++ b/include/genpage.inc.php @@ -69,7 +69,7 @@ if ($serendipity['smarty_raw_mode']) { } elseif ($r === true) { $serendipity['smarty']->assign( array( - 'content_message' => sprintf(NO_ENTRIES_BLAHBLAH, $serendipity['GET']['searchTerm']), + 'content_message' => sprintf(NO_ENTRIES_BLAHBLAH, '' . $serendipity['GET']['searchTerm'] . ''), 'searchresult_noEntries' => true ) ); @@ -78,7 +78,7 @@ if ($serendipity['smarty_raw_mode']) { $serendipity['smarty']->assign( array( - 'content_message' => sprintf(YOUR_SEARCH_RETURNED_BLAHBLAH, $serendipity['GET']['searchTerm'], serendipity_getTotalEntries()), + 'content_message' => sprintf(YOUR_SEARCH_RETURNED_BLAHBLAH, '' . $serendipity['GET']['searchTerm'] . '', '' . serendipity_getTotalEntries() . ''), 'searchresult_results' => true ) ); @@ -101,4 +101,3 @@ if ($serendipity['smarty_raw_mode']) { } /* vim: set sts=4 ts=4 expandtab : */ -?> diff --git a/plugins/serendipity_event_karma/serendipity_event_karma.php b/plugins/serendipity_event_karma/serendipity_event_karma.php index 6a47e78..946f25f 100644 --- a/plugins/serendipity_event_karma/serendipity_event_karma.php +++ b/plugins/serendipity_event_karma/serendipity_event_karma.php @@ -188,7 +188,7 @@ class serendipity_event_karma extends serendipity_event static $karma_exits = null; if ($karma_exits === null) { - $karma_exits = ' | ' . TOP_EXITS . ' (%d)'; + $karma_exits = ' | ' . TOP_EXITS . ' (%d)'; } if ($get_prepared) { @@ -507,16 +507,16 @@ class serendipity_event_karma extends serendipity_event } $karma_voting = '
' - . ($karma_active ? PLUGIN_KARMA_VOTETEXT . ' ' . $link_1 . ' | ' . $link_2 . ' | ' . $link_3 . ' | ' . $link_4 . ' | ' . $link_5 . '
' - . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? PLUGIN_KARMA_VISITSCOUNT : '') . '
'; + . ($karma_active ? '' . PLUGIN_KARMA_VOTETEXT . ' ' . $link_1 . ' | ' . $link_2 . ' | ' . $link_3 . ' | ' . $link_4 . ' | ' . $link_5 . '
' + . '' . PLUGIN_KARMA_CURRENT . '' : '') . ($track_clicks ? '' . PLUGIN_KARMA_VISITSCOUNT . '': '') . ''; $karma_current = '
' . ($karma_active ? '
' . PLUGIN_KARMA_VOTED . '
' - . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? PLUGIN_KARMA_VISITSCOUNT : '') . '
'; + . '' . PLUGIN_KARMA_CURRENT . '' : '') . ($track_clicks ? '' . PLUGIN_KARMA_VISITSCOUNT . '': '') . ''; $karma_timeout = '
' . ($track_karma ? '
' . sprintf(PLUGIN_KARMA_CLOSED, $karmatime) . '
' - . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? PLUGIN_KARMA_VISITSCOUNT : '') . '
'; + . '' . PLUGIN_KARMA_CURRENT . '' : '') . ($track_clicks ? '' . PLUGIN_KARMA_VISITSCOUNT . '': '') . ''; if ($addData['extended'] || $addData['preview']) { $entryid = (int)serendipity_db_escape_string($eventData[0]['id']); @@ -612,4 +612,3 @@ class serendipity_event_karma extends serendipity_event } /* vim: set sts=4 ts=4 expandtab : */ -?> -- 2.39.5