<tr> <th scope="row"><label for="mycomp_menu_zip">Zip/Postal Code</label></th> <td><input class="regular-text" type="text" name="mycomp_menu_zip" value="<?php echo $options['zip']; ?> " id="mycomp_menu_zip" /></td> </tr> </table> <h4>Address Shortcodes</h4> <p>Complete the address fields above to show example outputs.</p> <table class="form-table"> <tr> <td><p>Display 1 field per line: [company_address]</p></td> <td><?php if (company_address()) { echo company_address(); } else { echo '<span class="description">[Address fields above are empty]</span>'; } ?> </td> </tr> <tr> <td><p>Display the whole address on 1 line: [company_address_oneline]</p></td> <td><?php if (company_address_oneline()) { echo company_address_oneline(); } else { echo '<span class="description">[Address fields above are empty]</span>'; } ?>
function company_all() { // still need to update this function $address = company_address(); $phone = company_phone(); $fax = company_fax(); $email = company_email(); $myCompAll = '<ul id="mycomp_contact"> <li><strong>Phone: </strong>' . $phone . '</li> <li><strong>Fax: </strong>' . $fax . '</li> <li><strong>Email: </strong>' . $email . '</li> </ul>' . $address; return $myCompAll; }