Projet

Général

Profil

Révision 64156087

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/panels/plugins/styles/stylizer.inc
6 6
 */
7 7

  
8 8
if (module_exists('stylizer')) {
9
  // Plugin definition
9
  // Plugin definition.
10 10
  $plugin = array(
11 11
    'title' => t('Custom style'),
12 12
    'weight' => -10,
......
22 22
    'get child' => 'panels_stylizer_get_substyle',
23 23
    'get children' => 'panels_stylizer_get_substyles',
24 24

  
25
    // Set up an AJAX callback for the style
25
    // Set up an AJAX callback for the style.
26 26
    'ajax' => array(
27 27
      'custom' => 'panels_stylizer_pane_add_style',
28 28
    ),
......
140 140
    return theme($plugin['theme'], array('settings' => $settings, 'class' => ctools_stylizer_get_css_class($plugin, $settings), 'content' => $output));
141 141
  }
142 142
  else {
143
    // if the style is gone, just display the output.
143
    // If the style is gone, just display the output.
144 144
    return $output;
145 145
  }
146 146
}
147 147

  
148 148
/**
149
 * Pane render theme
149
 * Pane render theme.
150 150
 */
151 151
function theme_panels_stylizer_stylizer_style_render_pane($vars) {
152 152
  $content = $vars['content'];
......
174 174
    }
175 175
  }
176 176

  
177
  // if the style is gone or has no theme of its own, just display the output.
177
  // If the style is gone or has no theme of its own, just display the output.
178 178
  return theme('panels_pane', array('content' => $content, 'pane' => $pane, 'display' => $display));
179 179
}
180 180

  
......
257 257
    if ($type == 'pane') {
258 258
      $renderer->command_update_pane($pid);
259 259
    }
260
    else if ($type == 'region') {
260
    elseif ($type == 'region') {
261 261
      $renderer->command_update_region_links($pid);
262 262
    }
263 263
    else {
......
308 308
    '#dependency' => array('edit-preconfigured' => array(1)),
309 309
  );
310 310

  
311
  // Add the checkbox, set the weight early
311
  // Add the checkbox, set the weight early.
312 312
  $form['panels']['preconfigured'] = array(
313 313
    '#type' => 'checkbox',
314 314
    '#title' => t('Make this style available to other regions or panes'),
......
365 365
    $form_state['owner info']['owner settings']['admin_title'] = $form_state['values']['admin_title'];
366 366
    $form_state['owner info']['owner settings']['admin_description'] = $form_state['values']['admin_description'];
367 367

  
368
    // Clean up preview files before we set the name
368
    // Clean up preview files before we set the name.
369 369
    ctools_stylizer_cleanup_style($form_state['plugin'], $form_state['settings']);
370 370

  
371 371
    $form_state['settings']['name'] = $form_state['values']['name'];

Formats disponibles : Unified diff