8867ac2a5c3fab6000f9b903676aeb9d8e808b6a
[atutor.git] / mods / social / html / tiny_applications.tmpl.php
1 <!--  compressed with java -jar {$path}/yuicompressor-2.3.5.jar -o {$file}-min.js {$file}.js -->
2 <script type="text/javascript"
3         src="<?php echo AT_SHINDIG_URL; ?>/gadgets/js/rpc.js?c=1"></script>
4 <script type="text/javascript"
5         src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js"></script>
6 <script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/jquery.all.js"></script>
7 <!--<script type="text/javascript" src="mods/social/lib/js/container.js"></script>-->
8
9 <?php   
10         foreach ($this->list_of_my_apps as $id=>$app_obj): 
11 ?>
12 <div class="gadget_wrapper">
13 <div class="headingbox">
14         <div style="float:right">
15                 <a href="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>applications.php?app_id=<?php echo $app_obj->getId().SEP;?>delete=1"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" border="0" alt="<?php echo _AT('delete'); ?>" title="<?php echo _AT('delete'); ?>" style="float:right;" /></a>
16
17                 <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'settings=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/icon-settings.png" alt="<?php echo _AT('settings');?>" title="<?php echo _AT('settings');?>" border="0" style="float:right;" /></a>
18         </div>  
19         <h3><?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?></h3>
20 </div>
21 <div class="contentbox" style="padding:0.5em;">
22 <?php
23         //the name and id here in the iframe is used by the container.js to identify the caller.
24         //Simply, the id is used here to generate the $(this.f)
25         //Originally it was using the ModID, I changed it to appId.
26         //@harris
27 ?>
28         <iframe 
29         scrolling="<?=$this->gadget['scrolling'] || $this->gadget['scrolling'] == 'true' ? 'yes' : 'no'?>"
30         height="<?php echo $app_obj->getHeight();?>px" width="100%"
31         frameborder="no" src="<?php echo $app_obj->getIframeUrl($_REQUEST['id'], 'profile', $_GET['appParams']);?>" class="gadgets-gadget"
32         name="remote_iframe_<?php echo $app_obj->getModuleId(); ?>"
33         id="remote_iframe_<?php echo $app_obj->getModuleId(); ?>"></iframe>     
34 </div></div><br />
35 <?php endforeach; ?>