function haku_load_slides_action() { /* Security check */ check_ajax_referer('haku_nonce', 'haku_referer'); /* Processing */ if (get_theme_slides('theme_slides')) { ?> <!-- Haku sortable --> <ul class="haku_sortable"> <?php foreach (get_theme_slides('theme_slides') as $slide_id => $slide) { ?> <li id="haku_el_<?php echo $slide_id; ?> "> <!-- Form --> <form action="/" class="haku_element_update"> <!-- Slide order/id keeper --> <input type="text" name="order" class="hidden" value="<?php echo $slide['order']; ?> " /> <!-- Element --> <div class="haku_element" data-id="<?php echo $slide_id; ?> "> <!-- Option group --> <div class="haku_optgroup clearfix"> <!-- Option info --> <div class="aside"> <!-- Label --> <label><?php _e('Picture', 'haku'); ?> </label> </div> <!-- end: Option info --> <!-- Option --> <div> <!-- Button --> <button class="haku_image_upload"><?php _e('Open Media Library', 'haku'); ?> </button> <!-- Option desc --> <p><?php _e('Choose your image, then click "Insert into post" to apply it.', 'haku'); ?> </p> <input type="text" placeholder="http://" class="haku_image_upload_field trigger_change <?php if (!$is_jcycle) { haku_hidden($slide['picture'], false); } ?> " name="picture" value="<?php echo esc_url(stripslashes($slide['picture'])); ?> " /> </div> <!-- end: Option --> </div> <!-- end: Option group --> <?php if (get_theme_option('slider_captions')) { ?> <!-- Option group --> <div class="haku_optgroup clearfix"> <!-- Option info --> <div class="aside"> <!-- Label --> <label><?php _e('Caption', 'haku'); ?> </label> </div> <!-- end: Option info --> <!-- Option --> <div> <!-- Text input --> <input type="text" name="caption" value="<?php if (isset($slide['caption'])) { echo esc_attr(stripslashes($slide['caption'])); } ?> " /> </div> <!-- end: Option --> </div> <!-- end: Option group --> <!-- Option group --> <div class="haku_optgroup clearfix"> <!-- Option info --> <div class="aside"> <!-- Label --> <label><?php _e('Description', 'haku'); ?> </label> </div> <!-- end: Option info --> <!-- Option --> <div> <!-- Content --> <textarea name="description"><?php echo esc_textarea(stripslashes($slide['description'])); ?> </textarea> </div> <!-- end: Option --> </div> <!-- end: Option group --> <?php } ?> <!-- Option group --> <div class="haku_optgroup clearfix"> <!-- Option info --> <div class="aside"> <!-- Label --> <label><?php _e('Link', 'haku'); ?> </label> </div> <!-- end: Option info --> <!-- Option --> <div> <!-- Text input --> <input type="text" placeholder="http://" name="url" value="<?php if (isset($slide['url'])) { echo esc_url(stripslashes($slide['url'])); } ?> " /> </div> <!-- end: Option --> </div> <!-- end: Option group --> <?php if (get_theme_option('slider_captions')) { ?> <?php if ($slide['url']) { ?> <!-- Option group --> <div class="haku_optgroup clearfix"> <!-- Option info --> <div class="aside"> <!-- Label --> <label><?php _e('More Button', 'haku'); ?> </label> </div> <!-- end: Option info --> <!-- Option --> <div> <!-- Checkbox --> <a href="#" class="haku_checkbox trigger_change"></a> <input <?php if (isset($slide['more'])) { checked($slide['more'], 'more'); } ?> name="more" type="checkbox" value="more" /> </div> <!-- end: Option --> </div> <!-- end: Option group --> <?php } ?> <?php } ?> <!-- Grabbing spot --> <div class="haku_grab"></div> <!-- Delete button --> <a href="#" class="haku_drop"></a> </div> <!-- end: Element --> </form> <!-- end: Form --> </li> <?php } ?> </ul> <!-- end: Haku sortable --> <?php } /* Response */ die; }
_e('Open Media Library', 'haku'); ?> </button> <!-- Option desc --> <p><?php _e('Choose your image, then click "Insert into post" to apply it.', 'haku'); ?> <strong><?php _e('Max width:', 'haku'); ?> </strong> 300</p> <!-- Real input --> <input type="text" placeholder="http://" class="haku_image_upload_field <?php haku_hidden('wp_login_logo'); ?> " name="wp_login_logo" value="<?php echo esc_url(get_theme_option('wp_login_logo')); ?> " /> </div> <!-- end: Option --> </div> <!-- end: Option group --> <!-- Options header --> <h1><?php _e('Mobile', 'haku');