PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
inc
<?php /** * Registers TM scripts that they are being used from WPML plugin * Hooked to `admin_enqueue_scripts` and 'wp_enqueue_scripts' */ if ( ! \WPML\Plugins::isTMActive() && defined( 'WPML_TM_URL' ) ) { /** * Registers scripts so that they can be reused throughout WPML plugins */ function wpml_tm_register_js_scripts() { if ( \WPML\Setup\Option::isTMAllowed() ) { wp_register_script( 'wpml-tm-editor-templates', WPML_TM_URL . '/res/js/translation-editor/templates.js', array(), WPML_TM_VERSION, true ); wp_register_script( 'wpml-tm-editor-job', WPML_TM_URL . '/res/js/translation-editor/wpml-tm-editor-job.js', array( 'underscore', 'backbone' ), WPML_TM_VERSION, true ); $scripts = array( 'wpml-tm-editor-job-field-view', 'wpml-tm-editor-job-basic-field-view', 'wpml-tm-editor-job-single-line-field-view', 'wpml-tm-editor-job-textarea-field-view', 'wpml-tm-editor-job-wysiwyg-field-view', 'wpml-tm-editor-field-view-factory', 'wpml-tm-editor-section-view', 'wpml-tm-editor-group-view', 'wpml-tm-editor-image-view', 'wpml-tm-editor-main-view', 'wpml-tm-editor-header-view', 'wpml-tm-editor-note-view', 'wpml-tm-editor-footer-view', 'wpml-tm-editor-languages-view', 'wpml-tm-editor-copy-all-dialog', 'wpml-tm-editor-edit-independently-dialog', 'wpml-tm-editor-translation-memory', ); $additional_requirements = array( 'wpml-tm-editor-footer-view' => array( 'wpml-tm-progressbar' ), ); foreach ( $scripts as $script ) { wp_register_script( $script, WPML_TM_URL . '/res/js/translation-editor/' . $script . '.js', array_merge( array( 'wpml-tm-editor-job' ), isset( $additional_requirements[ $script ] ) ? $additional_requirements[ $script ] : array() ), WPML_TM_VERSION, true ); } wp_register_script( 'wpml-tm-editor-scripts', WPML_TM_URL . '/res/js/translation-editor/translation-editor.js', array_merge( array( 'jquery', 'jquery-ui-dialog', 'wpml-tm-editor-templates', 'wpml-tm-editor-job' ), $scripts ), WPML_TM_VERSION, true ); wp_register_script( 'wpml-tp-polling-box-populate', WPML_TM_URL . '/res/js/tp-polling/box-populate.js', array( 'jquery' ), WPML_TM_VERSION, true ); wp_register_script( 'wpml-tp-polling', WPML_TM_URL . '/res/js/tp-polling/poll-for-translations.js', array( 'wpml-tp-polling-box-populate' ), WPML_TM_VERSION, true ); wp_register_script( 'wpml-tm-mcs', WPML_TM_URL . '/res/js/mcs/wpml-tm-mcs.js', array( 'wpml-tp-polling' ), WPML_TM_VERSION, true ); wp_register_script( 'wpml-tm-mcs-translate-link-targets', WPML_TM_URL . '/res/js/mcs/wpml-tm-mcs-translate-link-targets.js', array(), WPML_TM_VERSION, true ); } } if ( is_admin() ) { add_action( 'admin_enqueue_scripts', 'wpml_tm_register_js_scripts' ); } else { add_action( 'wp_enqueue_scripts', 'wpml_tm_register_js_scripts' ); } }
[-] constants.php
[edit]
[-] functions-helpers.php
[edit]
[-] functions-load.php
[edit]
[-] plugins-integration.php
[edit]
[-] functions-sanitation.php
[edit]
[-] lang-data.php
[edit]
[-] template-functions.php
[edit]
[-] import-xml.php
[edit]
[+]
utilities
[+]
absolute-links
[-] ajax.php
[edit]
[-] wpml-post-edit-ajax.class.php
[edit]
[-] functions-troubleshooting.php
[edit]
[-] hacks.php
[edit]
[-] functions-network.php
[edit]
[-] functions-security.php
[edit]
[-] cache.php
[edit]
[+]
tools
[-] wpml-private-actions.php
[edit]
[-] functions.php
[edit]
[+]
translation-jobs
[+]
hacks
[+]
wpml-config
[-] wpml-api.php
[edit]
[+]
local-translation
[-] wpml-private-filters.php
[edit]
[+]
translation-proxy
[-] wpml-private-actions-tm.php
[edit]
[+]
taxonomy-term-translation
[+]
setup
[-] wpml_zip.php
[edit]
[-] language-switcher.php
[edit]
[-] wpml-post-comments.class.php
[edit]
[+]
url-handling
[-] functions-load-tm.php
[edit]
[-] plugin-integration-nextgen.php
[edit]
[-] js-scripts.php
[edit]
[+]
query-filtering
[-] constants-tm.php
[edit]
[+]
translation-management
[-] js-tm-scripts.php
[edit]
[-] upgrade.php
[edit]
[+]
upgrade-functions
[+]
..
[-] icl-admin-notifier.php
[edit]
[-] not-compatible-plugins.php
[edit]
[-] deprecated-hooks.php
[edit]
[+]
actions
[-] functions-debug-information.php
[edit]
[+]
core
[+]
wp-nav-menus
[+]
post-translation
[-] wpml_load_request_handler.php
[edit]