Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="my_meta_control">
- <p id="js-warning"><?php _e('This might not function properly without javascript enabled. At the very least it will not look as cool.')?></p>
- <label><?php _e('Add Custom Slides');?></label>
- <a style="float:right; margin:0 10px;" href="#" class="dodelete-slides button"><?php _e('Remove All');?></a>
- <p><?php _e('Add custom slides to the slider by uploading a picture and defining optional slide title and slide content text. Add new slides by using the "Add Slide" button.');?></p>
- <?php while($mb->have_fields_and_multi('slides')): ?>
- <?php $mb->the_group_open(); ?>
- <h4 class="slide"><?php if ($mb->get_the_value('slide_title')) { _e('Custom Slide: ') . $mb->the_value('slide_title');} else {_e('Custom Slide');} ?></h4>
- <a href="#" class="dodelete button"><?php _e('Remove Slide');?></a>
- <div class="slide_preview">
- <?php $mb->the_field('slide_image'); ?>
- <img src="<?php if($mb->get_the_value()){$mb->the_value();}else { echo FUNCTIONS . '/WPAlchemy/default_preview.png';}?>" alt="<?php $mb->the_name();?> Preview" />
- <input type="hidden" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
- <button class="upload_image_button button" type="button"><?php _e('Upload Image');?></button>
- </div>
- <div class="slide_text">
- <?php $mb->the_field('slide_title'); ?>
- <label><?php _e('Slide Title');?></label>
- <input type="text" size="100" class="slide_title" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
- <?php $mb->the_field('slide_text'); ?>
- <br/><label><?php _e('Slide Text'); ?></label>
- <textarea rows="6" name="<?php $mb->the_name(); ?>" /><?php $mb->the_value();?></textarea><br/>
- <span><?php _e('Feel free to leave the slide title and/or text blank if you don\'t want to show any text.'); ?></span>
- </div>
- <?php $mb->the_group_close(); ?>
- <?php endwhile; ?>
- <p style="margin-bottom:15px; padding-top:5px;"><a href="#" class="docopy-slides button"><?php _e('Add Slide');?></a></p>
- <p class="meta-save"><input type="submit" class="button-primary" name="save" value="<?php _e('Update');?>"></p>
- </div><!--.my_meta_control-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement