<div class="mylists">
	<?php foreach ($lists as $name => $list): ?>
		<section class="flag-list <?php print $list['list']->name; ?>">
			<?php //dsm($list, 'list');?>
			<h2 class="listname">
				<span class="listname">
					<?php print $list['list']->title.' ('.count($list['content']).')'; ?>
				</span>
				<a class="open-list" href="<?php print $list['list']->path; ?>">
					<?php //print t('open this @name', array('@name'=>variable_get('flag_lists_name', 'list'))) ;?>
					<i class="icon-resize-full"></i>
				</a>
			</h2>
			<div class="flaged <?php print $list['list']->name; ?>">	<?php print render(entity_view('node', $list['content'], $viewmode)); ?> </div>
		</section>	
	<?php endforeach; ?>
</div>