Пример #1
0
										</div>
									</div>
								</a>
							</div>
							
							<?php 
    }
}
?>
						</div>
					</div>
					<div id="resolved" class="tab-pane" class="report-list-box tab-pane" role="tabpanel">
						
						<div class="report-list">
							<?php 
$laporan = get_laporan(get_current_user_id(), 'resolved');
if (!empty($laporan)) {
    foreach ($laporan as $key => $laporan) {
        ?>
							<div class="report-item">
								<div class="edit-box">
									<a href="<?php 
        echo add_query_arg(array('id' => $laporan->ID), home_url('edit'));
        ?>
" class="btn-overlay"><span class="icon-compose"></span></a>
								</div>
								<a href="<?php 
        echo get_permalink($laporan->ID);
        ?>
">
									<div class="row">
Пример #2
0
function get_laporan_count($status = 'any')
{
    $user_id = get_current_user_id();
    $laporan = get_laporan($user_id, $status);
    return count($laporan);
}