index.php 2.07 KB
Newer Older
DZywolf's avatar
DZywolf committed
1 2
    <section class="uk-section uk-section-small" data-uk-height-viewport="expand: true">
      <div class="uk-container">
DZywolf's avatar
DZywolf committed
3 4
        <h3 class="uk-h3 uk-text-bold uk-text-uppercase"><i class="fas fa-star"></i> Vote</h3>
        <div class="uk-grid uk-grid-small uk-child-width-1-1 uk-child-width-1-4@s uk-child-width-1-5@m" data-uk-grid>
5
         <?php foreach ($voteList as $key => $voteList): ?>
DZywolf's avatar
DZywolf committed
6
          <div>
DZywolf's avatar
DZywolf committed
7
            <div class="uk-card uk-card-vote uk-card-body uk-text-center">
DZywolf's avatar
DZywolf committed
8
              <img src="<?= $voteList->image ?>">
DZywolf's avatar
DZywolf committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
              <div class="uk-card-badge uk-label" uk-tooltip="<?= $this->lang->line('panel_vp'); ?>"><?= $voteList->points ?></div>
                <h5 class="uk-h5 uk-text-uppercase uk-text-bold uk-margin-remove-bottom uk-margin-small-top">Next vote in:</h5>
                <div class="uk-grid-collapse uk-child-width-auto uk-flex-center uk-margin-small-bottom" uk-grid uk-countdown="date: <?= date('c', $this->fxvote->getTimeLogExpired($voteList->id, $this->session->userdata('fx_sess_id'))) ?>">
                  <div>
                    <div class="uk-countdown-number uk-countdown-days"></div>
                  </div>
                  <div class="uk-countdown-separator">:</div>
                  <div>
                    <div class="uk-countdown-number uk-countdown-hours"></div>
                  </div>
                  <div class="uk-countdown-separator">:</div>
                  <div>
                    <div class="uk-countdown-number uk-countdown-minutes"></div>
                  </div>
                  <div class="uk-countdown-separator">:</div>
                  <div>
                    <div class="uk-countdown-number uk-countdown-seconds"></div>
                  </div>
                </div>
                <?= form_open(base_url('vote/votenow/'.$voteList->id)); ?>
                  <button class="uk-button uk-button-default"><i class="fas fa-vote-yea"></i> <?= $this->lang->line('nav_vote'); ?></button>
                <?= form_close(); ?>
Vipo's avatar
Vipo committed
31
            </div>
DZywolf's avatar
DZywolf committed
32
          </div>
33
          <?php endforeach; ?>
Vipo's avatar
Vipo committed
34
        </div>
DZywolf's avatar
DZywolf committed
35 36
      </div>
    </section>