Browse code

Use different title tag text and fix typo

Benjamin Roth authored on25/08/2016 15:30:03
Showing4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+/**
4
+ * Pagelist for Contao
5
+ *
6
+ * Copyright (c) 2015 Benjamin Roth
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+/**
12
+ * Misc
13
+ */
14
+$GLOBALS['TL_LANG']['MSC']['gotoPage'] = 'Zur Seite &quot;%s&quot;';
0 15
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+/**
4
+ * Pagelist for Contao
5
+ *
6
+ * Copyright (c) 2015 Benjamin Roth
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+/**
12
+ * Misc
13
+ */
14
+$GLOBALS['TL_LANG']['MSC']['gotoPage'] = 'Open page &quot;%s&quot;';
... ...
@@ -226,7 +226,7 @@ class ModulePagelist extends Module
226 226
 
227 227
 				$row['headline'] = $objSubpages->title;
228 228
 				$row['text'] = $objSubpages->teaser;
229
-        $row['readMore'] = specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['readMore'], $objSubpages->title));
229
+        $row['readMore'] = specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['gotoPage'], $objSubpages->title));
230 230
         $row['more'] = $GLOBALS['TL_LANG']['MSC']['more'];
231 231
 
232 232
 				$items[] = $row;
... ...
@@ -19,7 +19,7 @@
19 19
 <h2><?php echo $item['headline']; ?></h2>
20 20
 <?php endif; ?>
21 21
 
22
-<?php echo $item['text']; ?> <a href="<?php echo $item['href']; ?>" title="<?php echo $item['readmore']; ?>" class="more handwritten-small"><?php echo $item['more']; ?> <span class="invisible"><?php echo $item['more']; ?></span></a>
22
+<?php echo $item['text']; ?> <a href="<?php echo $item['href']; ?>" title="<?php echo $item['readMore']; ?>" class="more handwritten-small"><?php echo $item['more']; ?> <span class="invisible"><?php echo $item['more']; ?></span></a>
23 23
 </li>
24 24
 <?php endforeach; ?>
25 25
 </ul>