Added some css classes to the contextual menu, and a temporary css hack.
This commit is contained in:
parent
27f0b33faa
commit
0df9cfecc8
@ -1,3 +1,10 @@
|
|||||||
|
/* MOVE THIS INTO MORE!! */
|
||||||
|
.top_ups_bought.add-activity-link {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: 100% !important;
|
font-size: 100% !important;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ class ContextualMenu extends BlockBase {
|
|||||||
$url = \Drupal\Core\Url::fromRoute("entity.oc_activity.add_form", ['oc_activity_type' => $machine_name]);
|
$url = \Drupal\Core\Url::fromRoute("entity.oc_activity.add_form", ['oc_activity_type' => $machine_name]);
|
||||||
$url->setOption('query', ['actor_id' => $actor_id, 'destination' => $redirect_destination]);
|
$url->setOption('query', ['actor_id' => $actor_id, 'destination' => $redirect_destination]);
|
||||||
$link = \Drupal\Core\Link::fromTextAndUrl($label, $url)->toString();
|
$link = \Drupal\Core\Link::fromTextAndUrl($label, $url)->toString();
|
||||||
$markup .= " $link";
|
$markup .= " <span class='$machine_name add-activity-link'>$link</span>";
|
||||||
}
|
}
|
||||||
$markup .= "</p>";
|
$markup .= "</p>";
|
||||||
return "<div class='openactor_add_links'>$markup</div>";
|
return "<div class='openactor_add_links'>$markup</div>";
|
||||||
|
Reference in New Issue
Block a user