예제 #1
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
$web_path = AmpConfig::get('web_path');
$browse = new Browse();
$browse->set_type($object_type);
UI::show_box_top($season->f_name . ' - ' . $season->f_tvshow_link, 'info-box');
?>
<div class="item_right_info">
    <?php 
Art::display('tvshow_season', $season->id, $season->f_name, 6);
?>
</div>
<?php 
if (User::is_registered()) {
    ?>
    <?php 
    if (AmpConfig::get('ratings')) {
        ?>
    <div id="rating_<?php 
        echo intval($season->id);
        ?>
_tvshow_season" style="display:inline;">
        <?php 
        show_rating($season->id, 'tvshow_season');
        ?>
예제 #2
0
            <?php 
    echo $media->f_tags;
    ?>
        </div>
    <?php 
}
?>
</div>

<?php 
if (Art::is_enabled()) {
    ?>
<div class="np_group" id="np_group_3">
  <div class="np_cell cel_albumart">
      <?php 
    Art::display('album', $media->album, $media->get_fullname(), 1, AmpConfig::get('web_path') . '/albums.php?action=show&album=' . $media->album);
    ?>
  </div>
</div>
<?php 
}
?>

<?php 
if (AmpConfig::get('show_similar')) {
    ?>
<div class="np_group similars" id="similar_items_<?php 
    echo $media->id;
    ?>
">
    <div class="np_group similars">
예제 #3
0
%22&go=Go" target="_blank"><?php 
echo UI::get_icon('wikipedia', T_('Search on Wikipedia ...'));
?>
</a>
        <a href="http://www.last.fm/search?q=%22<?php 
echo rawurlencode($label->f_name);
?>
%22&type=label" target="_blank"><?php 
echo UI::get_icon('lastfm', T_('Search on Last.fm ...'));
?>
</a>
    </div>
    <div id="artist_biography">
        <div class="item_info">
            <?php 
Art::display('label', $label->id, $label->f_name, 2);
?>
            <div class="item_properties">
                <?php 
echo scrub_out($label->address);
?>
            </div>
        </div>
        <div id="item_summary">
            <?php 
echo nl2br(scrub_out($label->summary));
?>
        </div>
    </div>
</div>
예제 #4
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
$web_path = AmpConfig::get('web_path');
UI::show_box_top("Song Lyrics", 'box box_lyrics_song');
/* Prepare the variables */
$title = scrub_out($song->title);
$album = scrub_out($song->f_album_full);
$artist = scrub_out($song->f_artist_full);
if ($album != T_('Unknown (Orphaned)')) {
    Art::display('album', $song->album, $song->f_album_full, 2);
}
?>

<div class="np_group">
  <div class="np_cell cel_song">
      <label><?php 
echo T_('Song');
?>
:</label>
      <a title="<?php 
echo scrub_out($song->title);
?>
" href="<?php 
echo $web_path;
?>
예제 #5
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
$web_path = AmpConfig::get('web_path');
$browse = new Browse();
$browse->set_type($object_type);
UI::show_box_top($tvshow->f_name, 'info-box');
?>
<div class="item_right_info">
    <?php 
Art::display('tvshow', $tvshow->id, $tvshow->f_name, 6);
?>
    <?php 
if ($tvshow->summary) {
    ?>
    <div id="item_summary">
        <?php 
    echo $tvshow->summary;
    ?>
    </div>
    <?php 
}
?>
</div>
<?php 
if (User::is_registered()) {
예제 #6
0
        echo Ajax::button('?page=stream&action=directplay&object_type=artist&object_id=' . $libitem->id . '&append=true', 'play_add', T_('Play last'), 'addplay_artist_' . $libitem->id);
        if (Stream_Playlist::check_autoplay_next()) {
            echo Ajax::button('?page=stream&action=directplay&object_type=artist&object_id=' . $libitem->id . '&playnext=true', 'play_next', T_('Play next'), 'nextplay_artist_' . $libitem->id);
        }
    }
}
?>
    </div>
</td>
<?php 
if (Art::is_enabled()) {
    $name = scrub_out($libitem->full_name);
    ?>
<td class="cel_cover">
    <?php 
    Art::display('artist', $libitem->id, $name, 1, AmpConfig::get('web_path') . '/artists.php?action=show&artist=' . $libitem->id);
    ?>
</td>
<?php 
}
?>
<td class="cel_artist"><?php 
echo $libitem->f_link;
?>
</td>
<td class="cel_add">
    <span class="cel_item_add">
    <?php 
if ($show_playlist_add) {
    echo Ajax::button('?action=basket&type=artist&id=' . $libitem->id, 'add', T_('Add to temporary playlist'), 'add_artist_' . $libitem->id);
    echo Ajax::button('?action=basket&type=artist_random&id=' . $libitem->id, 'random', T_('Random to temporary playlist'), 'random_artist_' . $libitem->id);
    <?php 
if (AmpConfig::get('directplay')) {
    echo Ajax::button('?page=stream&action=directplay&object_type=tvshow_season&object_id=' . $libitem->id, 'play', T_('Play'), 'play_season_' . $libitem->id);
    if (Stream_Playlist::check_autoplay_append()) {
        echo Ajax::button('?page=stream&action=directplay&object_type=tvshow_season&object_id=' . $libitem->id . '&append=true', 'play_add', T_('Play last'), 'addplay_season_' . $libitem->id);
    }
}
?>
    </div>
</td>
<?php 
if (Art::is_enabled()) {
    ?>
<td class="cel_cover">
    <?php 
    Art::display('tvshow_season', $libitem->id, $libitem->f_name, 6, $libitem->link);
    ?>
</td>
<?php 
}
?>
<td class="cel_season"><?php 
echo $libitem->f_link;
?>
</td>
<td class="cel_tvshow"><?php 
echo $libitem->f_tvshow_link;
?>
</td>
<td class="cel_episodes"><?php 
echo $libitem->episodes;
예제 #8
0
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
?>

<div class="item_info">
    <?php 
if ($biography['id']) {
    Art::display('artist', $biography['id'], $artist->f_name, 2);
} else {
    ?>
        <div class="item_art">
            <?php 
    if ($biography && is_array($biography)) {
        ?>
                <a href="<?php 
        echo $biography['megaphoto'];
        ?>
" rel="prettyPhoto"><img src="<?php 
        echo $biography['largephoto'];
        ?>
" alt="<?php 
        echo $artist->f_name;
        ?>
예제 #9
0
    <?php 
if (AmpConfig::get('directplay')) {
    echo Ajax::button('?page=stream&action=directplay&object_type=podcast&object_id=' . $libitem->id, 'play', T_('Play'), 'play_podcast_' . $libitem->id);
    if (Stream_Playlist::check_autoplay_append()) {
        echo Ajax::button('?page=stream&action=directplay&object_type=podcast&object_id=' . $libitem->id . '&append=true', 'play_add', T_('Play last'), 'addplay_podcast_' . $libitem->id);
    }
}
?>
    </div>
</td>
<?php 
if (Art::is_enabled()) {
    ?>
<td class="cel_cover">
    <?php 
    Art::display('podcast', $libitem->id, $libitem->f_name, 2, $libitem->link);
    ?>
</td>
<?php 
}
?>
<td class="cel_title"><?php 
echo $libitem->f_link;
?>
</td>
<td class="cel_episodes"><?php 
echo $libitem->episodes;
?>
</td>
<?php 
if (User::is_registered()) {
예제 #10
0
 public function display_art($thumb = 2)
 {
     $id = null;
     $type = null;
     if (Art::has_db($this->id, 'podcast_episode')) {
         $id = $this->id;
         $type = 'podcast_episode';
     } else {
         if (Art::has_db($this->podcast, 'podcast')) {
             $id = $this->podcast;
             $type = 'podcast';
         }
     }
     if ($id !== null && $type !== null) {
         Art::display($type, $id, $this->get_fullname(), $thumb, $this->link);
     }
 }
?>
</label>
        <?php 
echo $media->f_link;
?>
    </div>
</div>

<?php 
if (Art::is_enabled()) {
    ?>
<div class="np_group" id="np_group_3">
  <div class="np_cell cel_albumart">
    <?php 
    $release_art = $media->get_release_item_art();
    Art::display($release_art['object_type'], $release_art['object_id'], $media->get_fullname(), 6, $media->link);
    ?>
  </div>
</div>
<?php 
}
?>

<div class="np_group" id="np_group_4">
<?php 
if (AmpConfig::get('ratings')) {
    ?>
    <div class="np_cell cel_rating">
        <label><?php 
    echo T_('Rating');
    ?>
예제 #12
0
        <a href="http://www.last.fm/search?q=%22<?php 
echo rawurlencode($album->f_artist);
?>
%22+%22<?php 
echo rawurlencode($album->f_name);
?>
%22&type=album" target="_blank"><?php 
echo UI::get_icon('lastfm', T_('Search on Last.fm ...'));
?>
</a>
    </div>
    <?php 
if ($album->name != T_('Unknown (Orphaned)')) {
    $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
    $thumb = UI::is_grid_view('album') ? 2 : 11;
    Art::display('album', $album->id, $name, $thumb);
}
?>
</div>
<div id="information_actions">
    <h3><?php 
echo T_('Actions');
?>
:</h3>
    <ul>
        <?php 
if ($show_direct_play) {
    ?>
        <li>
            <?php 
    echo Ajax::button('?page=stream&action=directplay&object_type=album&' . $album->get_http_album_query_ids('object_id'), 'play', T_('Play'), 'directplay_full_');
예제 #13
0
 public function display_art($thumb = 2)
 {
     $id = null;
     $type = null;
     if (Art::has_db($this->id, 'album')) {
         $id = $this->id;
         $type = 'album';
     } else {
         if (Art::has_db($this->artist_id, 'artist')) {
             $id = $this->artist_id;
             $type = 'artist';
         }
     }
     if ($id !== null && $type !== null) {
         Art::display($type, $id, $this->get_fullname(), $thumb, $this->link);
     }
 }
예제 #14
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
$browse = new Browse();
$browse->set_type($object_type);
UI::show_box_top($podcast->f_title, 'info-box');
?>
<div class="item_right_info">
    <?php 
$thumb = UI::is_grid_view('podcast') ? 2 : 11;
Art::display('podcast', $podcast->id, $podcast->f_title, $thumb);
?>
    <?php 
if ($podcast->description) {
    ?>
    <div id="item_summary">
        <?php 
    echo $podcast->description;
    ?>
    </div>
    <?php 
}
?>
</div>
<?php 
if (User::is_registered()) {
예제 #15
0
    }
}
?>
    </div>
</td>
<?php 
if (Art::is_enabled()) {
    ?>
<td class="cel_cover">
    <?php 
    $art_showed = false;
    if ($libitem->get_default_art_kind() == 'preview') {
        $art_showed = Art::display('video', $libitem->id, $libitem->f_title, 9, $libitem->link, false, 'preview');
    }
    if (!$art_showed) {
        Art::display('video', $libitem->id, $libitem->f_title, 6, $libitem->link);
    }
    ?>
</td>
<?php 
}
?>
<td class="cel_title"><?php 
echo $libitem->f_link;
?>
</td>
<?php 
if ($video_type != 'video') {
    require AmpConfig::get('prefix') . '/templates/show_partial_' . $video_type . '_row.inc.php';
}
?>
예제 #16
0
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
UI::show_box_top($video->f_title . ' ' . T_('Details'), 'box box_video_details');
?>
<div class="item_right_info">
<?php 
$gart = false;
// The release type is not the video itself, we probably want preview
if (strtolower(get_class($video)) != 'movie') {
    $gart = Art::display('video', $video->id, $video->f_title, 8, null, false, 'preview');
}
if (!$gart) {
    $gart = Art::display('video', $video->id, $video->f_title, 7);
}
if (AmpConfig::get('encode_srt')) {
    ?>
<div class="subtitles">
<?php 
    echo T_('Subtitle');
    ?>
:
<select name="subtitle" id="play_setting_subtitle">
    <option value=''><?php 
    echo T_("None");
    ?>
</option>
<?php 
    $subtitles = $video->get_subtitles();
예제 #17
0
 public function display_art($thumb = 2)
 {
     $id = null;
     $type = null;
     if (Art::has_db($this->id, 'video')) {
         $id = $this->id;
         $type = 'video';
     } else {
         if (Art::has_db($this->season, 'tvshow_season')) {
             $id = $this->season;
             $type = 'tvshow_season';
         } else {
             $season = new TVShow_Season($this->season);
             if (Art::has_db($season->tvshow, 'tvshow')) {
                 $id = $season->tvshow;
                 $type = 'tvshow';
             }
         }
     }
     if ($id !== null && $type !== null) {
         Art::display($type, $id, $this->get_fullname(), $thumb, $this->link);
     }
 }
예제 #18
0
        echo Ajax::button('?page=stream&action=directplay&object_type=album&' . $libitem->get_http_album_query_ids('object_id') . '&append=true', 'play_add', T_('Play last'), 'addplay_album_' . $libitem->id);
        if (Stream_Playlist::check_autoplay_next()) {
            echo Ajax::button('?page=stream&action=directplay&object_type=album&object_id=' . $libitem->id . '&playnext=true', 'play_next', T_('Play next'), 'nextplay_album_' . $libitem->id);
        }
    }
}
?>
    </div>
</td>
<?php 
if (Art::is_enabled()) {
    $name = '[' . $libitem->f_artist . '] ' . scrub_out($libitem->full_name);
    ?>
<td class="cel_cover">
    <?php 
    Art::display('album', $libitem->id, $name, 1, AmpConfig::get('web_path') . '/albums.php?action=show&album=' . $libitem->id);
    ?>
</td>
<?php 
}
?>
<td class="cel_album"><?php 
echo $libitem->f_link;
?>
</td>
<td class="cel_add">
    <span class="cel_item_add">
        <?php 
if ($show_playlist_add) {
    echo Ajax::button('?action=basket&type=album&' . $libitem->get_http_album_query_ids('id'), 'add', T_('Add to temporary playlist'), 'add_album_' . $libitem->id);
    echo Ajax::button('?action=basket&type=album_random&' . $libitem->get_http_album_query_ids('id'), 'random', T_('Random to temporary playlist'), 'random_album_' . $libitem->id);
예제 #19
0
</a>
        <a href="http://www.last.fm/search?q=%22<?php 
echo rawurlencode($album->f_artist);
?>
%22+%22<?php 
echo rawurlencode($album->f_name);
?>
%22&type=album" target="_blank"><?php 
echo UI::get_icon('lastfm', T_('Search on Last.fm ...'));
?>
</a>
    </div>
    <?php 
if ($album->name != T_('Unknown (Orphaned)')) {
    $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
    Art::display('album', $album->id, $name, 2);
}
?>
</div>
<div id="information_actions">
    <h3><?php 
echo T_('Actions');
?>
:</h3>
    <ul>
        <?php 
if ($show_direct_play) {
    ?>
        <li>
            <?php 
    echo Ajax::button('?page=stream&action=directplay&object_type=album&' . $album->get_http_album_query_ids('object_id'), 'play', T_('Play'), 'directplay_full_');
예제 #20
0
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 */
if (Art::is_enabled()) {
    $name = scrub_out($libitem->f_name);
    ?>
<td class="cel_cover">
    <?php 
    Art::display('label', $libitem->id, $name, 1, AmpConfig::get('web_path') . '/labels.php?action=show&label=' . $libitem->id);
    ?>
</td>
<?php 
}
?>
<td class="cel_label"><?php 
echo $libitem->f_link;
?>
</td>
<td class="cel_category"><?php 
echo $libitem->category;
?>
</td>
<td class="cel_artists"><?php 
echo $libitem->artists;
예제 #21
0
파일: tag.class.php 프로젝트: nioc/ampache
 public function display_art($thumb = 2)
 {
     if (Art::has_db($this->id, 'tag')) {
         Art::display('tag', $this->id, $this->get_fullname(), $thumb, $this->link);
     }
 }
예제 #22
0
 */
$web_path = AmpConfig::get('web_path');
$button = Ajax::button('?page=index&action=random_videos', 'random', T_('Refresh'), 'random_video_refresh');
UI::show_box_top(T_('Videos of the Moment') . ' ' . $button, 'box box_random_videos');
if ($videos) {
    foreach ($videos as $video_id) {
        $video = Video::create_from_id($video_id);
        $video->format();
        ?>
    <div class="random_video">
        <div class="art_album">
            <?php 
        if (Art::is_enabled()) {
            $release_art = $video->get_release_item_art();
            $thumb = UI::is_grid_view('video') ? 6 : 7;
            Art::display($release_art['object_type'], $release_art['object_id'], $video->get_fullname(), $thumb, $video->link);
        } else {
            ?>
                <?php 
            echo $video->get_fullname();
            ?>
            <?php 
        }
        ?>
        </div>
        <div class="play_video">
        <?php 
        if (AmpConfig::get('directplay')) {
            ?>
            <?php 
            echo Ajax::button('?page=stream&action=directplay&object_type=video&object_id=' . $video->id, 'play', T_('Play'), 'play_album_' . $video->id);