<?php
if(!th_checkbox_filter('resume','section_on_off')) :
$btn_txt     = get_theme_mod('resume_button_text','View');
$btn_lnk     = get_theme_mod('resume_button_link');
$btn_icon    = get_theme_mod('resume_button_icon','fa fa-eye');
$btn2_txt    = get_theme_mod('resume_button_text2','Download');
$btn2_lnk    = get_theme_mod('resume_button_link2');
$btn2_icon   = get_theme_mod('resume_button_icon2','fa fa-download');
$upld_resume = get_theme_mod('resume_upld');
?>
<!-- start resume ribbon -->
<?php if (get_theme_mod('resu_parallax','on')=='on') { ?>
<section id="resume-ribbon" data-center="background-position: 50% 0px;" data-top-bottom="background-position: 50% -100px;" class="plrx_enable">
  <?php } else { ?>
  <section id="resume-ribbon">
    <?php } ?>
    <div class="container">
      <div class="page-ribbon">
        <div class="ribbon-block wow fadeInRight">
          <?php if (get_theme_mod('resume_heading','') != '') { ?>
          <h2 class="main-heading wow fadeInRight" data-wow-delay="0.3s"><?php echo get_theme_mod('resume_heading');?></h2>
          <?php } else { ?>
          <h2 class="main-heading wow fadeInRight" data-wow-delay="0.3s"><?php _e('Our Resume','portfoliolite'); ?></h2>
          <?php } ?>
          <div class="button-wrapper wow fadeInLeft" data-wow-delay="0.3s">
            <ul>
              <?php if($btn_txt!=''|| $btn_icon!=''){?>
              <?php if(get_theme_mod('iframe_disable','enable')){ ?>
              <li class="view-resume-c"><a class="iframe" rel="group" href="<?php
              if($upld_resume!=''){echo $upld_resume;}else{echo $btn_lnk;} ?>"><i class="<?php echo $btn_icon;?>"></i><?php echo $btn_txt;?></a></li>
              <?php } else { ?>
              <li class="view-resume-c"><a href="<?php
              if($upld_resume!=''){echo $upld_resume;}else{echo $btn2_lnk;} ?>"><i class="<?php echo $btn_icon;?>"></i><?php echo $btn_txt;?></a></li>
              <?php } ?>
              <?php } else { ?>
              <li class="view-resume-c"><a href="#"><i class="fa fa-eye"></i><?php _e('View','portfoliolite'); ?></a></li>
              <?php } ?>
              <?php if($btn2_txt!=''|| $btn2_icon!=''){?>
              <li class="download-resume-c"><a href="<?php
                if($upld_resume!=''){echo $upld_resume;}else{echo $btn2_lnk;} ?>">
              <i class="<?php echo $btn2_icon;?>"></i><?php echo $btn2_txt;?></a></li>
              <?php } else { ?>
              <li class="download-resume-c"><a href="#"><i class="fa fa-download"></i><?php _e('Download','portfoliolite'); ?></a></li>
              <?php } ?>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- end resume ribbon -->
  <div class="clearfix"></div>
  <?php endif; ?>