Flag list OK

all ajax OK

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-11-08 17:42:38 +01:00
parent 1d11663ec4
commit b1bf1c9387
13 changed files with 864 additions and 317 deletions

View File

@@ -1,6 +1,10 @@
<section class="mylists">
<?php foreach ($lists as $name => $list): ?>
<h2 class="listname"><?php print $list['list']->title; ?></h2>
<div class="flaged"> <?php print render(entity_view('node', $list['content'], $viewmode)); ?> </div>
<?php //dsm($list, 'list');?>
<h2 class="listname <?php print $list['list']->name; ?>">
<span><?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'))) ;?></a>
</h2>
<div class="flaged <?php print $list['list']->name; ?>"> <?php print render(entity_view('node', $list['content'], $viewmode)); ?> </div>
<?php endforeach; ?>
</section>

View File

@@ -0,0 +1,9 @@
<?php //dsm($variables, '$variables'); ?>
<div class="materio-flags-list <?php print ' view-mode-' . $variables['view_mode'];?>" fid="<?php print $variables['fid']; ?>">
<div class="flaglist-items">
<p class="flaglist-infos"><?php print $list_count; ?></p>
<?php print render(entity_view('node', $items, $variables['view_mode'])); ?>
</div>
<?php print $pager; ?>
</div>

View File

@@ -0,0 +1,7 @@
<section class="mylists">
<ul>
<?php foreach ($flags as $name => $flag): ?>
<li class="flaglist <?php print $flag->name; ?>"><?php print $flag->title; ?></li>
<?php endforeach; ?>
</ul>
</section>

View File

@@ -3,6 +3,7 @@
?>
<section class="materiobase-actuality">
<?php if($count): ?>
<p class="actualities-infos"><?php print $actualities_infos; ?></p>
<div class="actuality-items">
<?php print render(entity_view('node', $items, $view_mode)); ?>
</div>