Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1534260/cwd/plugins/better-search-replace/includes/ |
Upload File : |
<?php /** * Plugin footer functionality for the plugin * * @since 1.4.3 * * @package Better_Search_Replace * @subpackage Better_Search_Replace/includes */ // Prevent direct access. if ( ! defined( 'BSR_PATH' ) ) exit; class BSR_Plugin_Footer { /** * Filter admin footer text for BSR pages * * @param string $text * @return string * @handles admin_footer_text **/ public function admin_footer_text( $text ) { if ( ! BSR_Utils::is_bsr_screen() ) { return $text; } $product_link = BSR_Utils::external_link( BSR_Utils::bsr_url( '', [ 'utm_source' => 'bsr_free', 'utm_medium' => 'insideplugin', 'utm_campaign' => 'plugin_footer', 'utm_content' => 'footer_colophon' ] ), BSR_NAME ); $wpe_link = BSR_Utils::external_link( BSR_Utils::wpe_url( '', [ 'utm_source' => 'bsr_plugin', 'utm_content' => 'bsr_free_plugin_footer_text' ] ), 'WP Engine' ); return sprintf( /* translators: %1$s is a link to BSR's website, and %2$s is a link to WP Engine's website. */ __( '%1$s is developed and maintained by %2$s.', 'better-search-replace' ), $product_link, $wpe_link ); } /** * Filter update footer text for BSR pages * * @param string $content * @return string * @handles update_footer **/ public function update_footer( $content ) { if ( ! BSR_Utils::is_bsr_screen() ) { return $content; } $utm_params = [ 'utm_source' => 'bsr_free', 'utm_campaign' => 'plugin_footer', 'utm_content' => 'footer_navigation' ]; $links[] = BSR_Utils::external_link( BSR_Utils::bsr_url( '/docs/', $utm_params ), __( 'Documentation', 'better-search-replace' ) ); $links[] = '<a href="' . BSR_Utils::plugin_page_url() . '&tab=bsr_help">' . __( 'Support', 'better-search-replace' ) . '</a>'; $links[] = BSR_Utils::external_link( BSR_Utils::bsr_url( '/feedback/', $utm_params ), __( 'Feedback', 'better-search-replace' ) ); if ( defined( 'BSR_NAME' ) && defined( 'BSR_VERSION' ) ) { $links[] = BSR_NAME . ' ' . BSR_VERSION; } return join( ' ∙ ', $links ); } }