Subversion Repositories SmartDukaan

Rev

Rev 452 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#set( $expslides = $expentity.getExpandedSlides() )

                <div class="content1 ie" style="margin-top:0px;">
                        <div class="lfbox">
                        <div class="bl">
                                <div class="br">                                
                                        <div class="controls contweak" style="padding-left:0px;">                                                                                               
                                                <div class="sideNav">
                                                        <ul id="sideNav">
                                                                #foreach( $expslide in $expslides )
                                                                        <li><a href="#vtab-$velocityCount" class="vt">$expslide.getSlideDefinition().getLabel()</a></li>
                                                                #end
                                                        </ul>
                                                </div>
                                                #foreach( $expslide in $expslides )
                                                        <div class="teaser" id="vtab-$velocityCount">
                                                                <h1>$expentity.getBrand() <strong>$expentity.getModelName()</strong></h1>
                                                                <!--
                                                                        #set( $imageRefs = $expSlide.getFreeformContent().getImageRefs() )
                                                                                #foreach( $imageRef in $imageRefs )
                                                                                        #set( $imageUrl = "http://localhost/images/" + $expentity.getID() + $imageRef)
                                                                                        <img src=$imageUrl alt="Nokia" />                                                       
                                                                                #end -->
                                                                        
                                                                
                                                                <DIV class="demo" id="tabs">
                                       <!-- tabb start -->
                                       <UL id="tab1">
                                            <LI class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><A onclick="runEffect2();">Images</A></LI>
                                            <LI class="ui-state-default ui-corner-top"><A  onclick="runEffect1();">View 360</A></LI>
                                            <LI class="ui-state-default ui-corner-top"><A  onclick="runEffect3();">Video</A></LI>

                                       </UL>
                                       <UL class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" id="tab2" style="display:none;">
                                            <LI class="ui-state-default ui-corner-top"><A onclick="runEffect2();">Images</A></LI>
                                            <LI class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><A  onclick="runEffect1();">View 360</A></LI>
                                            <LI class="ui-state-default ui-corner-top"><A  onclick="runEffect3();">Video</A></LI>
                                       </UL>
                                       <UL class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" id="tab3" style="display:none;">
                                            <LI class="ui-state-default ui-corner-top"><A onclick="runEffect2();">Images</A></LI>
                                            <LI class="ui-state-default ui-corner-top"><A  onclick="runEffect1();">View 360</A></LI>
                                            <LI class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><A  onclick="runEffect3();">Video</A></LI>
                                       </UL>
                                       <!-- tabb end -->
                                       <!-- tabb one(Images) content start -->
                                       <DIV id="tabss-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                                            <div id="loopedSlider">
                                                 <div class="container">
                                                      <div class="slides" onclick="changeImageStatus('Next')">
                                                      <div><img src="../images/nokia.png" /></div>
                                                           <div><img src="../images/nokia_videobg.gif" /></div>
                                                           <div><img src="../images/nokia.png" /></div>
                                                      </div>
                                                 </div>
                                                 <DIV class="bot" >
                                                      <div class="text" style="float:left;">
                                                           Displaying <span id="preCount" style="margin:0;">1</span> of  <span id="postCount" style="margin:0;">3</span> Images
                                                      </div>
                                                      <div style="float:right;">
                                                           <A href="#" class="next" onclick="changeImageStatus('Previous')">Previous</A> |
                                                           <A href="#" class="previous" onclick="changeImageStatus('Next')">Next</A>
                                                      </div>
                                                 </DIV>
                                            </div>
                                       </DIV>
                                       <!-- tabb one(Images) content end-->               
                                       <DIV id="tabss-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:none;">
                                            <div>
                                                 <div class="container">
                                                      <div>
                                                           <div><img src="../images/nokia_videobg.gif" width="311" height="481" /></div>
                                                      </div>
                                                 </div>
                                            </div>
                                       </DIV>
                                       <DIV id="tabss-3" class="ui-tabs-panel ui-widget-content ui-corner-bottom" style="display:none;">
                                            <div class="container">
                                                 <div class="slides">
                                                      <span class="videoImg">
                                                           <span class="videoStyle">
                                                                <div id="videoDiv-$velocityCount">Loading...</div>
                                                           </span>
                                                      </span>
                                                 </div>
                                            </div>
                                       </DIV>
                                  </DIV> 
                                                        
                                                        
                                                        
                                                        
                                                        <div class="desc">
                                                        <h4>$expslide.getSlideDefinition().getLabel()</h4>
                                                        <p>
                                                                #if ( $expslide.getExpandedFeatures() )
                                                                        <ul>
                                                                                #set ( $expfeatures = $expslide.getExpandedFeatures() )
                                                                                #foreach( $expfeature in $expfeatures )
                                                                                        <li>$expfeature.getFeatureDefinition().getLabel()
                                                                                                <ul>
                                                                                                        #if ( $expfeature.getExpandedBullets() )
                                                                                                                #set ( $expbullets = $expfeature.getExpandedBullets() )
                                                                                                                #foreach ( $expbullet in $expbullets)
                                                                                                                        <li>
                                                                                                                                $expbullet.displayText()
                                                                                                                        </li>
                                                                                                                        
                                                                                                                        #if ( $expbullet.getFreeformContent() )
                                                                                                                                $expbullet.getFreeformContent().getFreeformText()
                                                                                                                        #end
                                                                                                                #end
                                                                                                        #end
                                                                                                </ul>
                                                                                        </li>
                                                                                #end
                                                                                #if ( $expfeature.getFreeformContent() )
                                                                                        $expfeature.getFreeformContent().getFreeformText()
                                                                                #end
                                                                        </ul>
                                                                        </div>
                                                                #end
                                                                
                                                                #if ( $expslide.getExpandedChildrenSlides() )
                                                                        #set ( $expchildren = $expslide.getExpandedChildrenSlides() )
                                                                        #foreach( $expchild in $expchildren )
                                                                                #showchildslide ( $expchild )
                                                                        #end
                                                                #end

                                                                #if ( $expslide.getFreeformContent() )
                                                                        $expslide.getFreeformContent().getFreeformText()
                                                                #end
                                                        </p>
                                                        </div>
                                                #end
                                                        </div>
                                                        
                                                </div>                                                                  
                                        </div>
                                </div>                  
                        </div>                  
                
## MACROS ##

#macro ( showchildslide $expslide )
    <ul>
        <li>$expslide.getSlideDefinition().getLabel()
    #if ( $expslide.getExpandedFeatures() )
            <ul>
        #set ( $expfeatures = $expslide.getExpandedFeatures() )
        #foreach( $expfeature in $expfeatures )
                <li>$expfeature.getFeatureDefinition().getLabel()
                        <ul>
            #if ( $expfeature.getExpandedBullets() )
                #set ( $expbullets = $expfeature.getExpandedBullets() )
                #foreach ( $expbullet in $expbullets )
                                <li>
                                    $expbullet.displayText()
                                </li>
                    #if ( $expbullet.getFreeformContent() )
                        $expbullet.getFreeformContent().getFreeformText()
                    #end
                #end
            #end
                        </ul>
                </li>
        #end
        #if ( $expfeature.getFreeformContent() )
            $expfeature.getFreeformContent().getFreeformText()
        #end
            </ul>
    #end
    
    #if ( $expslide.getExpandedChildrenSlides() )
        #set ( $expchildren = $expslide.getExpandedChildrenSlides() )
        #foreach( $expchild in $expchildren )
            #showchildslide ( $expchild )
        #end
    #end

    #if ( $expslide.getFreeformContent() )
        $expslide.getFreeformContent().getFreeformText()
    #end
    
        </li>
    </ul>
#end