$year = $album->album_year; $price = $album->album_price; $url = base_url() . "album/{$id}/" . strToUrl($title); echo a_open("list-group-item", "{$url}"); echo "{$title} ({$year})"; echo "<span class='badge'>\${$price}</span>"; echo a_close(); } ?> </div> <div class="list-group"> <a class="list-group-item active">Sencillos</a> <?php // Get list of most selled albums $query = $this->db->order_by('song_year DESC'); $query = $this->db->get('db_song'); $topsong = $query->result(); foreach ($topsong as $song) { $id = $song->song_id; $title = $song->song_title; $year = $song->song_year; $price = $song->song_price; $url = base_url() . "song/{$id}/" . strToUrl($title); echo a_open("list-group-item", "{$url}"); echo "{$title} ({$year})"; echo "<span class='badge'>\${$price}</span>"; echo a_close(); } ?> </div>
echo a_open('list-group-item', $url); echo "{$title} ({$year})"; echo a_close(); } echo div_close(); echo div_close(); } // Case: Found a match in Songs from an album if ($albumSongCount > 0) { echo br(); echo div_open('col-sm-12 col-md-6'); echo heading("Canciones ({$albumSongCount})", 4, array('class' => 'page-header')); echo div_open('list-group'); foreach ($albumSongList as $song) { $id = $song->track_id; $title = $song->track_title; $url = base_url() . "album/{$id}/" . strToUrl($title); echo a_open('list-group-item', $url); echo $title; echo a_close(); } echo div_close(); echo div_close(); } } ?> </div> </div>