Преглед на файлове

Evolution #603: Système de feedback

Sevajol Bastien преди 11 години
родител
ревизия
91fa03464a
променени са 2 файла, в които са добавени 33 реда и са изтрити 0 реда
  1. 29 0
      src/Muzich/CoreBundle/Resources/views/Layout/head_js.html.twig
  2. 4 0
      src/Muzich/CoreBundle/Resources/views/layout.html.twig

+ 29 - 0
src/Muzich/CoreBundle/Resources/views/Layout/head_js.html.twig Целия файл

@@ -27,6 +27,35 @@
27 27
   });
28 28
 </script>
29 29
 
30
+{% if app.user %}
31
+  <script type='text/javascript'>
32
+    
33
+    var _ues = {
34
+    host:'muzich.userecho.com',
35
+    forum:'17651',
36
+    lang:'fr',
37
+    tab_corner_radius:5,
38
+    tab_font_size:20,
39
+    tab_image_hash:'Vm9zIHJldG91cnM%3D',
40
+    tab_chat_hash:'Y2hhdA%3D%3D',
41
+    tab_alignment:'right',
42
+    tab_text_color:'#000000',
43
+    tab_text_shadow_color:'#66666655',
44
+    tab_bg_color:'#F4F4F4',
45
+    tab_hover_color:'#D5D5D5'
46
+    };
47
+  
48
+  $(document).ready(function(){  
49
+  (function() {
50
+      var _ue = document.createElement('script'); _ue.type = 'text/javascript'; _ue.async = true;
51
+      _ue.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.userecho.com/js/widget-1.4.gz.js';
52
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_ue, s);
53
+    })();
54
+  });
55
+  
56
+  </script>
57
+{% endif %}
58
+
30 59
 <script type="text/javascript">
31 60
   string_follow_stop = "{{ 'user.stop_follow'|trans({}, 'users') }}";
32 61
   string_follow_following = "{{ 'user.following'|trans({}, 'users') }}";

+ 4 - 0
src/Muzich/CoreBundle/Resources/views/layout.html.twig Целия файл

@@ -12,6 +12,10 @@
12 12
     {% include 'MuzichCoreBundle:Autoplay:autoplay.html.twig' %}
13 13
   
14 14
   <div id="container">
15
+    
16
+    {% if app.user %}
17
+      <a onmouseover="UE.Popin.preload();" href="#" onclick="UE.Popin.show(); return false;">Vos retours</a>
18
+    {% endif %}
15 19
   
16 20
     <div id="main_content">
17 21