Created
August 21, 2013 21:05
-
-
Save pippinsplugins/6300295 to your computer and use it in GitHub Desktop.
Modify the way event links are displayed on the calendar for Sugar Event Calendar
This file contains hidden or 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
function pw_sc_event_link( $link, $id, $size ) { | |
if ( $size == 'small' ) { | |
$link = '<a href="'. get_permalink( $id ) .'" title="' . esc_html( get_the_title( $id ) ) . '">•</a>'; | |
} else { | |
$link = '<a href="'. get_permalink( $id ) .'">'. esc_html( get_the_title( $id ) ) .'</a><br/>'; | |
} | |
return $link; | |
} | |
add_filter( 'sc_event_calendar_link', 'pw_sc_event_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment