PluginProbe
Gianism / 3.0.1
Gianism v3.0.1
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 / setting.php

setting.php in Gianism 3.0.1, at templates/setting.php

90 lines 3.1 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 <form method="post">
9
10 <?php wp_nonce_field( 'gianism_option' ) ?>
11
12 <h3><i class="lsf lsf-gear"></i> <?php $this->e( 'General Setting' ) ?></h3>
13 <table class="form-table">
14 <tr>
15 <th><?php $this->e( 'Current registration setting' ) ?></th>
16 <td>
17 <p>
18 <?php if ( $this->option->user_can_register() ) : ?>
19 <i class="lsf lsf-check" style="color: green; font-size: 1.4em;"></i>
20 <strong><?php $this->e( 'Enabled' ) ?></strong>
21 <?php else : ?>
22 <i class="lsf lsf-ban" style="color: lightgrey; font-size: 1.4em;"></i>
23 <strong><?php $this->e( 'Disabled' ) ?></strong>
24 <?php endif; ?>
25 </p>
26 <p>
27 <label>
28 <input type="radio" name="force_register"
29 value="1"<?php checked( $this->option->force_register ) ?> />
30 <?php $this->e( 'Force register' ); ?>
31 </label><br/>
32 <label>
33 <input type="radio" name="force_register"
34 value="0"<?php checked( ! $this->option->force_register ) ?> />
35 <?php $this->e( 'Depends on WP setting' ); ?>
36 </label>
37 </p>
38 <p class="description"><?php printf( $this->_( 'Whether registration setting depends on <a href="%s">General setting</a>. If users are allowed to register, account will be created with information provided from Web service, or else only connected users can login via SNS account.' ), admin_url( 'options-general.php' ) ) ?></p>
39 </td>
40 </tr>
41 <tr>
42 <th><?php $this->e( 'Login screen' ); ?></th>
43 <td>
44 <label>
45 <input type="radio" name="show_button_on_login"
46 value="1"<?php checked( $this->option->show_button_on_login ) ?> />
47 <?php $this->e( 'Show all button on Login screen.' ); ?>
48 </label><br/>
49 <label>
50 <input type="radio" name="show_button_on_login"
51 value="0"<?php checked( ! $this->option->show_button_on_login ) ?> />
52 <?php $this->e( 'Do not show login button.' ); ?>
53 </label>
54 <p class="description">
55 <?php printf( $this->_( 'You can output login button manually. See detail at <a href="%2$s">%1$s</a>.' ), $this->_( 'Customize' ), $this->setting_url( 'customize' ) ); ?>
56 </p>
57 </td>
58 </tr>
59 <tr>
60 <th><label for="button_type"><?php $this->e( 'Button size' ); ?></label></th>
61 <td>
62 <select name="button_type" id="button_type">
63 <?php foreach ( $this->option->button_types() as $index => $value ) : ?>
64 <option value="<?php echo $index ?>"<?php selected( $index == $this->option->button_type ) ?>>
65 <?php echo esc_html( $value ); ?>
66 </option>
67 <?php endforeach; ?>
68 </select>
69 <p class="description">
70 <?php $this->e( 'This setting is valid only if login button\'s display setting is on.' ); ?>
71 </p>
72 </td>
73 </tr>
74 </table>
75 <?php submit_button(); ?>
76
77
78 <?php
79 foreach ( $this->service->all_services() as $service ) {
80 /** @var \Gianism\Service\AbstractService $instance */
81 $instance = $this->service->get( $service );
82 $path = $instance->get_admin_template( 'setting' );
83 if ( $path && file_exists( $path ) ) {
84 include $path;
85 }
86 }
87 ?>
88
89 </form>
90