-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser-favourite.php
More file actions
79 lines (74 loc) · 3.46 KB
/
user-favourite.php
File metadata and controls
79 lines (74 loc) · 3.46 KB
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
73
74
75
76
77
78
79
<?php
/*
* Shopclass - Free and open source theme for Osclass with premium features
* Maintained and supported by Mindstellar Community
* https://github.com/mindstellar/shopclass
* Copyright (c) 2021. Mindstellar
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* GNU GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
use shopclass\includes\classes\tfcAdsLoop;
osc_current_web_theme_path( 'head.php' ); ?>
<body>
<?php osc_current_web_theme_path( 'header.php' ); ?>
<?php
$adminoptions = false;
?>
<div class="row">
<div class="col-md-4">
<?php tfc_path( 'user-sidebar.php' ); ?>
</div>
<div class="col-md-8">
<div class="tfc-item">
<div class="panel-heading">
<div class="panel-title"><?php _e( 'Your favourite' , 'shopclass' ); ?></div>
</div>
<div class="content user_account panel-body">
<?php if ( osc_count_items() == 0 ) { ?>
<h3><?php _e( 'Nothing interested you yet!' , 'shopclass' ); ?></h3>
<?php } else { ?>
<?php while ( osc_has_items() ) { ?>
<div class="item col-md-12">
<p class="delete-btn" data-toggle="tooltip" data-animation="true" data-placement="top"
data-original-title="<?php
_e( /** @lang text */ 'Delete from your favourite list' , 'shopclass' ) ?>"><a
class="delete"
onclick="javascript:return confirm('<?php _e( 'This action can not be undone. Are you sure you want to continue?' , 'shopclass' ); ?>')"
href="<?php echo tfc_favourite_url() . '&delete=' . osc_item_id(); ?>"><i
class="fa fa-times"></i></a>
</p>
<?php tfcAdsLoop::newInstance()->renderItem( tfcAdsLoop::newInstance()->getItemProperty( 'item' ) , 'list' ); ?>
</div>
<?php } ?>
<div class="col-md-6 col-md-offset-5">
<?php echo tfc_pagination_items( array (
'url' => osc_route_url( 'shopclass-favourite' , array ( 'iPage' => '{PAGE}' ) ) ,
'first_url' => tfc_favourite_url()
) ); ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php osc_current_web_theme_path( 'footer.php' ); ?>
</body>
</html>