HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
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: /home/hanode/public_html/wp-content/plugins/ml-slider/admin/views/slides/tabs/crop.php
<?php 
if (!defined('ABSPATH')) {
    die('No direct access.');
}

$image_crop_enabled = isset($this->settings['smartCrop']) 
                    && in_array(
                        $this->settings['smartCrop'], 
                        array('true', 'false') // true and false means smart or standard crop is selected
                    ) ? true : false;
?>
<div class="row has-right-field">
    <label>
        <?php esc_html_e("Crop Position", "ml-slider"); ?>
        <span class="dashicons dashicons-info tipsy-tooltip-top" title="<?php esc_attr_e('Choose how images are cropped if they are too large for the slideshow. This works if "Smart Crop" is selected in the "Image Crop" settings.', 'ml-slider') ?>" style="line-height: 1.2em;"></span>
    </label>
    <select class="crop_position" name="attachment[<?php echo esc_attr($slide_id); ?>][crop_position]"<?php
        echo !$image_crop_enabled ? ' disabled="disabled"' : '' ?>>
        <option value="left-top" <?php echo selected($crop_position, 'left-top', false); ?>> <?php esc_html_e("Top Left", "ml-slider"); ?></option>
        <option value="center-top" <?php echo selected($crop_position, 'center-top', false); ?>> <?php esc_html_e("Top Center", "ml-slider"); ?></option>
        <option value="right-top" <?php echo selected($crop_position, 'right-top', false); ?>> <?php esc_html_e("Top Right", "ml-slider"); ?></option>
        <option value="left-center" <?php echo selected($crop_position, 'left-center', false); ?>> <?php esc_html_e("Center Left", "ml-slider"); ?></option>
        <option value="center-center" <?php echo selected($crop_position, 'center-center', false); ?>> <?php esc_html_e("Center Center", "ml-slider"); ?></option>
        <option value="right-center" <?php echo selected($crop_position, 'right-center', false); ?>> <?php esc_html_e("Center Right", "ml-slider"); ?></option>
        <option value="left-bottom" <?php echo selected($crop_position, 'left-bottom', false); ?>> <?php esc_html_e("Bottom Left", "ml-slider"); ?></option>
        <option value="center-bottom" <?php echo selected($crop_position, 'center-bottom', false); ?>> <?php esc_html_e("Bottom Center", "ml-slider"); ?></option>
        <option value="right-bottom" <?php echo selected($crop_position, 'right-bottom', false); ?>> <?php esc_html_e("Bottom Right", "ml-slider"); ?></option>
    </select>
    <button class="button recrop_image" data-slide-id="<?php echo esc_attr($slide_id); ?>"<?php
        echo !$image_crop_enabled ? ' disabled="disabled"' : '' ?>>
        <?php esc_html_e('Re-crop image', 'ml-slider') ?>
    </button>
</div>