PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
utilities
<?php class WPML_Translate_Link_Targets { /* @var AbsoluteLinks $absolute_links */ private $absolute_links; /* @var WPML_Absolute_To_Permalinks $permalinks_converter */ private $permalinks_converter; /** * WPML_Translate_Link_Targets constructor. * * @param AbsoluteLinks $absolute_links * @param WPML_Absolute_To_Permalinks $permalinks_converter */ public function __construct( AbsoluteLinks $absolute_links, WPML_Absolute_To_Permalinks $permalinks_converter ) { $this->absolute_links = $absolute_links; $this->permalinks_converter = $permalinks_converter; } /** * convert_text * * @param string $text * * @return string */ public function convert_text( $text ) { if ( is_string( $text ) ) { $text = $this->absolute_links->convert_text( $text ); $text = $this->permalinks_converter->convert_text( $text ); } return $text; } public function is_internal_url( $url ) { $absolute_url = $this->absolute_links->convert_url( $url ); return $url != $absolute_url || $this->absolute_links->is_home( $url ); } /** * @param string $url * * @return string */ public function convert_url( $url ) { $link = '<a href="' . $url . '">removeit</a>'; $link = $this->convert_text( $link ); return str_replace( array( '<a href="', '">removeit</a>' ), array( '', '' ), $link ); } }
[-] class-wpml-wp-cache-factory.php
[edit]
[-] class-wpml-inactive-content.php
[edit]
[-] class-wpml-slash-management.php
[edit]
[-] class-wpml-transient.php
[edit]
[-] class-wpml-ajax.php
[edit]
[-] class-wpml-locale.php
[edit]
[-] class-wpml-string-functions.php
[edit]
[-] class-wpml-deactivate-old-media-factory.php
[edit]
[-] class-wpml-global-ajax.php
[edit]
[+]
admin
[-] AutoAdjustIdsFactory.php
[edit]
[-] wpml-queried-object.php
[edit]
[-] class-wpml-wp-query-api.php
[edit]
[-] class-debug-backtrace.php
[edit]
[-] class-wpml-temporary-switch-admin-language.php
[edit]
[-] class-wpml-flags-factory.php
[edit]
[-] class-wpml-deactivate-old-media.php
[edit]
[-] AutoAdjustIds.php
[edit]
[-] Resources.php
[edit]
[-] class-wpml-encoding.php
[edit]
[-] class-wpml-temporary-switch-language.php
[edit]
[-] class-wpml-flags.php
[edit]
[+]
..
[-] Pager.php
[edit]
[-] class-wpml-wp-post.php
[edit]
[-] class-wpml-cache-factory.php
[edit]
[-] wpml-uuid.php
[edit]
[-] class-wpml-encoding-validation.php
[edit]
[-] wpml-languages-notices.php
[edit]
[-] class-wpml-non-persistent-cache.php
[edit]
[+]
user
[-] class-wpml-wp-cache.php
[edit]
[+]
lock
[-] class-wpml-simple-language-selector.php
[edit]
[-] class-wpml-debug-backtrace.php
[edit]
[-] class-wpml-wp-taxonomy-query.php
[edit]
[-] class-wpml-wp-cache-item.php
[edit]
[-] class-wpml-translate-link-targets.php
[edit]