1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 If condition for 'if plugin is installed'

Discussion in 'Styling and Customization Questions' started by Mike Creuzer, Nov 22, 2013.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    Hey guys,

    Was wondering if there was a way to, in my CSS templates, have a condition to check if a certain plugin is installed. And if so, how would I find out what this unique plugin identifier is.

    Thanks,
    Mike
     
  2. Steve F

    Steve F Well-Known Member

    There is

    <xen:if is="{$xenOptions.PLUGINOPTION}">
    CSS HERE
    </xen:if>
     
    Mike Creuzer likes this.
  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    Thanks Steve. So say for the resource manager, which option should I choose? There isn't an on/off option.
     
  4. xf_phantom

    xf_phantom Well-Known Member

    Code:
    <xen:if is="{$xenAddOns.XenResource}">
    ..
    </xen:if>
    
     
    Steve F likes this.
  5. Mike Creuzer

    Mike Creuzer Well-Known Member

    Thanks xf_phantom. And how would I determine what this unique identifier is on other plugins?

    ETA: NVM found it. Thanks all!
     
  6. Steve F

    Steve F Well-Known Member

    I'm not able to get this to work using this in EXTRA.css

    Code:
    <xen:if is="{$xenAddOns.XenResource}">
    .titleBar h1
    {
        color: red !important;
    }
    </xen:if>
     

Share This Page