*

Gile

  • ***
  • 42 posts
Info box
« on: May 24, 2016, 05:58:38 PM »
Hi,


Is there any way to integrate info box like on demo site http://zara.mb-themes.com/


Code: [Select]
<div id="piracy" class="noselect" title="Click to hide this box">This theme is ownership of MB Themes and can be bought only on http://www.mb-themes.com or via Osclass Market that is official reseller. When you buy this theme on other site, you will have no support for this theme, you will be supporting piracy and violate ACTA anti-piracy agreement!<>
Thanks

*

MB Themes

Re: Info box
« Reply #1 on: May 24, 2016, 09:22:19 PM »
@Darko
If you go to file:
oc-content/themes/zara/header.php

You can find there code:
Code: [Select]
<?php if (isset($_SERVER['HTTP_HOST']) && strpos($_SERVER['HTTP_HOST'],'mb-themes') !== false) { ?>
  <div id="piracy" class="noselect" title="Click to hide this box">This theme is ownership of MB Themes and can be bought only on http://www.mb-themes.com or via Osclass Market that is official reseller. When you buy this theme on other site, you will have no support for this theme, you will be supporting piracy and violate ACTA anti-piracy agreement!</div>
  <script>$(document).ready(function(){ $('#piracy').click(function(){ $(this).fadeOut(200); }); });</script>
<?php ?>

It means this info block will be shown only if page runs on mb-themes.com domain.
To show it on your domain, change code to:
Code: [Select]
  <div id="piracy" class="noselect" title="Click to hide this box">This theme is ownership of MB Themes and can be bought only on http://www.mb-themes.com or via Osclass Market that is official reseller. When you buy this theme on other site, you will have no support for this theme, you will be supporting piracy and violate ACTA anti-piracy agreement!</div>
  <script>$(document).ready(function(){ $('#piracy').click(function(){ $(this).fadeOut(200); }); });</script>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Gile

  • ***
  • 42 posts
Re: Info box
« Reply #2 on: May 24, 2016, 10:05:21 PM »
Thanks mate !
work's like charm  ;)