admin-fscheck.tpl.php
9 years ago
admin-list.tpl.php
9 years ago
admin-nav.tpl.php
9 years ago
admin-opts.tpl.php
9 years ago
admin-poedit.tpl.php
9 years ago
admin-poinit.tpl.php
9 years ago
admin-root.tpl.php
9 years ago
admin-fscheck.tpl.php
64 lines
| 1 | <?php |
| 2 | /** |
| 3 | * File system check screen - shows permission problems and gives advice on fixing |
| 4 | * @var LocoPackage $package |
| 5 | */ |
| 6 | $nav = array ( |
| 7 | __('Packages','loco-translate') => array( 'href' => LocoAdmin::uri() ), |
| 8 | __('Settings','loco-translate') => array( 'href' => LocoAdmin::uri( array(), 'settings' ), 'icon' => 'admin-settings' ), |
| 9 | // |
| 10 | __('File check','loco-translate') => array( 'icon' => 'admin-tools' ), |
| 11 | ); |
| 12 | ?> |
| 13 | |
| 14 | <div class="wrap loco-admin loco-fscheck"> |
| 15 | |
| 16 | <?php Loco::render('admin-nav', compact('nav') );?> |
| 17 | |
| 18 | <h2> |
| 19 | <?php Loco::h( sprintf( __('File system permissions for %s','loco-translate'), $name ) )?> |
| 20 | </h2><?php |
| 21 | |
| 22 | /* @var $package LocoPackage */ |
| 23 | foreach( $package->get_permission_errors() as $path => $error ):?> |
| 24 | <ul class="loco-list"> |
| 25 | <li> |
| 26 | <code><?php Loco::h( LocoAdmin::trim_path($path) )?></code> |
| 27 | </li><?php |
| 28 | if( $error ):?> |
| 29 | <li class="loco-warning"> |
| 30 | <span><?php Loco::h($error)?></span> |
| 31 | </li><?php |
| 32 | else:?> |
| 33 | <li class="loco-ok"> |
| 34 | <span>OK</span> |
| 35 | </li><?php |
| 36 | endif?> |
| 37 | </ul><?php |
| 38 | endforeach; |
| 39 | |
| 40 | |
| 41 | if( $warnings = $package->get_author_warnings() ):?> |
| 42 | <h2> |
| 43 | <?php Loco::h( sprintf( __('Other potential issues with %s','loco-translate'), $name ) ) ?> |
| 44 | </h2> |
| 45 | |
| 46 | <ul class="loco-list"><?php |
| 47 | foreach( $warnings as $error ):?> |
| 48 | <li class="loco-warning"> |
| 49 | <span><?php Loco::h($error)?></span> |
| 50 | </li><?php |
| 51 | endforeach;?> |
| 52 | </ul><?php |
| 53 | endif?> |
| 54 | |
| 55 | |
| 56 | <p class="submit"> |
| 57 | <a class="button-primary" href="<?php Loco::h( LocoAdmin::uri() )?>"><?php Loco::h( __('Back','loco-translate') )?></a> |
| 58 | <a class="button" href="https://localise.biz/help/wordpress/translate-plugin/support" target="_blank"><?php Loco::h( __('Get help','loco-translate') )?></a> |
| 59 | </p> |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | </div> |