Go to the documentation of this file.00001 <?php
00012 class views_plugin_style_list extends views_plugin_style {
00016 function option_definition() {
00017 $options = parent::option_definition();
00018
00019 $options['type'] = array('default' => 'ul');
00020 $options['class'] = array('default' => '');
00021 $options['wrapper_class'] = array('default' => 'item-list');
00022
00023 return $options;
00024 }
00025
00029 function options_form(&$form, &$form_state) {
00030 parent::options_form($form, $form_state);
00031 $form['type'] = array(
00032 '#type' => 'radios',
00033 '#title' => t('List type'),
00034 '#options' => array('ul' => t('Unordered list'), 'ol' => t('Ordered list')),
00035 '#default_value' => $this->options['type'],
00036 );
00037 $form['wrapper_class'] = array(
00038 '#title' => t('Wrapper class'),
00039 '#description' => t('The class to provide on the wrapper, outside the list.'),
00040 '#type' => 'textfield',
00041 '#size' => '30',
00042 '#default_value' => $this->options['wrapper_class'],
00043 );
00044 $form['class'] = array(
00045 '#title' => t('List class'),
00046 '#description' => t('The class to provide on the list element itself.'),
00047 '#type' => 'textfield',
00048 '#size' => '30',
00049 '#default_value' => $this->options['class'],
00050 );
00051 }
00052 }