本文整理汇总了PHP中Art::display方法的典型用法代码示例。如果您正苦于以下问题:PHP Art::display方法的具体用法?PHP Art::display怎么用?PHP Art::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Art
的用法示例。
在下文中一共展示了Art::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Browse
* 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:
<?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: T_
%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: scrub_out
* 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: Browse
* 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: T_
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);
示例7: T_
<?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:
* 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: T_
<?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: display_art
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);
}
}
示例11:
?>
</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: rawurlencode
<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: display_art
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: Browse
* 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:
}
}
?>
</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';
}
?>