HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/expodubai/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>