<?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_renew_link_element');
?>
	<p class="it-exchange-license-key-renew-link"><?php 
it_exchange('license', 'renew-link');
?>
</p>
<?php 
do_action('it_exchange_content_licenses_after_license_renew_link_element');
<?php

do_action('it_exchange_content_licenses_before_key_status_element');
?>
	<span class="it-exchange-license-key-status"><?php 
it_exchange('license', 'status');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_before_after_key_status_element');
Exemplo n.º 4
0
<?php

do_action('it_exchange_content_licenses_before_key_element');
?>
	<span class="it-exchange-license-key">
	<input type="text" readonly aria-labelledby="it-exchange-license-key"
	       value="<?php 
echo esc_attr(it_exchange('license', 'get-key'));
?>
">
	</span>
<?php 
do_action('it_exchange_content_licenses_before_after_key_element');
	<?php 
it_exchange('license', 'key', array('format' => 'label'));
?>
</span>

<span class="it-exchange-license-key-status it-exchange-license-key-status-header">
	<?php 
it_exchange('license', 'status', array('format' => 'label'));
?>
</span>

<span class="it-exchange-license-key-activations it-exchange-license-key-activations-header">
	<?php 
it_exchange('license', 'activation-count', array('format' => 'label'));
?>
</span>

<span class="it-exchange-license-key-expiration it-exchange-license-key-expiration-header">
	<?php 
it_exchange('license', 'expiration-date', array('format' => 'label'));
?>
</span>

<span class="it-exchange-license-key-manage it-exchange-license-key-manage-header">
	<?php 
it_exchange('license', 'manage', array('format' => 'label'));
?>
</span>

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

do_action('it_exchange_content_licenses_before_key_expiration_element');
?>
	<span class="it-exchange-license-key-expiration"><?php 
it_exchange('license', 'expiration-date');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_before_after_key_expiration_element');
<?php

do_action('it_exchange_content_licenses_before_license_activate_element');
?>
	<div class="it-exchange-license-key-license-activate"><?php 
it_exchange('license', 'activate');
?>
</div>
<?php 
do_action('it_exchange_content_licenses_after_license_activate_element');
<?php

do_action('it_exchange_content_licenses_before_key_manage_element');
?>
	<span class="it-exchange-license-key-manage"><?php 
it_exchange('license', 'manage');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_before_after_key_manage_element');
Exemplo n.º 9
0
 function handle_ithemes_purchase_integration()
 {
     if ($this->check_applicability_module('ithemes')) {
         $activity_link = it_exchange('transaction', 'product-attribute', array('attribute' => 'product_id', 'return' => true));
         $activity_title = it_exchange('transaction', 'product-attribute', array('attribute' => 'title', 'return' => true));
         $activity_link = get_permalink($activity_link);
         printf('%1$s<div style="clear: both;"></div>', $this->generate_share_buttons('ithemes', 'share', array('only_share' => false, 'post_type' => 'ithemes', 'url' => $activity_link, 'title' => $activity_title)));
     }
 }
Exemplo n.º 10
0
<?php 
do_action('it_exchange_content_licenses_before_licenses_loop');
?>

<?php 
while (it_exchange('licenses', 'licenses')) {
    ?>

	<?php 
    do_action('it_exchange_content_licenses_begin_licenses_loop');
    ?>

	<div class="it-exchange-license">
		<?php 
    it_exchange_get_template_part('content-licenses/loops/license');
    ?>
	</div>

	<?php 
    do_action('it_exchange_content_licenses_end_licenses_loop');
    ?>

<?php 
}
?>

<?php 
do_action('it_exchange_content_licenses_after_licenses_loop');
do_action('it_exchange_content_licenses_before_wrap');
?>
<div id="it-exchange-licenses" class="it-exchange-wrap it-exchange-account">
	<?php 
do_action('it_exchange_content_licenses_begin_wrap');
?>
	<?php 
it_exchange_get_template_part('messages');
?>
	<?php 
it_exchange('customer', 'menu');
?>

	<div class="it-exchange-licensing-container">
		<?php 
if (it_exchange('licenses', 'has-licenses')) {
    ?>
			<div class="it-exchange-licenses-list">
				<div class="it-exchange-licenses-list-header">
					<?php 
    it_exchange_get_template_part('content-licenses/elements/licenses-list-header');
    ?>
				</div>
				<div class="it-exchange-licenses-list-body">
					<?php 
    it_exchange_get_template_part('content-licenses/loops/licenses');
    ?>
				</div>
			</div>
		<?php 
} else {
<?php

do_action('it_exchange_content_licenses_before_activation_location_element');
?>
	<span class="it-exchange-license-key-activation-location"><?php 
it_exchange('activation', 'deactivate-link');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_after_activation_location_element');
<?php

do_action('it_exchange_content_licenses_before_license_activations_loop');
?>
<ul>
	<?php 
while (it_exchange('license', 'activations')) {
    ?>

		<?php 
    do_action('it_exchange_content_licenses_begin_license_activations_loop');
    ?>

		<li class="it-exchange-license-activation">
			<?php 
    it_exchange_get_template_part('content-licenses/loops/activation');
    ?>
		</li>

		<?php 
    do_action('it_exchange_content_licenses_end_license_activations_loop');
    ?>

	<?php 
}
?>

	<?php 
do_action('it_exchange_content_licenses_after_license_activations_loop');
?>
</ul>
<?php

do_action('it_exchange_content_licenses_before_key_activations_element');
?>
	<span class="it-exchange-license-key-activations"><?php 
it_exchange('license', 'activation-count');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_before_after_key_activations_element');
<?php

do_action('it_exchange_content_licenses_before_product_name_element');
?>
	<span class="it-exchange-license-product-name"><?php 
it_exchange('license', 'product-name');
?>
</span>
<?php 
do_action('it_exchange_content_licenses_before_after_product_name_element');