Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -7,9 +7,6 @@
|
|||
border: 0;
|
||||
position: absolute;
|
||||
z-index: 1260;
|
||||
/* jQuery UI modals crash in Firefox unless overflow is set to hidden.
|
||||
See: https://www.drupal.org/node/2423781 */
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
@media all and (max-width: 48em) { /* 768px */
|
||||
|
|
|
@ -38,3 +38,7 @@ ul.inline li {
|
|||
ul.inline li {
|
||||
display: inline;
|
||||
}
|
||||
.item-list .item-list__comma-list,
|
||||
[dir="rtl"] .item-list .item-list__comma-list {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
@ -14,12 +14,14 @@ stylesheets-remove:
|
|||
quickedit_stylesheets:
|
||||
- css/components/quickedit.css
|
||||
regions:
|
||||
content: Content
|
||||
header: 'Header'
|
||||
pre_content: 'Pre-content'
|
||||
breadcrumb: Breadcrumb
|
||||
highlighted: Highlighted
|
||||
help: Help
|
||||
content: Content
|
||||
page_top: 'Page top'
|
||||
page_bottom: 'Page bottom'
|
||||
sidebar_first: 'First sidebar'
|
||||
breadcrumb: Breadcrumb
|
||||
regions_hidden:
|
||||
- sidebar_first
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
use Drupal\Component\Utility\Xss;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
|
@ -24,18 +23,6 @@ function seven_preprocess_html(&$variables) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for page templates.
|
||||
*/
|
||||
function seven_preprocess_page(&$variables) {
|
||||
$variables['primary_local_tasks'] = $variables['tabs'];
|
||||
unset($variables['primary_local_tasks']['#secondary']);
|
||||
$variables['secondary_local_tasks'] = array(
|
||||
'#theme' => 'menu_local_tasks',
|
||||
'#secondary' => isset($variables['tabs']['#secondary']) ? $variables['tabs']['#secondary'] : '',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_pre_render_HOOK() for menu-local-tasks templates.
|
||||
*
|
||||
|
@ -74,7 +61,7 @@ function seven_preprocess_node_add_list(&$variables) {
|
|||
if (!empty($variables['content'])) {
|
||||
/** @var \Drupal\node\NodeTypeInterface $type */
|
||||
foreach ($variables['content'] as $type) {
|
||||
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
|
||||
$variables['types'][$type->id()]['label'] = $type->label();
|
||||
$variables['types'][$type->id()]['url'] = \Drupal::url('node.add', array('node_type' => $type->id()));
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +76,7 @@ function seven_preprocess_node_add_list(&$variables) {
|
|||
function seven_preprocess_block_content_add_list(&$variables) {
|
||||
if (!empty($variables['content'])) {
|
||||
foreach ($variables['content'] as $type) {
|
||||
$variables['types'][$type->id()]['label'] = SafeMarkup::checkPlain($type->label());
|
||||
$variables['types'][$type->id()]['label'] = $type->label();
|
||||
$options = array('query' => \Drupal::request()->query->all());
|
||||
$variables['types'][$type->id()]['url'] = \Drupal::url('block_content.add_form', array('block_content_type' => $type->id()), $options);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{% extends "@block/block.html.twig" %}
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for local actions (primary admin actions.)
|
||||
*/
|
||||
#}
|
||||
{% block content %}
|
||||
{% if content %}
|
||||
<ul class="action-links">
|
||||
{{ content }}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -32,24 +32,18 @@
|
|||
* - title: The page title, for use in the actual content.
|
||||
* - title_suffix: Additional output populated by modules, intended to be
|
||||
* displayed after the main title tag that appears in the template.
|
||||
* - tabs: Tabs linking to any sub-pages beneath the current page (e.g., the
|
||||
* view and edit tabs when displaying a node).
|
||||
* - action_links: Actions local to the page, such as "Add menu" on the menu
|
||||
* administration interface.
|
||||
* - node: Fully loaded node, if there is an automatically-loaded node
|
||||
* associated with the page and the node ID is the second argument in the
|
||||
* page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||
* comment/reply/12345).
|
||||
*
|
||||
* Regions:
|
||||
* - page.page_top: Items for the header region.
|
||||
* - page.header: Items for the header region.
|
||||
* - page.pre_content: Items for the pre-content region.
|
||||
* - page.breadcrumb: Items for the breadcrumb region.
|
||||
* - page.highlighted: Items for the highlighted region.
|
||||
* - page.help: Dynamic help text, mostly for admin pages.
|
||||
* - page.content: The main content of the current page.
|
||||
* - page.sidebar_first: Items for the first sidebar.
|
||||
* - page.sidebar_second: Items for the second sidebar.
|
||||
* - page.page_bottom: Items for the footer region.
|
||||
* - page.breadcrumb: Items for the breadcrumb region.
|
||||
*
|
||||
* @see template_preprocess_page()
|
||||
* @see seven_preprocess_page()
|
||||
|
@ -63,19 +57,13 @@
|
|||
<h1 class="page-title">{{ title }}</h1>
|
||||
{% endif %}
|
||||
{{ title_suffix }}
|
||||
{% if primary_local_tasks %}
|
||||
{{ primary_local_tasks }}
|
||||
{% endif %}
|
||||
{{ page.header }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="layout-container">
|
||||
{% if secondary_local_tasks %}
|
||||
<div class="tabs-secondary clearfix" role="navigation">{{ secondary_local_tasks }}</div>
|
||||
{% endif %}
|
||||
|
||||
{{ page.pre_content }}
|
||||
{{ page.breadcrumb }}
|
||||
|
||||
<main class="page-content clearfix" role="main">
|
||||
<div class="visually-hidden"><a id="main-content" tabindex="-1"></a></div>
|
||||
{{ page.highlighted }}
|
||||
|
@ -84,11 +72,6 @@
|
|||
{{ page.help }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if action_links %}
|
||||
<ul class="action-links">
|
||||
{{ action_links }}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{{ page.content }}
|
||||
</main>
|
||||
|
||||
|
|
Reference in a new issue