Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xf:comment>These macros are used in the message user info container</xf:comment>
- <xf:macro name="ah_gamerprofiles_icons" arg-user="!">
- <xf:css src="ah_gamerprofiles.less" />
- <xf:set var="$ahGPStatus" value="{{ property('ahGPStatus') }}" />
- <xf:if contentcheck="true">
- <div class="ah-gp-icons-container">
- <xf:contentcheck>
- <xf:comment>PlayStation</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_playstation} AND $ahGPStatus.ah_playstation">
- <a href="https://gamercards.exophase.com/psn/user/{$user.Profile.custom_fields.ah_playstation}" class="ah-gp-trigger ah-gp-icon" target="_blank">
- <xf:fa icon="fab fa-playstation" />
- <img src="//card.exophase.com/psn/{$user.Profile.custom_fields.ah_playstation}.png" class="ah-gp-profile" />
- </a>
- </xf:if>
- <xf:comment>Xbox</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_xbox} AND $ahGPStatus.ah_xbox">
- <a href="https://gamercards.exophase.com/xbox/user/{$user.Profile.custom_fields.ah_xbox}" class="ah-gp-trigger ah-gp-icon" target="_blank">
- <xf:fa icon="fab fa-xbox" />
- <img src="//card.exophase.com/xbox/{$user.Profile.custom_fields.ah_xbox}.png" class="ah-gp-profile" />
- </a>
- </xf:if>
- <xf:comment>Steam</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_steam} AND $ahGPStatus.ah_steam">
- <a href="https://gamercards.exophase.com/steam/user/{$user.Profile.custom_fields.ah_steam}" class="ah-gp-trigger ah-gp-icon" target="_blank">
- <xf:fa icon="fab fa-steam" />
- <img src="//card.exophase.com/steam/{$user.Profile.custom_fields.ah_steam}.png" class="ah-gp-profile" />
- </a>
- </xf:if>
- <xf:comment>Discord</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_discord} AND $ahGPStatus.ah_discord">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_discord}">
- <xf:fa icon="fab fa-discord" />
- </span>
- </xf:if>
- <xf:comment>Twitch</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_twitch} AND $ahGPStatus.ah_twitch">
- <a href="https://www.twitch.tv/{$user.Profile.custom_fields.ah_twitch}" class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_twitch}" target="_blank">
- <xf:fa icon="fab fa-twitch" />
- </a>
- </xf:if>
- <xf:comment>Mixer</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_mixer} AND $ahGPStatus.ah_mixer">
- <a href="https://www.mixer.com/{$user.Profile.custom_fields.ah_mixer}" class="ah-gp-icon ah-gp-icon--mixer" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_mixer}" target="_blank">
- <svg viewBox="0 0 24 20">
- <path d="M5.68,3.96L11.41,11.65C11.55,11.84 11.55,12.1 11.41,12.29L5.65,20L5.5,20.18C4.76,21 3.47,21.07 2.64,20.31C1.85,19.59 1.79,18.37 2.43,17.5L6.56,11.97L2.46,6.47C1.83,5.62 1.88,4.39 2.67,3.67L2.82,3.54C3.73,2.87 5,3.05 5.68,3.96M18.32,3.96C19,3.05 20.27,2.87 21.18,3.54L21.33,3.67C22.12,4.39 22.17,5.61 21.54,6.47L17.44,11.97L21.57,17.5C22.21,18.36 22.15,19.59 21.36,20.31C20.53,21.07 19.24,21 18.5,20.18L18.35,20L12.59,12.29C12.45,12.1 12.45,11.84 12.59,11.65L18.32,3.96Z" />
- </svg>
- </a>
- </xf:if>
- <xf:comment>YouTube</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_youtube} AND $ahGPStatus.ah_youtube">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_youtube}">
- <xf:fa icon="fab fa-youtube" />
- </span>
- </xf:if>
- <xf:comment>Facebook</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.facebook} AND $ahGPStatus.facebook">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.facebook}">
- <xf:fa icon="fab fa-facebook" />
- </span>
- </xf:if>
- <xf:comment>Twitter</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.twitter} AND $ahGPStatus.twitter">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.twitter}">
- <xf:fa icon="fab fa-twitter" />
- </span>
- </xf:if>
- <xf:comment>Skype</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.skype} AND $ahGPStatus.skype">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.skype}">
- <xf:fa icon="fab fa-skype" />
- </span>
- </xf:if>
- <xf:comment>Spotify</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_spotify} AND $ahGPStatus.ah_spotify">
- <a href="https://open.spotify.com/user/{$user.Profile.custom_fields.ah_spotify}" class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_spotify}" target="_blank">
- <xf:fa icon="fab fa-spotify" />
- </a>
- </xf:if>
- </xf:contentcheck>
- </div>
- </xf:if>
- </xf:macro>
- <xf:comment>These macros are used in the member tooltip</xf:comment>
- <xf:macro name="ah_gamerprofiles_tooltip_icons" arg-user="!">
- <xf:css src="ah_gamerprofiles.less" />
- <xf:set var="$ahGPStatus" value="{{ property('ahGPStatus') }}" />
- <xf:if contentcheck="true">
- <div class="ah-gp-icons-container">
- <xf:contentcheck>
- <xf:comment>PlayStation</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_playstation} AND $ahGPStatus.ah_playstation">
- <a href="https://gamercards.exophase.com/psn/user/{$user.Profile.custom_fields.ah_playstation}" class="ah-gp-trigger ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_playstation}" target="_blank">
- <xf:fa icon="fab fa-playstation" />
- </a>
- </xf:if>
- <xf:comment>Xbox</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_xbox} AND $ahGPStatus.ah_xbox">
- <a href="https://gamercards.exophase.com/xbox/user/{$user.Profile.custom_fields.ah_xbox}" class="ah-gp-trigger ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_xbox}" target="_blank">
- <xf:fa icon="fab fa-xbox" />
- </a>
- </xf:if>
- <xf:comment>Steam</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_steam} AND $ahGPStatus.ah_steam">
- <a href="https://gamercards.exophase.com/steam/user/{$user.Profile.custom_fields.ah_steam}" class="ah-gp-trigger ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_steam}" target="_blank">
- <xf:fa icon="fab fa-steam" />
- </a>
- </xf:if>
- <xf:comment>Discord</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_discord} AND $ahGPStatus.ah_discord">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_discord}">
- <xf:fa icon="fab fa-discord" />
- </span>
- </xf:if>
- <xf:comment>Twitch</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_twitch} AND $ahGPStatus.ah_twitch">
- <a href="https://www.twitch.tv/{$user.Profile.custom_fields.ah_twitch}" class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_twitch}" target="_blank">
- <xf:fa icon="fab fa-twitch" />
- </a>
- </xf:if>
- <xf:comment>Mixer</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_mixer} AND $ahGPStatus.ah_mixer">
- <a href="https://www.mixer.com/{$user.Profile.custom_fields.ah_mixer}" class="ah-gp-icon ah-gp-icon--mixer" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_mixer}" target="_blank">
- <svg viewBox="0 0 24 20">
- <path d="M5.68,3.96L11.41,11.65C11.55,11.84 11.55,12.1 11.41,12.29L5.65,20L5.5,20.18C4.76,21 3.47,21.07 2.64,20.31C1.85,19.59 1.79,18.37 2.43,17.5L6.56,11.97L2.46,6.47C1.83,5.62 1.88,4.39 2.67,3.67L2.82,3.54C3.73,2.87 5,3.05 5.68,3.96M18.32,3.96C19,3.05 20.27,2.87 21.18,3.54L21.33,3.67C22.12,4.39 22.17,5.61 21.54,6.47L17.44,11.97L21.57,17.5C22.21,18.36 22.15,19.59 21.36,20.31C20.53,21.07 19.24,21 18.5,20.18L18.35,20L12.59,12.29C12.45,12.1 12.45,11.84 12.59,11.65L18.32,3.96Z" />
- </svg>
- </a>
- </xf:if>
- <xf:comment>YouTube</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_youtube} AND $ahGPStatus.ah_youtube">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_youtube}">
- <xf:fa icon="fab fa-youtube" />
- </span>
- </xf:if>
- <xf:comment>Facebook</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.facebook} AND $ahGPStatus.facebook">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.facebook}">
- <xf:fa icon="fab fa-facebook" />
- </span>
- </xf:if>
- <xf:comment>Twitter</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.twitter} AND $ahGPStatus.twitter">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.twitter}">
- <xf:fa icon="fab fa-twitter" />
- </span>
- </xf:if>
- <xf:comment>Skype</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.skype} AND $ahGPStatus.skype">
- <span class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.skype}">
- <xf:fa icon="fab fa-skype" />
- </span>
- </xf:if>
- <xf:comment>Spotify</xf:comment>
- <xf:if is="{$user.Profile.custom_fields.ah_spotify} AND $ahGPStatus.ah_spotify">
- <a href="https://open.spotify.com/user/{$user.Profile.custom_fields.ah_spotify}" class="ah-gp-icon" data-xf-init="tooltip" title="{$user.Profile.custom_fields.ah_spotify}" target="_blank">
- <xf:fa icon="fab fa-spotify" />
- </a>
- </xf:if>
- </xf:contentcheck>
- </div>
- </xf:if>
- </xf:macro>
- <xf:macro name="ah_gamerprofiles_message" arg-user="!">
- <xf:if is="$xf.visitor.canViewIcons()">
- <xf:if is="{$user.Profile.custom_fields.ah_playstation} OR
- {$user.Profile.custom_fields.ah_xbox} OR
- {$user.Profile.custom_fields.ah_steam} OR
- {$user.Profile.custom_fields.ah_discord} OR
- {$user.Profile.custom_fields.ah_twitch} OR
- {$user.Profile.custom_fields.ah_mixer} OR
- {$user.Profile.custom_fields.ah_youtube} OR
- {$user.Profile.custom_fields.facebook} OR
- {$user.Profile.custom_fields.twitter} OR
- {$user.Profile.custom_fields.skype} OR
- {$user.Profile.custom_fields.twitter}">
- <div class="ah-gp-message">
- <xf:macro template="ah_gamerprofiles_macros" name="ah_gamerprofiles_icons" arg-user="{$user}" />
- </div>
- </xf:if>
- </xf:if>
- </xf:macro>
- <xf:macro name="ah_gamerprofiles_member_tooltip" arg-user="!">
- <xf:if is="$xf.visitor.canViewIcons()">
- <xf:if is="(property('ahGPTooltip'))">
- <xf:if is="{$user.Profile.custom_fields.ah_playstation} OR
- {$user.Profile.custom_fields.ah_xbox} OR
- {$user.Profile.custom_fields.ah_steam} OR
- {$user.Profile.custom_fields.ah_discord} OR
- {$user.Profile.custom_fields.ah_twitch} OR
- {$user.Profile.custom_fields.ah_mixer} OR
- {$user.Profile.custom_fields.ah_youtube} OR
- {$user.Profile.custom_fields.facebook} OR
- {$user.Profile.custom_fields.twitter} OR
- {$user.Profile.custom_fields.skype} OR
- {$user.Profile.custom_fields.twitter}">
- <div class="ah-gamerprofiles-memberTooltip">
- <xf:macro template="ah_gamerprofiles_macros" name="ah_gamerprofiles_tooltip_icons" arg-user="{$user}" />
- </div>
- </xf:if>
- </xf:if>
- </xf:if>
- </xf:macro>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement