PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 3.6.0
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v3.6.0
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
← All changes | freemius/templates/debug/plugins-themes-sync.php +27 -19 1.43.6.0 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * @package Freemius
4 4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
5 + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 6 * @since 1.1.7.3
7 7 */
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -9,38 +9,45 @@
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 exit;
11 11 }
12 12
13 - $fs_options = FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
13 + $fs_options = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true );
14 14 $all_plugins = $fs_options->get_option( 'all_plugins' );
15 15 $all_themes = $fs_options->get_option( 'all_themes' );
16 +
17 + /* translators: %s: time period (e.g. In "2 hours") */
18 + $in_x_text = fs_text_inline( 'In %s', 'in-x' );
19 + /* translators: %s: time period (e.g. "2 hours" ago) */
20 + $x_ago_text = fs_text_inline( '%s ago', 'x-ago' );
21 + $sec_text = fs_text_x_inline( 'sec', 'seconds' );
16 22 ?>
17 -<h1><?php fs_echo( 'plugins-themes-sync' ) ?></h1>
23 +<h1><?php fs_esc_html_echo_inline( 'Plugins & Themes Sync', 'plugins-themes-sync' ) ?></h1>
18 24 <table class="widefat">
19 25 <thead>
20 26 <tr>
21 27 <th></th>
22 - <th><?php fs_echo( 'total' ) ?></th>
23 - <th><?php fs_echo( 'Last' ) ?></th>
28 + <th><?php fs_esc_html_echo_inline( 'Total', 'total' ) ?></th>
29 + <th><?php fs_esc_html_echo_inline( 'Last', 'last' ) ?></th>
24 30 </tr>
25 31 </thead>
26 32 <tbody>
27 33 <?php if ( is_object( $all_plugins ) ) : ?>
28 34 <tr>
29 - <td><?php fs_echo( 'plugins' ) ?></td>
35 + <td><?php fs_esc_html_echo_inline( 'Plugins', 'plugins' ) ?></td>
30 36 <td><?php echo count( $all_plugins->plugins ) ?></td>
31 37 <td><?php
32 38 if ( isset( $all_plugins->timestamp ) && is_numeric( $all_plugins->timestamp ) ) {
33 39 $diff = abs( WP_FS__SCRIPT_START_TIME - $all_plugins->timestamp );
34 40 $human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
35 - $diff . ' ' . fs_text( 'sec' ) :
41 + $diff . ' ' . $sec_text :
36 42 human_time_diff( WP_FS__SCRIPT_START_TIME, $all_plugins->timestamp );
37 43
38 - if ( WP_FS__SCRIPT_START_TIME < $all_plugins->timestamp ) {
39 - printf( fs_text( 'in-x' ), $human_diff );
40 - } else {
41 - printf( fs_text( 'x-ago' ), $human_diff );
42 - }
44 + echo esc_html( sprintf(
45 + ( ( WP_FS__SCRIPT_START_TIME < $all_plugins->timestamp ) ?
46 + $in_x_text :
47 + $x_ago_text ),
48 + $human_diff
49 + ) );
43 50 }
44 51 ?></td>
45 52 </tr>
46 53 <?php endif ?>
@@ -45,22 +52,23 @@
45 52 </tr>
46 53 <?php endif ?>
47 54 <?php if ( is_object( $all_themes ) ) : ?>
48 55 <tr>
49 - <td><?php fs_echo( 'themes' ) ?></td>
56 + <td><?php fs_esc_html_echo_inline( 'Themes', 'themes' ) ?></td>
50 57 <td><?php echo count( $all_themes->themes ) ?></td>
51 58 <td><?php
52 59 if ( isset( $all_themes->timestamp ) && is_numeric( $all_themes->timestamp ) ) {
53 60 $diff = abs( WP_FS__SCRIPT_START_TIME - $all_themes->timestamp );
54 61 $human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
55 - $diff . ' ' . fs_text( 'sec' ) :
62 + $diff . ' ' . $sec_text :
56 63 human_time_diff( WP_FS__SCRIPT_START_TIME, $all_themes->timestamp );
57 64
58 - if ( WP_FS__SCRIPT_START_TIME < $all_themes->timestamp ) {
59 - printf( fs_text( 'in-x' ), $human_diff );
60 - } else {
61 - printf( fs_text( 'x-ago' ), $human_diff );
62 - }
65 + echo esc_html( sprintf(
66 + ( ( WP_FS__SCRIPT_START_TIME < $all_themes->timestamp ) ?
67 + $in_x_text :
68 + $x_ago_text ),
69 + $human_diff
70 + ) );
63 71 }
64 72 ?></td>
65 73 </tr>
66 74 <?php endif ?>