<?php $form = new IG_Active_Form($model); $form->open(array("attributes" => array("class" => "form-horizontal"))); ?> <div class="form-group <?php echo $model->has_error("enable_receipt") ? "has-error" : null; ?> "> <?php $form->label("enable_receipt", array("text" => __("Enable Message Receipt", mmg()->domain), "attributes" => array("class" => "col-lg-2 control-label"))); ?> <div class="col-lg-10"> <div class="checkbox"> <label> <?php $form->hidden('enable_receipt', array('value' => 0)); $form->checkbox("enable_receipt", array("attributes" => array("class" => "", "value" => 1))); ?> <?php _e("Tick this box to enable email notifications of read messages.", mmg()->domain); ?> </label> </div> </div> <div class="clearfix"></div> </div> <div class="form-group <?php echo $model->has_error("user_receipt") ? "has-error" : null; ?> "> <?php
<?php $form->text_area("content", array("attributes" => array("class" => "form-control mm_wsysiwyg", "placeholder" => "Content", "style" => "height:100px", "id" => "mm_compose_content"))); ?> <span class="help-block m-b-none error-content"><?php $form->error("content"); ?> </span> </div> <div class="clearfix"></div> </div> <?php echo wp_nonce_field('compose_message'); ?> <?php echo $form->hidden('attachment'); ?> <input type="hidden" name="action" value="mm_send_message"> <?php if (mmg()->can_upload() == true) { ig_uploader()->show_upload_control($model, 'attachment', false, array('title' => __("Attach media or other files.", mmg()->domain))); } ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-default compose-close" data-dismiss="modal"><?php _e("Close", mmg()->domain); ?> </button> <button type="submit"
<h4 class="modal-title text-left"><?php _e("Compose Message", mmg()->domain); ?> </h4> </div> <div class="modal-body text-left"> <div class="alert alert-success hide mm-notice"> <?php _e("Your message has been sent", mmg()->domain); ?> </div> <?php if ($a['subject']) { ?> <?php $form->hidden('subject'); ?> <?php } else { ?> <div class="form-group <?php echo $model->has_error("subject") ? "has-error" : null; ?> "> <?php $form->label("subject", array("text" => "Subject", "attributes" => array("class" => "col-lg-2 control-label"))); ?> <div class="col-lg-10"> <?php $form->text("subject", array("attributes" => array("class" => "form-control mm-wysiwyg")));
?> <div class="modal-header"> <h4 class="modal-title text-left"><?php _e("Compose Message", mmg()->domain); ?> </h4> </div> <div class="modal-body text-left"> <div class="alert alert-success hide mm-notice"> <?php _e("Your message has been sent", mmg()->domain); ?> </div> <div class="message-me-has-subject hide"> <?php $form->hidden('subject'); ?> </div> <div class="message-me-no-subject hide"> <div class="form-group <?php echo $model->has_error("subject") ? "has-error" : null; ?> "> <?php $form->label("subject", array("text" => "Subject", "attributes" => array("class" => "col-lg-2 control-label"))); ?> <div class="col-lg-10"> <?php $form->text("subject", array("attributes" => array("class" => "form-control", "disabled" => "disabled"))); ?> <span
<div class="ig-container"> <?php //empty modal for fields work only if (!isset($model)) { $model = new IG_Uploader_Model(); } $form = new IG_Active_Form($model); $form->open(array("attributes" => array("class" => "igu-upload-form", "style" => "min-width:60%;max-width:304px"))); ?> <?php if ($model->exist) { $form->hidden('id'); } ?> <div style="margin-bottom: 0" class="form-group <?php echo $model->has_error("file") ? "has-error" : null; ?> "> <button type="button" class="btn btn-default upload_image_button btn-xs"><?php _e("Choose File", ig_uploader()->domain); ?> </button> <span class="file-upload-name"></span> <?php $form->hidden('file', array('attributes' => array('id' => 'attachment'))); ?> <?php if ($model->exist && $model->file) { ?> <span