Example #1
0
    ?>
  <h1 class="header"><?php 
    print $title;
    ?>
</h1>
<?php 
}
?>

<?php 
$n = node_load($nid);
module_load_include('client.inc', 'ting');
?>

<div style="width:170px;margin-left:10px;float:right;"><?php 
print elib_displaybookNEW(ting_get_object_by_id($n->field_book[0]['ting_object_id']), '', 'medium');
?>
</div>


  <?php 
print $n->field_review[0]['value'];
?>

  <div class="meta">
    
    
    
    <?php 
$u = user_load($node->uid);
?>
<?php

module_load_include('client.inc', 'ting');
$obj = ting_get_object_by_id($node->field_book[0]['ting_object_id']);
print elib_displaybookNEW($obj, array($node->field_review[0]['value'], $node->uid), 'review');
<?php

module_load_include('client.inc', 'ting');
$tingObj = ting_get_object_by_id($node->field_book[0]['ting_object_id']);
?>

<div class="line">
  <div class="unit size1of1">
    <?php 
print elib_displaybookNEW($tingObj, '', 'textright');
?>
  </div>
  <div class="unit size1of1">
    <?php 
print truncate_utf8($node->field_review[0]['safe'], 1000, true, true);
?>
 <?php 
print l(t('LÆS MERE →'), $node->path);
?>
  </div>
</div>

<?php

// $Id: views-view-fields.tpl.php,v 1.6 2008/09/24 22:48:21 merlinofchaos Exp $
/**
 * @file views-view-fields.tpl.php
 * Default simple view template to all the fields as a row.
 *
 * - $view: The view in use.
 * - $fields: an array of $field objects. Each one contains:
 *   - $field->content: The output of the field.
 *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
 *   - $field->class: The safe class id to use.
 *   - $field->handler: The Views field handler object controlling this field. Do not use
 *     var_export to dump this object, as it can't handle the recursion.
 *   - $field->inline: Whether or not the field should be inline.
 *   - $field->inline_html: either div or span based on the above flag.
 *   - $field->separator: an optional separator that may appear before a field.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @ingroup views_templates
 */
module_load_include('client.inc', 'ting');
?>

<?php 
$book = ting_get_object_by_id($fields['title']->content);
print elib_displaybookNEW($book, '', 'small');