plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 KiB

View File

@@ -0,0 +1,97 @@
<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
?>
<form method="post">
<?php wp_nonce_field('wpmf-setup-wizard', 'wizard_nonce'); ?>
<div class="wizard-header large-content-width">
<div class="title font-size-35"><?php esc_html_e('Additional Features', 'wpmf'); ?></div>
<p class="description"><?php esc_html_e('We will guide you through the plugin main settings, You can also onfigure it later and skip the wizard', 'wpmf') ?></p>
</div>
<div class="wizard-content large-content-width">
<div class="ju-settings-option cboption" style="height: 200px; overflow: hidden; text-overflow: ellipsis; margin-right: 20px">
<div class="wpmf_row_full p-d-20">
<input type="hidden" name="wpmf_option_mediafolder" value="0">
<label data-wpmftippy="<?php esc_html_e('Load WP Media Folder files on frontend. Activate it if
you want to use a frontend page builder along with the media manager', 'wpmf'); ?>"
class="ju-setting-label text"><?php esc_html_e('WP Media Folder on frontend', 'wpmf') ?></label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" name="wpmf_option_mediafolder"
value="1">
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20 border-top-e4e8ed">
<?php esc_html_e('Load WP Media Folder files on frontend. Activate it if
you want to use a frontend page builder along with the media manager', 'wpmf'); ?>
</p>
</div>
</div>
<div class="ju-settings-option cboption" style="height: 200px; overflow: hidden; text-overflow: ellipsis;">
<div class="wpmf_row_full p-d-20">
<input type="hidden" name="hide_remote_video" value="0">
<label data-wpmftippy="<?php esc_html_e('Enable or disable remote video feature', 'wpmf'); ?>"
class="ju-setting-label text"><?php esc_html_e('Enable remote video feature', 'wpmf') ?></label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" name="hide_remote_video"
value="1" checked>
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20 border-top-e4e8ed">
<?php esc_html_e('Enable or disable remote video feature', 'wpmf'); ?>
</p>
</div>
</div>
<div class="ju-settings-option cboption" style="height: 200px; overflow: hidden; text-overflow: ellipsis; margin-right: 20px">
<div class="wpmf_row_full p-d-20">
<input type="hidden" name="wpmf_option_override" value="0">
<label data-wpmftippy="<?php esc_html_e('Possibility to replace an existing file by another one.', 'wpmf'); ?>"
class="ju-setting-label text"><?php esc_html_e('Override file', 'wpmf') ?></label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" id="cb_option_override"
name="wpmf_option_override" value="1" checked>
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20 border-top-e4e8ed">
<?php esc_html_e('Possibility to replace an existing file by another one.', 'wpmf'); ?>
</p>
</div>
</div>
<div class="ju-settings-option cboption" style="height: 200px; overflow: hidden; text-overflow: ellipsis;">
<div class="wpmf_row_full p-d-20">
<input type="hidden" name="wpmf_option_duplicate" value="0">
<label data-wpmftippy="<?php esc_html_e('Add a button to duplicate a media from the media manager', 'wpmf'); ?>"
class="ju-setting-label text"><?php esc_html_e('Duplicate file', 'wpmf') ?>
</label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" id="cb_option_duplicate"
name="wpmf_option_duplicate" value="1" checked>
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20 border-top-e4e8ed">
<?php esc_html_e('Add a button to duplicate a media from the media manager', 'wpmf'); ?>
</p>
</div>
</div>
</div>
<div class="wizard-footer">
<div class="wpmf_row_full">
<input type="submit" value="<?php esc_html_e('Continue', 'wpmf'); ?>" class="m-tb-20"
name="wpmf_save_step"/>
</div>
<a href="<?php echo esc_url(admin_url('options-general.php?page=option-folder'))?>" class="go-to-dash"><span><?php esc_html_e('I know what I\'m doing, skip wizard', 'wpmf'); ?></span></a>
</div>
</form>

View File

@@ -0,0 +1,26 @@
<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
$image_src = WPMF_PLUGIN_URL . 'class/install-wizard/content/checklist-icon.png';
$srcset2x = WPMF_PLUGIN_URL . 'class/install-wizard/content/done/done-illustration@2x.png';
$srcset3x = WPMF_PLUGIN_URL . 'class/install-wizard/content/done/done-illustration@3x.png';
?>
<div class="wizard-content-done">
<div class="wizard-done">
<div class="wizard-done-image">
<img src="<?php echo esc_url(WPMF_PLUGIN_URL . 'class/install-wizard/content/done/done-illustration.png'); ?>"
srcset="<?php echo esc_url($srcset2x); ?> 2x,<?php echo esc_url($srcset3x); ?> 3x" class="Illustration---Done">
</div>
<div class="wizard-done-container">
<div class="title"><?php esc_html_e('Done', 'wpmf') ?></div>
<p class="description">
<?php esc_html_e('You have now completed the plugin quick configuration', 'wpmf') ?>
</p>
</div>
<div class="wizard-done-footer configuration-footer">
<a href="<?php echo esc_url(admin_url('upload.php')) ?>" class="button">
<?php esc_html_e('GO TO MEDIA LIBRARY', 'wpmf'); ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,126 @@
<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
?>
<form method="post">
<?php wp_nonce_field('wpmf-setup-wizard', 'wizard_nonce'); ?>
<div class="wizard-header">
<div class="title font-size-35"><?php esc_html_e('Environment Check', 'wpmf'); ?></div>
<p class="description">
<?php esc_html_e('We have checked your server environment.
If you see some warning below it means that some plugin features may not work properly.
Reload the page to refresh the results', 'wpmf'); ?>
</p>
</div>
<div class="wizard-content">
<div class="version-container">
<div class="label_text"><?php esc_html_e('PHP Version', 'wpmf'); ?></div>
<div class="ju-settings-option wpmf_width_100">
<div class="wpmf_row_full">
<label class="ju-setting-label php_version">
<?php esc_html_e('PHP ', 'wpmf'); ?>
<?php echo esc_html(PHP_VERSION) ?>
<?php esc_html_e('version', 'wpmf'); ?>
</label>
<div class="right-checkbox">
<?php if (version_compare(PHP_VERSION, '5.6', '<')) : ?>
<img src="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information.png') ?>"
srcset="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@2x.png') ?> 2x, <?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@3x.png') ?> 3x"
class="img_warning">
<?php else : ?>
<input type="checkbox" checked disabled class="filled-in media_checkbox"/>
<?php endif; ?>
</div>
</div>
</div>
<?php if (version_compare(PHP_VERSION, '5.6', '<')) : ?>
<p class="description text_left">
<?php esc_html_e('Your PHP version is ', 'wpmf'); ?>
<?php echo esc_html(PHP_VERSION) ?>
<?php esc_html_e('. For performance and security reasons it better to run PHP 7.2+. Comparing to previous versions the execution time of PHP 7.X is more than twice as fast and has 30 percent lower memory consumption', 'wpmf'); ?>
</p>
<?php else : ?>
<p class="description">
<?php esc_html_e('Great ! Your PHP version is ', 'wpmf'); ?>
<?php echo esc_html(PHP_VERSION) ?>
</p>
<?php endif; ?>
</div>
<div class="other-container">
<div class="label_text"><?php esc_html_e('PHP Extensions', 'wpmf'); ?></div>
<div class="ju-settings-option wpmf_width_100">
<div class="wpmf_row_full">
<label class="ju-setting-label"><?php esc_html_e('Curl', 'wpmf'); ?></label>
<div class="right-checkbox">
<?php if (!in_array('curl', get_loaded_extensions())) : ?>
<img src="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information.png') ?>"
srcset="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@2x.png') ?> 2x, <?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@3x.png') ?> 3x"
class="img_warning">
<?php else : ?>
<input type="checkbox" id="php_curl" name="php_curl" checked
value="php_curl" disabled class="filled-in media_checkbox"/>
<?php endif; ?>
</div>
</div>
</div>
<?php if (!in_array('curl', get_loaded_extensions())) : ?>
<p class="description text_left">
<?php esc_html_e('PHP Curl extension has not been detected. You need to activate in order to load video in media library and for all the cloud connections (like Google Drive, Dropbox...)', 'wpmf'); ?>
</p>
<?php endif; ?>
<div class="ju-settings-option wpmf_width_100">
<div class="wpmf_row_full">
<label class="ju-setting-label"><?php esc_html_e('GD Library', 'wpmf'); ?></label>
<div class="right-checkbox">
<?php if (function_exists('gd_info')) : ?>
<input type="checkbox" id="gd_info" name="gd_info" checked
value="gd_info" disabled class="filled-in media_checkbox"/>
<?php else : ?>
<img src="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information.png') ?>"
srcset="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@2x.png') ?> 2x, <?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@3x.png') ?> 3x"
class="img_warning">
<?php endif; ?>
</div>
</div>
</div>
<?php if (!function_exists('gd_info')) : ?>
<p class="description text_left">
<?php esc_html_e('GD library is not detected. GD is an open source library related to image creation. The Watermark feature wont work.', 'wpmf'); ?>
</p>
<?php endif; ?>
<div class="label_text"><?php esc_html_e('PHP Settings', 'wpmf'); ?></div>
<div class="ju-settings-option wpmf_width_100">
<div class="wpmf_row_full">
<label class="ju-setting-label"><?php esc_html_e('Allow URL open', 'wpmf'); ?></label>
<div class="right-checkbox">
<?php if (!ini_get('allow_url_fopen')) : ?>
<img src="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information.png') ?>"
srcset="<?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@2x.png') ?> 2x, <?php echo esc_url(WPMF_PLUGIN_URL . '/assets/images/icon-information/icon-information@3x.png') ?> 3x"
class="img_warning">
<?php else : ?>
<input type="checkbox" id="php_allow_url_fopen" name="php_allow_url_fopen" checked
value="php_allow_url_fopen" disabled class="filled-in media_checkbox"/>
<?php endif; ?>
</div>
</div>
</div>
<?php if (!ini_get('allow_url_fopen')) : ?>
<p class="description text_left">
<?php esc_html_e('Allow URL fopen setting has not been detected. You need to activate in order to use remote video feature', 'wpmf'); ?>
</p>
<?php endif; ?>
</div>
</div>
<div class="wizard-footer">
<input type="submit" value="<?php esc_html_e('Continue', 'wpmf'); ?>" class="" name="wpmf_save_step"/>
</div>
</form>

View File

@@ -0,0 +1,62 @@
<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
$wizard = new WpmfInstallWizard();
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- View request, no action
$step = isset($_GET['step']) ? sanitize_key($_GET['step']) : '';
$next_link = $wizard->getNextLink($step);
?>
<form method="post" id="quick-config-form">
<?php wp_nonce_field('wpmf-setup-wizard', 'wizard_nonce'); ?>
<input type="hidden" name="wpmf_save_step" value="1"/>
<div class="wizard-header">
<div class="title font-size-35"><?php esc_html_e('Image Configuration', 'wpmf'); ?></div>
<p class="description"><?php esc_html_e('We will guide you through the plugin main settings. You can also configure it later and skip the wizard', 'wpmf') ?></p>
</div>
<div class="wizard-content">
<div class="ju-settings-option wpmf_width_100 wpmf-no-shadow">
<div class="wpmf_row_full">
<input type="hidden" name="wpmf_usegellery" value="0">
<label class="ju-setting-label text">
<?php esc_html_e('WP Media Folder Galleries', 'wpmf') ?>
</label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" name="wpmf_usegellery" value="1" checked>
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20">
<?php esc_html_e('Enhance the Wordpress default gallery system by adding themes and additional parameters in the gallery manager', 'wpmf'); ?>
</p>
</div>
</div>
<div class="ju-settings-option wpmf_width_100 wpmf-no-shadow">
<div class="wpmf_row_full">
<input type="hidden" name="wpmf_usegellery_lightbox" value="0">
<label class="ju-setting-label text">
<?php esc_html_e('Gallery Lightbox', 'wpmf') ?></label>
<div class="ju-switch-button">
<label class="switch">
<input type="checkbox" name="wpmf_usegellery_lightbox" value="1" checked>
<span class="slider round"></span>
</label>
</div>
<p class="description text_left p-d-20">
<?php esc_html_e('Add lightbox to images in Wordpress default galleries', 'wpmf'); ?>
</p>
</div>
</div>
</div>
<div class="wizard-footer">
<div class="wpmf_row_full">
<input type="submit" value="<?php esc_html_e('Continue', 'wpmf'); ?>" class="m-tb-20"
name="wpmf_save_step"/>
</div>
<a href="<?php echo esc_url(admin_url('options-general.php?page=option-folder'))?>" class="go-to-dash"><span><?php esc_html_e('I know what I\'m doing, skip wizard', 'wpmf'); ?></span></a>
</div>
</form>

View File

@@ -0,0 +1,30 @@
<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
$image_src = WPMF_PLUGIN_URL . 'class/install-wizard/content/welcome-illustration.png';
?>
<form method="post">
<div class="start-wizard">
<div class="start-wizard-image">
<img src="<?php echo esc_url($image_src); ?>"
srcset=""
class="Illustration---Done" />
</div>
<div class="start-wizard-container">
<div class="title">
<?php esc_html_e('Welcome to WP Media Folder Settings first configuration wizard!', 'wpmf') ?>
</div>
<p class="description">
<?php esc_html_e('This wizard will help you with some server compatibility check and with plugin main configuration. Follow some simple steps and get a powerful media library in no time', 'wpmf') ?>
</p>
</div>
<div class="start-wizard-footer configuration-footer">
<a href="<?php echo esc_url(add_query_arg('step', 'environment', remove_query_arg('activate_error')))?>" class="next-button">
<?php esc_html_e('Continue to environment check', 'wpmf'); ?>
</a>
<a href="<?php echo esc_url(admin_url('options-general.php?page=option-folder'))?>" class="backup-button">
<?php esc_html_e('I know what I\'m doing, skip wizard', 'wpmf'); ?></a>
</div>
</div>
</form>

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB