Pastoid

The page you are looking at now is at this URL: http://pastoid.com/bwk

This paste was last updated on August 20, 2009 at 12:02 pm.

Pasted Coderaw

<div id="contacts">
	<?php for each $contents as ( $typekey => $typevalue ) { ?>	
		<div id="<?php echo $typekey; ?> ">
			<div class="title">
				<?php echo ucwords($typekey); ?>
			</div>
			<?php for each $typevalue as ( $itemkey => $itemvalue ) { ?>
				<div id ="<?php str_replace(" ","_",$itemkey ); ?>" class="item">
					<div class="icon">
						<img src="<?php echo str_replace( " ","_",$itemkey ); ?>.jpg" alt="<?php echo $itemkey ; ?>">
					</div>
					<div class="method">
						<?php echo ucwords( $itemkey ); ?>
					</div>
					<div class="contents">
						<?php echo $itemvalue ; ?>
					</div>
				</div>
			<?php } ?>
		</div>
	<?php } ?>
</div>

Toggle wordwrap

Pasted Coderaw

I want to be able to feed it something like:
 
<?php
$contents = array ( "classic" => array (
		"phone" => "1-708-953-8267"
		)
	"web" => array (
		"personal site" => "<a href='http://www.morydd.net'>Morydd.net</a>",
		"food site" => "<a href='http://food.morydd.net'>Something To Chew On</a>"
		)
)
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 172
pastoid.com 9
drunkenmonkey.org 2
Is this paste spam?
<Hide