Changeset 10754


Ignore:
Timestamp:
05/04/11 13:46:04 (9 years ago)
Author:
patdenice
Message:

<!--up-down--> tag is compatible with Piwigo 2.2.x.

Location:
extensions/ExtendedDescription
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/changelog.txt

    r8314 r10754  
    3131|            |         | * add redirect tag 
    3232|            |         | 
     33| 2011-05-04 | 2.2.a   | P@t 
     34|            |         | * 2.2.x compatibility (top and bottom descriptions) 
     35|            |         | 
  • extensions/ExtendedDescription/main.inc.php

    r9437 r10754  
    134134      if (substr_count($desc, $conf['ExtendedDescription']['up-down'])) 
    135135      { 
    136         list($conf['ExtendedDescription']['top_comment'], $desc) = explode($conf['ExtendedDescription']['up-down'], $desc); 
    137         add_event_handler('loc_end_index', 'add_top_description'); 
     136        list($desc, $conf['ExtendedDescription']['bottom_comment']) = explode($conf['ExtendedDescription']['up-down'], $desc); 
     137        add_event_handler('loc_end_index', 'add_bottom_description'); 
    138138      } 
    139139      break; 
     
    155155} 
    156156 
    157 // Add top description 
    158 function add_top_description() 
     157// Add bottom description 
     158function add_bottom_description() 
    159159{ 
    160160  global $template, $conf; 
    161   $template->concat('PLUGIN_INDEX_CONTENT_BEGIN', ' 
     161  $template->concat('PLUGIN_INDEX_CONTENT_END', ' 
    162162    <div class="additional_info"> 
    163     ' . $conf['ExtendedDescription']['top_comment'] . ' 
     163    ' . $conf['ExtendedDescription']['bottom_comment'] . ' 
    164164    </div>'); 
    165165} 
Note: See TracChangeset for help on using the changeset viewer.