/var/www/html_fr/wp-content/plugins/loco-translate/tpl/admin/config/version.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
 * Plugin version information
 */
$this->extend('../layout');

    
// Loco Translate version:
    
if( $params->has('update') ):?> 
    <div class="panel panel-warning">
        <h3 class="has-icon">
            <?php self::e__('Version %s','loco-translate'), $version )?> 
        </h3>
        <p>
            <?php esc_html_e('A newer version of Loco Translate is available for download','loco-translate')?>.
        </p>
        <p class="submit">
            <a class="button button-primary" href="<?php echo $update_href?>" target="_blank"><?php self::e(__('Upgrade to %s','loco-translate'), 'v'.$update )?></a>
            <a class="button button-link has-icon icon-ext" href="https://wordpress.org/plugins/loco-translate/installation/" target="_blank"><?php esc_html_e('Install manually','loco-translate')?></a>
        </p>
    </div><?php

    
elseif( $params->has('devel') ):?> 
    <div class="panel panel-debug">
        <h3 class="has-icon">
            <?php self::e__('Version %s','loco-translate'), $version )?> 
        </h3>
        <p>
            <?php esc_html_e("You're running a development snapshot of Loco Translate",'loco-translate')?> 
        </p>
    </div><?php

    
else:?> 
    <div class="panel panel-success">
        <h3 class="has-icon">
            <?php self::e__('Version %s','loco-translate'), $version)?> 
        </h3>
        <p>
            <?php esc_html_e("You're running the latest version of Loco Translate",'loco-translate')?> 
        </p>
    </div><?php
    
endif;
    
    
    
// PHP version (warnings only)
    
if( $params->has('phpupdate') ):?> 
    <div class="panel panel-warning">
        <h3 class="has-icon"><?php 
            
// translators: Where %s is the full version number of PHP
            
self::e__('PHP %s','loco-translate'), $phpversion )?> 
        </h3>
        <p><?php 
            
// translators: (1) Name of software, e.g. "WordPress" (2) Version number, e.g. "5.6"
            
self::e__('Your version of %1$s is out of date. We recommend you upgrade to at least v%2$s, but preferably to the latest stable version.','loco-translate'),'PHP',$phpupdate)?> 
        </p>
        <p class="submit">
            <a class="button" href="https://www.php.net/downloads.php#v7" target="_blank">PHP 7.4</a>
            <a class="button button-primary" href="https://www.php.net/downloads.php#v8" target="_blank">PHP 8.x</a>
        </p>
    </div><?php
    
endif;


    
// WordPress version (warnings only)
    
if( $params->has('wpupdate') ):?>
        <div class="panel panel-warning">
        <h3 class="has-icon"><?php
            
// translators: Where %s is the full version number of WordPress
            
self::e__('WordPress %s','loco-translate'), $wpversion )?> 
        </h3>
        <p><?php
            self
::e__('Your version of %1$s is out of date. We recommend you upgrade to at least v%2$s, but preferably to the latest stable version.','loco-translate'),'WordPress',$wpupdate)?> 
        </p>
        <p class="submit">
            <a class="button button-primary" href="<?php echo esc_url($wpupdate_href)?>"><?php esc_html_e('Update Now','loco-translate')?></a>
            <a class="button-link has-icon icon-ext" target="_blank" href="https://wordpress.org/download/releases/"><?php esc_html_e__('Install manually','loco-translate') )?></a>
        </p>
        </div><?php
    
endif;