<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="ccm-block-testimonial-wrapper">
    <div class="ccm-block-testimonial">
        <?php if ($image): ?>
            <div class="ccm-block-testimonial-image"><?php echo $image?></div>
        <?php endif; ?>

        <div class="ccm-block-testimonial-text">

            <div class="ccm-block-testimonial-name">
                <?php echo h($name)?>
            </div>

        <?php if ($position && $company && $companyURL): ?>
            <div class="ccm-block-testimonial-position">
                <?php echo t('%s, <a href="%s">%s</a>', h($position), $companyURL, h($company))?>
            </div>
        <?php endif; ?>

        <?php if ($position && !$company && $companyURL): ?>
            <div class="ccm-block-testimonial-position">
                <?php echo t('<a href="%s">%s</a>', $companyURL, h($position))?>
            </div>
        <?php endif; ?>

        <?php if ($position && $company && !$companyURL): ?>
            <div class="ccm-block-testimonial-position">
                <?php echo t('%s, %s', h($position), h($company))?>
            </div>
        <?php endif; ?>

        <?php if ($position && !$company && !$companyURL): ?>
            <div class="ccm-block-testimonial-position">
                <?php echo h($position)?>
            </div>
        <?php endif; ?>

        <?php if ($paragraph): ?>
            <div class="ccm-block-testimonial-paragraph"><?php echo h($paragraph)?></div>
        <?php endif; ?>

        </div>

    </div>
</div>