Commit f7feb4f6 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_slideshow_style: allow to load fonts from https

parent ba0eb349
...@@ -52,12 +52,14 @@ ...@@ -52,12 +52,14 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
css_link = context.REQUEST.get("css_link", "slides.css")\n
\n
return"""<!DOCTYPE html>\n return"""<!DOCTYPE html>\n
<html>\n <html>\n
<head>\n <head>\n
<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n
<link href="http://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">\n <link href="//fonts.googleapis.com/css?family=Oswald" rel="stylesheet">\n
<link rel="stylesheet" type="text/css" href="slides.css">\n <link rel="stylesheet" type="text/css" href="%s">\n
<script type="text/javascript" src="slides.js"></script>\n <script type="text/javascript" src="slides.js"></script>\n
<meta charset="utf-8">\n <meta charset="utf-8">\n
<title>%s</title>\n <title>%s</title>\n
...@@ -66,7 +68,7 @@ return"""<!DOCTYPE html>\n ...@@ -66,7 +68,7 @@ return"""<!DOCTYPE html>\n
<body>\n <body>\n
%s \n %s \n
</body>\n </body>\n
</html>""" % (context.getTitle(), context.getTextContent())\n </html>""" % (css_link, context.getTitle(), context.getTextContent())\n
]]></string> </value> ]]></string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment