Created
February 4, 2016 21:06
-
-
Save dlenettr/3c34784e4a8720024b7a to your computer and use it in GitHub Desktop.
Favorites tagı kullanımı (1685)
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
// favorites tag | |
if ( $is_logged ) { | |
if ( empty( $member_id['favorites'] ) ) { | |
$tpl->set_block( "'\\[favorites\\](.*?)\\[/favorites\\]'si", "" ); | |
} else { | |
$tpl->set_block( "'\\[favorites\\](.*?)\\[/favorites\\]'si", "\\1" ); | |
} | |
} else { | |
$tpl->set_block( "'\\[favorites\\](.*?)\\[/favorites\\]'si", "" ); | |
} | |
// favorites tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment