diff --git a/panels_ipe/css/panels_ipe.css b/panels_ipe/css/panels_ipe.css index e7896e2..481c24c 100644 --- a/panels_ipe/css/panels_ipe.css +++ b/panels_ipe/css/panels_ipe.css @@ -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); diff --git a/panels_ipe/panels_ipe.module b/panels_ipe/panels_ipe.module index 35dfa6f..c87157c 100644 --- a/panels_ipe/panels_ipe.module +++ b/panels_ipe/panels_ipe.module @@ -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' => '' . t('CSS') . '', + '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(