Skip to content

Commit

Permalink
fix:Corrigido a indentação e o estilo do código do arquivo credit-car…
Browse files Browse the repository at this point in the history
…d-download.html
  • Loading branch information
lucastgama committed Sep 16, 2024
1 parent 9d09fe2 commit d9af081
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions src/templates/credit-card-download.html.php
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<?php
if (!defined('ABSPATH')) {
exit;
exit;
}
?>
<?php if (isset($vindi_order)) : ?>
<div class="vindi_payment_listing">
<div class="info_message">
<div class="icon"></div>
<div class="message">
<p class="message_title">
<?php _e('Aqui estão os links de suas compras.', VINDI); ?>
</p>
<p class="message_description">
<?php _e('Você pode acessar-los e pagá-los via sistema Vindi. Após recebermos a confirmação do pagamento, seu pedido será processado.', VINDI); ?>
</p>
</div>
</div>
<div class="charges">
<?php foreach ($order_to_iterate as $subscription) : ?>
<?php if (is_array($subscription) && array_key_exists('product', $subscription) && !in_array($subscription['bill']['status'], array('paid', 'canceled'))): ?>
<div class="charge">
<span class="product_title">
<?php echo $subscription['product']; ?>
</span>
<a class="download_button" href="<?php echo esc_url($subscription['bill']['vindi_url']); ?>" target="_blank">
<?php _e('Acessar link', VINDI); ?>
</a>
</div>
<?php else: ?>
<?php foreach ($subscription as $item): ?>
<?php if (is_array($item) && array_key_exists('product', $item) && !in_array($item['bill']['status'], array('paid', 'canceled'))): ?>
<div class="charge">
<span class="product_title">
<?php echo $item['product']; ?>
</span>
<a class="download_button" href="<?php echo esc_url($item['bill']['vindi_url']); ?>" target="_blank">
<?php _e('Acessar link', VINDI); ?>
</a>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<div class="vindi_payment_listing">
<div class="info_message">
<div class="icon"></div>
<div class="message">
<p class="message_title">
<?php _e('Aqui estão os links de suas compras.', VINDI); ?>
</p>
<p class="message_description">
<?php _e('Você pode acessar-los e pagá-los via sistema Vindi. Após recebermos a confirmação do pagamento, seu pedido será processado.', VINDI); ?>
</p>
</div>
</div>
<div class="charges">
<?php foreach ($order_to_iterate as $subscription) : ?>
<?php if (is_array($subscription) && array_key_exists('product', $subscription) && !in_array($subscription['bill']['status'], array('paid', 'canceled'))): ?>
<div class="charge">
<span class="product_title">
<?php echo $subscription['product']; ?>
</span>
<a class="download_button" href="<?php echo esc_url($subscription['bill']['vindi_url']); ?>" target="_blank">
<?php _e('Acessar link', VINDI); ?>
</a>
</div>
<?php else: ?>
<?php foreach ($subscription as $item): ?>
<?php if (is_array($item) && array_key_exists('product', $item) && !in_array($item['bill']['status'], array('paid', 'canceled'))): ?>
<div class="charge">
<span class="product_title">
<?php echo $item['product']; ?>
</span>
<a class="download_button" href="<?php echo esc_url($item['bill']['vindi_url']); ?>" target="_blank">
<?php _e('Acessar link', VINDI); ?>
</a>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>

0 comments on commit d9af081

Please sign in to comment.