I have a template views-view-fields--services.tpl.php
I don't want to iterate over the array of fields as I know which each of them are in this case.
I want to simply:
<div>
<?php echo $row->title; ?>
</div>
<div>
<?php echo $row->image; ?>
</div>
Doesn't appear to be a higher level template which might have this context of data???
UPDATED CODE SAMPLE:
views-view--services.tpl.php:
<!-- Services -->
<section class="site-section section-details">
<?php print $rows; ?>
</section>
views-view-unformatted--services.tpl.php:
<?php foreach ($rows as $id => $row): ?>
<alex>
<?php print $row; ?>
</alex>
<?php endforeach; ?>
views-view-fields--services.tpl.php:
<?php foreach ($fields as $id => $field): ?>
<?php /*print $field->class;*/ ?>
<?php print $field->content; ?>
<?php endforeach; ?>
Results in:
<section class="site-section section-details">
<alex>
<span>Entry #1</span>
<div><img src="http://temp.local/sites/foo/test.png" width="280" height="280" alt=""></div>
<div><p>Briefly describe which problems we can help with.</p>
</div>
</alex>
<alex>
<span>Entry #2</span>
<div><img src="http://temp.local/sites/foo/test2.png" width="280" height="280" alt=""></div>
<div><p>Quickly describe the services we offer or how our services can help?</p>
</div>
</alex>
</section>