/home/vianto5/cititower.mx/wp-content/plugins/wpml-string-translation/menu
Edit: /home/vianto5/cititower.mx/wp-content/plugins/wpml-string-translation/menu/string-translation.php (56871B)
get_strings_settings();
if ( ( ! isset( $sitepress_settings['existing_content_language_verified'] ) || ! $sitepress_settings['existing_content_language_verified'] ) /*|| 2 > count($sitepress->get_active_languages())*/ ) {
return;
}
if ( filter_input( INPUT_GET, 'trop', FILTER_SANITIZE_NUMBER_INT ) > 0 ) {
include dirname( __FILE__ ) . '/string-translation-translate-options.php';
return;
} elseif ( filter_input( INPUT_GET, 'download_mo', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
include dirname( __FILE__ ) . '/auto-download-mo.php';
return;
}
$status_filter = filter_input( INPUT_GET, 'status', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE );
$status_filter_text = $status_filter;
$status_filter_lang = false;
if ( preg_match(
'#' . ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR . '-(.+)#',
$status_filter_text,
$matches
)
) {
$status_filter = ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR;
$status_filter_lang = $matches[1];
} else {
$status_filter = filter_input( INPUT_GET, 'status', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE );
}
// $status_filter = $status_filter !== false ? (int) $status_filter : null;
$context_filter = filter_input( INPUT_GET, 'context', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$search_filter = filter_input( INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS );
$exact_match = filter_input( INPUT_GET, 'em', FILTER_VALIDATE_BOOLEAN );
$search_translation = filter_input( INPUT_GET, 'search_translation', FILTER_VALIDATE_BOOLEAN );
$is_troubleshooting = filter_input( INPUT_GET, 'troubleshooting', FILTER_VALIDATE_BOOLEAN );
$filter_translation_priority = filter_var( isset( $_GET['translation-priority'] ) ? $_GET['translation-priority'] : '', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$translation_priorities = class_exists( 'WPML_TM_Translation_Priorities' ) ? get_terms(
array(
'taxonomy' => 'translation_priority',
'hide_empty' => false,
)
) : array();
$active_languages = $sitepress->get_active_languages();
$icl_contexts = icl_st_get_contexts( $status_filter );
$unfiltered_context_counts = $status_filter !== false ? icl_st_get_contexts( false ) : $icl_contexts;
function context_array( $contexts ) {
$count_array = array();
$contexts = $contexts ? array_filter( $contexts ) : array();
foreach ( $contexts as $c ) {
$count_array[ $c->context ] = $c->c;
}
return $count_array;
}
$available_contexts = array_keys( context_array( $icl_contexts ) );
$unfiltered_contexts = context_array( $unfiltered_context_counts );
function _icl_string_translation_rtl_div( $language ) {
if ( in_array( $language, array( 'ar', 'he', 'fa' ) ) ) {
echo ' dir="rtl" style="text-align:right;direction:rtl;"';
} else {
echo ' dir="ltr" style="text-align:left;direction:ltr;"';
}
}
function _icl_string_translation_rtl_textarea( $language ) {
if ( in_array( $language, array( 'ar', 'he', 'fa' ) ) ) {
echo ' dir="rtl" style="text-align:right;direction:rtl;width:100%"';
} else {
echo ' dir="ltr" style="text-align:left;direction:ltr;width:100%"';
}
}
$po_importer = apply_filters( 'wpml_st_get_po_importer', null );
/** @var WPML_PO_Import_Strings $wpml_po_import_strings */
$wpml_po_import_strings = WPML\Container\make( WPML_PO_Import_Strings::class );
wp_enqueue_script( 'wpml-tooltip', WPML_ST_URL . '/res/js/tooltip.js', array( 'wp-pointer', 'jquery' ), WPML_ST_VERSION );
wp_enqueue_style( 'wpml-tooltip', WPML_ST_URL . '/res/css/tooltip/tooltip.css', array( 'wp-pointer' ), WPML_ST_VERSION );
?>
has_strings() ) : ?>
', '' ); ?>
render();
if ( ! empty( $icl_contexts ) ) {
$change_string_domain_language_dialog = make( \WPML_Change_String_Domain_Language_Dialog::class );
$change_string_domain_language_dialog->render( $icl_contexts );
}
$get_show_results = filter_var( isset( $_GET['show_results'] ) ? $_GET['show_results'] : '', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$get_page = filter_var( $_GET['page'], FILTER_SANITIZE_URL );
$query_args = array(
'page' => $get_page,
);
if ( $context_filter ) {
$query_args['context'] = $context_filter;
}
if ( $status_filter ) {
$query_args['status'] = $status_filter;
}
if ( $filter_translation_priority ) {
$query_args['tp'] = $filter_translation_priority;
}
if ( $search_filter ) {
$query_args['search'] = $search_filter;
}
if ( $exact_match ) {
$query_args['em'] = $exact_match;
}
if ( $search_translation ) {
$query_args['search_translation'] = $search_translation;
}
if ( $is_troubleshooting ) {
$query_args['troubleshooting'] = $is_troubleshooting;
}
?>
found_posts > 10 ) {
$paged = filter_input( INPUT_GET, 'paged', FILTER_SANITIZE_NUMBER_INT );
if ( ! $paged || $get_show_results === 'all' ) {
$paged = 1;
}
if ( $paged && (int) $paged > 1 ) {
$query_args['pages'] = $paged;
}
if ( $get_show_results === 'all' ) {
$url_show_paginated_results = add_query_arg( $query_args, admin_url( 'admin.php' ) );
?>
add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => (int) $wp_query->max_num_pages,
'current' => (int) $paged,
'prev_text' => '',
'next_text' => '',
'add_args' => isset( $icl_translation_filter ) ? $icl_translation_filter : array(),
)
);
?>
' . esc_html__( 'Displaying %1$s–%2$s of %3$s', 'wpml-string-translation' ) . '
%4$s
',
number_format_i18n( ( (int) $paged - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ),
number_format_i18n( min( (int) $paged * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ),
number_format_i18n( $wp_query->found_posts ),
$page_links
);
echo $page_links_text;
}
if ( ! $get_show_results ) {
?>
query_vars['posts_per_page'];
$option_values = array( 10, 20, 50, 100 );
$options = array();
foreach ( $option_values as $option_value ) {
$option = '
show();
if ( $translation_priorities ) {
$change_translation_priority_select = new WPML_Translation_Priority_Select();
$change_translation_priority_select->show();
wp_enqueue_script( 'wpml-st-translation-priority', WPML_ST_URL . '/res/js/string-translation-priority.js', array( 'jquery-ui-dialog', 'wpml-st-scripts', 'wpml-select-2' ), WPML_ST_VERSION );
}
?>