Esempio n. 1
0
} else {
    ?>
					<a href="#" class="btn btn-lg btn-red">Rajouter l'eventbrite</a>
				<?php 
}
?>
			</div>
			<div class="col-md-4 col-sm-6">
				<h3>Tickets pour la remise des prix</h3>
				<p class="price">Gratuit</p>
				<p>Réservez votre place pour assister à la remise des prix</p>
				<?php 
if (just_variable('url eventbrite conference', FALSE) != '') {
    ?>
					<a target="_blank" href="<?php 
    just_variable('url eventbrite conference');
    ?>
" class="btn btn-lg btn-red">Commander</a>
				<?php 
} else {
    ?>
					<a target="_blank" href="#" class="btn btn-lg btn-red">Rajouter l'eventbrite</a>
				<?php 
}
?>
			</div>
		</div>
	</div>
	<!-- End: Tickets -->

    <div class="container">
/**
 *	register custom shortcode to print variables in the content
 *	@param array $atts attributes array submitted to shortcode
 *	@return string  return parsed shortcode
 */
function just_variable_shortcode($atts)
{
    if (empty($atts['code'])) {
        return '';
    } else {
        return just_variable($atts['code'], false);
    }
}