| 1 |
<?php |
| 2 |
// Exit if accessed directly |
| 3 |
if( !defined( 'ABSPATH' ) ) exit; |
| 4 |
?> |
| 5 |
|
| 6 |
<div class="wpforo-sbn-content"> |
| 7 |
<?php if(empty($subscribes)) : ?><p class="wpf-p-error"> <?php wpforo_phrase('No subscriptions found for this member.') ?> </p><?php endif; ?> |
| 8 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
| 9 |
<?php $bg = FALSE; foreach( $subscribes as $subscribe ) : ?> |
| 10 |
<?php |
| 11 |
if($subscribe['type'] == 'forum'){ |
| 12 |
$item = $wpforo->forum->get_forum($subscribe['itemid']); |
| 13 |
$item_url = $wpforo->forum->get_forum_url($item['forumid']); |
| 14 |
}elseif($subscribe['type'] == 'topic'){ |
| 15 |
$item = $wpforo->topic->get_topic($subscribe['itemid']); |
| 16 |
$item_url = $wpforo->topic->get_topic_url($item['topicid']); |
| 17 |
} |
| 18 |
if(empty($item)) continue; |
| 19 |
?> |
| 20 |
<tr<?php echo ( $bg ? ' class="wpfbg-9"' : '' ) ?>> |
| 21 |
<td class="sbn-icon"><i class="fa fa-1x <?php echo ($subscribe['type'] == 'forum') ? 'fa-comments-o' : 'fa-file-text-o' ; ?>"></i></td> |
| 22 |
<td class="sbn-title"><a href="<?php echo esc_url($item_url) ?>"><?php echo esc_html($item['title']) ?></a></td> |
| 23 |
<?php if($userid == $wpforo->current_userid) : ?> |
| 24 |
<td class="sbn-action"><a href="<?php echo esc_url($wpforo->sbscrb->get_unsubscribe_link($subscribe['confirmkey'])) ?>"><?php wpforo_phrase('Unsubscribe'); ?></a></td> |
| 25 |
<?php else : ?> |
| 26 |
<td> </td> |
| 27 |
<?php endif ?> |
| 28 |
</tr> |
| 29 |
<?php $bg = ( $bg ? FALSE : TRUE ); endforeach ?> |
| 30 |
</table> |
| 31 |
<div class="sbn-foot"> |
| 32 |
<?php $wpforo->tpl->pagenavi( $paged, $items_count ); ?> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
|
| 36 |
|