Beispiel #1
0
        ?>

                                <div class="dokan-form-group">

                                    <?php 
        $drop_down_tags = wp_dropdown_categories(array('show_option_none' => __('', 'dokan'), 'hierarchical' => 1, 'hide_empty' => 0, 'name' => 'product_tag[]', 'id' => 'product_tag', 'taxonomy' => 'product_tag', 'title_li' => '', 'class' => 'product_tags dokan-form-control chosen', 'exclude' => '', 'selected' => '', 'echo' => 0));
        echo str_replace('<select', '<select data-placeholder="Select product tags" multiple="multiple" ', $drop_down_tags);
        ?>
                                </div>


                            </div>
                        </div>

                        <!-- <textarea name="post_content" id="" cols="30" rows="10" class="span7" placeholder="Describe your product..."><?php 
        echo dokan_posted_textarea('post_content');
        ?>
</textarea> -->
                        <div class="dokan-form-group">
                            <?php 
        wp_editor(Dokan_Template_Products::$post_content, 'post_content', array('editor_height' => 50, 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'editor_class' => 'post_content'));
        ?>
                        </div>

                        <?php 
        do_action('dokan_new_product_form');
        ?>

                        <div class="dokan-form-group">
                            <?php 
        wp_nonce_field('dokan_add_new_product', 'dokan_add_new_product_nonce');
Beispiel #2
0
        echo get_woocommerce_currency_symbol();
        ?>
</span>
                                    <input class="dokan-form-control" name="price" id="product-price" type="text" placeholder="9.99" value="<?php 
        echo dokan_posted_input('price');
        ?>
">
                                </div>
                            </div>

                            <div class="dokan-form-group">
                                <textarea name="post_excerpt" id="post-excerpt" rows="5" class="dokan-form-control" placeholder="<?php 
        esc_attr_e('Short description about the product...', 'dokan');
        ?>
"><?php 
        echo dokan_posted_textarea('post_excerpt');
        ?>
</textarea>
                            </div>

                            <div class="dokan-form-group">
                            <?php 
        wp_dropdown_categories(array('show_option_none' => __('- Select a category -', 'dokan'), 'hierarchical' => 1, 'hide_empty' => 0, 'name' => 'product_cat', 'id' => 'product_cat', 'taxonomy' => 'product_cat', 'title_li' => '', 'class' => 'product_cat dokan-form-control', 'exclude' => '', 'selected' => Dokan_Template_Shortcodes::$product_cat));
        ?>
                            </div>
                        </div>
                    </div>

                    <div class="dokan-form-group">
                        <?php 
        wp_editor(Dokan_Template_Shortcodes::$post_content, 'post_content', array('editor_height' => 50, 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'editor_class' => 'post_content'));