Ejemplo n.º 1
0
                echo $task->post_title;
                ?>
</a>
                            <?php 
            } else {
                echo $task->post_title;
            }
            ?>

                            </div>
                            <div class="mt-meta"><strong>
                                <?php 
            _e('Created by', 'tst');
            ?>
:</strong> <?php 
            echo $task->post_author != ACCOUNT_DELETED_ID ? tst_get_task_author_link($task) : __('Author deleted his account', 'tst');
            ?>
                            </div>
                            <div class="mt-meta"><strong><?php 
            _e('Deadline', 'tst');
            ?>
:</strong> <?php 
            echo tst_get_task_meta($task, 'deadline');
            ?>
</div>
                            <div class="mt-meta"><strong><?php 
            _e('Reward', 'tst');
            ?>
:</strong> <?php 
            echo tst_get_task_meta($task, 'reward');
            ?>
Ejemplo n.º 2
0
function tst_task_fixed_meta($task = null)
{
    global $post;
    if (!$task) {
        $task = $post;
    }
    $author = get_user_by('id', $task->post_author);
    $user_workplace = trim(sanitize_text_field(tst_get_member_field('user_workplace', $author)));
    ?>
    <span class="status-meta">
		<span class="created-by-label"><?php 
    _e('Created by', 'tst');
    ?>
:</span> <?php 
    echo tst_get_task_author_link($task);
    ?>
,
		<?php 
    if ($user_workplace) {
        echo $user_workplace;
        ?>
, <?php 
    }
    ?>
	</span>
	<?php 
    //echo frl_get_sep();
    ?>
	<span class="time-label"></span>
	<time><?php 
    echo get_the_date('', $task);
    ?>
 </time>
<?php 
}