<?php
if (! defined('ABSPATH')) exit; // Exit if accessed directly

/**
 * Read more
 *
 * This template can be overridden by copying it to yourtheme/eventful-por-elementor/templates/item/read-more.php
 *
 * @package    eventful-for-elementor_Pro
 * @subpackage eventful-for-elementor/src/Frontend/templates
 */

if ('text_link' === $read_more_type) {
?>

    <?php if ('none' === $efpe_page_link_type) { ?>
        <a class="eventful__item__btn">
        <?php } else { ?>
            <a class="eventful__item__btn" ta rel="<?php echo esc_attr($efpe_link_rel); ?>" href="<?php the_permalink($post); ?>">
            <?php } ?>

            <?php echo esc_html($read_more_text); ?> </a>

        <?php
    } else {
        ?>
            <div class="eventful__item__content__readmore">
                <?php if ('none' === $efpe_page_link_type) { ?>
                    <a class="eventful__item__btn">
                    <?php } else { ?>
                        <a class="eventful__item__btn" href="<?php the_permalink($post); ?>">
                        <?php } ?>
                        <?php echo esc_html($read_more_text); ?> </a>
            </div>
        <?php
    }
