Astra_Admin_Settings::top_header_right_section()
Astra Header Right Section Links
Description
Source
File: inc/core/class-astra-admin-settings.php
public static function top_header_right_section() { $top_links = apply_filters( 'astra_header_top_links', array( 'astra-theme-info' => array( 'title' => '<img src=" ' . ASTRA_THEME_URI . 'inc/assets/images/lightning-speed.svg" class="astra-lightning-icon" alt="Astra Lightning Speed">' . __( ' Lightning Fast & Fully Customizable WordPress theme!', 'astra' ), ), ) ); if ( ! empty( $top_links ) ) { ?> <div class="ast-top-links"> <ul> <?php foreach ( (array) $top_links as $key => $info ) { /* translators: %1$s: Top Link URL wrapper, %2$s: Top Link URL, %3$s: Top Link URL target attribute */ printf( '<li><%1$s %2$s %3$s > %4$s </%1$s>', isset( $info['url'] ) ? 'a' : 'span', isset( $info['url'] ) ? 'href="' . esc_url( $info['url'] ) . '"' : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped isset( $info['url'] ) ? 'target="_blank" rel="noopener"' : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $info['title']// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); } ?> </ul> </div> <?php } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.4 | Introduced. |