diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index 5cae913..5c69d52 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -1750,6 +1750,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); break; case 'analyze-theme': + $this->getThemeInformation(); $form['#title'] .= t('Theming information'); if ($theme = \Drupal::request()->request->get('theme')) { $this->theme = $theme; @@ -1905,6 +1906,7 @@ public function buildOptionsForm(&$form, &$form_state) { $form_state['ok_button'] = TRUE; break; case 'analyze-theme-display': + $this->getThemeInformation(); $form['#title'] .= t('Theming information (display)'); $output = '
' . t('Back to !info.', array('!info' => $this->optionLink(t('theming information'), 'analyze-theme'))) . '
'; @@ -1913,7 +1915,7 @@ public function buildOptionsForm(&$form, &$form_state) { } else { $output .= '' . t('This is the default theme template used for this display.') . '
'; - $output .= '' . check_plain(file_get_contents('./' . $this->definition['theme_path'] . '/' . strtr($this->definition['theme'], '_', '-') . '.tpl.php')) . ''; + $output .= '
' . check_plain(file_get_contents('./' . $this->definition['theme_path'] . '/' . strtr($this->definition['theme'], '_', '-') . $this->theme_extension)) . ''; } $form['analysis'] = array( @@ -1923,6 +1925,7 @@ public function buildOptionsForm(&$form, &$form_state) { $form_state['ok_button'] = TRUE; break; case 'analyze-theme-style': + $this->getThemeInformation(); $form['#title'] .= t('Theming information (style)'); $output = '
' . t('Back to !info.', array('!info' => $this->optionLink(t('theming information'), 'analyze-theme'))) . '
'; @@ -1933,7 +1936,7 @@ public function buildOptionsForm(&$form, &$form_state) { } else { $output .= '' . t('This is the default theme template used for this style.') . '
'; - $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.tpl.php')) . ''; + $output .= '
' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . $this->theme_extension)) . ''; } $form['analysis'] = array( @@ -1943,6 +1946,7 @@ public function buildOptionsForm(&$form, &$form_state) { $form_state['ok_button'] = TRUE; break; case 'analyze-theme-row': + $this->getThemeInformation(); $form['#title'] .= t('Theming information (row style)'); $output = '
' . t('Back to !info.', array('!info' => $this->optionLink(t('theming information'), 'analyze-theme'))) . '
'; @@ -1953,7 +1957,7 @@ public function buildOptionsForm(&$form, &$form_state) { } else { $output .= '' . t('This is the default theme template used for this row style.') . '
'; - $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.tpl.php')) . ''; + $output .= '
' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . $this->theme_extension)) . ''; } $form['analysis'] = array( @@ -1963,6 +1967,7 @@ public function buildOptionsForm(&$form, &$form_state) { $form_state['ok_button'] = TRUE; break; case 'analyze-theme-field': + $this->getThemeInformation(); $form['#title'] .= t('Theming information (row style)'); $output = '
' . t('Back to !info.', array('!info' => $this->optionLink(t('theming information'), 'analyze-theme'))) . '
'; @@ -1970,7 +1975,7 @@ public function buildOptionsForm(&$form, &$form_state) { // Field templates aren't registered the normal way...and they're always // this one, anyhow. - $output .= '' . check_plain(file_get_contents(drupal_get_path('module', 'views') . '/templates/views-view-field.tpl.php')) . ''; + $output .= '
' . check_plain(file_get_contents(drupal_get_path('module', 'views') . '/templates/views-view-field' . $this->theme_extension)) . ''; $form['analysis'] = array( '#markup' => '