|
Server IP : 10.131.40.8 / Your IP : 216.73.216.37 Web Server : Apache System : Linux webd008.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : ludmqhh ( 137773) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/ludmqhh/www/hotel-forum/wp-content/_plugins/loco-translate/tpl/admin/bundle/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Bundle overview
*/
$this->extend('../layout');
/* @var Loco_mvc_ViewParams[] $projects */
/* @var Loco_mvc_ViewParams[] $unknown */
if( $projects ):
foreach( $projects as $p ): ?>
<div class="loco-project" id="loco-<?php $p->e('id')?>"><?php
// display package name, and slug if it differs.
if( $p->name === $p->short ):?>
<h2><?php $p->e('name')?></h2><?php
else:?>
<h2><?php $p->e('name')?> <span>(<?php $p->e('short')?>)</span></h2><?php
endif;
echo $this->render('inc-po-links', [ 'nav' => $p->nav ] );
echo $this->render('inc-po-table', [ 'pairs' => $p->po, 'domain' => $p->domain, 'installed'=>$p->installed, 'warnings'=>$p->warnings ] );
?>
</div><?php
endforeach;
if( $unknown ):?>
<div class="loco-project">
<div class="panel panel-info">
<h2><?php esc_html_e('Additional files found','loco-translate')?></h2>
<p>
<?php
esc_html_e("This bundle isn't fully configured, so we don't know what the following files are for",'loco-translate')?>. <?php
// Translators: %s is a URL. Keep the <a> tag intact
echo wp_kses(
sprintf( __('Click the <a href="%s">setup</a> tab to complete the bundle configuration','loco-translate'), $tabs[1]->href ),
['a'=>['href'=>true]], ['http','https']
);?>.
</p>
</div>
<?php
echo $this->render('../common/inc-table-filter');
echo $this->render('inc-po-table', [ 'pairs' => $unknown, 'domain' => null ] )?>
</div><?php
endif;
// showing incompatibility message if no configured projects available
else:?>
<div class="loco-project">
<div class="panel panel-error">
<h2><?php $params->e('name')?> <span>(<?php esc_html_e('unconfigured','loco-translate')?>)</span></h2>
<p>
<?php
esc_html_e("This bundle isn't automatically compatible and requires configuring before you can use all the functions of Loco Translate",'loco-translate')?>. <?php
echo wp_kses(
sprintf( __('Click the <a href="%s">setup</a> tab to complete the bundle configuration','loco-translate'), $tabs[1]->href ),
['a'=>['href'=>true]], ['http','https']
);?>.
</p>
</div>
</div><?php
if( $unknown ):?>
<div class="loco-project">
<?php echo $this->render('inc-po-table', [ 'pairs' => $unknown, 'domain' => null ] )?>
</div><?php
endif;
endif;
