Created
November 10, 2011 16:58
WPAlchemy meta definitions for people-links
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"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. | |
Cras orci lorem, bibendum in pharetra ac, luctus ut mauris.</p> | |
<p class="remove-all-button"><a href="#" class="dodelete-docs button remove-all">Remove All</a></p> | |
<?php while($mb->have_fields_and_multi('links', array('length' => 1, 'limit' => 10))): ?> | |
<?php $mb->the_group_open(); ?> | |
<p class="remove-button"> | |
<a href="#" class="dodelete button remove">Remove Link</a> | |
</p> | |
<?php $mb->the_field('ltitle'); ?> | |
<label>Title <span>(enter title as you would like it to appear)</span></label> | |
<p><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p> | |
<?php $mb->the_field('lurl'); ?> | |
<label>URL <span>(enter full link URL, including http://)</span></label> | |
<p><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/></p> | |
<?php $mb->the_field('nofollow'); ?> | |
<p><input type="checkbox" name="<?php $mb->the_name(); ?>" value="1"<?php if ($mb->get_the_value()) echo ' checked="checked"'; ?> class="link-follow"/> Use <code>nofollow</code> | |
<?php $selected = ' selected="selected"'; ?> | |
<br/><?php $mb->the_field('target'); ?> | |
<select name="<?php $mb->the_name(); ?>" class="link-target"> | |
<option value="[select target]" disabled></option> | |
<option value="_self"<?php if ($mb->get_the_value() == '_self') echo $selected; ?>>_self</option> | |
<option value="_blank"<?php if ($mb->get_the_value() == '_blank') echo $selected; ?>>_blank</option> | |
<option value="_parent"<?php if ($mb->get_the_value() == '_parent') echo $selected; ?>>_parent</option> | |
<option value="_top"<?php if ($mb->get_the_value() == '_top') echo $selected; ?>>_top</option> | |
</select> | |
<?php $mb->the_group_close(); ?> | |
<?php endwhile; ?> | |
<p class="add-another-link"><a href="#" class="docopy-docs button add-another">Add Another Link</a></p> | |
<br clear="all" /> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment