1766812937a:1:{s:19:"nav/section-nav.htm";a:6:{s:8:"fileName";s:19:"nav/section-nav.htm";s:7:"content";s:2215:"description = "Plugin Section Navigation"
==
<?php
use System\Classes\PluginManager;

function onStart()
{
    $manager = PluginManager::instance();

    // Find installed plugins
    $this['pagesInstalled'] = $manager->hasPlugin('Winter.Pages');
    $this['blogInstalled'] = $manager->hasPlugin('Winter.Blog');
    $this['forumInstalled'] = $manager->hasPlugin('Winter.Forum');
    $this['userInstalled'] = $manager->hasPlugin('Winter.User');
    $this['snowmanInstalled'] = $manager->hasPlugin('Winter.Snowman');

    // Active section
    if (empty($this['active'])) {
        $this['active'] = 'home';
    }
}
==
<nav class="
    fixed top-0 left-0 w-full z-20
    {% if color == false or color == "blue" %} bg-blue-600 {% endif %}
    {% if color == "amber" %} bg-amber-700 {% endif %}
    {% if color == "purple" %} bg-purple-600 {% endif %}
    {% if color == "emerald" %} bg-emerald-700 {% endif %}
    {% if color == "green" %} bg-green-600 {% endif %}
">
    <div class="p-4 divide-x divide-white divide-opacity-40 overflow-x-auto whitespace-nowrap">
        {% partial 'nav/section' icon="home" text="Home" url="home"|page active=(active == 'home') %}
        {% partial 'nav/section' icon="home" text="CMS" url="cms/index"|page active=(active == 'cms') %}
        {% partial 'nav/section' icon="framework" text="Snowboard" url="snowboard/index"|page active=(active == 'snowboard') %}
        {% if pagesInstalled %}
            {% partial 'nav/section' icon="static-page" text="Pages" active=(active == 'pages') %}
        {% endif %}
        {% if blogInstalled %}
            {% partial 'nav/section' icon="blog" text="Blog" url="blog/index"|page active=(active == 'blog') %}
        {% endif %}
        {% if forumInstalled %}
            {% partial 'nav/section' icon="forum" text="Forum" active=(active == 'forum') %}
        {% endif %}
        {% if userInstalled %}
            {% partial 'nav/section' icon="user" text="User" url="user/index"|page active=(active == 'user') %}
        {% endif %}
        {% if snowmanInstalled %}
            {% partial 'nav/section' icon="snowman" text="Snowman" url="snowman/index"|page  active=(active == 'snowman') %}
        {% endif %}
    </div>
</nav>
";s:5:"mtime";i:1678627025;s:6:"markup";s:1597:"<nav class="
    fixed top-0 left-0 w-full z-20
    {% if color == false or color == "blue" %} bg-blue-600 {% endif %}
    {% if color == "amber" %} bg-amber-700 {% endif %}
    {% if color == "purple" %} bg-purple-600 {% endif %}
    {% if color == "emerald" %} bg-emerald-700 {% endif %}
    {% if color == "green" %} bg-green-600 {% endif %}
">
    <div class="p-4 divide-x divide-white divide-opacity-40 overflow-x-auto whitespace-nowrap">
        {% partial 'nav/section' icon="home" text="Home" url="home"|page active=(active == 'home') %}
        {% partial 'nav/section' icon="home" text="CMS" url="cms/index"|page active=(active == 'cms') %}
        {% partial 'nav/section' icon="framework" text="Snowboard" url="snowboard/index"|page active=(active == 'snowboard') %}
        {% if pagesInstalled %}
            {% partial 'nav/section' icon="static-page" text="Pages" active=(active == 'pages') %}
        {% endif %}
        {% if blogInstalled %}
            {% partial 'nav/section' icon="blog" text="Blog" url="blog/index"|page active=(active == 'blog') %}
        {% endif %}
        {% if forumInstalled %}
            {% partial 'nav/section' icon="forum" text="Forum" active=(active == 'forum') %}
        {% endif %}
        {% if userInstalled %}
            {% partial 'nav/section' icon="user" text="User" url="user/index"|page active=(active == 'user') %}
        {% endif %}
        {% if snowmanInstalled %}
            {% partial 'nav/section' icon="snowman" text="Snowman" url="snowman/index"|page  active=(active == 'snowman') %}
        {% endif %}
    </div>
</nav>";s:4:"code";s:562:"use System\Classes\PluginManager;

function onStart()
{
    $manager = PluginManager::instance();

    // Find installed plugins
    $this['pagesInstalled'] = $manager->hasPlugin('Winter.Pages');
    $this['blogInstalled'] = $manager->hasPlugin('Winter.Blog');
    $this['forumInstalled'] = $manager->hasPlugin('Winter.Forum');
    $this['userInstalled'] = $manager->hasPlugin('Winter.User');
    $this['snowmanInstalled'] = $manager->hasPlugin('Winter.Snowman');

    // Active section
    if (empty($this['active'])) {
        $this['active'] = 'home';
    }
}";s:11:"description";s:25:"Plugin Section Navigation";}}