<commit_before><?php
/**
 * Visitor-facing plugin template
 *
 * Visitor-facing plugin template
 *
 * PHP version 5.3
 *
 * LICENSE: No License yet
 *
 * @category  Reliv
 * @package   RcmPlugins\Navigation
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   GIT: <git_id>
 * @link      http://ci.reliv.com/confluence
 */

$this->headLink()->appendStylesheet(
    $this->basePath() . '/modules/rcm-login/style.css'
);

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-login/rcm-login-box.js',
    'text/javascript'
);
echo $this->rcmJsLoginManager();
?>
<script type="text/javascript">
    $(function () {
        new RcmLoginBox(
        <?php echo $this->instanceId?>,
        <?php echo json_encode($this->ic['errors'])?>
        );
    });
</script>

<div class="rcmLogin">


    <form>
        <h1 data-textEdit="loginHeader">
            <?php echo $this->ic['loginHeader']; ?>
        </h1>

        <div class="error"></div>


        <label data-textEdit="userNameCopy" for="rcmLoginUsername">
            <?php echo $this->ic['userNameCopy']; ?>
        </label>
        <br>
        <input autofocus type="text" name="userName"
               class="username"
               id="rcmLoginUsername">
        <br>
        <label data-textEdit="loginPasswordCopy"
               for="rcmLoginPassword">
            <?php echo $this->ic['loginPasswordCopy']; ?>
        </label>
        <br>
        <input type="password" name="loginPass" class="password"
               id="rcmLoginPassword">

        <br>
        <br>

        <button class="login" data-textEdit="loginSubmitCopy">
            <?php echo $this->ic['loginSubmitCopy']; ?>
        </button>


        <br>

        <p data-textEdit="loginForgotPasswordCopy">
            <?php echo $this->ic['loginForgotPasswordCopy']; ?>
        </p>

        <div data-richedit="bottomLoginText">
            <?php echo $this->ic['bottomLoginText']; ?>
        </div>
    </form>
    <div style="clear:both;"></div>
</div><commit_msg>login - change error display logic<commit_after><?php
/**
 * Visitor-facing plugin template
 *
 * Visitor-facing plugin template
 *
 * PHP version 5.3
 *
 * LICENSE: No License yet
 *
 * @category  Reliv
 * @package   RcmPlugins\Navigation
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 Reliv International
 * @license   License.txt New BSD License
 * @version   GIT: <git_id>
 * @link      http://ci.reliv.com/confluence
 */

$this->headLink()->appendStylesheet(
    $this->basePath() . '/modules/rcm-login/style.css'
);

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-login/rcm-login-box.js',
    'text/javascript'
);
echo $this->rcmJsLoginManager();
?>
<script type="text/javascript">
    $(function () {
        new RcmLoginBox(
        <?php echo $this->instanceId?>,
        <?php echo json_encode($this->ic['errors'])?>
        );
    });
</script>

<div class="rcmLogin">


    <form>
        <h1 data-textEdit="loginHeader">
            <?php echo $this->ic['loginHeader']; ?>
        </h1>

        <div class="error"></div>


        <label data-textEdit="userNameCopy" for="rcmLoginUsername">
            <?php echo $this->ic['userNameCopy']; ?>
        </label>
        <br>
        <input autofocus type="text" name="userName"
               class="username"
               id="rcmLoginUsername">
        <br>
        <label data-textEdit="loginPasswordCopy"
               for="rcmLoginPassword">
            <?php echo $this->ic['loginPasswordCopy']; ?>
        </label>
        <br>
        <input type="password" name="loginPass" class="password"
               id="rcmLoginPassword">

        <br>
        <br>

        <button class="login" data-textEdit="loginSubmitCopy">
            <?php echo $this->ic['loginSubmitCopy']; ?>
        </button>

        <br>
        <br>

        <p data-textEdit="loginForgotPasswordCopy">
            <?php echo $this->ic['loginForgotPasswordCopy']; ?>
        </p>

        <div data-richedit="bottomLoginText">
            <?php echo $this->ic['bottomLoginText']; ?>
        </div>
    </form>
    <div style="clear:both;"></div>
</div>
{'fraction_non_alphanumeric': 0.17153024911032028, 'fraction_numerical': 0.0037959667852906285, 'mean_word_length': 2.3540175019888623, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 120, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5268860', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1293, 'n_words': 246}