Example #1
0
_e('Description', 'grand-media');
?>
</label>
                            <?php 
wp_editor(esc_textarea($term->description), "gallery{$term->term_id}_description", array('editor_class' => 'form-control input-sm', 'editor_height' => 120, 'wpautop' => false, 'media_buttons' => false, 'textarea_name' => 'term[description]', 'textarea_rows' => '4', 'tinymce' => false, 'quicktags' => array('buttons' => apply_filters('gmedia_editor_quicktags', 'strong,em,link,ul,li,close'))));
?>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="form-group">
                            <label><?php 
_e('Author', 'grand-media');
?>
</label>
                            <?php 
gmedia_term_choose_author_field($term->global);
?>
                        </div>
                        <div class="form-group">
                            <label><?php 
_e('Status', 'grand-media');
?>
</label>
                            <select name="term[status]" class="form-control input-sm">
                                <option value="publish"<?php 
selected($term->status, 'publish');
?>
><?php 
_e('Public', 'grand-media');
?>
</option>
                </div>
                <div class="form-group">
                    <label><?php 
_e('Author', 'grand-media');
?>
</label>
                    <?php 
if ($is_preset === 'global') {
    echo '<input type="hidden" name="term[global]" value="0"/>';
    echo '<div>' . __('Global Preset', 'grand-media') . '</div>';
} else {
    $_args = array('show_option_all' => '');
    if (!(int) $term->global) {
        $_args['selected'] = $user_ID;
    }
    gmedia_term_choose_author_field($term->global, $_args);
}
?>
                </div>
                <input type="hidden" name="term[term_id]" value="<?php 
echo $term_id;
?>
"/>
                <input type="hidden" name="term[module]" value="<?php 
esc_attr_e($term->module['name']);
?>
"/>
                <input type="hidden" name="term[taxonomy]" value="<?php 
echo $gmedia_term_taxonomy;
?>
"/>
Example #3
0
    }
    echo implode('', $option);
    echo '</optgroup>';
}
?>
                        </select>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label><?php 
_e('Author', 'grand-media');
?>
</label>
                        <?php 
gmedia_term_choose_author_field();
?>
                    </div>
                    <div class="form-group">
                        <label><?php 
_e('Status', 'grand-media');
?>
</label>
                        <select name="term[status]" class="form-control input-sm">
                            <option value="publish" <?php 
selected($gmGallery->options['in_album_status'], 'publish');
?>
><?php 
_e('Public', 'grand-media');
?>
</option>