posts tagged ‘wordpress’

same shit, different day

July 22nd, 2009

Some different techniques for if statements in php. In the second example note the use of forward slashes used to escape the quotations inside the echo function.

php if statement (xhtml only)

<?php if (is_page('writing')): ?>
<p>Lorem ipsum dolor sit amet, consectetuer 
adipiscing elit. Aenean magna tortor, luctus 
sit amet, nonummy non, consequat ac, augue. 
Cras quis lacus et est pretium dignissim. In ut 
velit vel erat accumsan vestibulum. Sed a felis. 
Nam dictum nisl id sem. Praesent pretium 
enim quis dolor.</p><?php endif; ?>
read the rest of this entry »

tags: , , , ,
posted in web | no comments »


jazz up your headings

July 10th, 2009

These headings are more jazzy than as jazzy as John Coltrane my friend. Subtitles can serve as a great descriptor, especially if your post titles are random snipets of nothing like mine. This code is for the title and subtitle in the life section.

heading (x)html (<h1> and <span>)

<h1>life <span>in the shadows</span></h1>
read the rest of this entry »

tags: , , , , ,
posted in web | no comments »