├── 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 | <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> 94 | 95 | 96 | 97 | <?php echo K2HelperUtilities::cleanHtml($this->item->title); ?> 98 | 99 | item->params->get('itemImage') && $this->item->extraFields->EXTRAFIELDALIASHERE->value !== '' ): ?> 104 | 105 | <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> 106 | 107 | 108 | 109 | 110 | // Use an extrafield instead of K2's images - The extrafield is an IMAGE one 111 | item->params->get('itemImage') && $this->item->extraFields->EXTRAFIELDALIASHERE->value !== '' ): 112 | $var = $this->item->extraFields->EXTRAFIELDALIASHERE->value ; 113 | $var = preg_replace('/ alt="Image" \>/'," ",$var); ?> 115 | 116 | <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> 117 | 118 | 119 | 120 | 125 | 126 | <?php echo $this->escape($this->item->image->alt); ?> 133 | 134 | 139 | <?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?> 146 | 147 | 152 | 153 | item->imageXLarge; ?> 154 | item->imageLarge; ?> 155 | item->imageMedium; ?> 156 | item->imageSmall; ?> 157 | item->imageXSmall; ?> 158 | 159 | item->extraFields->EXTRAFIELDALIASHERE->value ) && ( $this->item->extraFields->EXTRAFIELDALIASHERE->value !== '') ) 170 | { 171 | $this->item->extraFields->EXTRAFIELDALIASHERE->name; 172 | $this->item->extraFields->EXTRAFIELDALIASHERE->value; 173 | } 174 | 175 | 176 | // Use extrafields as meta data - thank you @heyjoecampbell and @kbrookes 177 | $doc = JFactory::getDocument(); 178 | if ( isset( $this->item->extraFields->title_tag->value ) && ($this->item->extraFields->title_tag->value !=='') ) { 179 | $doc->addCustomTag(''.$this->item->extraFields->title_tag->value.''); 180 | } 181 | if ( isset( $this->item->extraFields->meta_description->value ) && ($this->item->extraFields->meta_description->value !=='') ) { 182 | $doc->addCustomTag(''); 183 | } 184 | // See also https://gist.github.com/kricore/2c9a5434748c5f5f6cf9 185 | 186 | // Cleanup the extrafields content so you can use them as metatags 187 | $safe = array("", ""); 188 | $nonsafe = array("'", "\""); 189 | $custometa = $this->item->extraFields->NAME->value; 190 | $safemeta = str_replace( $nonsafe, $safe, $custometa); 191 | echo $safemeta; 192 | 193 | 194 | // 195 | // Just a normal K2 extrafields loop with the addition of icon fonts for social links instead of simple links.. 196 | // It requires the use of the extrafields aliases (eg twitter, facebook etc). 197 | // The icon- and -circled prefix and suffixed are based on the Entypo icon font from Fontello. 198 | // 199 | if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?> 200 | 201 |
202 | */ ?> 203 | 243 |
244 | item); 255 | 256 | 257 | // Check if the item belongs to a certain category, category->id will work as well 258 | if($this->item->category->name == 'Category Name') 259 | { 260 | // Do something 261 | } 262 | 263 | 264 | // Get the item's alias 265 | echo $this->item->alias; 266 | 267 | 268 | // Display a certain tag based on its position 269 | echo $this->item->tags[0]->name; 270 | 271 | -------------------------------------------------------------------------------- /_inc/datal-layer.php: -------------------------------------------------------------------------------- 1 | setState('site', true); 22 | $model->setState('category', array(33, 40)); 23 | $model->setState('sorting', 'title'); 24 | $items = $model->getRows(); 25 | 26 | foreach ( $items as $item ) 27 | { 28 | // Do something 29 | } 30 | 31 | 32 | // Lazy loading. 33 | // Access the item's tags from ANYWHERE 34 | $item = K2Items::getInstance(12); 35 | 36 | foreach ( $items->tags as $tag ) 37 | { 38 | echo $tag->name; 39 | echo $tag->link; 40 | } 41 | 42 | -------------------------------------------------------------------------------- /_inc/extrafields/assets/script.js: -------------------------------------------------------------------------------- 1 | /* Map script */ 2 | (function($) { 3 | 4 | /* 5 | * render_map 6 | * 7 | * This function will render a Google Map onto the selected jQuery element 8 | * 9 | * @type function 10 | * @date 8/11/2013 11 | * @since 4.3.0 12 | * 13 | * @param $el (jQuery element) 14 | * @return n/a 15 | */ 16 | 17 | function render_map( $el ) { 18 | 19 | // var 20 | var $markers = $el.find('.marker'); 21 | 22 | // vars 23 | var args = { 24 | zoom : 16, 25 | center : new google.maps.LatLng(0, 0), 26 | mapTypeId : google.maps.MapTypeId.ROADMAP 27 | }; 28 | 29 | // create map 30 | var map = new google.maps.Map( $el[0], args); 31 | 32 | // add a markers reference 33 | map.markers = []; 34 | 35 | // add markers 36 | $markers.each(function(){ 37 | 38 | add_marker( $(this), map ); 39 | 40 | }); 41 | 42 | // center map 43 | center_map( map ); 44 | 45 | } 46 | 47 | /* 48 | * add_marker 49 | * 50 | * This function will add a marker to the selected Google Map 51 | * 52 | * @type function 53 | * @date 8/11/2013 54 | * @since 4.3.0 55 | * 56 | * @param $marker (jQuery element) 57 | * @param map (Google Map object) 58 | * @return n/a 59 | */ 60 | 61 | function add_marker( $marker, map ) { 62 | 63 | // var 64 | var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') ); 65 | 66 | // create marker 67 | var marker = new google.maps.Marker({ 68 | position : latlng, 69 | map : map 70 | }); 71 | 72 | // add to array 73 | map.markers.push( marker ); 74 | 75 | // if marker contains HTML, add it to an infoWindow 76 | if( $marker.html() ) 77 | { 78 | // create info window 79 | var infowindow = new google.maps.InfoWindow({ 80 | content : $marker.html() 81 | }); 82 | 83 | // show info window when marker is clicked 84 | google.maps.event.addListener(marker, 'click', function() { 85 | 86 | infowindow.open( map, marker ); 87 | 88 | }); 89 | } 90 | 91 | } 92 | 93 | /* 94 | * center_map 95 | * 96 | * This function will center the map, showing all markers attached to this map 97 | * 98 | * @type function 99 | * @date 8/11/2013 100 | * @since 4.3.0 101 | * 102 | * @param map (Google Map object) 103 | * @return n/a 104 | */ 105 | 106 | function center_map( map ) { 107 | 108 | // vars 109 | var bounds = new google.maps.LatLngBounds(); 110 | 111 | // loop through all markers and create bounds 112 | $.each( map.markers, function( i, marker ){ 113 | 114 | var latlng = new google.maps.LatLng( marker.position.lat(), marker.position.lng() ); 115 | 116 | bounds.extend( latlng ); 117 | 118 | }); 119 | 120 | // only 1 marker? 121 | if( map.markers.length == 1 ) 122 | { 123 | // set center of map 124 | map.setCenter( bounds.getCenter() ); 125 | map.setZoom( 16 ); 126 | } 127 | else 128 | { 129 | // fit to bounds 130 | map.fitBounds( bounds ); 131 | } 132 | 133 | } 134 | 135 | 136 | 137 | (function($){ 138 | $(document).ready(function() { 139 | 140 | //jQuery map init 141 | $('.map').each(function(){ 142 | render_map( $(this) ); 143 | }); 144 | })(jQuery); -------------------------------------------------------------------------------- /_inc/extrafields/instructions.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | -------------------------------------------------------------------------------- /_inc/extrafields/map/input.php: -------------------------------------------------------------------------------- 1 | 14 | 15 |
16 | 17 |
18 | 19 |
20 | 21 |
22 | -------------------------------------------------------------------------------- /_inc/extrafields/map/output.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | get('type') == 'bing' ): ?> 21 | 22 |
23 | 25 |
26 | 27 | 31 | 32 | 33 | 35 |
36 | 37 | */ ?> 38 | 39 | -------------------------------------------------------------------------------- /bem-example/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 |
25 | 26 | 27 | 28 |
29 |
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 |
39 | 40 | category->canAdd): ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | params->get('catImage') && $this->category->image): ?> 50 | 51 | <?php echo htmlspecialchars($this->category->image->alt, ENT_QUOTES, 'UTF-8'); ?> 52 | 53 | 54 | params->get('catTitle')): ?> 55 | 56 |

category->title; ?>params->get('catTitleItemCounter')) echo ' ('.$this->pagination->total.')'; ?>

57 | 58 | 59 | params->get('catDescription')): ?> 60 | 61 |

category->description; ?>

62 | 63 | 64 | params->get('catExtraFields') && count($this->category->extraFieldsGroups)): ?> 65 | 66 |
67 |

68 | category->extraFieldsGroups as $extraFieldGroup): ?> 69 |

name; ?>

70 |
    71 | fields as $key=>$extraField): ?> 72 | output): ?> 73 |
  • typetype); ?> groupgroup; ?>"> 74 | name; ?>: 75 | output; ?> 76 |
  • 77 | 78 | 79 |
80 | 81 |
82 |
83 | 84 | 85 | 86 | category->events->K2CategoryDisplay; ?> 87 | 88 |
89 |
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 | <?php echo htmlspecialchars($child->image->alt, ENT_QUOTES, 'UTF-8'); ?> 113 | 114 | 115 | 116 | params->get('subCatTitle')): ?> 117 | 118 |

119 | 120 | title; ?>params->get('subCatTitleItemCounter')) echo ' ('.$child->numOfItems.')'; ?> 121 | 122 |

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 | 22 | 23 | 24 | 25 | 26 | 27 | 28 |
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 |
42 | 43 | params->get('itemDateCreated')): ?> 44 | 45 | 46 | item->created, JText::_('K2_DATE_FORMAT_LC2')); ?> 47 | 48 | 49 | 50 | params->get('itemTitle')): ?> 51 | 52 |

53 | 54 | item->canEdit && !$this->print): ?> data-k2-editable="title" data-k2-item="item->id; ?>" >item->title; ?> 55 | 56 | params->get('itemFeaturedNotice') && $this->item->featured): ?> 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |

66 | 67 | 68 | params->get('itemAuthor')): ?> 69 | 70 | 82 | 83 | 84 |
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 |
94 | 95 | item->canEdit && !$this->print): ?> 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | params->get('itemPrintButton') && !$this->print): ?> 105 | 106 | 107 | 108 | 109 | 110 | 111 | params->get('itemEmailButton') && !$this->print): ?> 112 | 113 | 116 | 117 | 118 |
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 | <?php echo $this->escape($this->item->image->alt); ?> 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 |
180 |

181 | item->extraFieldsGroups as $extraFieldGroup): ?> 182 |

name; ?>

183 |
    184 | fields as $key=>$extraField): ?> 185 | output): ?> 186 |
  • typetype); ?> groupgroup; ?>"> 187 | name; ?>: 188 | output; ?> 189 |
  • 190 | 191 | 192 |
193 | 194 |
195 |
196 | 197 | 198 | params->get('itemHits') || ($this->params->get('itemDateModified') && intval($this->item->modified)!=0)): ?> 199 |
200 | 201 | params->get('itemHits')): ?> 202 | 203 | 204 | item->hits; ?> 205 | 206 | 207 | 208 | params->get('itemDateModified') && intval($this->item->modified)!=0): ?> 209 | 210 | 211 | item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> 212 | 213 | 214 | 215 |
216 |
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 | 329 | 330 | 331 | params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?> 332 | 333 |
334 | 335 | params->get('itemAuthorImage') && $this->item->author->image): ?> 336 | <?php echo $this->item->author->name; ?> 337 | 338 | 339 |
340 |

341 | 342 |

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 | 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 | 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 |
448 |

449 | item->media as $entry) : ?> 450 |
451 | 452 | 453 | output; ?> 454 | 455 | caption)): ?> 456 | caption; ?> 457 | 458 | 459 | credits)): ?> 460 | credits; ?> 461 | 462 | 463 |
464 |
465 | 466 |
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 |
19 | 20 | params->get('listItemDateCreated')): ?> 21 | 22 | 23 | item->created, JText::_('K2_DATE_FORMAT_LC2')); ?> 24 | 25 | 26 | 27 | params->get('listItemTitle')): ?> 28 | 29 |

30 | item->canEdit): ?> 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | params->get('listItemTitleLinked')): ?> 40 | item->title; ?> 41 | 42 | item->title; ?> 43 | 44 | 45 | params->get('listItemFeaturedNotice') && $this->item->featured): ?> 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |

55 | 56 | 57 | params->get('listItemAuthor')): ?> 58 | 59 | 66 | 67 | 68 |
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 | <?php echo $this->escape($this->item->image->alt); ?> 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 |
140 |

141 | item->extraFieldsGroups as $extraFieldGroup): ?> 142 |

name; ?>

143 |
    144 | fields as $key=>$extraField): ?> 145 | output): ?> 146 |
  • typetype); ?> groupgroup; ?>"> 147 | name; ?>: 148 | output; ?> 149 |
  • 150 | 151 | 152 |
153 | 154 |
155 |
156 | 157 | 158 | params->get('listItemHits') || ($this->params->get('listItemDateModified') && intval($this->item->modified)!=0)): ?> 159 |
160 | 161 | params->get('listItemHits')): ?> 162 | 163 | 164 | item->hits; ?> 165 | 166 | 167 | 168 | params->get('listItemDateModified') && intval($this->item->modified)!=0): ?> 169 | 170 | 171 | item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> 172 | 173 | 174 | 175 |
176 |
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 | 232 | 233 | 234 | params->get('listItemAuthorBlock') && empty($this->item->created_by_alias)): ?> 235 | 236 |
237 | 238 | params->get('listItemAuthorImage') && $this->item->author->image): ?> 239 | <?php echo $this->item->author->name; ?> 240 | 241 | 242 |
243 |

244 | 245 |

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 |

273 | 280 |
281 |
282 | 283 | 284 | params->get('listItemRelated') && count($this->item->related)): ?> 285 | 286 |
287 |

288 | 340 |
341 |
342 | 343 | 344 |
345 | 346 | params->get('listItemMedia') && count($this->item->media)): ?> 347 | 348 | 349 | 350 |
351 |

352 | item->media as $entry) : ?> 353 |
354 | 355 | 356 | output; ?> 357 | 358 | caption)): ?> 359 | caption; ?> 360 | 361 | 362 | credits)): ?> 363 | credits; ?> 364 | 365 | 366 |
367 |
368 | 369 |
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 |
409 | 410 | 411 | 412 |
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 |
25 | 26 | 27 | 28 |
29 |
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 |
39 | 40 | category->canAdd): ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | params->get('catImage') && $this->category->image): ?> 50 | 51 | <?php echo htmlspecialchars($this->category->image->alt, ENT_QUOTES, 'UTF-8'); ?> 52 | 53 | 54 | params->get('catTitle')): ?> 55 | 56 |

category->title; ?>params->get('catTitleItemCounter')) echo ' ('.$this->pagination->total.')'; ?>

57 | 58 | 59 | params->get('catDescription')): ?> 60 | 61 |

category->description; ?>

62 | 63 | 64 | params->get('catExtraFields') && count($this->category->extraFieldsGroups)): ?> 65 | 66 |
67 |

68 | category->extraFieldsGroups as $extraFieldGroup): ?> 69 |

name; ?>

70 |
    71 | fields as $key=>$extraField): ?> 72 | output): ?> 73 |
  • typetype); ?> groupgroup; ?>"> 74 | name; ?>: 75 | output; ?> 76 |
  • 77 | 78 | 79 |
80 | 81 |
82 |
83 | 84 | 85 | 86 | category->events->K2CategoryDisplay; ?> 87 | 88 |
89 |
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 | <?php echo htmlspecialchars($child->image->alt, ENT_QUOTES, 'UTF-8'); ?> 113 | 114 | 115 | 116 | params->get('subCatTitle')): ?> 117 | 118 |

119 | 120 | title; ?>params->get('subCatTitleItemCounter')) echo ' ('.$child->numOfItems.')'; ?> 121 | 122 |

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 |
25 | 26 | 27 | 28 |
29 |
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 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
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 |
41 | 42 | params->get('itemDateCreated')): ?> 43 | 44 | 45 | item->created, JText::_('K2_DATE_FORMAT_LC2')); ?> 46 | 47 | 48 | 49 | params->get('itemTitle')): ?> 50 | 51 |

52 | 53 | item->canEdit && !$this->print): ?> data-k2-editable="title" data-k2-item="item->id; ?>" >item->title; ?> 54 | 55 | params->get('itemFeaturedNotice') && $this->item->featured): ?> 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 |

65 | 66 | 67 | params->get('itemAuthor')): ?> 68 | 69 | 81 | 82 | 83 |
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 |
93 | 94 | item->canEdit && !$this->print): ?> 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | params->get('itemPrintButton') && !$this->print): ?> 104 | 105 | 106 | 107 | 108 | 109 | 110 | params->get('itemEmailButton') && !$this->print): ?> 111 | 112 | 113 | 114 | 115 | 116 | 117 |
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 | <?php echo $this->escape($this->item->image->alt); ?> 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 |
180 |

181 | item->extraFieldsGroups as $extraFieldGroup): ?> 182 |

name; ?>

183 |
    184 | fields as $key=>$extraField): ?> 185 | output): ?> 186 |
  • typetype); ?> groupgroup; ?>"> 187 | name; ?>: 188 | output; ?> 189 |
  • 190 | 191 | 192 |
193 | 194 |
195 |
196 | 197 | 198 | params->get('itemHits') || ($this->params->get('itemDateModified') && intval($this->item->modified)!=0)): ?> 199 |
200 | 201 | params->get('itemHits')): ?> 202 | 203 | 204 | item->hits; ?> 205 | 206 | 207 | 208 | params->get('itemDateModified') && intval($this->item->modified)!=0): ?> 209 | 210 | 211 | item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> 212 | 213 | 214 | 215 |
216 |
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 |
245 |
246 | 257 |
258 |
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 | 329 | 330 | 331 | params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?> 332 | 333 |
334 | 335 | params->get('itemAuthorImage') && $this->item->author->image): ?> 336 | <?php echo $this->item->author->name; ?> 337 | 338 | 339 |
340 |

341 | 342 |

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 | 377 |
378 |
379 | 380 | 381 | params->get('itemRelated') && count($this->item->related)): ?> 382 | 383 |
384 |

385 | 437 |
438 |
439 | 440 | 441 |
442 | 443 | params->get('itemMedia') && count($this->item->media)): ?> 444 | 445 | 446 | 447 |
448 |

449 | item->media as $entry) : ?> 450 |
451 | 452 | 453 | output; ?> 454 | 455 | caption)): ?> 456 | caption; ?> 457 | 458 | 459 | credits)): ?> 460 | credits; ?> 461 | 462 | 463 |
464 |
465 | 466 |
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 |
19 | 20 | params->get('listItemDateCreated')): ?> 21 | 22 | 23 | item->created, JText::_('K2_DATE_FORMAT_LC2')); ?> 24 | 25 | 26 | 27 | params->get('listItemTitle')): ?> 28 | 29 |

30 | item->canEdit): ?> 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | params->get('listItemTitleLinked')): ?> 40 | item->title; ?> 41 | 42 | item->title; ?> 43 | 44 | 45 | params->get('listItemFeaturedNotice') && $this->item->featured): ?> 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |

55 | 56 | 57 | params->get('listItemAuthor')): ?> 58 | 59 | 66 | 67 | 68 |
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 | <?php echo $this->escape($this->item->image->alt); ?> 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 |
140 |

141 | item->extraFieldsGroups as $extraFieldGroup): ?> 142 |

name; ?>

143 |
    144 | fields as $key=>$extraField): ?> 145 | output): ?> 146 |
  • typetype); ?> groupgroup; ?>"> 147 | name; ?>: 148 | output; ?> 149 |
  • 150 | 151 | 152 |
153 | 154 |
155 |
156 | 157 | 158 | params->get('listItemHits') || ($this->params->get('listItemDateModified') && intval($this->item->modified)!=0)): ?> 159 |
160 | 161 | params->get('listItemHits')): ?> 162 | 163 | 164 | item->hits; ?> 165 | 166 | 167 | 168 | params->get('listItemDateModified') && intval($this->item->modified)!=0): ?> 169 | 170 | 171 | item->modified, JText::_('K2_DATE_FORMAT_LC2')); ?> 172 | 173 | 174 | 175 |
176 |
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 | 232 | 233 | 234 | params->get('listItemAuthorBlock') && empty($this->item->created_by_alias)): ?> 235 | 236 |
237 | 238 | params->get('listItemAuthorImage') && $this->item->author->image): ?> 239 | <?php echo $this->item->author->name; ?> 240 | 241 | 242 |
243 |

244 | 245 |

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 |

273 | 280 |
281 |
282 | 283 | 284 | params->get('listItemRelated') && count($this->item->related)): ?> 285 | 286 |
287 |

288 | 340 |
341 |
342 | 343 | 344 |
345 | 346 | params->get('listItemMedia') && count($this->item->media)): ?> 347 | 348 | 349 | 350 |
351 |

352 | item->media as $entry) : ?> 353 |
354 | 355 | 356 | output; ?> 357 | 358 | caption)): ?> 359 | caption; ?> 360 | 361 | 362 | credits)): ?> 363 | credits; ?> 364 | 365 | 366 |
367 |
368 | 369 |
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 |
409 | 410 | 411 | 412 |
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 |
34 | 35 | 36 | 37 |
38 |
39 | 40 | 41 | params->get('categoryImage') && $category->image): ?> 42 |
43 | <?php echo htmlspecialchars($category->image->alt, ENT_QUOTES, 'UTF-8'); ?> 44 |
45 | 46 | 47 | params->get('categoryTitle')): ?> 48 |

title; ?>

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 |
69 | 70 | params->get('userFeed')): ?> 71 | 72 |
73 | 74 | 75 | 76 |
77 |
78 | 79 | 80 | params->get('userImage') && $user->image): ?> 81 | <?php echo htmlspecialchars($user->image->alt, ENT_QUOTES, 'UTF-8'); ?> 82 | 83 | 84 | params->get('userName')): ?> 85 |

86 | 87 | 88 | params->get('userDescription') && $user->description): ?> 89 |

description; ?>

90 | 91 | 92 | params->get('userURL') || $this->params->get('userEmail')): ?> 93 |

94 | params->get('userURL') && $user->site): ?> 95 | 96 | : site; ?> 97 | 98 | 99 | 100 | params->get('userEmail')): ?> 101 | 102 | : email); ?> 103 | 104 | 105 |

106 | 107 | 108 |
109 | 110 | events->K2UserDisplay; ?> 111 | 112 |
113 |
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 |
22 | params->get('latestItemTitle')): ?> 23 | 24 |

25 | params->get('latestItemTitleLinked')): ?> 26 | 27 | item->title; ?> 28 | 29 | 30 | item->title; ?> 31 | 32 |

33 | 34 |
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 |
60 | 61 | 62 | <?php echo $this->escape($this->item->image->alt); ?> 63 | 64 | 65 |
66 |
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 | 113 | 114 | 115 |
116 | 117 | params->get('latestItemVideo') && count($this->item->media)): ?> 118 | 119 |
120 |

121 | 122 | item->media as $entry) : ?> 123 |
124 |
output; ?>
125 | 126 | caption)): ?> 127 | caption; ?> 128 | 129 | 130 | credits)): ?> 131 | credits; ?> 132 | 133 | 134 |
135 |
136 | 137 |
138 | 139 | 140 | params->get('latestItemCommentsAnchor') && $this->params->get('comments')): ?> 141 | 142 | 158 | 159 | 160 | params->get('latestItemReadMore')): ?> 161 | 162 |
163 | 164 | 165 | 166 |
167 | 168 | 169 |
170 | 171 | 172 | item->events->K2AfterDisplay; ?> 173 | 174 |
175 |
176 | 177 | -------------------------------------------------------------------------------- /default/profile.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 |
17 | params->def('show_page_title',1)): ?> 18 |
19 | escape($this->params->get('page_title')); ?> 20 |
21 | 22 |
23 | 24 | 25 | 28 | 29 | 30 | 33 | 36 | 37 | 38 | 41 | 44 | 45 | 46 | 49 | 52 | 53 | 54 | 57 | 61 | 62 | 63 | 66 | 69 | 70 | 71 | 74 | 77 | 78 | 79 | 82 | 83 | 84 | 85 | 88 | 91 | 92 | 93 | 96 | 99 | 100 | 101 | 104 | 112 | 113 | 114 | 117 | 120 | 121 | K2Plugins))): ?> 122 | 123 | 124 | 127 | 128 | K2Plugins as $K2Plugin): ?> 129 | 130 | 131 | 134 | 135 | 136 | 137 | 138 | 139 | form)): ?> 140 | form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?> 141 | name != 'core'): ?> 142 | form->getFieldset($fieldset->name);?> 143 | 144 | label)):// If the fieldset has a label set, display it as the legend.?> 145 | 146 | 149 | 150 | 151 | 152 | hidden):// If the field is hidden, just display the input.?> 153 | 154 | 155 | 156 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 |
26 | 27 |
31 | 32 | 34 | user->get('username'); ?> 35 |
39 | 40 | 42 | 43 |
47 | 48 | 50 | 51 |
55 | 56 | 58 | 59 | * 60 |
64 | 65 | 67 | 68 |
72 | 73 | 75 | 76 |
80 | 81 |
86 | 87 | 89 | lists['gender']; ?> 90 |
94 | 95 | 97 | editor; ?> 98 |
102 | 103 | 105 | 106 | K2User->image): ?> 107 | <?php echo $this->user->name; ?> 108 | 109 | 110 | 111 |
115 | 116 | 118 | 119 |
125 | 126 |
132 | fields; ?> 133 |
147 | label);?> 148 |
input;?>
157 | label; ?> 158 | required && $field->type != 'Spacer'): ?> 159 | 160 | 161 | input;?>
171 |
172 | 175 |
176 |
177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 |
185 | -------------------------------------------------------------------------------- /default/register.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | params->get('show_page_heading')) : ?> 19 | 22 | 23 | 24 |
` 25 | 26 |
27 | 28 | 29 | 32 | 33 | 34 | 37 | 41 | 42 | 43 | 46 | 50 | 51 | 52 | 55 | 59 | 60 | 61 | 64 | 68 | 69 | 70 | 73 | 77 | 78 | 79 | 82 | 86 | 87 | 88 | 91 | 92 | 93 | 94 | 97 | 100 | 101 | 102 | 105 | 108 | 109 | 110 | 113 | 116 | 117 | 118 | 121 | 124 | 125 | K2Plugins))): ?> 126 | 127 | 128 | 131 | 132 | K2Plugins as $K2Plugin): ?> 133 | 134 | 135 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | form)): ?> 145 | form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?> 146 | name != 'default'): ?> 147 | form->getFieldset($fieldset->name);?> 148 | 149 | label)):// If the fieldset has a label set, display it as the legend.?> 150 | 151 | 154 | 155 | 156 | 157 | hidden):// If the field is hidden, just display the input.?> 158 | 159 | 160 | 161 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 |
30 | 31 |
35 | 36 | 38 | 39 | * 40 |
44 | 45 | 47 | 48 | * 49 |
53 | 54 | 56 | 57 | * 58 |
62 | 63 | 65 | 66 | * 67 |
71 | 72 | 74 | 75 | * 76 |
80 | 81 | 83 | 84 | * 85 |
89 | 90 |
95 | 96 | 98 | lists['gender']; ?> 99 |
103 | 104 | 106 | editor; ?> 107 |
111 | 112 | 114 | 115 |
119 | 120 | 122 | 123 |
129 | 130 |
136 | fields; ?> 137 |
152 | label);?> 153 |
input;?>
162 | label; ?> 163 | required && $field->type != 'Spacer'): ?> 164 | 165 | 166 | input;?>
177 | 178 | K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key')): ?> 179 | 180 |
181 | 182 | 183 |
184 |
185 | 188 |
189 |
190 | 191 | 192 | 193 | 194 | 195 | 196 |
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 |
25 | 26 | 27 | 28 |
29 |
30 | 31 | 32 |
33 | 34 | 35 |
36 | 37 | items)): ?> 38 |
39 | items as $item): ?> 40 | item = $item; echo $this->loadItemlistLayout(); ?> 41 | 42 |
43 | searchword): ?> 44 |
45 |

46 |
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 |
25 | 26 | 27 | 28 |
29 |
30 | 31 | 32 | params->get('tagExtraFields') && count($this->tag->extraFieldsGroups)): ?> 33 | 34 |
35 |

36 | tag->extraFieldsGroups as $extraFieldGroup): ?> 37 |

name; ?>

38 | 48 | 49 |
50 |
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 |
16 |
17 | image): ?> 18 | <?php echo htmlspecialchars($author->name, ENT_QUOTES, 'UTF-8'); ?> 19 | 20 | name; ?> 21 | 22 | 23 | 24 |
25 |
26 | -------------------------------------------------------------------------------- /default/user.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('userFeedIcon')): ?> 23 | 24 |
25 | 26 | 27 | 28 |
29 |
30 | 31 | 32 | params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?> 33 |
34 | 35 | author->canAdd && JRequest::getInt('id') == $this->user->id): ?> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | params->get('userImage') && $this->author->image): ?> 45 | <?php echo htmlspecialchars($this->author->image->alt, ENT_QUOTES, 'UTF-8'); ?> 46 | 47 | 48 | params->get('userName')): ?> 49 |

author->name; ?>

50 | 51 | 52 | params->get('userDescription') && $this->author->description): ?> 53 |
author->description; ?>
54 | 55 | 56 | params->get('userURL') && $this->author->site) || $this->params->get('userEmail')): ?> 57 |
58 | params->get('userURL') && $this->author->site): ?> 59 | 60 | : author->site; ?> 61 | 62 | 63 | 64 | params->get('userEmail')): ?> 65 | 66 | : author->email); ?> 67 | 68 | 69 |
70 | 71 | 72 | params->get('userExtraFields') && count($this->author->extraFieldsGroups)): ?> 73 | 74 |
75 |

76 | author->extraFieldsGroups as $extraFieldGroup): ?> 77 |

name; ?>

78 |
    79 | fields as $key=>$extraField): ?> 80 | output): ?> 81 |
  • typetype); ?> groupgroup; ?>"> 82 | name; ?>: 83 | output; ?> 84 |
  • 85 | 86 | 87 |
88 | 89 |
90 |
91 | 92 | 93 |
94 | 95 | author->events->K2UserDisplay; ?> 96 | 97 |
98 |
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 |
--------------------------------------------------------------------------------