Преглед изворни кода

Premiere phase de reorganisation du code.

Sevajol Bastien пре 12 година
родитељ
комит
c403169dc6
38 измењених фајлова са 622 додато и 694 уклоњено
  1. 1 3
      src/Muzich/AdminBundle/Resources/views/Moderate/layout.html.twig
  2. 3 2
      src/Muzich/CoreBundle/Controller/SearchController.php
  3. 72 0
      src/Muzich/CoreBundle/Resources/views/Autoplay/autoplay.html.twig
  4. 45 0
      src/Muzich/CoreBundle/Resources/views/Component/element_add_box.html.twig
  5. 15 0
      src/Muzich/CoreBundle/Resources/views/Component/element_add_buttons.html.twig
  6. 4 0
      src/Muzich/CoreBundle/Resources/views/Component/element_add_buttons_topright.html.twig
  7. 12 0
      src/Muzich/CoreBundle/Resources/views/Component/element_added_to_group.html.twig
  8. 4 0
      src/Muzich/CoreBundle/Resources/views/Component/element_autoplay_button.html.twig
  9. 5 5
      src/Muzich/CoreBundle/Resources/views/GlobalSearch/results.html.twig
  10. 16 0
      src/Muzich/CoreBundle/Resources/views/Layout/flash_messages.html.twig
  11. 11 0
      src/Muzich/CoreBundle/Resources/views/Layout/footer.html.twig
  12. 9 0
      src/Muzich/CoreBundle/Resources/views/Layout/head.html.twig
  13. 12 0
      src/Muzich/CoreBundle/Resources/views/Layout/head_css.html.twig
  14. 72 0
      src/Muzich/CoreBundle/Resources/views/Layout/head_js.html.twig
  15. 21 0
      src/Muzich/CoreBundle/Resources/views/Layout/header.html.twig
  16. 10 0
      src/Muzich/CoreBundle/Resources/views/Layout/noscript.html.twig
  17. 16 0
      src/Muzich/CoreBundle/Resources/views/Layout/side.html.twig
  18. 19 0
      src/Muzich/CoreBundle/Resources/views/Layout/social.html.twig
  19. 25 0
      src/Muzich/CoreBundle/Resources/views/Menu/access.html.twig
  20. 0 51
      src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig
  21. 38 0
      src/Muzich/CoreBundle/Resources/views/Menu/main_menu.html.twig
  22. 18 1
      src/Muzich/CoreBundle/Resources/views/SearchElement/default.html.twig
  23. 14 15
      src/Muzich/CoreBundle/Resources/views/SearchElement/more_button.html.twig
  24. 8 321
      src/Muzich/CoreBundle/Resources/views/layout.html.twig
  25. 17 18
      src/Muzich/FavoriteBundle/Resources/views/Favorite/myList.html.twig
  26. 17 18
      src/Muzich/FavoriteBundle/Resources/views/Favorite/userList.html.twig
  27. 1 3
      src/Muzich/GroupBundle/Resources/views/layout.html.twig
  28. 16 0
      src/Muzich/HomeBundle/Resources/views/Component/filter_menu.html.twig
  29. 37 99
      src/Muzich/HomeBundle/Resources/views/Home/index.html.twig
  30. 13 20
      src/Muzich/HomeBundle/Resources/views/Home/need_tags.html.twig
  31. 27 51
      src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig
  32. 23 57
      src/Muzich/HomeBundle/Resources/views/Show/showUser.html.twig
  33. 1 7
      src/Muzich/HomeBundle/Resources/views/layout.html.twig
  34. 1 3
      src/Muzich/MynetworkBundle/Resources/views/layout.html.twig
  35. 9 14
      src/Muzich/UserBundle/Resources/views/Event/elements.html.twig
  36. 2 4
      src/Muzich/UserBundle/Resources/views/layout.html.twig
  37. 2 2
      web/bundles/muzichcore/css/old.css
  38. 6 0
      web/css/main.css

+ 1 - 3
src/Muzich/AdminBundle/Resources/views/Moderate/layout.html.twig Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 {% extends 'MuzichCoreBundle::layout.html.twig' %}
2 2
 
3 3
 {% block css %}
4
-	<link href="{{ asset('bundles/muzichmoderate/css/moderate.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+  <link href="{{ asset('bundles/muzichmoderate/css/moderate.css') }}" rel="stylesheet" media="screen" type="text/css" />
5 5
 {% endblock %}
6 6
 {% block js %}
7 7
   <script src="{{ asset('bundles/muzichmoderate/js/moderate.js') }}" type="text/javascript"></script>
@@ -9,8 +9,6 @@
9 9
 
10 10
 {% block main_content %}
11 11
   
12
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': null } %}
13
-  
14 12
   {% block content %}{% endblock %}
15 13
   
16 14
 {% endblock %}

+ 3 - 2
src/Muzich/CoreBundle/Controller/SearchController.php Прегледај датотеку

@@ -214,12 +214,13 @@ class SearchController extends Controller
214 214
     
215 215
     $elements = $search->getElements($this->getDoctrine(), $this->getUserId());
216 216
       
217
-    return $this->searchElementsMore($elements, false,
217
+    return $this->searchElementsMore($elements,
218 218
       $this->trans(
219 219
         'elements.ajax.more.noelements', 
220 220
         array(), 
221 221
         'elements'
222
-      )
222
+      ),
223
+      null
223 224
     );
224 225
   }
225 226
     

+ 72 - 0
src/Muzich/CoreBundle/Resources/views/Autoplay/autoplay.html.twig Прегледај датотеку

@@ -0,0 +1,72 @@
1
+<div id="autoplay" class="popin_block" style="display: none;">
2
+      
3
+  <a href="javascript:void(0);" id="autoplay_previous">
4
+    <img src="{{ asset('/bundles/muzichcore/img/autoplay_previous.png') }}" alt="previous" />
5
+  </a>
6
+  
7
+  <a href="javascript:void(0);" id="autoplay_close" >
8
+    <img src="{{ asset('/bundles/muzichcore/img/1317386146_cancel.png') }}" alt="close" />
9
+  </a>
10
+  
11
+  <a href="javascript:void(0);" id="autoplay_next">
12
+    <img src="{{ asset('/bundles/muzichcore/img/autoplay_next.png') }}" alt="next" />
13
+  </a>
14
+  
15
+  <img id="autoplay_element_loader" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loader" />
16
+  <ul id="autoplay_element"><li class="element" id="autoplay_element_container"></li></ul>
17
+  <div id="autoplay_player_container">
18
+    <div id="autoplay_player"></div>
19
+  </div>
20
+  <div id="autoplay_player_soundcloud"></div>
21
+  <div id="autoplay_player_generic" style="display: none;">
22
+    <div id="jquery_jplayer_1" class="jp-jplayer"></div>
23
+    <div id="jp_container_1" class="jp-audio">
24
+      <div class="jp-type-playlist">
25
+        <div class="jp-gui jp-interface">
26
+          <ul class="jp-controls">
27
+            <li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
28
+            <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
29
+            <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
30
+            <li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
31
+            <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
32
+            <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
33
+            <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
34
+            <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
35
+          </ul>
36
+          <div class="jp-progress">
37
+            <div class="jp-seek-bar">
38
+              <div class="jp-play-bar"></div>
39
+            </div>
40
+          </div>
41
+          <div class="jp-volume-bar">
42
+            <div class="jp-volume-bar-value"></div>
43
+          </div>
44
+          <div class="jp-time-holder">
45
+            <div class="jp-current-time"></div>
46
+            <div class="jp-duration"></div>
47
+          </div>
48
+          <ul class="jp-toggles" style="display: none;">
49
+            <li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li>
50
+            <li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li>
51
+            <li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
52
+            <li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
53
+          </ul>
54
+        </div>
55
+        <div class="jp-playlist">
56
+          <ul>
57
+            <li></li>
58
+          </ul>
59
+        </div>
60
+        <div class="jp-no-solution">
61
+          <span>Update Required</span>
62
+          To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
63
+        </div>
64
+      </div>
65
+    </div>
66
+  </div>
67
+  <img id="autoplay_loader" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loader" />
68
+  <p id="autoplay_noelements_text" style="display: none;">{{ 'elements.autoplay.noelements.text'|trans({}, 'elements') }}</p>
69
+      
70
+  <p><span class="sinfo">{{ 'autoplay.limitations_players'|trans({}, 'userui') }}</span></p>
71
+
72
+</div>

+ 45 - 0
src/Muzich/CoreBundle/Resources/views/Component/element_add_box.html.twig Прегледај датотеку

@@ -0,0 +1,45 @@
1
+{% if box_title is not defined %}
2
+  {% set box_title = '' %}
3
+{% endif %}
4
+{% if group_slug is not defined %}
5
+  {% set group_slug = '' %}
6
+{% endif %}
7
+{% if show_add_to_group is not defined %}
8
+  {% set show_add_to_group = true %}
9
+{% endif %}
10
+
11
+{% if not group_slug %}
12
+  {% set form_action = path('element_add') %}
13
+{% else %}
14
+  {% set form_action = path('element_add', {'group_slug' : group_slug}) %}
15
+{% endif %}
16
+
17
+<div id="element_add_box" style="display: none;">
18
+  
19
+  {% if box_title %}
20
+    <h2>{{ box_title }}</h2>
21
+  {% endif %}
22
+  
23
+  {% if group_slug %}
24
+    <input type="hidden" id="add_element_group_page" value="{{ group_slug }}" />
25
+  {% endif %}
26
+  
27
+  <form novalidate name="{{ add_form_name }}" 
28
+    {% if  app.environment != 'test' %}
29
+      action="{{ path('element_retrieve_api_datas') }}" method="post" {{ form_enctype(add_form) }}
30
+    {% else %}
31
+      action="{{ form_action }}" method="post" {{ form_enctype(add_form) }}
32
+    {% endif %}
33
+  >
34
+  
35
+    {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 
36
+      'form'          : add_form, 
37
+      'form_name'     : add_form_name
38
+    } %}
39
+  
40
+  </form>
41
+</div>
42
+
43
+{% if show_add_to_group %}
44
+  {% include 'MuzichCoreBundle:Component:element_added_to_group.html.twig' %}
45
+{% endif %}

+ 15 - 0
src/Muzich/CoreBundle/Resources/views/Component/element_add_buttons.html.twig Прегледај датотеку

@@ -0,0 +1,15 @@
1
+{% if add_class is not defined %}
2
+  {% set add_class = ''%}
3
+{% endif %}
4
+{% if close_class is not defined %}
5
+  {% set close_class = ''%}
6
+{% endif %}
7
+
8
+<a href="#" id="element_add_link" class="button gradient {{ add_class }}">
9
+  {{ 'home.add_element'|trans({}, 'navigationui') }}
10
+  <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
11
+</a>
12
+<a href="#" id="element_add_close_link" class="button gradient {{ close_class }}" style="display: none;">
13
+  {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
14
+  <img src="{{ asset('/img/icon_dart_left_white.png') }}" alt="" />
15
+</a>

+ 4 - 0
src/Muzich/CoreBundle/Resources/views/Component/element_add_buttons_topright.html.twig Прегледај датотеку

@@ -0,0 +1,4 @@
1
+{% include 'MuzichCoreBundle:Component:element_add_buttons.html.twig' with {
2
+  'add_class'   : 'justtopright',
3
+  'close_class' : 'justtopright',
4
+} %}

+ 12 - 0
src/Muzich/CoreBundle/Resources/views/Component/element_added_to_group.html.twig Прегледај датотеку

@@ -0,0 +1,12 @@
1
+<div id="added_element_to_group" style="display: none;">
2
+  <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
3
+  <p class="help">
4
+    {{ 'element_add.added_to_group.sentence'|trans({}, 'userui') }}
5
+  </p>
6
+  <ul id="groups_to_add_element"></ul>
7
+  <p class="cancel">
8
+    <a href="" class="cancel">
9
+      {{ 'element_add.added_to_group.nothanks'|trans({}, 'userui') }}
10
+    </a>
11
+  </p>
12
+</div>

+ 4 - 0
src/Muzich/CoreBundle/Resources/views/Component/element_autoplay_button.html.twig Прегледај датотеку

@@ -0,0 +1,4 @@
1
+<a href="{{ autoplay_path }}" class="button" id="autoplay_launch" 
2
+   title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
3
+  <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
4
+</a>

+ 5 - 5
src/Muzich/CoreBundle/Resources/views/GlobalSearch/results.html.twig Прегледај датотеку

@@ -49,11 +49,11 @@
49 49
           'elements'          : results.elements
50 50
         }%}
51 51
         
52
-        {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
53
-          'display_more_button' : display_more_button,
54
-          'elements_length'     : results.elements|length,
55
-          'more_path'           : 'global_search_elements_empty'
56
-        }%}
52
+        {% if display_more_button and results.elements|length %}
53
+          {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
54
+            'more_path'           : path('global_search_elements_empty')
55
+          }%}
56
+        {% endif %}
57 57
         
58 58
       {% endif %}
59 59
         

+ 16 - 0
src/Muzich/CoreBundle/Resources/views/Layout/flash_messages.html.twig Прегледај датотеку

@@ -0,0 +1,16 @@
1
+{% for key, flash in app.session.getFlashes() %}
2
+  <div class="{{ key }} message">
3
+    <a class="message-close" href="javascript:void(0);" title="fermer"><img alt="close" src="{{ asset('bundles/muzichcore/img/1317386146_cancel.png') }}" /></a>
4
+    <h3>{{ flash|trans({}, 'flash') }}</h3>
5
+  </div>
6
+
7
+  {% if key == 'success' %}
8
+  <script type="text/javascript" >
9
+    $(document).ready(function(){
10
+      window.setTimeout(function(){
11
+        $('div.success').slideUp();
12
+      }, 3000);
13
+    });
14
+  </script>
15
+  {% endif %}
16
+{% endfor %}

+ 11 - 0
src/Muzich/CoreBundle/Resources/views/Layout/footer.html.twig Прегледај датотеку

@@ -0,0 +1,11 @@
1
+<div id="footer_content">
2
+      
3
+  <div id="footer_logo">
4
+    <img src="{{ asset('/img/icon_minilogo_3.png') }}" alt="footer_logo">
5
+    <span class="fotter_muzich_big">&copy; MUZI.CH</span>
6
+    Tous droits réservés muzi.ch 2012 - 2013
7
+  </div>
8
+  
9
+  {% include "MuzichCoreBundle:Info:container.html.twig" %}
10
+
11
+</div>

+ 9 - 0
src/Muzich/CoreBundle/Resources/views/Layout/head.html.twig Прегледај датотеку

@@ -0,0 +1,9 @@
1
+<meta http-equiv="content-type" content="text/html;charset=utf-8" />
2
+<meta http-equiv="Content-Style-Type" content="text/css" />
3
+<meta name="description" content="" />
4
+<meta name="keywords" content="" />
5
+<meta name="author" content="Bastien Sevajol" />
6
+<link href="apple-touch-icon.png" rel="apple-touch-icon" />
7
+
8
+{% include 'MuzichCoreBundle:Layout:head_css.html.twig' %}
9
+{% include 'MuzichCoreBundle:Layout:head_js.html.twig' %}

+ 12 - 0
src/Muzich/CoreBundle/Resources/views/Layout/head_css.html.twig Прегледај датотеку

@@ -0,0 +1,12 @@
1
+<link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon" />
2
+<link href="{{ asset('bundles/muzichcore/css/base.css') }}" rel="stylesheet" media="screen" type="text/css" />
3
+<link href="{{ asset('bundles/muzichcore/css/old.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+<link href="{{ asset('css/main.css') }}" rel="stylesheet" media="screen" type="text/css" />
5
+
6
+<!--[if gte IE 9]>
7
+  <style type="text/css">
8
+    .gradient, .button {
9
+       filter: none;
10
+    }
11
+  </style>
12
+<![endif]-->

+ 72 - 0
src/Muzich/CoreBundle/Resources/views/Layout/head_js.html.twig Прегледај датотеку

@@ -0,0 +1,72 @@
1
+
2
+{% if  app.environment != 'prod' %}  
3
+  <script src="{{ asset('js/jquery-1.8.2.dev.js') }}" type="text/javascript"></script>
4
+{% else %}
5
+  <script src="{{ asset('js/jquery-1.8.2.prod.js') }}" type="text/javascript"></script>
6
+{% endif %}
7
+<script src="{{ asset('js/jquery-ui-1.8.7.min.js') }}" type="text/javascript"></script>
8
+<script src="{{ asset('bundles/muzichcore/js/muzich.js') }}" type="text/javascript"></script>
9
+<script src="{{ asset('js/lib/TagPrompt.js') }}" type="text/javascript"></script>
10
+
11
+<script type="text/javascript" src="{{ asset('js/swfobject.js') }}"></script> 
12
+
13
+<script src="http://connect.soundcloud.com/sdk.js"></script>
14
+<script src="http://w.soundcloud.com/player/api.js"></script>
15
+
16
+<script src="{{ asset('bundles/muzichcore/js/autoplay.js') }}" type="text/javascript"></script>
17
+
18
+{# jPlayer #}
19
+<link href="{{ asset('jplayer/skin/blue.monday/jplayer.blue.monday.css') }}" rel="stylesheet" type="text/css" />
20
+<script type="text/javascript" src="{{ asset('jplayer/js/jquery.jplayer.min.js') }}"></script>
21
+<script type="text/javascript" src="{{ asset('jplayer/js/jplayer.playlist.min.js') }}"></script>
22
+
23
+<script src="{{ asset('js/tags/jquery.autoGrowInput.js') }}" type="text/javascript"></script>
24
+<script src="{{ asset('js/tags/jquery.tagBox.js') }}" type="text/javascript"></script>
25
+<script src="{{ asset('js/formdefault/jquery.formdefaults.js') }}" type="text/javascript"></script>
26
+<script src="{{ asset('js/jquery.form-2.14.js') }}" type="text/javascript"></script>
27
+<script src="{{ asset('js/jConfirmAction/jconfirmaction.jquery.js') }}" type="text/javascript"></script>
28
+<script type="text/javascript">
29
+  string_follow_stop = "{{ 'user.stop_follow'|trans({}, 'users') }}";
30
+  string_follow_following = "{{ 'user.following'|trans({}, 'users') }}";
31
+  string_follow_follow = "{{ 'user.follow'|trans({}, 'users') }}";
32
+  string_tag_add_title = "{{ 'tags.add.title'|trans({}, 'userui') }}";
33
+  string_tag_add_text = "{{ 'tags.add.text'|trans({}, 'userui') }}";
34
+  string_tag_add_argument = "{{ 'tags.add.argument'|trans({}, 'userui') }}";
35
+  string_tag_add_inputs_cancel = "{{ 'tags.add.inputs.cancel'|trans({}, 'userui') }}";
36
+  string_tag_add_inputs_submit = "{{ 'tags.add.inputs.submit'|trans({}, 'userui') }}";
37
+  string_element_delete_confirm_sentence = "{{ 'element.remove.confirm.sentence'|trans({}, 'elements') }}";
38
+  string_element_delete_confirm_yes = "{{ 'element.remove.confirm.yes'|trans({}, 'elements') }}";
39
+  string_element_delete_confirm_no = "{{ 'element.remove.confirm.no'|trans({}, 'elements') }}";
40
+  string_comment_delete_confirm_sentence = "{{ 'comment.remove.confirm.sentence'|trans({}, 'elements') }}";
41
+  string_comment_delete_confirm_yes = "{{ 'comment.remove.confirm.yes'|trans({}, 'elements') }}";
42
+  string_comment_delete_confirm_no = "{{ 'comment.remove.confirm.no'|trans({}, 'elements') }}";
43
+  string_tag_addtofav_confirm_sentence = "{{ 'element.tag.addtofav.confirm.sentence'|trans({}, 'elements') }}";
44
+  string_tag_addtofav_confirm_yes = "{{ 'element.tag.addtofav.confirm.yes'|trans({}, 'elements') }}";
45
+  string_tag_addtofav_confirm_no = "{{ 'element.tag.addtofav.confirm.no'|trans({}, 'elements') }}";
46
+  string_elementreport_confirm_sentence = "{{ 'element.report.confirm.sentence'|trans({}, 'userui') }}";
47
+  string_elementreport_confirm_yes = "{{ 'element.report.confirm.yes'|trans({}, 'userui') }}";
48
+  string_elementreport_confirm_no = "{{ 'element.report.confirm.no'|trans({}, 'userui') }}";
49
+  string_commentreport_confirm_sentence = "{{ 'comment.report.confirm.sentence'|trans({}, 'userui') }}";
50
+  string_commentreport_confirm_yes = "{{ 'comment.report.confirm.yes'|trans({}, 'userui') }}";
51
+  string_commentreport_confirm_no = "{{ 'comment.report.confirm.no'|trans({}, 'userui') }}";
52
+  string_elementreshare_confirm_sentence = "{{ 'element.reshare.confirm.sentence'|trans({}, 'userui') }}";
53
+  string_elementreshare_confirm_yes = "{{ 'element.reshare.confirm.yes'|trans({}, 'userui') }}";
54
+  string_elementreshare_confirm_no = "{{ 'element.reshare.confirm.no'|trans({}, 'userui') }}";
55
+  {% autoescape false %}
56
+  string_search_tag_title = "{{ 'search_tag.title'|trans({}, 'userui') }}";
57
+  {% endautoescape %}
58
+
59
+  url_index = "{{ path('index') }}";
60
+  url_search_tag = "{{ path('search_tag') }}";
61
+  url_get_favorites_tags = "{{ path('ajax_get_favorites_tags') }}";
62
+  url_add_tag = "{{ path('ajax_add_tag') }}";
63
+  url_element_new_count = "{{ path('element_new_count') }}";
64
+  url_element_new_get = "{{ path('element_new_get') }}";
65
+  url_global_search = "{{ path('global_search') }}";
66
+  url_datas_api = "{{ path('element_retrieve_api_datas') }}";
67
+  url_element_add = "{{ path('element_add') }}";
68
+  url_element_dom_get_one_autoplay = "{{ path('element_dom_get_one', {'type':'autoplay'}) }}";
69
+  url_element_get_stream_data = "{{ path('element_get_stream_data') }}";
70
+
71
+  url_img_ajax_loader = "{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}";
72
+</script>

+ 21 - 0
src/Muzich/CoreBundle/Resources/views/Layout/header.html.twig Прегледај датотеку

@@ -0,0 +1,21 @@
1
+<hgroup>
2
+  {% include "MuzichCoreBundle:Language:languages.html.twig" %}
3
+  
4
+  <!--<ul id="parameters"><li>
5
+      <a href="">
6
+        <img src="{{ asset('img/header_icon_params.png') }}" alt="parameters" />
7
+      </a>
8
+    </li>
9
+  </ul>-->
10
+  
11
+  <a id="header_logo" href="{{ path('index') }}" title="">
12
+    <img src="{{ asset('img/header_logo.png') }}" alt="logo" />
13
+  </a>
14
+  
15
+  {% include 'MuzichCoreBundle:Menu:access.html.twig' %}
16
+  
17
+  {% if app.user %}
18
+    {% include 'MuzichCoreBundle:Menu:main_menu.html.twig' %}
19
+  {% endif %}
20
+  
21
+</hgroup>

+ 10 - 0
src/Muzich/CoreBundle/Resources/views/Layout/noscript.html.twig Прегледај датотеку

@@ -0,0 +1,10 @@
1
+<noscript>
2
+  <div id="noscript_warning">
3
+    <p>
4
+      {{ 'noscript.message'|trans({}, 'messages') }}
5
+      <a href="{{ 'noscript.link_search'|trans({}, 'messages') }}" target="_blank">
6
+        {{ 'noscript.link_text'|trans({}, 'messages') }}
7
+      </a>
8
+    </p>
9
+  </div>
10
+</noscript>

+ 16 - 0
src/Muzich/CoreBundle/Resources/views/Layout/side.html.twig Прегледај датотеку

@@ -0,0 +1,16 @@
1
+{% if app.user %}
2
+  <div id="user_statusbox" class="nicebox">
3
+    {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
4
+      {% render "MuzichUserBundle:Event:infoBar" %}
5
+    {% endif %}
6
+  </div>
7
+
8
+  <div id="searchbox" class="nicebox">
9
+    {% render "MuzichCoreBundle:Search:renderGlobalSearchForm" %}
10
+  </div>
11
+  
12
+  {#{% include 'MuzichCoreBundle:Layout:social.html.twig' %}#}
13
+  
14
+  {% render 'MuzichCoreBundle:Core:renderSideMenu' %}
15
+
16
+{% endif %}

+ 19 - 0
src/Muzich/CoreBundle/Resources/views/Layout/social.html.twig Прегледај датотеку

@@ -0,0 +1,19 @@
1
+<div id="social" class="nicebox">
2
+  <ul class="social_links">
3
+    <li>
4
+      <a href="" >
5
+        <img src="{{ asset('/img/icon_facebook.png') }}" alt="facebook" />
6
+      </a>
7
+    </li>
8
+    <li>
9
+      <a href="" >
10
+        <img src="{{ asset('/img/icon_twitter.png') }}" alt="twitter" />
11
+      </a>
12
+    </li>
13
+    <li>
14
+      <a href="" >
15
+        <img src="{{ asset('/img/icon_googleplus.png') }}" alt="google plus" />
16
+      </a>
17
+    </li>
18
+  </ul>
19
+</div>

+ 25 - 0
src/Muzich/CoreBundle/Resources/views/Menu/access.html.twig Прегледај датотеку

@@ -0,0 +1,25 @@
1
+<ul id="register_and_login">
2
+  {% if not app.user %}
3
+    <!--<li>
4
+      <a href="" class="left">
5
+        Devenir membre
6
+      </a>
7
+    </li>
8
+    <li>
9
+      <a href="" class="right">
10
+        Connexion
11
+      </a>
12
+    </li>-->
13
+  {% else %}
14
+    <li>
15
+      <a href="{{ path('my_account') }}" class="left">
16
+        {{ 'top_bar.my_account'|trans({}, 'navigationui') }}
17
+      </a>
18
+    </li>
19
+    <li>
20
+      <a class="right" href="{{ path('fos_user_security_logout') }}">
21
+          {{ 'top_bar.logout'|trans({}, 'navigationui') }}
22
+      </a>
23
+    </li>
24
+  {% endif %}
25
+</ul>

+ 0 - 51
src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig Прегледај датотеку

@@ -1,51 +0,0 @@
1
-<!--
2
-{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
3
-
4
-  <ul id="top-tabs">
5
-    <li {% if active == 'public' %} class="active" {% endif %}>
6
-      <a href="{{ path('home') }}">
7
-        {{ 'container_menu.the_network'|trans({}, 'navigationui') }}
8
-      </a>
9
-    </li>
10
-    <li {% if active == 'private' %} class="active" {% endif %}>
11
-      <a href="{{ path('mynetwork_home') }}">
12
-        {{ 'container_menu.my_network'|trans({}, 'navigationui') }}
13
-      </a>
14
-    </li>
15
-    <li {% if active == 'needs-tags' %} class="active" {% endif %}>
16
-      <a href="{{ path('element_show_need_tags') }}">
17
-        {{ 'container_menu.need_tags'|trans({}, 'navigationui') }}
18
-      </a>
19
-    </li>
20
-  </ul>
21
-
22
-  <ul class="top-tabs-right">
23
-    <li {% if active == 'myfeeds' %} class="active" {% endif %}>
24
-      <a href="{{ path('show_user', {'slug': app.user.slug}) }}">
25
-        {{ 'container_menu.my_feeds'|trans({}, 'navigationui') }}
26
-      </a>
27
-    </li>
28
-    <li class="{% if active == 'mygroups' %}active{% endif %}">
29
-      <a href="{{ path('groups_own_list') }}" >
30
-        {{ 'network.mygroups'|trans({}, 'navigationui') }}
31
-      </a>
32
-    </li>
33
-    <li class="{% if active == 'myfavorites' %}active{% endif %}">
34
-      <a href="{{ path('favorites_my_list') }}" >
35
-        {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
36
-      </a>
37
-    </li>
38
-  </ul>
39
-
40
-{% else %}
41
-
42
-  <ul id="top-tabs" >
43
-    <li class="active">
44
-      <a href="{{ path('index') }}">
45
-        {{ 'container_menu.return'|trans({}, 'navigationui') }}
46
-      </a>
47
-    </li>
48
-  </ul>
49
-
50
-{% endif %}
51
--->

+ 38 - 0
src/Muzich/CoreBundle/Resources/views/Menu/main_menu.html.twig Прегледај датотеку

@@ -0,0 +1,38 @@
1
+<ul id="header_menu">
2
+    
3
+  {% if network_public is not defined %}
4
+    {% set network_public = '' %}
5
+  {% endif %}
6
+  
7
+  <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
8
+    <a href="{{ path('home') }}" class="all_network">
9
+      {{ 'filter.network_all'|trans({}, 'userui') }}
10
+    </a>
11
+  </li>
12
+  <li class="separator"></li>
13
+  <li class="{% if network_public == '0' and not ids_display %}selected{% endif %}">
14
+    <a href="{{ path('mynetwork_home') }}" class="my_network" >
15
+      {{ 'filter.network_my'|trans({}, 'userui') }}
16
+    </a>
17
+  </li>
18
+  <li class="separator"></li>
19
+  <li class="{% if app.request.get('topmenu') == 'showuser' and app.request.get('slug') == app.user.slug %}selected{% endif %}">
20
+    <a href="{{ path('show_user', {'slug': app.user.slug}) }}">
21
+      {{ 'container_menu.my_feeds'|trans({}, 'navigationui') }}
22
+    </a>
23
+  </li>
24
+  <li class="separator"></li>
25
+  {% if his_group is not defined %}{% set his_group = false %}{% endif %}
26
+  <li class="{% if app.request.get('topmenu') == 'mygroups' or his_group == true %}selected{% endif %}">
27
+    <a href="{{ path('groups_own_list') }}" >
28
+      {{ 'network.mygroups'|trans({}, 'navigationui') }}
29
+    </a>
30
+  </li>
31
+  <li class="separator"></li>
32
+  <li class="{% if app.request.get('topmenu') == 'myfavorites' %}selected{% endif %}">
33
+    <a href="{{ path('favorites_my_list') }}" >
34
+      {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
35
+    </a>
36
+  </li>
37
+  <li class="separator"></li>
38
+</ul>

+ 18 - 1
src/Muzich/CoreBundle/Resources/views/SearchElement/default.html.twig Прегледај датотеку

@@ -1,3 +1,16 @@
1
+{% if display_new_elements is not defined %}
2
+  {% set display_new_elements = false %}
3
+{% endif %}
4
+
5
+{% if display_new_elements %}
6
+  <div class="display_more_elements" style="display: none;">
7
+    <span></span>
8
+  </div>
9
+{% endif %}
10
+
11
+<div class="elements_loader_div">
12
+  <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
13
+</div>
1 14
 
2 15
 {% if elements|length %}
3 16
   {% if not app.request.isXmlHttpRequest %}<ul class="elements">{% endif %}
@@ -46,4 +59,8 @@
46 59
     {% endif %}
47 60
   </div>
48 61
 
49
-{% endif %}
62
+{% endif %}
63
+
64
+<div class="elements_loader_div">
65
+  <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
66
+</div>

+ 14 - 15
src/Muzich/CoreBundle/Resources/views/SearchElement/more_button.html.twig Прегледај датотеку

@@ -1,19 +1,18 @@
1
-<div class="elements_loader_div">
2
-  <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
3
-</div>
4
-
5
-{% if more_path_params is not defined %}
6
-  {% set more_path_params = {} %}
7
-{% endif %}
8
-
9 1
 {% if link_class is not defined %}
10 2
   {% set link_class = '' %}
11 3
 {% endif %}
4
+{% if more_url_path is not defined %}
5
+  {% set more_url_path = '' %}
6
+{% endif %}
12 7
 
13
-{% if display_more_button and elements_length %} 
14
-  <a href="{{ path(more_path, more_path_params) }}" class="elements_more {{ link_class }}">
15
-    <div>
16
-      {{ 'more'|trans({}, 'userui') }}
17
-    </div>
18
-  </a>
19
-{% endif %}
8
+{% if more_url_path %}
9
+  <input type="hidden" id="more_elements_url" value="{{ more_url_path }}" />
10
+{% endif %}
11
+<a
12
+  href="{{ more_path }}"
13
+  class="elements_more {{ link_class }}"
14
+>
15
+  <div>
16
+    {{ 'more'|trans({}, 'userui') }}
17
+  </div>
18
+</a>

+ 8 - 321
src/Muzich/CoreBundle/Resources/views/layout.html.twig Прегледај датотеку

@@ -1,291 +1,25 @@
1 1
 <!doctype html>
2
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
2
+<html>
3 3
   <head>
4 4
     <title>Muzi.ch - {% block title %}{% endblock %}</title>
5
-    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
6
-    <meta http-equiv="Content-Style-Type" content="text/css" />
7
-    <meta name="description" content="" />
8
-    <meta name="keywords" content="" />
9
-    <meta name="author" content="" />
10
-    <link href="apple-touch-icon.png" rel="apple-touch-icon" />
11
-
12
-    <link href="{{ asset('favicon.ico') }}" rel="icon" type="image/x-icon" />
13
-    <link href="{{ asset('bundles/muzichcore/css/base.css') }}" rel="stylesheet" media="screen" type="text/css" />
14
-    <link href="{{ asset('bundles/muzichcore/css/old.css') }}" rel="stylesheet" media="screen" type="text/css" />
15
-    <link href="{{ asset('css/main.css') }}" rel="stylesheet" media="screen" type="text/css" />
16
-
17
-    <!--[if gte IE 9]>
18
-      <style type="text/css">
19
-        .gradient, .button {
20
-           filter: none;
21
-        }
22
-      </style>
23
-    <![endif]-->
24
-    
5
+    {% include 'MuzichCoreBundle:Layout:head.html.twig' %}
25 6
     {% block css %}{% endblock %}
26
-    {% if  app.environment != 'prod' %}  
27
-    <script src="{{ asset('js/jquery-1.8.2.dev.js') }}" type="text/javascript"></script>
28
-    {% else %}
29
-    <script src="{{ asset('js/jquery-1.8.2.prod.js') }}" type="text/javascript"></script>
30
-    {% endif %}
31
-    <script src="{{ asset('js/jquery-ui-1.8.7.min.js') }}" type="text/javascript"></script>
32
-    <script src="{{ asset('bundles/muzichcore/js/muzich.js') }}" type="text/javascript"></script>
33
-    <script src="{{ asset('js/lib/TagPrompt.js') }}" type="text/javascript"></script>
34
-
35
-    <script type="text/javascript" src="{{ asset('js/swfobject.js') }}"></script> 
36
-    
37
-    <script src="http://connect.soundcloud.com/sdk.js"></script>
38
-    <script src="http://w.soundcloud.com/player/api.js"></script>
39
-
40
-    <script src="{{ asset('bundles/muzichcore/js/autoplay.js') }}" type="text/javascript"></script>
41
-
42
-    {# jPlayer #}
43
-    <link href="{{ asset('jplayer/skin/blue.monday/jplayer.blue.monday.css') }}" rel="stylesheet" type="text/css" />
44
-    <script type="text/javascript" src="{{ asset('jplayer/js/jquery.jplayer.min.js') }}"></script>
45
-    <script type="text/javascript" src="{{ asset('jplayer/js/jplayer.playlist.min.js') }}"></script>
46
-
47
-    <script src="{{ asset('js/tags/jquery.autoGrowInput.js') }}" type="text/javascript"></script>
48
-    <script src="{{ asset('js/tags/jquery.tagBox.js') }}" type="text/javascript"></script>
49
-    <script src="{{ asset('js/formdefault/jquery.formdefaults.js') }}" type="text/javascript"></script>
50
-    <script src="{{ asset('js/jquery.form-2.14.js') }}" type="text/javascript"></script>
51
-    <script src="{{ asset('js/jConfirmAction/jconfirmaction.jquery.js') }}" type="text/javascript"></script>
52
-    <script type="text/javascript">
53
-      string_follow_stop = "{{ 'user.stop_follow'|trans({}, 'users') }}";
54
-      string_follow_following = "{{ 'user.following'|trans({}, 'users') }}";
55
-      string_follow_follow = "{{ 'user.follow'|trans({}, 'users') }}";
56
-      string_tag_add_title = "{{ 'tags.add.title'|trans({}, 'userui') }}";
57
-      string_tag_add_text = "{{ 'tags.add.text'|trans({}, 'userui') }}";
58
-      string_tag_add_argument = "{{ 'tags.add.argument'|trans({}, 'userui') }}";
59
-      string_tag_add_inputs_cancel = "{{ 'tags.add.inputs.cancel'|trans({}, 'userui') }}";
60
-      string_tag_add_inputs_submit = "{{ 'tags.add.inputs.submit'|trans({}, 'userui') }}";
61
-      string_element_delete_confirm_sentence = "{{ 'element.remove.confirm.sentence'|trans({}, 'elements') }}";
62
-      string_element_delete_confirm_yes = "{{ 'element.remove.confirm.yes'|trans({}, 'elements') }}";
63
-      string_element_delete_confirm_no = "{{ 'element.remove.confirm.no'|trans({}, 'elements') }}";
64
-      string_comment_delete_confirm_sentence = "{{ 'comment.remove.confirm.sentence'|trans({}, 'elements') }}";
65
-      string_comment_delete_confirm_yes = "{{ 'comment.remove.confirm.yes'|trans({}, 'elements') }}";
66
-      string_comment_delete_confirm_no = "{{ 'comment.remove.confirm.no'|trans({}, 'elements') }}";
67
-      string_tag_addtofav_confirm_sentence = "{{ 'element.tag.addtofav.confirm.sentence'|trans({}, 'elements') }}";
68
-      string_tag_addtofav_confirm_yes = "{{ 'element.tag.addtofav.confirm.yes'|trans({}, 'elements') }}";
69
-      string_tag_addtofav_confirm_no = "{{ 'element.tag.addtofav.confirm.no'|trans({}, 'elements') }}";
70
-      string_elementreport_confirm_sentence = "{{ 'element.report.confirm.sentence'|trans({}, 'userui') }}";
71
-      string_elementreport_confirm_yes = "{{ 'element.report.confirm.yes'|trans({}, 'userui') }}";
72
-      string_elementreport_confirm_no = "{{ 'element.report.confirm.no'|trans({}, 'userui') }}";
73
-      string_commentreport_confirm_sentence = "{{ 'comment.report.confirm.sentence'|trans({}, 'userui') }}";
74
-      string_commentreport_confirm_yes = "{{ 'comment.report.confirm.yes'|trans({}, 'userui') }}";
75
-      string_commentreport_confirm_no = "{{ 'comment.report.confirm.no'|trans({}, 'userui') }}";
76
-      string_elementreshare_confirm_sentence = "{{ 'element.reshare.confirm.sentence'|trans({}, 'userui') }}";
77
-      string_elementreshare_confirm_yes = "{{ 'element.reshare.confirm.yes'|trans({}, 'userui') }}";
78
-      string_elementreshare_confirm_no = "{{ 'element.reshare.confirm.no'|trans({}, 'userui') }}";
79
-      {% autoescape false %}
80
-      string_search_tag_title = "{{ 'search_tag.title'|trans({}, 'userui') }}";
81
-      {% endautoescape %}
82
-
83
-      url_index = "{{ path('index') }}";
84
-      url_search_tag = "{{ path('search_tag') }}";
85
-      url_get_favorites_tags = "{{ path('ajax_get_favorites_tags') }}";
86
-      url_add_tag = "{{ path('ajax_add_tag') }}";
87
-      url_element_new_count = "{{ path('element_new_count') }}";
88
-      url_element_new_get = "{{ path('element_new_get') }}";
89
-      url_global_search = "{{ path('global_search') }}";
90
-      url_datas_api = "{{ path('element_retrieve_api_datas') }}";
91
-      url_element_add = "{{ path('element_add') }}";
92
-      url_element_dom_get_one_autoplay = "{{ path('element_dom_get_one', {'type':'autoplay'}) }}";
93
-      url_element_get_stream_data = "{{ path('element_get_stream_data') }}";
94
-
95
-      url_img_ajax_loader = "{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}";
96
-    </script>
97 7
     {% block js %}{% endblock %}
98
-
99 8
   </head>
100 9
   <body>
101 10
     
102
-    <noscript>
103
-    <div id="noscript_warning">
104
-      <p>
105
-        {{ 'noscript.message'|trans({}, 'messages') }}
106
-        <a href="{{ 'noscript.link_search'|trans({}, 'messages') }}" target="_blank">
107
-          {{ 'noscript.link_text'|trans({}, 'messages') }}
108
-        </a>
109
-      </p>
110
-    </div>
111
-  </noscript>
112
-    
113
-    <div id="autoplay" class="popin_block" style="display: none;">
114
-      
115
-      <a href="javascript:void(0);" id="autoplay_previous">
116
-        <img src="{{ asset('/bundles/muzichcore/img/autoplay_previous.png') }}" alt="previous" />
117
-      </a>
118
-      
119
-  <a href="javascript:void(0);" id="autoplay_close" >
120
-    <img src="{{ asset('/bundles/muzichcore/img/1317386146_cancel.png') }}" alt="close" />
121
-  </a>
122
-      
123
-      <a href="javascript:void(0);" id="autoplay_next">
124
-        <img src="{{ asset('/bundles/muzichcore/img/autoplay_next.png') }}" alt="next" />
125
-      </a>
126
-      
127
-    <img id="autoplay_element_loader" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loader" />
128
-    <ul id="autoplay_element"><li class="element" id="autoplay_element_container"></li></ul>
129
-    <div id="autoplay_player_container">
130
-      <div id="autoplay_player"></div>
131
-    </div>
132
-    <div id="autoplay_player_soundcloud"></div>
133
-    <div id="autoplay_player_generic" style="display: none;">
134
-      <div id="jquery_jplayer_1" class="jp-jplayer"></div>
135
-      <div id="jp_container_1" class="jp-audio">
136
-        <div class="jp-type-playlist">
137
-          <div class="jp-gui jp-interface">
138
-            <ul class="jp-controls">
139
-              <li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
140
-              <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
141
-              <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
142
-              <li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
143
-              <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
144
-              <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
145
-              <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
146
-              <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
147
-            </ul>
148
-            <div class="jp-progress">
149
-              <div class="jp-seek-bar">
150
-                <div class="jp-play-bar"></div>
151
-              </div>
152
-            </div>
153
-            <div class="jp-volume-bar">
154
-              <div class="jp-volume-bar-value"></div>
155
-            </div>
156
-            <div class="jp-time-holder">
157
-              <div class="jp-current-time"></div>
158
-              <div class="jp-duration"></div>
159
-            </div>
160
-            <ul class="jp-toggles" style="display: none;">
161
-              <li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li>
162
-              <li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li>
163
-              <li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
164
-              <li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
165
-            </ul>
166
-          </div>
167
-          <div class="jp-playlist">
168
-            <ul>
169
-              <li></li>
170
-            </ul>
171
-          </div>
172
-          <div class="jp-no-solution">
173
-            <span>Update Required</span>
174
-            To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
175
-          </div>
176
-        </div>
177
-      </div>
178
-    </div>
179
-    <img id="autoplay_loader" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loader" />
180
-    <p id="autoplay_noelements_text" style="display: none;">{{ 'elements.autoplay.noelements.text'|trans({}, 'elements') }}</p>
181
-        
182
-    <p><span class="sinfo">{{ 'autoplay.limitations_players'|trans({}, 'userui') }}</span></p>
183
-    
184
-  </div>
11
+    {% include 'MuzichCoreBundle:Layout:noscript.html.twig' %}
12
+    {% include 'MuzichCoreBundle:Autoplay:autoplay.html.twig' %}
185 13
   
186 14
   <div id="container">
187 15
   
188 16
     <div id="main_content">
189 17
       
190 18
       <header id="header">
191
-        <hgroup>
192
-            {% include "MuzichCoreBundle:Language:languages.html.twig" %}
193
-            <!--
194
-          <ul id="parameters"><li>
195
-              <a href="">
196
-                <img src="{{ asset('img/header_icon_params.png') }}" alt="parameters" />
197
-              </a>
198
-            </li></ul>-->
199
-          
200
-          <a id="header_logo" href="{{ path('index') }}" title="">
201
-            <img src="{{ asset('img/header_logo.png') }}" alt="logo" />
202
-          </a>
203
-          <ul id="register_and_login">
204
-            {% if not app.user %}
205
-              <!--<li>
206
-                <a href="" class="left">
207
-                  Devenir membre
208
-                </a>
209
-              </li>
210
-              <li>
211
-                <a href="" class="right">
212
-                  Connexion
213
-                </a>
214
-              </li>-->
215
-            {% else %}
216
-              <li>
217
-                <a href="{{ path('my_account') }}" class="left">
218
-                  {{ 'top_bar.my_account'|trans({}, 'navigationui') }}
219
-                </a>
220
-              </li>
221
-              <li>
222
-                <a class="right" href="{{ path('fos_user_security_logout') }}">
223
-                    {{ 'top_bar.logout'|trans({}, 'navigationui') }}
224
-                </a>
225
-              </li>
226
-            {% endif %}
227
-          </ul>
228
-          
229
-          {% if app.user %}
230
-          <ul id="header_menu">
231
-            
232
-            {% if network_public is not defined %}
233
-              {% set network_public = '' %}
234
-            {% endif %}
235
-            
236
-            <li class="{% if network_public == '1' and not ids_display %}selected{% endif %}">
237
-              <a href="{{ path('home') }}" class="all_network">
238
-                {{ 'filter.network_all'|trans({}, 'userui') }}
239
-              </a>
240
-            </li>
241
-            <li class="separator"></li>
242
-            <li class="{% if network_public == '0' and not ids_display %}selected{% endif %}">
243
-              <a href="{{ path('mynetwork_home') }}" class="my_network" >
244
-                {{ 'filter.network_my'|trans({}, 'userui') }}
245
-              </a>
246
-            </li>
247
-            <li class="separator"></li>
248
-            <li class="{% if app.request.get('topmenu') == 'showuser' and app.request.get('slug') == app.user.slug %}selected{% endif %}">
249
-              <a href="{{ path('show_user', {'slug': app.user.slug}) }}">
250
-                {{ 'container_menu.my_feeds'|trans({}, 'navigationui') }}
251
-              </a>
252
-            </li>
253
-            <li class="separator"></li>
254
-            {% if his_group is not defined %}{% set his_group = false %}{% endif %}
255
-            <li class="{% if app.request.get('topmenu') == 'mygroups' or his_group == true %}selected{% endif %}">
256
-              <a href="{{ path('groups_own_list') }}" >
257
-                {{ 'network.mygroups'|trans({}, 'navigationui') }}
258
-              </a>
259
-            </li>
260
-            <li class="separator"></li>
261
-            <li class="{% if app.request.get('topmenu') == 'myfavorites' %}selected{% endif %}">
262
-              <a href="{{ path('favorites_my_list') }}" >
263
-                {{ 'container_menu.my_favorites'|trans({}, 'navigationui') }}
264
-              </a>
265
-            </li>
266
-            <li class="separator"></li>
267
-          </ul>
268
-          {% endif %}
269
-          
270
-        </hgroup>
19
+        {% include 'MuzichCoreBundle:Layout:header.html.twig' %}
271 20
       </header>
272 21
       
273
-      {% for key, flash in app.session.getFlashes() %}
274
-        <div class="{{ key }} message">
275
-          <a class="message-close" href="javascript:void(0);" title="fermer"><img alt="close" src="{{ asset('bundles/muzichcore/img/1317386146_cancel.png') }}" /></a>
276
-          <h3>{{ flash|trans({}, 'flash') }}</h3>
277
-        </div>
278
-
279
-        {% if key == 'success' %}
280
-        <script type="text/javascript" >
281
-          $(document).ready(function(){
282
-            window.setTimeout(function(){
283
-              $('div.success').slideUp();
284
-            }, 3000);
285
-          });
286
-        </script>
287
-        {% endif %}
288
-      {% endfor %}
22
+      {% include 'MuzichCoreBundle:Layout:flash_messages.html.twig' %}
289 23
       
290 24
       <div id="content">
291 25
         
@@ -299,42 +33,7 @@
299 33
         </div>
300 34
           
301 35
         <aside id="sidebar">
302
-          
303
-          {% if app.user %}
304
-            <div id="user_statusbox" class="nicebox">
305
-              {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
306
-                {% render "MuzichUserBundle:Event:infoBar" %}
307
-              {% endif %}
308
-            </div>
309
-          
310
-            <div id="searchbox" class="nicebox">
311
-              {% render "MuzichCoreBundle:Search:renderGlobalSearchForm" %}
312
-            </div>
313
-            
314
-            <!--<div id="social" class="nicebox">
315
-              <ul class="social_links">
316
-                <li>
317
-                  <a href="" >
318
-                    <img src="{{ asset('/img/icon_facebook.png') }}" alt="facebook" />
319
-                  </a>
320
-                </li>
321
-                <li>
322
-                  <a href="" >
323
-                    <img src="{{ asset('/img/icon_twitter.png') }}" alt="twitter" />
324
-                  </a>
325
-                </li>
326
-                <li>
327
-                  <a href="" >
328
-                    <img src="{{ asset('/img/icon_googleplus.png') }}" alt="google plus" />
329
-                  </a>
330
-                </li>
331
-              </ul>
332
-            </div>-->
333
-            
334
-            {% render 'MuzichCoreBundle:Core:renderSideMenu' %}
335
-          
336
-          {% endif %}
337
-          
36
+          {% include 'MuzichCoreBundle:Layout:side.html.twig' %}
338 37
         </aside>
339 38
           
340 39
       </div>
@@ -342,19 +41,7 @@
342 41
     </div>
343 42
     
344 43
     <div id="footer">
345
-      
346
-      <div id="footer_content">
347
-      
348
-        <div id="footer_logo">
349
-          <img src="{{ asset('/img/icon_minilogo_3.png') }}" alt="footer_logo">
350
-          <span class="fotter_muzich_big">&copy; MUZI.CH</span>
351
-          Tous droits réservés muzi.ch 2012 - 2013
352
-        </div>
353
-        
354
-        {% include "MuzichCoreBundle:Info:container.html.twig" %}
355
-      
356
-      </div>
357
-      
44
+      {% include 'MuzichCoreBundle:Layout:footer.html.twig' %}
358 45
     </div>
359 46
     
360 47
   </div>

+ 17 - 18
src/Muzich/FavoriteBundle/Resources/views/Favorite/myList.html.twig Прегледај датотеку

@@ -13,30 +13,29 @@
13 13
       'user_id' : app.user.id
14 14
     } %}
15 15
     
16
-    <a href="{{ path('elements_get_filter_data_autoplay_favorite', {
17
-          'show_type'  : 'user',
18
-          'show_id'    : app.user.id, 
19
-          'data'       : '[]'
20
-        }) }}" class="button" id="autoplay_launch" 
21
-       title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
22
-      <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
23
-    </a>
16
+    {% include 'MuzichCoreBundle:Component:element_autoplay_button.html.twig' with {
17
+      'autoplay_path' : path('elements_get_filter_data_autoplay_favorite', {
18
+        'show_type'  : 'user',
19
+        'show_id'    : app.user.id, 
20
+        'data'       : '[]'
21
+      })
22
+    } %}
24 23
   
25 24
   </div>
26 25
   
27 26
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
28
-    
29
-  <div class="elements_loader_div">
30
-    <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
31
-  </div>
32 27
   
33 28
   {% if elements|length %}
34
-    <input type="hidden" id="more_elements_url" value="{{ path('favorite_get', {'user_id': app.user.id, 'tags_ids_json' : ''}) }}" />
35
-    <a href="{{ path('favorite_get', {'user_id': app.user.id, 'tags_ids_json' : '[]'}) }}" class="elements_more">
36
-      <div>
37
-       {{ 'more'|trans({}, 'userui') }}
38
-     </div>
39
-    </a>
29
+    {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
30
+      'more_path'     : path('favorite_get', {
31
+        'user_id': app.user.id,
32
+        'tags_ids_json' : '[]'
33
+      }),
34
+      'more_url_path' : path('favorite_get', {
35
+        'user_id': app.user.id,
36
+        'tags_ids_json' : ''
37
+      })
38
+    }%}
40 39
   {% endif %}
41 40
   
42 41
   <input type="hidden" id="autoplay_url" value="{{ path('elements_get_filter_data_autoplay_favorite', {

+ 17 - 18
src/Muzich/FavoriteBundle/Resources/views/Favorite/userList.html.twig Прегледај датотеку

@@ -21,30 +21,29 @@
21 21
       'user_id' : viewed_user.id
22 22
     } %}
23 23
     
24
-    <a href="{{ path('elements_get_filter_data_autoplay_favorite', {
25
-          'show_type'  : 'user',
26
-          'show_id'    : viewed_user.id, 
27
-          'data'       : '[]'
28
-        }) }}" class="button" id="autoplay_launch" 
29
-       title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
30
-      <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
31
-    </a>
24
+    {% include 'MuzichCoreBundle:Component:element_autoplay_button.html.twig' with {
25
+      'autoplay_path' : path('elements_get_filter_data_autoplay_favorite', {
26
+        'show_type'  : 'user',
27
+        'show_id'    : viewed_user.id, 
28
+        'data'       : '[]'
29
+      })
30
+    } %}
32 31
     
33 32
   </div>
34 33
 
35 34
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
36 35
     
37
-  <div class="elements_loader_div">
38
-    <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
39
-  </div>
40
-  
41 36
   {% if elements|length %}
42
-    <input type="hidden" id="more_elements_url" value="{{ path('favorite_get', {'user_id': viewed_user.id, 'tags_ids_json' : ''}) }}" />
43
-    <a href="{{ path('favorite_get', {'user_id': viewed_user.id, 'tags_ids_json' : '[]'}) }}" class="elements_more">
44
-      <div>
45
-       {{ 'more'|trans({}, 'userui') }}
46
-     </div>
47
-    </a>
37
+    {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
38
+      'more_path'     : path('favorite_get', {
39
+        'user_id': viewed_user.id,
40
+        'tags_ids_json' : ''
41
+      }),
42
+      'more_url_path' : path('favorite_get', {
43
+        'user_id': viewed_user.id,
44
+        'tags_ids_json' : ''
45
+      })
46
+    }%}
48 47
   {% endif %}
49 48
   
50 49
   <input type="hidden" id="autoplay_url" value="{{ path('elements_get_filter_data_autoplay_favorite', {

+ 1 - 3
src/Muzich/GroupBundle/Resources/views/layout.html.twig Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 {% extends 'MuzichCoreBundle::layout.html.twig' %}
2 2
 
3 3
 {% block css %}
4
-	<link href="{{ asset('bundles/muzichgroups/css/groups.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+  <link href="{{ asset('bundles/muzichgroups/css/groups.css') }}" rel="stylesheet" media="screen" type="text/css" />
5 5
 {% endblock %}
6 6
 {% block js %}
7 7
   <script src="{{ asset('bundles/muzichgroups/js/groups.js') }}" type="text/javascript"></script>
@@ -9,8 +9,6 @@
9 9
 
10 10
 {% block main_content %}
11 11
   
12
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'mygroups' } %}
13
-  
14 12
   {% block content %}{% endblock %}
15 13
   
16 14
 {% endblock %}

+ 16 - 0
src/Muzich/HomeBundle/Resources/views/Component/filter_menu.html.twig Прегледај датотеку

@@ -0,0 +1,16 @@
1
+<ul id="tabs_tag_search_buttons">
2
+  <li id="tab_li_tag_search_no_tags" class="{% if search_tags_id|length == 0 %}selected{% endif %} gradient">
3
+    <a id="tabs_tag_search_no_tags" href="#" >
4
+      <img src="{{ asset('/img/icon_close.png') }}" alt="nofilters" />
5
+      {{ 'filter.clear'|trans({}, 'userui') }}
6
+    </a>
7
+    <div class="dart"></div>
8
+  </li>
9
+  <li id="tab_li_tag_search_with_tags" class="{% if search_tags_id|length %}selected{% endif %} gradient">
10
+    <a id="tabs_tag_search_with_tags" href="#" >
11
+      <img src="{{ asset('/img/icon_minilogo_2.png') }}" alt="nofilters" />
12
+      {{ 'filter.mytags'|trans({}, 'userui') }}
13
+    </a>
14
+    <div class="dart"></div>
15
+  </li>
16
+</ul>

+ 37 - 99
src/Muzich/HomeBundle/Resources/views/Home/index.html.twig Прегледај датотеку

@@ -5,123 +5,61 @@
5 5
 
6 6
 {% block content %}
7 7
 
8
-  <a href="#" id="element_add_link" class="button gradient">
9
-    {{ 'home.add_element'|trans({}, 'navigationui') }}
10
-    <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
11
-  </a>
12
-  <a href="#" id="element_add_close_link" class="button gradient" style="display: none;">
13
-    {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
14
-    <img src="{{ asset('/img/icon_dart_left_white.png') }}" alt="" />
15
-  </a>
16
-
17
-  <ul id="tabs_tag_search_buttons">
18
-    <li id="tab_li_tag_search_no_tags" class="{% if search_tags_id|length == 0 %}selected{% endif %} gradient">
19
-      <a id="tabs_tag_search_no_tags" href="#" >
20
-        <img src="{{ asset('/img/icon_close.png') }}" alt="nofilters" />
21
-        {{ 'filter.clear'|trans({}, 'userui') }}
22
-      </a>
23
-      <div class="dart"></div>
24
-    </li>
25
-    <li id="tab_li_tag_search_with_tags" class="{% if search_tags_id|length %}selected{% endif %} gradient">
26
-      <a id="tabs_tag_search_with_tags" href="#" >
27
-        <img src="{{ asset('/img/icon_minilogo_2.png') }}" alt="nofilters" />
28
-        {{ 'filter.mytags'|trans({}, 'userui') }}
29
-      </a>
30
-      <div class="dart"></div>
31
-    </li>
32
-  </ul>
33
-
34
-  <input type="hidden" class="filter_clear_url" value="{{ path('filter_clear') }}" />
35
-  <input type="hidden" class="filter_mytags_url" value="{{ path('filter_mytags') }}" />
36
-
37
-  <div id="element_add_box" style="display: none;">    
38
-
39
-    <h2>{{ 'home.add_element_box.title'|trans({}, 'navigationui') }}</h2>
8
+  {% include 'MuzichCoreBundle:Component:element_add_buttons.html.twig' %}
9
+  {% include 'MuzichHomeBundle:Component:filter_menu.html.twig' %}
40 10
   
41
-    <form novalidate name="{{ add_form_name }}" 
42
-      {% if  app.environment != 'test' %}
43
-        action="{{ path('element_retrieve_api_datas') }}" method="post" {{ form_enctype(add_form) }}
44
-      {% else %}
45
-        action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}
46
-      {% endif %}
47
-    >
48
-
49
-      {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 
50
-        'form'          : add_form, 
51
-        'form_name'     : add_form_name
52
-      } %}
53
-
54
-    {% if from_url is defined %}
55
-    {% if from_url %}
56
-      <script type="text/javascript">
57
-        $(document).ready(function(){
58
-          $('#element_add_box').slideDown("slow");
59
-          $('#element_add_link').hide();
60
-          $('form[name="search"]').slideUp();
61
-          $('img#form_add_loader').show();
62
-          $('input#element_add_url').val("{{ from_url }}");
63
-          $('form[name="add"]').submit();
64
-        });
65
-      </script>
66
-    {% endif %}
67
-    {% endif %}
68
-
69
-    </form>
70
-  </div>
71
-
72
-  <div id="added_element_to_group" style="display: none;">
73
-    <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
74
-    <p class="help">
75
-      {{ 'element_add.added_to_group.sentence'|trans({}, 'userui') }}
76
-    </p>
77
-    <ul id="groups_to_add_element"></ul>
78
-    <p class="cancel">
79
-      <a href="" class="cancel">
80
-        {{ 'element_add.added_to_group.nothanks'|trans({}, 'userui') }}
81
-      </a>
82
-    </p>
83
-  </div>
11
+  {% include 'MuzichCoreBundle:Component:element_add_box.html.twig' with {
12
+    'box_title': 'home.add_element_box.title'|trans({}, 'navigationui')
13
+  } %}
14
+
15
+  {# TODO: Cette partie de javascript ne devra plus exister après la réecriture du code javascript #}
16
+  {% if from_url is defined %}
17
+  {% if from_url %}
18
+    <script type="text/javascript">
19
+      $(document).ready(function(){
20
+        $('#element_add_box').slideDown("slow");
21
+        $('#element_add_link').hide();
22
+        $('form[name="search"]').slideUp();
23
+        $('img#form_add_loader').show();
24
+        $('input#element_add_url').val("{{ from_url }}");
25
+        $('form[name="add"]').submit();
26
+      });
27
+    </script>
28
+  {% endif %}
29
+  {% endif %}
84 30
 
85 31
   <div class="top_tools" {% if search_tags_id|length == 0 %}style="display: none;"{% endif %}>
86 32
   
87 33
     <div class="search_tools">
88 34
       <form name="{{ search_form_name }}" action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
89
-  
35
+        
90 36
         {% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 
91 37
           'form_name'               : search_form_name,
92 38
           'search_tags'             : search_tags_id
93 39
         } %}
94
-  
40
+        
95 41
         <input class="main button" type="submit" value="{{ 'filter.submit'|trans({}, 'userui') }}"/>
96
-  
42
+        
97 43
       </form>
98 44
     </div>
99 45
 
100
-    <a href="{{ path('elements_get_filter_data_autoplay', {
101
-      'type' : 'filter'
102
-    }) }}" class="button" id="autoplay_launch" 
103
-       title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
104
-      <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
105
-    </a>
46
+    {% include 'MuzichCoreBundle:Component:element_autoplay_button.html.twig' with {
47
+      'autoplay_path' : path('elements_get_filter_data_autoplay', {
48
+        'type' : 'filter'
49
+      })
50
+    } %}
106 51
   
107 52
   </div>
108 53
 
109
-  <div class="display_more_elements" style="display: none;">
110
-    <span></span>
111
-  </div>
112
-
113
-  <div class="elements_loader_div">
114
-    <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
115
-  </div>
116
-
117 54
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
118
-    'noelements_filter' : true 
119
-  }%}
120
-    
121
-  {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
122
-    'display_more_button' : true,
123
-    'elements_length'     : elements|length,
124
-    'more_path'           : 'search_elements'
55
+    'noelements_filter'    : true,
56
+    'display_new_elements' : true
125 57
   }%}
126 58
   
59
+  {% if elements|length %}
60
+    {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
61
+      'more_path'           : path('search_elements')
62
+    }%}
63
+  {% endif %}
64
+  
127 65
 {% endblock %}

+ 13 - 20
src/Muzich/HomeBundle/Resources/views/Home/need_tags.html.twig Прегледај датотеку

@@ -10,25 +10,18 @@
10 10
     <p>{{ 'need_tags.text_help'|trans({}, 'userui') }}</p>
11 11
   </div>
12 12
   
13
-  <div class="display_more_elements" style="display: none;">
14
-    <span></span>
15
-  </div>
16
-
17
-  <div class="elements_loader_div">
18
-    <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
19
-  </div>
20
-
21
-  {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
22
-    
23
-  {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
24
-    'display_more_button' : true,
25
-    'elements_length'     : elements|length,
26
-    'more_path'           : 'search_elements_more',
27
-    'more_path_params'    : {
28
-      'session_id' : app.user.getPersonalHash('needstagpage'),
29
-      'id_limit'   : last_element_id
30
-    },
31
-    'link_class'          : 'event_view'
32
-  }%}
13
+  {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
14
+    'display_new_elements' : true
15
+  } %}
16
+  
17
+  {% if elements|length %}
18
+    {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
19
+      'more_path'     : path('search_elements_more', {
20
+        'session_id' : app.user.getPersonalHash('needstagpage'),
21
+        'id_limit'   : last_element_id
22
+      }),
23
+      'link_class'          : 'event_view'
24
+    }%}
25
+  {% endif %}
33 26
   
34 27
 {% endblock %}

+ 27 - 51
src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig Прегледај датотеку

@@ -7,18 +7,8 @@
7 7
 
8 8
   <div class="top_tools">
9 9
     
10
-    
11 10
     {% if his_group or group.open %}
12
-    
13
-      <a href="#" id="element_add_link" class="button gradient justtopright">
14
-        {{ 'home.add_element'|trans({}, 'navigationui') }}
15
-        <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
16
-      </a>
17
-      <a href="#" id="element_add_close_link" class="button gradient justtopright" style="display: none;">
18
-        {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
19
-        <img src="{{ asset('/img/icon_dart_left_white.png') }}" alt="" />
20
-      </a>
21
-    
11
+      {% include 'MuzichCoreBundle:Component:element_add_buttons_topright.html.twig' %}
22 12
     {% endif %}
23 13
 
24 14
     <div class="show_options">
@@ -42,18 +32,11 @@
42 32
       
43 33
     <h1>{{ group.name }}</h1>
44 34
     
45
-    
46 35
     {% if his_group or group.open %}
47
-      <div id="element_add_box" style="display: none;">
48
-    
49
-        <input type="hidden" id="add_element_group_page" value="{{ group.slug }}" />
50
-        <form novalidate name="{{ add_form_name }}" action="{{ path('element_add', {'group_slug' : group.slug}) }}" method="post" {{ form_enctype(add_form) }}>
51
-  
52
-          {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form, 'form_name': add_form_name } %}
53
-  
54
-        </form>
55
-        
56
-      </div>
36
+      {% include 'MuzichCoreBundle:Component:element_add_box.html.twig' with {
37
+        'group_slug'        : group.slug,
38
+        'show_add_to_group' : false
39
+      } %}
57 40
     {% endif %}
58 41
     
59 42
     <p class="show_info">
@@ -85,40 +68,33 @@
85 68
       'object_type' : 'group'
86 69
     } %}
87 70
     
88
-    <a href="{{ path('elements_get_filter_data_autoplay_show', {
89
-          'show_type'  : 'group',
90
-          'show_id'    : group.id, 
91
-          'data'       : '[]'
92
-        }) }}" class="button" id="autoplay_launch" 
93
-       title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
94
-      <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
95
-    </a>
71
+    {% include 'MuzichCoreBundle:Component:element_autoplay_button.html.twig' with {
72
+      'autoplay_path' : path('elements_get_filter_data_autoplay_show', {
73
+        'show_type'  : 'group',
74
+        'show_id'    : group.id, 
75
+        'data'       : '[]'
76
+      })
77
+    } %}
96 78
     
97 79
   </div>
98 80
   
99 81
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {'no_group_name' : true} %}
100
-    
101
-  <div class="elements_loader_div">
102
-    <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
103
-  </div>
104
-    
82
+  
105 83
   {% if more_count is defined %} 
106
-  {% if elements|length %}
107
-     <input type="hidden" id="more_elements_url" value="{{ path('show_elements_get', {
108
-        'type'          : 'group',
109
-        'object_id'     : group.id, 
110
-        'tags_ids_json' : ''
111
-      }) }}" />
112
-     <a href="{{ path('show_elements_get', {
113
-        'type'          : 'group',
114
-        'object_id'     : group.id, 
115
-        'tags_ids_json' : '[]'
116
-      }) }}" class="elements_more" >
117
-       <div>
118
-        {{ 'more'|trans({}, 'userui') }}
119
-      </div>
120
-     </a>
121
-  {% endif %}
84
+    {% if elements|length %}
85
+      {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
86
+        'more_path'     : path('show_elements_get', {
87
+          'type'          : 'group',
88
+          'object_id'     : group.id, 
89
+          'tags_ids_json' : '[]'
90
+        }),
91
+        'more_url_path' : path('show_elements_get', {
92
+          'type'          : 'group',
93
+          'object_id'     : group.id, 
94
+          'tags_ids_json' : ''
95
+        })
96
+      }%}
97
+    {% endif %}
122 98
   {% endif %}
123 99
   
124 100
   <input type="hidden" id="autoplay_url" value="{{ path('elements_get_filter_data_autoplay_show', {

+ 23 - 57
src/Muzich/HomeBundle/Resources/views/Show/showUser.html.twig Прегледај датотеку

@@ -8,14 +8,7 @@
8 8
   <div class="top_tools">
9 9
     
10 10
     {% if app.user.id == viewed_user.id %}
11
-      <a href="#" id="element_add_link" class="button gradient justtopright">
12
-        {{ 'home.add_element'|trans({}, 'navigationui') }}
13
-        <img src="{{ asset('/img/icon_dart_right_white.png') }}" alt="" />
14
-      </a>
15
-      <a href="#" id="element_add_close_link" class="button gradient justtopright" style="display: none;">
16
-        {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
17
-        <img src="{{ asset('/img/icon_dart_left_white.png') }}" alt="" />
18
-      </a>
11
+      {% include 'MuzichCoreBundle:Component:element_add_buttons_topright.html.twig' %}
19 12
     {% endif %}
20 13
     
21 14
     <div class="show_options">
@@ -40,24 +33,7 @@
40 33
     <h1>{{ 'user.show.title'|trans({'%name%' : viewed_user.name}, 'users') }}</h1>
41 34
   
42 35
     {% if app.user.id == viewed_user.id %}
43
-      <div id="element_add_box" style="display: none;">    
44
-      
45
-        <form novalidate name="{{ add_form_name }}" 
46
-          {% if  app.environment != 'test' %}
47
-            action="{{ path('element_retrieve_api_datas') }}" method="post" {{ form_enctype(add_form) }}
48
-          {% else %}
49
-            action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}
50
-          {% endif %}    
51
-        method="post" {{ form_enctype(add_form) }}>
52
-  
53
-          {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 
54
-            'form'          : add_form, 
55
-            'form_name'     : add_form_name
56
-          } %}
57
-      
58
-        </form>
59
-      </div>
60
-  
36
+      {% include 'MuzichCoreBundle:Component:element_add_box.html.twig'  %}
61 37
     {% endif %}
62 38
     
63 39
     <div class="reputation">
@@ -91,43 +67,33 @@
91 67
       'object_type' : 'user'
92 68
     } %}
93 69
     
94
-    <a href="{{ path('elements_get_filter_data_autoplay_show', {
95
-          'show_type'  : 'user',
96
-          'show_id'    : viewed_user.id, 
97
-          'data'       : '[]'
98
-        }) }}" class="button" id="autoplay_launch" 
99
-       title="{{ 'elements.autoplay.launch'|trans({}, 'elements') }}" >
100
-      <img src="{{ asset('/bundles/muzichcore/img/1353494305_player_play.png') }}" alt="" />
101
-    </a>
70
+    {% include 'MuzichCoreBundle:Component:element_autoplay_button.html.twig' with {
71
+      'autoplay_path' : path('elements_get_filter_data_autoplay_show', {
72
+        'show_type'  : 'user',
73
+        'show_id'    : viewed_user.id, 
74
+        'data'       : '[]'
75
+      }) 
76
+    } %}
102 77
   
103 78
   </div>
104 79
   
105
-  
106 80
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
107 81
   
108
-  <div class="elements_loader_div">
109
-    <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
110
-  </div>
111
-  
112 82
   {% if more_count is defined %} 
113
-  {% if elements|length %}
114
-    
115
-    <input type="hidden" id="more_elements_url" value="{{ path('show_elements_get', {
116
-        'type'          : 'user',
117
-        'object_id'     : viewed_user.id, 
118
-        'tags_ids_json' : ''
119
-      }) }}" />
120
-    <a href="{{ path('show_elements_get', {
121
-        'type'          : 'user',
122
-        'object_id'     : viewed_user.id, 
123
-        'tags_ids_json' : '[]'
124
-      }) }}" class="elements_more" >
125
-      <div>
126
-        {{ 'more'|trans({}, 'userui') }}
127
-      </div>
128
-    </a>
129
-   
130
-  {% endif %}
83
+    {% if elements|length %}
84
+      {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
85
+        'more_path'     : path('show_elements_get', {
86
+          'type'          : 'user',
87
+          'object_id'     : viewed_user.id, 
88
+          'tags_ids_json' : '[]'
89
+        }),
90
+        'more_url_path' : path('show_elements_get', {
91
+          'type'          : 'user',
92
+          'object_id'     : viewed_user.id, 
93
+          'tags_ids_json' : ''
94
+        })
95
+      }%}
96
+    {% endif %}
131 97
   {% endif %}
132 98
     
133 99
   <input type="hidden" id="autoplay_url" value="{{ path('elements_get_filter_data_autoplay_show', {

+ 1 - 7
src/Muzich/HomeBundle/Resources/views/layout.html.twig Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 {% extends 'MuzichCoreBundle::layout.html.twig' %}
2 2
 
3 3
 {% block css %}
4
-	<link href="{{ asset('bundles/muzichhome/css/home.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+  <link href="{{ asset('bundles/muzichhome/css/home.css') }}" rel="stylesheet" media="screen" type="text/css" />
5 5
 {% endblock %}
6 6
 {% block js %}
7 7
   <script src="{{ asset('bundles/muzichhome/js/home.js') }}" type="text/javascript"></script>
@@ -9,12 +9,6 @@
9 9
 
10 10
 {% block main_content %}
11 11
   
12
-    {% if topmenu_active is not defined %}
13
-      {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'public' } %}
14
-    {% else %}
15
-      {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': topmenu_active } %}
16
-    {% endif %}
17
-  
18 12
     {% block content %}{% endblock %}
19 13
   
20 14
 {% endblock %}

+ 1 - 3
src/Muzich/MynetworkBundle/Resources/views/layout.html.twig Прегледај датотеку

@@ -1,13 +1,11 @@
1 1
 {% extends 'MuzichCoreBundle::layout.html.twig' %}
2 2
 
3 3
 {% block css %}
4
-	<link href="{{ asset('bundles/mynetwork/css/mynetwork.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+  <link href="{{ asset('bundles/mynetwork/css/mynetwork.css') }}" rel="stylesheet" media="screen" type="text/css" />
5 5
 {% endblock %}
6 6
 
7 7
 {% block main_content %}
8 8
   
9
-  {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': 'private' } %}
10
-  
11 9
   {% block content %}{% endblock %}
12 10
   
13 11
 {% endblock %}

+ 9 - 14
src/Muzich/UserBundle/Resources/views/Event/elements.html.twig Прегледај датотеку

@@ -49,23 +49,18 @@
49 49
     
50 50
   </div>
51 51
 
52
-  <div class="elements_loader_div">
53
-    <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
54
-  </div>
55
-
56 52
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
57 53
     'noelements_filter' : true 
58 54
   }%}
59 55
     
60
-  {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
61
-    'display_more_button' : true,
62
-    'elements_length'     : elements|length,
63
-    'more_path'           : 'search_elements_more',
64
-    'more_path_params'    : {
65
-      'session_id' : app.user.getPersonalHash(app.request.get('event_id')),
66
-      'id_limit'   : last_element_id
67
-    },
68
-    'link_class'          : 'event_view'
69
-  }%}
56
+  {% if elements|length %}
57
+    {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with {
58
+      'more_path'     : path('search_elements_more', {
59
+        'session_id' : app.user.getPersonalHash(app.request.get('event_id')),
60
+        'id_limit'   : last_element_id
61
+      }),
62
+      'link_class'          : 'event_view'
63
+    }%}
64
+  {% endif %}
70 65
   
71 66
 {% endblock %}

+ 2 - 4
src/Muzich/UserBundle/Resources/views/layout.html.twig Прегледај датотеку

@@ -1,16 +1,14 @@
1 1
 {% extends 'MuzichCoreBundle::layout.html.twig' %}
2 2
 
3 3
 {% block css %}
4
-	<link href="{{ asset('bundles/muzichuser/css/user.css') }}" rel="stylesheet" media="screen" type="text/css" />
4
+  <link href="{{ asset('bundles/muzichuser/css/user.css') }}" rel="stylesheet" media="screen" type="text/css" />
5 5
 {% endblock %}
6 6
 {% block js %}
7
-	<script src="{{ asset('bundles/muzichuser/js/user.js') }}" type="text/javascript"></script>
7
+  <script src="{{ asset('bundles/muzichuser/js/user.js') }}" type="text/javascript"></script>
8 8
 {% endblock %}
9 9
 
10 10
 {% block main_content %}
11 11
   
12
-    {% include "MuzichCoreBundle:Menu:containerMenu.html.twig" with { 'active': null } %}
13
-  
14 12
     {% block content %}{% endblock %}
15 13
   
16 14
 {% endblock %}

+ 2 - 2
web/bundles/muzichcore/css/old.css Прегледај датотеку

@@ -1009,11 +1009,11 @@ position: absolute;
1009 1009
   text-decoration: none;
1010 1010
 }*/
1011 1011
 
1012
-div.display_more_elements
1012
+/*div.display_more_elements
1013 1013
 {
1014 1014
   background-color: #D9F7FF;
1015 1015
   text-align: center;
1016
-}
1016
+}*/
1017 1017
 
1018 1018
 /*input#element_add_url
1019 1019
 {

+ 6 - 0
web/css/main.css Прегледај датотеку

@@ -1629,4 +1629,10 @@ li.element_view_propositions_link
1629 1629
 div#results_search_form div.seachboxcontainer input
1630 1630
 {
1631 1631
   width: 570px;
1632
+}
1633
+
1634
+div.display_more_elements
1635
+{
1636
+  padding: 10px;
1637
+  text-align: center;
1632 1638
 }