All pastes #731176 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-09 20:44 UTC
rendered paste body
A sample article object ... 

[3] => Article Object
        (
            [article_id:private] => 66
            [title:private] => This is a sample
            [author:private] => Ryan
            [body:private] => Body
            [publish_dt:private] => 2007-10-02
            [update_dt:private] => 0000-00-00
            [views:private] => 0
            [front_page:private] => 0
            [section:private] => News
            [img:private] => Array
                (
                    [0] => Image Object
                        (
                            [img_path:private] => ../images/story/2007-10-02/mksm.jpg
                            [img_desc:private] => Mary Kate
                            [img_isThumb:private] => 0
                        )

                    [1] => Image Object
                        (
                            [img_path:private] => ../images/story/2007-10-02/pnglogo-blk-sml1.png
                            [img_desc:private] => PNG thingy
                            [img_isThumb:private] => 0
                        )

                    [2] => Image Object
                        (
                            [img_path:private] => ../images/story/2007-10-02/thumb.gif
                            [img_desc:private] => ZOMG
                            [img_isThumb:private] => 1
                        )

                )

        )

My desired HTML ...
Each snippet will be a different object

				<div class="snippet">
					<img src="{$img}" />
					<div class="snippet_has_img">
						<h2><a href="#">{$title}</a></h2>		
						<p>{$body}</p>
					</div>
				</div>
				
				<div class="spacer"></div>
				
				
				<div class="snippet">
					<div>
						<h2><a href="#">{$title}</a></h2>		
						<p>{$body}</p>
					</div>
				</div>


I was going to pass to my smarty function the array of Article objects