Skip to content

Commit

Permalink
Merge pull request #6 from tkuldeep/change_image_style_name
Browse files Browse the repository at this point in the history
references #1
  • Loading branch information
sumeetpareek committed Aug 30, 2013
2 parents eb5f3b4 + be12828 commit b64f27f
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,34 @@ function f_delhi_panel_layout_ctools_plugin_api() {
return array("version" => "1");
}
}

/**
* Implements hook_image_default_styles().
*/
function f_delhi_panel_layout_image_default_styles() {
$styles = array();

// Exported image style: 230_x_150.
$styles['230_x_150'] = array(
'name' => '230_x_150',
'effects' => array(
1 => array(
'label' => 'Resize',
'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',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_resize',
'data' => array(
'width' => '230',
'height' => '150',
),
'weight' => '1',
),
),
);

return $styles;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ description = Contain Panelizer, AAP Candidate Layout, Delhi Front Layout
core = 7.x
package = Delhi Site Theme
php = 5.2.4
version = 7.x-1.0
version = 7.x-2.0
project = f_delhi_panel_layout
dependencies[] = ctools
dependencies[] = image
dependencies[] = page_manager
dependencies[] = panelizer
dependencies[] = panels
Expand All @@ -15,6 +16,7 @@ features[ctools][] = panelizer:panelizer:1
features[ctools][] = panels:layouts:1
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:1
features[image][] = 230_x_150
features[page_manager_handlers][] = site_template_panel_context_5
features[panelizer_defaults][] = node:candidate_details_page:default:default
features[panelizer_defaults][] = node:constituency_page:default:default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function f_delhi_panel_layout_panelizer_defaults() {
);
$pane->css = array(
'css_id' => '',
'css_class' => 'aap-delhi-region',
'css_class' => 'aap-delhi-region container-1',
);
$pane->extras = array();
$pane->position = 0;
Expand Down Expand Up @@ -239,7 +239,7 @@ function f_delhi_panel_layout_panelizer_defaults() {
);
$pane->css = array(
'css_id' => '',
'css_class' => 'aap-delhi-region',
'css_class' => 'aap-delhi-region container-2',
);
$pane->extras = array();
$pane->position = 1;
Expand Down Expand Up @@ -1026,10 +1026,12 @@ function f_delhi_panel_layout_panelizer_defaults() {
'delta_offset' => '0',
'delta_reversed' => FALSE,
'formatter_settings' => array(
'image_style' => '',
'image_style' => 'constituency_image',
'image_link' => '',
),
'context' => 'panelizer',
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
Expand Down Expand Up @@ -1065,7 +1067,7 @@ function f_delhi_panel_layout_panelizer_defaults() {
);
$pane->css = array(
'css_id' => '',
'css_class' => 'aap-delhi-region',
'css_class' => 'aap-delhi-region container-1',
);
$pane->extras = array();
$pane->position = 0;
Expand Down Expand Up @@ -1094,7 +1096,7 @@ function f_delhi_panel_layout_panelizer_defaults() {
);
$pane->css = array(
'css_id' => '',
'css_class' => 'aap-delhi-region',
'css_class' => 'aap-delhi-region container-2',
);
$pane->extras = array();
$pane->position = 1;
Expand Down
Loading

0 comments on commit b64f27f

Please sign in to comment.