Skip to main content

Sidebar

Description

This widget displays several sections and gamification widgets in the same space. You can find the player's gamification data, their boosters, a compact version of the reward shop, and information about missions and bundles.

Configuration

  • class <string|required>: gamification_widget
  • data-type <string|required>: sidebar
  • data-height <string|required>: add height with pixels (600px for example) to set the height for the widget in open form
Reminder

The data-height property is required. Without this, the widget's height will vary on each internal page, depending on the content.

Important notes
  • The color of the sidebar widget (including the header section, menu buttons, and booster actions) is determined by the main theme color. In some cases, a transition to a darker shade of the main color is applied, such as changing from the main color to a darkened version of the same color.
  • The sidebar widget has two states: open and closed. They are toggled by clicking on the avatar
  • The "Desktop" version appears in window widths above 600px. The "Mobile" version appears in window widths below that. The sidebar will appear open by default in Desktop and closed by default in Mobile.
  • The sidebar currently has a max width of 330px

** We are currently working on a future version which will allow the configuration of the max-width and mobile/desktop breakpoints **

Example:

With all props (all of them are required). And with the container

Show me the code!
<div class="gamification_widget" data-type="sidebar" data-height="600px"></div>

UI:

  1. Sidebar Open Desktop
Sidebar - Opened DesktopSidebar - Opened Desktop
  1. Sidebar Closed Desktop
Sidebar - Closed DesktopSidebar - Closed Desktop
  1. Sidebar Open Mobile
Sidebar - Opened MobileSidebar - Opened Mobile
  1. Sidebar Closed Mobile
Sidebar - Closed MobileSidebar - Closed Mobile

Optional Sections

On the sidebar widget there are three optional sections that only appear if you have them enabled.

You must specify if you want these features enabled when you first decide to use our widgets.

Missions

If you don't have the missions feature enabled, the sidebar hides all related content, including the slider with active missions and the missions page.

Sidebar - Without MissionsSidebar - Without Missions

Boosters

If you don't have the boosters feature enabled, the sidebar hides the actions to buy or activate additional boosters.

Sidebar - Without BoostersSidebar - Without Boosters

Tournaments

If you don't have the tournaments feature enabled, the sidebar hides all related content, including the slider with active tournaments and the tournaments menu tab.

Sidebar - Without TournamentsSidebar - Without Tournaments

Missions Section

Below are screenshots showing the content of the missions page.

  1. List of Bundles

    Sidebar - Missions BundlesSidebar - Missions Bundles
  2. Bundle Details - In Order

    Sidebar - Missions Bundles DetailsSidebar - Missions Bundles Details
  3. Bundle Details - In Any Order

    Sidebar - Missions Bundles Details Any OrderSidebar - Missions Bundles Details Any Order
  4. Missions History

    Sidebar - Missions HistorySidebar - Missions History

Tournaments Section

Below are screenshots showing the content of the tournaments menu tab.

  1. List of active tournaments

    Sidebar - List of TournamentsSidebar - List of Tournaments
  2. Tournament details

  • Scheduled tournament

    Sidebar - Scheduled Tournament DetailsSidebar - Scheduled Tournament Details
  • Active tournament

    Sidebar - Active Tournament DetailsSidebar - Active Tournament Details
  • Ended tournament

    Sidebar - Ended Tournament DetailsSidebar - Ended Tournament Details
  1. Tournament games modal
Sidebar - Tournament GamesSidebar - Tournament Games
  1. Tournaments history
Sidebar - Tournaments HistorySidebar - Tournaments History

Reward Shop Section

Below are screenshots showing the content of the reward shop page.

All products:

Sidebar - Reward Shop ProductsSidebar - Reward Shop Products

Category products:

Sidebar - Reward Shop CategorySidebar - Reward Shop Category

Product details modal:

Sidebar - Reward Shop Product DetailsSidebar - Reward Shop Product Details

Shipping Information:

Sidebar - Reward Shop Shipping InformationSidebar - Reward Shop Shipping Information