mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
Prepare for release
Prepare for releasing v1.6
This commit is contained in:
parent
78d3aed14f
commit
82a3acc928
4 changed files with 7 additions and 10 deletions
|
|
@ -1383,10 +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){
|
||||
return true;
|
||||
}
|
||||
elseif($req == site_path() . '/') {
|
||||
if(strpos($req, '/archive/') !== false || strpos($req, '/tag/') !== false || strpos($req, '/search/') !== false || $req == site_path() . '/'){
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue