|
25 | 25 |
|
26 | 26 | $this->data['header'] = $this->t('selectidp'); |
27 | 27 | $this->data['header'] = $this->t($this->data['header']); |
28 | | -$this->data['jquery'] = ['core' => true, 'ui' => true, 'css' => true]; |
| 28 | +$this->data['jquery'] = ['core' => true, 'ui' => false, 'css' => false]; |
29 | 29 |
|
30 | | - |
31 | | -$this->data['head'] = '<script type="text/javascript" src="'. |
32 | | - SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'."\n"; |
33 | | -$this->data['head'] .= '<script type="text/javascript" src="'. |
34 | | - SimpleSAML\Module::getModuleURL('discopower/assets/js/' . $this->data['score'].'.js') . '"></script>'."\n"; |
35 | | - |
36 | | -$this->data['head'] .= $this->data['search']; |
| 30 | +$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="'. |
| 31 | + SimpleSAML\Module::getModuleURL('discopower/assets/css/uitheme1.12.1/jquery-ui.min.css').'" />'; |
37 | 32 |
|
38 | 33 | if (!empty($faventry)) $this->data['autofocus'] = 'favouritesubmit'; |
39 | 34 |
|
40 | 35 | $this->includeAtTemplateBase('includes/header.php'); |
41 | 36 |
|
| 37 | +$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'. |
| 38 | + SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery-1.12.4.min.js').'"></script>'."\n"; |
| 39 | +$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'. |
| 40 | + SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery-ui-1.12.1.min.js').'"></script>'."\n"; |
| 41 | +$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'. |
| 42 | + SimpleSAML\Module::getModuleURL('discopower/assets/js/jquery.livesearch.js').'"></script>'."\n"; |
| 43 | +$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'. |
| 44 | + SimpleSAML\Module::getModuleURL('discopower/assets/js/tablist.js').'"></script>'."\n"; |
| 45 | +$this->data['htmlinject']['htmlContentPost'][] = '<script type="text/javascript" src="'. |
| 46 | + SimpleSAML\Module::getModuleURL('discopower/assets/js/' . $this->data['score'].'.js') . '"></script>'."\n"; |
| 47 | + |
42 | 48 | function showEntry($t, $metadata, $favourite = FALSE, $withIcon = FALSE) { |
43 | 49 |
|
44 | 50 | $basequerystring = '?' . |
@@ -134,7 +140,7 @@ function getTranslatedName($t, $metadata) { |
134 | 140 | <input type="hidden" name="returnIDParam" value="' . htmlspecialchars($this->data['returnIDParam']) . '" /> |
135 | 141 | <input type="hidden" name="idpentityid" value="' . htmlspecialchars($faventry['entityid']) . '" /> |
136 | 142 | <input type="submit" name="formsubmit" id="favouritesubmit" class="ssp-btn ssp-btn__action text-uppercase" value="' |
137 | | - . $this->t('login_at') . ' ' . htmlspecialchars(getTranslatedName($this, $faventry)) . '" /> |
| 143 | + . $this->t('{themevanilla:discopower:login_with}') . ' ' . htmlspecialchars(getTranslatedName($this, $faventry)) . '" /> |
138 | 144 | </form> |
139 | 145 | </div> |
140 | 146 | <div class="row text-center ssp-modal-or">' . (strpos($this->t('{themevanilla:discopower:or}'), 'not translated') === FALSE ? $this->t('{themevanilla:discopower:or}') : '') . '</div> |
@@ -198,7 +204,7 @@ function getTranslatedName($t, $metadata) { |
198 | 204 | $list_items .= (showEntry($this, $idpentry, FALSE, TRUE)); |
199 | 205 | } |
200 | 206 | } |
201 | | - if($idps_in_searchable_list_index < $idps_with_logos_index) { |
| 207 | + if(!empty($idps_in_searchable_list_index) && $idps_in_searchable_list_index < $idps_with_logos_index) { |
202 | 208 | $or = '<div class="text-center ssp-line-or-line ssp-line-or-line--top"><span class="ssp-line-or-line__or">' . (strpos($this->t('{themevanilla:discopower:or}'), 'not translated') === FALSE ? $this->t('{themevanilla:discopower:or}') : '') . '</span></div>'; |
203 | 209 | echo $top . $or . $list_open . $list_items . $close_list . $close; |
204 | 210 | } |
|
0 commit comments