Commit 5b1609b2 authored by Orphean's avatar Orphean

Mild refactor to only inject css one time.

parent b9afae50
......@@ -42,8 +42,10 @@ class QvitterRemoteIconsPlugin extends Plugin {
$icons = $config['icons'];
$css= "";
foreach($icons as $site=>$icon) {
$css = <<<FIN
$item= <<<FIN
div.notice[data-uri^="tag:$site"] .ostatus-link {
background-image: url('$icon');
background-position: 0px 0px;
......@@ -51,8 +53,10 @@ div.notice[data-uri^="tag:$site"] .ostatus-link {
opacity: 1 !important;
}
FIN;
$action->style($css);
$css .= "\n" + $item;
}
$action->style($css);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment