File: /var/www/dinamo-shop/wp-content/themes/dinamo-shop/woocommerce/checkout/form-login.php
<?php
/**
* Checkout login form
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-login.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 3.8.0
*/
defined( 'ABSPATH' ) || exit;
if ( is_user_logged_in() || 'no' === get_option( 'woocommerce_enable_checkout_login_reminder' ) ) {
return;
}
?>
<div>
<p class="mt-25"><?php _e('Već imate korisnički račun?', 'dinamo_shop'); ?> <a data-open-modal="#LoginModal" href="#open"><?php _e('Kliknite ovdje za prijavu.', 'dinamo_shop'); ?></a></p>
<div id="LoginModal" class="modal-window">
<div class="modal-inner">
<h2 class="modal-title"><?php _e("Prijava", "dinamo_shop"); ?></h2>
<a data-close-modal="#LoginModal" href="#close" class="modal-close">×</a>
<form class="login-form" action="login" method="POST">
<?php wp_nonce_field( 'ajax-login-nonce', 'security' ); ?>
<div class="row">
<div class="col-12 col-xs-12">
<div class="form-group text-left">
<label class="form-label"><?php _e("Email adresa", "dinamo_shop"); ?></label>
<input required type="text" class="form-control full-width" name="email" placeholder="<?php _e("Unesite email adresu", "dinamo_shop"); ?>"/>
</div>
</div>
<div class="col-12 col-xs-12">
<div class="form-group text-left">
<label class="form-label"><?php _e("Lozinka", "dinamo_shop"); ?></label>
<input required type="password" class="form-control full-width" name="password" placeholder="<?php _e("Unesite lozinku", "dinamo_shop"); ?>"/>
</div>
</div>
</div>
<div class="text-center">
<div class="loginFormResponse form-response" style="display:none;">
</div>
<button data-loading-message="<?php _e("Šaljem...", "dinamo_shop"); ?>" class="login-button btn btn-primary"> <?php _e("Prijavite se", "dinamo_shop"); ?> </button>
</div>
</form>
</div>
</div>
</div>
<?php