/var/www/html_nl/wp-content/plugins/loco-translate/tpl/admin/file/head.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
 * PO/POT headers form
 */
$this->extend('../layout');
?>

<div class="panel">
    <h3>
        <?php esc_html_e('Edit file headers','loco-translate');?> 
    </h3>

    <form action="" method="post" enctype="application/x-www-form-urlencoded" id="loco-main"><?php
        
/* @var Loco_mvc_HiddenFields $hidden */
        
$hidden->_e();?> 
    
        <table class="form-table">
            <tbody><?php
            
/* @var LocoPoHeaders $head */
            
foreach( $head as $key => $value ): if( preg_match('/^[-A-Za-z]+$/',$key) ):?> 
            <tr>
                <th scope="row">
                    <label for="loco-header-<?php echo $key?>"><?php echo $key?></label>
                </th>
                <td>
                    <input type="text" name="headers[<?php echo $key?>]" value="<?php self::e($value?>" size="100" id="loco-header-<?php echo $key?>" />
                </td>
            </tr><?php
            
endif; endforeach;?> 
            </tbody>
        </table>
    
        <p class="submit">
            <button type="submit" class="button button-primary" disabled><?php esc_html_e('Save','loco-translate')?></button>
        </p>

    </form>

</div>