Пример #1
0
>
					
						<?php 
        get_template_part('inc/templates/navigation', 'single');
        ?>
						
						<div class="panel">
						
							<ol class="ticket-list">
							
								<?php 
        /** 
         * A very clunky way of doing this. Should be converted
         * into a function.
         */
        $owners = quality_assigned_to();
        if (empty($owners)) {
            $owners = array();
        }
        if ($quality_options['assigned_perms'] > 0 || in_array($current_user->ID, $owners) || current_user_can('manage_options') || $current_user->ID == get_the_author_meta('ID') || count($owners) == 0) {
            ?>
							
								<li id="single-ticket" class="ticket">
								
									<p class="ticket-author">
										
										<?php 
            echo get_the_date();
            ?>
										
										<?php 
Пример #2
0
<?php 
}
?>

<li>
	<small><?php 
_e('Created by', 'quality');
?>
</small>
	<?php 
the_author_posts_link();
?>
</li>

<?php 
if (quality_assigned_to()) {
    ?>
<li>
	<small><?php 
    _e('Assigned to', 'quality');
    ?>
</small>
	<?php 
    quality_assigned_to_list();
    ?>
</li>
<?php 
}
?>

<?php