Advertisement
maxxxxxx99

New year single.php

Oct 19th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.89 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @var FV_Competitor   $contestant
  4.  * @var FV_Contest      $contest
  5.  */
  6. $theme_imgs_url = str_replace('soc-fb.png', '', FV_Templater::locateUrl($theme, 'img/soc-fb.png'));
  7. ?>
  8.  
  9. <div id="fv_constest_item" class="photo-single-item">
  10.     <div class="fv_name">
  11.         <span class="name"><?php echo $contestant->getHeadingForTpl('single', $contest); ?></span>
  12.  
  13.         <div class="back">
  14.             <a href="<?php echo $contest_link; ?>">
  15.                 <i class="fvicon fvicon-login"></i> <?php echo $public_translated_messages['back_to_contest'] ?>
  16.             </a>
  17.         </div>
  18.     </div>
  19.     <div class="fv_photo">
  20.         <div class="fv_photo_votes">
  21.             <a href="#" onclick="sv_vote(<?php echo $contestant->id ?>); return false;">
  22.                 <?php if ( !fv_setting('hide-votes') ): ?>
  23.                     <i class="fvicon-heart3"></i> <span class="sv_votes_<?php echo $contestant->id ?>"><?php echo $contestant->getVotes($contest); ?></span>
  24.                 <?php else: ?>
  25.                     <i class="fvicon-heart3"></i>
  26.                 <?php endif; ?>
  27.             </a>
  28.         </div>
  29.         <?php if (fv_setting('soc-counter', false)): ?>
  30.             <div class="fv-svotes-container">
  31.                 <a href="#0" class="fv-svotes-a" onclick="FvModal.goShare(<?php echo $contestant->id ?>); return false;"
  32.                    title="<?php echo $public_translated_messages['shares_count_text']; ?>">
  33.                     <i class="fvicon-share"></i> <span class="fv-soc-votes fv_svotes_<?php echo $contestant->id; ?>">0</span>
  34.                 </a>
  35.             </div>
  36.         <?php endif; ?>
  37.  
  38.         <?php FV_Public_Single::render_main_image($image, $contestant, 'mainImage img-thumbnail'); ?>
  39.  
  40.         <?php if (!empty($next_id)): ?>
  41.             <div class="fv_next fv_nav">
  42.                 <a href="<?php echo fv_single_photo_link($next_id, false, $contestant->contest_id); ?>" title="<?php _e('Next', 'fv') ?>">
  43.                     <span class="fvicon-arrow-right"></span></a>
  44.             </div>
  45.         <?php endif; ?>
  46.  
  47.         <?php if (!empty($prev_id)): ?>
  48.             <div class="fv_prev fv_nav">
  49.                 <a href="<?php echo fv_single_photo_link($prev_id, false, $contestant->contest_id); ?>" title="<?php _e('Previous', 'fv') ?>">
  50.                     <span class="fvicon-arrow-left"></span></a>
  51.             </div>
  52.         <?php endif; ?>
  53.  
  54.     </div>
  55.     <div class="fv_social">
  56.         <span><?php echo $public_translated_messages['single_share_heading']; ?></span>
  57.  
  58.         <div class="fv_social_icons">
  59.             <?php if (!get_option('fotov-voting-noshow-vk', false)): ?>
  60.                 <a href="#0" onclick="return sv_vote_send('vk', this,<?php echo $contestant->id ?>)"
  61.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-vk.png"/></a>
  62.             <?php endif; ?>
  63.             <?php if (!get_option('fotov-voting-noshow-fb', false)): ?>
  64.                 <a href="#0" onclick="return sv_vote_send('fb', this,<?php echo $contestant->id ?>)"
  65.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-fb.png"/></a>
  66.             <?php endif; ?>
  67.             <?php if (!get_option('fotov-voting-noshow-tw', false)): ?>
  68.                 <a href="#0" onclick="return sv_vote_send('tw', this,<?php echo $contestant->id ?>)"
  69.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-tw.png"/></a>
  70.             <?php endif; ?>
  71.             <?php if (!get_option('fotov-voting-noshow-ok', false)): ?>
  72.                 <a href="#0" onclick="return sv_vote_send('ok', this,<?php echo $contestant->id ?>)"
  73.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-ok.png"/></a>
  74.             <?php endif; ?>
  75.             <?php if (!get_option('fotov-voting-noshow-gp', false)): ?>
  76.                 <a href="#0" onclick="return sv_vote_send('gp', this,<?php echo $contestant->id ?>)"
  77.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-gp.png"/></a>
  78.             <?php endif; ?>
  79.             <?php if (!get_option('fotov-voting-noshow-pi', false)): ?>
  80.                 <a href="#0" onclick="return sv_vote_send('pi', this,<?php echo $contestant->id ?>)"
  81.                    target="_blank"><img src="<?php echo $theme_imgs_url; ?>soc-pi.png"/></a>
  82.             <?php endif; ?>
  83.         </div>
  84.     </div>
  85.     <div class="fv_description"><?php echo $contestant->getDescForTpl('single'); ?></div>
  86.  
  87.     <div class="clearfix">
  88.         <div class="comments-block"><?php
  89.             FV_Public_Single::get_instance()->render_comments($contestant);
  90.             ?>
  91.         </div>
  92.     </div>
  93.  
  94.     <br/>
  95.  
  96.     <div id="fv_most_voted" class="theme">
  97.         <span class="title"><span><?php echo $public_translated_messages['other_title'] ?></span></span>
  98.         <?php
  99.         include 'related.php';
  100.         ?>
  101.     </div>
  102.  
  103.     <div style="clear: both;"></div>
  104.     <br/>
  105.  
  106. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement