Created
February 1, 2016 22:19
DLE önceki konu, sonraki konu eklentisi (PHP) (634)
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
// Önceki sonraki konu eklentisi | |
if ( $dle_module == "showfull" ) { | |
if ( isset( $prev_news ) && $prev_news ) { | |
$tpl->set( '{prev-link}', get_full_link( $prev_news['id'], $prev_news['category'], $prev_news['alt_name'], $prev_news['date'] ) ); | |
$tpl->set_block( "'\\[prev-news\\](.*?)\\[/prev-news\\]'si", "\\1" ); | |
} else { | |
$tpl->set_block( "'\\[prev-news\\](.*?)\\[/prev-news\\]'si", "" ); | |
} | |
if ( isset( $next_news ) && $next_news ) { | |
$tpl->set( '{next-link}', get_full_link( $next_news['id'], $next_news['category'], $next_news['alt_name'], $next_news['date'] ) ); | |
$tpl->set_block( "'\\[next-news\\](.*?)\\[/next-news\\]'si", "\\1" ); | |
} else { | |
$tpl->set_block( "'\\[next-news\\](.*?)\\[/next-news\\]'si", "" ); | |
} | |
} | |
// Önceki sonraki konu eklentisi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment