| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * The default options available with Views Slideshow: ImageFlow. 6 */ 7 8 /** 9 * Implements hook_views_slideshow_modes(). 10 */ 11 function views_slideshow_imageflow_views_slideshow_modes() { 12 // Expose the mode for ImageFlow slide shows. 13 $options = array( 14 'views_slideshow_imageflow' => t('ImageFlow'), 15 ); 16 return $options; 17 } 18 19 /** 20 * Implements hook_views_slideshow_option_definition(). 21 */ 22 function views_slideshow_imageflow_views_slideshow_option_definition() { 23 // Set our default options. 24 $options['views_slideshow_imageflow'] = array( 25 'default' => array( 26 'aspect_ratio' => views_slideshow_imageflow_variable_get('aspect_ratio'), 27 'images_height' => views_slideshow_imageflow_variable_get('images_height'), 28 'image_cursor' => views_slideshow_imageflow_variable_get('image_cursor'), 29 'slider_cursor' => views_slideshow_imageflow_variable_get('slider_cursor'), 30 'slider' => views_slideshow_imageflow_variable_get('slider'), 31 'start' => views_slideshow_imageflow_variable_get('start'), 32 'captions' => views_slideshow_imageflow_variable_get('captions'), 33 'imageFocusM' => views_slideshow_imageflow_variable_get('imageFocusM'), 34 'scrollbarP' => views_slideshow_imageflow_variable_get('scrollbarP'), 35 'imageFocusMax' => views_slideshow_imageflow_variable_get('imageFocusMax'), 36 'onClick' => views_slideshow_imageflow_variable_get('onClick'), 37 ), 38 ); 39 return $options; 40 } 41 42 /** 43 * Implements hook_views_slideshow_options_form(). 44 */ 45 function views_slideshow_imageflow_views_slideshow_options_form(&$form, &$form_state, &$view) { 46 // Create the form elements for our ImageFlow view options. 47 $form['views_slideshow_imageflow'] = array( 48 '#type' => 'fieldset', 49 '#title' => t('ImageFlow options'), 50 '#collapsible' => TRUE, 51 '#collapsed' => !($view->options['mode'] == 'views_slideshow_imageflow'), 52 ); 53 $form['views_slideshow_imageflow']['aspect_ratio'] = array( 54 '#type' => 'textfield', 55 '#title' => t('Aspect ratio'), 56 '#description' => t('Aspect ratio of the ImageFlow container (width divided by height).'), 57 '#default_value' => $view->options['views_slideshow_imageflow']['aspect_ratio'], 58 ); 59 $form['views_slideshow_imageflow']['images_height'] = array( 60 '#type' => 'textfield', 61 '#title' => t('Images height'), 62 '#description' => t('Height of the images div container to be multiplied.'), 63 '#default_value' => $view->options['views_slideshow_imageflow']['images_height'], 64 ); 65 $form['views_slideshow_imageflow']['image_cursor'] = array( 66 '#type' => 'select', 67 '#title' => t('Image cursor'), 68 '#description' => t('Cursor type for the images.'), 69 '#default_value' => $view->options['views_slideshow_imageflow']['image_cursor'], 70 '#options' => array( 71 'pointer' => t('pointer'), 72 'default' => t('default'), 73 'e-resize' => t('e-resize'), 74 ), 75 ); 76 $form['views_slideshow_imageflow']['slider'] = array( 77 '#type' => 'checkbox', 78 '#title' => t('Show slider'), 79 '#description' => t('Disables / enables the scrollbar.'), 80 '#default_value' => $view->options['views_slideshow_imageflow']['slider'], 81 ); 82 $form['views_slideshow_imageflow']['slider_cursor'] = array( 83 '#type' => 'select', 84 '#title' => t('Slider cursor'), 85 '#description' => t('Cursor type for the slider.'), 86 '#default_value' => $view->options['views_slideshow_imageflow']['slider_cursor'], 87 '#options' => array( 88 'pointer' => t('pointer'), 89 'default' => t('default'), 90 'e-resize' => t('e-resize'), 91 ), 92 ); 93 $form['views_slideshow_imageflow']['start'] = array( 94 '#type' => 'select', 95 '#title' => t('Start position'), 96 '#description' => t('The position to begin the ImageFlow.'), 97 '#default_value' => $view->options['views_slideshow_imageflow']['start'], 98 '#options' => array( 99 'start' => t('Start'), 100 'middle' => t('Middle'), 101 'end' => t('End'), 102 'random' => t('Random'), 103 ), 104 ); 105 $form['views_slideshow_imageflow']['captions'] = array( 106 '#type' => 'checkbox', 107 '#title' => t('Display captions'), 108 '#description' => t('Disables / enables the display of captions.'), 109 '#default_value' => $view->options['views_slideshow_imageflow']['captions'], 110 ); 111 $form['views_slideshow_imageflow']['imageFocusM'] = array( 112 '#type' => 'textfield', 113 '#title' => t('Image focus multiplier'), 114 '#description' => t('Multiplier for the focussed image size.'), 115 '#default_value' => $view->options['views_slideshow_imageflow']['imageFocusM'], 116 ); 117 $form['views_slideshow_imageflow']['scrollbarP'] = array( 118 '#type' => 'textfield', 119 '#title' => t('Scrollbar width multiplier'), 120 '#description' => t('Multiplier width of the scrollbar (0-1).'), 121 '#default_value' => $view->options['views_slideshow_imageflow']['scrollbarP'], 122 ); 123 $form['views_slideshow_imageflow']['imageFocusMax'] = array( 124 '#type' => 'textfield', 125 '#title' => t('Image focus max'), 126 '#description' => t('Maximum number of images on each side of the focussed one.'), 127 '#default_value' => $view->options['views_slideshow_imageflow']['imageFocusMax'], 128 ); 129 130 $form['views_slideshow_imageflow']['onClick'] = array( 131 '#type' => 'textarea', 132 '#title' => t('onClick override'), 133 '#description' => t('You may override the onClick JavaScript function of slide show image frames here.'), 134 '#default_value' => $view->options['views_slideshow_imageflow']['onClick'], 135 ); 136 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |