PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.10
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.10
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / views / part-settings-files-tree-row.php

part-settings-files-tree-row.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.10, at views/part-settings-files-tree-row.php

56 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
3
4 $disabled_attr = disabled( true, $data['checkbox_selected'], false );
5 $disabled_class = $data['checkbox_selected'] ? ' disabled' : '';
6 $folder_icon = '<svg width="20px" height="17px" viewBox="0 0 20 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-608.000000, -318.000000)" stroke-linecap="round" stroke-linejoin="round"><g transform="translate(609.000000, 319.000000)" stroke="#000000" stroke-width="2"><path d="M0,14.1428571 L18,14.1428571 L18,1.92857143 L7.71428571,1.92857143 L5.14285714,0 L0,0 L0,14.1428571 Z M18,5.14285714 L0,5.14285714 L18,5.14285714 Z"></path></g></g></svg>';
7 ?>
8
9 <li<?php echo $data['checkbox_selected'] ? ' class="imagify-folder-already-selected"' : ''; ?>>
10 <?php if ( empty( $data['no_button'] ) ) : ?>
11 <button type="button" class="imagify-folder" data-folder="<?php echo $data['relative_path']; ?>"<?php echo $disabled_attr; ?> title="<?php
12 if ( $data['checkbox_selected'] ) {
13 /* translators: %s is a folder path. */
14 printf( esc_attr__( 'The folder "%s" is already selected.', 'imagify' ), $data['relative_path'] );
15 } else {
16 /* translators: %s is a folder path. */
17 printf( esc_attr__( 'Open/Close the folder "%s".', 'imagify' ), $data['relative_path'] );
18 }
19 ?>">
20 <?php if ( ! $data['checkbox_selected'] ) { ?>
21 <span class="imagify-loader"><img alt="<?php esc_attr_e( 'Loading...', 'imagify' ); ?>" src="<?php echo esc_url( IMAGIFY_ASSETS_IMG_URL . 'spinner.gif' ); ?>" width="20" height="20"/></span>
22 <?php } ?>
23 <span class="imagify-folder-icon"><?php echo $folder_icon; ?></span>
24 </button>
25 <?php else : ?>
26 <span class="imagify-folder<?php echo $disabled_class; ?>">
27 <span class="imagify-folder-icon"><?php echo $folder_icon; ?></span>
28 </span>
29 <?php endif; ?>
30
31 <input type="checkbox" name="imagify-custom-files[]" value="<?php echo $data['checkbox_value']; ?>" id="imagify-custom-folder-<?php echo $data['checkbox_id']; ?>" class="screen-reader-text"<?php echo $disabled_attr; ?>/>
32
33 <label for="imagify-custom-folder-<?php echo $data['checkbox_id']; ?>" title="<?php
34 if ( $data['checkbox_selected'] ) {
35 /* translators: %s is a folder path. */
36 printf( esc_attr__( 'The folder "%s" is already selected.', 'imagify' ), $data['relative_path'] );
37 } else {
38 /* translators: %s is a folder path. */
39 printf( esc_attr__( 'Select the folder "%s".', 'imagify' ), $data['relative_path'] );
40 }
41 ?>">
42 <?php echo esc_html( $data['label'] ); ?>
43
44 <span class="imagify-add-ed-folder">
45 <?php
46 if ( $data['checkbox_selected'] ) {
47 _e( 'Folder Added', 'imagify' );
48 } else {
49 _ex( 'Add Folder', 'checkbox label', 'imagify' );
50 }
51 ?>
52 <span class="imagify-fake-checkbox"></span>
53 </span>
54 </label>
55 </li>
56