Esempio n. 1
0
                </a>
                <div class="rhs-card-topic__info"
                <span class="rhs-hidden-mobile"><?php 
    echo elgg_echo('rijkshuisstijl:cafe:askedby');
    ?>
:</span>
                <a href="<?php 
    echo $poster->getURL();
    ?>
" title="Ga naar profielpagina">
                    <?php 
    echo $poster->name;
    ?>
                </a>
                <?php 
    echo rijkshuisstijl_view_friendly_time($entity->time_created);
    ?>
            </div>
            <div class="rhs-card-topic__description">
                <?php 
    echo elgg_get_excerpt($entity->description);
    ?>
            </div>
        </div>
        <div class="rhs-card-topic__aside">
            <?php 
    if (elgg_is_active_plugin('entity_view_counter')) {
        ?>
                <div class="rhs-card-topic__views">
                    <span><?php 
        echo entity_view_counter_count_views($entity);
Esempio n. 2
0
      </h3>
      <div class="rhs-bulletin-block__content">
          <?php 
foreach ($blogs as $blog) {
    ?>
            <a href="<?php 
    echo $blog->getURL();
    ?>
" title="<?php 
    echo $blog->title;
    ?>
" class="rhs-bulletin-block__item">
              <table class="rhs-bulletin-block__table">
                <tbody>
                    <td class="rhs-bulletin-block__date"><?php 
    echo rijkshuisstijl_view_friendly_time($blog->time_created, true);
    ?>
</td>
                    <td class="rhs-bulletin-block__text"><?php 
    echo $blog->title;
    ?>
</td>
                  </tr>
                </tbody>
              </table>
            </a>
          <?php 
}
?>
        </div>
    </div>
Esempio n. 3
0
    $countAnswers = $question->countAnswers();
}
?>

<a href="<?php 
echo $question->getURL();
?>
" title="<?php 
echo $question->title;
?>
" class="rhs-card-list__item">
    <table class="rhs-card-list__table">
        <tbody>
            <tr>
                <td class="rhs-card-list__date"><?php 
echo rijkshuisstijl_view_friendly_time($question->time_created, true);
?>
</td>
                <td class="rhs-card-list__text" style="min-width: 20rem;">
                    <?php 
echo $question->title;
?>
                </td>
                <td class="rhs-card-list__number">
                    <span><?php 
echo $countAnswers;
?>
</span>
                </td>
            </tr>
        </tbody>
Esempio n. 4
0
    if ($latestAnswer) {
        ?>
                            <br /><span class="rhs-hidden-mobile"><?php 
        echo elgg_echo('rijkshuisstijl:cafe:latestanswer');
        ?>
:</span>
                            <a href="<?php 
        echo $latestAnswer->getOwnerEntity()->getURL();
        ?>
" title="Ga naar profielpagina">
                                <?php 
        echo $latestAnswer->getOwnerEntity()->name;
        ?>
                            </a>
                            <?php 
        echo rijkshuisstijl_view_friendly_time($latestAnswer->time_created);
        ?>
                        <?php 
    }
    ?>
                </div>
                <div class="rhs-card-topic__description">
                    <?php 
    echo elgg_get_excerpt($entity->description);
    ?>
                </div>
            </div>
            <div class="rhs-card-topic__aside">
                <div class="rhs-card-topic__views">
                    <span><?php 
    echo entity_view_counter_count_views($entity);
Esempio n. 5
0
if ($entity->write_access_id == ACCESS_PUBLIC) {
    // this works because this metadata is public
    $entity->write_access_id = ACCESS_LOGGED_IN;
}
if ($revision) {
    $annotation = $revision;
} else {
    $annotation = $entity->getAnnotations('page', 1, 0, 'desc');
    if ($annotation) {
        $annotation = $annotation[0];
    }
}
$entity_icon = elgg_view('pages/icon', array('annotation' => $annotation, 'size' => 'small'));
$editor = get_entity($annotation->owner_guid);
$editor_link = elgg_view('output/url', array('href' => "pages/owner/{$editor->username}", 'text' => $editor->name, 'is_trusted' => true));
$date = rijkshuisstijl_view_friendly_time($annotation->time_created);
$editor_text = elgg_echo('pages:strapline', array($date, $editor_link));
$categories = elgg_view('output/categories', $vars);
// show comments
$comments_link = '';
if ($entity->allow_comments != "no") {
    $comments_count = $entity->countComments();
    //only display if there are commments
    if ($comments_count != 0 && !$revision) {
        $text = elgg_echo("comments") . " ({$comments_count})";
        $comments_link = elgg_view('output/url', array('href' => $entity->getURL() . '#page-comments', 'text' => $text, 'is_trusted' => true));
    }
}
// group string
$group_string = "";
$container = $entity->getContainerEntity();