Permalink
Browse files

fixing the resize of the slideshow images for les_slideshow

  • Loading branch information...
crazystick committed Sep 16, 2012
1 parent a6c5267 commit 4686beefa3bad56864ea451ccd13f4b0eab4f628
@@ -118,16 +118,16 @@ function les_slideshow_field_default_fields() {
'module' => 'image',
'settings' => array(
'image_link' => '',
- 'image_style' => '',
+ 'image_style' => 'slider_image_full',
),
'type' => 'image',
'weight' => '1',
),
'teaser' => array(
- 'label' => 'above',
+ 'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
- 'weight' => 0,
+ 'weight' => '0',
),
),
'entity_type' => 'node',
@@ -251,7 +251,7 @@ function les_slideshow_field_default_fields() {
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
- 'weight' => 0,
+ 'weight' => '0',
),
),
'entity_type' => 'node',
@@ -21,20 +21,20 @@ function les_slideshow_image_default_styles() {
$styles['slider_image_full'] = array(
'name' => 'slider_image_full',
'effects' => array(
- 1 => array(
- 'label' => 'Muuda suurust',
- 'help' => 'Resizing will make images an exact set of dimensions. This may cause images to be stretched or shrunk disproportionately.',
- 'effect callback' => 'image_resize_effect',
+ 2 => array(
+ 'label' => 'Scale and crop',
+ 'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
+ 'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
- 'name' => 'image_resize',
+ 'name' => 'image_scale_and_crop',
'data' => array(
'width' => '590',
'height' => '335',
),
- 'weight' => '1',
+ 'weight' => '-10',
),
),
);
@@ -3,7 +3,7 @@ description = Slideshow for the front page.
core = 7.x
package = LES
php = 5.2.4
-version = 7.x-0.3
+version = 7.x-0.4
project = les_slideshow
dependencies[] = ctools
dependencies[] = features
@@ -76,7 +76,7 @@ function les_slideshow_views_default_views() {
$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartype'] = 0;
$handler->display->display_options['style_options']['views_slideshow_cycle']['cleartypenobg'] = 0;
$handler->display->display_options['row_plugin'] = 'fields';
- /* Väli: Sisu: Slaidi Link */
+ /* Field: Content: Slaidi Link */
$handler->display->display_options['fields']['field_slider_link']['id'] = 'field_slider_link';
$handler->display->display_options['fields']['field_slider_link']['table'] = 'field_data_field_slider_link';
$handler->display->display_options['fields']['field_slider_link']['field'] = 'field_slider_link';
@@ -102,7 +102,7 @@ function les_slideshow_views_default_views() {
$handler->display->display_options['fields']['field_slider_link']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_slider_link']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_slider_link']['field_api_classes'] = 0;
- /* Väli: Sisu: Pealkiri */
+ /* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
@@ -127,7 +127,7 @@ function les_slideshow_views_default_views() {
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['title']['link_to_node'] = 0;
- /* Väli: Sisu: Slaidi Pilt */
+ /* Field: Content: Slaidi Pilt */
$handler->display->display_options['fields']['field_slider_image']['id'] = 'field_slider_image';
$handler->display->display_options['fields']['field_slider_image']['table'] = 'field_data_field_slider_image';
$handler->display->display_options['fields']['field_slider_image']['field'] = 'field_slider_image';
@@ -153,11 +153,11 @@ function les_slideshow_views_default_views() {
$handler->display->display_options['fields']['field_slider_image']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_slider_image']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_slider_image']['settings'] = array(
- 'image_style' => '',
+ 'image_style' => 'slider_image_full',
'image_link' => '',
);
$handler->display->display_options['fields']['field_slider_image']['field_api_classes'] = 0;
- /* Väli: Sisu: Slaidi Pilt */
+ /* Field: Content: Slaidi Pilt */
$handler->display->display_options['fields']['field_slider_image_1']['id'] = 'field_slider_image_1';
$handler->display->display_options['fields']['field_slider_image_1']['table'] = 'field_data_field_slider_image';
$handler->display->display_options['fields']['field_slider_image_1']['field'] = 'field_slider_image';
@@ -184,23 +184,23 @@ function les_slideshow_views_default_views() {
$handler->display->display_options['fields']['field_slider_image_1']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_slider_image_1']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_slider_image_1']['settings'] = array(
- 'image_style' => '',
+ 'image_style' => 'slider_image_thumb',
'image_link' => '',
);
$handler->display->display_options['fields']['field_slider_image_1']['field_api_classes'] = 0;
- /* Lühike kriteerium: Sisu: Postituse kuupäev */
+ /* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
- /* Filter criterion: Sisu: Avaldatud */
+ /* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
- /* Filter criterion: Sisu: Liik */
+ /* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
@@ -213,13 +213,14 @@ function les_slideshow_views_default_views() {
$translatables['slideshow'] = array(
t('Master'),
t('veel'),
- t('Rakenda'),
+ t('Apply'),
t('Lähtesta'),
t('Sorteerimise alus'),
t('Kasvav'),
t('Kahanev'),
t('[field_slider_link]'),
t('Block'),
+ t('more'),
);
$export['slideshow'] = $view;

0 comments on commit 4686bee

Please sign in to comment.