change api to allow skipping smarty parsing
This commit is contained in:
parent
5d80d6e53d
commit
a4284fdad2
@ -3,6 +3,9 @@
|
|||||||
Version 1.5 ()
|
Version 1.5 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Enhanced serendipity_printEntries() logic to bypass smarty
|
||||||
|
parsing ($smarty_fetch) (garvinhicking)
|
||||||
|
|
||||||
* Changed karma plugin to only track GET requests as visits, not
|
* Changed karma plugin to only track GET requests as visits, not
|
||||||
POSTs. Thanks to Marcus Friedman
|
POSTs. Thanks to Marcus Friedman
|
||||||
|
|
||||||
|
@ -956,7 +956,7 @@ function serendipity_getTotalEntries() {
|
|||||||
* @param boolean Toggle whether the extended portion of an entry is requested (via $serendipity['GET']['id'] single entry view)
|
* @param boolean Toggle whether the extended portion of an entry is requested (via $serendipity['GET']['id'] single entry view)
|
||||||
* @param boolean Indicates if this is a preview
|
* @param boolean Indicates if this is a preview
|
||||||
* @param string The name of the SMARTY block that this gets parsed into
|
* @param string The name of the SMARTY block that this gets parsed into
|
||||||
* @param boolean Indicates whether the assigned smarty variables should be parsed
|
* @param boolean Indicates whether the assigned smarty variables should be parsed. When set to "return", no smarty parsing is done.
|
||||||
* @param boolean Indicates whether to apply footer/header event hooks
|
* @param boolean Indicates whether to apply footer/header event hooks
|
||||||
* @param boolean Indicates whether the pagination footer should be displayed
|
* @param boolean Indicates whether the pagination footer should be displayed
|
||||||
* @param mixed Indicates whether the input $entries array is already grouped in preparation for the smarty $entries output array [TRUE], or if it shall be grouped by date [FALSE] or if a plugin hook shall be executed to modify data ['plugin']. This setting can also be superseded by a 'entry_display' hook.
|
* @param mixed Indicates whether the input $entries array is already grouped in preparation for the smarty $entries output array [TRUE], or if it shall be grouped by date [FALSE] or if a plugin hook shall be executed to modify data ['plugin']. This setting can also be superseded by a 'entry_display' hook.
|
||||||
@ -1157,6 +1157,10 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
|
|||||||
serendipity_printEntryFooter();
|
serendipity_printEntryFooter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($smarty_fetch === 'return') {
|
||||||
|
return $dategroup;
|
||||||
|
}
|
||||||
|
|
||||||
$serendipity['smarty']->assign_by_ref('entries', $dategroup);
|
$serendipity['smarty']->assign_by_ref('entries', $dategroup);
|
||||||
unset($entries, $dategroup);
|
unset($entries, $dategroup);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user