├── README.md
├── _inc
├── cheatsheet.php
├── datal-layer.php
└── extrafields
│ ├── assets
│ └── script.js
│ ├── instructions.php
│ └── map
│ ├── definition.php
│ ├── input.php
│ └── output.php
├── bem-example
├── category.php
├── item.php
└── itemlist_item.php
└── default
├── category.php
├── date.php
├── item.php
├── itemlist.php
├── itemlist_item.php
├── latest.php
├── latest_item.php
├── profile.php
├── register.php
├── search.php
├── tag.php
├── toolbar.php
└── user.php
/README.md:
--------------------------------------------------------------------------------
1 | # K2-V3-templates
2 | ## A good starting point for your overrides
3 |
4 | This a contribution to the K2 V3 project.
5 | You can get K2 from:
6 | - getk2.org
7 | - Version 3 (beta) https://github.com/joomlaworks/k2-v3-dev-build
8 | - Development verision (2.7) https://github.com/joomlaworks/k2
9 |
10 | ### Includes:
11 | - K2's new data layer
12 | - HTML5 Markup
13 | - Microdata
14 | - Responsive Images with the srcset method and picturefill.js as a fallback
15 | - How to create a new extrafield from scratch
16 | - Demo map map extrafield
17 | - BEM Architecture
18 | - A Cheatsheet with helpful snippets for your project
19 |
20 | ### Notes
21 | The naming used for the image sizes is based on the existing K2 V2 naming. If you are using your own custom sizes you need to update your code and include these new names.
22 |
23 | Once the code is considered stable to be released as v3.0.0, it will be moved over to the main K2 repo at: https://github.com/joomlaworks/k2
24 |
--------------------------------------------------------------------------------
/_inc/cheatsheet.php:
--------------------------------------------------------------------------------
1 | getMenu();
40 | if($menu->getActive() == $menu->getDefault()) $isFrontpage = true; else $isFrontpage = false;
41 |
42 | // Use Joomla!'s API in order to build a killer body class like WP does.
43 | $bodyClass = '';
44 | if($isFrontpage) $bodyClass .= ' is-frontpage';
45 | if($option) $bodyClass .= ' cmt-is-'.ucfirst($option);
46 | if($view) $bodyClass .= ' view-is-'.ucfirst($view);
47 | if($layout) $bodyClass .= ' layout-is-'.ucfirst($layout);
48 | if($page) $bodyClass .= ' page-is-'.ucfirst($page);
49 | if($task) $bodyClass .= ' task-is-'.ucfirst($task);
50 | if($id) $bodyClass .= ' id-is-'.ucfirst($id);
51 | if($itemid) $bodyClass .= ' itemId-is-'.ucfirst($itemid);
52 | if($tmpl) $bodyClass .= ' tmpl-isi'.ucfirst($tmpl);
53 | if($tmpl=='component') $bodyClass .= ' contentpane component wrapper--component';
54 | if($tmpl=='raw') $bodyClass .= ' wrapper--raw';
55 | $bodyClass = trim($bodyClass); ?>
56 |
57 |
58 |
59 | addScript($url);
77 |
78 |
79 | // Add a stylesheet in your template
80 | $document = JFactory::getDocument();
81 | $document->addStylesheet($url);
82 |
83 |
84 | //
85 | //
86 | // Image Handling
87 | //
88 | //
89 |
90 | // Use a default image as a placeholder.
91 | if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
92 |
93 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('catFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 | category) || ( $this->params->get('subCategories') && count($this->category->children) )): ?>
33 |
34 |
35 |
36 | category) && ( $this->params->get('catImage') || $this->params->get('catTitle') || $this->params->get('catDescription') || $this->category->events->K2CategoryDisplay )): ?>
37 |
38 |
90 |
91 |
92 | params->get('subCategories') && count($this->category->children)): ?>
93 |
94 |
95 |
96 |
97 | category->children as $child): ?>
98 |
99 | params->get('subCatColumns'))==0))
102 | $lastContainer= ' subCategoryContainerLast';
103 | else
104 | $lastContainer='';
105 | ?>
106 |
107 |
category->children)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 1).'%;"'; ?>>
108 |
109 | params->get('subCatImage') && $child->image): ?>
110 |
111 |
112 |
113 |
114 |
115 |
116 | params->get('subCatTitle')): ?>
117 |
118 |
123 |
124 |
125 | params->get('subCatDescription')): ?>
126 |
127 |
description; ?>
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | params->get('subCatColumns'))==0): ?>
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 | items)): ?>
152 |
153 | items as $item): ?>
154 | item = $item; echo $this->loadItemlistLayout(); ?>
155 |
156 |
157 |
158 |
159 | pagination->get('pages.total') > 1): ?>
160 |
161 |
166 |
167 |
168 |
--------------------------------------------------------------------------------
/bem-example/item.php:
--------------------------------------------------------------------------------
1 | addScript('https://cdnjs.cloudflare.com/ajax/libs/picturefill/2.3.1/picturefill.js');
16 | ?>
17 |
18 | print): ?>
19 |
20 |
21 |
29 |
30 |
31 |
32 | item->events->K2BeforeDisplay; ?>
33 |
34 | params->get('show_page_heading')): ?>
35 |
36 |
37 | escape($this->params->get('page_heading')); ?>
38 |
39 |
40 |
41 |
85 |
86 |
87 | item->events->AfterDisplayTitle; ?>
88 |
89 |
90 | item->events->K2AfterDisplayTitle; ?>
91 |
92 | item->canEdit || $this->params->get('itemPrintButton') || $this->params->get('itemEmailButton')) && !$this->print): ?>
93 |
119 |
120 |
121 |
122 |
123 |
124 |
125 | item->events->BeforeDisplayContent; ?>
126 |
127 |
128 | item->events->K2BeforeDisplayContent; ?>
129 |
130 | params->get('itemImage') && $this->item->image): ?>
131 |
132 |
133 |
134 |
135 |
136 |
143 |
144 |
145 |
146 | params->get('itemImageMainCaption') && $this->item->image->caption): ?>
147 |
148 | item->image->caption; ?>
149 |
150 |
151 | params->get('itemImageMainCredits') && $this->item->image->credits): ?>
152 |
153 | item->image->credits; ?>
154 |
155 |
156 |
157 |
158 |
159 |
160 | params->get('itemIntroText') && $this->item->introtext): ?>
161 |
162 |
item->canEdit && !$this->print): ?> data-k2-editable="introtext" data-k2-item="item->id; ?>" >
163 | item->introtext; ?>
164 |
165 |
166 |
167 | params->get('itemFullText') && $this->item->fulltext): ?>
168 |
169 |
item->canEdit && !$this->print): ?> data-k2-editable="fulltext" data-k2-item="item->id; ?>" >
170 | item->fulltext; ?>
171 |
172 |
173 |
174 |
175 |
176 |
177 | params->get('itemExtraFields') && count($this->item->extraFieldsGroups)): ?>
178 |
179 |
196 |
197 |
198 | params->get('itemHits') || ($this->params->get('itemDateModified') && intval($this->item->modified)!=0)): ?>
199 |
217 |
218 |
219 |
220 | item->events->AfterDisplayContent; ?>
221 |
222 |
223 | item->events->K2AfterDisplayContent; ?>
224 |
225 |
226 |
227 |
228 | params->get('itemTwitterButton',1) || $this->params->get('itemFacebookButton',1) || $this->params->get('itemGooglePlusOneButton',1)): ?>
229 |
230 |
231 |
232 | params->get('itemTwitterButton',1)): ?>
233 |
234 |
240 |
241 |
242 | params->get('itemFacebookButton',1)): ?>
243 |
244 |
259 |
260 |
261 | params->get('itemGooglePlusOneButton',1)): ?>
262 |
263 |
264 |
265 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 | params->get('itemCategory') || $this->params->get('itemTags') || $this->params->get('itemAttachments')): ?>
287 |
288 |
289 | params->get('itemCategory')): ?>
290 |
291 |
295 |
296 |
297 | params->get('itemTags') && count($this->item->tags)): ?>
298 |
299 |
308 |
309 |
310 | params->get('itemAttachments') && count($this->item->attachments)): ?>
311 |
312 |
313 |
314 |
315 | item->attachments as $attachment): ?>
316 | -
317 | name; ?>
318 | params->get('itemAttachmentsCounter')): ?>
319 | (downloads; ?> downloads==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 | params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?>
332 |
333 |
334 |
335 | params->get('itemAuthorImage') && $this->item->author->image): ?>
336 |

337 |
338 |
339 |
340 |
343 |
344 | params->get('itemAuthorDescription') && !empty($this->item->author->description)): ?>
345 |
item->author->description; ?>
346 |
347 |
348 | params->get('itemAuthorURL') && !empty($this->item->author->site)): ?>
349 |
item->author->site); ?>
350 |
351 |
352 | params->get('itemAuthorEmail')): ?>
353 |
item->author->email); ?>
354 |
355 |
356 |
357 |
358 |
359 | item->author->events->K2UserDisplay; ?>
360 |
361 |
362 |
363 |
364 |
365 |
366 | params->get('itemAuthorLatest') && count($this->item->author->latest)): ?>
367 |
368 |
369 |
item->author->name; ?>
370 |
371 | item->author->latest as $key=>$item): ?>
372 | - ">
373 | title; ?>
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 | params->get('itemRelated') && count($this->item->related)): ?>
382 |
383 |
439 |
440 |
441 |
442 |
443 | params->get('itemMedia') && count($this->item->media)): ?>
444 |
445 |
446 |
447 |
467 |
468 |
469 |
470 | item->galleries)): ?>
471 |
472 |
473 |
474 |
475 |
476 | item->galleries as $gallery): ?>
477 |
478 | output; ?>
479 |
480 |
481 |
482 |
483 |
484 | params->get('itemNavigation') && !$this->print && ($this->item->next || $this->item->previous)): ?>
485 |
486 |
502 |
503 |
504 |
505 | item->events->K2AfterDisplay; ?>
506 |
507 | params->get('itemComments') && $this->params->get('comments')): ?>
508 |
509 | item->events->K2CommentsBlock; ?>
510 |
511 |
512 | params->get('itemComments') && $this->params->get('comments') && empty($this->item->events->K2CommentsBlock)): ?>
513 |
514 |
515 |
516 |
517 |
691 |
692 |
693 |
694 |
695 |
696 |
697 |
698 |
--------------------------------------------------------------------------------
/bem-example/itemlist_item.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 | item->events->K2BeforeDisplay; ?>
17 |
18 |
69 |
70 |
71 | item->events->AfterDisplayTitle; ?>
72 |
73 |
74 | item->events->K2AfterDisplayTitle; ?>
75 |
76 |
77 |
78 |
79 |
80 | item->events->BeforeDisplayContent; ?>
81 |
82 |
83 | item->events->K2BeforeDisplayContent; ?>
84 |
85 | params->get('listItemImage') && $this->item->image): ?>
86 |
87 |
88 |
89 |
90 |
91 |
98 |
99 |
100 |
101 | params->get('listItemImageMainCaption') && $this->item->image->caption): ?>
102 |
103 | item->image->caption; ?>
104 |
105 |
106 | params->get('listItemImageMainCredits') && $this->item->image->credits): ?>
107 |
108 | item->image->credits; ?>
109 |
110 |
111 |
112 |
113 |
114 |
115 | item->fulltext)): ?>
116 | params->get('listItemIntroText')): ?>
117 |
118 |
119 | item->introtext; ?>
120 |
121 |
122 | params->get('listItemFullText')): ?>
123 |
124 |
125 | item->fulltext; ?>
126 |
127 |
128 |
129 |
130 |
131 | item->introtext; ?>
132 |
133 |
134 |
135 |
136 |
137 | params->get('listItemExtraFields') && count($this->item->extraFieldsGroups)): ?>
138 |
139 |
156 |
157 |
158 | params->get('listItemHits') || ($this->params->get('listItemDateModified') && intval($this->item->modified)!=0)): ?>
159 |
177 |
178 |
179 |
180 | item->events->AfterDisplayContent; ?>
181 |
182 |
183 | item->events->K2AfterDisplayContent; ?>
184 |
185 |
186 |
187 |
188 |
189 | params->get('listItemCategory') || $this->params->get('listItemTags') || $this->params->get('listItemAttachments')): ?>
190 |
191 |
192 | params->get('listItemCategory')): ?>
193 |
194 |
198 |
199 |
200 | params->get('listItemTags') && count($this->item->tags)): ?>
201 |
202 |
211 |
212 |
213 | params->get('listItemAttachments') && count($this->item->attachments)): ?>
214 |
215 |
216 |
217 |
218 | item->attachments as $attachment): ?>
219 | -
220 | name; ?>
221 | params->get('listItemAttachmentsCounter')): ?>
222 | (downloads; ?> downloads==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | params->get('listItemAuthorBlock') && empty($this->item->created_by_alias)): ?>
235 |
236 |
237 |
238 | params->get('listItemAuthorImage') && $this->item->author->image): ?>
239 |

240 |
241 |
242 |
243 |
246 |
247 | params->get('listItemAuthorDescription') && !empty($this->item->author->description)): ?>
248 |
item->author->description; ?>
249 |
250 |
251 | params->get('listItemAuthorURL') && !empty($this->item->author->site)): ?>
252 |
item->author->site); ?>
253 |
254 |
255 | params->get('listItemAuthorEmail')): ?>
256 |
item->author->email); ?>
257 |
258 |
259 |
260 |
261 |
262 | item->author->events->K2UserDisplay; ?>
263 |
264 |
265 |
266 |
267 |
268 |
269 | params->get('listItemAuthorLatest') && trim($this->item->created_by_alias) == '' && count($this->item->author->latest)): ?>
270 |
271 |
272 |
item->author->name; ?>
273 |
274 | item->author->latest as $key=>$item): ?>
275 | - ">
276 | title; ?>
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 | params->get('listItemRelated') && count($this->item->related)): ?>
285 |
286 |
342 |
343 |
344 |
345 |
346 | params->get('listItemMedia') && count($this->item->media)): ?>
347 |
348 |
349 |
350 |
370 |
371 |
372 |
373 | params->get('listItemGalleries') && count($this->item->galleries)): ?>
374 |
375 |
376 |
377 |
378 | item->galleries as $gallery): ?>
379 |
380 | output; ?>
381 |
382 |
383 |
384 |
385 |
386 | params->get('listItemCommentsAnchor') && $this->params->get('comments')): ?>
387 |
388 |
404 |
405 |
406 | params->get('listItemReadMore')): ?>
407 |
408 |
413 |
414 |
415 |
416 | item->events->K2AfterDisplay; ?>
417 |
418 |
419 |
420 |
421 |
--------------------------------------------------------------------------------
/default/category.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('catFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 | category) || ( $this->params->get('subCategories') && count($this->category->children) )): ?>
33 |
34 |
35 |
36 | category) && ( $this->params->get('catImage') || $this->params->get('catTitle') || $this->params->get('catDescription') || $this->category->events->K2CategoryDisplay )): ?>
37 |
38 |
90 |
91 |
92 | params->get('subCategories') && count($this->category->children)): ?>
93 |
94 |
95 |
96 |
97 | category->children as $child): ?>
98 |
99 | params->get('subCatColumns'))==0))
102 | $lastContainer= ' subCategoryContainerLast';
103 | else
104 | $lastContainer='';
105 | ?>
106 |
107 |
category->children)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 1).'%;"'; ?>>
108 |
109 | params->get('subCatImage') && $child->image): ?>
110 |
111 |
112 |
113 |
114 |
115 |
116 | params->get('subCatTitle')): ?>
117 |
118 |
123 |
124 |
125 | params->get('subCatDescription')): ?>
126 |
127 |
description; ?>
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | params->get('subCatColumns'))==0): ?>
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 | items)): ?>
152 |
153 | items as $item): ?>
154 | item = $item; echo $this->loadItemlistLayout(); ?>
155 |
156 |
157 |
158 |
159 | pagination->get('pages.total') > 1): ?>
160 |
161 |
166 |
167 |
168 |
--------------------------------------------------------------------------------
/default/date.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('genericFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 | items)): ?>
33 |
34 | items as $item): ?>
35 | item = $item; echo $this->loadItemlistLayout(); ?>
36 |
37 |
38 |
39 |
40 | pagination->get('pages.total') > 1): ?>
41 |
42 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/default/item.php:
--------------------------------------------------------------------------------
1 | addScript('https://cdnjs.cloudflare.com/ajax/libs/picturefill/2.3.1/picturefill.js');
16 | ?>
17 |
18 | print): ?>
19 |
20 |
28 |
29 |
30 |
31 | item->events->K2BeforeDisplay; ?>
32 |
33 | params->get('show_page_heading')): ?>
34 |
35 |
36 | escape($this->params->get('page_heading')); ?>
37 |
38 |
39 |
40 |
84 |
85 |
86 | item->events->AfterDisplayTitle; ?>
87 |
88 |
89 | item->events->K2AfterDisplayTitle; ?>
90 |
91 | item->canEdit || $this->params->get('itemPrintButton') || $this->params->get('itemEmailButton')) && !$this->print): ?>
92 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | item->events->BeforeDisplayContent; ?>
125 |
126 |
127 | item->events->K2BeforeDisplayContent; ?>
128 |
129 | params->get('itemImage') && $this->item->image): ?>
130 |
131 |
132 |
133 |
134 |
135 |
142 |
143 |
144 |
145 | params->get('itemImageMainCaption') && $this->item->image->caption): ?>
146 |
147 | item->image->caption; ?>
148 |
149 |
150 | params->get('itemImageMainCredits') && $this->item->image->credits): ?>
151 |
152 | item->image->credits; ?>
153 |
154 |
155 |
156 |
157 |
158 |
159 | params->get('itemIntroText') && $this->item->introtext): ?>
160 |
161 |
item->canEdit && !$this->print): ?> data-k2-editable="introtext" data-k2-item="item->id; ?>" >
162 | item->introtext; ?>
163 |
164 |
165 |
166 | params->get('itemFullText') && $this->item->fulltext): ?>
167 |
168 |
item->canEdit && !$this->print): ?> data-k2-editable="fulltext" data-k2-item="item->id; ?>" >
169 | item->fulltext; ?>
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 | params->get('itemExtraFields') && count($this->item->extraFieldsGroups)): ?>
178 |
179 |
196 |
197 |
198 | params->get('itemHits') || ($this->params->get('itemDateModified') && intval($this->item->modified)!=0)): ?>
199 |
217 |
218 |
219 |
220 | item->events->AfterDisplayContent; ?>
221 |
222 |
223 | item->events->K2AfterDisplayContent; ?>
224 |
225 |
226 |
227 |
228 | params->get('itemTwitterButton',1) || $this->params->get('itemFacebookButton',1) || $this->params->get('itemGooglePlusOneButton',1)): ?>
229 |
230 |
231 |
232 | params->get('itemTwitterButton',1)): ?>
233 |
234 |
240 |
241 |
242 | params->get('itemFacebookButton',1)): ?>
243 |
244 |
259 |
260 |
261 | params->get('itemGooglePlusOneButton',1)): ?>
262 |
263 |
264 |
265 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 | params->get('itemCategory') || $this->params->get('itemTags') || $this->params->get('itemAttachments')): ?>
287 |
288 |
289 | params->get('itemCategory')): ?>
290 |
291 |
295 |
296 |
297 | params->get('itemTags') && count($this->item->tags)): ?>
298 |
299 |
308 |
309 |
310 | params->get('itemAttachments') && count($this->item->attachments)): ?>
311 |
312 |
313 |
314 |
315 | item->attachments as $attachment): ?>
316 | -
317 | name; ?>
318 | params->get('itemAttachmentsCounter')): ?>
319 | (downloads; ?> downloads==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 | params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?>
332 |
333 |
334 |
335 | params->get('itemAuthorImage') && $this->item->author->image): ?>
336 |

337 |
338 |
339 |
340 |
343 |
344 | params->get('itemAuthorDescription') && !empty($this->item->author->description)): ?>
345 |
item->author->description; ?>
346 |
347 |
348 | params->get('itemAuthorURL') && !empty($this->item->author->site)): ?>
349 |
item->author->site); ?>
350 |
351 |
352 | params->get('itemAuthorEmail')): ?>
353 |
item->author->email); ?>
354 |
355 |
356 |
357 |
358 |
359 | item->author->events->K2UserDisplay; ?>
360 |
361 |
362 |
363 |
364 |
365 |
366 | params->get('itemAuthorLatest') && count($this->item->author->latest)): ?>
367 |
368 |
369 |
item->author->name; ?>
370 |
371 | item->author->latest as $key=>$item): ?>
372 | - ">
373 | title; ?>
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 | params->get('itemRelated') && count($this->item->related)): ?>
382 |
383 |
439 |
440 |
441 |
442 |
443 | params->get('itemMedia') && count($this->item->media)): ?>
444 |
445 |
446 |
447 |
467 |
468 |
469 |
470 | item->galleries)): ?>
471 |
472 |
473 |
474 |
475 |
476 | item->galleries as $gallery): ?>
477 |
478 | output; ?>
479 |
480 |
481 |
482 |
483 |
484 | params->get('itemNavigation') && !$this->print && ($this->item->next || $this->item->previous)): ?>
485 |
486 |
502 |
503 |
504 |
505 | item->events->K2AfterDisplay; ?>
506 |
507 | params->get('itemComments') && $this->params->get('comments')): ?>
508 |
509 | item->events->K2CommentsBlock; ?>
510 |
511 |
512 | params->get('itemComments') && $this->params->get('comments') && empty($this->item->events->K2CommentsBlock)): ?>
513 |
514 |
515 |
516 |
690 |
691 |
692 |
693 |
694 |
695 |
696 |
697 |
--------------------------------------------------------------------------------
/default/itemlist.php:
--------------------------------------------------------------------------------
1 | addScript('https://cdnjs.cloudflare.com/ajax/libs/picturefill/2.3.1/picturefill.js');
16 |
17 | ?>
18 |
19 |
20 |
21 | params->get('show_page_heading')): ?>
22 |
23 |
24 | escape($this->params->get('page_heading')); ?>
25 |
26 |
27 |
28 | items)): ?>
29 |
30 | items as $item): ?>
31 | item = $item; echo $this->loadItemlistLayout(); ?>
32 |
33 |
34 |
35 |
36 | pagination->get('pages.total') > 1): ?>
37 |
38 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/default/itemlist_item.php:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 | item->events->K2BeforeDisplay; ?>
17 |
18 |
69 |
70 |
71 | item->events->AfterDisplayTitle; ?>
72 |
73 |
74 | item->events->K2AfterDisplayTitle; ?>
75 |
76 |
77 |
78 |
79 |
80 | item->events->BeforeDisplayContent; ?>
81 |
82 |
83 | item->events->K2BeforeDisplayContent; ?>
84 |
85 | params->get('listItemImage') && $this->item->image): ?>
86 |
87 |
88 |
89 |
90 |
91 |
98 |
99 |
100 |
101 | params->get('listItemImageMainCaption') && $this->item->image->caption): ?>
102 |
103 | item->image->caption; ?>
104 |
105 |
106 | params->get('listItemImageMainCredits') && $this->item->image->credits): ?>
107 |
108 | item->image->credits; ?>
109 |
110 |
111 |
112 |
113 |
114 |
115 | item->fulltext)): ?>
116 | params->get('listItemIntroText')): ?>
117 |
118 |
119 | item->introtext; ?>
120 |
121 |
122 | params->get('listItemFullText')): ?>
123 |
124 |
125 | item->fulltext; ?>
126 |
127 |
128 |
129 |
130 |
131 | item->introtext; ?>
132 |
133 |
134 |
135 |
136 |
137 | params->get('listItemExtraFields') && count($this->item->extraFieldsGroups)): ?>
138 |
139 |
156 |
157 |
158 | params->get('listItemHits') || ($this->params->get('listItemDateModified') && intval($this->item->modified)!=0)): ?>
159 |
177 |
178 |
179 |
180 | item->events->AfterDisplayContent; ?>
181 |
182 |
183 | item->events->K2AfterDisplayContent; ?>
184 |
185 |
186 |
187 |
188 |
189 | params->get('listItemCategory') || $this->params->get('listItemTags') || $this->params->get('listItemAttachments')): ?>
190 |
191 |
192 | params->get('listItemCategory')): ?>
193 |
194 |
198 |
199 |
200 | params->get('listItemTags') && count($this->item->tags)): ?>
201 |
202 |
211 |
212 |
213 | params->get('listItemAttachments') && count($this->item->attachments)): ?>
214 |
215 |
216 |
217 |
218 | item->attachments as $attachment): ?>
219 | -
220 | name; ?>
221 | params->get('listItemAttachmentsCounter')): ?>
222 | (downloads; ?> downloads==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | params->get('listItemAuthorBlock') && empty($this->item->created_by_alias)): ?>
235 |
236 |
237 |
238 | params->get('listItemAuthorImage') && $this->item->author->image): ?>
239 |

240 |
241 |
242 |
243 |
246 |
247 | params->get('listItemAuthorDescription') && !empty($this->item->author->description)): ?>
248 |
item->author->description; ?>
249 |
250 |
251 | params->get('listItemAuthorURL') && !empty($this->item->author->site)): ?>
252 |
item->author->site); ?>
253 |
254 |
255 | params->get('listItemAuthorEmail')): ?>
256 |
item->author->email); ?>
257 |
258 |
259 |
260 |
261 |
262 | item->author->events->K2UserDisplay; ?>
263 |
264 |
265 |
266 |
267 |
268 |
269 | params->get('listItemAuthorLatest') && trim($this->item->created_by_alias) == '' && count($this->item->author->latest)): ?>
270 |
271 |
272 |
item->author->name; ?>
273 |
274 | item->author->latest as $key=>$item): ?>
275 | - ">
276 | title; ?>
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 | params->get('listItemRelated') && count($this->item->related)): ?>
285 |
286 |
342 |
343 |
344 |
345 |
346 | params->get('listItemMedia') && count($this->item->media)): ?>
347 |
348 |
349 |
350 |
370 |
371 |
372 |
373 | params->get('listItemGalleries') && count($this->item->galleries)): ?>
374 |
375 |
376 |
377 |
378 | item->galleries as $gallery): ?>
379 |
380 | output; ?>
381 |
382 |
383 |
384 |
385 |
386 | params->get('listItemCommentsAnchor') && $this->params->get('comments')): ?>
387 |
388 |
404 |
405 |
406 | params->get('listItemReadMore')): ?>
407 |
408 |
413 |
414 |
415 |
416 | item->events->K2AfterDisplay; ?>
417 |
418 |
419 |
420 |
421 |
--------------------------------------------------------------------------------
/default/latest.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 |
16 | params->get('show_page_heading')): ?>
17 |
18 |
19 | escape($this->params->get('page_heading')); ?>
20 |
21 |
22 |
23 | blocks as $key => $block): ?>
24 |
25 |
26 | params->get('source') == 'categories'): $category = $block; ?>
27 |
28 | params->get('categoryFeed') || $this->params->get('categoryImage') || $this->params->get('categoryTitle') || $this->params->get('categoryDescription')): ?>
29 |
30 |
31 | params->get('categoryFeed')): ?>
32 |
33 |
39 |
40 |
41 | params->get('categoryImage') && $category->image): ?>
42 |
43 |

44 |
45 |
46 |
47 | params->get('categoryTitle')): ?>
48 |
49 |
50 |
51 | params->get('categoryDescription') && isset($category->description)): ?>
52 | description; ?>
53 |
54 |
55 |
56 |
57 |
58 | events->K2CategoryDisplay; ?>
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | params->get('userFeed') || $this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
67 |
68 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | params->get('latestItemsDisplayEffect')=="first"): ?>
122 |
123 | items as $itemCounter => $item): ?>
124 |
125 | item = $item; echo $this->loadTemplate('item'); ?>
126 |
127 |
128 | params->get('latestItemTitleLinked')): ?>
129 |
130 | title; ?>
131 |
132 |
133 | title; ?>
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | items as $item): ?>
142 | item = $item; echo $this->loadTemplate('item'); ?>
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 | params->get('latestItemsCols'))==0): ?>
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
--------------------------------------------------------------------------------
/default/latest_item.php:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
18 |
19 | item->events->K2BeforeDisplay; ?>
20 |
21 |
35 |
36 | params->get('latestItemDateCreated')): ?>
37 |
38 |
39 | item->created , JText::_('K2_DATE_FORMAT_LC2')); ?>
40 |
41 |
42 |
43 |
44 | item->events->AfterDisplayTitle; ?>
45 |
46 |
47 | item->events->K2AfterDisplayTitle; ?>
48 |
49 |
50 |
51 |
52 | item->events->BeforeDisplayContent; ?>
53 |
54 |
55 | item->events->K2BeforeDisplayContent; ?>
56 |
57 | params->get('latestItemImage') && $this->item->image): ?>
58 |
59 |
67 |
68 |
69 | params->get('latestItemIntroText')): ?>
70 |
71 |
72 | item->introtext; ?>
73 |
74 |
75 |
76 |
77 |
78 |
79 | item->events->AfterDisplayContent; ?>
80 |
81 |
82 | item->events->K2AfterDisplayContent; ?>
83 |
84 |
85 |
86 |
87 | params->get('latestItemCategory') || $this->params->get('latestItemTags')): ?>
88 |
89 |
90 | params->get('latestItemCategory')): ?>
91 |
92 |
96 |
97 |
98 | params->get('latestItemTags') && count($this->item->tags)): ?>
99 |
100 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | params->get('latestItemVideo') && count($this->item->media)): ?>
118 |
119 |
120 |
121 |
122 | item->media as $entry) : ?>
123 |
136 |
137 |
138 |
139 |
140 | params->get('latestItemCommentsAnchor') && $this->params->get('comments')): ?>
141 |
142 |
158 |
159 |
160 | params->get('latestItemReadMore')): ?>
161 |
162 |
167 |
168 |
169 |
170 |
171 |
172 | item->events->K2AfterDisplay; ?>
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/default/profile.php:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
18 | params->get('show_page_heading')) : ?>
19 |
22 |
23 |
24 |
197 |
198 |
--------------------------------------------------------------------------------
/default/search.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('genericFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 |
36 |
37 | items)): ?>
38 |
39 | items as $item): ?>
40 | item = $item; echo $this->loadItemlistLayout(); ?>
41 |
42 |
43 | searchword): ?>
44 |
47 |
48 |
49 | pagination->get('pages.total') > 1): ?>
50 |
51 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/default/tag.php:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('tagFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 | params->get('tagExtraFields') && count($this->tag->extraFieldsGroups)): ?>
33 |
34 |
51 |
52 |
53 | items)): ?>
54 |
55 | items as $item): ?>
56 | item = $item; echo $this->loadItemlistLayout(); ?>
57 |
58 |
59 |
60 |
61 | pagination->get('pages.total') > 1): ?>
62 |
63 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/default/toolbar.php:
--------------------------------------------------------------------------------
1 |
14 |
15 |
14 |
15 | params->get('show_page_heading')): ?>
16 |
17 |
18 | escape($this->params->get('page_heading')); ?>
19 |
20 |
21 |
22 | params->get('userFeedIcon')): ?>
23 |
24 |
30 |
31 |
32 | params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
33 |
99 |
100 |
101 | items)): ?>
102 |
103 | items as $item): ?>
104 | item = $item; echo $this->loadItemlistLayout(); ?>
105 |
106 |
107 |
108 |
109 | pagination->get('pages.total') > 1): ?>
110 |
111 |
116 |
117 |
118 |
--------------------------------------------------------------------------------