Development

Changeset 10223

You must first sign up to be able to contribute.

Changeset 10223

Show
Ignore:
Timestamp:
07/11/08 18:06:37 (4 months ago)
Author:
xavier
Message:

sfPropelActAsTaggableBehaviorPlugin: the tag_list helper now can output an ordered list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelActAsTaggableBehaviorPlugin/trunk/lib/helper/TagsHelper.php

    r8469 r10223  
    8080  { 
    8181    $class = isset($options['class']) ? $options['class'] : 'tags-list'; 
    82     $result = '<ul class="'.$class.'">'; 
     82 
     83    if (isset($options['ordered'])) 
     84    { 
     85      $result = '<ol class="'.$class.'">'; 
     86    } 
     87    else 
     88    { 
     89      $result = '<ul class="'.$class.'">'; 
     90    } 
     91 
    8392    $i = 1; 
    8493 
     
    100109    } 
    101110 
    102     $result .= '</ul>'; 
     111    if (isset($options['ordered'])) 
     112    { 
     113      $result .= '</ol>'; 
     114    } 
     115    else 
     116    { 
     117      $result .= '</ul>'; 
     118    } 
    103119  } 
    104120