} ?> <div class="metabox-holder has-right-sidebar"> <div class="editor-wrapper meta-box-sortables"> <div class="editor-body"> <div id="titlediv"> <input name="name" id="title" type="text" value="<?php echo $action == 'edit' ? $slider_name : __('My Slider', 'slider_pro'); ?> "/> </div> <div class="slideboxes ui-sortable"> <?php $posts_data = sliderpro_get_posts_data(); global $sliderpro_slide_settings; $individual_slide_settings = sliderpro_get_individual_slide_settings(); $counter = 1; $is_slide = false; $slide_content = NULL; $slide_settings = NULL; if ($action == 'edit') { foreach ($slides as $slide) { $is_slide = true; $slide_content = unserialize($slide['content']); $slide_settings = unserialize($slide['settings']); include 'slide.php'; $counter++; } } else {
/** * Create the posts data fields */ function sliderpro_add_dynamic_fields() { $counter = $_GET['counter']; $slide_type = $_GET['slide_type']; $slide_settings = NULL; if ($slide_type == 'posts') { $posts_data = sliderpro_get_posts_data(); include 'includes/posts-data-fields.php'; } else { if ($slide_type == 'gallery') { include 'includes/gallery-data-fields.php'; } else { if ($slide_type == 'flickr') { include 'includes/flickr-data-fields.php'; } } } die; }