Commit 0b06ac7c authored by joelstein's avatar joelstein Committed by japerry

Issue #1570120 by msti, joelstein, joelrotelli, mrfelton, kingfisher64,...

Issue #1570120 by msti, joelstein, joelrotelli, mrfelton, kingfisher64, drupalycious: Add a button for adding CSS id or CSS class for a region in IPE
parent 8a117f17
......@@ -220,6 +220,10 @@ div.panels-ipe-handlebar-wrapper li.edit a span {
background-image: url(../images/icon-settings.png);
}
div.panels-ipe-handlebar-wrapper li.css a span {
background-image: url(../images/icon-css.png);
}
div.panels-ipe-handlebar-wrapper li.style a span,
div.panels-ipe-newblock a.style span {
background-image: url(../images/icon-style.png);
......
......@@ -108,6 +108,19 @@ function template_preprocess_panels_ipe_pane_wrapper(&$vars) {
);
}
// Add option to configure CSS.
if (user_access('administer advanced pane settings')) {
$vars['links']['css'] = array(
'title' => '<span>' . t('CSS') . '</span>',
'href' => $renderer->get_url('pane-css', $pane->pid),
'html' => TRUE,
'attributes' => array(
'class' => array('ctools-use-modal', 'panels-ipe-hide-bar'),
'title' => t('CSS'),
),
);
}
// Deleting is managed entirely in the js; this is just an attachment point
// for it
$vars['links']['delete'] = array(
......
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