Returns an apropriate icon for the given bookmark.
static public getFavicon ( Trean_Bookmark $bookmark ) : Horde_Url | ||
$bookmark | Trean_Bookmark | The bookmark object. |
return | Horde_Url | The URL for the image. |
echo _("Clicks"); ?> </th> <th width="10%" class="horde-split-left nosort"></th> </tr> </thead> <tbody id="BookmarkList-body"> <?php foreach ($this->bookmarks as $bookmark) { ?> <tr> <td> <div class="trean-bookmarks-title"> <div class="trean-favicon-container"> <?php echo Horde::img(Trean::getFavicon($bookmark), '', array('class' => 'trean-favicon')); ?> </div> <?php if ($bookmark->http_status == 'error') { echo Horde::img('http/error.png'); } elseif ($bookmark->http_status) { echo Horde::img('http/' . (int) substr($bookmark->http_status, 0, 1) . 'xx.png'); } ?> <?php echo $this->redirectUrl->add('b', $bookmark->id)->link(array('target' => $this->target)) . $this->h($bookmark->title ? $bookmark->title : $bookmark->url); ?> </a> <small> <?php
?> } </script> <form name="bookmark_edit_form" action="<?php echo Horde::url('b/save'); ?> " method="post"> <input type="hidden" name="bookmark" value="<?php echo $bookmark->id; ?> " /> <h1 class="header"> <?php echo Horde::img(Trean::getFavicon($bookmark), '', 'class="trean-favicon"', ''); ?> <?php echo htmlspecialchars($bookmark->title); ?> </h1> <div class="horde-content horde-form"> <table cellspacing="0"> <tr> <td class="horde-form-label"><?php echo _("URL"); ?> </td> <td><input type="text" name="bookmark_url" size="40" value="<?php echo htmlspecialchars($bookmark->url);