mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00

I let php-cs-fixer format the code.. seems that they worked on it so the most ugly line breaks are gone. And hopefully we Travis won't get angry any more. :-)
121 lines
4.3 KiB
PHP
121 lines
4.3 KiB
PHP
<?php
|
|
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
|
|
/**
|
|
*
|
|
* LICENSE: GNU Affero General Public License, version 3 (AGPLv3)
|
|
* Copyright 2001 - 2016 Ampache.org
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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 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');
|
|
?>
|
|
<?php
|
|
$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()) {
|
|
?>
|
|
<?php
|
|
if (AmpConfig::get('ratings')) {
|
|
?>
|
|
<div id="rating_<?php echo intval($tvshow->id); ?>_tvshow" style="display:inline;">
|
|
<?php show_rating($tvshow->id, 'tvshow'); ?>
|
|
</div>
|
|
<?php
|
|
} ?>
|
|
<?php if (AmpConfig::get('userflags')) {
|
|
?>
|
|
<div style="display:table-cell;" id="userflag_<?php echo $tvshow->id; ?>_tvshow">
|
|
<?php Userflag::show($tvshow->id, 'tvshow'); ?>
|
|
</div>
|
|
<?php
|
|
} ?>
|
|
<?php
|
|
} ?>
|
|
<div id="information_actions">
|
|
<h3><?php echo T_('Actions'); ?>:</h3>
|
|
<ul>
|
|
<?php if (AmpConfig::get('directplay')) {
|
|
?>
|
|
<li>
|
|
<?php echo Ajax::button('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id, 'play', T_('Play all'), 'directplay_full_' . $tvshow->id); ?>
|
|
<?php echo Ajax::text('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id, T_('Play all'), 'directplay_full_text_' . $tvshow->id); ?>
|
|
</li>
|
|
<?php
|
|
} ?>
|
|
<?php if (Stream_Playlist::check_autoplay_append()) {
|
|
?>
|
|
<li>
|
|
<?php echo Ajax::button('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id . '&append=true', 'play_add', T_('Play all last'), 'addplay_tvshow_' . $tvshow->id); ?>
|
|
<?php echo Ajax::text('?page=stream&action=directplay&object_type=tvshow&object_id=' . $tvshow->id . '&append=true', T_('Play all last'), 'addplay_tvshow_text_' . $tvshow->id); ?>
|
|
</li>
|
|
<?php
|
|
} ?>
|
|
<?php if (Access::check('interface', '50')) {
|
|
?>
|
|
<li>
|
|
<a id="<?php echo 'edit_tvshow_' . $tvshow->id ?>" onclick="showEditDialog('tvshow_row', '<?php echo $tvshow->id ?>', '<?php echo 'edit_tvshow_' . $tvshow->id ?>', '<?php echo T_('TV Show edit') ?>', '')">
|
|
<?php echo UI::get_icon('edit', T_('Edit')); ?>
|
|
</a>
|
|
<a id="<?php echo 'edit_tvshow_' . $tvshow->id ?>" onclick="showEditDialog('tvshow_row', '<?php echo $tvshow->id ?>', '<?php echo 'edit_tvshow_' . $tvshow->id ?>', '<?php echo T_('TV Show edit') ?>', '')">
|
|
<?php echo T_('Edit TV Show'); ?>
|
|
</a>
|
|
</li>
|
|
<?php
|
|
} ?>
|
|
<?php if (Catalog::can_remove($tvshow)) {
|
|
?>
|
|
<li>
|
|
<a id="<?php echo 'delete_tvshow_' . $tvshow->id ?>" href="<?php echo AmpConfig::get('web_path'); ?>/tvshows.php?action=delete&tvshow_id=<?php echo $tvshow->id; ?>">
|
|
<?php echo UI::get_icon('delete', T_('Delete')); ?> <?php echo T_('Delete'); ?>
|
|
</a>
|
|
</li>
|
|
<?php
|
|
} ?>
|
|
</ul>
|
|
</div>
|
|
<?php UI::show_box_bottom(); ?>
|
|
<div class="tabs_wrapper">
|
|
<div id="tabs_container">
|
|
<ul id="tabs">
|
|
<li class="tab_active"><a href="#seasons"><?php echo T_('Seasons'); ?></a></li>
|
|
<!-- Needed to avoid the 'only one' bug -->
|
|
<li></li>
|
|
</ul>
|
|
</div>
|
|
<div id="tabs_content">
|
|
<div id="seasons" class="tab_content" style="display: block;">
|
|
<?php
|
|
$browse->show_objects($object_ids, true);
|
|
$browse->store();
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|