]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
visual cleanup on ModPlus remote profile info popup menu
authorBrion Vibber <brion@pobox.com>
Tue, 16 Nov 2010 01:32:33 +0000 (17:32 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 16 Nov 2010 01:32:33 +0000 (17:32 -0800)
plugins/ModPlus/ModPlusPlugin.php
plugins/ModPlus/modplus.css [new file with mode: 0644]

index 89bbdf857f546b01c72f1f6f89c349d7c5cfa144..3e7a8c745572c29ff56eabb430fbefc85a458807 100644 (file)
@@ -56,6 +56,11 @@ class ModPlusPlugin extends Plugin
         return true;
     }
 
+    function onEndShowStatusNetStyles($action) {
+        $action->cssLink('plugins/ModPlus/modplus.css');
+        return true;
+    }
+
     /**
      * Autoloader
      *
@@ -95,4 +100,17 @@ class ModPlusPlugin extends Plugin
 
         return true;
     }
+
+    function onStartShowNoticeItem($item)
+    {
+        $profile = $item->profile;
+        $isRemote = !(User::staticGet('id', $profile->id));
+        if ($isRemote) {
+            $target = common_local_url('remoteprofile', array('id' => $profile->id));
+            $label = _m('Remote profile options...');
+            $item->out->elementStart('div', 'remote-profile-options');
+            $item->out->element('a', array('href' => $target), $label);
+            $item->out->elementEnd('div');
+        }
+    }
 }
diff --git a/plugins/ModPlus/modplus.css b/plugins/ModPlus/modplus.css
new file mode 100644 (file)
index 0000000..8d2fc8f
--- /dev/null
@@ -0,0 +1,23 @@
+.remote-profile-options {
+    position: absolute;
+    z-index: 999;
+
+    background: url(../../theme/base/images/icons/twotone/green/admin.gif) no-repeat 8px 8px white;
+    border: solid 1px #c0c0c0;
+
+    margin-top: 56px;
+
+    padding: 6px 16px;
+    padding-left: 32px;
+
+    -moz-border-radius: 8px;
+    -webkit-border-radius: 8px;
+    -msie-border-radius: 8px;
+    border-radius: 8px;
+
+    box-shadow:3px 3px 7px rgba(194, 194, 194, 0.3);
+    -moz-box-shadow:3px 3px 7px rgba(194, 194, 194, 0.3);
+    -webkit-box-shadow:3px 3px 7px rgba(194, 194, 194, 0.3);
+
+    display: none;
+}