$model = new MM_Message_Model(); ?> <div class="ig-container"> <div class="mmessage-container"> <div> <div class="modal" id="compose-form-container"> <div class="modal-dialog"> <div class="modal-content" id="compose-modal"> <div class="modal-header"> <h4 class="modal-title"><?php _e("Compose Message", mmg()->domain); ?> </h4> </div> <?php $form = new IG_Active_Form($model); $form->open(array("attributes" => array("class" => "compose-form form-horizontal", "id" => "compose-form"))); ?> <div class="modal-body"> <div style="margin-bottom: 0" class="form-group <?php echo $model->has_error("send_to") ? "has-error" : null; ?> "> <?php $form->label("send_to", array("text" => "Send To", "attributes" => array("class" => "control-label col-sm-2 hidden-xs hidden-sm"))); ?> <div class="col-md-10 col-sm-12 col-xs-12"> <?php $form->text("send_to", array("attributes" => array("class" => "form-control", "placeholder" => "Send to"))); ?>
<div class="tab-pane active"> <div class="page-header" style="margin-top: 0"> <h3> <?php _e("General Options", mmg()->domain); ?> </h3> </div> <?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 class="modal-content"> <?php if (!is_user_logged_in()) { ?> <div class="modal-body text-left"> <?php $this->render_partial('shortcode/login'); ?> </div> <?php } else { $model = new MM_Message_Model(); $model = apply_filters('mm_message_me_before_init', $model); ?> <?php $form = new IG_Active_Form($model); ?> <?php $form->open(array("attributes" => array("class" => "", "id" => 'message-me-form'))); ?> <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); ?>
$model = new MM_Message_Model(); ?> <div class="ig-container"> <div class="mmessage-container"> <div> <div class="modal" id="compose-form-container-admin-bar"> <div class="modal-dialog"> <div class="modal-content" id="compose-modal-admin-bar"> <div class="modal-header"> <h4 class="modal-title"><?php _e("Compose Message", mmg()->domain); ?> </h4> </div> <?php $form = new IG_Active_Form($model); $form->open(array("attributes" => array("class" => "compose-form form-horizontal", "id" => "compose-form-admin-bar"))); ?> <div class="modal-body"> <div style="margin-bottom: 0" class="form-group <?php echo $model->has_error("send_to") ? "has-error" : null; ?> "> <?php $form->label("send_to", array("text" => "Send To", "attributes" => array("class" => "control-label col-sm-2 hidden-xs hidden-sm"))); ?> <div class="col-md-10 col-sm-12 col-xs-12"> <?php $form->text("send_to", array("attributes" => array("class" => "form-control", "placeholder" => "Send to", 'id' => 'admin-bar-mm-send-to')));
keyboard: false }) }); }) </script> <?php } else { ?> <?php $model = new MM_Message_Model(); $model->send_to = $user->user_login; $model->subject = $a['subject']; $model = apply_filters('mm_message_me_before_init', $model); ?> <?php $form = new IG_Active_Form($model); ?> <?php $form->open(array("attributes" => array("class" => "", "id" => $fid))); ?> <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 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
</div> <!-- /.modal-content --> </div> </div> </div> </div> <div class="ig-container"> <div class="mmessage-container"> <div class="modal" id="estimates-form-c"> <div class="modal-dialog"> <div class="modal-content" id="estimates-compose"> <?php $model = new MM_Message_Model(); ?> <?php $form = new IG_Active_Form($model); ?> <div class="modal-header"> <h4 class="modal-title"><?php _e('Estimates', 'artgorae'); ?> </h4> </div> <?php $form->open(array("attributes" => array("class" => "form-horizontal compose-form", "id" => "estimates-form"))); ?> <div class="modal-body"> <div style="margin-bottom: 0" class="form-group <?php echo $model->has_error("reply_to") ? "has-error" : null; ?>
<div class="tab-pane active"> <div class="page-header"> <h3><?php _e("Email Settings", mmg()->domain); ?> </h3> </div> <?php $form = new IG_Active_Form($model); $data = stripslashes_deep($model->export()); $model->import($data); $form->open(array("attributes" => array("class" => "form-horizontal"))); ?> <div class="form-group <?php echo $model->has_error("noti_subject") ? "has-error" : null; ?> "> <?php $form->label("noti_subject", array("text" => "Subject", "attributes" => array("class" => "col-lg-2 control-label"))); ?> <div class="col-lg-10"> <?php $form->text_area("noti_subject", array("attributes" => array("class" => "form-control", "style" => "height:50px"))); ?> <span class="help-block m-b-none error-noti_subject"><?php $form->error("noti_subject"); ?> </span>
<h4><?php _e("Which roles can upload attachments", mmg()->domain); ?> </h4> <?php $form = new IG_Active_Form($model); $form->open(array("attributes" => array("class" => "form-horizontal"))); ?> <input type="hidden" name="<?php echo $form->build_name('allow_attachment'); ?> []" value=""> <table class="table table-condensed table-hover"> <thead> <tr> <th><?php _e("Role name", mmg()->domain); ?> </th> <th><?php _e("Can upload", mmg()->domain); ?> </th> </tr> </thead> <tbody> <?php $roles = get_editable_roles(); foreach ($roles as $key => $role) { ?> <?php