All pastes #807714 Raw Edit

Someone

public text v1 · immutable
·published 2007-12-06 23:07 UTC
rendered paste body
<?php 
/**
 * views template to output one 'row' of a view.
 * This code was generated by the views theming wizard
 * Date: December 6, 2007 - 12:27pm
 * View: homepage_campaign
 *
 * Variables available:
 * $view -- the entire view object. Important parts of this object are
 *   homepage_campaign, .
 * $view_type -- The type of the view. Probably 'page' or 'block' but could
 *   also be 'embed' or other string passed in from a custom view creator.
 * $node -- the raw data. This is not a real node object, but will contain
 *   the nid as well as other support fields that might be necessary.
 * $count -- the current row in the view (not TOTAL but for this page) starting
 *   from 0.
 * $stripe -- 'odd' or 'even', alternating. * $field_optional_photo_fid -- 
 * $field_optional_photo_fid_label -- The assigned label for $field_optional_photo_fid
 * $field_photo_fid -- 
 * $field_photo_fid_label -- The assigned label for $field_photo_fid
 * $field_homepage_title_value -- 
 * $field_homepage_title_value_label -- The assigned label for $field_homepage_title_value
 * $field_homepage_summary_value -- 
 * $field_homepage_summary_value_label -- The assigned label for $field_homepage_summary_value
 *
 * This function goes in your views-list-homepage_campaign.tpl.php file
 */
 
 
 //now we add the stylesheet...
  drupal_add_css(path_to_theme() .'/views-list-homepage_campaign.css');
  
  ?>
<div class="view-field view-data-field-optional-photo-fid">
  <?php if (trim($field_optional_photo_fid) != '') {
  			print $field_optional_photo_fid;
			}
  		else {
		print $field_photo_fid;
		}
		 ?>
</div>

<div class="view-field view-data-field-homepage-title-value">
  <?php print '<b>' . l($field_homepage_title_value, 'node/'.$node->nid) .'</b><br>' ?>
</div>


<div class="view-field view-data-field-homepage-summary-value">
  <?php print $field_homepage_summary_value?>
</div>