コード例 #1
0
ファイル: _evaluation.php プロジェクト: ratbird/hope
<? $is_new = ($evaluation->chdate >= object_get_visit($evaluation->id, 'eval', false, false)) && ($evaluation->author_id != $GLOBALS['user']->id);
?>
<article class="<?php 
echo ContentBoxHelper::classes($evaluation->id, $is_new);
?>
" id="<?php 
echo $evaluation->id;
?>
" data-visiturl="<?php 
echo URLHelper::getScriptLink('dispatch.php/vote/visit');
?>
">
    <header>
        <h1>
            <a href="<?php 
echo ContentBoxHelper::switchhref($evaluation->id, array('contentbox_type' => 'eval'));
?>
">
                <?php 
echo htmlReady($evaluation->title);
?>
            </a>
        </h1>
        <nav>
            <a href="<?php 
echo $evaluation->author ? URLHelper::getLink('dispatch.php/profile', array('username' => $evaluation->author->username)) : '';
?>
">
                <?php 
echo $evaluation->author ? htmlReady($evaluation->author->getFullName()) : '';
?>
コード例 #2
0
ファイル: _irregularEvents.php プロジェクト: ratbird/hope
<? if (!empty($single_dates)): ?>
    <form class="default collapsable" action="<?php 
echo $controller->url_for('course/timesrooms/stack', $editParams);
?>
"
          <?php 
echo Request::isXhr() ? 'data-dialog="size=big"' : '';
?>
  method="post">

    <? foreach ($single_dates as $semester_id => $termine) : ?>
        <article id="singledate-<?php 
echo $semester_id;
?>
" class="<?php 
echo count($single_dates) === 1 ? 'open' : ContentBoxHelper::classes('singledate-' . $semester_id);
?>
">
            <header>
                <h1>
                    <input type="checkbox" class="date-proxy"
                           data-proxyfor="#singledate-<?php 
echo $semester_id;
?>
 .ids-irregular"
                           data-activates=".actionForAllIrregular">
                    <a href="<?php 
echo ContentBoxHelper::href('singledate-' . $semester_id);
?>
">
                        <?php 
コード例 #3
0
<article class="<?php 
echo ContentBoxHelper::classes($questionnaire->id, $is_new);
?>
 widget_questionnaire_<?php 
echo $questionnaire->getId();
?>
"  data-questionnaire_id="<?php 
echo htmlReady($questionnaire->getId());
?>
">
    <header>
        <h1>
            <a href="<?php 
echo ContentBoxHelper::switchhref($questionnaire->id, array('contentbox_type' => 'vote'));
?>
">
                <?php 
echo htmlReady($questionnaire->title);
?>
            </a>
        </h1>
        <nav>
            <a href="<?php 
echo $questionnaire->user_id ? URLHelper::getLink('dispatch.php/profile', array('username' => get_username($questionnaire->user_id))) : '';
?>
">
                <?php 
echo $questionnaire->user_id ? htmlReady(get_fullname($questionnaire->user_id)) : '';
?>
            </a>
            <span>
コード例 #4
0
ファイル: _termin.php プロジェクト: ratbird/hope
<article class="<?php 
echo ContentBoxHelper::classes($termin['id']);
?>
" id="<?php 
echo $termin['id'];
?>
">
    <header>
        <h1>
            <a href="<?php 
echo ContentBoxHelper::href($termin['id']);
?>
">
                <?php 
echo Icon::create('date', 'inactive')->asImg(['class' => 'text-bottom']);
?>
                <?php 
echo htmlReady($termin['title']);
?>
            </a>
        </h1>
        <nav>
            <span>
                <?php 
echo $termin['room'] ? _('Raum') . ': ' . htmlReady($termin['room']) : '';
?>
            </span>
            <? if($admin && $isProfile && $termin['type'] === 'CalendarEvent'): ?>
            <a href="<?php 
echo URLHelper::getLink('dispatch.php/calendar/single/edit/' . $termin['range_id'] . '/' . $termin['event_id'], array('source_page' => 'dispatch.php/profile'));
?>
コード例 #5
0
ファイル: display.php プロジェクト: ratbird/hope
            <a href="<?php 
echo URLHelper::getLink('rss.php', array('id' => $rss_id));
?>
">
                <?php 
echo Icon::create('rss', 'clickable', ['title' => _('RSS-Feed')])->asImg();
?>
            </a>
        <? endif; ?>
        </nav>
    </header>
    <? foreach ($news as $new): ?>
    <? $is_new = ($new['chdate'] >= object_get_visit($new->id, 'news', false, false))
            && ($new['user_id'] != $GLOBALS['user']->id); ?>
    <article class="<?php 
echo ContentBoxHelper::classes($new->id, $is_new);
?>
" id="<?php 
echo $new->id;
?>
" data-visiturl="<?php 
echo URLHelper::getScriptLink('dispatch.php/news/visit');
?>
">
        <header>
            <h1>
                <a href="<?php 
echo ContentBoxHelper::href($new->id, array('contentbox_type' => 'news'));
?>
">
                    <?php 
コード例 #6
0
ファイル: _regularEvents.php プロジェクト: ratbird/hope
echo $controller->url_for('course/timesrooms/stack/' . $metadate_id, $editParams);
?>
"
              method="post" <?php 
echo Request::isXhr() ? 'data-dialog="size=big"' : '';
?>
>
            <?php 
echo CSRFProtection::tokenTag();
?>

            <article id="<?php 
echo $metadate_id;
?>
" class="<?php 
echo ContentBoxHelper::classes($metadate_id);
?>
">
                <header class="<?php 
echo $course->getCycleColorClass($metadate_id);
?>
">
                    <h1>
                    <? if ($info = $course->getBookedRoomsTooltip($metadate_id)) : ?>
                        <?php 
echo tooltipIcon($info);
?>
                    <? elseif ($course->getCycleColorClass($metadate_id) === 'red'): ?>
                        <?php 
echo tooltipIcon(_('Keine Raumbuchungen vorhanden'));
?>