Browse Source

modif ancienne et non commit

Bastien Sevajol 9 years ago
parent
commit
bcbf8d16d8

+ 1 - 0
src/Muzich/CoreBundle/Command/MineTagsDataCommand.php View File

101
   
101
   
102
   protected function mineDiffusions()
102
   protected function mineDiffusions()
103
   {
103
   {
104
+    $this->output->writeln('<info>Retriving users ...</info>');
104
     $users = $this->getUsersToProceed(User::DATA_DIFF_UPDATED);
105
     $users = $this->getUsersToProceed(User::DATA_DIFF_UPDATED);
105
     $this->output->writeln('<info>Diffusions: '.count($users).' utilisateurs</info>');
106
     $this->output->writeln('<info>Diffusions: '.count($users).' utilisateurs</info>');
106
     $this->progress->start($this->output, count($users));
107
     $this->progress->start($this->output, count($users));

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/layout_iframe.html.twig View File

3
   <head>
3
   <head>
4
     <title>Muzi.ch - {% block title %}{% endblock %}</title>
4
     <title>Muzi.ch - {% block title %}{% endblock %}</title>
5
     {% include 'MuzichCoreBundle:Layout:head.html.twig' with {
5
     {% include 'MuzichCoreBundle:Layout:head.html.twig' with {
6
-      'userecho' : false
6
+      'userecho' : true
7
     } %}
7
     } %}
8
     {% block css %}{% endblock %}
8
     {% block css %}{% endblock %}
9
     {% block js %}{% endblock %}
9
     {% block js %}{% endblock %}

+ 2 - 2
web/app_dev.php View File

1
 <?php
1
 <?php
2
-
2
+die();
3
 use Symfony\Component\HttpFoundation\Request;
3
 use Symfony\Component\HttpFoundation\Request;
4
 
4
 
5
 // If you don't want to setup permissions the proper way, just uncomment the following PHP line
5
 // If you don't want to setup permissions the proper way, just uncomment the following PHP line
14
         '127.0.0.1',
14
         '127.0.0.1',
15
         '::1',
15
         '::1',
16
     ))
16
     ))
17
-) {
17
+&& false) {
18
     header('HTTP/1.0 403 Forbidden');
18
     header('HTTP/1.0 403 Forbidden');
19
     exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
19
     exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
20
 }
20
 }

+ 0 - 4
web/bundles/muzichcore/css/main.css View File

2542
   float:left;
2542
   float:left;
2543
 }
2543
 }
2544
 
2544
 
2545
-div.social_buttons ul li.googleplus {
2546
-    margin-left: -25px;
2547
-}
2548
-
2549
 a.button.toplist:visited
2545
 a.button.toplist:visited
2550
 {
2546
 {
2551
   color: white;
2547
   color: white;

+ 4 - 3
web/bundles/muzichcore/js/muzich.js View File

3414
 
3414
 
3415
 function refresh_social_buttons(autoplay)
3415
 function refresh_social_buttons(autoplay)
3416
 {
3416
 {
3417
-  proceed_facebook_like_buttons(autoplay);
3418
-  gapi.plusone.go();
3419
-  twttr.widgets.load();
3417
+  // On n'utilise plus ca
3418
+//  proceed_facebook_like_buttons(autoplay);
3419
+//  gapi.plusone.go();
3420
+//  twttr.widgets.load();
3420
 }
3421
 }
3421
 
3422
 
3422
 function proceed_facebook_like_buttons(autoplay)
3423
 function proceed_facebook_like_buttons(autoplay)

+ 12 - 3
web/bundles/muzichcore/js/player/SoundCloudPlayer.js View File

3
   autoplay = typeof autoplay !== 'undefined' ? autoplay : false;
3
   autoplay = typeof autoplay !== 'undefined' ? autoplay : false;
4
   var _autoplay = autoplay;
4
   var _autoplay = autoplay;
5
   var _iframe_id = '';
5
   var _iframe_id = '';
6
-  var _ref_id = ref_id;
6
+  
7
+  if (typeof(ref_id) == 'string')
8
+  {
9
+    var _ref_id = ref_id.replace('http://', 'https://');
10
+  }
11
+  else
12
+  {
13
+    var _ref_id = ref_id
14
+  }
15
+  
7
   var _object_for_player = object_for_player;
16
   var _object_for_player = object_for_player;
8
   var _player = null;
17
   var _player = null;
9
   var _sounds_count = 0;
18
   var _sounds_count = 0;
24
     _iframe_id = 'soundcloud_player_'+new Date().getTime();
33
     _iframe_id = 'soundcloud_player_'+new Date().getTime();
25
     if (!_autoplay)
34
     if (!_autoplay)
26
     {
35
     {
27
-      _object_for_player.html('<iframe id="'+_iframe_id+'" src="http://w.soundcloud.com/player/?url='
36
+      _object_for_player.html('<iframe id="'+_iframe_id+'" src="https://w.soundcloud.com/player/?url='
28
             +_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
37
             +_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
29
             +'height="350" scrolling="no" frameborder="no"></iframe>');
38
             +'height="350" scrolling="no" frameborder="no"></iframe>');
30
     }
39
     }
31
     else
40
     else
32
     {
41
     {
33
-      $('#autoplay_player_soundcloud').append('<iframe id="'+_iframe_id+'" src="http://w.soundcloud.com/player/?url='
42
+      $('#autoplay_player_soundcloud').append('<iframe id="'+_iframe_id+'" src="https://w.soundcloud.com/player/?url='
34
         +_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
43
         +_ref_id+'&show_artwork=false&auto_play=true" width="100%" '
35
         +'height="350" scrolling="no" frameborder="no"></iframe>');
44
         +'height="350" scrolling="no" frameborder="no"></iframe>');
36
     }
45
     }

+ 8 - 1
web/bundles/muzichcore/js/player/YoutubePlayer.js View File

78
     {
78
     {
79
       if(typeof(_yt_player.stopVideo)!=='undefined')
79
       if(typeof(_yt_player.stopVideo)!=='undefined')
80
       {
80
       {
81
-        _yt_player.stopVideo();
81
+        try
82
+        {
83
+          _yt_player.stopVideo();
84
+        }
85
+        catch (e)
86
+        {
87
+          
88
+        }
82
       }
89
       }
83
     }
90
     }
84
   }
91
   }