-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpm_page_shops.tpl.php
executable file
·72 lines (61 loc) · 2.63 KB
/
tpm_page_shops.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php include('includes/getMarketplaceUsers.inc.php');?>
<!-- The shortcode for this page is [tpm-marketplace-categories] -->
<!-- Let's add the search box -->
<?php include('tpm_widget_search_box.tpl.php');?>
<?php if (isset($marketplace_shops) AND !empty($marketplace_shops) AND isset($marketplace_item[0]->user_id)): ?>
<div class="tpm-page-wrapper">
<div class="tpm-subhead">Marketplace shops</div>
<div class="tpm-dotted"></div>
<div id="tpm-paging" class="container">
<div class="content clearfix">
<?php foreach($marketplace_shops as $marketplace_shop) : ?>
<div class="tpm-profile">
<div class="tpm-avatar">
<a href="<?php echo bloginfo('url'); ?>/<?php echo TPM_PATH_MARKETPLACE; ?>/<?php echo TPM_PATH_SELLER; ?>/?seller=<?php echo $marketplace_shop->user_id; ?>">
<img src="<?php echo $marketplace_shop->avatar; ?>"/></a>
</div>
<div class="tpm-info">
<div class="tpm-name">
<a href="<?php echo bloginfo('url'); ?>/<?php echo TPM_PATH_MARKETPLACE; ?>/<?php echo TPM_PATH_SELLER; ?>/?seller=<?php echo $marketplace_shop->user_id; ?>">
<?php echo $marketplace_shop->name; ?></a>
</div>
<div class="tpm-bio">
<?php echo $marketplace_shop->bio; ?>
</div>
<div class="tpm-meta">
<div class="tpm-social">
<?php if (isset($marketplace_shop->facebook)): ?>
<a class="tpm-facebook" target="_blank" href="<?php echo $marketplace_shop->facebook; ?>">facebook</a>
<?php endif; ?>
<?php if (isset($marketplace_shop->twitter)): ?>
<a class="tpm-twitter" target="_blank" href="<?php echo $marketplace_shop->twitter; ?>">twitter</a>
<?php endif; ?>
<?php if (isset($marketplace_shop->linkedin)): ?>
<a class="tpm-linkedin" target="_blank" href="<?php echo $marketplace_shop->linkedin; ?>">linkedin</a>
<?php endif; ?>
</div>
<div class="tpm-more">
<a href="<?php echo bloginfo('url'); ?>/<?php echo TPM_PATH_MARKETPLACE; ?>/<?php echo TPM_PATH_SELLER; ?>/?seller=
<?php echo $marketplace_shop->user_id; ?>">View this shop</a>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<?php endforeach;?>
</div>
<!-- Only show navigation if needed -->
<?php if (count($marketplace_shops)>12): ?>
<div class="page_navigation clearfix"></div>
<?php endif; ?>
</div>
</div>
<?php else:
$options = get_option('tinypay_advanced_settings');
if(isset ($options['api_error']) AND !empty($options['api_error'])){
echo '<div class="tmp_message">'.$options['api_error'].'</div>';
} else{
echo '';
}
?>
<?php endif; ?>