This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ************************************************************************** | |
| Copyright 2012 Calvin Rien | |
| (http://the.darktable.com) | |
| Derived from a method in BuildManager, part of | |
| VoxelBoy's Unite 2012 Advanced Editor Scripting Talk. | |
| (http://bit.ly/EditorScripting) | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function parseFavicon($html) { | |
| $s = '[ \t\r\n]*?'; | |
| // Get the 'href' attribute value in a <link rel="icon" ... /> | |
| // Also works for IE style: <link rel="shortcut icon" href="http://www.example.com/myicon.ico" /> | |
| // And for iOS style: <link rel="apple-touch-icon" href="somepath/image.ico"> | |
| $matches = array(); | |
| // Search for <link rel="icon" type="image/png" href="http://example.com/icon.png" /> | |
| ; |
NewerOlder