<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <?php
    $this->load->view('user/common_style');
  ?>
  <link rel="stylesheet" href="<?php echo base_url();?>styles/fonts/Socialico/stylesheet.css">
  <link href="<?php echo base_url();?>styles/css/table.css" type="text/css" rel="stylesheet" />
	<script src="<?php echo base_url();?>styles/js/modernizr.js"></script>
  <style>
    textarea{
      max-width: 100%;
      max-height: 100px;
      min-height: 100px;
      height: 120px;
      background: #22313F;
      border: 0;
      padding: 10px;
      font-size: 14px;
      font-style: normal;
      line-height: 24px;
      overflow: auto;
      color: white;
      font-weight: 500;
      width:70%;
      margin:0 auto;margin-top:20px ;margin-bottom:20px ; text-align:center
    }
    .single_service_img_content_left img {
        border-top: 8px solid #fff;
    }
    .socillnks1 a
    {
      border-right:none;
    }
  </style>
</head>
<body>

  <div id="preloader">
    <div class="preloader_spinner"> </div>
  </div>

  <section class="body_wrapper home_one">
    <?php
        $this->load->view('user/header');
         $this->load->view('user/login_header');
    ?>
<?php if($user_use_promo_tools == 'on') { ?>
    <section class="dmain">
  	  <div class="container">
        <h2 class="section_hedings"><?php echo $this->lang->line('my_title'); ?> <span><?php echo $this->lang->line('my_banners'); ?></span></h2><br />
        <div class="gry clearfix">
        <?php if($banner_list){ $i=1; foreach ($banner_list as $row) { ?>
          
       
          <div class="row">
            <div class="col-lg-12 text-center" >
              <img src="<?php echo base_url().'content/banner/'.$row->banner_image;?>"  width="auto"/>
            </div> 
            <div class="clearfix"></div>
            <div class="col-lg-12 text-center">
              <textarea id="link0<?php echo $i; ?>">
                <a href="<?php echo $referral_url;?>"> 
                  <img src="<?php echo base_url().'content/banner/'.$row->banner_image;?>" border="0">
                </a>
              </textarea>
              <div class="">
                <div class="col-lg-offset-3 col-lg-2">
                  <button data-copytarget="#link0<?php echo $i; ?>" class="copy">copy</button>
                </div>
                <div class=" col-lg-3">
                  <div class=" socillnks1">
                    <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $referral_url;?>">f</a>
                    <a href="https://plus.google.com/share?url=<?php echo $referral_url;?>">g</a>
                    <a href="http://pinterest.com/pin/create/button/?url=<?php echo $referral_url;?>">p</a>                        
                    <a href="https://twitter.com/intent/tweet?source=<?php echo $referral_url;?>">l</a>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <br /><br />
          <?php $i++; } }?>
        </div>
      </div>
	  </section>
                
     <?php }  else { ?>
  <section class="dmain">
    <div class="container">
        <div class="row section_padding_50">
            <div class="col-lg-12"> 
                <div class="gry clearfix">
                <div class="profilesub">
                        <h2><?php echo $this->lang->line('warning_msg_lbl'); ?></h2>
                        </div>
                    <div class="col-lg-6" >

                    <p style="color:white;" class="frgtpwd frgtpwd1 frgtpwdred"><i class="fa fa-thumbs-down"></i><?php echo $this->lang->line('banner_option_disabled'); ?> !</p>
</p></div>
                </div>
                
                
                
                
             </div>
             
         </div>   
         
        
     </div>
   </section>

        <?php } ?>

    <?php
        $this->load->view('user/footer');
    ?>
  </section>


  <script src="<?php echo base_url();?>styles/js/jquery-1.12.2.min.js"></script>

  <script src="<?php echo base_url();?>styles/js/jquery.meanmenu.js"></script>
  <script src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/jquery.counterup.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/jquery.mixitup.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/instafeed.min.js"></script>
  <script src="<?php echo base_url();?>styles/js/bootstrap.min.js"></script>

  <script src="<?php echo base_url();?>styles/js/main.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
  <script type="text/javascript">

  	$(document).ready(function($) {
    	$("#owl-example").owlCarousel({   
      	nav:true,
      	items : 8, 
        itemsCustom : false,
        itemsDesktop : [1199,8],
        itemsDesktopSmall : [980,5],
        itemsTablet: [768,5],
        itemsTabletSmall: [768,4],
        itemsMobile : [479,2],
        singleItem : false,
        itemsScaleUp : true,
      	navigation : true,
        navigationText : ["",""],
        rewindNav : true,
        scrollPerPage : true,
    	});
  	});
	
	</script>

  <!-- Core JS files -->
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/loaders/pace.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/core/libraries/jquery.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/core/libraries/bootstrap.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/loaders/blockui.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/ui/nicescroll.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/ui/drilldown.js"></script>
  <!-- /core JS files -->

  <!-- Theme JS files -->
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/notifications/bootbox.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/notifications/sweet_alert.min.js"></script>
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/core/app.js"></script>
  <!-- /theme JS files -->

  

  <script type="text/javascript">
    (function() {

      'use strict';

     
      document.body.addEventListener('click', copy, true);


      function copy(e) {

        var
          t = e.target,
          c = t.dataset.copytarget,
          inp = (c ? document.querySelector(c) : null);

        if (inp && inp.select) {

       
          inp.select();

          try {

            document.execCommand('copy');
            inp.blur();
          }
          catch (err) {
             swal({
                title: "<?php echo $this->lang->line('referral_copy_lbl'); ?>",
                confirmButtonColor: "#f5ab35"
            }); 
          }

        }

      }

    })();
  </script>
 
</body>
</html>
