public function get_footer()
 {
     if (!$this->isEnabled()) {
         return NULL;
     }
     $html = '<div id="sharing_cart_repository_header">' . '<span style="font-weight:bold;">' . sharing_cart_plugins::get_string('title', 'repository') . '</span>' . '</div>';
     $base = $GLOBALS['CFG']->wwwroot . '/blocks/sharing_cart/plugins/repository/download.php' . '?course=' . $GLOBALS['COURSE']->id . '&amp;repoid=';
     $icon = $GLOBALS['CFG']->wwwroot . '/blocks/sharing_cart/plugins/repository/pix/download.gif';
     $alt = sharing_cart_plugins::get_string('download', 'repository');
     $html .= '<div>' . sharing_cart_plugins::get_string('download_from', 'repository') . '</div>';
     $html .= '<ul class="list">';
     foreach ($this->config as $id => $info) {
         if (empty($info->enabled)) {
             continue;
         }
         if (empty($info->sitename)) {
             $sitename = sprintf('[%s #%u]', sharing_cart_plugins::get_string('title', 'repository'), $id);
         } else {
             $sitename = htmlspecialchars($info->sitename);
         }
         $html .= '<li class="r0" style="line-height:1.2em;">' . '<div class="icon column c0">' . '<img src="' . $icon . '" alt="' . $alt . '" />' . '</div>' . '<div class="column c1">' . '<a href="' . $base . $id . '">' . $sitename . '</a>' . '</div>' . '</li>';
     }
     $html .= '</ul>';
     return $html;
 }
 public static function getString($name)
 {
     return sharing_cart_plugins::get_string($name, 'repository');
 }