Changeset 15140

Show
Ignore:
Timestamp:
02/21/08 09:44:48 (8 months ago)
Author:
bergie
Message:

Patch from Antti Partanen: enable adding static content before and after fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager/datamanager.php

    r14773 r15140  
    14281428 
    14291429                $widget->draw_widget_start(); 
     1430 
     1431                /* 
     1432                 * Adds a paragraph to the start of the field's content. 
     1433                 */ 
     1434                if (isset($field['widget_content_start'])) 
     1435                { 
     1436                    echo '<p>' . htmlspecialchars($field['widget_content_start']) . '</p>\n'; 
     1437                } 
     1438 
     1439                $widget->draw_widget(); 
     1440 
     1441                /* 
     1442                 * Adds a paragraph to the end of the field's content. 
     1443                 */ 
     1444                if (isset($field['widget_content_end'])) 
     1445                { 
     1446                    echo '<p>' . htmlspecialchars($field['widget_content_end']) . '</p>\n'; 
     1447                } 
     1448 
    14301449                $widget->draw_widget(); 
    14311450                $widget->draw_widget_end();