security update core+modules

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-26 18:38:56 +02:00
parent 2f45ea820a
commit 7c96373038
1022 changed files with 30319 additions and 11259 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,25 @@
/**
* This was copied from twitter bootstrap's mixins.less and given a slight
* modification to make it a parametric mixin to hide from CSS output.
*
* Look at these locations for more information:
* http://lesscss.org/#-parametric-mixins
*/
// Clearfix
// --------
// For clearing floats like a boss h5bp.com/q
.clearfix() {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
// Fixes Opera/contenteditable bug:
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
line-height: 0;
}
&:after {
clear: both;
}
}

View File

@@ -0,0 +1,10 @@
.gradient(@gradient_top: #bada55, @gradient_bottom: darken(@gradient_top, 10%)) {
background-color: @gradient_bottom;
background-image: -moz-linear-gradient(top, @gradient_top 0%, @gradient_bottom 100%);
background-image: -ms-linear-gradient(top, @gradient_top 0%, @gradient_bottom 100%);
background-image: -o-linear-gradient(top, @gradient_top 0%, @gradient_bottom 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, @gradient_top), color-stop(1, @gradient_bottom));
background-image: -webkit-linear-gradient(top, @gradient_top 0%, @gradient_bottom 100%);
background-image: linear-gradient(top, @gradient_top 0%, @gradient_bottom 100%);
}

View File

@@ -0,0 +1,50 @@
<?php
/**
* Callback that provides styleable content for demonstration purposes.
*/
function _less_demo_page() {
global $theme_key;
$file_less_settings = array(
'variables' => array(
'@gradient_end' => '#bada55',
),
);
$output = array(
'#attached' => array(
'css' => array(
drupal_get_path('module', 'less_demo') . '/styles/less_demo.drupal_add_css.css.less' => array(
'less' => $file_less_settings,
)
),
),
);
$output['page'] = array(
'#type' => 'container',
'#attributes' => array(
'id' => 'less_demo_gradient',
),
);
$output['page']['less_demo_logo'] = array(
'#type' => 'html_tag',
'#tag' => 'div',
'#attributes' => array(
'class' => array(
'less_demo_logo',
),
),
'#value' => '', // '#value' is required for closing tag.
);
$output['page']['less_demo_theme_link'] = array(
'#type' => 'html_tag',
'#tag' => 'p',
'#value' => l('Configure current theme', 'admin/appearance/settings/' . $theme_key),
);
return $output;
}

View File

@@ -0,0 +1,30 @@
name = "LESS CSS Preprocessor - DEMO"
description = "Demonstrate LESS module functionality and implementation examples."
core = 7.x
dependencies[] = less
configure = admin/config/development/less/demo
; Sheets with .less extension will automatically receive variables below.
stylesheets[all][] = styles/less_demo.info.css.less
; Variables defined here will automatically be available inside sheets
; registered to this module.
; Variables are lazy evaluated, so they don't have to be defined in order.
less[vars][@gradient_end] = darken(@gradient_start, 10%);
less[vars][@gradient_start] = #0779bf;
less[vars][@text_glow] = lighten(@gradient_start, 10%);
; Register non-global sheets to automatically receive variables associated with
; this module.
less[sheets][] = styles/less_demo.drupal_add_css.css.less
; Information added by Drupal.org packaging script on 2015-01-30
version = "7.x-4.0"
core = "7.x"
project = "less"
datestamp = "1422653011"

View File

@@ -0,0 +1,86 @@
<?php
/**
* @file
* Contains implementations of Less module hooks.
*/
/**
* Implements hook_less_variables().
*/
function less_demo_less_variables() {
return array(
'@text_glow' => 'black', // This will take precedence over .info file value.
'@test' => '#ccc', // This value is defined for the first time here.
);
}
/**
* Implements hook_less_variables_alter().
*/
function less_demo_less_variables_alter(&$less_variables, $system_name) {
if ($system_name === 'less_demo') {
$less_variables['@text_glow'] = 'blue';
}
}
/**
* Implements hook_less_variables_SYSTEM_NAME_alter().
*/
function less_demo_less_variables_less_demo_alter(&$less_variables) {
$less_variables['@test'] = 'green';
}
/**
* Implements hook_less_functions().
*/
function less_demo_less_functions() {
return array(
'swap' => '_less_demo_reverse',
);
}
/**
* Implements hook_less_functions_alter().
*/
function less_demo_less_functions_alter(&$less_functions, $system_name) {
if ($system_name === 'less_demo') {
}
}
/**
* Implements hook_less_functions_SYSTEM_NAME_alter().
*/
function less_demo_less_functions_less_demo_alter(&$less_functions) {
}
/**
* Implements hook_less_paths().
*/
function less_demo_less_paths() {
return array(
drupal_get_path('module', 'less_demo') . '/libs',
);
}
/**
* LESS function that takes a series of arguments and reverses their order.
*/
function _less_demo_reverse($arg) {
list($type, $delimiter, $value) = $arg;
if ($type === 'list') {
$arg = array($type, $delimiter, array_reverse($value));
}
return $arg;
}

View File

@@ -0,0 +1,30 @@
<?php
/**
* Implements hook_menu().
*/
function less_demo_menu() {
$items = array();
$items['admin/config/development/less/demo'] = array(
'title' => 'LESS Demo',
'description' => 'Demonstration for less features',
'page callback' => '_less_demo_page',
'access arguments' => array(LESS_PERMISSION),
'file' => 'less_demo.demo_page.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
return $items;
}
/**
* Implements hook_admin_paths().
*/
function less_demo_admin_paths() {
return array(
'admin/config/development/less/demo' => FALSE,
);
}

View File

@@ -0,0 +1,9 @@
@import '../imports/less_demo.imported.css.less';
#header {
.gradient(@gradient_start, @gradient_end) !important;
}
.less_demo_swap {
margin: swap(10px, 15px);
}

View File

@@ -0,0 +1,58 @@
@import '../imports/less_demo.imported.css.less';
@import '../imports/less_demo.clearfix.css.less';
/**
* The following variables defined in less_demo.info:
* @gradient_start
* @gradient_end
* @text_glow
*/
@gradient_start: blue;
@gradient_end: black;
@text_glow: green;
@test: red;
#less_demo_gradient {
.clearfix;
.gradient(@gradient_start, @gradient_end);
font-family: Arial, Helvetica, sans-serif;
font-size: 80px;
text-shadow: 0 0 0 transparent, 0 0 10px @text_glow;
text-align: center;
a {
color: @test;
}
.less_demo_logo {
background: transparent url(../images/logo.png) center center no-repeat;
height:200px;
@media only screen and (max-width: 960px) {
float:left;
width: 199px;
}
}
p {
@media only screen and (max-width: 960px) {
float: left;
}
}
.less_demo_logo {
&:after {
display: block;
content: token("Site name from token in .less file: [site:name]");
font-size: 20px;
}
}
}