Example #1
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>
        <div class="clearfix"></div>
Example #2
0
_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 
do_action('mm_compose_form_after_send_to', $form, $model);
?>
                                        <span class="help-block m-b-none error-send_to">
                                        <?php 
$form->error("send_to");
?>
                                    </span>
                                    </div>
                                    <div class="clearfix"></div>
Example #3
0
                                <?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
                                            class="help-block m-b-none error-subject"><?php 
    $form->error("subject");
    ?>
</span>
                                    </div>
                                    <div class="clearfix"></div>
                                </div>
                            </div>
                            <?php 
Example #4
0
        <?php 
}
?>
        <span class="help-block m-b-none error-file"><?php 
$form->error("file");
?>
</span>

        <div class="clearfix"></div>
    </div>
    <div style="margin-bottom: 0" class="form-group <?php 
echo $model->has_error("url") ? "has-error" : null;
?>
">
        <?php 
$form->label("url", array("text" => "Url", "attributes" => array("class" => "control-label hidden-xs hidden-sm")));
?>
        <?php 
$form->text("url", array("attributes" => array("class" => "form-control input-sm", "placeholder" => __("Url", ig_uploader()->domain))));
?>
        <span class="help-block m-b-none error-url"><?php 
$form->error("url");
?>
</span>

        <div class="clearfix"></div>
    </div>
    <div style="margin-bottom: 0" class="form-group <?php 
echo $model->has_error("content") ? "has-error" : null;
?>
">
Example #5
0
                        <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 
do_action('mm_compose_form_after_reply_to', $form, $model);
?>
                                <span class="help-block m-b-none error-reply_to"><?php 
$form->error("reply_to");
?>
</span>
                            </div>
                            <div class="clearfix"></div>
                        </div>
Example #6
0
</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>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="form-group <?php 
echo $model->has_error("noti_content") ? "has-error" : null;