Building WordPress Themes from Scratch by Joe Casabona

Building WordPress Themes from Scratch by Joe Casabona

Author:Joe Casabona
Language: eng
Format: epub, pdf
Publisher: Rockable Press


Come to think of it, we should probably create that stylesheet. Go ahead and add a business-manager.css file to the /director/ folder. We'll populate it later.

<div class="business_manager_extras">

<?php

$website= ($website =="") ? "http://" : $website;

?>

Now, we start the markup for our meta box. The first thing we do after our wrapper is a check to make sure the website either has a value, or automatically adds the http://. Many end users forget to add this information, so it's good to make sure it's there.

<div><label>Website:</label><input name="website"

value="<?php echo $website; ?>" /></div>

<div><label>Phone:</label><input name="phone"

value="<?php echo $phone; ?>" /></div>

<div><label>Email:</label><input name="email"

value="<?php echo $email; ?>" /></div>

<div><label>Address:</label><input name="address"

value="<?php echo $address; ?>" /></div>

<div><label>Address 2:</label><input name="address_two"

value="<?php echo $address_two; ?>" /></div>

<div><label>City:</label><input name="city"

value="<?php echo $city; ?>" /></div>

<div><label>State:</label><input name="state"

value="<?php echo $state; ?>" /></div>

<div><label>Zip:</label><input name="zip"

value="<?php echo $zip; ?>" /></div>

</div>

<?php

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.