<?php /* Smarty version 2.6.26, created on 2020-06-25 13:10:58
         compiled from /home3/bargaip4/public_html/gevimmo/plugins//bookmarks/buttons.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'explode', '/home3/bargaip4/public_html/gevimmo/plugins//bookmarks/buttons.tpl', 10, false),)), $this); ?>
<script type="text/javascript" src="//s7.addthis.com/js/<?php if ($this->_tpl_vars['type'] == 'floating_bar'): ?>300<?php else: ?>250<?php endif; ?>/addthis_widget.js<?php if ($this->_tpl_vars['config']['bookmarks_addthis_id']): ?>#pubid=<?php echo $this->_tpl_vars['config']['bookmarks_addthis_id']; ?>
<?php endif; ?>"></script>

<script type="text/javascript">
var addthis_config = <?php echo '{'; ?>

	ui_language: "<?php echo @RL_LANG_CODE; ?>
"<?php if ($this->_tpl_vars['type'] != 'floating_bar'): ?>,
	ui_delay: 200<?php endif; ?>
<?php echo '}'; ?>

</script>

<?php $this->assign('services', ((is_array($_tmp=',')) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['services']) : explode($_tmp, $this->_tpl_vars['services']))); ?>

<?php if ($this->_tpl_vars['align'] == 'right'): ?>
	<?php $this->assign('bookmark_style', 'float: right;'); ?>
<?php elseif ($this->_tpl_vars['align'] == 'center'): ?>
	<?php $this->assign('bookmark_style', 'display: inline-block;'); ?>
<?php endif; ?>

<div style="<?php if ($this->_tpl_vars['align'] == 'center'): ?>text-align: center;<?php endif; ?><?php if (! $this->_tpl_vars['block']['Tpl']): ?>padding: 0 0 5px 0;<?php endif; ?>">
	<?php if ($this->_tpl_vars['type'] == 'vertical_share_counter'): ?>
		<a class="addthis_counter" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
"></a>
	<?php elseif ($this->_tpl_vars['type'] == 'floating_bar'): ?>
		<div id="bookmark_floating_bar" class="hide addthis_toolbox addthis_floating_style addthis_<?php if ($this->_tpl_vars['view_mode'] == 'medium'): ?>32x32<?php elseif ($this->_tpl_vars['view_mode'] == 'small'): ?>16x16<?php else: ?>counter<?php endif; ?>_style" style="position: absolute; background: #<?php echo $this->_tpl_vars['color']; ?>
;left: auto;right: auto;top: 0;border-radius: 6px;direction: ltr;">
		    <div class="addthis_toolbox addthis_default_style<?php if ($this->_tpl_vars['view_mode'] == 'medium'): ?> addthis_32x32_style<?php endif; ?>" style="direction: ltr;">
			    <?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
					<span><a class="addthis<?php if ($this->_tpl_vars['service'] != 'counter'): ?>_button<?php endif; ?>_<?php echo $this->_tpl_vars['service']; ?>
" <?php if ($this->_tpl_vars['service'] == 'facebook_like'): ?>fb:like:layout="box_count"<?php elseif ($this->_tpl_vars['service'] == 'tweet'): ?>tw:count="vertical"<?php elseif ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="tall"<?php endif; ?>></a></span>
				<?php endforeach; endif; unset($_from); ?>
		    </div>
		</div>
		<script type="text/javascript">
		var bookmarks_side = '<?php echo $this->_tpl_vars['block']['Side']; ?>
';
		var bookmarks_view_mode = '<?php echo $this->_tpl_vars['view_mode']; ?>
';
		var bookmarks_template = '<?php echo $this->_tpl_vars['config']['template']; ?>
';
		<?php echo '
		
		$(document).ready(function(){
			$(\'#bookmark_floating_bar\').closest(\'.no_design\').hide();
			$($(\'#main_container\').length > 0 ? \'#main_container\' : \'#main_container_home\').append($(\'#bookmark_floating_bar\'));
			switch(bookmarks_view_mode){
				case \'large\':
					var bar_width = 70+10;
					break;
				case \'medium\':
					var bar_width = 46+10;
					break;
				case \'small\':
					var bar_width = 30+10;
					break;
			}
			var paddingTop = parseInt($(\'#content\').css(\'paddingTop\'));
			
			var patt = /\\_modern$/gi;
			if ( patt.test(bookmarks_template) )
			{
				paddingTop += 4;
			}
			else if ( bookmarks_template == \'realty_spring\' )
			{
				paddingTop = 0;
			}

			if ( bookmarks_side == \'middle_left\' )
			{
				if ( rlLangDir == \'rtl\' )
				{
					$(\'#bookmark_floating_bar\').css(\'margin-right\', -bar_width).css(\'margin-top\', paddingTop);
				}
				else
				{
					$(\'#bookmark_floating_bar\').css(\'margin-left\', -bar_width).css(\'margin-top\', paddingTop);
				}
			}
			else
			{
				var width = $(\'#main_container\').width() || $(\'#main_container_home\').width();
				if ( rlLangDir == \'rtl\' )
				{
					$(\'#bookmark_floating_bar\').css(\'margin-right\', parseInt(width)+10).css(\'margin-top\', paddingTop);
				}
				else
				{
					$(\'#bookmark_floating_bar\').css(\'margin-left\', parseInt(width)+10).css(\'margin-top\', paddingTop);
				}
			}
			$(\'#bookmark_floating_bar\').show();
			
			$(document).scroll(function(){
				bookmarksScroll();
			});
			
			bookmarksScroll();
		});
		
		var bookmarksScroll = function(){
			var pos = $(\'#main_container\').position() || $(\'#main_container_home\').position();
			
			if ( !pos )
				return;
			
			var offset = bookmarksGetOffset();
			
			if ( offset >= pos.top )
			{
				$(\'#bookmark_floating_bar\').css(\'position\', \'fixed\');
			}
			else
			{
				$(\'#bookmark_floating_bar\').css(\'position\', \'absolute\');
			}
		}
		
		var bookmarksGetOffset = function(){
			var top_offset;
			
			if ( self.pageYOffset )
			{
				top_offset = self.pageYOffset;
			}
			else if ( document.documentElement && document.documentElement.scrollTop )
			{
				top_offset = document.documentElement.scrollTop;// Explorer 6 Strict
			}
			else if ( document.body )
			{
				top_offset = document.body.scrollTop;// all other Explorers
			}
			
			return top_offset;
		}
		
		'; ?>

		</script>
	<?php elseif ($this->_tpl_vars['type'] == 'tweet_like_share'): ?>
		<div class="addthis_toolbox addthis_pill_combo" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
height: 25px;">       
		    <a class="addthis_button_tweet" tm:count="vertical"></a> 
		    <a class="addthis_button_facebook_like"></a>  
		    <a class="addthis_counter addthis_pill_style"></a>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == 'toolbox_facebook_like'): ?>
		<div class="addthis_toolbox addthis_default_style" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
height: 25px;">
			<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
				<a class="addthis_button_<?php echo $this->_tpl_vars['service']; ?>
" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?> href="javascript:void(0);"></a>
			<?php endforeach; endif; unset($_from); ?>
			<span class="addthis_separator"> </span>
			<a class="addthis_button_facebook_like"></a>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == 'googleplus_like_tweet'): ?>
		<?php if ($this->_tpl_vars['services']): ?>
			<div class="addthis_toolbox addthis_default_style" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
height: 25px;">
				<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
					<a class="addthis<?php if ($this->_tpl_vars['service'] != 'counter'): ?>_button<?php endif; ?>_<?php echo $this->_tpl_vars['service']; ?>
 addthis_pill_style addthis_nonzero" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?>></a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		<?php endif; ?>
	<?php elseif ($this->_tpl_vars['type'] == '32x32_icons_addthis'): ?>
		<div class="addthis_toolbox addthis_32x32_style addthis_default_style" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
">
			<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
				<a class="addthis_button_<?php echo $this->_tpl_vars['service']; ?>
" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?> href="javascript:void(0);"></a>
			<?php endforeach; endif; unset($_from); ?>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == '64x64_icons_aquaticus'): ?>
		<div class="addthis_toolbox" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
">
			<div class="custom_images">
				<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
					<a class="addthis_button_<?php if ($this->_tpl_vars['service'] == 'compact'): ?>more<?php else: ?><?php echo $this->_tpl_vars['service']; ?>
<?php endif; ?>" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?>><img src="http://www.addthis.com/cms-content/images/gallery/<?php if ($this->_tpl_vars['service'] == 'compact'): ?>addthis_64<?php else: ?>aquaticus_<?php echo $this->_tpl_vars['service']; ?>
<?php endif; ?>.png" width="64" height="64" alt="Share to <?php echo $this->_tpl_vars['service']; ?>
" /></a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == 'css3_share_buttons'): ?>
		<div class="addthis_toolbox addthis_share_btn" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
">
			<a href="http://addthis.com/bookmark.php" class="addthis_button_compact" <?php if ($this->_tpl_vars['color']): ?>style="background: #<?php echo $this->_tpl_vars['color']; ?>
;"<?php endif; ?>>
				<span><?php echo $this->_tpl_vars['lang']['bookmarks_share']; ?>
</span>
			</a>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == '32x32_vertical_icons'): ?>
		<div class="addthis_toolbox addthis_32x32_style" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
">
			<div class="custom_images">
				<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
					<a class="addthis_button_<?php echo $this->_tpl_vars['service']; ?>
" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?>></a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
	<?php elseif ($this->_tpl_vars['type'] == 'share_button'): ?>
		<a class="addthis_button" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
"></a>
	<?php elseif ($this->_tpl_vars['type'] == 'vertical_layout_menu'): ?>
		<div class="addthis_toolbox" style="<?php echo $this->_tpl_vars['bookmark_style']; ?>
">
			<div class="vertical">
				<?php $_from = $this->_tpl_vars['services']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['service']):
?>
					<a class="addthis_button_<?php echo $this->_tpl_vars['service']; ?>
" <?php if ($this->_tpl_vars['service'] == 'google_plusone'): ?>g:plusone:size="medium"<?php endif; ?> style="<?php if ($this->_tpl_vars['color']): ?>color: #<?php echo $this->_tpl_vars['color']; ?>
;<?php endif; ?>padding-bottom: 3px;"><?php echo $this->_tpl_vars['bsh_services'][$this->_tpl_vars['service']]; ?>
</a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
	<?php endif; ?>
	<div class="clear"></div>
</div>