{capture name="row_template" assign="new_videos_template"}
    {literal}
        {jrCore_module_url module="jrYouTube" assign="murl"}
    {if isset($_items)}
    <div class="container">
        {foreach from=$_items item="row"}
        {if $row@first || ($row@iteration % 3) == 1}
        <div class="row">
        {/if}
            <div class="col4{if $row@last || ($row@iteration % 3) == 0} last{/if}">
                <div class="center">
                    <a href="{$jamroom_url}/{$row.profile_url}/{$murl}/{$row._item_id}/{$row.youtube_title_url}"><img src="{$row.youtube_artwork_url}" alt="{$row.youtube_title|jrCore_entity_string}" width="225"></a><br>
                    <h4><a href="{$jamroom_url}/{$row.profile_url}" title="{$row.profile_name}">{if strlen($row.youtube_title) > 20}{$row.youtube_title|truncate:20:"...":false}{else}{$row.youtube_title}{/if}</a></h4>
                </div>
            </div>
        {if $row@last || ($row@iteration % 3) == 0}
        </div>
        {/if}
        {/foreach}
    </div>
    {if $info.total_pages > 1}
    <div style="float:left; padding-top:12px;">
        {if $info.prev_page > 0}
        <span class="button-arrow-previous" onclick="jrLoad('#newest_videos','{$info.page_base_url}/p={$info.prev_page}');$('html, body').animate({ scrollTop: $('#nvideos').offset().top -100 }, 'slow');">&nbsp;</span>
        {else}
        <span class="button-arrow-previous-off">&nbsp;</span>
        {/if}
        {if $info.next_page > 1}
        <span class="button-arrow-next" onclick="jrLoad('#newest_videos','{$info.page_base_url}/p={$info.next_page}');$('html, body').animate({ scrollTop: $('#nvideos').offset().top -100 }, 'slow');">&nbsp;</span>
        {else}
        <span class="button-arrow-next-off">&nbsp;</span>
        {/if}
    </div>
    {/if}
    <div style="float:right; padding-top:9px;">
        <a href="{$jamroom_url}/youtube_videos" title="More Videos"><div class="button-more">&nbsp;</div></a>
    </div>

    <div class="clear"> </div>
    {/if}
    {/literal}
{/capture}


{jrCore_list module="jrYouTube" order_by="_item_id numerical_desc" template=$new_videos_template pagebreak="3" page=$_post.p}
