Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5512
Modified Files:
serendipity_functions.inc.php NEWS
Log Message:
Added new css classes for being able to seperate an entry's body/teaser and extended body.
We need someone documenting all available CSS classes and a short description where they are used to ease up template generation...
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- NEWS 22 Mar 2004 15:19:25 -0000 1.94
+++ NEWS 22 Mar 2004 17:17:45 -0000 1.95
@@ -3,6 +3,15 @@
Version 0.6 ()
------------------------------------------------------------------------
+ * Templates: New CSS classes for better customization
+ - 'serendipity_entry_body_folded' for the entry body on the
+ weblog index page
+ - 'serendipity_entry_body_unfolded' for the entry body on
+ article page
+ - 'serendipity_entry_extended' for the extended body on article
+ page
+ (garvinhicking)
+
* Image upload: Can now specify alternate file name. Renamed
input field to not cause confusion with COOKIE-variable
(garvinhicking, isotopp)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -d -r1.233 -r1.234
--- serendipity_functions.inc.php 21 Mar 2004 17:19:29 -0000 1.233
+++ serendipity_functions.inc.php 22 Mar 2004 17:17:45 -0000 1.234
@@ -830,9 +830,11 @@
serendipity_plugin_api::hook_event('frontend_display', $entry);
$html_extended = '';
+ $extended_css = 'serendipity_entry_body_folded';
if ($extended && strlen($entry['extended'])) {
- $html_extended = '<a ' . ($serendipity['XHTML11'] ? 'id' : 'name') . '="extended"></a>';
- $html_extended .= $entry['extended'];
+ $html_extended = '<span class="serendipity_entry_extended"><a ' . ($serendipity['XHTML11'] ? 'id' : 'name') . '="extended"></a>';
+ $html_extended .= $entry['extended'] . '</span>';
+ $extended_css = 'serendipity_entry_body_unfolded';
}
if (isset($entry['exflag']) && $entry['exflag'] && !$extended) {
@@ -843,9 +845,8 @@
<h4 class="serendipity_title"><a href="<?php echo $entryLink; ?>"><?php echo htmlentities($entry['title']); ?></a></h4>
<div class="serendipity_entry">
-<?php
- echo $entry['body'] . $html_extended;
-?>
+ <span class="<?php echo $extended_css; ?>"><?php echo $entry['body']; ?></span>
+ <?php echo $html_extended; ?>
<div class='serendipity_entryFooter'>
<?php
|