[% BLOCK editentry %] [% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %] [% IF entry.outline %]
[% IF useAJAX %] [% ELSE %] [% END %]
[% ELSE %]
[% IF useAJAX %] [% ELSE %] [% END %]
[% END %] [% END %] [% END %] [% BLOCK titleedit %]

[% "TITLE" | string %] [% IF useAJAX %] [% ELSE %] [% END %]

[% END %] [% BLOCK favoritescontrol %] [% IF entry.favorites == 1 %] [% WRAPPER favaddlink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=favadd&index=[% entry.index %]&sess=[% sess %]')" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=favadd&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [% END %] [% ELSIF entry.favorites == 2 %] [% WRAPPER favdellink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=favdel&index=[% entry.index %]&sess=[% sess %]')" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=favdel&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [% END %] [% END %] [% END %] [% BLOCK editcontrols %]
[% WRAPPER moveuplink noTarget=1 -%] href="[% webroot %]plugins/Favorites/index.html?action=moveup&index=[% entry.index %]&sess=[% sess %]" [%- END %] [% PROCESS favoritescontrol %] [% WRAPPER editlink noTarget=1 -%] [%- IF useAJAX -%]href="javascript:void(0);" onClick="edit('[% entry.index %]', '[% sess %]');" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=edit&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [%- END %] [% WRAPPER removelink noTarget=1 -%] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=delete&index=[% entry.index %]&sess=[% sess %]');" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=delete&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [%- END %]
[% END %] [% BLOCK playcontrols %] [%- IF entry.audio -%] [% WRAPPER addlink noTarget=1 -%] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxRequest('index.html', 'action=add&index=[% entry.index %]&sess=[% sess %]', refreshStatus);" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=add&index=[% entry.index %]&sess=[% sess %]" onClick="refreshStatus();" [%- END -%] [%- END %] [%- ELSE -%] [% PROCESS dummylink %] [%- END -%] [% END %] [% BLOCK entryblock -%] [%- WRAPPER contentitem leftcontrols = 'playcontrols' rightcontrols = 'editcontrols' itemobj.id = entry.index lineclass = 'favoritesContent' %] [% IF entry.audio %] [% ELSE %] [% END %] [% entry.title %] [% END -%] [% END %] [% IF ajaxRequest; FOREACH entry = entries; IF (entry.url == url); 'index|'; entry.index; END; END; ELSE; %] [% IF action == 'edit' AND useAJAX %] [% odd = 1 - (indexOnLevel % 2) %] [% PROCESS editentry entry = entries.$indexOnLevel %] [% ELSIF action == "editset" AND useAJAX %] [% odd = 1 - (indexOnLevel % 2) %] [% PROCESS entryblock entry = entries.$indexOnLevel %] [% ELSIF action == "edittitle" AND useAJAX %] [% PROCESS titleedit %] [% ELSE %] [% pagetitle = title | getstring; pageicon = 'PLUGINS' %] [% IF useAJAX %][% pageHeaderScripts = BLOCK %] [% END %][% END %] [% IF NOT ajaxUpdate %][% PROCESS pageheader.html dontscroll=1 %]
[% END %] [%- IF errormsg %]

[% errormsg %]

[% END -%] [%- IF NOT autosave %][% IF action == "edittitle" %][% PROCESS titleedit %][% ELSE %]

[% title %]

[% END %] [% END -%] [% odd = 1; fixedwidth = 220; %] [% WRAPPER contentcontainer %] [% FOREACH entry = entries %]
[% IF entry.edit -%] [%- PROCESS editentry -%] [%- ELSE -%] [%- PROCESS entryblock -%] [%- END %]
[%- odd = (not odd) -%] [%- END %] [% IF deleted %] [% BLOCK favoritesdeleteditem %] [% WRAPPER removelink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'forgetdelete&index=[% levelindex %]&sess=[% sess %]');" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?forgetdelete&index=[% levelindex %]&sess=[% sess %]" [%- END -%] [% END %] [% END %] [% IF useAJAX %] [% END %] [% WRAPPER contentitem rightcontrols = 'favoritesdeleteditem' %] [% PROCESS dummylink %] [% PROCESS dummylink %] [% "PLUGIN_FAVORITES_INSERTDEL" | string %] [ [% deleted %] ] [% END %] [% IF useAJAX %][% END %] [% odd = (not odd) %] [% END %] [%# clear the last entry info %] [% entry = '' %] [% IF load %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %]
[% IF useAJAX || useExtJS %] [% ELSE %] [% END %]
[% END %]
[% ELSIF save %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %]
[% IF useAJAX || useExtJS %] [% ELSE %] [% END %]
[% END %]
[% ELSIF import %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %]
[% IF useAJAX || useExtJS %] [% ELSE %] [% END %]
[% END %]
[% END %] [% END %] [% IF useAJAX %][% END %] [% IF NOT ajaxUpdate; selectedButton = 'Favorites'; PROCESS pagefooter.html; END %] [% END %] [% END %]