Explorar el Código

Merge pull request #1712 from Yann-J/homescreen-icon

Apple homescreen icon
causefx hace 4 años
padre
commit
4e536f5b07
Se han modificado 2 ficheros con 8 adiciones y 4 borrados
  1. 2 2
      api/classes/organizr.class.php
  2. 6 2
      index.php

+ 2 - 2
api/classes/organizr.class.php

@@ -366,7 +366,7 @@ class Organizr
 			],
 			411 => [
 				'type' => 'Length Required',
-				'description' => 'The request can not be processed without a "Content-Length" header field'
+				'description' => 'The request can not be processed without a “Content-Length” header field'
 			],
 			412 => [
 				'type' => 'Precondition Failed',
@@ -5777,7 +5777,7 @@ class Organizr
 				foreach ($contents as $content) {
 					$html = $content->innerHtml;
 					preg_match('/(@[a-zA-Z])\w+/', $html, $username);
-					preg_match('/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'\".,<>?«»""\'\']))/', $html, $image);
+					preg_match('/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'\".,<>?«»“”‘’]))/', $html, $image);
 					if (isset($image[0]) && isset($username[0])) {
 						$sponsors[] = [
 							'name' => str_replace('@', '', $username[0]),

+ 6 - 2
index.php

@@ -8,11 +8,15 @@ $Organizr = new Organizr();
 <head>
     <meta charset="utf-8">
     <meta content="IE=edge" http-equiv="X-UA-Compatible">
-    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
+    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" name="viewport">
     <meta content="<?php echo $Organizr->config['description']; ?>" name="description">
     <meta content="CauseFX" name="author">
-	<?php echo $Organizr->favIcons(); ?>
+    <?php echo $Organizr->favIcons(); ?>
     <title><?php echo $Organizr->config['title']; ?></title>
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="application-name" content="<?php echo $Organizr->config['title']; ?>">
+    <meta name="apple-mobile-web-app-title" content="<?php echo $Organizr->config['title']; ?>">
     <link href="bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
     <link href="plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
     <link href="plugins/bower_components/jquery-wizard-master/css/wizard.css" rel="stylesheet">