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">Remove All</a> | |
<label>Project Staff<span>(current Staff associated with the project)</span></label> | |
<p>Add staff to project by selecting them from the dropdown. Add addtional staff by clicking the "Add Staff" button.</p> | |
<?php |
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
<?php global $video_metabox; $video_metabox->the_meta(); ?> | |
<?php if ( $video_metabox->have_value( 'vids' ) ) { ?> | |
<ul class="project_videos"> | |
<?php while( $video_metabox->have_fields('vids') ) { ?> | |
<?php echo wp_oembed_get( $video_metabox->the_value( 'videourl' ) ); ?> | |
<?php } ?> | |
</ul> |
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"> |
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
<a style="float:right; margin:0 10px;" href="#" class="dodelete-dates button">Remove All Dates</a> | |
<p>Add dates on which this course will run.</p> | |
<?php while($mb->have_fields_and_multi('dates')): ?> | |
<?php $mb->the_group_open(); ?> | |
<?php $mb->the_field('date'); ?> | |
<p><input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>" class="datepicker" /> | |
<a href="#" class="dodelete button">Remove Date</a></p> |
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
<?php | |
global $testimonial_metabox; | |
$testimonial_bg = $testimonial_metabox->get_the_value( 'background' ); | |
$testimonials = $testimonial_metabox->get_the_value( 'testimonials' ); | |
?> |
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
<?php | |
/** | |
* NOTE: The radio buttons which determine a css style in my program are CURRENTLY inside the group. | |
* I am trying to do this OUTSIDE of the group. If I leave it inside the group, I have to define the settings for each testimonial I have. I want to set it once and | |
* have it define each instance. | |
* | |
*/ | |
?> | |
<div class="mcms_optinpage"> |
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
<?php | |
// add Gallery Images custom meta box | |
$mgallery = new WPAlchemy_MetaBox(array | |
( | |
'id' => '_gallery_main', | |
'title' => 'Gallery Images', | |
'types' => array('gallery_main'), // added only for pages | |
'context' => 'normal', // same as above, defaults to "normal" | |
'priority' => 'high', // same as above, defaults to "high" |
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> |