PluginProbe
Statify / trunk
Statify vtrunk
2.0.2 2.0.1 trunk 0.7 0.8 0.9 1.0 1.2.8 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 All 32 releases
statify / views / widget-back.php

widget-back.php in Statify trunk, at views/widget-back.php

56 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Statify: Widget Backend View
4 *
5 * This file contains the viewmodel for the plugin's widget backend.
6 *
7 * @package Statify
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12
13 // phpcs:disable Universal.WhiteSpace.PrecisionAlignment.Found
14 ?>
15
16 <?php if ( current_user_can( 'manage_options' ) ) : ?>
17 <p class="meta-links settings-link">
18 <a href="<?php echo esc_attr( add_query_arg( array( 'page' => 'statify-settings' ), admin_url( '/options-general.php' ) ) ); ?>"
19 title="<?php esc_attr_e( 'Open full settings page', 'statify' ); ?>">
20 <span class="dashicons dashicons-admin-generic"></span>
21 <?php esc_html_e( 'All Settings', 'statify' ); ?></a>
22 </p>
23
24 <br>
25 <?php endif; ?>
26
27 <h3><?php esc_html_e( 'Widget Settings', 'statify' ); ?></h3>
28 <div>
29 <label>
30 <input name="statify[days_show]" type="number" min="1"
31 value="<?php echo esc_attr( Statify::$options['days_show'] ); ?>">
32 <?php esc_html_e( 'days', 'statify' ); ?> -
33 <?php esc_html_e( 'Period of data display in Dashboard', 'statify' ); ?>
34 </label>
35 <label>
36 <input name="statify[limit]" type="number" min="1" max="100"
37 value="<?php echo esc_attr( Statify::$options['limit'] ); ?>">
38 <?php esc_html_e( 'Number of entries in top lists', 'statify' ); ?>
39 </label>
40 <label>
41 <input type="checkbox" name="statify[today]" value="1" <?php checked( Statify::$options['today'], 1 ); ?>>
42 <?php esc_html_e( 'Entries in top lists only for today', 'statify' ); ?>
43 </label>
44 <label>
45 <input type="checkbox" name="statify[show_totals]" value="1" <?php checked( Statify::$options['show_totals'], 1 ); ?>>
46 <?php esc_html_e( 'Show totals', 'statify' ); ?>
47 </label>
48 </div>
49 <?php wp_nonce_field( 'statify-dashboard' ); ?>
50
51 <p class="meta-links">
52 <a href="<?php echo esc_url( __( 'https://statify.pluginkollektiv.org/', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Documentation', 'statify' ); ?></a>
53 &bull; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Donate', 'statify' ); ?></a>
54 &bull; <a href="<?php echo esc_url( __( 'https://wordpress.org/support/plugin/statify', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Support', 'statify' ); ?></a>
55 </p>
56