src/cm/templates/site/text_view_comments.html
changeset 482 00f61fe2430a
parent 480 b9b802261109
child 487 b2105d3dff5b
--- a/src/cm/templates/site/text_view_comments.html	Fri Jan 04 10:50:15 2013 +0100
+++ b/src/cm/templates/site/text_view_comments.html	Fri Jan 11 16:51:16 2013 +0100
@@ -6,7 +6,11 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     {% include "site/layout/req_yui.html" %}
     
+<link rel="stylesheet" type="text/css" href="{{ CM_MEDIA_PREFIX }}css/site/text_view_comments/fonts.css">
 <link rel="stylesheet" type="text/css" href="{{ CM_MEDIA_PREFIX }}css/site/text_view_comments/text_view_comments.css">
+{% if custom_css %}<style type="text/css">{% autoescape off %}{{ custom_css }}{% endautoescape %}</style>{% endif %} 
+{% if custom_font %}<style type="text/css">#textcontainer.custom { font-family: {% autoescape off %}{{ custom_font }}{% endautoescape %}; }</style>{% endif %} 
+{% if custom_titles_font %}<style type="text/css">#textcontainer.custom h1, #textcontainer.custom h2, #textcontainer.custom h3, #textcontainer.custom h4, #textcontainer.custom h5, #textcontainer.custom h6 { font-family: {% autoescape off %}{{ custom_titles_font }}{% endautoescape %}; }</style>{% endif %} 
 </head>
 
 <body>
@@ -82,6 +86,11 @@
 sv_get_params = "{{ get_params|escapejs }}" ;
 
 sv_media_url = "{{ CM_MEDIA_PREFIX|escapejs }}";
+{% if custom_font or custom_titles_font %} 
+  sv_custom_font = true;
+{% else %}
+  sv_custom_font = false;
+{% endif %}
 
 --></script>
 
@@ -110,7 +119,7 @@
 <script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/site/c_text_view_comments.js"></script> 
 <script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/asciimathtml/ASCIIMathML.js"></script>
 {% else %}
-<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/c_client-min.js?1357209524"></script> 
+<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/c_client-min.js?1357899756"></script> 
 <script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/asciimathtml/ASCIIMathML.min.js"></script>
 {% endif %}