updated contrib themes

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-05 15:35:11 +01:00
parent 104fcaf970
commit 82bb633c3e
44 changed files with 3533 additions and 2015 deletions

View File

@@ -23,8 +23,8 @@ div.teaser-button-wrapper {
.progress .percentage { float:left; }
.progess-disabled { float:right; }
.ahah-progress { float:right; }
.ahah-progress .throbber { float:right; }
.ajax-progress { float:right; }
.ajax-progress .throbber { float:right; }
.draggable a.tabledrag-handle {
float: right;

View File

@@ -77,7 +77,6 @@ html.js .js-hide { display:none; }
.element-invisible {
position:absolute !important;
clip:rect(1px 1px 1px 1px); /* IE6, IE7 */
clip:rect(1px, 1px, 1px, 1px);
}
@@ -105,13 +104,13 @@ div.ok { border:1px solid #00aa00; }
div.error,
tr.error {
background:#fcc;
background-color:#fcc;
color:#200;
}
div.warning,
tr.warning {
background:#ffd;
background-color:#ffd;
color:#220;
}
@@ -281,16 +280,16 @@ html.js .no-js { display:none; }
.progress .percentage { float:right; }
.progress-disabled { float:left; }
.ahah-progress { float:left; }
.ajax-progress { float:left; }
.ahah-progress .throbber {
.ajax-progress .throbber {
width:20px;
height:20px;
background:transparent url(drupal/throbber.gif) 50% 50% no-repeat;
float:left;
}
.ahah-progress-bar { width:16em; }
.ajax-progress-bar { width:16em; }
/**
* Formatting for welcome page
@@ -337,11 +336,7 @@ html.js .js-hide { display:none; }
height: 0;
clear: both;
visibility: hidden;
}
* html .clearfix { height: 1%; } /* IE6 */
*:first-child + html .clearfix { min-height: 1%; } /* IE7 */
}
/**
* update/update.css ==================================================
@@ -391,4 +386,5 @@ html.js .js-hide { display:none; }
}
.vertical-tabs .vertical-tabs-panes .vertical-tabs-pane legend { display:none; }
.vertical-tabs .vertical-tabs-panes .vertical-tabs-pane #search-api-alter-add-aggregation-field-settings legend { display:block; }
.vertical-tabs .vertical-tabs-list .summary { display:block; }

View File

@@ -0,0 +1,3 @@
.element-invisible {clip:rect(1px 1px 1px 1px); /* IE6, IE7 */}
* html .clearfix { height: 1%; } /* IE6 */
*:first-child + html .clearfix { min-height: 1%; } /* IE7 */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -1,6 +1,5 @@
core = 7.x
description = Tao is a base theme that is all about going with the flow. It takes care of key reset and utility tasks so that sub-themes can get on with their job.
engine = phptemplate
name = Tao
; Regions =====================================================================
@@ -20,10 +19,11 @@ regions[highlighted] = Highlighted
stylesheets[all][] = reset.css
stylesheets[all][] = base.css
stylesheets[screen][] = drupal.css
stylesheets[ie][lte IE 7] = ie.css
; Information added by drupal.org packaging script on 2011-09-21
version = "7.x-3.0-beta4"
; Information added by Drupal.org packaging script on 2014-03-18
version = "7.x-3.1"
core = "7.x"
project = "tao"
datestamp = "1316616407"
datestamp = "1395127156"

View File

@@ -43,7 +43,6 @@ function tao_css_alter(&$css) {
'modules/system/system.base.css' => FALSE,
'modules/system/system.maintenance.css' => FALSE,
'modules/system/system.menus.css' => FALSE,
'modules/system/system.messages.css' => FALSE,
'modules/system/system.theme.css' => FALSE,
'modules/taxonomy/taxonomy.css' => FALSE,
'modules/tracker/tracker.css' => FALSE,
@@ -98,6 +97,23 @@ function tao_theme() {
*/
function tao_preprocess_html(&$vars) {
$vars['classes_array'][] = 'tao';
// Add IE from theme file.
$tao_path = drupal_get_path('theme', 'tao');
$info = drupal_parse_info_file($tao_path.'/tao.info');
$ie = $info['stylesheets']['ie'];
foreach ($ie as $key => $value) {
drupal_add_css(
$tao_path.'/'.$value,
array(
'browsers' => array(
'IE' => $key,
'!IE' => FALSE
)
)
);
}
}
/**
@@ -119,11 +135,12 @@ function tao_preprocess_block(&$vars) {
$vars['hook'] = 'block';
$vars['attributes_array']['id'] = $vars['block_html_id'];
$vars['attributes_array']['class'] = $vars['classes_array'];
$vars['title_attributes_array']['class'][] = 'block-title';
$vars['title_attributes_array']['class'][] = $vars['hook'] . '-title';
$vars['title_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'block-content';
$vars['content_attributes_array']['class'][] = $vars['hook'] . '-content';
$vars['content_attributes_array']['class'][] = 'clearfix';
if ($vars['block']->module == 'block') {
$vars['content_attributes_array']['class'][] = 'prose';
@@ -148,12 +165,14 @@ function tao_preprocess_block(&$vars) {
function tao_preprocess_node(&$vars) {
$vars['hook'] = 'node';
$vars['classes_array'][] = 'clearfix';
$vars['attributes_array']['id'] = "node-{$vars['node']->nid}";
$vars['title_attributes_array']['class'][] = 'node-title';
$vars['title_attributes_array']['class'][] = $vars['hook'] . '-title';
$vars['title_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'node-content';
$vars['content_attributes_array']['class'][] = $vars['hook'] . '-content';
$vars['content_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'prose';
@@ -181,10 +200,12 @@ function tao_preprocess_node(&$vars) {
function tao_preprocess_comment(&$vars) {
$vars['hook'] = 'comment';
$vars['title_attributes_array']['class'][] = 'comment-title';
$vars['classes_array'][] = 'clearfix';
$vars['title_attributes_array']['class'][] = $vars['hook'] . '-title';
$vars['title_attributes_array']['class'][] = 'clearfix';
$vars['content_attributes_array']['class'][] = 'comment-content';
$vars['content_attributes_array']['class'][] = $vars['hook'] . '-content';
$vars['content_attributes_array']['class'][] = 'clearfix';
$vars['submitted'] = t('Submitted by !username on !datetime', array(
@@ -210,7 +231,11 @@ function tao_preprocess_fieldset(&$vars) {
$vars['attributes']['class'][] = 'titled';
}
if (!empty($element['#id'])) {
$vars['attributes']['id'] = $element['#id'];
if (!empty($element["#attributes"]["id"])) {
$vars['attributes']['id'] = $element["#attributes"]["id"];
} else {
$vars['attributes']['id'] = $element['#id'];
}
}
$description = !empty($element['#description']) ? "<div class='description'>{$element['#description']}</div>" : '';
@@ -239,8 +264,8 @@ function tao_preprocess_field(&$vars) {
* Override of theme('textarea').
* Deprecate misc/textarea.js in favor of using the 'resize' CSS3 property.
*/
function tao_textarea($variables) {
$element = $variables['element'];
function tao_textarea($vars) {
$element = $vars['element'];
$element['#attributes']['name'] = $element['#name'];
$element['#attributes']['id'] = $element['#id'];
$element['#attributes']['cols'] = $element['#cols'];
@@ -305,7 +330,7 @@ function tao_pager($vars) {
'attributes' => array('class' => 'links pager pager-links')
));
if ($pager_list) {
return "<div class='pager clearfix'>$pager_list $pager_links</div>";
return '<div class="pager clearfix">' . $pager_list . ' ' . $pager_links . '</div>';
}
}

View File

@@ -1,11 +1,11 @@
<?php if (!empty($pre_object)) print render($pre_object) ?>
<div class='<?php print $classes ?> clearfix' <?php print ($attributes) ?>>
<div<?php print ($attributes) ?>>
<?php if (!empty($title_prefix)) print render($title_prefix); ?>
<?php if (!$page && !empty($title)): ?>
<h2 <?php if (!empty($title_attributes)) print $title_attributes ?>>
<?php if (!empty($new)): ?><span class='new'><?php print $new ?></span><?php endif; ?>
<?php if (!empty($new)): ?><span class="new"><?php print $new ?></span><?php endif; ?>
<a href="<?php print $node_url ?>"><?php print $title ?></a>
</h2>
<?php endif; ?>
@@ -13,17 +13,17 @@
<?php if (!empty($title_suffix)) print render($title_suffix); ?>
<?php if (!empty($submitted)): ?>
<div class='<?php print $hook ?>-submitted clearfix'><?php print $submitted ?></div>
<div class="<?php print $hook ?>-submitted clearfix"><?php print $submitted ?></div>
<?php endif; ?>
<?php if (!empty($content)): ?>
<div class='<?php print $hook ?>-content clearfix <?php if (!empty($is_prose)) print 'prose' ?>'>
<div<?php print $content_attributes ?>>
<?php print render($content) ?>
</div>
<?php endif; ?>
<?php if (!empty($links)): ?>
<div class='<?php print $hook ?>-links clearfix'>
<div class="<?php print $hook ?>-links clearfix">
<?php print render($links) ?>
</div>
<?php endif; ?>

View File

@@ -1,11 +1,11 @@
<?php if (!empty($pre_object)) print render($pre_object) ?>
<div class='<?php print $classes ?> clearfix' <?php print ($attributes) ?>>
<div<?php print $attributes ?>>
<?php if (!empty($title_prefix)) print render($title_prefix); ?>
<?php if (!empty($title)): ?>
<h2 <?php if (!empty($title_attributes)) print $title_attributes ?>>
<?php if (!empty($new)): ?><span class='new'><?php print $new ?></span><?php endif; ?>
<?php if (!empty($new)): ?><span class="new"><?php print $new ?></span><?php endif; ?>
<?php print $title ?>
</h2>
<?php endif; ?>
@@ -13,15 +13,15 @@
<?php if (!empty($title_suffix)) print render($title_suffix); ?>
<?php if (!empty($submitted)): ?>
<div class='<?php print $hook ?>-submitted clearfix'><?php print $submitted ?></div>
<div class="<?php print $hook ?>-submitted clearfix"><?php print $submitted ?></div>
<?php endif; ?>
<?php if (!empty($content)): ?>
<div <?php print $content_attributes; ?>><?php print render($content) ?></div>
<div<?php print $content_attributes; ?>><?php print render($content) ?></div>
<?php endif; ?>
<?php if (!empty($links)): ?>
<div class='<?php print $hook ?>-links clearfix'><?php print render($links) ?></div>
<div class="<?php print $hook ?>-links clearfix"><?php print render($links) ?></div>
<?php endif; ?>
</div>

View File

@@ -1,59 +1,59 @@
<?php if ($page['help'] || ($show_messages && $messages)): ?>
<div id='console'><div class='limiter clearfix'>
<div id="console"><div class="limiter clearfix">
<?php print render($page['help']); ?>
<?php if ($show_messages && $messages): print $messages; endif; ?>
</div></div>
<?php endif; ?>
<?php if ($page['header']): ?>
<div id='header'><div class='limiter clearfix'>
<div id="header"><div class="limiter clearfix">
<?php print render($page['header']); ?>
</div></div>
<?php endif; ?>
<div id='branding'><div class='limiter clearfix'>
<?php if ($site_name): ?><h1 class='site-name'><?php print $site_name ?></h1><?php endif; ?>
<div id="branding"><div class="limiter clearfix">
<?php if ($site_name): ?><h1 class="site-name"><?php print $site_name ?></h1><?php endif; ?>
</div></div>
<div id='navigation'><div class='limiter clearfix'>
<div id="navigation"><div class="limiter clearfix">
<?php if (isset($main_menu)) : ?>
<?php print theme('links', array('links' => $main_menu, 'attributes' => array('class' => 'links main-menu'))) ?>
<?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('class' => 'links main-menu'), 'heading' => array('text' => t('Main menu'), 'level' => 'h2', 'class' => array('element-invisible')))) ?>
<?php endif; ?>
<?php if (isset($secondary_menu)) : ?>
<?php print theme('links', array('links' => $secondary_menu, 'attributes' => array('class' => 'links secondary-menu'))) ?>
<?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('class' => 'links secondary-menu'), 'heading' => array('text' => t('Secondary menu'), 'level' => 'h2', 'class' => array('element-invisible')))) ?>
<?php endif; ?>
</div></div>
<?php if ($page['highlighted']): ?>
<div id='highlighted'><div class='limiter clearfix'>
<div id="highlighted"><div class="limiter clearfix">
<?php print render($page['highlighted']); ?>
</div></div>
<?php endif; ?>
<div id='page'><div class='limiter clearfix'>
<div id="page"><div class="limiter clearfix">
<?php if ($page['sidebar_first']): ?>
<div id='left' class='clearfix'><?php print render($page['sidebar_first']) ?></div>
<div id="sidebar-first" class="clearfix"><?php print render($page['sidebar_first']) ?></div>
<?php endif; ?>
<div id='main-content' class='clearfix'>
<div id="main-content" class="clearfix">
<?php if ($breadcrumb) print $breadcrumb; ?>
<?php print render($title_prefix); ?>
<?php if ($title): ?><h1 class='page-title'><?php print $title ?></h1><?php endif; ?>
<?php if ($title): ?><h1 class="page-title"><?php print $title ?></h1><?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($primary_local_tasks): ?><ul class='links clearfix'><?php print render($primary_local_tasks) ?></ul><?php endif; ?>
<?php if ($secondary_local_tasks): ?><ul class='links clearfix'><?php print render($secondary_local_tasks) ?></ul><?php endif; ?>
<?php if ($action_links): ?><ul class='links clearfix'><?php print render($action_links); ?></ul><?php endif; ?>
<div id='content' class='clearfix'><?php print render($page['content']) ?></div>
<?php if ($primary_local_tasks): ?><ul class="links clearfix"><?php print render($primary_local_tasks) ?></ul><?php endif; ?>
<?php if ($secondary_local_tasks): ?><ul class="links clearfix"><?php print render($secondary_local_tasks) ?></ul><?php endif; ?>
<?php if ($action_links): ?><ul class="links clearfix"><?php print render($action_links); ?></ul><?php endif; ?>
<div id="content" class="clearfix"><?php print render($page['content']) ?></div>
</div>
<?php if ($page['sidebar_second']): ?>
<div id='right' class='clearfix'><?php print render($page['sidebar_second']) ?></div>
<div id="sidebar-second" class="clearfix"><?php print render($page['sidebar_second']) ?></div>
<?php endif; ?>
</div></div>
<div id="footer"><div class='limiter clearfix'>
<div id="footer"><div class="limiter clearfix">
<?php print $feed_icons ?>
<?php print render($page['footer']) ?>
</div></div>

View File

@@ -3,7 +3,7 @@ reset($rows);
$gridsize = count($rows[0]);
?>
<?php if (!empty($title)) : ?>
<h3 class='grid-title'><?php print $title; ?></h3>
<h3 class="grid-title"><?php print $title; ?></h3>
<?php endif; ?>
<table class="views-view-grid grid-<?php print $gridsize ?>">
<tbody>
@@ -20,7 +20,7 @@ $gridsize = count($rows[0]);
<tr class="<?php print $row_class; ?>">
<?php foreach ($columns as $column_number => $item): ?>
<td class="<?php print 'col-'. ($column_number + 1); ?>">
<div class='grid-item'><?php print $item; ?></div>
<div class="grid-item"><?php print $item; ?></div>
</td>
<?php endforeach; ?>
</tr>