# buttonizer-multifunctional-button/1.2/freemius/templates/debug/plugins-themes-sync.php

Buttonizer – Floating Menus, Sticky Buttons, &amp; Popup Builder, version 1.2. 69 lines.

- Page: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/1.2/code/freemius/templates/debug/plugins-themes-sync.php
- Raw: https://pluginprobe.com/plugins/buttonizer-multifunctional-button/1.2/raw/freemius/templates/debug/plugins-themes-sync.php
- Modified: 2017-08-31T08:15:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/buttonizer-multifunctional-button/1.2/code/freemius/templates/debug/plugins-themes-sync.php#L10-L20`.

```php
<?php
	/**
	 * @package     Freemius
	 * @copyright   Copyright (c) 2015, Freemius, Inc.
	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
	 * @since       1.1.7.3
	 */

	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	$fs_options  = FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
	$all_plugins = $fs_options->get_option( 'all_plugins' );
	$all_themes  = $fs_options->get_option( 'all_themes' );
?>
<h1><?php fs_echo( 'plugins-themes-sync' ) ?></h1>
<table class="widefat">
	<thead>
	<tr>
		<th></th>
		<th><?php fs_echo( 'total' ) ?></th>
		<th><?php fs_echo( 'Last' ) ?></th>
	</tr>
	</thead>
	<tbody>
	<?php if ( is_object( $all_plugins ) ) : ?>
		<tr>
			<td><?php fs_echo( 'plugins' ) ?></td>
			<td><?php echo count( $all_plugins->plugins ) ?></td>
			<td><?php
					if ( isset( $all_plugins->timestamp ) && is_numeric( $all_plugins->timestamp ) ) {
						$diff       = abs( WP_FS__SCRIPT_START_TIME - $all_plugins->timestamp );
						$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
							$diff . ' ' . fs_text( 'sec' ) :
							human_time_diff( WP_FS__SCRIPT_START_TIME, $all_plugins->timestamp );

						if ( WP_FS__SCRIPT_START_TIME < $all_plugins->timestamp ) {
							printf( fs_text( 'in-x' ), $human_diff );
						} else {
							printf( fs_text( 'x-ago' ), $human_diff );
						}
					}
				?></td>
		</tr>
	<?php endif ?>
	<?php if ( is_object( $all_themes ) ) : ?>
		<tr>
			<td><?php fs_echo( 'themes' ) ?></td>
			<td><?php echo count( $all_themes->themes ) ?></td>
			<td><?php
					if ( isset( $all_themes->timestamp ) && is_numeric( $all_themes->timestamp ) ) {
						$diff       = abs( WP_FS__SCRIPT_START_TIME - $all_themes->timestamp );
						$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
							$diff . ' ' . fs_text( 'sec' ) :
							human_time_diff( WP_FS__SCRIPT_START_TIME, $all_themes->timestamp );

						if ( WP_FS__SCRIPT_START_TIME < $all_themes->timestamp ) {
							printf( fs_text( 'in-x' ), $human_diff );
						} else {
							printf( fs_text( 'x-ago' ), $human_diff );
						}
					}
				?></td>
		</tr>
	<?php endif ?>
	</tbody>
</table>

```
