$entry['authorid'] = $serendipity['authorid'];
}
- serendipity_plugin_api::hook_event('frontend_display', $entry);
+ $addData = array('from' => 'functions_entries:printEntries');
+ if ($entry['is_cached']) {
+ $addData['no_scramble'] = true;
+ }
+ serendipity_plugin_api::hook_event('frontend_display', $entry, $addData);
if ($preview) {
$entry['author'] = $entry['realname'];
}
if (!serendipity_db_bool($entry['isdraft'])) {
- serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true));
+ serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry'));
serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry);
}
$supported_properties[] = 'disable_markup_' . $instance;
}
}
-
+
foreach($supported_properties AS $prop_key) {
$prop_val = (isset($properties[$prop_key]) ? $properties[$prop_key] : null);
$prop_key = 'ep_' . $prop_key;
<select name="serendipity[properties][disable_markups][]" multiple="multiple" size="4">
<?php
$plugins = serendipity_plugin_api::get_event_plugins();
-
+
if (is_array($plugins)) {
// foreach() operates on copies of values, but we want to operate on references, so we use while()
@reset($plugins);
} else {
$selected = false;
}
-
+
echo '<option ' . ($selected ? 'selected="selected"' : '') . ' value="' . $plugin_data['p']->instance . '">' . htmlspecialchars($plugin_data['p']->title) . '</option>' . "\n";
}
}
if ($is_cache) {
// Previous calls to frontend_display used the "no_scramble" atteribute to not tinker with the data.
// We now need to call those plugins that have not yet operated before.
- serendipity_plugin_api::hook_event('frontend_display_cache', $eventData);
+ $to_addData = array('from' => 'entryproperties:' . $event);
+ serendipity_plugin_api::hook_event('frontend_display_cache', $eventData, $to_addData);
$serendipity['POST']['properties']['cache_body'] = $eventData['body'];
$serendipity['POST']['properties']['cache_extended'] = $eventData['extended'];
}