Example #1
0
<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>
Example #2
0
?>
    <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")));
?>
                                        <?php 
Example #3
0
    ?>
                        <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);
    ?>
                            </div>
                            <div class="message-me-has-subject hide">
                                <?php 
Example #4
0
                                })
                            </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>
                                <?php 
    if ($a['subject']) {
Example #5
0
<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
Example #6
0
            <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;
?>
">
                            <?php 
$form->label("reply_to", array("text" => __('Price', 'artgorae'), "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->number("reply_to", array("attributes" => array("class" => "form-control", "placeholder" => __('10,000', 'artgorae'), "required" => "required")));
?>
                                <?php