dvadf
File manager - Edit - /home/theblueo/tv/wp-includes/pomo/lib/bundle.tar
Back
view.php 0000666 00000004334 15214177312 0006242 0 ustar 00 <?php /** * Bundle overview */ $this->extend('../layout'); /* @var $p Loco_mvc_ViewParams */ 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', array( 'nav' => $p->nav ) ); echo $this->render('inc-po-table', array( 'pairs' => $p->po, 'domain' => $p->domain ) ); ?> </div><?php endforeach; if( $unknown ):?> <div class="loco-project"> <div class="notice inline notice-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 printf( __('Click the <a href="%s">setup</a> tab to complete the bundle configuration','loco-translate'), $tabs[1]->href )?>. </p> </div> <?php echo $this->render('../common/inc-table-filter'); echo $this->render('inc-po-table', array( 'pairs' => $unknown, 'domain' => null ) )?> </div><?php endif; // showing incompatibility message if no configured projects available else:?> <div class="loco-project"> <div class="notice inline notice-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 printf( __('Click the <a href="%s">setup</a> tab to complete the bundle configuration','loco-translate'), $tabs[1]->href )?>. </p> </div> </div><?php if( $unknown ):?> <div class="loco-project"> <?php echo $this->render('inc-po-table', array( 'pairs' => $unknown, 'domain' => null ) )?> </div><?php endif; endif; inc-po-table.php 0000666 00000011354 15214177312 0007542 0 ustar 00 <?php /** * Table of localised file pairs in a project */ /* @var Loco_mvc_ViewParams[] $pairs */ if( $pairs ):?> <table class="wp-list-table widefat fixed striped"> <thead> <tr> <th data-sort-type="s"> <?php esc_html_e('Language','loco-translate')?> </th> <th colspan="2" data-sort-type="n"> <?php esc_html_e('Translation progress','loco-translate')?> </th> <th data-sort-type="n"> <?php esc_html_e('Pending','loco-translate')?> </th> <th data-sort-type="s"> <?php esc_html_e('File info','loco-translate')?> </th> <th data-sort-type="n"> <?php esc_html_e('Last modified','loco-translate')?> </th> <th data-sort-type="s"> <?php esc_html_e('Folder','loco-translate')?> </th> </tr> </thead> <tbody><?php foreach( $pairs as $po ): $ispo = (bool) $po->lcode;?> <tr> <td class="has-row-actions" data-sort-value="<?php $po->e('lname')?>"> <a href="<?php $po->e('edit')?>" class="row-title"><?php if( $ispo ):?> <span <?php echo $po->lattr?>><code><?php $po->e('lcode')?></code></span> <span><?php $po->e('lname')?></span><?php else:?> <span class="icon icon-file"></span> <span><?php esc_html_e('Template file','loco-translate')?></span><?php endif?> </a><?php if( $domain ):?> <nav class="row-actions"> <span> <a href="<?php $po->e('edit')?>"><?php esc_html_e('Edit','loco-translate')?></a> | </span> <span> <a href="<?php $po->e('view')?>"><?php esc_html_e('View','loco-translate')?></a> | </span> <span> <a href="<?php $po->e('info')?>"><?php esc_html_e('Info','loco-translate')?></a> | </span> <span> <a href="<?php $po->e('copy')?>"><?php esc_html_e('Copy','loco-translate')?></a> | </span> <span class="trash"> <a href="<?php $po->e('delete')?>"><?php esc_html_e('Delete','loco-translate')?></a> </span> </nav><?php endif?> </td><?php if( $ispo ):?> <td data-sort-value="<?php echo $po->meta->getPercent()?>"> <?php $po->meta->printProgress()?> </td> <td title="of <?php $po->n('total')?>"> <?php echo $po->meta->getPercent()?>% </td> <td data-sort-value="<?php $po->f('todo','%u')?>"> <?php $po->n('todo')?> </td><?php else:?> <td data-sort-value="-1"> -- <!-- no progress for template --> </td> <td> <!-- no percentage for template --> </td> <td data-sort-value="-1"> -- <!-- no pendingfor template --> </td><?php endif?> <td data-sort-value="<?php $po->e('name')?>"> <a href="<?php $po->e('info')?>"><?php $po->e('name')?></a> </td> <td data-sort-value="<?php $po->f('time','%u')?>"> <time datetime="<?php $po->date('time','c')?>"><?php $po->date('time')?></time> </td> <td> <?php $po->e('store')?> </td> </tr><?php endforeach;?> </tbody> </table><?php else:?> <table class="wp-list-table widefat fixed striped"> <tr> <td><?php self::e( __('No translations found for "%s"','loco-translate'), $domain )?></td> </tr> </table><?php endif; setup/core.php 0000666 00000001330 15214177312 0007351 0 ustar 00 <?php /** * Bundle is set up internally */ $this->extend('../../layout'); ?> <div class="notice inline notice-success"> <h3 class="has-icon"> <?php esc_html_e('Bundle auto-configured','loco-translate')?> </h3> <p> <?php esc_html_e("This bundle's configuration is built into Loco",'loco-translate')?>. <?php esc_html_e("You can make changes in the Advanced tab if you need to override the current settings",'loco-translate')?>. </p> <p class="submit"> <a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Advanced configuration','loco-translate')?></a> </p> </div> setup/meta.php 0000666 00000001220 15214177312 0007345 0 ustar 00 <?php /** * Bundle is set up fully from self-declared metadata */ $this->extend('../setup'); $this->start('header'); ?> <div class="notice inline notice-success"> <h3 class="has-icon"> <?php esc_html_e('Bundle auto-configured','loco-translate')?> </h3> <p> <?php esc_html_e("This bundle's configuration has been automatically detected and seems to be fully compatible",'loco-translate')?>. <?php esc_html_e("You can make changes in the Advanced tab if you need to override the current settings",'loco-translate')?>. </p> <?php echo $this->render('inc-nav')?> </div> setup/saved.php 0000666 00000001634 15214177312 0007532 0 ustar 00 <?php /** * Bundle is saved in database, but can be reset */ $this->extend('../setup'); $this->start('header'); ?> <div class="notice inline notice-info"> <h3 class="has-icon"> <?php esc_html_e('Bundle configuration saved','loco-translate')?> </h3> <p> <?php esc_html_e("This bundle's configuration is saved in the WordPress database",'loco-translate')?>. </p> <form action="" method="post" enctype="application/x-www-form-urlencoded"> <p class="submit"> <input type="submit" name="reset-setup" class="button button-danger" value="<?php esc_html_e('Reset config','loco-translate')?>" /> <a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Edit config','loco-translate')?></a> </p> <?php $reset->_e()?> </form> </div> setup/inc-nav.php 0000666 00000001766 15214177312 0007771 0 ustar 00 <?php /** * Common links below variable setup header. */ $help = esc_url( apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/bundle-setup') ); if( $params->has('notices') ):?> <ul class="problems"><?php foreach( $params->notices as $text ):?> <li class="has-icon icon-remove"> <?php echo $params->escape( $text )?> </li><?php endforeach?> </ul><?php endif?> <p class="submit"> <a href="<?php $tabs[2]->e('href')?>" class="button button-link has-icon icon-wrench"><?php esc_html_e('Advanced configuration','loco-translate')?></a> </p> <p> <a href="<?php $tabs[1]->e('href')?>&xml=1" class="button button-link has-icon icon-upload"><?php esc_html_e('Import config from XML','loco-translate')?></a> </p> <p> <a href="<?php echo $help?>" class="button button-link has-icon icon-help" target="_blank"><?php esc_html_e('Get help with this','loco-translate')?></a> </p> setup/none.php 0000666 00000001071 15214177312 0007362 0 ustar 00 <?php /** * Bundle is not set up at all */ $this->extend('../setup'); $this->start('header'); ?> <div class="notice inline notice-error"> <h3 class="has-icon"> <?php esc_html_e('Unconfigured bundle','loco-translate')?> </h3> <p> <?php esc_html_e('This bundle isn\'t set up for translation in a way we understand','loco-translate')?>. <?php esc_html_e('It needs configuring before you can do any translations','loco-translate')?>. </p> <?php echo $this->render('inc-nav')?> </div>