PluginProbe
WPCasa – Real Estate for WordPress / trunk
WPCasa – Real Estate for WordPress vtrunk
1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.1.1 trunk 1.2.0 1.2.1 1.2.10 1.2.10.1 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.2.9.1 1.2.9.2 1.3.0 All 31 releases
wpcasa / includes / admin / views / panel-addons.php

panel-addons.php in WPCasa – Real Estate for WordPress trunk, at includes/admin/views/panel-addons.php

95 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2
3 <h3><?php echo esc_html__( 'Addons', 'wpcasa' ) ?></h3>
4
5 <div class="wrap-addons-tabs">
6 <a href="#addons-all" class="active" id="addons-all"><?php echo esc_html__( 'All', 'wpcasa' ) ?></a>
7 <a href="#addons-active" id="addons-active"><?php echo esc_html__( 'Active', 'wpcasa' ) ?></a>
8 <a href="#addons-inactive" id="addons-inactive"><?php echo esc_html__( 'Inactive', 'wpcasa' ) ?></a>
9 </div>
10
11 <div class="wpsight-admin-ui-grid-col wpsight-admin-addons wpsight-admin-ui-grid-1-1">
12
13 <table class="wpsight-admin-ui-table addons-info-desktop wpsight-admin-ui-table-striped">
14
15 <thead>
16 <tr>
17 <th><?php echo esc_html__( 'Addon', 'wpcasa' ) ?></th>
18 <th><?php echo esc_html__( 'Version', 'wpcasa' ) ?></th>
19 <th><?php echo esc_html__( 'Author', 'wpcasa' ) ?></th>
20 <th><?php echo esc_html__( 'Status', 'wpcasa' ) ?></th>
21 <?php /*?><th><?php _e( 'Action', 'wpcasa' ) ?></th><?php */?>
22 </tr>
23 </thead>
24
25 <tbody>
26
27 <?php foreach( get_plugins() as $plugin => $p ) { ?>
28
29 <?php if ( strpos( $p['Name'], 'WPCasa' ) !== false ) { ?>
30 <tr class="<?php if( is_plugin_active( $plugin ) ) { echo esc_attr( 'addon-active' ); } else { echo esc_attr( 'addon-inactive' ); } ?>">
31 <td><?php echo esc_html( $p['Name'] ) ?></td>
32 <td><?php echo esc_html( $p['Version'] ) ?></td>
33 <td><?php echo esc_html( $p['Author'] ) ?></td>
34 <td class="<?php if( is_plugin_active( $plugin ) ) { echo esc_attr( 'status-active' ); } else { echo esc_attr( 'status-inactive' ); } ?>">
35 <?php if( is_plugin_active( $plugin ) ) { echo esc_html__( 'Active', 'wpcasa' ); } else { echo esc_html__( 'Inactive', 'wpcasa' ); } ?>
36 </td>
37 <?php /*?><td>
38 <a href="#" class="addons-table-btn"><?php _e( 'Button', 'wpcasa' ) ?></a>
39 </td><?php */?>
40 </tr>
41 <?php } ?>
42
43 <?php } ?>
44 </tbody>
45
46 </table>
47
48 <ul class="addons-info-mobile">
49 <?php foreach( get_plugins() as $plugin => $p ) {
50
51 if ( strpos( esc_html( $p['Name'] ), 'WPCasa' ) !== false ) { ?>
52 <li class="addons-list <?php if( is_plugin_active( $plugin ) ) { echo esc_attr__( 'addon-active', 'wpcasa' ); } else { echo esc_attr__( 'addon-inactive', 'wpcasa' ); } ?>">
53 <div class="addons-list-card">
54 <div class="content">
55 <div class="content-top">
56 <span class="content-name"><?php echo esc_html( $p['Name'] ) ?></span>
57 <button class="content-btn">
58 <svg width="13" height="9" viewBox="0 0 13 9" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon">
59 <line y1="-1" x2="9.41783" y2="-1" transform="matrix(-0.668965 0.743294 0.668965 0.743294 13 2)" stroke="white" stroke-width="2"></line> <line y1="-1" x2="9.41783" y2="-1" transform="matrix(0.668965 0.743294 -0.668965 0.743294 0.400391 2)" stroke="white" stroke-width="2"></line>
60 </svg>
61 </button>
62 </div>
63
64 <ul class="content-bottom">
65 <li class="content-item">
66 <span class="text"><?php echo esc_html__( 'Addon', 'wpcasa' ) ?></span>
67 <span class="text"><?php echo esc_html( $p['Name'] ) ?></span>
68 </li>
69
70 <li class="content-item">
71 <span class="text"><?php echo esc_html__( 'Version', 'wpcasa' ) ?></span>
72 <span class="text"><?php echo esc_html( $p['Version'] ) ?></span>
73 </li>
74
75 <li class="content-item">
76 <span class="text"><?php echo esc_html__( 'Author', 'wpcasa' ) ?></span>
77 <span class="text"><?php echo esc_html( $p['Author'] ) ?></span>
78 </li>
79
80 <li class="content-item">
81 <span class="text"><?php echo esc_html__( 'Status', 'wpcasa' ) ?></span>
82 <span class="text <?php if( is_plugin_active( $plugin ) ) { echo esc_attr( 'status-active' ); } else { echo esc_attr( 'status-inactive' ); } ?>">
83 <?php if( is_plugin_active( $plugin ) ) { echo esc_html__( 'Active', 'wpcasa' ); } else { echo esc_html__( 'Inactive', 'wpcasa' ); } ?>
84 </span>
85 </li>
86 </ul>
87 </div>
88 </div>
89 </li>
90 <?php }
91
92 } ?>
93 </ul>
94
95 </div>