X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FDownload-CSS-styles-from-an-OPML-list.html;h=18cc5d9a8cbf5c9d692a5b4033bccf4353553ab5;hb=f210d94f716acd86fd22c9651f591a778490e8a9;hp=b21a54bdbcb067b7595a5a3ee9a14f4593af80f1;hpb=27cf2e671d1f35bd8c9383d008cd3733fc1c6e0d;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html index b21a54bd..18cc5d9a 100644 --- a/doc/Download-CSS-styles-from-an-OPML-list.html +++ b/doc/Download-CSS-styles-from-an-OPML-list.html @@ -4,53 +4,80 @@ -
Example php script:
-<!---- ?php -->
+<!---- ?php -->
<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
@@ -129,7 +157,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
function copyUserStyleFrom($url, $name, $knownStyles) {
$userStyle = $url."inc/user.css";
if(in_array($url, $knownStyles)) {
- // TODO add log message
+ // TODO add log message
} else {
$statusCode = get_http_response_code($userStyle);
if(intval($statusCode)<300) {
@@ -181,8 +209,8 @@ code > span.er { color: #ff0000; font-weight: bold; }
/**
* Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
- * @param directory the directory we want to list files of
- * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
+ * @param directory the directory we want to list files of
+ * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
* are not listed here
*/
function getDirectoryList ($directory) {
@@ -224,6 +252,6 @@ code > span.er { color: #ff0000; font-weight: bold; }
$knownStyles = findKnownStyles();
copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
-<!--- ? ---->
+<!--- ? ---->