Subversion Repositories SmartDukaan

Rev

Rev 1158 | Rev 2605 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1158 Rev 2103
Line 119... Line 119...
119
 
119
 
120
 
120
 
121
						</ul>
121
						</ul>
122
					</div>
122
					</div>
123
					<!-- /slideGuideNav -->
123
					<!-- /slideGuideNav -->
124
 
-
 
125
					<script type="text/javascript">
-
 
126
					//var currentVideoId = "";
-
 
127
					
-
 
128
                    $(document).ready(
-
 
129
                    function loadPlayer(){
-
 
130
                     var params = { allowScriptAccess: "always" };
-
 
131
					 
-
 
132
					  #foreach( $expslide in $expslides )
-
 
133
					  	#if($expslide.getFreeformContent().getYoutubeLabels())
-
 
134
                      								
-
 
135
								#set( $videoRefs = $expslide.getFreeformContent().getYoutubeLabels())
-
 
136
        						#set( $slideId = $velocityCount)
-
 
137
							#if($videoRefs.size() != 0)	
-
 
138
    					var atts = { id: "ytPlayer$velocityCount" };	
-
 
139
                      	swfobject.embedSWF("http://www.youtube.com/apiplayer?" +
-
 
140
                                         "&enablejsapi=1&version=3&playerapiid=player$velocityCount",
-
 
141
                                         "videoDiv$velocityCount", "${screenwidth}", "${screenheight}", "8", "../expressInstall.swf", null, params, atts);
-
 
142
							#end			 
-
 
143
						#end	
-
 
144
					 #end
-
 
145
                    }
-
 
146
                     
-
 
147
                    );
-
 
148
                     
-
 
149
					</script>
-
 
150
					
-
 
151
					
124
					
152
					<script language="JavaScript">
125
					<script language="JavaScript">
153
                        <!--
126
                        <!--
154
						#foreach ( $expslide in $expslides )
127
						#foreach ( $expslide in $expslides )
155
							#if($expslide.getFreeformContent().getYoutubeLabels())
128
							#if($expslide.getFreeformContent().getYoutubeLabels())
Line 379... Line 352...
379
            							#end
352
            							#end
380
										var vidNumber$velocityCount = 0;  
353
										var vidNumber$velocityCount = 0;  
381
										 //-->
354
										 //-->
382
                                       </script>
355
                                       </script>
383
									#set( $media = $expslide.getFreeformContent().getMedias())
356
									#set( $media = $expslide.getFreeformContent().getMedias())
384
                                         <div class="container">
357
									<div class="container">
385
											
-
 
386
                                                <div class="slider-content">
358
										<div class="slider-content">
387
													 <div class="slider">
359
											<div class="slider">
388
														
-
 
389
													      <button style="display: inline; visibility: hidden;" class="prev">&laquo;</button>
360
												<button style="display: inline; visibility: hidden;" class="prev">&laquo;</button>
390
                                                          <button style="display: inline; visibility: visible;" class="next">&raquo;</button>
361
												<button style="display: inline; visibility: visible;" class="next">&raquo;</button>
391
                                                          <div class="">
362
												<div class="">
392
                                                               <ul style="margin-left: 0px;">
363
													<ul style="margin-left: 0px;">
-
 
364
									#set($firstVideoInitCode = "")
393
																#foreach( $videoLabel in $videoRefs )
365
									#foreach( $videoLabel in $videoRefs )
394
                                    								#set( $video = $media.get($videoLabel) )
366
										#set( $video = $media.get($videoLabel) )
395
                                    								#set( $youtubeId = $video.getYoutubeId())
367
										#set( $youtubeId = $video.getYoutubeId())
-
 
368
										
396
																	#set($localcount = $velocityCount - 1)
369
										#set($localcount = $velocityCount - 1)
397
																	#if($localcount != 0)
370
										#if($localcount != 0)
398
 																		<span style="color: rgb(102, 102, 102);">|</span>
371
												        <span style="color: rgb(102, 102, 102);">|</span>
399
																	#end
372
										#end
400
																	#set($videotype = $video.getVideoType())
373
										#set($videotype = $video.getVideoType())
401
    																<li onclick="javascript:goToVid('ytPlayer$slideno', '$youtubeId', '$localcount', video_title_$slideno,'vtab-$slideno')">$videoLabel</li>
-
 
402
    															#end
-
 
403
                                                               </ul>
-
 
404
                                                          </div>
-
 
405
														
374
										
406
													</div>
-
 
407
                                                </div>
-
 
408
 
-
 
409
                                              <div class="slides">
-
 
410
												   #if($videotype=="withoutskin")
375
										#if($videotype == "withskin")
411
                                                   <span style="background:url(../../db/media/${entityid}/skin.jpg) no-repeat; height:${skinheight}px; width:${skinwidth}px; float:left;" >
-
 
412
													    <span style="height:${screenheight}px; width:${screenwidth}px; margin:${screentopcornery}px 0px 0px ${screentopcornerx}px; float:left;">
-
 
413
<!--                    										 <object width="${screenwidth}" height="${screenheight}" type="application/x-shockwave-flash" id="ytPlayer$velocityCount" data="http://www.youtube.com/apiplayer?&amp;enablejsapi=1&amp;playerapiid=player$velocityCount"><param name="allowScriptAccess" value="always"></object>
376
											#set($videoHeight = $skinheight)
414
-->
-
 
415
<div id="videoDiv$velocityCount">
377
											#set($videoWidth = $skinwidth)
416
</div>
-
 
417
														</span>
378
										#else
418
                                                   </span>
379
											#set($videoHeight = $screenheight)
-
 
380
											#set($videoWidth = $screenwidth)
419
													#end
381
										#end
-
 
382
	
420
													#if($videotype=="withskin")
383
										#if($firstVideoInitCode == "")
421
													<span style=" height:${skinheight}px; width:${skinwidth}px; float:left;" >
-
 
422
													    <span style="height:${skinheight}px; width:${skinwidth}px; float:left;">
-
 
423
                    										 <object width="${skinwidth}" height="${skinheight}" type="application/x-shockwave-flash" id="ytPlayer$velocityCount" data="http://www.youtube.com/v/$youtubeId&amp;enablejsapi=1&amp;playerapiid=player$velocityCount"><param name="allowScriptAccess" value="always" allowfullscreen="true"></object>
384
											#set($firstVideoInitCode = "goToVid('ytPlayer$slideno', '$youtubeId', '$localcount', video_title_$slideno, 'vtab-$slideno', '$videotype', '$videoHeight', '$videoWidth', '$screentopcornerx', '$screentopcornery')")
424
					                                    </span>
-
 
425
                                                   </span>
-
 
426
												   #end
385
										#end
427
                                              <div class="modelName">$firstVideoTitle</div>
386
											            <li onclick="javascript:goToVid('ytPlayer$slideno', '$youtubeId', '$localcount', video_title_$slideno, 'vtab-$slideno', '$videotype', '$videoHeight', '$videoWidth', '$screentopcornerx', '$screentopcornery')">$videoLabel</li>
428
											</div>
-
 
429
									
-
 
430
                                         </div>
-
 
431
                                    </div>
-
 
432
									#end
387
									#end
-
 
388
													</ul>
-
 
389
												</div>
-
 
390
											</div>
-
 
391
										</div>
-
 
392
										<script type="text/javascript">
-
 
393
											$(function(){
-
 
394
												$firstVideoInitCode;
-
 
395
											});
-
 
396
										</script>
-
 
397
										<div class="slides">
-
 
398
											<span style="height:${skinheight}px; background:url(../../db/media/${entityid}/skin.jpg) no-repeat; width:${skinwidth}px; float:left;" >
-
 
399
												<span id="vedioContainer$velocityCount" style="height:${screenheight}px; width:${screenwidth}px; margin:${screentopcornery}px 0px 0px ${screentopcornerx}px; float:left;">
-
 
400
													<div id="videoDiv$velocityCount"></div>
-
 
401
												</span>
-
 
402
											</span>
-
 
403
										    <div class="modelName">$firstVideoTitle</div>
-
 
404
										</div>
-
 
405
									</div>
-
 
406
								</div>
-
 
407
								#end
433
                               </div>
408
                               </div>
434
 
409
 
435
							</div>
410
							</div>
436
                          <script type="text/javascript">
411
                          <script type="text/javascript">
437
                               $(function() {
412
                               $(function() {