merged materiobasemod submodule
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$entity_view = entity_view('node', $items, 'teaser');
|
||||
print render($entity_view);
|
@@ -0,0 +1,3 @@
|
||||
<section id="didactique-page">
|
||||
<?php print render(entity_view('node', $items, 'full')); ?>
|
||||
</section>
|
@@ -0,0 +1,5 @@
|
||||
|
||||
<section class="bookmarks">
|
||||
<?php $entity_view = entity_view('node', $bookmarks, $viewmode); ?>
|
||||
<?php print render($entity_view); ?>
|
||||
</section>
|
@@ -0,0 +1,19 @@
|
||||
<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>
|
@@ -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>
|
||||
|
@@ -0,0 +1,39 @@
|
||||
<section class="mylists">
|
||||
<ul>
|
||||
<?php if($flags): ?>
|
||||
<?php foreach ($flags as $name => $flag): ?>
|
||||
<?php //dsm($flag, 'flag') ;?>
|
||||
<li class="flaglist <?php print $flag->name; ?>">
|
||||
<?php print l($flag->title . '<span class="count">('.count($flag->flaged_content).')</span>', 'lists/'.$flag->fid, array('html'=>true,'attributes'=>array('class'=>array('open-list', $flag->name)))); ?>
|
||||
<?php if(flag_lists_is_owner('edit', $flag->fid)): ?>
|
||||
<?php
|
||||
print l('<i class="icon-wrench"></i>',
|
||||
'flags/lists/edit/'.$flag->fid,
|
||||
array(
|
||||
'html'=>true,
|
||||
'attributes'=>array('class'=>array('edit-list', $flag->name)),
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
#create new list
|
||||
$create_link = l(
|
||||
'<i class="icon-plus"></i> <span>' . t('New @name', array('@name' => t(variable_get('flag_lists_name', 'list')))) . '</span>',
|
||||
'flag-lists/add/materiau',
|
||||
array(
|
||||
'attributes' => array(
|
||||
'class' => array('flag-lists-create'),
|
||||
'title' => t('create a new @name.', array('@name'=>t(variable_get('flag_lists_name', 'list')))),
|
||||
),
|
||||
'html' => TRUE,
|
||||
)
|
||||
);
|
||||
?>
|
||||
<li class="flag-lists-create"><?php print $create_link; ?> </li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</section>
|
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
<section class="materiobase-actuality">
|
||||
<?php if($count): ?>
|
||||
<p class="actualities-infos"><?php print $actualities_infos; ?></p>
|
||||
<div class="actuality-items">
|
||||
<?php $entity_view = entity_view('node', $items, $view_mode); ?>
|
||||
<?php print render($entity_view); ?>
|
||||
</div>
|
||||
<div class="pager">
|
||||
<?php print $pager; ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="actuality-no-items">
|
||||
<h2><?php print t('There is now actuality for now.');?></h2>
|
||||
</div>
|
||||
<?php endif ;?>
|
||||
</section>
|
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
print render($content);
|
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for displaying search results.
|
||||
*
|
||||
* This template collects each invocation of theme_search_result(). This and
|
||||
* the child template are dependent to one another sharing the markup for
|
||||
* definition lists.
|
||||
*
|
||||
* Note that modules and themes may implement their own search type and theme
|
||||
* function completely bypassing this template.
|
||||
*
|
||||
* Available variables:
|
||||
* - $result_count: Number of results.
|
||||
* - $spellcheck: Possible spelling suggestions from Search spellcheck module.
|
||||
* - $search_results: All results rendered as list items in a single HTML string.
|
||||
* - $items: All results as it is rendered through search-result.tpl.php.
|
||||
* - $search_performance: The number of results and how long the query took.
|
||||
* - $sec: The number of seconds it took to run the query.
|
||||
* - $pager: Row of control buttons for navigating between pages of results.
|
||||
* - $index:
|
||||
* - $keys: The keywords of the executed search.
|
||||
* - $page_machine_name: Machine name of the current Search API Page.
|
||||
*
|
||||
* View Mode is set in the Search page settings. If you select
|
||||
* "Themed as search results", then the child template will be used for
|
||||
* theming the individual result. Any other view mode will bypass the
|
||||
* child template.
|
||||
*
|
||||
* @see template_preprocess_search_api_page_results()
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php //dsm($index, 'index'); ?>
|
||||
<?php //dsm($search_performance, 'search_performance'); ?>
|
||||
<?php //dsm($result_count, 'result_count'); ?>
|
||||
|
||||
<?php //if (!empty($result_count)) : ?>
|
||||
<div class="materiobase-results <?php print ' view-mode-' . $variables['view_mode'];?>">
|
||||
<?php //if ($result_count) : ?>
|
||||
<?php if(!$perfascard): ?>
|
||||
<p class="search-performance"><?php print render($search_performance); ?></P>
|
||||
<?php endif; ?>
|
||||
<?php //print render($spellcheck); ?>
|
||||
<div class="search-results">
|
||||
<?php if($perfascard): ?>
|
||||
<article class="search-performance <?php print ' view-mode-' . $variables['view_mode'];?>">
|
||||
<div class="inner">
|
||||
|
||||
<p><?php print render($search_performance); ?></P>
|
||||
</div>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
<?php //dsm($items, '$items'); ?>
|
||||
<?php
|
||||
// TODO: use cache system to gain in speed, view http://drupal.org/node/930760
|
||||
?>
|
||||
<?php if ($result_count) : ?>
|
||||
<?php print render(entity_view($index->item_type, $items, $variables['view_mode'])); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php print $pager; ?>
|
||||
<?php //else : ?>
|
||||
<!-- <p class="search-noresults"><?php print t('Your search yielded no results.');?></p> -->
|
||||
<?php //endif; ?>
|
||||
</div>
|
||||
<?php //endif; ?>
|
@@ -0,0 +1,5 @@
|
||||
<div class="inner">
|
||||
|
||||
<?php print render($searchform); ?>
|
||||
|
||||
</div>
|
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
print $content;
|
@@ -0,0 +1 @@
|
||||
<p>TODO</p>
|
@@ -0,0 +1,65 @@
|
||||
<table style="margin: 0; border-collapse: collapse;" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; padding:0 0 5px 0;" align="left">
|
||||
<table style="margin: 0; border-collapse: collapse;" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; padding: 0;" align="left">
|
||||
<img src="/sites/default/files/uploaderuneimage.png" width="600" height="400">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table style="margin: 0 0 0 10px; border-collapse: collapse; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="vertical-align: top; padding: 5px 0;" width="580">
|
||||
<table style="border-collapse: collapse; width: 565px; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;" width="565" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 5px 0 5px 5px; line-height: normal; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;">
|
||||
<p style="color: #444444; text-align: left; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<span style="color: #444444; font-family: arial, helvetica, sans-serif;">
|
||||
<strong>
|
||||
ZE DAILY MATERIO'
|
||||
</strong>
|
||||
</span>
|
||||
</p>
|
||||
<p style="color: #444444; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<strong>
|
||||
le titre en fr
|
||||
</strong>
|
||||
<br>
|
||||
Toute une série de matières recyclées sous vos pieds, car ces tapis sont tissés avec des chambres à air usagées, des papiers de bonbons minutieusement filés, de vieux journaux et magazines tressés ou d'autres matières recyclées surprenantes. Certains tapis de cette gamme peuvent même aller à l'extérieur.
|
||||
</p>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<p style="color: #444444; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<span style="color: #696969;">
|
||||
<em>
|
||||
<strong>
|
||||
The english title
|
||||
</strong>
|
||||
</em>
|
||||
</span>
|
||||
<br>
|
||||
<span style="color: #808080;">
|
||||
<em>
|
||||
A wide range of beautiful carpets made out of surprising recycled materials: recycled candy wrappers, recycled tires and bike tubes, different recycled fibers and recycled newspaper! Some of them can even be used outside.
|
||||
</em>
|
||||
</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
@@ -0,0 +1,65 @@
|
||||
<table style="margin: 0; border-collapse: collapse;" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; padding:0 0 5px 0;" align="left">
|
||||
<table style="margin: 0; border-collapse: collapse;" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; padding: 0;" align="left">
|
||||
<img src="/sites/default/files/uploaderuneimage.png" width="600" height="400">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table style="margin: 0 0 0 10px; border-collapse: collapse; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="vertical-align: top; padding: 5px 0;" width="580">
|
||||
<table style="border-collapse: collapse; width: 565px; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;" width="565" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 5px 0 5px 5px; line-height: normal; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff;">
|
||||
<p style="color: #444444; text-align: left; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<span style="color: #444444; font-family: arial, helvetica, sans-serif;">
|
||||
<strong>
|
||||
ZE DAILY MATERIO'
|
||||
</strong>
|
||||
</span>
|
||||
</p>
|
||||
<p style="color: #444444; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<strong>
|
||||
le titre en fr
|
||||
</strong>
|
||||
<br>
|
||||
Toute une série de matières recyclées sous vos pieds, car ces tapis sont tissés avec des chambres à air usagées, des papiers de bonbons minutieusement filés, de vieux journaux et magazines tressés ou d'autres matières recyclées surprenantes. Certains tapis de cette gamme peuvent même aller à l'extérieur.
|
||||
</p>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<p style="color: #444444; ;margin: 0 0 10px; line-height: 1.3em;">
|
||||
<span style="color: #696969;">
|
||||
<em>
|
||||
<strong>
|
||||
The english title
|
||||
</strong>
|
||||
</em>
|
||||
</span>
|
||||
<br>
|
||||
<span style="color: #808080;">
|
||||
<em>
|
||||
A wide range of beautiful carpets made out of surprising recycled materials: recycled candy wrappers, recycled tires and bike tubes, different recycled fibers and recycled newspaper! Some of them can even be used outside.
|
||||
</em>
|
||||
</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
Reference in New Issue
Block a user