Welcome, Guest
Username Password: Remember me

Plugin tags inside divs
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Plugin tags inside divs

Plugin tags inside divs 12 years, 7 months ago #8507

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

Re: Plugin tags inside divs 12 years, 7 months ago #8514

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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?>

Re: Plugin tags inside divs 12 years, 7 months ago #8521

I used your first suggestion "full page" and it worked perfectly!

Thank you.
  • Page:
  • 1
Time to create page: 0.12 seconds

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.