[%# View a table of all images in a mood theme. # # Authors: # import r26.1 livejournal -- original page # Jen Griffin -- TT conversion # # Copyright (c) 2008-2020 by Dreamwidth Studios, LLC. # # This program is free software; you may redistribute it and/or modify it # under the same terms as Perl itself. For a copy of the license, please # reference 'perldoc perlartistic' or 'perldoc perlgpl'. # %] [%- sections.title='.title' | ml( sitename = site.nameshort ) -%] [%- sections.head = BLOCK %] [% END %] [%- CALL dw.active_resource_group( "foundation" ) -%]

[% '.backlink' | ml %]

[% '.moods.howtochange' | ml( aopts = "href='${site.root}/customize/'" ) %]

[%- IF ownerinfo -%] [% ownerinfo %] [%- ELSE -%]
[% form.select( name = "moodtheme", selected = themeid, items = theme_select ) %] [% form.submit( value = dw.ml( '.btn.view' ) ) %] [% IF mode; form.hidden( name = 'mode', value = mode ); END %]

[% '.view.tree' | ml %]

[%- END -%]
[%- i = 0; WHILE i < mlist.size -%] [%- # show five moods in a row j = 0; WHILE j < 5; LAST IF i >= mlist.size; m = mlist.$i; mood = m.name; dicturl = "http://dictionary.reference.com/search?q=$mood"; pic = load_image( themeid, mood ) -%] [%- i = i + 1; j = j + 1; END -%] [%- END -%]
[%- IF pic.keys.size -%] [% mood | html %]
[%- END -%] [% mood %]