HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/shortpixel-image-optimiser/class/view/bulk/part-progressbar.php
<?php
namespace ShortPixel;

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}

$part = (isset($view->template_args['part'])) ? $view->template_args['part'] : ''; 

$do_active = true; // color all steps active until part is reached.


?>
<section class='spio-progressbar'>

  <div class="flex">
    <div class="select <?php echo (true == $do_active) ? ' active ' : '' ?>" >
        <span class='line'></span> 
        <span class="step">1</span>
        <span class="text"><?php esc_html_e('Select Images','shortpixel-image-optimiser'); ?></span>
    </div>

    <?php if ('selection' == $part) {
       $do_active = false; } ?> 

    <div class="summary <?php echo (true == $do_active) ? ' active ' : '' ?>"  >
        <span class='line'></span>
        <span class="step">2</span>
        <span class="text"><?php esc_html_e('Summary','shortpixel-image-optimiser'); ?></span>
    </div>

    <?php if ('summary' == $part) {
       $do_active = false; } ?> 

    <div class="process <?php echo (true == $do_active) ? ' active ' : '' ?>" >
        <span class='line'></span>
        <span class="step">3</span>
        <span class="text"><?php esc_html_e('Bulk Process','shortpixel-image-optimiser'); ?></span>
    </div>

    <?php if ('process' == $part) {
       $do_active = false; } ?> 

    <div class="result <?php echo (true == $do_active) ? ' active ' : '' ?>" >
        <span class='line'></span>
        <span class="step">4</span>
        <span class="text"><?php esc_html_e('Results','shortpixel-image-optimiser'); ?></span>
    </div>
  </div>

</section>