Esempio n. 1
0
}
$theme_tmpl = JPATH_BASE . $themes_path . $theme_calendar . '/' . $theme_calendar;
$theme_css = $themes_path . $theme_calendar . '/css/' . $theme_calendar;
$t_calendar = $theme_tmpl . '_calendar.php';
$css_module = $theme_css . '_module.css';
$css_mod_rtl = $theme_css . '_module-rtl.css';
// ToolTip 2 in developpement (Not used)
$tip_type = '1';
if ($tip_type == 1) {
    $t_day = $theme_tmpl . '_day.php';
} elseif ($tip_type == 2) {
    $t_day = $theme_tmpl . '_calendar_tip.php';
}
// Add the media specific CSS to the document
JLoader::register('iCagendaMediaCss', JPATH_ROOT . '/components/com_icagenda/helpers/media_css.class.php');
iCagendaMediaCss::addMediaCss($theme_calendar, 'module');
// Load Vector iCicons Font (navigation arrows)
JHtml::stylesheet('media/com_icagenda/icicons/style.css');
// Theme pack component css
$document->addStyleSheet(JURI::base(true) . $css_module);
// RTL css if site language is RTL
$lang = JFactory::getLanguage();
if ($lang->isRTL() && file_exists(JPATH_SITE . $css_mod_rtl)) {
    $document->addStyleSheet(JURI::base(true) . $css_mod_rtl);
}
if (version_compare(JVERSION, '3.0', 'ge')) {
    // Request Joomla to load jQuery in no conflict mode
    JHtml::_('bootstrap.framework');
    JHtml::_('jquery.framework');
} else {
    //Load JS
Esempio n. 2
0
">

		<?php 
    // load Theme and css
    if (file_exists(JPATH_SITE . '/components/com_icagenda/themes/packs/' . $this->template . '/' . $this->template . '_registration.php')) {
        $tpl_registration = JPATH_SITE . '/components/com_icagenda/themes/packs/' . $this->template . '/' . $this->template . '_registration.php';
        $css_component = '/components/com_icagenda/themes/packs/' . $this->template . '/css/' . $this->template . '_component.css';
        $css_com_rtl = '/components/com_icagenda/themes/packs/' . $this->template . '/css/' . $this->template . '_component-rtl.css';
    } else {
        $tpl_registration = JPATH_SITE . '/components/com_icagenda/themes/packs/default/default_registration.php';
        $css_component = '/components/com_icagenda/themes/packs/default/css/default_component.css';
        $css_com_rtl = '/components/com_icagenda/themes/packs/default/css/default_component-rtl.css';
    }
    // Add the media specific CSS to the document
    JLoader::register('iCagendaMediaCss', JPATH_ROOT . '/components/com_icagenda/helpers/media_css.class.php');
    iCagendaMediaCss::addMediaCss($this->template, 'component');
    echo "<!-- " . $this->template . " -->";
    // Loads Variables for Theme files
    require_once $icsetvar;
    // Loads Header
    require_once $tpl_registration;
    $user = JFactory::getUser();
    $u_id = $user->get('id');
    $u_mail = $user->get('email');
    // logged-in Users: Name/User Name Option
    $nameJoomlaUser = JComponentHelper::getParams('com_icagenda')->get('nameJoomlaUser', 1);
    if ($nameJoomlaUser == 1) {
        $u_name = $user->get('name');
    } else {
        $u_name = $user->get('username');
    }
if (!file_exists(JPATH_ROOT . '/components/com_icagenda/themes/packs/' . $template . '/' . $template . '_calendar.php')) {
    $template = 'default';
}
$t_calendar = JPATH_BASE . '/components/com_icagenda/themes/packs/' . $template . '/' . $template . '_calendar.php';
// ToolTip 2 in developpement (Not used)
$tip_type = '1';
if ($tip_type == 1) {
    $t_day = JPATH_BASE . '/components/com_icagenda/themes/packs/' . $template . '/' . $template . '_day.php';
} elseif ($tip_type == 2) {
    $t_day = JPATH_BASE . '/components/com_icagenda/themes/packs/' . $template . '/' . $template . '_calendar_tip.php';
}
// Load Theme Pack css
$document->addStyleSheet('components/com_icagenda/themes/packs/' . $template . '/css/' . $template . '_module.css');
// Add the media specific CSS to the document
JLoader::register('iCagendaMediaCss', JPATH_ROOT . '/components/com_icagenda/helpers/media_css.class.php');
iCagendaMediaCss::addMediaCss($template, 'module');
// Load Vector iC icons font (navigation arrows)
$document->addStyleSheet('media/com_icagenda/icicons/style.css');
if (version_compare(JVERSION, '3.0', 'ge')) {
    // Request Joomla to load jQuery in no conflict mode
    JHtml::_('behavior.formvalidation');
    JHtml::_('bootstrap.framework');
    JHtml::_('jquery.framework');
} else {
    //Load JS
    JHTML::_('behavior.mootools');
    $header = $document->getHeadData();
    $loadJquery = true;
    switch ($params->get('loadJquery', "auto")) {
        case "0":
            $loadJquery = false;