Skip to content
Snippets Groups Projects
Commit a8b5913f authored by Chris Shantz's avatar Chris Shantz
Browse files

quicklinks paragraph work so far...

parent ebdd3c71
No related branches found
No related tags found
No related merge requests found
{% include '@organisms/single-page/quicklinks-block/quicklinks-block.twig' with {
'anchor_link': anchor_link,
'display_title': display_title,
'title': content.field_uw_block_title|field_value,
'quicklinks': content.field_uw_quicklink
} %}
\ No newline at end of file
...@@ -109,6 +109,39 @@ function uw_fdsu_theme_resp_preprocess_paragraph(&$variables) { ...@@ -109,6 +109,39 @@ function uw_fdsu_theme_resp_preprocess_paragraph(&$variables) {
$variables['display_title'] = "Off"; $variables['display_title'] = "Off";
} }
break;
case "uw_para_quicklinks_block":
$display_title = _uw_fdsu_theme_resp_get_field_value_from_paragraph($variables['paragraph'], 'field_uw_display_title');
// If the title is to be displayed, set variable to On.
if ($display_title) {
$variables['display_title'] = "On";
}
// If the title is not to be displayed, set variable to Off.
else {
$variables['display_title'] = "Off";
}
// Set the anchor link.
$variables['anchor_link'] = _uw_fdsu_theme_resp_get_field_value_from_paragraph($variables['paragraph'], 'field_uw_anchor_link');
// Set the responsive image variables.
// _uw_fdsu_theme_resp_add_responsive_image_variables($variables, 'field_uw_icon_image', 'uw_resp_is_marketing_item');
// Set link section title
//$variables['quicklinks'] = _uw_fdsu_theme_resp_get_field_value_from_paragraph($variables['paragraph'], array(
// [0] => [
// 'img_src' => 'field_uw_icon_image',
// 'link_section_title' => 'field_uw_link_section_title',
// 'links' => 'field_uw_quicklinks_links',
//]);
//vardumper($variables['content']['field_uw_quicklink']);
$sources= _uw_fdsu_theme_resp_add_responsive_image_variables($variables['content']['field_uw_quicklink'][0], 'field_uw_icon_image', 'uw_resp_is_marketing_item', TRUE);
vardumper($sources);
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment