, but a rule configured once at * Network Admin level and inherited by every subsite would otherwise never * match, since each subsite has its own domain. Comparing paths only keeps * single-site matching identical (a site's own domain always matches itself) * while making the rule portable across a network's subsites. * * @param string $link * @return string */ function htpm_strip_host( $link ) { $link = str_replace( array( 'http://', 'https://' ), '', $link ); $link = trim( $link, '/' ); $slash_pos = strpos( $link, '/' ); $path = ( false === $slash_pos ) ? '' : trim( substr( $link, $slash_pos + 1 ), '/' ); // A WordPress install in a subdirectory (example.com/blog) carries that // directory in the stored link, but the current path this is compared // against is already measured relative to the site root — so drop the // same prefix here to keep both sides comparable. $base_path = trim( (string) wp_parse_url( get_bloginfo('url'), PHP_URL_PATH ), '/' ); if ( '' !== $base_path ) { if ( 0 === strpos( $path, $base_path . '/' ) ) { $path = trim( substr( $path, strlen( $base_path ) + 1 ), '/' ); } elseif ( $path === $base_path ) { $path = ''; } } return ( '' === $path ) ? '/' : $path; } function htpm_filter_plugins( $plugins ){ $remove_plugins = htpm_get_plugins_to_remove(); if ( empty( $remove_plugins ) ) { return $plugins; } return array_diff( $plugins, $remove_plugins ); } /** * Same rules as htpm_filter_plugins(), applied to the network-wide active * plugins list instead (keyed by plugin file => activation timestamp). * * @param array $plugins * @return array */ function htpm_filter_network_active_plugins( $plugins ){ $remove_plugins = htpm_get_plugins_to_remove(); if ( empty( $remove_plugins ) ) { return $plugins; } return array_diff_key( $plugins, array_flip( $remove_plugins ) ); } Entrega de Diplomas do Círculo de Leitura – Etec Rio Grande da Serra
Filtro de Daltonismo

Entrega de Diplomas do Círculo de Leitura

Entregamos os certificados aos alunos que concluíram o Círculo de Leitura, uma iniciativa em parceria com o Instituto Braudel.

27 de novembro de 2024 8:30 pm Direção

Em parceria com o Instituto Braudel o círculo de leitura foi realizado na ETEC de Rio Grande da Serra. Parabéns a todos pela dedicação e empenho ao longo dessa jornada de aprendizado e crescimento! A escola agradece ao Instituto e o apoio dos alunos que tornaram tudo possível nesse semestre.

Compartilhe


Veja também