public function yearShort($i)
 {
     $iCModeliChelper = new iCModeliChelper();
     return date('y', $iCModeliChelper->mkt($i));
 }
예제 #2
0
파일: icsetvar.php 프로젝트: esorone/efcpw
    $get_date = JRequest::getVar('date', '');
}
if ($get_date) {
    $ex = explode('-', $get_date);
    if (count($ex) == 5) {
        $dateday = $ex['0'] . '-' . $ex['1'] . '-' . $ex['2'] . ' ' . $ex['3'] . ':' . $ex['4'];
    } else {
        $dateday = '';
    }
}
$timeformat = $params->get('timeformat');
$timedisplay = '';
$timedisplay = $item->displaytime;
$lang_time = '';
if ($get_date) {
    $EVENT_THIS_DATE = iCModeliChelper::formatDate($dateday);
    if ($timedisplay == 1) {
        if ($timeformat == 1) {
            $lang_time = strftime('%H:%M', strtotime($dateday));
        } else {
            $lang_time = strftime('%I:%M %p', strtotime($dateday));
        }
        $EVENT_THIS_DATE .= ' <small>' . $lang_time;
        $weekdays_array = explode(',', $item->weekdays);
        $weekdays = count($weekdays_array);
        if (!empty($weekdays) && $item->periodTest && $lang_time != $item->endTime) {
            $EVENT_THIS_DATE .= ' - ' . $item->endTime;
        }
        $EVENT_THIS_DATE .= '</small>';
    }
    $dates_array = unserialize($item->dates);
예제 #3
0
파일: default.php 프로젝트: esorone/efcpw
    } else {
        $stamp->items = $this->data->items;
        require $tpl_list;
    }
    // List Bottom
    echo '<div>';
    if (file_exists($tpl_events)) {
        // AddThis buttons
        if ($this->atlist && isset($item->share)) {
            echo '<div class="share">' . $item->share . '</div><div style="clear:both"></div>';
        }
    }
    // List Bottom - Navigation & pagination
    if ($this->navposition == '1' || $this->navposition == '2') {
        //			echo iCModeliChelper::pagination($count_all, $getpage, $this->arrowtext, $number_per_page, $this->pagination);
        echo iCModeliChelper::pagination($count_all, $this->arrowtext, $number_per_page, $this->pagination);
    }
    echo '</div>';
    echo '<div style="clear:both">&nbsp;</div>';
}
$this->dispatcher->trigger('onListAfterDisplay', array('com_icagenda.list', &$this->data->items, &$this->params));
?>
	</form>
</div>

<?php 
// Theme pack component css
$document->addStyleSheet(JURI::base(true) . $css_component);
// RTL css if site language is RTL
$lang = JFactory::getLanguage();
if ($lang->isRTL() && file_exists(JPATH_SITE . $css_com_rtl)) {
 *	iCagenda Set Var for Theme Packs
 *------------------------------------------------------------------------------
 * @package     com_icagenda
 * @copyright   Copyright (c)2012-2014 Cyril Rezé, Jooml!C - All rights reserved
 *
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 * @author      Cyril Rezé (Lyr!C)
 * @link        http://www.joomlic.com
 *
 * @version     3.3.6 2014-05-14
 * @since       3.2.8
 *------------------------------------------------------------------------------
*/
// No direct access to this file
defined('_JEXEC') or die;
$iCModeliChelper = new iCModeliChelper();
$BACK_ARROW = $item->BackArrow;
$TEXT_FOR_NEXTDATE = $item->dateText;
$EVENT_SHARING = $item->share_event;
$EVENT_REGISTRATION = $item->reg;
$EVENT_TITLEBAR = $item->titlebar;
$EVENT_NEXT = $item->next;
$EVENT_NEXTDATE = $item->nextDate;
//	$EVENT_DAY				= $item->day;
//	$EVENT_MONTHSHORT		= $item->monthShort;
// Get var 'date_value' set to session in event details view
$session = JFactory::getSession();
$get_date = $session->get('date_value', '');
if (!$get_date) {
    $get_date = JRequest::getVar('date');
}
}
$RGB = '$RGB';
$RGBa = $RGB[0];
$RGBb = $RGB[1];
$RGBc = $RGB[2];
$item_color = '';
if (isset($item->cat_color)) {
    $item_color = $item->cat_color;
}
$js_list = "media/com_icagenda/js/jsevt.js";
$RGB = explode(",", convertColor($item_color));
$a = array($RGBa, $RGBa, $RGBa);
$somme = array_sum($a);
//
// End old function
$iCModeliChelper = new iCModeliChelper();
$icsetvar = 'components/com_icagenda/add/elements/icsetvar.php';
$navposition = $this->navposition;
$datesDisplay_menu = $this->datesDisplay;
$datesDisplay_global = $this->datesDisplay_global;
if ($datesDisplay_menu) {
    $datesDisplay = $datesDisplay_menu;
} else {
    $datesDisplay = $datesDisplay_global;
}
$orderby = $this->orderby;
$dis_catDesc = $this->display_catDesc;
$catDesc_opts = $this->catDesc_opts;
$CatDesc_global = $this->CatDesc_global;
$CatDesc_global_opts = $this->CatDesc_global_opts;
$pagination = $this->pagination;