~heikkiket/wp-levylista/trunk

« back to all changes in this revision

Viewing changes to views/artist_list_view.php

  • Committer: Heikki Ketoharju
  • Date: 2014-12-31 14:42:51 UTC
  • Revision ID: heikki.ketoharju@iki.fi-20141231144251-ydyis1kpgnnbx7nh
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?
 
2
/*
 
3
 * Custom view for artist list.
 
4
 * Call: levylista_artist_list_view($artist)
 
5
 *
 
6
 * Part of Levylista plugin.
 
7
 */
 
8
 
 
9
 ?>
 
10
 
 
11
 <table>
 
12
    <th><a href="?orderby=">Artisti</a></th><th><a href="?orderby=albumcount" title="Järjestä levyjen määrän perusteella">Levyjä</a></th>
 
13
  <? foreach($artists as $artist) { ?>
 
14
    <tr>
 
15
        <td><a href="<? levylista_the_artist_url($artist['name']) ?>"><? echo $artist['name'] ?></td>
 
16
        <td><? echo $artist['albums'] ?></td>
 
17
    </tr>
 
18
  <? } //end foreach ?>
 
19
 </table>
 
 
b'\\ No newline at end of file'