Created
November 5, 2010 15:55
-
-
Save anonymous/664345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="my_meta_control"> | |
<a style="float:right; margin:0 10px;" href="#" class="dodelete-links button">Remove All</a> | |
<p>Add links to external sites</p> | |
<?php while($metabox->have_fields_and_multi('links')): ?> | |
<?php $metabox->the_group_open(); ?> | |
<p> | |
<?php $metabox->the_field('title'); ?> | |
<label>Link Text:</label><input type="text" name="<?php $metabox->the_name(); ?>" value="<?php $metabox->the_value(); ?>"/> | |
<?php $metabox->the_field('url'); ?> | |
<label>Link URL: <span>Important - you must add the full url (example: http://www.yourdomain.com)</span></label><input type="text" name="<?php $metabox->the_name(); ?>" value="<?php $metabox->the_value(); ?>"/> | |
</p> | |
<p><a href="#" class="dodelete button">Remove Link</a></p> | |
<?php $metabox->the_group_close(); ?> | |
<?php endwhile; ?> | |
<p style="margin-bottom:15px; padding-top:5px;"><a href="#" class="docopy-links button">Add Another Link</a></p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="links"> | |
<?php if($cm_links->have_fields('links')) : ?> | |
<h2>Artist Links</h2> | |
<?php while($cm_links->have_fields('links')) : ?> | |
<a href="<?php $cm_links->the_value('url'); ?>" target="_blank"><?php $cm_links->the_value('title'); ?></a> | |
<?php endwhile; endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment