/
home
/
vianto5
/
hidalgoresidences.mx
/
wp-content
/
plugins
/
sitepress-multilingual-cms
/
menu
/
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/menu
mkdir
upload
Name
Size
Mode
Actions
dashboard/
-
0755
rm
menu-sync/
-
0755
rm
post-menus/
-
0755
rm
term-taxonomy-menus/
-
0755
rm
class-wpml-post-status-display-factory.php
312
0644
edit
dl
rm
debug-information.php
1982
0644
edit
dl
rm
edit-languages.php
57785
0644
edit
dl
rm
languages.php
38100
0644
edit
dl
rm
network.php
7634
0644
edit
dl
rm
setup.php
208
0644
edit
dl
rm
sitepress-table.class.php
283
0644
edit
dl
rm
support.php
3157
0644
edit
dl
rm
theme-localization.php
544
0644
edit
dl
rm
theme-plugins-compatibility.php
1451
0644
edit
dl
rm
translation-options.php
463
0644
edit
dl
rm
troubleshooting.php
35380
0644
edit
dl
rm
upgrade_notice.php
1464
0644
edit
dl
rm
wpml-admin-lang-switcher.class.php
9396
0644
edit
dl
rm
wpml-language-filter-bar.class.php
2171
0644
edit
dl
rm
wpml-post-status-display.class.php
5693
0644
edit
dl
rm
wpml-tm-menus-management.php
21844
0644
edit
dl
rm
wpml-tm-menus-settings.php
30659
0644
edit
dl
rm
wpml-tm-menus.class.php
4047
0644
edit
dl
rm
wpml-translation-selector.class.php
3462
0644
edit
dl
rm
wpml-troubleshooting-terms-menu.class.php
4300
0644
edit
dl
rm
xliff-management.php
367
0644
edit
dl
rm
xliff-options.php
3016
0644
edit
dl
rm
_custom_types_translation.php
7248
0644
edit
dl
rm
_login_translation_options.php
3126
0644
edit
dl
rm
_posts_sync_options.php
5494
0644
edit
dl
rm
Edit:
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/menu/network.php
(7634B)
<?php $wp_list_table = _get_list_table( 'WP_MS_Sites_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } $msg = ''; if ( isset( $_REQUEST['updated'] ) && 'true' === $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) { switch ( $_REQUEST['action'] ) { case 'resetwpml': $msg = esc_html__( 'WPML has been reset for the selected site.', 'sitepress' ); break; case 'deactivatewpml': $msg = esc_html__( 'WPML has been deactivated for the selected site.', 'sitepress' ); break; case 'activatewpml': $msg = esc_html__( 'WPML has been activated for the selected site.', 'sitepress' ); break; default: $msg = false; } if ( $msg ) { $msg = '<div class="updated" id="message"><p>' . $msg . '</p></div>'; } } $text = isset( $text ) ? $text : ''; ?> <div class="wrap"> <h2><?php echo esc_html__( 'WPML Network Setup', 'sitepress' ); ?> <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { printf( '<span class="subtitle">' . esc_html__( 'Search results for “%s”' ) . '</span>', filter_var( $_REQUEST['s'], FILTER_SANITIZE_SPECIAL_CHARS ) ); } ?> </h2> <form action="" method="get" id="ms-search"> <p class="search-box"> <label class="screen-reader-text" for="icl_ss"><?php echo esc_html( $text ); ?>:</label> <input type="hidden" name="page" value="<?php echo esc_attr( $_GET['page'] ); ?>"/> <input type="text" id="icl_ss" name="s" value="<?php _admin_search_query(); ?>"/> <?php submit_button( __( 'Search', 'sitepress' ), 'button', '', false, array( 'id' => 'search-submit' ) ); ?> </p> </form> <?php echo $msg; ?> <br/> <?php if ( empty( $wp_list_table->items ) ) : ?> <?php $wp_list_table->no_items(); ?> <?php else : ?> <div class="tablenav top"> <?php $wp_list_table->pagination( 'bottom' ); ?> </div> <table class="wp-list-table widefat"> <thead> <tr> <th><?php esc_html_e( 'Site', 'sitepress' ); ?></th> <th><?php esc_html_e( 'Status', 'sitepress' ); ?></th> <th> </th> </tr> </thead> <tfoot> <tr> <th><?php esc_html_e( 'Site', 'sitepress' ); ?></th> <th><?php esc_html_e( 'Status', 'sitepress' ); ?></th> <th> </th> </tr> </tfoot> <tbody> <?php $status_list = array( 'archived' => array( 'site-archived', esc_html__( 'Archived' ) ), 'spam' => array( 'site-spammed', esc_html_x( 'Spam', 'site' ) ), 'deleted' => array( 'site-deleted', esc_html__( 'Deleted' ) ), 'mature' => array( 'site-mature', esc_html__( 'Mature' ) ), ); $class = ''; foreach ( $wp_list_table->items as $blog ) : if ( class_exists( 'WP_Site' ) && $blog instanceof WP_Site ) { $blog = object_to_array( $blog ); } $class = ( 'alternate' == $class ) ? '' : 'alternate'; $blog_states = array(); foreach ( $status_list as $status => $col ) { if ( 1 === get_blog_status( $blog['blog_id'], $status ) ) { $class = $col[0]; $blog_states[] = $col[1]; } } $blog_state = ''; if ( ! empty( $blog_states ) ) { $state_count = count( $blog_states ); $i = 0; $blog_state .= ' - '; foreach ( $blog_states as $state ) { ++ $i; ( $i == $state_count ) ? $sep = '' : $sep = ', '; $blog_state .= "<span class='post-state'>" . esc_html( $state . $sep ) . '</span>'; } } ?> <tr class="<?php echo esc_attr( $class ); ?>"> <td class='column-blogname blogname'> <?php $current_site = get_current_site(); $blog_name = $blog['path']; if ( ( is_subdomain_install() ) ) { $blog_name = str_replace( '.' . $current_site->domain, '', $blog['domain'] ); } ?> <a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo esc_html( $blog_name ) . $blog_state; ?></a> <?php $actions = array( 'edit' => '', 'backend' => '', 'activate' => '', 'deactivate' => '', 'archive' => '', 'unarchive' => '', 'spam' => '', 'unspam' => '', 'delete' => '', 'visit' => '', ); $actions['edit'] = '<span class="edit"><a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ) . '">' . esc_html__( 'Edit', 'sitepress' ) . '</a></span>'; $actions['backend'] = "<span class='backend'><a href='" . esc_url( get_admin_url( $blog['blog_id'] ) ) . "' class='edit'>" . esc_html__( 'Dashboard', 'sitepress' ) . '</a></span>'; $actions['visit'] = "<span class='view'><a href='" . esc_url( get_home_url( $blog['blog_id'] ) ) . "' rel='permalink'>" . esc_html__( 'Visit', 'sitepress' ) . '</a></span>'; $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blog_name ); echo $wp_list_table->row_actions( $actions ); ?> </td> <td> <?php switch_to_blog( $blog['blog_id'] ); ?> <?php if ( get_option( '_wpml_inactive', false ) ) : ?> <?php esc_html_e( 'Inactive', 'sitepress' ); ?> <div class="row-actions"> <a href="<?php echo esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=activatewpml&id=' . (int) $blog['blog_id'] ), 'activatewpml' ) ); ?>"><?php esc_html_e( 'Activate', 'sitepress' ); ?></a> </div> <?php else : ?> <?php esc_html_e( 'Active', 'sitepress' ); ?> <div class="row-actions"> <?php global $current_blog; if ( $blog['blog_id'] != $current_blog->blog_id ) { ?> <a href="<?php echo esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=deactivatewpml&id=' . (int) $blog['blog_id'] ), 'deactivatewpml' ) ); ?>"><?php esc_html_e( 'Deactivate', 'sitepress' ); ?></a> <?php } ?> </div> <?php endif; ?> <?php restore_current_blog(); ?> </td> <td><a onclick="WPML_core.network.reset_wpml(this)" href="#" data-link="<?php echo esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=resetwpml&id=' . (int) $blog['blog_id'] ), 'resetwpml' ) ); ?>" data-msg=" <?php echo sprintf( esc_html__( 'You are about to reset WPML for this site: %s.', 'sitepress' ), esc_html( $blog_name ) ) . ' ' . esc_html__( "All translation data will be lost if you reset WPML's data. They cannot be recovered later.", 'sitepress' ) ?> "><?php esc_html_e( 'Reset', 'sitepress' ); ?></a></td> </tr> <?php endforeach; ?> </tbody> </table> <div class="tablenav bottom"> <?php $wp_list_table->pagination( 'bottom' ); ?> </div> <?php endif ?> </div> <script type="text/javascript"> var WPML_core = WPML_core || {}; WPML_core.network = {}; WPML_core.network.reset_wpml = function (link) { link = jQuery(link); if (confirm(link.data('msg'))) { window.location = link.data('link'); } } </script>
Save
cmd:
run