<?php

do_action('it_exchange_content_licenses_begin_license_activation_loop');
?>

<?php 
$parts = array('activation-location');
if (it_exchange('license', 'can-remote-deactivate')) {
    $parts[] = 'activation-deactivate-link';
}
?>

<?php 
foreach (it_exchange_get_template_part_elements("content_licenses", "activations", $parts) as $detail) {
    ?>

	<?php 
    it_exchange_get_template_part('content-licenses/elements/' . $detail);
    ?>

<?php 
}
?>

<?php 
do_action('it_exchange_content_licenses_end_license_activation_loop');
<?php

do_action('it_exchange_content_licenses_before_license_loop');
?>

	<div class="it-exchange-item-data-top">
		<?php 
do_action('it_exchange_content_licenses_begin_license_loop_top');
?>

		<?php 
foreach (it_exchange_get_template_part_elements("content_licenses", "fields_top", array('product-name', 'key', 'key-status', 'key-activations', 'key-expiration', 'key-manage')) as $detail) {
    ?>

			<?php 
    it_exchange_get_template_part('content-licenses/elements/' . $detail);
    ?>

		<?php 
}
?>

		<?php 
do_action('it_exchange_content_licenses_end_license_loop_top');
?>
	</div>

	<div class="it-exchange-item-data-bottom">
		<?php 
do_action('it_exchange_content_licenses_begin_license_loop_bottom');
?>