diff --git a/images/icon-css.png b/images/icon-css.png new file mode 100644 index 0000000000000000000000000000000000000000..9a8addf48235ca797e549799fa0fb669306b77b1 Binary files /dev/null and b/images/icon-css.png differ diff --git a/panels_ipe/css/panels_ipe.css b/panels_ipe/css/panels_ipe.css index e7896e267c64ee120d4af8ad68c9081eee0315d9..481c24c5b88eff2a3dd6420b02c3e5d23b07a738 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 35dfa6f51124e167830061e5a915e8e5c53ab61e..c87157c049f00e995bf7eceeafdfcbf7b345a4bd 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(