mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
More specific filter
More specific filter for is_index function.
This commit is contained in:
parent
b59d9ffd55
commit
78d3aed14f
1 changed files with 1 additions and 1 deletions
|
|
@ -1383,7 +1383,7 @@ function is_front() {
|
|||
// TRUE if the current page is an index page like frontpage, tag index, archive index and search index.
|
||||
function is_index() {
|
||||
$req = $_SERVER['REQUEST_URI'];
|
||||
if(strpos($req, 'archive') !== false || strpos($req, 'tag') !== false || strpos($req, 'search') !== false){
|
||||
if(strpos($req, '/archive/') !== false || strpos($req, '/tag/') !== false || strpos($req, '/search/') !== false){
|
||||
return true;
|
||||
}
|
||||
elseif($req == site_path() . '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue