Plugin tags inside divs

pasqualelaviano
12 years, 8 months ago
PLEASE! URGENT!

how do I run the tags of the Mobile Content plugin directly inside a php page?

Example: mjcontent {type = "mobile"} <? Php echo $ product_name?> {/} Mjcontent

Thanks
dryabov
12 years, 8 months ago
There are two ways.

1. You can set "full page" mode in plugin settings and write your code as
{mobile}<?php echo $product_name?>{/mobile}


2. You can test for _MJ constant directly (without MobileContent plugin):
<?php defined('_MJ') and echo $product_name?>
pasqualelaviano
12 years, 8 months ago
I used your first suggestion "full page" and it worked perfectly!

Thank you.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.