oa-users-submitted.tpl.php in Open Atrium Core 7.2
1 theme call to oa-users-submitted.tpl.php
- oa_user_submitted_render in modules/oa_users/plugins/content_types/oa_users_submitted.inc
- Run-time rendering of the body of the block (content type)
See ctools_plugin_examples for more advanced info
File
modules/oa_users/templates/oa-users-submitted.tpl.php
View source
<div class="oa-users-submitted align-<?php
print $align;
?>">
<?php
if ($align == 'left') {
?>
<?php
if (!empty($picture)) {
?>
<span class="user-picture pull-left"><?php
print $picture;
?></span>
<?php
}
?>
<?php
}
?>
<?php
if ($show_title) {
?><h1 class="title <?php
print !$show_author ? 'no-picture' : '';
?>" id="page-title"><?php
print $title;
?></h1><?php
}
?>
<?php
if ($show_author) {
?>
<div class="user-info align-<?php
print $align;
?>">
<?php
if ($align == 'left') {
?>
<?php
print t('By ');
?>
<div class="user-badge">
<?php
if (!empty($userlink)) {
?>
<span><?php
print $userlink;
?></span>
<?php
}
?>
<?php
if (!empty($date)) {
?>
<?php
print t(' on ');
?>
<span class="oa-date"><?php
print $date;
?></span>
<?php
}
?>
</div>
<?php
}
else {
?>
<?php
print t('Posted ');
?>
<?php
if (!empty($date)) {
?>
<span class="oa-date"><?php
print $date;
?></span>
<?php
}
?>
<?php
if (!empty($userlink)) {
?>
<?php
print t(' by ');
?>
<div class="user-badge">
<span><?php
print $userlink;
?></span>
</div>
<?php
}
?>
<?php
if (!empty($picture)) {
?>
<span class="user-picture"><?php
print $picture;
?></span>
<?php
}
?>
<?php
}
?>
</div>
<?php
}
?>
</div>