<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>
<? $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()) : ''; ?>
<? $is_new = ($vote->chdate >= object_get_visit($vote->id, 'vote', false, false)) && ($vote->author_id != $GLOBALS['user']->id); ?> <article class="<?php echo ContentBoxHelper::classes($vote->id, $is_new); ?> " id="<?php echo $vote->id; ?> " data-visiturl="<?php echo URLHelper::getScriptLink('dispatch.php/vote/visit'); ?> "> <header> <h1> <a href="<?php echo ContentBoxHelper::switchhref($vote->id, array('contentbox_type' => 'vote')); ?> "> <?php echo htmlReady($vote->title); ?> </a> </h1> <nav> <a href="<?php echo $vote->author ? URLHelper::getLink('dispatch.php/profile', array('username' => $vote->author->username)) : ''; ?> "> <?php echo $vote->author ? htmlReady($vote->author->getFullName()) : ''; ?>