PluginProbe
wpForo Forum / 1.4.1
wpForo Forum v1.4.1
3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 All 137 releases
wpforo / wpf-themes / classic / profile-subscriptions.php

profile-subscriptions.php in wpForo Forum 1.4.1, at wpf-themes/classic/profile-subscriptions.php

36 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>&nbsp;</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