Skip to content
Snippets Groups Projects
Commit 6b410774 authored by Chris Gross's avatar Chris Gross
Browse files

7.x-1.4 Release Candidate 3

parent 3c7f25d6
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ function ocio_faqs_preprocess_panels_pane(&$vars) {
$pane = $vars['pane'];
if (!empty($pane->subtype) && in_array($pane->subtype, array('faq-panel_pane_1', 'faq-panel_pane_2'))) {
$vars['title_attributes_array']['id'][0] = 'faq-set-' . drupal_html_class($vars['title']);
$vars['title_attributes_array']['id'][0] = drupal_html_class($vars['title']);
}
}
......@@ -125,12 +125,12 @@ function ocio_faqs_preprocess_views_view_fields(&$vars) {
// Anchor tags for list and accordion panes/pages
if (in_array($view->current_display, array('panel_pane_1', 'panel_pane_2', 'page', 'page_2'))) {
$vars['fields']['title']->wrapper_prefix .= '<span id="faq-' . drupal_html_class($vars['fields']['title']->raw) . '">';
$vars['fields']['title']->wrapper_prefix .= '<span id="' . drupal_html_class($vars['fields']['title']->raw) . '">';
$vars['fields']['title']->wrapper_suffix = '</span>' . $vars['fields']['title']->wrapper_suffix;
}
// Anchor links for table of contents panes and attachments
elseif (in_array($view->current_display, array('panel_pane_3', 'attachment_1'))) {
$vars['fields']['title']->wrapper_prefix .= '<a href="#faq-' . drupal_html_class($vars['fields']['title']->raw) . '">';
$vars['fields']['title']->wrapper_prefix .= '<a href="#' . drupal_html_class($vars['fields']['title']->raw) . '">';
$vars['fields']['title']->wrapper_suffix = '</a>' . $vars['fields']['title']->wrapper_suffix;
}
}
......
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