function panels_renderer_editor::get_style_links in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_renderer_editor::get_style_links()
Get the style links.
This is abstracted out since we have styles on both panes and regions.
3 calls to panels_renderer_editor::get_style_links()
- panels_renderer_editor::get_display_links in plugins/
display_renderers/ panels_renderer_editor.class.php - Get the links for a panel display.
- panels_renderer_editor::get_pane_links in plugins/
display_renderers/ panels_renderer_editor.class.php - Render the links to display when editing a pane.
- panels_renderer_editor::get_region_links in plugins/
display_renderers/ panels_renderer_editor.class.php - Render the links to display when editing a region.
File
- plugins/
display_renderers/ panels_renderer_editor.class.php, line 169 - Class file to control the main Panels editor.
Class
- panels_renderer_editor
- @file Class file to control the main Panels editor.
Code
function get_style_links($type, $id = NULL) {
$info = $this
->get_style($type, $id);
$style = $info[0];
$conf = $info[1];
$style_title = isset($style['title']) ? $style['title'] : t('Default');
$style_links[] = array(
'title' => $style_title,
'attributes' => array(
'class' => 'panels-text',
),
);
$style_links[] = array(
'title' => t('Change'),
'href' => $this
->get_url('style-type', $type, $id),
'attributes' => array(
'class' => 'ctools-use-modal',
),
);
$function = $type != 'pane' ? 'settings form' : 'pane settings form';
if (panels_plugin_get_function('styles', $style, $function)) {
$style_links[] = array(
'title' => t('Settings'),
'href' => $this
->get_url('style-settings', $type, $id),
'attributes' => array(
'class' => 'ctools-use-modal',
),
);
}
return $style_links;
}