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-root.tpl.php
82 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Root admin screen - lists available themes and plugins |
| 4 | */ |
| 5 | $nav = array ( |
| 6 | __('Packages','loco-translate') => array(), |
| 7 | __('Settings','loco-translate') => array( 'href' => LocoAdmin::uri( array(), 'settings' ), 'icon' => 'admin-settings' ), |
| 8 | ); |
| 9 | ?> |
| 10 | |
| 11 | <div class="wrap loco-admin loco-lists"><?php |
| 12 | |
| 13 | // show upgrade notice if available |
| 14 | if( isset($update) ):?> |
| 15 | <div class="loco-message updated inline loco-warning"> |
| 16 | <p> |
| 17 | <strong> |
| 18 | <?php Loco::h( __('New version available','loco-translate') )?>: |
| 19 | </strong> |
| 20 | <a href="http://wordpress.org/extend/plugins/<?php echo Loco::NS?>"> |
| 21 | <?php Loco::h( __('Upgrade to version %s of Loco Translate','loco-translate'), $update )?> |
| 22 | </a> |
| 23 | </p> |
| 24 | </div><?php |
| 25 | else:?> |
| 26 | <div class="notice inline notice-info"> |
| 27 | <h3>Version 2.0 is nearly here</h3> |
| 28 | <p> |
| 29 | We've been working on a completely new version of Loco Translate. |
| 30 | If you'd like early access, please <a href="https://localise.biz/help/wordpress/translate-plugin/developers" target="_blank">help us test it</a>. |
| 31 | </p> |
| 32 | </div><?php |
| 33 | endif; |
| 34 | |
| 35 | // main tabbed navigation |
| 36 | Loco::render('admin-nav', compact('nav') )?> |
| 37 | |
| 38 | <h3 class="title"> |
| 39 | <?php Loco::h( __('Select a plugin or theme to translate','loco-translate') )?> |
| 40 | </h3><?php |
| 41 | |
| 42 | |
| 43 | // Theme packages |
| 44 | // |
| 45 | if( $themes ):?> |
| 46 | <div class="icon32 icon-appearance"><br /></div> |
| 47 | <h2 class="dashicons-admin-appearance"> |
| 48 | <?php Loco::h( _x('Themes','Package list header','loco-translate') )?> |
| 49 | </h2> |
| 50 | <div class="loco-list loco-list-themes"> |
| 51 | <?php Loco::render( 'admin-list', array('items'=>$themes) ) ?> |
| 52 | </div><?php |
| 53 | endif; |
| 54 | |
| 55 | |
| 56 | // Plugin packages |
| 57 | // |
| 58 | if( $plugins ):?> |
| 59 | <div class="icon32 icon-plugins"><br /></div> |
| 60 | <h2 class="dashicons-admin-plugins"> |
| 61 | <?php Loco::h( _x('Plugins','Package list header','loco-translate') )?> |
| 62 | </h2> |
| 63 | <div class="loco-list loco-list-plugins"> |
| 64 | <?php Loco::render( 'admin-list', array('items'=>$plugins) ) ?> |
| 65 | </div><?php |
| 66 | endif; |
| 67 | |
| 68 | |
| 69 | // Core packages |
| 70 | // |
| 71 | if( $core ):?> |
| 72 | <div class="icon32 icon-generic"><br /></div> |
| 73 | <h2 class="dashicons-wordpress"> |
| 74 | <?php Loco::h( _x('Core','Package list header','loco-translate') )?> |
| 75 | </h2> |
| 76 | <div class="loco-list loco-list-core"> |
| 77 | <?php Loco::render( 'admin-list', array('items'=>$core) ) ?> |
| 78 | </div><?php |
| 79 | endif?> |
| 80 | |
| 81 | </div> |
| 82 |