1171
Resolved and Released / Re: Image links in the category view
« on: June 23, 2007, 11:07:53 PM »
I have started moving all HTML out of the php files and into pat template files.
E.g. the category listing layout can now more easily be changed by editing a file which looks like this:
E.g. the category listing layout can now more easily be changed by editing a file which looks like this:
Code: [Select]
<mos:tmpl name="catbody">
<!-start editing from here-->
<div align='left'>
<!--container for the category listing (may be a subcategory listing)-->
<mos:tmpl name="catTypeContainer">
<div class="{CATTYPECLASSNAME}" id="catTypeContainer">
{LISTHEADING}
<mos:tmpl name="catlist">
<div>{IMAGE}<a href="{LINKURL}">{CATNAME}</a> {CATCOUNT}</div>
<div class="{CATDESCCLASS}">{CATDESC}</div>
<div style="clear: both;"></div>
</mos:tmpl>
</div>
</mos:tmpl>
<!--container for listing reviews-->
<mos:tmpl name="catReviewContainer">
<div id="reviewlistingContainer" style='display:<mos:var name="REVIEWDISPLAY" default="none"/>'>
<span class='reviewlistingtitle'>{REVLISTINGTITLE}</span>
<table id="categoryTable" class="categoryTable">
<tr>
<th>{TITLE1NAME}</th>
<th>{TITLE2NAME}</th>
<th>{TITLE3NAME}</th>
<th>{RATING}</th>
<th>{REVIEWER}</th>
<th>{DATE}</th>
</tr>
<mos:tmpl name="catReviewRow">
<tr>
<td>{TITLE1}</td>
<td>{TITLE2}</td>
<td>{TITLE3}</td>
<td>{RATING}</td>
<td>{REVIEWER}</td>
<td>{DATE}</td>
</tr>
</mos:tmpl>
</table>
<script type='text/javascript' src='{LIVESITEURL}/components/com_simple_review/scripts/sorttable.js'></script>
<script type='text/javascript'>sortables_init();</script>
</div>
<mos:var name="NOREVIEWTEXT" default=""/>
</mos:tmpl>
</div>
<!--stop editing here-->
</mos:tmpl>
