예제 #1
0
?>

                <?php 
if (osc_is_web_user_logged_in()) {
    ?>
                    <?php 
    AlertForm::user_id_hidden();
    ?>
                    <?php 
    AlertForm::email_hidden();
    ?>
                <?php 
} else {
    ?>
                    <?php 
    AlertForm::user_id_hidden();
    ?>
                    <input id="alert_email" type="text" name="alert_email" value="" placeholder="<?php 
    _e('Email', 'pop');
    ?>
">
                <?php 
}
?>
                <a href="#" class="sub_button btn btn-primary" ><?php 
_e('Subscribe', 'pop');
?>
</a>
        </form>
    </div>
</div>
예제 #2
0
            <?php 
if (osc_is_web_user_logged_in()) {
    ?>
                <?php 
    AlertForm::user_id_hidden();
    ?>
                <?php 
    AlertForm::email_hidden();
    ?>

            <?php 
} else {
    ?>
                <?php 
    AlertForm::user_id_hidden();
    ?>
                <?php 
    AlertForm::email_text();
    ?>

            <?php 
}
?>
            <button type="submit" class="sub_button" ><?php 
_e('Subscribe now', 'modern');
?>
!</button>
        </fieldset>
    </form>
</div>
예제 #3
0
'); }
                    else if(data==-1) { alert('<?php 
_e('Invalid email address', 'realestate');
?>
'); }
                    else { alert('<?php 
_e('There was a problem with the alert', 'realestate');
?>
');
                    };
                });
            return false;
        });

        var sQuery = '<?php 
echo osc_esc_js(AlertForm::default_email_text());
?>
' ;

        if($('input[name=alert_email]').val() == sQuery) {
            $('input[name=alert_email]').css('color', 'gray');
        }
        $('input[name=alert_email]').click(function(){
            if($('input[name=alert_email]').val() == sQuery) {
                $('input[name=alert_email]').val('');
                $('input[name=alert_email]').css('color', '');
            }
        });
        $('input[name=alert_email]').blur(function(){
            if($('input[name=alert_email]').val() == '') {
                $('input[name=alert_email]').val(sQuery);