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 <div class="search_form">
9 <div class="headingbox"><h3><?php echo _AT('add_application'); ?></h3></div>
10 <div class="contentbox">
11 <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME."applications.php"); ?>">
12 <label for="app_url"><?php echo _AT('add_application_url'); ?>: </label>
13 <input id="app_url" name="app_url" type="text" />
14 <input type="hidden" name="add_application" value="1" />
15 <input type="submit" value="<?php echo _AT('add_application'); ?>" class="button" />
18 <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME."applications.php"); ?>">
19 <?php if (!isset($this->list_of_all_apps)): ?>
20 <input type="hidden" name="show_applications" value="1" />
21 <input type="submit" value="<?php echo _AT('show_available_applications'); ?>" class="button" />
23 <input type="submit" value="<?php echo _AT('show_your_applications'); ?>" class="button" />
29 <?php if (isset($this->list_of_all_apps) && !empty($this->list_of_all_apps)): ?>
30 <div class="gadget_wrapper">
31 <div class="headingbox"><h3><?php echo _AT('available_applications'); ?></h3></div>
33 foreach ($this->list_of_all_apps as $id=>$app_obj):
34 //skip the ones that are installed already
35 if ($this->list_of_my_apps[$id]!=null){
38 $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');
40 <div class="contentbox" style="padding:1em;">
41 <div style="float:left; ">
42 <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
43 <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'"/>', $id); ?><br/>
44 <?php echo _AT('by'); ?>
45 <?php if ($app_obj->getAuthorEmail()!=''): ?>
46 <a href="<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
47 <?php else: echo $author; ?>
51 <div style="float: right;">
53 <a href="<?php echo 'mods/social/applications.php?app_id='.$id.SEP.'settings=1'; ?>"><img src="<?php echo $_base_href;?>mods/social/images/icon-settings.png" alt="<?php echo _AT('settings');?>" title="<?php echo _AT('settings');?>" border="0"/></a>
55 <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'add=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/plus_icon.gif" alt="<?php echo _AT('add_to_mygadgets');?>" title="<?php echo _AT('add_to_mygadgets');?>" border="0"/></a>
57 <div style="width:60%; margin-left:10em; padding-top:1.5em;">
58 <?php echo $app_obj->getDescription(); ?><br/><br/>
59 <?php echo $app_obj->getUrl(); ?><br/>
67 <div class="gadget_wrapper">
68 <div class="headingbox"><h3><?php echo _AT('your_applications'); ?></h3></div>
70 foreach ($this->list_of_my_apps as $id=>$app_obj):
71 $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');
73 <div class="contentbox" style="padding:1em;">
74 <div style="float:left; ">
75 <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
76 <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'"/>', $id); ?><br/>
77 <?php echo _AT('by'); ?>
78 <?php if ($app_obj->getAuthorEmail()!=''): ?>
79 <a href="<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
80 <?php else: echo $author; ?>
84 <div style="float: right;">
85 <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"/></a>
87 <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'delete=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/b_drop.png" alt="<?php echo _AT('delete');?>" title="<?php echo _AT('delete');?>" border="0"/></a>
89 <div style="width:60%; margin-left:10em; padding-top:1.5em;">
90 <?php echo $app_obj->getDescription(); ?><br/><br/>
91 <?php echo $app_obj->getUrl(); ?><br/>
98 echo '<div class="contentbox" style="padding:1em;">';
99 echo _AT('no_gadgets_installed');