[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/capacity] includes/chihuahua: make teaser more reusable, patch by tsdgeos
From: Ingo Malchow <imalchow () kde ! org>
Date: 2013-02-28 22:20:56
Message-ID: 20130228222056.B59F9A604F () git ! kde ! org
[Download RAW message or body]
Git commit be2ae9d5db8d69605d24b392cc426ff0c59d82c7 by Ingo Malchow.
Committed on 28/02/2013 at 23:20.
Pushed by imalchow into branch 'master'.
make teaser more reusable, patch by tsdgeos
M +8 -5 includes/chihuahua/template-top1.inc
http://commits.kde.org/websites/capacity/be2ae9d5db8d69605d24b392cc426ff0c59d82c7
diff --git a/includes/chihuahua/template-top1.inc b/includes/chihuahua/template-top1.inc
index 30225ae..c065aa7 100644
--- a/includes/chihuahua/template-top1.inc
+++ b/includes/chihuahua/template-top1.inc
@@ -76,10 +76,13 @@
$('.toggle').show();
$('.teaser_hide').css('display', 'block');
<?php
- if (isset($teaser) && $teaser) {
- // initialize the teaser class and it's object
- include_once("classes/class_teaser.inc");
- $teaserImages = new teaserImageBuilder();
+ if (isset($teaser) && $teaser) {
+ // initialize the teaser class and it's object
+ include_once("classes/class_teaser.inc");
+ $teaserImages = new teaserImageBuilder();
+ if (isset($teaserFiles)) {
+ $teaserImages->files = $teaserFiles;
+ }
?>
// You need to add a comma after the php function output if there are more entries
jQuery.preLoadImages(<?php $teaserImages->imageList(); ?>,
@@ -149,4 +152,4 @@
</div>
<?php
}
-?>
\ No newline at end of file
+?>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic