HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MBoogaard/oosting-horseriding.com/CMS/CMSAdminControls/UI/ContextHelp.ascx.cs
using System;

using CMS.Base;
using CMS.Helpers;
using CMS.PortalEngine;
using CMS.UIControls;

public partial class CMSAdminControls_UI_ContextHelp : CMSUserControl
{
    /// <summary>
    /// Page load event handling.
    /// </summary>
    protected void Page_Load(object sender, EventArgs e)
    {
        InitializeVersion();

        ScriptHelper.RegisterModule(Page, "CMS/ContextHelp", new
        {
            wrapperId = ClientID,
            toolbarId = pnlToolbar.ClientID,
            helpTopicsMenuItemId = helpTopics.ClientID,
            searchMenuItemId = search.ClientID,
            searchUrlPattern = DocumentationHelper.GetDocumentationSearchUrlPattern(),
            descriptionMenuItemId = description.ClientID
        });
    }


    /// <summary>
    /// Initializes the version label.
    /// </summary>
    private void InitializeVersion()
    {
        string version = "v";

        if (SystemContext.DevelopmentMode)
        {
            version += CMSVersion.GetVersion(true, true, true, false, true);
        }
        else
        {
            if (ValidationHelper.GetInteger(CMSVersion.HotfixVersion, 0) > 0)
            {
                version += CMSVersion.GetVersion(true, true, true, true);
            }
            else
            {
                version += CMSVersion.MainVersion;
            }
        }
        lblVersion.Text = version;
    }
}