<?php
/**
 * Paywall Secondary Row Partial
 *
 * Displays the "Already purchased? Log in" link.
 *
 * Expected variables:
 * - int    $post_id    Post ID
 * - string $login_text Login link text
 *
 * @package PostGate
 * @subpackage Templates/Parts
 * @since 1.0.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="postgate-paywall__secondary-row">
	<a class="postgate-paywall__link" href="<?php echo esc_url( wp_login_url( get_permalink( $post_id ) ) ); ?>">
		<?php echo esc_html( $login_text ); ?>
	</a>
</div>