{script} {literal} $(document).ready(function(){ var $tb_container = $(".ow_box_toolbar_cont", $("#photo_list_widget").parents('.ow_box, .ow_box_empty').get(0)); $("#photo-widget-menu-featured").click(function(){ $tb_container.html($("div#photo-widget-toolbar-featured").html()); }); $("#photo-widget-menu-latest").click(function(){ $tb_container.html($("div#photo-widget-toolbar-latest").html()); }); $("#photo-widget-menu-top-rated").click(function(){ $tb_container.html($("div#photo-widget-toolbar-top-rated").html()); }); }); {/literal} {/script}
{if $latest || $featured || $toprated} {$menu} {/if} {capture assign='nocontent'}
{text key='photo+no_photo'}, {text key='photo+add_new'}
{/capture}
{foreach from=$latest item='p'}`$p.id`]"}">{foreachelse} {$nocontent} {/foreach}
{if $latest}{/if} {if $featured}{/if} {if $toprated}{/if}