Changeset 1576

Show
Ignore:
Timestamp:
05/24/08 01:46:34 (8 months ago)
Author:
vollmerk
Message:

add ability to turn album art on / off on single artist view

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/docs/CHANGELOG

    r1571 r1576  
    55-------------------------------------------------------------------------- 
    66  v.3.5-Alpha1 
     7        - Added checkbox to single artist view allowing you to enable/disable 
     8                album art thumbnails on albums of said artist 
    79        - Added timeout override on update_single_item because the function 
    810                is a lie 
  • trunk/templates/show_artist_box.inc.php

    r1547 r1576  
    22/* 
    33 
    4  Copyright (c) 2001 - 2007 Ampache.org 
     4 Copyright (c) Ampache.org 
    55 All Rights Reserved 
    66 
     
    3131} // end if ratings ?> 
    3232 
    33 <strong><?php echo _('Actions'); ?>:</strong> 
    3433<div id="information_actions"> 
    35 Tags: 
    36         <?php 
    37         $tags = Tag::get_object_tags('artist', $artist->id); 
    38         foreach($tags as $i) 
    39           echo ($i['name']) . ' '; 
    40         ?> 
    41         <br/> 
    42 <form type=POST action=coin> 
    43 <?php 
    44 echo Ajax::text('?page=tag&action=add&type=artist&id=' . $artist->id . "&val='+document.getElementById('tagname').value+'", _("Add tag"), 'tag_artist'); 
    45 ?> 
    46 <input type="text" size="10" maxlength="10"  id="tagname"></input></form> 
    47  
    48 <a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>"><?php echo _("Show All Songs By") . " " . $artist->f_name; ?></a><br /> 
    49 <?php echo Ajax::text('?action=basket&type=artist&id=' . $artist->id,_('Add All Songs By') . ' ' . $artist->f_name,'play_full_artist'); ?><br /> 
    50 <?php echo Ajax::text('?action=basket&type=artist_random&id=' . $artist->id,_('Add Random Songs By') . ' ' . $artist->f_name,'play_random_artist'); ?><br /> 
    51 <?php if ($GLOBALS['user']->has_access('50')) { ?> 
    52         <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo _("Update from tags"); ?></a><br /> 
     34<ul> 
     35<li><a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('view'); ?></a> <?php echo _("Show All Songs By") . " " . $artist->f_name; ?></li> 
     36<li><?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add',_('Add'),'add_' . $artist->id); ?><?php echo _('Add All songs By') . ' ' . $artist->f_name; ?></li> 
     37<li><?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random',_('Random'),'random_' . $artist->id); ?><?php echo _('Add Random Songs By') . ' ' . $artist->f_name; ?></li> 
     38<?php if (Access::check('interface','50')) { ?> 
     39        <li><a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('cog'); ?></a> <?php echo _('Update from tags'); ?></li> 
    5340<?php } ?> 
    54 <?php if (Plugin::is_installed('OpenStrands')) { ?> 
    55 <?php echo Ajax::text('?page=stats&action=show_recommend&type=artist&id=' . $artist->id,_('Recommend Similar'),'artist_recommend_similar'); ?> 
    56 <?php } ?> 
     41<li> 
     42        <input type="checkbox" id="show_artist_artCB" <?php echo $string = Browse::get_filter('show_art') ? 'checked="checked"' : ''; ?>/> <?php echo _('Show Art'); ?> 
     43        <?php echo Ajax::observe('show_artist_artCB','click',Ajax::action('?page=browse&action=browse&key=show_art&value=1','')); ?> 
     44</ul> 
    5745</div> 
    5846<?php show_box_bottom(); ?> 
    59 <div id="additional_information"> 
    60 &nbsp; 
    61 </div> 
    62  
    63