Merge lp:~henrik-lochmann/goobi-presentation/bug-802839 into lp:~slub.team/goobi-presentation/old-bzr-trunk
- bug-802839
- Merge into old-bzr-trunk
Proposed by
Henrik Lochmann
Status: | Merged |
---|---|
Approved by: | Sebastian Meyer |
Approved revision: | 124 |
Merged at revision: | 125 |
Proposed branch: | lp:~henrik-lochmann/goobi-presentation/bug-802839 |
Merge into: | lp:~slub.team/goobi-presentation/old-bzr-trunk |
Diff against target: |
463 lines (+388/-0) 8 files modified
dlf/ext_autoload.php (+1/-0) dlf/ext_localconf.php (+2/-0) dlf/ext_tables.php (+9/-0) dlf/locallang.xml (+2/-0) dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php (+252/-0) dlf/plugins/pagegrid/flexform.xml (+72/-0) dlf/plugins/pagegrid/locallang.xml (+33/-0) dlf/plugins/pagegrid/template.tmpl (+17/-0) |
To merge this branch: | bzr merge lp:~henrik-lochmann/goobi-presentation/bug-802839 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastian Meyer | Approve | ||
Review via email: mp+126250@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Sebastian Meyer (sebastian-meyer) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'dlf/ext_autoload.php' | |||
2 | --- dlf/ext_autoload.php 2012-08-22 19:22:29 +0000 | |||
3 | +++ dlf/ext_autoload.php 2012-09-25 14:14:21 +0000 | |||
4 | @@ -47,6 +47,7 @@ | |||
5 | 47 | 'tx_dlf_metadata' => $extensionPath.'plugins/metadata/class.tx_dlf_metadata.php', | 47 | 'tx_dlf_metadata' => $extensionPath.'plugins/metadata/class.tx_dlf_metadata.php', |
6 | 48 | 'tx_dlf_navigation' => $extensionPath.'plugins/navigation/class.tx_dlf_navigation.php', | 48 | 'tx_dlf_navigation' => $extensionPath.'plugins/navigation/class.tx_dlf_navigation.php', |
7 | 49 | 'tx_dlf_oai' => $extensionPath.'plugins/oai/class.tx_dlf_oai.php', | 49 | 'tx_dlf_oai' => $extensionPath.'plugins/oai/class.tx_dlf_oai.php', |
8 | 50 | 'tx_dlf_pagegrid' => $extensionPath.'plugins/pagegrid/class.tx_dlf_pagegrid.php', | ||
9 | 50 | 'tx_dlf_pageview' => $extensionPath.'plugins/pageview/class.tx_dlf_pageview.php', | 51 | 'tx_dlf_pageview' => $extensionPath.'plugins/pageview/class.tx_dlf_pageview.php', |
10 | 51 | 'tx_dlf_search' => $extensionPath.'plugins/search/class.tx_dlf_search.php', | 52 | 'tx_dlf_search' => $extensionPath.'plugins/search/class.tx_dlf_search.php', |
11 | 52 | 'tx_dlf_search_suggest' => $extensionPath.'plugins/search/class.tx_dlf_search_suggest.php', | 53 | 'tx_dlf_search_suggest' => $extensionPath.'plugins/search/class.tx_dlf_search_suggest.php', |
12 | 53 | 54 | ||
13 | === modified file 'dlf/ext_localconf.php' | |||
14 | --- dlf/ext_localconf.php 2012-08-22 19:22:29 +0000 | |||
15 | +++ dlf/ext_localconf.php 2012-09-25 14:14:21 +0000 | |||
16 | @@ -37,6 +37,8 @@ | |||
17 | 37 | 37 | ||
18 | 38 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/oai/class.tx_dlf_oai.php', '_oai', 'list_type', FALSE); | 38 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/oai/class.tx_dlf_oai.php', '_oai', 'list_type', FALSE); |
19 | 39 | 39 | ||
20 | 40 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/pagegrid/class.tx_dlf_pagegrid.php', '_pagegrid', 'list_type', TRUE); | ||
21 | 41 | |||
22 | 40 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/pageview/class.tx_dlf_pageview.php', '_pageview', 'list_type', TRUE); | 42 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/pageview/class.tx_dlf_pageview.php', '_pageview', 'list_type', TRUE); |
23 | 41 | 43 | ||
24 | 42 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/search/class.tx_dlf_search.php', '_search', 'list_type', TRUE); | 44 | t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/search/class.tx_dlf_search.php', '_search', 'list_type', TRUE); |
25 | 43 | 45 | ||
26 | === modified file 'dlf/ext_tables.php' | |||
27 | --- dlf/ext_tables.php 2012-09-15 16:05:08 +0000 | |||
28 | +++ dlf/ext_tables.php 2012-09-25 14:14:21 +0000 | |||
29 | @@ -276,6 +276,15 @@ | |||
30 | 276 | t3lib_extMgm::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_oai', $_EXTKEY.'_oai'), 'list_type'); | 276 | t3lib_extMgm::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_oai', $_EXTKEY.'_oai'), 'list_type'); |
31 | 277 | 277 | ||
32 | 278 | t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_oai', 'FILE:EXT:'.$_EXTKEY.'/plugins/oai/flexform.xml'); | 278 | t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_oai', 'FILE:EXT:'.$_EXTKEY.'/plugins/oai/flexform.xml'); |
33 | 279 | |||
34 | 280 | // Plugin "pagegrid". | ||
35 | 281 | $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pagegrid'] = 'layout,select_key,pages,recursive'; | ||
36 | 282 | |||
37 | 283 | $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pagegrid'] = 'pi_flexform'; | ||
38 | 284 | |||
39 | 285 | t3lib_extMgm::addPlugin(array('LLL:EXT:dlf/locallang.xml:tt_content.dlf_pagegrid', $_EXTKEY.'_pagegrid'), 'list_type'); | ||
40 | 286 | |||
41 | 287 | t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pagegrid', 'FILE:EXT:'.$_EXTKEY.'/plugins/pagegrid/flexform.xml'); | ||
42 | 279 | 288 | ||
43 | 280 | // Plugin "pageview". | 289 | // Plugin "pageview". |
44 | 281 | $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pageview'] = 'layout,select_key,pages,recursive'; | 290 | $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pageview'] = 'layout,select_key,pages,recursive'; |
45 | 282 | 291 | ||
46 | === modified file 'dlf/locallang.xml' | |||
47 | --- dlf/locallang.xml 2012-09-17 08:23:30 +0000 | |||
48 | +++ dlf/locallang.xml 2012-09-25 14:14:21 +0000 | |||
49 | @@ -116,6 +116,7 @@ | |||
50 | 116 | <label index="tt_content.dlf_metadata">DLF: Metadata</label> | 116 | <label index="tt_content.dlf_metadata">DLF: Metadata</label> |
51 | 117 | <label index="tt_content.dlf_navigation">DLF: Navigation</label> | 117 | <label index="tt_content.dlf_navigation">DLF: Navigation</label> |
52 | 118 | <label index="tt_content.dlf_oai">DLF: OAI-PMH Interface</label> | 118 | <label index="tt_content.dlf_oai">DLF: OAI-PMH Interface</label> |
53 | 119 | <label index="tt_content.dlf_pagegrid">DLF: Page Grid</label> | ||
54 | 119 | <label index="tt_content.dlf_pageview">DLF: Page View</label> | 120 | <label index="tt_content.dlf_pageview">DLF: Page View</label> |
55 | 120 | <label index="tt_content.dlf_search">DLF: Search</label> | 121 | <label index="tt_content.dlf_search">DLF: Search</label> |
56 | 121 | <label index="tt_content.dlf_statistics">DLF: Statistics</label> | 122 | <label index="tt_content.dlf_statistics">DLF: Statistics</label> |
57 | @@ -277,6 +278,7 @@ | |||
58 | 277 | <label index="tt_content.dlf_metadata">DLF: Metadaten</label> | 278 | <label index="tt_content.dlf_metadata">DLF: Metadaten</label> |
59 | 278 | <label index="tt_content.dlf_navigation">DLF: Navigation</label> | 279 | <label index="tt_content.dlf_navigation">DLF: Navigation</label> |
60 | 279 | <label index="tt_content.dlf_oai">DLF: OAI-PMH-Schnittstelle</label> | 280 | <label index="tt_content.dlf_oai">DLF: OAI-PMH-Schnittstelle</label> |
61 | 281 | <label index="tt_content.dlf_pagegrid">DLF: Seiten-Raster</label> | ||
62 | 280 | <label index="tt_content.dlf_pageview">DLF: Seitenansicht</label> | 282 | <label index="tt_content.dlf_pageview">DLF: Seitenansicht</label> |
63 | 281 | <label index="tt_content.dlf_search">DLF: Suche</label> | 283 | <label index="tt_content.dlf_search">DLF: Suche</label> |
64 | 282 | <label index="tt_content.dlf_statistics">DLF: Statistik</label> | 284 | <label index="tt_content.dlf_statistics">DLF: Statistik</label> |
65 | 283 | 285 | ||
66 | === added directory 'dlf/plugins/pagegrid' | |||
67 | === added file 'dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php' | |||
68 | --- dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php 1970-01-01 00:00:00 +0000 | |||
69 | +++ dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php 2012-09-25 14:14:21 +0000 | |||
70 | @@ -0,0 +1,252 @@ | |||
71 | 1 | <?php | ||
72 | 2 | /*************************************************************** | ||
73 | 3 | * Copyright notice | ||
74 | 4 | * | ||
75 | 5 | * (c) 2012 Henrik Lochmann <dev@mentalmotive.com> | ||
76 | 6 | * All rights reserved | ||
77 | 7 | * | ||
78 | 8 | * This script is part of the TYPO3 project. The TYPO3 project is | ||
79 | 9 | * free software; you can redistribute it and/or modify | ||
80 | 10 | * it under the terms of the GNU General Public License as published by | ||
81 | 11 | * the Free Software Foundation; either version 2 of the License, or | ||
82 | 12 | * (at your option) any later version. | ||
83 | 13 | * | ||
84 | 14 | * The GNU General Public License can be found at | ||
85 | 15 | * http://www.gnu.org/copyleft/gpl.html. | ||
86 | 16 | * | ||
87 | 17 | * This script is distributed in the hope that it will be useful, | ||
88 | 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
89 | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
90 | 20 | * GNU General Public License for more details. | ||
91 | 21 | * | ||
92 | 22 | * This copyright notice MUST APPEAR in all copies of the script! | ||
93 | 23 | ***************************************************************/ | ||
94 | 24 | |||
95 | 25 | /** | ||
96 | 26 | * [CLASS/FUNCTION INDEX of SCRIPT] | ||
97 | 27 | */ | ||
98 | 28 | |||
99 | 29 | /** | ||
100 | 30 | * Plugin 'DLF: Page Grid' for the 'dlf' extension. | ||
101 | 31 | * | ||
102 | 32 | * @author Henrik Lochmann <dev@mentalmotive.com> | ||
103 | 33 | * @copyright Copyright (c) 2012, Zeutschel GmbH | ||
104 | 34 | * @package TYPO3 | ||
105 | 35 | * @subpackage tx_dlf | ||
106 | 36 | * @access public | ||
107 | 37 | */ | ||
108 | 38 | class tx_dlf_pagegrid extends tx_dlf_plugin { | ||
109 | 39 | |||
110 | 40 | public $scriptRelPath = 'plugins/pagegrid/class.tx_dlf_pagegrid.php'; | ||
111 | 41 | |||
112 | 42 | /** | ||
113 | 43 | * Renders thumbnail and page number for one page of the currently shown document. | ||
114 | 44 | * | ||
115 | 45 | * @access protected | ||
116 | 46 | * | ||
117 | 47 | * @param integer $number: The page to render | ||
118 | 48 | * @param string $template: Parsed template subpart | ||
119 | 49 | * | ||
120 | 50 | * @return string The rendered entry ready for output | ||
121 | 51 | */ | ||
122 | 52 | protected function getEntry($number, $template) { | ||
123 | 53 | |||
124 | 54 | $markerArray = array(); | ||
125 | 55 | |||
126 | 56 | $thumbnailFile = $this->doc->getFileLocation($this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['files'][strtolower($this->conf['fileGrpThumbs'])]); | ||
127 | 57 | |||
128 | 58 | $markerArray['###THUMBNAIL###'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ( | ||
129 | 59 | 'page' => $number, | ||
130 | 60 | 'pointer' => NULL // reset pointer: page has priority on page change | ||
131 | 61 | ), TRUE, FALSE, $this->conf['targetPid']).'"><img src="'.$thumbnailFile.'" /></a>'; | ||
132 | 62 | |||
133 | 63 | $markerArray['###PAGE###'] = sprintf($this->pi_getLL('page'), $number); | ||
134 | 64 | |||
135 | 65 | return $this->cObj->substituteMarkerArray($template, $markerArray); | ||
136 | 66 | |||
137 | 67 | } | ||
138 | 68 | |||
139 | 69 | /** | ||
140 | 70 | * Renders the page browser, which shows itemCount pages beside the current page. | ||
141 | 71 | * | ||
142 | 72 | * @access protected | ||
143 | 73 | * | ||
144 | 74 | * @param integer $itemCount: The number of page links to be shown beside the currently selected page | ||
145 | 75 | * | ||
146 | 76 | * @return string The rendered page browser ready for output | ||
147 | 77 | */ | ||
148 | 78 | protected function getPagebrowser($itemCount = 3) { | ||
149 | 79 | |||
150 | 80 | // Get overall number of pages. | ||
151 | 81 | $maxPages = intval(ceil($this->doc->numPages / $this->conf['limit'])); | ||
152 | 82 | |||
153 | 83 | // Return empty pagebrowser if there is just one page. | ||
154 | 84 | if ($maxPages < 2) { | ||
155 | 85 | |||
156 | 86 | return ''; | ||
157 | 87 | |||
158 | 88 | } | ||
159 | 89 | |||
160 | 90 | // Get separator. | ||
161 | 91 | $separator = $this->pi_getLL('separator'); | ||
162 | 92 | |||
163 | 93 | // Add link to previous page. | ||
164 | 94 | if ($this->piVars['pointer'] > 0) { | ||
165 | 95 | |||
166 | 96 | $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('firstPage'), array ('pointer' => 0), TRUE); | ||
167 | 97 | |||
168 | 98 | $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage'), array ('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator; | ||
169 | 99 | |||
170 | 100 | } else { | ||
171 | 101 | |||
172 | 102 | $output = $this->pi_getLL('firstPage'); | ||
173 | 103 | |||
174 | 104 | $output .= $this->pi_getLL('prevPage').$separator; | ||
175 | 105 | |||
176 | 106 | } | ||
177 | 107 | |||
178 | 108 | $lowerLimit = max($this->piVars['pointer'] - $itemCount, 0); | ||
179 | 109 | |||
180 | 110 | if ($this->piVars['pointer'] + $itemCount >= $maxPages) { | ||
181 | 111 | |||
182 | 112 | $lowerLimit -= max(($this->piVars['pointer'] + $itemCount) - ($maxPages - 1), 0); | ||
183 | 113 | |||
184 | 114 | } | ||
185 | 115 | |||
186 | 116 | |||
187 | 117 | for ($i = $lowerLimit; $i < ($lowerLimit + 2 * $itemCount + 1) && $i < $maxPages; $i++) { | ||
188 | 118 | |||
189 | 119 | if ($this->piVars['pointer'] != $i) { | ||
190 | 120 | |||
191 | 121 | $output .= $this->pi_linkTP_keepPIvars(sprintf('%d', $i + 1), array ('pointer' => $i), TRUE).$separator; | ||
192 | 122 | |||
193 | 123 | } else { | ||
194 | 124 | |||
195 | 125 | $output .= '<strong>'.sprintf('%d', $i + 1).'</strong>'.$separator; | ||
196 | 126 | |||
197 | 127 | } | ||
198 | 128 | |||
199 | 129 | } | ||
200 | 130 | |||
201 | 131 | // Add link to next page. | ||
202 | 132 | if ($this->piVars['pointer'] < $maxPages - 1) { | ||
203 | 133 | |||
204 | 134 | $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage'), array ('pointer' => $this->piVars['pointer'] + 1), TRUE); | ||
205 | 135 | |||
206 | 136 | $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('lastPage'), array ('pointer' => $maxPages - 1), TRUE); | ||
207 | 137 | |||
208 | 138 | } else { | ||
209 | 139 | |||
210 | 140 | $output .= $this->pi_getLL('nextPage'); | ||
211 | 141 | |||
212 | 142 | $output .= $this->pi_getLL('lastPage'); | ||
213 | 143 | |||
214 | 144 | } | ||
215 | 145 | |||
216 | 146 | return $output; | ||
217 | 147 | |||
218 | 148 | } | ||
219 | 149 | |||
220 | 150 | /** | ||
221 | 151 | * The main method of the PlugIn | ||
222 | 152 | * | ||
223 | 153 | * @access public | ||
224 | 154 | * | ||
225 | 155 | * @param string $content: The PlugIn content | ||
226 | 156 | * @param array $conf: The PlugIn configuration | ||
227 | 157 | * | ||
228 | 158 | * @return string The content that is displayed on the website | ||
229 | 159 | */ | ||
230 | 160 | public function main($content, $conf) { | ||
231 | 161 | |||
232 | 162 | $this->init($conf); | ||
233 | 163 | |||
234 | 164 | // Don't cache the output. | ||
235 | 165 | $this->setCache(FALSE); | ||
236 | 166 | |||
237 | 167 | $this->loadDocument(); | ||
238 | 168 | |||
239 | 169 | if ($this->doc === NULL || $this->doc->numPages < 1) { | ||
240 | 170 | |||
241 | 171 | // Quit without doing anything if required variables are not set. | ||
242 | 172 | return $content; | ||
243 | 173 | |||
244 | 174 | } else { | ||
245 | 175 | |||
246 | 176 | // Set default values for page if not set. | ||
247 | 177 | $this->piVars['pointer'] = t3lib_div::intInRange($this->piVars['pointer'], 0, $this->doc->numPages, 0); | ||
248 | 178 | |||
249 | 179 | } | ||
250 | 180 | |||
251 | 181 | // Load template file. | ||
252 | 182 | if (!empty($this->conf['templateFile'])) { | ||
253 | 183 | |||
254 | 184 | $this->template = $this->cObj->getSubpart($this->cObj->fileResource($this->conf['templateFile']), '###TEMPLATE###'); | ||
255 | 185 | |||
256 | 186 | } else { | ||
257 | 187 | |||
258 | 188 | $this->template = $this->cObj->getSubpart($this->cObj->fileResource('EXT:dlf/plugins/pagegrid/template.tmpl'), '###TEMPLATE###'); | ||
259 | 189 | |||
260 | 190 | } | ||
261 | 191 | |||
262 | 192 | $entryTemplate = $this->cObj->getSubpart($this->template, '###ENTRY###'); | ||
263 | 193 | |||
264 | 194 | if (empty($entryTemplate)) { | ||
265 | 195 | |||
266 | 196 | if (TYPO3_DLOG) { | ||
267 | 197 | |||
268 | 198 | t3lib_div::devLog('[tx_dlf_pagegrid->main('.$content.', [data])] Incomplete plugin configuration: entry template missing.', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf); | ||
269 | 199 | |||
270 | 200 | } | ||
271 | 201 | |||
272 | 202 | // Quit without doing anything if required variables are not set. | ||
273 | 203 | return $content; | ||
274 | 204 | |||
275 | 205 | } | ||
276 | 206 | |||
277 | 207 | $actEntryTemplate = $this->cObj->getSubpart($this->template, '###ACT_ENTRY###'); | ||
278 | 208 | |||
279 | 209 | // Set some variable defaults. | ||
280 | 210 | if (!empty($this->piVars['pointer']) && (($this->piVars['pointer'] * $this->conf['limit']) + 1) <= $this->doc->numPages) { | ||
281 | 211 | |||
282 | 212 | $this->piVars['pointer'] = max(intval($this->piVars['pointer']), 0); | ||
283 | 213 | |||
284 | 214 | } else if (!empty($this->piVars['page'])) { | ||
285 | 215 | |||
286 | 216 | $page = max(intval($this->piVars['page']), 0); | ||
287 | 217 | |||
288 | 218 | $this->piVars['pointer'] = intval(floor($page / $this->conf['limit'])); | ||
289 | 219 | |||
290 | 220 | } else { | ||
291 | 221 | |||
292 | 222 | $this->piVars['pointer'] = 0; | ||
293 | 223 | |||
294 | 224 | } | ||
295 | 225 | |||
296 | 226 | // Iterate through visible page set and display thumbnails. | ||
297 | 227 | for ($i = max($this->piVars['pointer'] * $this->conf['limit'], 1); $i < ($this->piVars['pointer'] + 1) * $this->conf['limit']; $i++) { | ||
298 | 228 | |||
299 | 229 | $content .= $this->getEntry($i, $i == intval($this->piVars['page']) && !empty($actEntryTemplate) ? $actEntryTemplate : $entryTemplate); | ||
300 | 230 | |||
301 | 231 | } | ||
302 | 232 | |||
303 | 233 | // Render page browser. | ||
304 | 234 | $markerArray['###PAGEBROWSER###'] = $this->getPageBrowser(); | ||
305 | 235 | |||
306 | 236 | // Render entries into entry template. | ||
307 | 237 | $content = $this->cObj->substituteMarkerArray($this->cObj->substituteSubpart($this->template, '###ENTRY###', $content, TRUE), $markerArray); | ||
308 | 238 | |||
309 | 239 | // Remove act-entry template from result. | ||
310 | 240 | $content = $this->cObj->substituteSubpart($content, '###ACT_ENTRY###', '', TRUE); | ||
311 | 241 | |||
312 | 242 | return $this->pi_wrapInBaseClass($content); | ||
313 | 243 | |||
314 | 244 | } | ||
315 | 245 | |||
316 | 246 | } | ||
317 | 247 | |||
318 | 248 | if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php']) { | ||
319 | 249 | include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php']); | ||
320 | 250 | } | ||
321 | 251 | |||
322 | 252 | ?> | ||
323 | 0 | \ No newline at end of file | 253 | \ No newline at end of file |
324 | 1 | 254 | ||
325 | === added file 'dlf/plugins/pagegrid/flexform.xml' | |||
326 | --- dlf/plugins/pagegrid/flexform.xml 1970-01-01 00:00:00 +0000 | |||
327 | +++ dlf/plugins/pagegrid/flexform.xml 2012-09-25 14:14:21 +0000 | |||
328 | @@ -0,0 +1,72 @@ | |||
329 | 1 | <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
330 | 2 | <T3DataStructure> | ||
331 | 3 | <meta> | ||
332 | 4 | <langDisable>1</langDisable> | ||
333 | 5 | </meta> | ||
334 | 6 | <sheets> | ||
335 | 7 | <sDEF> | ||
336 | 8 | <ROOT> | ||
337 | 9 | <TCEforms> | ||
338 | 10 | <sheetTitle>LLL:EXT:dlf/plugins/pagegrid/locallang.xml:tt_content.pi_flexform.sheet_general</sheetTitle> | ||
339 | 11 | </TCEforms> | ||
340 | 12 | <type>array</type> | ||
341 | 13 | <el> | ||
342 | 14 | <pages> | ||
343 | 15 | <TCEforms> | ||
344 | 16 | <exclude>1</exclude> | ||
345 | 17 | <label>LLL:EXT:lang/locallang_general.xml:LGL.startingpoint</label> | ||
346 | 18 | <config> | ||
347 | 19 | <type>group</type> | ||
348 | 20 | <internal_type>db</internal_type> | ||
349 | 21 | <allowed>pages</allowed> | ||
350 | 22 | <size>1</size> | ||
351 | 23 | <maxitems>1</maxitems> | ||
352 | 24 | <minitems>1</minitems> | ||
353 | 25 | </config> | ||
354 | 26 | </TCEforms> | ||
355 | 27 | </pages> | ||
356 | 28 | <limit> | ||
357 | 29 | <TCEforms> | ||
358 | 30 | <exclude>1</exclude> | ||
359 | 31 | <label>LLL:EXT:dlf/plugins/pagegrid/locallang.xml:tt_content.pi_flexform.limit</label> | ||
360 | 32 | <config> | ||
361 | 33 | <type>input</type> | ||
362 | 34 | <eval>required,num,int</eval> | ||
363 | 35 | <default>24</default> | ||
364 | 36 | </config> | ||
365 | 37 | </TCEforms> | ||
366 | 38 | </limit> | ||
367 | 39 | <targetPid> | ||
368 | 40 | <TCEforms> | ||
369 | 41 | <exclude>1</exclude> | ||
370 | 42 | <label>LLL:EXT:dlf/plugins/pagegrid/locallang.xml:tt_content.pi_flexform.targetPid</label> | ||
371 | 43 | <config> | ||
372 | 44 | <type>group</type> | ||
373 | 45 | <internal_type>db</internal_type> | ||
374 | 46 | <allowed>pages</allowed> | ||
375 | 47 | <size>1</size> | ||
376 | 48 | <maxitems>1</maxitems> | ||
377 | 49 | <minitems>1</minitems> | ||
378 | 50 | </config> | ||
379 | 51 | </TCEforms> | ||
380 | 52 | </targetPid> | ||
381 | 53 | <templateFile> | ||
382 | 54 | <TCEforms> | ||
383 | 55 | <exclude>1</exclude> | ||
384 | 56 | <label>LLL:EXT:dlf/plugins/pagegrid/locallang.xml:tt_content.pi_flexform.templateFile</label> | ||
385 | 57 | <config> | ||
386 | 58 | <type>group</type> | ||
387 | 59 | <internal_type>file_reference</internal_type> | ||
388 | 60 | <allowed>tmpl,tpl,html,htm,txt</allowed> | ||
389 | 61 | <size>1</size> | ||
390 | 62 | <maxitems>1</maxitems> | ||
391 | 63 | <minitems>0</minitems> | ||
392 | 64 | <disable_controls>upload</disable_controls> | ||
393 | 65 | </config> | ||
394 | 66 | </TCEforms> | ||
395 | 67 | </templateFile> | ||
396 | 68 | </el> | ||
397 | 69 | </ROOT> | ||
398 | 70 | </sDEF> | ||
399 | 71 | </sheets> | ||
400 | 72 | </T3DataStructure> | ||
401 | 0 | \ No newline at end of file | 73 | \ No newline at end of file |
402 | 1 | 74 | ||
403 | === added file 'dlf/plugins/pagegrid/locallang.xml' | |||
404 | --- dlf/plugins/pagegrid/locallang.xml 1970-01-01 00:00:00 +0000 | |||
405 | +++ dlf/plugins/pagegrid/locallang.xml 2012-09-25 14:14:21 +0000 | |||
406 | @@ -0,0 +1,33 @@ | |||
407 | 1 | <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
408 | 2 | <T3locallang> | ||
409 | 3 | <meta type="array"> | ||
410 | 4 | <type>module</type> | ||
411 | 5 | <description>Language labels for plugin tx_dlf_pagegrid</description> | ||
412 | 6 | </meta> | ||
413 | 7 | <data type="array"> | ||
414 | 8 | <languageKey index="default" type="array"> | ||
415 | 9 | <label index="tt_content.pi_flexform.sheet_general">Options</label> | ||
416 | 10 | <label index="tt_content.pi_flexform.limit">Previews per page</label> | ||
417 | 11 | <label index="tt_content.pi_flexform.targetPid">Target page (with "DLF: Page View" plugin)</label> | ||
418 | 12 | <label index="tt_content.pi_flexform.templateFile">Template file</label> | ||
419 | 13 | <label index="firstPage">«</label> | ||
420 | 14 | <label index="prevPage">←</label> | ||
421 | 15 | <label index="nextPage">→</label> | ||
422 | 16 | <label index="lastPage">»</label> | ||
423 | 17 | <label index="page">Page %d</label> | ||
424 | 18 | <label index="separator"> - </label> | ||
425 | 19 | </languageKey> | ||
426 | 20 | <languageKey index="de" type="array"> | ||
427 | 21 | <label index="tt_content.pi_flexform.sheet_general">Einstellungen</label> | ||
428 | 22 | <label index="tt_content.pi_flexform.limit">Vorschaubilder pro Seite</label> | ||
429 | 23 | <label index="tt_content.pi_flexform.targetPid">Zielseite (mit Plugin "DLF: Seitenansicht")</label> | ||
430 | 24 | <label index="tt_content.pi_flexform.templateFile">HTML-Template</label> | ||
431 | 25 | <label index="firstPage">«</label> | ||
432 | 26 | <label index="prevPage">←</label> | ||
433 | 27 | <label index="nextPage">→</label> | ||
434 | 28 | <label index="lastPage">»</label> | ||
435 | 29 | <label index="page">Seite %d</label> | ||
436 | 30 | <label index="separator"> - </label> | ||
437 | 31 | </languageKey> | ||
438 | 32 | </data> | ||
439 | 33 | </T3locallang> | ||
440 | 0 | \ No newline at end of file | 34 | \ No newline at end of file |
441 | 1 | 35 | ||
442 | === added file 'dlf/plugins/pagegrid/template.tmpl' | |||
443 | --- dlf/plugins/pagegrid/template.tmpl 1970-01-01 00:00:00 +0000 | |||
444 | +++ dlf/plugins/pagegrid/template.tmpl 2012-09-25 14:14:21 +0000 | |||
445 | @@ -0,0 +1,17 @@ | |||
446 | 1 | <!-- ###TEMPLATE### --> | ||
447 | 2 | <div class="tx-dlf-pagegrid-pagebrowser">###PAGEBROWSER###</div> | ||
448 | 3 | <div class="tx-dlf-pagegrid-grid"> | ||
449 | 4 | <!-- ###ENTRY### --> | ||
450 | 5 | <div class="tx-dlf-pagegrid-item" style="float:left;"> | ||
451 | 6 | <div>###THUMBNAIL###</div> | ||
452 | 7 | <div>###PAGE###</div> | ||
453 | 8 | </div> | ||
454 | 9 | <!-- ###ENTRY### --> | ||
455 | 10 | <!-- ###ACT_ENTRY### --> | ||
456 | 11 | <div class="tx-dlf-pagegrid-item-act" style="float:left;"> | ||
457 | 12 | <div>###THUMBNAIL###</div> | ||
458 | 13 | <div>###PAGE###</div> | ||
459 | 14 | </div> | ||
460 | 15 | <!-- ###ACT_ENTRY### --> | ||
461 | 16 | </div> | ||
462 | 17 | <!-- ###TEMPLATE### --> | ||
463 | 0 | \ No newline at end of file | 18 | \ No newline at end of file |