You are here

function panels_rounded_corners_css in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/styles/corners/rounded_corners.inc \panels_rounded_corners_css()
  2. 6.2 styles/rounded_corners.inc \panels_rounded_corners_css()

Generates the dynamic CSS.

Parameters

$display: A Panels display object.

1 call to panels_rounded_corners_css()
panels_add_rounded_corners_css in plugins/styles/corners/rounded_corners.inc

File

plugins/styles/corners/rounded_corners.inc, line 118
Definition of the 'rounded_corners' panel style.

Code

function panels_rounded_corners_css($display) {
  $idstr = empty($display->css_id) ? '.rounded-corner' : "#{$display->css_id}";
  $css_id = 'rounded-corner:' . $idstr;
  ctools_include('css');
  $filename = ctools_css_retrieve($css_id);
  if (!$filename) {
    $filename = ctools_css_store($css_id, _panels_rounded_corners_css($idstr), FALSE);
  }
  drupal_add_css($filename, array(
    'preprocess' => TRUE,
  ));
}