Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['slide_duration'] = array('default' => 500);
     $options['slide_spacing'] = array('default' => 0);
     $options['drag_orientation'] = array('default' => 1);
     $options['key_navigation'] = array('default' => TRUE);
     $options['autoplay'] = array('default' => TRUE);
     $options['autoplayinterval'] = array('default' => 3000);
     $options['autoplaysteps'] = array('default' => 1);
     $options['pauseonhover'] = array('default' => 1);
     $options['arrownavigator'] = array('default' => FALSE);
     $options['bulletnavigator'] = array('default' => FALSE);
     $options['chancetoshow'] = array('default' => 0);
     $options['arrowskin'] = array('default' => 1);
     $options['bulletskin'] = array('default' => 1);
     $options['autocenter'] = array('default' => 2);
     $options['spacingx'] = array('default' => 0);
     $options['spacingy'] = array('default' => 0);
     $options['orientation'] = array('default' => 1);
     $options['steps'] = array('default' => 1);
     $options['rows'] = array('default' => 1);
     $options['lanes'] = array('default' => 1);
     $options['transition'] = array('default' => 'transition0000');
     $options['action_mode'] = array('default' => 1);
     $options['scale'] = array('default' => TRUE);
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['mode'] = array('default' => 'horizontal');
     $options['speed'] = array('default' => 500);
     $options['touchEnabled'] = array('default' => 1);
     $options['auto'] = array('default' => 0);
     $options['pause'] = array('default' => 4000);
     $options['infiniteloop'] = array('default' => 1);
     $options['slidemargin'] = array('default' => 0);
     $options['startslide'] = array('default' => 0);
     $options['randomstart'] = array('default' => 0);
     $options['pager'] = array('default' => 1);
     $options['controls'] = array('default' => 1);
     $options['nexttext'] = array('default' => '');
     $options['prevtext'] = array('default' => '');
     $options['autoControls'] = array('default' => 0);
     // Carousel options
     $options['moveslides'] = array('default' => 0);
     $options['lg_items'] = array('default' => 4);
     $options['md_items'] = array('default' => 3);
     $options['sm_items'] = array('default' => 2);
     $options['xs_items'] = array('default' => 1);
     $options['ticker'] = array('default' => 0);
     $options['tickerHover'] = array('default' => 0);
     return $options;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['row_class_custom'] = array('default' => '');
     $options['row_class_default'] = array('default' => TRUE);
     return array_merge($options, \Drupal::moduleHandler()->invokeAll('views_slideshow_option_definition'));
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['optionset'] = array('default' => 'default');
     $options['captionfield'] = array('default' => '');
     $options['id'] = array('default' => '');
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['date_field'] = array('default' => '');
     $options['group_heading'] = array('default' => '');
     $options['group_heading_format'] = array('default' => '');
     return $options;
 }
Ejemplo n.º 6
0
 /**
  * Set default options
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['type'] = array('default' => 'ul');
     $options['class'] = array('default' => '');
     $options['wrapper_class'] = array('default' => 'item-list');
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['data_source'] = array('contains' => array('value' => array('default' => 'asc'), 'latitude' => array('default' => 0), 'longitude' => array('default' => 0), 'geofield' => array('default' => 0), 'wkt' => array('default' => 0), 'name_field' => array('default' => 0), 'description_field' => array('default' => 0)));
     $options['attributes'] = array('default' => NULL, 'translatable' => FALSE);
     $options['jsonp_prefix'] = array('default' => NULL, 'translatable' => FALSE);
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['title_field'] = array('default' => array());
     $options['accordion_filter'] = array('default' => 0);
     $options['accordion_filter_vocabulary'] = array('default' => 'select');
     return $options;
 }
Ejemplo n.º 9
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['base_path'] = array('default' => '');
     $options['count'] = array('default' => TRUE, 'bool' => TRUE);
     $options['override'] = array('default' => FALSE, 'bool' => TRUE);
     $options['items_per_page'] = array('default' => 25);
     return $options;
 }
Ejemplo n.º 10
0
Archivo: Owl.php Proyecto: tabvn/owl
 /**
  * Set default options
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $settings = _owl_default_settings();
     foreach ($settings as $k => $v) {
         $options[$k] = array('default' => $v);
     }
     return $options;
 }
Ejemplo n.º 11
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['geolocation_field'] = ['default' => ''];
     $options['title_field'] = ['default' => ''];
     $options['centre'] = ['default' => 'first_row'];
     $options['centre_fixed_values'] = ['default' => ['latitude' => 0, 'longitude' => 0]];
     return $options;
 }
Ejemplo n.º 12
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $library = $this->juicebox->getLibrary();
     $base_settings = $this->juicebox->confBaseOptions();
     // Structure the base settings in the "default" format that views wants.
     foreach ($base_settings as $setting => $value) {
         $base_settings_default[$setting] = array('default' => $value);
     }
     $options = array_merge($base_settings_default, array('image_field' => array('default' => ''), 'image_field_style' => array('default' => !empty($library['version']) && !in_array('juicebox_multisize_image_style', $library['disallowed_conf']) ? 'juicebox_multisize' : 'juicebox_medium'), 'thumb_field' => array('default' => ''), 'thumb_field_style' => array('default' => 'juicebox_square_thumb'), 'title_field' => array('default' => ''), 'caption_field' => array('default' => ''), 'show_title' => array('default' => 0)));
     return $options;
 }
Ejemplo n.º 13
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['columns'] = array('default' => '4');
     $options['automatic_width'] = array('default' => TRUE);
     $options['alignment'] = array('default' => 'horizontal');
     $options['col_class_custom'] = array('default' => '');
     $options['col_class_default'] = array('default' => TRUE);
     $options['row_class_custom'] = array('default' => '');
     $options['row_class_default'] = array('default' => TRUE);
     return $options;
 }
Ejemplo n.º 14
0
 /**
  * Overrides Drupal\views\Plugin\views\style\StylePluginBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // Parse the mapping and add a default for each.
     foreach ($this->defineMapping() as $key => $value) {
         $default = !empty($value['#multiple']) ? array() : '';
         $options['mapping']['contains'][$key] = array('default' => isset($value['#default_value']) ? $value['#default_value'] : $default);
         if (!empty($value['#toggle'])) {
             $options['mapping']['contains']["toggle_{$key}"] = array('default' => FALSE);
         }
     }
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['grid_style'] = array('default' => 'classic');
     $options['grid_cols_lg'] = array('default' => 4);
     $options['grid_cols_md'] = array('default' => 3);
     $options['grid_cols_sm'] = array('default' => 2);
     $options['grid_cols_xs'] = array('default' => 1);
     $options['grid_margin'] = array('default' => 30);
     $options['grid_filter'] = array('default' => 0);
     $options['grid_ratio'] = array('default' => 1);
     $options['grid_filter_vocabulary'] = array('default' => 'select');
     $options['masonry_background'] = array('default' => '');
     return $options;
 }
Ejemplo n.º 16
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['columns'] = array('default' => array());
     $options['default'] = array('default' => '');
     $options['info'] = array('default' => array());
     $options['override'] = array('default' => TRUE);
     $options['sticky'] = array('default' => FALSE);
     $options['order'] = array('default' => 'asc');
     $options['caption'] = array('default' => '');
     $options['summary'] = array('default' => '');
     $options['description'] = array('default' => '');
     $options['empty_table'] = array('default' => FALSE);
     return $options;
 }
Ejemplo n.º 17
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['wrap'] = array('default' => NULL);
     $options['skin'] = array('default' => 'default');
     $options['visible'] = array('default' => NULL);
     $options['responsive'] = array('default' => 0);
     $options['scroll'] = array('default' => '');
     $options['auto'] = array('default' => 0);
     $options['autoPause'] = array('default' => '1');
     $options['animation'] = array('default' => '');
     $options['start'] = array('default' => '1');
     $options['easing'] = array('default' => NULL);
     $options['vertical'] = array('default' => FALSE);
     $options['navigation'] = array('default' => '');
     $options['ajax'] = array('default' => 0);
     return $options;
 }
Ejemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['row_class_custom'] = array('default' => '');
     $options['row_class_default'] = array('default' => TRUE);
     $options['slideshow_type'] = array('default' => 'views_slideshow_cycle');
     $options['slideshow_skin'] = array('default' => 'default');
     $typeManager = \Drupal::service('plugin.manager.views_slideshow.slideshow_type');
     foreach ($typeManager->getDefinitions() as $id => $definition) {
         $instance = $typeManager->createInstance($id, []);
         $options[$id] = $instance->defaultConfiguration();
     }
     $widgetTypeManager = \Drupal::service('plugin.manager.views_slideshow.widget_type');
     $widgetTypes = $widgetTypeManager->getDefinitions();
     foreach (array('top', 'bottom') as $location) {
         foreach ($widgetTypes as $widgetTypeId => $widgetTypeDefinition) {
             $options['widgets']['contains'][$location]['contains'][$widgetTypeId]['contains'] = $widgetTypeManager->createInstance($widgetTypeId, [])->defaultConfiguration();
         }
     }
     return $options;
 }
Ejemplo n.º 19
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     foreach ($this->pluginBag as $plugin) {
         $options += $plugin->defineOptions();
     }
     return $options;
 }
Ejemplo n.º 20
0
 /**
  * Overrides \Drupal\views\Plugin\views\style\StylePluginBase\StylePluginBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['search_fields'] = array('default' => NULL);
     return $options;
 }
Ejemplo n.º 21
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['formats'] = array('default' => array());
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['tab_nav_field'] = array('default' => '');
     return $options;
 }
Ejemplo n.º 23
0
 /**
  * Overrides Drupal\views\Plugin\views\style\StylePluginBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['test_option'] = array('default' => '');
     return $options;
 }
Ejemplo n.º 24
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['grid_padding'] = array('default' => 1);
     return $options;
 }
Ejemplo n.º 25
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['description'] = array('default' => '', 'translatable' => TRUE);
     return $options;
 }
Ejemplo n.º 26
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['geolocation_field'] = ['default' => ''];
     $options['title_field'] = ['default' => ''];
     $options['centre'] = ['default' => ''];
     return $options;
 }
Ejemplo n.º 27
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['calendar_type'] = ['default' => 'month'];
     $options['name_size'] = ['default' => 3];
     $options['mini'] = ['default' => 0];
     $options['with_weekno'] = ['default' => 0];
     $options['multiday_theme'] = ['default' => 1];
     $options['theme_style'] = ['default' => 1];
     $options['max_items'] = ['default' => 0];
     $options['max_items_behavior'] = ['default' => 'more'];
     $options['groupby_times'] = ['default' => 'hour'];
     $options['groupby_times_custom'] = ['default' => ''];
     $options['groupby_field'] = ['default' => ''];
     $options['multiday_hidden'] = ['default' => []];
     $options['granularity_links'] = ['default' => ['day' => '', 'week' => '']];
     return $options;
 }