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-theme.php

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

71 lines 2.8 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__( 'Site Information', 'wpcasa' ) ?></h3>
4
5 <?php
6 $theme = wp_get_theme();
7
8 if ( $theme->exists() ) {
9
10 $parent_theme = wp_get_theme( $theme->get( 'Template' ) );
11
12 ?>
13
14 <div class="wpsight-admin-ui-panel-theme-content wpsight-admin-ui-grid-col wpsight-admin-ui-grid-1-1">
15
16 <div class="wpsight-admin-ui-grid-col wpsight-admin-ui-grid-1-2">
17
18 <?php
19
20 $image = 'wp-content/themes/' . $theme->stylesheet. '/screenshot.png';
21 $image_url = site_url() . '/' . $image;
22 $image_path = ABSPATH . $image;
23
24 if( ! file_exists( $image_path ) )
25 $image_url = plugins_url( 'wpcasa' ) . '/assets/img/placeholder-theme.jpg';
26
27 echo '<img src="' . esc_url( $image_url ) . '" width="80%" />';
28 ?>
29
30 </div>
31
32 <div class="wpsight-admin-ui-grid-col wpsight-admin-ui-grid-1-2">
33
34 <h4><?php echo esc_html( $theme->get( 'Name' ) ); ?></h4><?php if( $parent_theme->get( 'Name' ) != $theme->get( 'Name' ) ) {echo '<small>' . esc_html( $parent_theme->get( 'Name' ) ) . '</small>';} ?>
35 <p><?php echo esc_html( $theme->get( 'Description' ) ); ?></p>
36 <table class="wpsight-admin-ui-table">
37 <tr>
38 <td><?php echo esc_html__( 'Author', 'wpcasa' ); ?>:</td>
39 <td><?php echo esc_html( $theme->get( 'Author' ) ); ?></td>
40 </tr>
41 <tr>
42 <td><?php echo esc_html__( 'Version', 'wpcasa' ); ?>:</td>
43 <td><?php echo esc_html( $theme->get( 'Version' ) ); ?></td>
44 </tr>
45 <tr>
46 <td><?php echo esc_html__( 'WPCasa Support', 'wpcasa' ); ?>:</td>
47 <td>
48
49 <?php
50 if ( $theme->get( 'Author' ) == 'WPSight' || current_theme_supports( 'wpcasa' ) ) {
51 echo '<span class="wpsight-admin-ui-indicator wpsight-admin-ui-indicator-success tips" data-tip="' . esc_attr__( 'This theme has defined support for WPCasa.', 'wpcasa' ) . '"></span>';
52 } else {
53 echo '<span class="wpsight-admin-ui-indicator tips" data-tip="' . esc_attr__( 'Unknown', 'wpcasa' ) . '"></span>';
54 }
55 ?>
56
57 </td>
58 </tr>
59 </table>
60 <p>
61 <a href="<?php echo esc_html( $theme->get( 'ThemeURI' ) ); ?>" target="_blank" class="button button-primary button-text-icon"><span class="dashicons dashicons-admin-links"></span> <?php echo esc_html__( 'View Info', 'wpcasa' ) ?></a>
62 <a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>" class="button button-primary button-text-icon"><span class="dashicons dashicons-admin-appearance"></span> <?php echo esc_html__( 'Customize', 'wpcasa' ) ?></a>
63 </p>
64
65
66 </div>
67
68 </div>
69
70 <?php } ?>
71