⌈⌋ branch:  freshcode

Artifact Content

Artifact a62d09fe73ccc335166b4be00719099e1d3b4944:

  • File template/projects_sidebar.php — part of check-in [4722f13f26] at 2015-08-28 06:14:24 on branch trunk — Change "Update infos" to "Update project". (user: mario size: 1645)

 * api: include
 * type: template
 * title: Sidebar links for project
 * description: Shows project URLs, submitter, submit/ and flag/ link, social bookmarks
 * depends: proj_links, social_share_count, social_share_links
 * Creates #sidebar with four <section>s:
 *   → Project links (homepage, download, other URLs)
 *   → Submitter with gravatar/identicon
 *   → Submission edit button, and flag/ link
 *   → Social sharing links and ★ star count.

$_ = "trim";

print <<<SIDEBAR
      <td id=sidebar>
           <a href="$entry[homepage]"><img src="img/home.png" width=11 height=11> Project Website</a><br>
           <a href="$entry[download]"><img src="img/disk.png" width=11 height=11> Download</a><br>
           {$_(proj_links($entry["urls"], $entry))} 

           <h5>Submitted by</h5>
           <a class=submitter href="/search?user=$entry[submitter]">$entry[submitter_img]$entry[submitter]</a><br>

         <section style="font-size:90%">
         You can also help out here by:<br>
         <a class=long-links href="/submit/$entry[name]" style="display:inline-block; margin: 3pt 1pt;">&larr; Update project</a><br>
         or <a href="/flag/$entry[name]">flagging</a> this entry for moderator attention.

         <section style="font-size:90%">
           <h5>Share project {$_(social_share_count($entry["social_links"]))}</h5>
           {$_(social_share_links($entry["name"], $entry["homepage"]))}