Revision c06bd9a4
Added by Assos Assos about 4 years ago
drupal7/sites/all/modules/panels/css/panels_admin.css | ||
---|---|---|
10 | 10 |
margin-right: auto; |
11 | 11 |
} |
12 | 12 |
|
13 |
.layout-link span { |
|
14 |
display: block; |
|
15 |
} |
|
16 |
|
|
13 | 17 |
/* general style for the layout-icon */ |
14 | 18 |
.layout-icon .caption { |
15 | 19 |
width: 90px; |
drupal7/sites/all/modules/panels/i18n_panels/i18n_panels.info | ||
---|---|---|
7 | 7 |
package = Multilingual - Internationalization |
8 | 8 |
core = 7.x |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2017-02-06
|
|
11 |
version = "7.x-3.9"
|
|
10 |
; Information added by Drupal.org packaging script on 2020-07-05
|
|
11 |
version = "7.x-3.10"
|
|
12 | 12 |
core = "7.x" |
13 | 13 |
project = "panels" |
14 |
datestamp = "1486394388" |
|
15 |
|
|
14 |
datestamp = "1593990788" |
drupal7/sites/all/modules/panels/i18n_panels/i18n_panels.module | ||
---|---|---|
350 | 350 |
* TRUE if the display is available from code. |
351 | 351 |
*/ |
352 | 352 |
function _18n_panels_is_exported_panels_display($display) { |
353 |
if (isset($display->uuid)) { |
|
354 |
$displays = _18n_panels_fetch_all_panel_displays(); |
|
355 |
return isset($displays['exported-' . $display->uuid]); |
|
353 |
if (!isset($display->uuid)) { |
|
354 |
return FALSE; |
|
355 |
} |
|
356 |
$uuid = $display->uuid; |
|
357 |
// Check exported displays. |
|
358 |
ctools_include('export'); |
|
359 |
$panels_display_temp = ctools_export_crud_load('panels_display', $uuid); |
|
360 |
$panels_mini_temp = ctools_export_crud_load('panels_mini', $uuid); |
|
361 |
if ( |
|
362 |
!empty($panels_display_temp) |
|
363 |
|| !empty($panels_mini_temp) |
|
364 |
|| (module_exists('panelizer') && ctools_export_crud_load('panelizer_defaults', $uuid)) |
|
365 |
) { |
|
366 |
return TRUE; |
|
367 |
} |
|
368 |
|
|
369 |
// Check page manager embedded displays. |
|
370 |
// @see _18n_panels_fetch_all_panel_displays() |
|
371 |
if (module_exists('page_manager')) { |
|
372 |
module_load_include('inc', 'page_manager', 'page_manager.admin'); |
|
373 |
$tasks = page_manager_get_tasks_by_type('page'); |
|
374 |
$pages = array('operations' => array(), 'tasks' => array()); |
|
375 |
page_manager_get_pages($tasks, $pages); |
|
376 |
|
|
377 |
foreach ($pages['tasks'] as $task) { |
|
378 |
$page = page_manager_cache_load($task); |
|
379 |
foreach ($page->handler_info as $id => $info) { |
|
380 |
$page_manager_handler = $page->handlers[$id]; |
|
381 |
if ($page_manager_handler->handler == 'panel_context') { |
|
382 |
$is_exported = ($page_manager_handler->export_type == (EXPORT_IN_CODE | EXPORT_IN_DATABASE) || (isset($page->subtask['storage']) && $page->subtask['storage'] == t('Overridden'))); |
|
383 |
if (!empty($page_manager_handler->conf['display'])) { |
|
384 |
$panels_display = $page_manager_handler->conf['display']; |
|
385 |
if ($panels_display->uuid == $uuid) { |
|
386 |
return TRUE; |
|
387 |
} |
|
388 |
} |
|
389 |
elseif ($is_exported && isset($page_manager_handler->conf['did'])) { |
|
390 |
$panels_display = panels_load_display($page_manager_handler->conf['did']); |
|
391 |
if (isset($panels_display->uuid) && $panels_display->uuid == $uuid) { |
|
392 |
return TRUE; |
|
393 |
} |
|
394 |
} |
|
395 |
} |
|
396 |
} |
|
397 |
} |
|
356 | 398 |
} |
357 | 399 |
return FALSE; |
358 | 400 |
} |
drupal7/sites/all/modules/panels/panels.info | ||
---|---|---|
18 | 18 |
files[] = tests/PanelsTermViewWebTestCase.test |
19 | 19 |
files[] = tests/PanelsUserViewWebTestCase.test |
20 | 20 |
|
21 |
; Information added by Drupal.org packaging script on 2017-02-06
|
|
22 |
version = "7.x-3.9"
|
|
21 |
; Information added by Drupal.org packaging script on 2020-07-05
|
|
22 |
version = "7.x-3.10"
|
|
23 | 23 |
core = "7.x" |
24 | 24 |
project = "panels" |
25 |
datestamp = "1486394388" |
|
26 |
|
|
25 |
datestamp = "1593990788" |
drupal7/sites/all/modules/panels/panels.module | ||
---|---|---|
58 | 58 |
'image' => NULL, |
59 | 59 |
'link' => NULL, |
60 | 60 |
'class' => NULL, |
61 |
'options' => NULL, |
|
61 | 62 |
), |
62 | 63 |
); |
63 | 64 |
$theme['panels_layout_icon'] = array( |
... | ... | |
552 | 553 |
function panels_stylizer_lipsum() { |
553 | 554 |
return <<<LIPSUM |
554 | 555 |
<p> |
555 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus at
|
|
556 |
velit dolor. Donec egestas tellus sit amet urna rhoncus adipiscing. Proin
|
|
556 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus at |
|
557 |
velit dolor. Donec egestas tellus sit amet urna rhoncus adipiscing. Proin |
|
557 | 558 |
nec porttitor sem. Maecenas aliquam, purus nec tempus dignissim, nulla arcu |
558 | 559 |
aliquam diam, non tincidunt massa ante vel dolor. Aliquam sapien sapien, |
559 | 560 |
tincidunt id tristique at, pretium sagittis libero. |
... | ... | |
805 | 806 |
$this->add_pane($pane, $location); |
806 | 807 |
} |
807 | 808 |
|
809 |
/** |
|
810 |
* Clone a pane. |
|
811 |
*/ |
|
812 |
public function clone_pane($pid) { |
|
813 |
$pane = clone $this->content[$pid]; |
|
814 |
$pane->uuid = ctools_uuid_generate(); |
|
815 |
return $pane; |
|
816 |
} |
|
817 |
|
|
808 | 818 |
/** |
809 | 819 |
* Get the title from a display. |
810 | 820 |
* |
... | ... | |
1368 | 1378 |
* @todo Why does this take 4 arguments but only makes use of two? |
1369 | 1379 |
*/ |
1370 | 1380 |
function theme_panels_layout_link($vars) { |
1371 |
$output = '<div class="' . implode(' ', $vars['class']) . '">'; |
|
1372 |
$output .= $vars['image']; |
|
1373 |
$output .= '<div>' . $vars['title'] . '</div>'; |
|
1374 |
$output .= '</div>'; |
|
1375 |
return $output; |
|
1381 |
$options = !empty($vars['options']) ? $vars['options'] : array(); |
|
1382 |
if (!isset($options['attributes']['class'])) { |
|
1383 |
$options['attributes']['class'] = array(); |
|
1384 |
} |
|
1385 |
$options['attributes']['class'] = array_merge($options['attributes']['class'], $vars['class']); |
|
1386 |
|
|
1387 |
$content = $vars['image'] . '<span>' . $vars['title'] . '</span>'; |
|
1388 |
return l($content, $vars['link'], $options + array('html' => TRUE)); |
|
1376 | 1389 |
} |
1377 | 1390 |
|
1378 | 1391 |
/** |
... | ... | |
1394 | 1407 |
|
1395 | 1408 |
ctools_add_css('panels_admin', 'panels'); |
1396 | 1409 |
$file = $layout['path'] . '/' . $layout['icon']; |
1397 |
$image = l( |
|
1398 |
theme('image', array('path' => $file)), |
|
1399 |
$link, |
|
1400 |
array('html' => TRUE) + $options |
|
1401 |
); |
|
1402 |
$title = l($layout['title'], $link, $options); |
|
1410 |
$image = theme('image', array('path' => $file)); |
|
1403 | 1411 |
return theme( |
1404 | 1412 |
'panels_layout_link', |
1405 | 1413 |
array( |
1406 |
'title' => $title,
|
|
1414 |
'title' => $layout['title'],
|
|
1407 | 1415 |
'image' => $image, |
1416 |
'link' => $link, |
|
1408 | 1417 |
'class' => $class, |
1418 |
'options' => $options, |
|
1409 | 1419 |
) |
1410 | 1420 |
); |
1411 | 1421 |
} |
... | ... | |
2057 | 2067 |
$subtype_prefix_hyphen = $exploded_subtype[0] . '-'; |
2058 | 2068 |
|
2059 | 2069 |
// Remove the prefix block- to get the name. |
2060 |
$name_of_block = ltrim($prefixed_name, $subtype_prefix_hyphen);
|
|
2070 |
$name_of_block = preg_replace("/^$subtype_prefix_hyphen/", '', $prefixed_name, 1);
|
|
2061 | 2071 |
|
2062 | 2072 |
// Check for user added menus created at /admin/structure/menu/add |
2063 | 2073 |
// menus of that type have a subtype that is prefixed with menu-menu-. |
drupal7/sites/all/modules/panels/panels_ipe/panels_ipe.info | ||
---|---|---|
6 | 6 |
configure = admin/structure/panels |
7 | 7 |
files[] = panels_ipe.module |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2017-02-06
|
|
10 |
version = "7.x-3.9"
|
|
9 |
; Information added by Drupal.org packaging script on 2020-07-05
|
|
10 |
version = "7.x-3.10"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "panels" |
13 |
datestamp = "1486394388" |
|
14 |
|
|
13 |
datestamp = "1593990788" |
drupal7/sites/all/modules/panels/panels_ipe/panels_ipe.module | ||
---|---|---|
90 | 90 |
$vars['links']['edit'] = array( |
91 | 91 |
'title' => isset($content_type['edit text']) ? '<span>' . $content_type['edit text'] . '</span>' : '<span>' . t('Settings') . '</span>', |
92 | 92 |
'href' => $renderer->get_url('edit-pane', $pane->pid), |
93 |
'query' => drupal_get_destination(), |
|
93 | 94 |
'html' => TRUE, |
94 | 95 |
'attributes' => array( |
95 | 96 |
'class' => array('ctools-use-modal', 'panels-ipe-hide-bar'), |
... | ... | |
104 | 105 |
$vars['links']['style'] = array( |
105 | 106 |
'title' => '<span>' . t('Style') . '</span>', |
106 | 107 |
'href' => $renderer->get_url('style-type', 'pane', $pane->pid), |
108 |
'query' => drupal_get_destination(), |
|
107 | 109 |
'html' => TRUE, |
108 | 110 |
'attributes' => array( |
109 | 111 |
'class' => array('ctools-use-modal', 'panels-ipe-hide-bar'), |
... | ... | |
117 | 119 |
$vars['links']['css'] = array( |
118 | 120 |
'title' => '<span>' . t('CSS') . '</span>', |
119 | 121 |
'href' => $renderer->get_url('pane-css', $pane->pid), |
122 |
'query' => drupal_get_destination(), |
|
120 | 123 |
'html' => TRUE, |
121 | 124 |
'attributes' => array( |
122 | 125 |
'class' => array('ctools-use-modal', 'panels-ipe-hide-bar'), |
... | ... | |
226 | 229 |
return '<div class="panels-ipe-newblock panels-ipe-on">' . $links . '</div>'; |
227 | 230 |
} |
228 | 231 |
|
229 |
/** |
|
230 |
* @deprecated |
|
231 |
*/ |
|
232 |
function panels_ipe_get_cache_key($key = NULL) { |
|
233 |
return array(); |
|
234 |
} |
|
235 |
|
|
236 | 232 |
/** |
237 | 233 |
* Add a button to the IPE toolbar. |
238 | 234 |
*/ |
drupal7/sites/all/modules/panels/panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php | ||
---|---|---|
127 | 127 |
* @param $pane |
128 | 128 |
*/ |
129 | 129 |
function render_pane(&$pane) { |
130 |
// Temporarily change $_GET['q'] so that panes think the current path is |
|
131 |
// the original path when rendering. |
|
132 |
$ajax_path = $_GET['q']; |
|
133 |
if (!empty($_GET['destination'])) { |
|
134 |
$_GET['q'] = $_GET['destination']; |
|
135 |
} |
|
136 |
|
|
130 | 137 |
$output = parent::render_pane($pane); |
138 |
|
|
139 |
// Reset $_GET['q'] to the AJAX path. |
|
140 |
$_GET['q'] = $ajax_path; |
|
141 |
|
|
131 | 142 |
if (empty($output)) { |
132 | 143 |
return; |
133 | 144 |
} |
drupal7/sites/all/modules/panels/panels_mini/panels_mini.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = plugins/export_ui/panels_mini_ui.class.php |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2017-02-06
|
|
9 |
version = "7.x-3.9"
|
|
8 |
; Information added by Drupal.org packaging script on 2020-07-05
|
|
9 |
version = "7.x-3.10"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "panels" |
12 |
datestamp = "1486394388" |
|
13 |
|
|
12 |
datestamp = "1593990788" |
drupal7/sites/all/modules/panels/panels_mini/panels_mini.module | ||
---|---|---|
143 | 143 |
* Remove the block if the required contexts are not available. |
144 | 144 |
*/ |
145 | 145 |
function panels_mini_block_list_alter(&$blocks) { |
146 |
$current_page = FALSE; |
|
146 | 147 |
if (module_exists('page_manager')) { |
147 | 148 |
$current_page = page_manager_get_current_page(); |
148 | 149 |
} |
drupal7/sites/all/modules/panels/panels_node/panels_node.info | ||
---|---|---|
1 |
name = Panel nodes |
|
2 |
description = Create nodes that are divided into areas with selectable content. |
|
1 |
name = Panel nodes (deprecated)
|
|
2 |
description = Create nodes that are divided into areas with selectable content. This module is deprecated, use <a href="http://drupal.org/project/panelizer">Panelizer</a> instead.
|
|
3 | 3 |
package = "Panels" |
4 | 4 |
dependencies[] = panels |
5 | 5 |
configure = admin/structure/panels |
6 | 6 |
core = 7.x |
7 | 7 |
files[] = panels_node.module |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2017-02-06
|
|
10 |
version = "7.x-3.9"
|
|
9 |
; Information added by Drupal.org packaging script on 2020-07-05
|
|
10 |
version = "7.x-3.10"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "panels" |
13 |
datestamp = "1486394388" |
|
14 |
|
|
13 |
datestamp = "1593990788" |
drupal7/sites/all/modules/panels/panels_node/panels_node.module | ||
---|---|---|
445 | 445 |
$cache->display->context = panels_node_get_context($node); |
446 | 446 |
$cache->display->cache_key = 'panels_node:' . $node->nid; |
447 | 447 |
$cache->content_types = panels_common_get_allowed_types('panels_node', $cache->display->context); |
448 |
$cache->allwed_layouts = panels_common_get_allowed_layouts('panels_node'); |
|
448 |
$cache->allowed_layouts = panels_common_get_allowed_layouts('panels_node');
|
|
449 | 449 |
} |
450 | 450 |
|
451 | 451 |
return $cache; |
drupal7/sites/all/modules/panels/plugins/display_renderers/panels_renderer_editor.class.php | ||
---|---|---|
615 | 615 |
} |
616 | 616 |
elseif (isset($content_type['category'])) { |
617 | 617 |
if (is_array($content_type['category'])) { |
618 |
list($category, $weight) = $content_type['category'];
|
|
618 |
$category = reset($content_type['category']);
|
|
619 | 619 |
} |
620 | 620 |
else { |
621 | 621 |
$category = $content_type['category']; |
... | ... | |
1052 | 1052 |
case 'pane': |
1053 | 1053 |
$pane->style['style'] = $form_state['style']; |
1054 | 1054 |
if (isset($pane->style['settings'])) { |
1055 |
unset($pane->style['settings']);
|
|
1055 |
$pane->style['settings'] = NULL;
|
|
1056 | 1056 |
} |
1057 |
|
|
1058 | 1057 |
break; |
1059 | 1058 |
} |
1060 | 1059 |
panels_edit_cache_set($this->cache); |
... | ... | |
1149 | 1148 |
|
1150 | 1149 |
// Backward compatibility: Translate old-style stylizer to new style |
1151 | 1150 |
// stylizer. |
1152 |
if ($style['name'] == 'stylizer' && !empty($conf['style']) && $conf['style'] != '$') { |
|
1151 |
if (isset($style['name']) && $style['name'] == 'stylizer' && !empty($conf['style']) && $conf['style'] != '$') {
|
|
1153 | 1152 |
$style = panels_get_style('stylizer:' . $conf['style']); |
1154 | 1153 |
} |
1155 | 1154 |
|
... | ... | |
1404 | 1403 |
); |
1405 | 1404 |
|
1406 | 1405 |
$output = ctools_modal_form_wrapper('panels_edit_configure_access_test_form', $form_state); |
1406 |
$pane->access['plugins'][$id] = $form_state['test']; |
|
1407 |
|
|
1407 | 1408 |
if (empty($form_state['executed'])) { |
1408 | 1409 |
$this->commands = $output; |
1409 | 1410 |
return; |
... | ... | |
2063 | 2064 |
$function($form, $form_state); |
2064 | 2065 |
} |
2065 | 2066 |
|
2067 |
if (!isset($form_state['values']['settings'])) { |
|
2068 |
$form_state['values']['settings'] = array(); |
|
2069 |
} |
|
2066 | 2070 |
$form_state['test']['settings'] = $form_state['values']['settings']; |
2067 | 2071 |
if (isset($form_state['values']['context'])) { |
2068 | 2072 |
$form_state['test']['context'] = $form_state['values']['context']; |
drupal7/sites/all/modules/panels/plugins/page_wizards/landing_page.inc | ||
---|---|---|
278 | 278 |
page_manager_save_page_cache($page); |
279 | 279 |
|
280 | 280 |
// Send us to the new page immediately. |
281 |
$form_state['redirect'] = url($cache->path);
|
|
281 |
$form_state['redirect'] = $cache->path;
|
|
282 | 282 |
} |
Also available in: Unified diff
Weekly update of contrib modules