Procházet zdrojové kódy

Merge pull request #88 from TomWor/asset-title

Added asset name in page title if on detail page, fixes #79
Bojidar Marinov před 9 roky
rodič
revize
c7fb7b639d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      templates/_header.phtml

+ 1 - 1
templates/_header.phtml

@@ -17,7 +17,7 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
-  <title>Godot Asset Library</title>
+  <title><?php if(!empty($data['title'])){ echo(esc($data['title'].' - ')); } ?>Godot Asset Library</title>
 
   <!-- Bootstrap -->
   <link href="<?php echo raw($bowerpath) ?>/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">