Siriux G2 Theme: View Count for Albums

Some people have asked me how to change the “Siriux” theme for Gallery 2 (the newest version is included in the Gallery distribution!) to make it display the View Counts for each Album. So here we go:

  • Make a copy of themes/siriux/templates/album.tpl to themes/siriux/templates/local/album.tpl (see here for details)
  • Add this line to the <div class="meta"> ... </div> section: {g->text text="Views: %d" arg1=$child.viewCount}
  • It works nice after the first {if …} block, but you can place it whereever you want.