<?php 
/*
	osConcert Seat Booking Software
	https://www.osconcert.com
	Copyright (c) 2024 osConcert

	Released under the GNU General Public License 
*/	
// Check to ensure this file is included in osConcert!
defined('_FEXEC') or die();
?>
    <div class="container py-4">

    <div class="row justify-content-center">
        <div class="col-12 col-xl-10">

            <div class="card border-0 shadow-sm rounded-4">
                <div class="card-body p-4">

                    <div class="affiliate-content">

                        <?php
                        if (isset($affinfo) && $affinfo) {

                            $content = file_get_contents(
                                DIR_FS_CATALOG . DIR_WS_TEMPLATES . TEMPLATE_NAME . "/images/affiliate.html"
                            );

                            $content = str_replace("{{AFFILIATE_LOGO}}", tep_template_image("aff_home_logo.jpg", ""), $content);
                            $content = str_replace("{{IMG_BULLET}}", tep_template_image("icon_arrow_yellow.gif", ""), $content);
                            $content = str_replace("{{IMG_BULLET1}}", tep_template_image("icon_arrow_lightyellow.gif", ""), $content);
                            $content = str_replace("{{IMG_BULLET2}}", tep_template_image("icon_arrow.gif", ""), $content);
                            $content = str_replace("{{IMG_EMAIL}}", tep_template_image("img_email.gif", "", "id='img_email' style='visibility:hidden'"), $content);

                            echo $content;

                        } else {

                            echo empty($affiliate_result['message_text'])
                                ? TEXT_INFORMATION
                                : $affiliate_result['message_text'];

                        }
                        ?>

                    </div>

                </div>
            </div>

        </div>
    </div>

</div>
