PluginProbe
Gianism / trunk
Gianism vtrunk
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / templates / home.php

home.php in Gianism trunk, at templates/home.php

113 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) or die();
4
5 /** @var \Gianism\UI\SettingScreen $this */
6
7 ?>
8
9 <div class="gianism-home">
10
11 <blockquote class="gianism-home-quote">
12 <i class="lsf lsf-quote"></i>
13 <p>
14 <?php $this->e( 'What you have is mine, what I have is also mine!' ); ?>
15 </p>
16 <cite>- <?php $this->e( 'Takeshi Gōda' ); ?> -</cite>
17 </blockquote>
18
19 <p class="gianism-home-lead">
20 <?php $this->e( 'Gianism let your site <strong>more social</strong>. Your users can log in to your site via popular SNS.' ); ?>
21 <?php $this->e( 'Besides that, some powerful add-ons are available. Your user can be your evangelist. You can even automate your own WordPress. Interact with APIs and make something great!' ); ?>
22 </p>
23
24 <table class="gianism-home-table">
25 <caption><?php $this->e( 'Available Services' ); ?></caption>
26 <thead>
27 <tr>
28 <th><?php $this->e( 'Name' ); ?></th>
29 <th class="status"><?php $this->e( 'Status' ); ?></th>
30 <th class="type"><?php $this->e( 'Type' ); ?></th>
31 </tr>
32 </thead>
33 <tbody>
34 <?php foreach ( $this->service->service_list() as $service ) : ?>
35 <tr>
36 <td><?php echo esc_html( $service['label'] ); ?></td>
37 <td class="status">
38 <?php if ( $service['enabled'] ) : ?>
39 <i class="lsf lsf-check" style="color: green; font-size: 1.4em;"></i>
40 <?php else : ?>
41 <i class="lsf lsf-ban" style="color: lightgrey; font-size: 1.4em;"></i>
42 <?php endif; ?>
43 </td>
44 <td class="type">
45 <?php if ( $service['default'] ) : ?>
46 <?php $this->e( 'Default' ); ?>
47 <?php else : ?>
48 <?php $this->e( 'Add on' ); ?>
49 <?php endif; ?>
50 </td>
51 </tr>
52 <?php endforeach; ?>
53 </tbody>
54 </table>
55
56 <p class="description">
57 <?php
58 printf(
59 $this->_( 'You can enable all services via <a href="%1$s">Setting</a> and find more services at <a href="%2$s">gianism.info</a>.' ),
60 $this->setting_url( 'setting' ),
61 gianism_utm_link( 'https://gianism.info/', [ 'utm-medium' => 'dashboard' ] )
62 );
63 ?>
64 </p>
65
66
67 <table class="gianism-home-table">
68 <caption><?php $this->e( 'Add-ons' ); ?></caption>
69 <thead>
70 <tr>
71 <th><?php $this->e( 'Name' ); ?></th>
72 <th><?php $this->e( 'Description' ); ?></th>
73 <th class="status"><?php $this->e( 'Status' ); ?></th>
74 <th class="type"><?php $this->e( 'Type' ); ?></th>
75 </tr>
76 </thead>
77 <tbody>
78 <?php foreach ( $this->service->get_plugins() as $plugin ) : /** @var \Gianism\Plugins\PluginBase $plugin */ ?>
79 <tr>
80 <td><?php echo esc_html( $plugin->plugin_name ); ?></td>
81 <td>
82 <?php echo esc_html( $plugin->plugin_description() ); ?>
83 </td>
84 <td class="status">
85 <?php if ( $plugin->plugin_enabled() ) : ?>
86 <i class="lsf lsf-check" style="color: green; font-size: 1.4em;"></i>
87 <?php else : ?>
88 <i class="lsf lsf-ban" style="color: lightgrey; font-size: 1.4em;"></i>
89 <?php endif; ?>
90 </td>
91 <td class="type">
92 <?php if ( $this->service->is_default_plugin( $plugin->plugin_name ) ) : ?>
93 <?php $this->e( 'Default' ); ?>
94 <?php else : ?>
95 <?php $this->e( 'Add on' ); ?>
96 <?php endif; ?>
97 </td>
98 </tr>
99 <?php endforeach; ?>
100 </tbody>
101 </table>
102
103 <p class="description">
104 <?php
105 printf(
106 $this->_( 'Are you interested with add-ons? Find more at <a href="%s">gianism.info</a>!' ),
107 gianism_utm_link( 'https://gianism.info/', [ 'utm-medium' => 'dashboard' ] )
108 );
109 ?>
110 </p>
111
112 </div>
113