<?php
/* defination items */
$transition = array('random', 'basic', 'fly', 'flyback', 'line');
?>

<div class="slides">

    <table class="items">
        <tr>
            <?php $metabox->the_field('slide_transition'); ?>
            <td class="key"><?php _e("Transition", "kaula"); ?></td>
            <td class="item">
                <select id="transition" name="<?php $metabox->the_name(); ?>">
                    <?php
                    $value = $metabox->get_the_value();
                    foreach ($transition as $tra) {
                        ?>
                        <option attr="<?php echo $value; ?>" <?php echo ($tra == $value || (!in_array($tra, $transition) && $tra = 'random')) ? 'selected="selected"' : ''; ?> value="<?php echo $tra; ?>"><?php echo $tra; ?></option>  
                    <?php } ?>
                </select>
            </td>
            <td class="hint"></td>
        </tr>
        <tr>
            <?php $mb->the_field('slide_linktype');
            ?>
            <td class="key"><?php _e("Link type", "kaula"); ?> </td>
            <td class="item">
                <input type="radio" name="<?php $mb->the_name(); ?>" value="1"<?php $mb->the_radio_state('1'); ?> checked /> <?php _e("Open Lightbox", "kaula"); ?><br/>
                <input type="radio" name="<?php $mb->the_name(); ?>" value="0"<?php $mb->the_radio_state('0'); ?> /> <?php _e("Go to URL", "kaula"); ?>
            </td>
            <td class="hint"></td>
        </tr>  
        <tr>
<?php $metabox->the_field('slide_link'); ?>
            <td class="key"><?php _e("Go to url", "kaula"); ?></td>
            <td class="item"> <input type="text" name="<?php $metabox->the_name(); ?>" value="<?php $metabox->the_value(); ?>"/></td>
            <td class="hint"></td>
        </tr>  



    </table>   


</div>