PluginProbe
Gianism / 4.4.0
Gianism v4.4.0
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 4.4.0, at templates/home.php

109 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 printf(
58 $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>.' ),
59 $this->setting_url( 'setting' ),
60 gianism_utm_link( 'https://gianism.info/', [ 'utm-medium' => 'dashboard' ] )
61 ); ?>
62 </p>
63
64
65 <table class="gianism-home-table">
66 <caption><?php $this->e( 'Add-ons' ) ?></caption>
67 <thead>
68 <tr>
69 <th><?php $this->e( 'Name' ) ?></th>
70 <th><?php $this->e( 'Description' ) ?></th>
71 <th class="status"><?php $this->e( 'Status' ) ?></th>
72 <th class="type"><?php $this->e( 'Type' ) ?></th>
73 </tr>
74 </thead>
75 <tbody>
76 <?php foreach ( $this->service->get_plugins() as $plugin ) : /** @var \Gianism\Plugins\PluginBase $plugin */ ?>
77 <tr>
78 <td><?php echo esc_html( $plugin->plugin_name ) ?></td>
79 <td>
80 <?php echo esc_html( $plugin->plugin_description() ) ?>
81 </td>
82 <td class="status">
83 <?php if ( $plugin->plugin_enabled() ) : ?>
84 <i class="lsf lsf-check" style="color: green; font-size: 1.4em;"></i>
85 <?php else : ?>
86 <i class="lsf lsf-ban" style="color: lightgrey; font-size: 1.4em;"></i>
87 <?php endif; ?>
88 </td>
89 <td class="type">
90 <?php if ( $this->service->is_default_plugin( $plugin->plugin_name ) ) : ?>
91 <?php $this->e( 'Default' ) ?>
92 <?php else : ?>
93 <?php $this->e( 'Add on' ) ?>
94 <?php endif; ?>
95 </td>
96 </tr>
97 <?php endforeach; ?>
98 </tbody>
99 </table>
100
101 <p class="description">
102 <?php printf(
103 $this->_( 'Are you interested with add-ons? Find more at <a href="%s">gianism.info</a>!' ),
104 gianism_utm_link( 'https://gianism.info/', [ 'utm-medium' => 'dashboard' ] )
105 ); ?>
106 </p>
107
108 </div>
109