[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_Mailinglists_Walker_Dropdown.class.php (source)

   1  <?php
   2  class MP_Mailinglists_Walker_Dropdown extends Walker 
   3  {
   4      var $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' ); //TODO: decouple this
   5      
   6  	public function start_el( &$output, $mailinglist, $depth = 0, $args = array(), $current_object_id = 0 ) 
   7      {
   8          $pad = str_repeat( '&#160;', $depth * 3 );
   9  
  10          $output .= '<option value="' . $mailinglist->term_id . '"';
  11          if ( $mailinglist->term_id == $args['selected'] ) $output .= ' selected="selected"';
  12          $output .= '>';
  13          $output .= $pad.$mailinglist->name;
  14          if ( $args['show_count'] ) $output .= '&#160;&#160;( '. $mailinglist->count .' )';
  15          if ( $args['show_last_update'] ) 
  16          {
  17              $format = 'Y-m-d';
  18              $output .= '&#160;&#160;' . gmdate( $format, $mailinglist->last_update_timestamp );
  19          }
  20          $output .= '</option>';
  21      }
  22  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1