]> git.mxchange.org Git - friendica.git/commitdiff
small fixes
authortommy tomson <thomas.bierey@gmx.de>
Sun, 25 Mar 2012 17:43:42 +0000 (19:43 +0200)
committertommy tomson <thomas.bierey@gmx.de>
Sun, 25 Mar 2012 17:43:42 +0000 (19:43 +0200)
view/theme/diabook-blue/theme.php
view/theme/diabook/theme.php

index 6149b12dedbe8ed3521804fab4619d48119e10c8..2c878e6f055693156e4a23fe092b5da81c17f61a 100755 (executable)
@@ -33,7 +33,7 @@ function diabook_community_info(){
                        FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` 
                        WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra $order LIMIT %d , %d ",
                0,
-               12
+               9
        );
        $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
        if(count($r)) {
@@ -61,7 +61,7 @@ function diabook_community_info(){
                        WHERE `T1`.`liker-link` LIKE '%s%%' OR `item`.`author-link` LIKE '%s%%'
                        GROUP BY `uri`
                        ORDER BY `T1`.`created` DESC
-                       LIMIT 0,10",
+                       LIMIT 0,5",
                        $a->get_baseurl(),$a->get_baseurl()
                        );
 
@@ -109,7 +109,7 @@ function diabook_community_info(){
                                AND `user`.`blockwall`=0
                                AND `user`.`hidewall`=0
                                ORDER BY `photo`.`edited` DESC
-                               LIMIT 0, 12",
+                               LIMIT 0, 9",
                                dbesc(t('Contact Photos')),
                                dbesc(t('Profile Photos'))
                                );
@@ -184,7 +184,7 @@ function diabook_community_info(){
 
 
 //profile_side at networkpages
-if ($a->argv[0] === "network"){
+if ($a->argv[0] === "network" && local_user()){
 
        // USER MENU
        if(local_user()) {
index 29cc64c18747bab7fdff7d8d339c8fd4e7052c6d..5b87e314248600a59aae801abea506f905fb74ba 100755 (executable)
@@ -36,7 +36,7 @@ function diabook_community_info(){
                        FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` 
                        WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra $order LIMIT %d , %d ",
                0,
-               12
+               9
        );
        $tpl = file_get_contents( dirname(__file__).'/directory_item.tpl');
        if(count($r)) {
@@ -64,7 +64,7 @@ function diabook_community_info(){
                        WHERE `T1`.`liker-link` LIKE '%s%%' OR `item`.`author-link` LIKE '%s%%'
                        GROUP BY `uri`
                        ORDER BY `T1`.`created` DESC
-                       LIMIT 0,10",
+                       LIMIT 0,5",
                        $a->get_baseurl(),$a->get_baseurl()
                        );
 
@@ -112,7 +112,7 @@ function diabook_community_info(){
                                AND `user`.`blockwall`=0
                                AND `user`.`hidewall`=0
                                ORDER BY `photo`.`edited` DESC
-                               LIMIT 0, 12",
+                               LIMIT 0, 9",
                                dbesc(t('Contact Photos')),
                                dbesc(t('Profile Photos'))
                                );
@@ -189,7 +189,7 @@ function diabook_community_info(){
 
 
 //profile_side at networkpages
-if ($a->argv[0] === "network"){
+if ($a->argv[0] === "network" && local_user()){
 
        // USER MENU
        if(local_user()) {
@@ -251,6 +251,14 @@ $a->page['htmlhead'] .= <<< EOT
  $(function() {
        $('a.lightbox').fancybox(); // Select all links with lightbox class
  });
+ $(document).ready(function ()
+$('iframe').each(function()
+var url = $(this).attr("src");
+$(this).attr("src",url+"?wmode=transparent");
+);
+);
  </script>
 EOT;