[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [websites/capacity/devel] includes/chihuahua: make teaser more reusable, patch by tsdgeos
From:       Ingo Malchow <imalchow () kde ! org>
Date:       2013-02-28 22:20:12
Message-ID: 20130228222012.465AFA604F () git ! kde ! org
[Download RAW message or body]

Git commit e02665b92fd4aec627af3668e489c7e11bebb9af by Ingo Malchow.
Committed on 28/02/2013 at 23:17.
Pushed by imalchow into branch 'devel'.

make teaser more reusable, patch by tsdgeos

M  +8    -5    includes/chihuahua/template-top1.inc

http://commits.kde.org/websites/capacity/e02665b92fd4aec627af3668e489c7e11bebb9af

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