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=7d7fe968dd0d2654779c04842229744b9d214ac7;hpb=bb91a8c6e8649d482a552b64c6a0c8e65c6becd7;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 7d7fe968..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,78 @@ - Shaarli - Download CSS styles from an OPML list + Shaarli – Download CSS styles from an OPML list - +

Download CSS styles from an OPML list

Download CSS styles for shaarlis listed in an opml file

Example php script:

-
<!---- ?php -->
+
<!---- ?php -->
 <!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
 <!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
 
@@ -131,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) {
@@ -183,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)  {
@@ -226,6 +252,6 @@ code > span.er { color: #ff0000; font-weight: bold; }
 $knownStyles = findKnownStyles();
 copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
 
-<!--- ? ---->
+<!--- ? ---->