Changeset 25202


Ignore:
Timestamp:
Oct 29, 2013, 10:31:06 AM (7 years ago)
Author:
mistic100
Message:

add two extra param to render_element_description trigger: main_page_element_description and picture_page_element_description

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_default.inc.php

    r20177 r25202  
    112112
    113113  $name = render_element_name($row);
    114   $desc = render_element_description($row);
     114  $desc = render_element_description($row, 'main_page_element_description');
    115115
    116116  $tpl_var = array_merge( $row, array(
  • trunk/include/functions_html.inc.php

    r22520 r25202  
    544544}
    545545
    546 function render_element_description($info)
     546function render_element_description($info, $param='')
    547547{
    548548  $comment = $info['comment'];
    549549  if (!empty($comment))
    550550  {
    551     $comment = trigger_event('render_element_description', $comment);
     551    $comment = trigger_event('render_element_description', $comment, $param);
    552552    return $comment;
    553553  }
  • trunk/picture.php

    r25018 r25202  
    809809      'COMMENT_IMG',
    810810        trigger_event('render_element_description',
    811           $picture['current']['comment'])
     811          $picture['current']['comment'],
     812          'picture_page_element_description'
     813          )
    812814      );
    813815}
  • trunk/tools/triggers_list.php

    r23888 r25202  
    673673  'name' => 'render_element_description',
    674674  'type' => 'trigger_event',
    675   'vars' => array('string', 'element_secription'),
    676   'files' => array('picture.php'),
     675  'vars' => array('string', 'element_description', 'string', 'action'),
     676  'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'),
    677677),
    678678array(
Note: See TracChangeset for help on using the changeset viewer.