|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/kamariallee.com/public_html/application/views/ |
Upload File : |
<?php foreach($all_sizes as $size) : ?>
<?php if(in_array($size, $available_sizes)) : ?>
<a href="#" class="sizeIcon" data-size="<?= $size; ?>"><p class="p-2 font-custom border
<?php if($size == $initial_size) : ?>
border-primary
<?php else : ?>
border-secondary
<?php endif; ?>
mt-2 w-6 h-6 flex justify-center items-center chosenSize"><span><?= $size; ?></span></p></a>
<?php else : ?>
<div class="w-6 h-6 relative overflow-hidden bg-transparent mt-2">
<div class="w-10 h-10 absolute top-0 bottom-0 left-0 right-2 transform -rotate-45 origin-top-left border border-secondary">
</div>
<p class="font-custom border border-secondary w-6 h-6 flex justify-center items-center"><span><?= $size; ?></span></p>
</div>
<?php endif; ?>
<?php endforeach; ?>
<script>
//get product detail based on size
$('a.sizeIcon').on('click', function(e) {
e.preventDefault();
ajaxGetProductDetailBySize($(this).data('size'), chosenColor);
});
</script>