<div id="subscribtion-section">
  <div id="subscribeit" class="event-bnts">
  
      
    	<a href="<?php echo get_the_permalink('1845');?>" class="glink">
    	
        <i class="fa fa-google"></i> <?php _e('Add to Google Calendar:','themelang') ?>
        </a>
   <?php
   //$this_url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	//$link =  $this_url .'?ical=1';
	
	$link = get_bloginfo('wpurl').'?ical=1';
  $link = str_replace(array('http://','https://'), '', $link);
  
   ?>
  
<a href="webcal://<?php echo $link; ?>" class="callink" target="_blank"> 
<i class="fa fa-calendar-check-o"></i> <?php _e('Add to other Calendar:','themelang') ?></a>
 <a href="https://<?php echo $link; ?>">
 <i class="fa fa-download" aria-hidden="true"></i> <?php _e('Export Calendar:','themelang') ?> 
</a>
    
    </div><!--subscribeit-->
   


</div><!--section-->