コード例 #1
0
ファイル: events.forms.php プロジェクト: joshjim27/jobsglobal
<?php

/**
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html)
* @author iJoomla.com <*****@*****.**>
* @url https://www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at https://www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die;
$startDate = new JDate($event->startdate);
$endDate = new JDate($event->enddate);
$isReadOnlyDate = CEventHelper::isToday($event) || CEventHelper::isPast($event);
$isReadOnlyDate = $isReadOnlyDate && $event->id > 0;
$repeatEndDate = false;
if ($event->id && $event->repeat) {
    $repeatEndDate = new JDate($event->repeatend);
}
?>

<div class="joms-page">
    <h3 class="joms-page__title"><?php 
echo JText::_($event->id ? 'COM_COMMUNITY_EVENTS_EDIT_TITLE' : 'COM_COMMUNITY_EVENTS_CREATE_TITLE');
?>
</h3>
    <form method="POST" action="<?php 
echo CRoute::getURI();
?>
" onsubmit="return joms_validate_form( this );">
コード例 #2
0
ファイル: events.list.item.php プロジェクト: Jougito/DynWeb
echo CEventHelper::formatStartDate($event, $config->get('eventdateformat'));
?>
</b></div>
				<i class="cIndex-Location"><?php 
echo $this->escape($event->location);
?>
</i>
				<div class="cIndex-Time"><?php 
echo JText::sprintf('COM_COMMUNITY_EVENTS_DURATION', CTimeHelper::getFormattedTime($event->startdate, $timeFormat), CTimeHelper::getFormattedTime($event->enddate, $timeFormat));
?>
</div>
			</div>
			<div class="cIndex-Actions">
				<div class="action">
					<?php 
if ($isExpired || CEventHelper::isPast($event)) {
    ?>
					<a href="<?php 
    echo $event->getGuestLink(COMMUNITY_EVENT_STATUS_ATTEND);
    ?>
"><?php 
    echo JText::sprintf(CStringHelper::isPlural($event->confirmedcount) ? 'COM_COMMUNITY_EVENTS_COUNT_MANY_PAST' : 'COM_COMMUNITY_EVENTS_COUNT_PAST', $event->confirmedcount);
    ?>
</a>
					<?php 
} else {
    ?>
					<a href="<?php 
    echo $event->getGuestLink(COMMUNITY_EVENT_STATUS_ATTEND);
    ?>
"><?php 
コード例 #3
0
">
				<div class="cIndex-Box clearfix">

					<a class="cIndex-Avatar cFloat-L" href="<?php 
        echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id);
        ?>
" class="cAvatar" />
						<img src="<?php 
        echo $event->getThumbAvatar();
        ?>
" alt="<?php 
        echo $this->escape($event->title);
        ?>
"/>
						<?php 
        if (CEventHelper::isPast($event)) {
            ?>
							<b class="cStatus-Past"><?php 
            echo JText::_('COM_COMMUNITY_EVENTS_PAST');
            ?>
</b>
						<?php 
        } else {
            if (CEventHelper::isToday($event)) {
                ?>
							<b class="cStatus-OnGoing"><?php 
                echo JText::_('COM_COMMUNITY_EVENTS_ONGOING');
                ?>
</b>
						<?php 
            }