Created
October 17, 2011 14:28
-
-
Save GaryJones/1292713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Build all of the action links */ | |
$rendered .= '<p>'; | |
$rendered .= '<a href="' . add_query_arg( 'page', $this->menu, admin_url( 'themes.php' ) ) . '">' . __( 'Begin installing plugins', $this->domain ) . '</a> | '; | |
$rendered .= '<a href="' . admin_url( 'plugins.php' ) . '">' . __( 'Activate installed plugins', $this->domain ) . '</a> | '; | |
$rendered .= '<a class="dismiss-notice" href="' . add_query_arg( 'dismiss', 'dismiss_admin_notices' ) . '" target="_parent">' . __( 'Dismiss this notice', $this->domain ) . '</a> '; | |
$rendered .= __( '(see Appearance > ' . $this->strings['menu_title'] . ' for future reference)', $this->domain ); | |
$rendered .= '</p>'; | |
// Swap to... | |
/** Define all of the action links */ | |
$action_links = apply_filters( 'tgmpa_notice_action_links', array( | |
'install' => '<a href="' . add_query_arg( 'page', $this->menu, admin_url( 'themes.php' ) ) . '">' . __( 'Begin installing plugins', $this->domain ) . '</a>', | |
'activate' => '<a href="' . admin_url( 'plugins.php' ) . '">' . __( 'Activate installed plugins', $this->domain ) . '</a>', | |
'dismiss' => '<a class="dismiss-notice" href="' . add_query_arg( 'dismiss', 'dismiss_admin_notices' ) . '" target="_parent">' . __( 'Dismiss this notice', $this->domain ) . '</a> ' . sprintf( __( '(see Appearance > %s for future reference)', $this->domain ), $this->strings['menu_title'] ), | |
); | |
if ( $action_links ) | |
$rendered .= '<p>' . implode( ' | ', $action_links ) . '</p>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment