Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED]print and email icons not showing
(1 viewing) (1) Guest

TOPIC: [SOLVED]print and email icons not showing

[SOLVED]print and email icons not showing 10 years, 4 months ago #15649

Hi

print and email icons not showing in K2

can you please help ?

i use that code and still got the same issue


<?php $useDefList = (
$params->get('show_modify_date') ||
$params->get('show_publish_date') ||
$params->get('show_create_date')
|| $params->get('show_hits') ||
$canEdit ||
$params->get('show_print_icon') ||
$params->get('show_email_icon')
);?>
The topic has been locked.

Re: print and email icons not showing 10 years, 4 months ago #15723

Dear Walkys lemaine,

Please go to your_site\templates\sj_vinda\html\com_k2\templates\sj-template\item.php and find:
<dl class="article-info">
				<?php if($this->item->params->get('itemAuthor')): ?>
				<!-- Item Author -->
				<dd>
					<span class="itemAuthor">
					<i class="icon-user"></i>
					<?php if(empty($this->item->created_by_alias)): ?>
					<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>
					</span>
				</dd>
				<?php endif; ?>
				<?php if($this->item->params->get('itemDateCreated')): ?>
				<!-- Date created -->
				<dd>
					<span class="itemDateCreated">
						<i class="icon-calendar-empty"></i>
						<?php echo JHTML::_('date', $this->item->created , JText::_('M d Y')); ?>
					</span>
				</dd>
				<?php endif; ?>
				
				
				
				<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
		
				<!-- Anchor link to item video below - if it exists -->
				<dd>
					<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('K2_MEDIA'); ?></a>
				</dd>
				<?php endif; ?>
				
				<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
				<?php endif; ?>
				
				
			</dl>

=>

<dl class="article-info">
				<?php if($this->item->params->get('itemAuthor')): ?>
				<!-- Item Author -->
				<dd>
					<span class="itemAuthor">
					<i class="icon-user"></i>
					<?php if(empty($this->item->created_by_alias)): ?>
					<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>
					</span>
				</dd>
				<?php endif; ?>
				<?php if($this->item->params->get('itemDateCreated')): ?>
				<!-- Date created -->
				<dd>
					<span class="itemDateCreated">
						<i class="icon-calendar-empty"></i>
						<?php echo JHTML::_('date', $this->item->created , JText::_('M d Y')); ?>
					</span>
				</dd>
				<?php endif; ?>
				
				
				
				<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
		
				<!-- Anchor link to item video below - if it exists -->
				<dd>
					<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('K2_MEDIA'); ?></a>
				</dd>
				<?php endif; ?>
				
				<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
				<?php endif; ?>
				
				
			</dl>
			
			<?php if(
			$this->item->params->get('itemFontResizer') ||
			$this->item->params->get('itemPrintButton') ||
			$this->item->params->get('itemEmailButton') ||
			$this->item->params->get('itemSocialButton') ||
			$this->item->params->get('itemImageGalleryAnchor') 
		): ?>
  			<div class="itemToolbar">
		<ul>
			<?php if($this->item->params->get('itemFontResizer')): ?>
			<!-- Font Resizer -->
			<li>
				<span class="itemTextResizerTitle"><?php echo JText::_('K2_FONT_SIZE'); ?></span>
				<a href="#" id="fontDecrease">
					<span><?php echo JText::_('K2_DECREASE_FONT_SIZE'); ?></span>
					<img src="<?php echo JURI::root(true); ?>/components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('K2_DECREASE_FONT_SIZE'); ?>" />
				</a>
				<a href="#" id="fontIncrease">
					<span><?php echo JText::_('K2_INCREASE_FONT_SIZE'); ?></span>
					<img src="<?php echo JURI::root(true); ?>/components/com_k2/images/system/blank.gif" alt="<?php echo JText::_('K2_INCREASE_FONT_SIZE'); ?>" />
				</a>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemPrintButton') && !JRequest::getInt('print')): ?>
			<!-- Print Button -->
			<li>
				<a class="itemPrintLink" rel="nofollow" href="<?php echo $this->item->printLink; ?>" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;">
					<span><?php echo JText::_('K2_PRINT'); ?></span>
				</a>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
			<!-- Email Button -->
			<li>
				<a class="itemEmailLink" rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;">
					<span><?php echo JText::_('K2_EMAIL'); ?></span>
				</a>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemSocialButton') && !is_null($this->item->params->get('socialButtonCode', NULL))): ?>
			<!-- Item Social Button -->
			<li>
				<?php echo $this->item->params->get('socialButtonCode'); ?>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
			<!-- Anchor link to item image gallery below - if it exists -->
			<li>
				<a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a>
			</li>
			<?php endif; ?>			
		</ul>
		<div class="clr"></div>
  </div>
		<?php endif; ?>


Thanks!
The topic has been locked.

Re: print and email icons not showing 10 years, 4 months ago #15729

BY DOING THAT... yes the print button is showing by everything has changed ,i just need the icons....everything else should stay the same as the demo...

Not the good code for me
The topic has been locked.

Re: print and email icons not showing 10 years, 4 months ago #15753

Dear Walkys lemaine,

Please go to your_site\templates\sj_vinda\html\com_k2\templates\sj-template\item.php and add the code in item.php:
		
			<?php if(
		
			$this->item->params->get('itemPrintButton') ||
			$this->item->params->get('itemEmailButton') ||
			
		): ?>
  			<div class="itemToolbar">
		<ul>
		

			<?php if($this->item->params->get('itemPrintButton') && !JRequest::getInt('print')): ?>
			<!-- Print Button -->
			<li>
				<a class="itemPrintLink" rel="nofollow" href="<?php echo $this->item->printLink; ?>" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;">
					<span><?php echo JText::_('K2_PRINT'); ?></span>
				</a>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
			<!-- Email Button -->
			<li>
				<a class="itemEmailLink" rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;">
					<span><?php echo JText::_('K2_EMAIL'); ?></span>
				</a>
			</li>
			<?php endif; ?>						
		</ul>
		<div class="clr"></div>
  </div>
		<?php endif; ?>


Thanks!
The topic has been locked.

Re: print and email icons not showing 10 years, 4 months ago #15824

i got a blank page after.......not working
The topic has been locked.

Re: print and email icons not showing 10 years, 4 months ago #15845

Dear Walkys lemaine,

We're sorry, please go to your_site\templates\sj_vinda\html\com_k2\templates\sj-template\item.php and find:
<dl class="article-info">
				<?php if($this->item->params->get('itemAuthor')): ?>
				<!-- Item Author -->
				<dd>
					<span class="itemAuthor">
					<i class="icon-user"></i>
					<?php if(empty($this->item->created_by_alias)): ?>
					<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>
					</span>
				</dd>
				<?php endif; ?>
				<?php if($this->item->params->get('itemDateCreated')): ?>
				<!-- Date created -->
				<dd>
					<span class="itemDateCreated">
						<i class="icon-calendar-empty"></i>
						<?php echo JHTML::_('date', $this->item->created , JText::_('M d Y')); ?>
					</span>
				</dd>
				<?php endif; ?>
				
				
				
				<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
		
				<!-- Anchor link to item video below - if it exists -->
				<dd>
					<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('K2_MEDIA'); ?></a>
				</dd>
				<?php endif; ?>
				
				<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
				<?php endif; ?>
				
				
			</dl>

=>

<dl class="article-info">
				<?php if($this->item->params->get('itemAuthor')): ?>
				<!-- Item Author -->
				<dd>
					<span class="itemAuthor">
					<i class="icon-user"></i>
					<?php if(empty($this->item->created_by_alias)): ?>
					<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
					<?php else: ?>
					<?php echo $this->item->author->name; ?>
					<?php endif; ?>
					</span>
				</dd>
				<?php endif; ?>
				<?php if($this->item->params->get('itemDateCreated')): ?>
				<!-- Date created -->
				<dd>
					<span class="itemDateCreated">
						<i class="icon-calendar-empty"></i>
						<?php echo JHTML::_('date', $this->item->created , JText::_('M d Y')); ?>
					</span>
				</dd>
				<?php endif; ?>
				
				
				
				<?php if($this->item->params->get('itemVideoAnchor') && !empty($this->item->video)): ?>
		
				<!-- Anchor link to item video below - if it exists -->
				<dd>
					<a class="itemVideoLink k2Anchor" href="<?php echo $this->item->link; ?>#itemVideoAnchor"><?php echo JText::_('K2_MEDIA'); ?></a>
				</dd>
				<?php endif; ?>
				
				<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
				<?php endif; ?>
				
				
			</dl>
<?php if(
			$this->item->params->get('itemPrintButton') ||
			$this->item->params->get('itemEmailButton')
			
		): ?>
  	<div class="itemToolbar">
		<ul>
		

			<?php if($this->item->params->get('itemPrintButton') && !JRequest::getInt('print')): ?>
			<!-- Print Button -->
			<li>
				<a class="itemPrintLink" rel="nofollow" href="<?php echo $this->item->printLink; ?>" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;">
					<i class="icon-print"></i><span><?php echo JText::_('K2_PRINT'); ?></span>
				</a>
			</li>
			<?php endif; ?>

			<?php if($this->item->params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
			<!-- Email Button -->
			<li>
				<a class="itemEmailLink" rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;">
					<i class="icon-envelope-alt"></i><span><?php echo JText::_('K2_EMAIL'); ?></span>
				</a>
			</li>
			<?php endif; ?>						
		</ul>
		<div class="clr"></div>
  </div>
		<?php endif; ?>


Thanks!
The topic has been locked.
Time to create page: 0.24 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes