diff options
author | Arno Richter <oelna@oelna.de> | 2023-08-16 14:52:58 +0200 |
---|---|---|
committer | Arno Richter <oelna@oelna.de> | 2023-08-16 14:52:58 +0200 |
commit | 66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5 (patch) | |
tree | fa54ab21d4c6122df124459030dd5c6af723f1af /snippets | |
parent | ff2858b6ea8f586daa95e51ae21315f86cc5ded5 (diff) | |
download | microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.tar.gz microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.tar.bz2 microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.zip |
huge update to implement first version of activitypub support. closes #16. AP and subdir hosting are incompatible!
Diffstat (limited to 'snippets')
-rw-r--r-- | snippets/header.snippet.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/snippets/header.snippet.php b/snippets/header.snippet.php index cc0becb..ca746b9 100644 --- a/snippets/header.snippet.php +++ b/snippets/header.snippet.php @@ -2,7 +2,7 @@ $title_suffix = isset($title_suffix) ? ' - ' . $title_suffix : ''; $css = 'microblog'; // the default - if(!empty($config['theme']) && file_exists(ROOT.DS.'css'.DS.$config['theme'].'.css')) { + if(!empty($config['theme']) && file_exists(ROOT.DS.'css'.DS.$config['theme'].DS.$config['theme'].'.css')) { $css = $config['theme']; } @@ -16,7 +16,12 @@ <title><?= empty($config['microblog_account']) ? "" : $config['microblog_account'] . "'s "; ?>micro.blog<?= $title_suffix ?></title> <meta name="viewport" content="width=device-width, initial-scale=1" /> - + <meta name="apple-mobile-web-app-capable" content="yes" /> + <link rel="apple-touch-icon" href="<?= $config['url'] ?>/favicon-large.png" /> + <!-- <link rel="apple-touch-startup-image" href="launch.png"> --> + <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> + <meta name="apple-mobile-web-app-title" content="<?= $config['site_title'] ?>"> + <link rel="alternate" type="application/json" title="JSON Feed" href="<?= $config['url'] ?>/feed/json" /> <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="<?= $config['url'] ?>/feed/atom" /> <?php if($config['xmlrpc']): ?><link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?= $config['url'] ?>/rsd" /><?php endif; ?> @@ -27,8 +32,10 @@ <?php if(!empty($config['microblog_account'])): ?> <link href="https://micro.blog/<?= ltrim($config['microblog_account'], '@') ?>" rel="me" /> <?php endif; ?> - - <link rel="stylesheet" href="<?= $config['url'] ?>/css/<?= $css ?>.css" /> + + <link rel="icon" href="<?= $config['url'] ?>/favicon.ico" /> + + <link rel="stylesheet" href="<?= $config['url'] ?>/css/<?= $css ?>/<?= $css ?>.css" /> <script src="<?= $config['url'] ?>/js/microblog.js" type="module" defer></script> </head> |