<?php

/**
 * This module shows an introduction tour for new users
 *
 * @package profiler.modules_core.like
 * @since 0.5
 */
class TourModule extends HWebModule
{

    public $isCoreModule = true;

    public static function onDashboardSidebarInit($event)
    {
        if (HSetting::Get('enable', 'tour') == 1 && Yii::app()->user->getModel()->getSetting("hideTourPanel", "tour")  != 1) {
            $event->sender->addWidget('application.modules_core.tour.widgets.TourDashboardWidget', array(), array('sortOrder' => 0));
        }
    }

  
}
