Пример #1
0
');">
                        <svg viewBox="0 0 16 16" class="joms-icon">
                            <use xlink:href="<?php 
    echo CRoute::getURI();
    ?>
#joms-icon-warning"></use>
                        </svg>
                    </a>
                <?php 
}
?>

            </div>
            <p class="joms-focus__info--desktop">
                <?php 
echo CActivities::truncateComplex(strip_tags($group->summary), $summaryLength, true);
?>
            </p>
        </div>
        <div class="joms-focus__actions__wrapper">
            <div class="joms-focus__actions--desktop" style="position:relative">
                <?php 
if ($isMember) {
    ?>
                    <!-- invite friend button -->
                    <a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php 
    echo $group->id;
    ?>
')">
                        <?php 
    echo JText::_('COM_COMMUNITY_INVITE_FRIENDS');
Пример #2
0
 * @copyright (C) 2014 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
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>

<div class="joms-media">
    <h4 class="joms-text--title">
        <a href="<?php 
echo $stream->link;
?>
">
        <?php 
echo CActivities::truncateComplex($stream->title, 60, true);
?>
        </a>
    </h4>
    <p class="joms-text--desc"><?php 
echo CActivities::format($attachment->message);
?>
</p>
    <?php 
echo $stream->group->name;
?>
</div>
Пример #3
0
');">
                            <svg viewBox="0 0 16 16" class="joms-icon">
                                <use xlink:href="<?php 
    echo CRoute::getURI();
    ?>
#joms-icon-warning"></use>
                            </svg>
                        </a>
                        <?php 
}
?>

                    </div>
                    <p class="joms-focus__info--desktop">
                        <?php 
echo CActivities::truncateComplex($event->summary, $summaryLength, true);
?>
                    </p>
                </div>
                <div class="joms-focus__actions__wrapper">
                    <?php 
if ($my->id != 0) {
    ?>
                    <div class="joms-focus__actions--desktop">

                        <?php 
    if ($handler->isAllowed() && !$isPastEvent && CEventHelper::showAttendButton($event)) {
        ?>
                            <a href="javascript:" class="joms-focus__button--add"
                                onclick="joms.api.eventResponse('<?php 
        echo $event->id;
 * 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;
$string = 'COM_COMMUNITY_GROUPS_DISCUSSION_CREATOR_TIME_LINK';
if ($isTimeLapsed == 'lapse') {
    $string = 'COM_COMMUNITY_GROUPS_DISCUSSION_CREATOR_TIME_LINK_LAPSED';
}
?>
<div class="joms-page">
    <?php 
echo $submenu;
?>
    <h3 class="joms-page__title">
        <?php 
echo CActivities::truncateComplex($discussion->title, 60, true);
?>
    </h3>
    <?php 
if ($canCreate) {
    ?>
    <button class="joms-button--primary joms-button--small joms-button--full-small" onclick="window.location='<?php 
    echo CRoute::_('index.php?option=com_community&view=groups&groupid=' . $group->id . '&task=adddiscussion');
    ?>
';"><?php 
    echo JText::_('COM_COMMUNITY_CREATE_ANOTHER_DISCUSSION');
    ?>
</button>
    <?php 
}
?>
Пример #5
0
    function _getEventsHTML($createEvents, $rows, $user, $config, $totalEvents, $creatable)
    {
        $titleLength = $config->get('header_title_length', 30);
        $summaryLength = $config->get('header_summary_length', 80);
        ob_start();
        ?>

        <?php 
        if ($rows) {
            ?>
        <ul class="joms-list--event">
        <?php 
            foreach ($rows as $row) {
                $event = JTable::getInstance('Event', 'CTable');
                $event->load($row->id);
                $creator = CFactory::getUser($event->creator);
                // Get the formated date & time
                $format = $config->get('eventshowampm') ? JText::_('COM_COMMUNITY_DATE_FORMAT_LC2_12H') : JText::_('COM_COMMUNITY_DATE_FORMAT_LC2_24H');
                $startdatehtml = CTimeHelper::getFormattedTime($event->startdate, $format);
                $enddatehtml = CTimeHelper::getFormattedTime($event->enddate, $format);
                ?>

            <li class="joms-media--event" title="<?php 
                echo CActivities::truncateComplex($event->summary, $summaryLength, true);
                ?>
">
                <div class="joms-media__calendar">
                    <span class="month"><?php 
                echo CEventHelper::formatStartDate($event, JText::_('M'));
                ?>
</span>
                    <span class="date"><?php 
                echo CEventHelper::formatStartDate($event, JText::_('d'));
                ?>
</span>
                </div>
                <div class="joms-media__body">
                    <h4 class="reset-gap"><a href="<?php 
                echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id);
                ?>
"><?php 
                echo $event->title;
                ?>
</a></h4>
                    <div class="joms-gap--small"></div>
                    <?php 
                echo CActivities::truncateComplex($event->summary, $summaryLength, true);
                ?>
                    <span class="joms-block joms-text--light"><?php 
                echo $event->location;
                ?>
</span>
                    <div class="joms-gap--small"></div>
                    <a href="<?php 
                echo CRoute::_('index.php?option=com_community&view=events&task=viewguest&eventid=' . $event->id . '&type=' . COMMUNITY_EVENT_STATUS_ATTEND);
                ?>
"><?php 
                echo JText::sprintf(!CStringHelper::isSingular($event->confirmedcount) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $event->confirmedcount);
                ?>
</a>
                </div>
            </li>
            <?php 
            }
            ?>
        </ul>
        <?php 
        } else {
            ?>
            <div><?php 
            echo JText::_('PLG_MYEVENTS_NO_EVENTS_CREATED_BY_THE_USER_YET');
            ?>
</div>
        <?php 
        }
        ?>
        <small>
        <?php 
        if ($creatable) {
            ?>
        <a class="joms-button--link" href="<?php 
            echo CRoute::_('index.php?option=com_community&view=events&task=create');
            ?>
"><?php 
            echo JText::_('COM_COMMUNITY_EVENTS_CREATE');
            ?>
</a>
        <?php 
        }
        ?>
        <a class="joms-button--link" href="<?php 
        echo CRoute::_('index.php?option=com_community&view=events');
        ?>
"><?php 
        echo JText::_('COM_COMMUNITY_EVENTS_ALL_EVENTS') . ' (' . $totalEvents . ')';
        ?>
</a>
        </small>

        <?php 
        $content = ob_get_contents();
        ob_end_clean();
        return $content;
    }
Пример #6
0
');">
                        <svg viewBox="0 0 16 16" class="joms-icon">
                            <use xlink:href="<?php 
    echo CRoute::getURI();
    ?>
#joms-icon-warning"></use>
                        </svg>
                    </a>
                <?php 
}
?>

            </div>
            <p class="joms-focus__info--desktop">
                <?php 
echo CActivities::truncateComplex($this->escape(strip_tags($group->summary)), $summaryLength);
?>
            </p>
        </div>

        <div class="joms-focus__actions__wrapper">
            <div class="joms-focus__actions--desktop">
                <?php 
if ($isMember) {
    ?>
                    <!-- invite friend button -->
                    <a href="javascript:" class="joms-focus__button--add"
                       onclick="joms.api.groupInvite('<?php 
    echo $group->id;
    ?>
')">