芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wp-mail-smtp/src/Admin/FlyoutMenu.php
get_admin()->is_admin_page() ) { return; } printf( '
%1$s
%2$s
', $this->get_items_html(), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped esc_html__( 'See Quick Links', 'wp-mail-smtp' ), esc_url( wp_mail_smtp()->assets_url . '/images/flyout-menu/mascot.svg' ) ); } /** * Generate menu items HTML. * * @since 3.0.0 * * @return string Menu items HTML. */ private function get_items_html() { $items = array_reverse( $this->menu_items() ); $items_html = ''; foreach ( $items as $item_key => $item ) { $items_html .= sprintf( '
%3$s
', esc_url( $item['url'] ), (int) $item_key, esc_html( $item['title'] ), esc_url( $item['icon'] ), ! empty( $item['bgcolor'] ) ? ' style="background-color: ' . esc_attr( $item['bgcolor'] ) . '"' : '', ! empty( $item['hover_bgcolor'] ) ? ' onMouseOver="this.style.backgroundColor=\'' . esc_attr( $item['hover_bgcolor'] ) . '\'" onMouseOut="this.style.backgroundColor=\'' . esc_attr( $item['bgcolor'] ) . '\'"' : '' ); } return $items_html; } /** * Menu items data. * * @since 3.0.0 * * @return array Menu items data. */ private function menu_items() { $icons_url = wp_mail_smtp()->assets_url . '/images/flyout-menu'; $items = [ [ 'title' => esc_html__( 'Upgrade to WP Mail SMTP Pro', 'wp-mail-smtp' ), 'url' => wp_mail_smtp()->get_upgrade_link( [ 'medium' => 'quick-link-menu' ] ), 'icon' => $icons_url . '/star.svg', 'bgcolor' => '#E27730', 'hover_bgcolor' => '#B85A1B', ], [ 'title' => esc_html__( 'Support & Docs', 'wp-mail-smtp' ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound 'url' => esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/docs/', [ 'medium' => 'quick-link-menu', 'content' => 'Support' ] ) ), 'icon' => $icons_url . '/life-ring.svg', ], [ 'title' => esc_html__( 'Follow on Facebook', 'wp-mail-smtp' ), 'url' => 'https://www.facebook.com/wpmailsmtp', 'icon' => $icons_url . '/facebook.svg', ], [ 'title' => esc_html__( 'Suggest a Feature', 'wp-mail-smtp' ), // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound 'url' => esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/suggest-a-feature/', [ 'medium' => 'quick-link-menu', 'content' => 'Feature' ] ) ), 'icon' => $icons_url . '/lightbulb.svg', ], ]; if ( wp_mail_smtp()->is_pro() ) { array_shift( $items ); } /** * Filters quick links items. * * @since 3.0.0 * * @param array $items { * Quick links items. * * @type string $title Item title. * @type string $url Item link. * @type string $icon Item icon url. * @type string $bgcolor Item background color (optional). * @type string $hover_bgcolor Item background color on hover (optional). * } */ return apply_filters( 'wp_mail_smtp_admin_flyout_menu_menu_items', $items ); } }