materio-base-legacy/templates/materio-flag-mylists-block.tpl.php
2013-10-30 18:18:02 +01:00

19 lines
789 B
PHP
Executable File

<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>
<?php $content = $list['content']; ?>
<?php $entity_view = entity_view('node', $content, $viewmode); ?>
<div class="flaged <?php print $list['list']->name; ?>"> <?php print render($entity_view); ?> </div>
</section>
<?php endforeach; ?>
</div>