Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. [beta@beta xxxx]$ cat views-view-fields--HomeSlideshows.tpl.php
  2. <xobject>
  3. <?php foreach ($fields as $id => $field): ?>
  4.   <?php if (!empty($field->separator)): ?>
  5.     <?php print $field->separator; ?>
  6.   <?php endif; ?>
  7.  
  8.     <?php if ($field->class == 'field-slideimage-fid') : ?>
  9.     <ximg><?php print $field->content ?></ximg>
  10.     <? elseif ($field->class == 'field-link-to-nid') : ?>
  11.     <xlink><?php print $field->content ?></xlink>
  12.     <? elseif ($field->class == 'title') : ?>
  13.     <xalttitle><?php print $field->content ?></xalttitle>
  14.     <? elseif ($field->class == 'field-nav-title-value') : ?>
  15.     <xtitle><?php print $field->content ?></xtitle>
  16.     <? else : ?>
  17.     <xcontent><?php print $field->class ?>: <?php print $field->content ?></xcontent>
  18.     <? endif; ?>
  19.  
  20. <?php endforeach; ?>
  21. </xobject>
  22.  
  23. [beta@beta xxxl]$ php -l views-view-fields--HomeSlideshows.tpl.php
  24. PHP Warning:  PHP Startup: memcache: Unable to initialize module
  25. Module compiled with module API=20050922, debug=0, thread-safety=0
  26. PHP    compiled with module API=20060613, debug=0, thread-safety=0
  27. These options need to match
  28.  in Unknown on line 0
  29. PHP Parse error:  syntax error, unexpected T_ENDFOREACH in views-view-fields--HomeSlideshows.tpl.php on line 19
  30. Errors parsing views-view-fields--HomeSlideshows.tpl.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement