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

How add a blok depend on the "switch_modes" on 'fulltext'
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How add a blok depend on the "switch_modes" on 'fulltext'

How add a blok depend on the "switch_modes" on 'fulltext' 10 years, 10 months ago #15869

How can I add an adSense or module to the content 'fulltext'. And it wants to depend on the "switch_modes"



/mytemplate/html/com_k2/templates/yt-theme/item.php

--------------------------
<?php if(!empty($this->item->fulltext)): ?>
<?php if($this->item->params->get('itemIntroText')): ?>
<!-- Item introtext -->
<div class="itemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>

<!---************** Begin Adsense/Blok *****************--->
if switch_modes == 1 ===>>> show Adsens for PC

if switch_modes == 2 ===>>> show Adsens for Mobile

<!---************** End Adsense/Blok *****************--->

<?php if($this->item->params->get('itemFullText')): ?>
<!-- Item fulltext -->
<div class="itemFullText">
<?php echo $this->item->fulltext; ?>
</div>
<?php endif; ?>
--------------------------------

See my Ticket TT-0000003427
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.19 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