Backend for songs.zachdecook.com
Diffstat (limited to 'page.php')
| -rw-r--r-- | page.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -65,7 +65,11 @@ function toc( $sort ){ } function tocentry( $item ){ - $output = "<li><a href=?song=$item[number]>$item[number]. $item[title]</a>"; + $class = ''; + if ( ! isset( $item['key'] ) ){ + $class = 'incomplete'; + } + $output = "<li class='$class'><a href=?song=$item[number]>$item[number]. $item[title]</a>"; if ( $item['verse'] ){ $output .= "($item[verse])"; } if ( $item['key'] ){ $output .= "($item[key])"; } |