PURL breaks Galleria because the theme views_slideshow_galleria.theme.inc file uses the url function around line 103, which PURL rewrites. Simply adding array('purl' => array('disabled' => TRUE)) as a second parameter to the 3 url function calls when setting themeURL resolves this. See below.

  // Set themeURL to the path to the JS theme file for the galleria.
  if ($options['custom_theme_options']['custom_theme'] && $options['custom_theme_options']['theme_path']) {
    $settings['theme'] = check_plain($options['custom_theme_options']['custom_theme']);
    $settings['themeURL'] = url($options['custom_theme_options']['theme_path'], array('purl' => array('disabled' => true)));
  }
  else if ($settings['theme'] && !$settings['custom_theme_options']['theme_path']) {
    $settings['themeURL'] = url($path ."/themes/{$settings['theme']}/galleria.{$settings['theme']}.js", array('purl' => array('disabled' => true)));
  }
  else if ($settings['custom_theme_options']['theme_path']) {
    // We'll allow a custom theme path to override the default.
    $settings['themeURL'] = url($options['custom_theme_options']['theme_path'], array('purl' => array('disabled' => true)));
  }
  else {
    // No theme specified; we assume they're using a Drupal theme for styling.
    $settings['themeURL'] = FALSE;
  }
CommentFileSizeAuthor
#1 views_slideshow_galleria-907296.patch1.76 KBmparker17

Comments

mparker17’s picture

Status: Active » Needs review
StatusFileSize
new1.76 KB

Created a patch based on @pdrake 's code block in the description.