HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/hcv/wp-content/plugins/w3-total-cache/Extension_Swarmify_Page_View.php
<?php
namespace W3TC;

if ( !defined( 'W3TC' ) )
	die();

?>
<p>
    Jump to:
    <a href="admin.php?page=w3tc_general"><?php _e( 'Main Menu', 'w3-total-cache' ); ?></a> |
    <a href="admin.php?page=w3tc_extensions"><?php _e( 'Extensions', 'w3-total-cache' ); ?></a>
</p>
<p>
    Swarmify extension is currently <?php
if ( $config->is_extension_active_frontend( 'swarmify' ) )
	echo '<span class="w3tc-enabled">enabled</span>';
else
	echo '<span class="w3tc-disabled">disabled</span>';
?>.
<p>

<form action="admin.php?page=w3tc_extensions&amp;extension=swarmify&amp;action=view" method="post">
<div class="metabox-holder">
    <?php Util_Ui::postbox_header( __( 'Configuration', 'w3-total-cache' ),
'', 'configuration' ); ?>
    <table class="form-table">
		<?php
		Util_Ui::config_item( array(
				'key' => array( 'swarmify', 'api_key' ),
				'label' => __( 'API Key:', 'w3-total-cache' ),
				'control' => 'textbox',
				'control_after' => Util_Ui::button_link( 'Obtain one', $swarmify_signup_url ),
				'description' =>
				'Swarmify API Key required in order to start optimizing your videos experience'
			)
		);
		?>
    </table>
    <?php Util_Ui::button_config_save( 'extension_swarmify_configuration' ); ?>
    <?php Util_Ui::postbox_footer(); ?>



    <?php Util_Ui::postbox_header( __( 'Behavior Settings', 'w3-total-cache' ), '', 'behavior' ); ?>
    <table class="form-table">
        <?php
		Util_Ui::config_item( array(
				'key' => array( 'swarmify', 'handle.htmlvideo' ),
				'label' => __( '&lt;video&gt;:', 'w3-total-cache' ),
				'control' => 'checkbox',
				'checkbox_label' => "Optimize &lt;video&gt; HTML tags",
				'description' =>
				'Optimize videos delivered using &lt;video&gt; HTML tag.'
			)
		);
		?>
        <?php
		Util_Ui::config_item( array(
				'key' => array( 'swarmify', 'handle.jwplayer' ),
				'label' => __( 'JWPlayer:', 'w3-total-cache' ),
				'control' => 'checkbox',
				'checkbox_label' => "Optimize JWPlayer",
				'description' =>
				'Optimize videos delivered using JWPlayer script.'
			)
		);
		?>
        <?php
		Util_Ui::config_item( array(
				'key' => array( 'swarmify', 'reject.logged' ),
				'label' => __( 'Logged In:', 'w3-total-cache' ),
				'control' => 'checkbox',
				'checkbox_label' => "Don't optimize videos for logged in users",
				'description' =>
				'Only unauthenticated users will view optimized version of a given page.'
			)
		);
		?>
    </table>
    <?php Util_Ui::button_config_save( 'extension_swarmify_behaviour' ); ?>
    <?php Util_Ui::postbox_footer(); ?>
    </form>
</div>