diff --git a/images/availability.png b/images/availability.png new file mode 100644 index 0000000..61f9aba Binary files /dev/null and b/images/availability.png differ diff --git a/style/developer.css b/style/developer.css index fb5629a..ae2d978 100644 --- a/style/developer.css +++ b/style/developer.css @@ -47,8 +47,8 @@ .field-ting-refs .subjects h4{float: left; margin: 0 10px 0 0; font-size: 10px; color:#bbb;} .field-ting-refs .subjects li{display:inline; font-size: 10px; color:#bbb;} .field-ting-refs .subjects ul { clear:none; } /* overskriv ".node .content ul" i stylec.css */ -ul.field-ting-refs { margin:0 ! important ; padding: 0 ! important; } -ul.field-ting-refs li { clear:both; margin:0 0 20px 0; padding:10px 0 10px 10px; list-style-type: none ! important; } +.field-ting-refs ul { margin:0 ! important ; padding: 0 ! important; } +.field-ting-refs ul li { clear:both; margin:0 0 20px 0; padding:10px 0 10px 10px; list-style-type: none ! important; } .field-ting-refs img { margin: 0 ! important } .field-ting-refs { font-family:Arial,sans-serif; } /* dubliker regel i ui.all.css, override typography.css */ @@ -129,6 +129,10 @@ iframe.pc-booking { width: 100%; height: 100%; min-height: 600px;} #ting-search-result .ting-search-collection-types .unavailable { background-color: #f85f26; color:#fff; + background-image: url(../images/availability.png); + background-repeat: no-repeat; + background-position: 3px -17px; + padding-left: 17px; } diff --git a/style/dynamo.css b/style/dynamo.css index 554f49b..599d759 100644 --- a/style/dynamo.css +++ b/style/dynamo.css @@ -246,3 +246,17 @@ Crap from modules /*i feel dirty*/ .ui-dialog-content {width:250px !important;} + +/** Skip navigation link **/ +.skip-navigation {display: none;} + +/** Remove default firefox outline **/ +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + outline: 0; +} + +:focus { + outline: black dotted thin; +} diff --git a/style/search.css b/style/search.css index b56851e..0e1aea7 100644 --- a/style/search.css +++ b/style/search.css @@ -49,10 +49,15 @@ #ting-search-result .types li,.types li{clear:none; display:inline; float:left; margin:0 10px 0 0; padding:0; background:none;} #ting-search-result .types li, .types li{font-size: 10px; padding:1px 3px; color: #fff; margin: 1px} #ting-search-result .types li,.types li{background-color:#eee; color:#aaa;} - #ting-search-result .types li.available,.types li.available{background-color:#71bf44; color:#fff;} + #ting-search-result .types li.available,.types li.available{background-color:#71bf44; color:#fff; background-image: url(../images/availability.png); background-position: 3px 3px; background-repeat: no-repeat; padding-left: 17px;} + #ting-search-result .availability {display: none;} #ting-search-result .types li.out,.types li.out{background-color: #f85f26; color:#fff;} - #ting-search-result .types li.reserved,ul.types li.reserved{ background-color: #560036; /*#bc0028*/ color:#fff;} + #ting-search-result .types li.reserved,ul.types li.reserved{ background-color: #560036; /*#bc0028*/ color:#fff; background-image: url(../images/icons/reserved.png); background-repeat: no-repeat; padding-left: 17px;} #ting-search-result .ting-details {color:#bbb;} + + #ting-search-result .subjects li{clear:none; display:inline; float:left; margin:0 10px 0 0; padding:0; background:none; } + #ting-search-result .subjects h4{float: left; margin: 0 10px 0 0; font-size: 10px; color:#bbb;} + #ting-search-result .subjects li{display:inline; font-size: 10px; color:#bbb;} #content-result .taxonomy ul li{float:left; background:none; padding:0 10px 0 0;} #content-result .taxonomy ul {display:block;} diff --git a/template.php b/template.php index caafdc3..3112008 100644 --- a/template.php +++ b/template.php @@ -158,7 +158,13 @@ function dynamo_panels_pane($content, $pane, $display) { $classstr = ' ' . $content->css_class; } - $output = "
subtype $classstr \"$idstr>\n"; + $lang = ''; + if ($content->type == 'node_content' && $content->module == 'node' && is_numeric($content->delta)) { + $node = node_load($content->delta); + $lang = 'lang="' . $node->language . '"'; + } + + $output = "
subtype $classstr \"$idstr $lang>\n"; if (!empty($content->title)) { diff --git a/templates/content-field.tpl.php b/templates/content-field.tpl.php index b652600..910676a 100644 --- a/templates/content-field.tpl.php +++ b/templates/content-field.tpl.php @@ -46,22 +46,16 @@ */ -if ($field_type == 'ting_reference') { - $wrapper_tag = 'ul'; -} -else { - $wrapper_tag = 'div'; -} ?> - -< class=""> - +
- + +
    + $item) : if (!$item['empty']) : ?> @@ -74,7 +68,9 @@ + +
+ - -> +
diff --git a/templates/page.tpl.php b/templates/page.tpl.php index 7f3f63a..545255a 100644 --- a/templates/page.tpl.php +++ b/templates/page.tpl.php @@ -38,6 +38,8 @@
+ +
diff --git a/templates/views-view-fields--event-list--panel-pane.tpl.php b/templates/views-view-fields--event-list--panel-pane.tpl.php index 1ab90bd..b6dcd24 100644 --- a/templates/views-view-fields--event-list--panel-pane.tpl.php +++ b/templates/views-view-fields--event-list--panel-pane.tpl.php @@ -4,6 +4,10 @@ * Template to render a row from the event_list view. */ +// Insert title as alt text. Would like to do this in a preprocess function, +// but this doesn't seem possible with current version of Views. +$fields['field_list_image_fid']->content = str_replace('alt=""', 'alt="' . check_plain($fields['title']->raw) . '"', $fields['field_list_image_fid']->content); + // Prepare a couple of variables. $start = date_make_date($fields['field_datetime_value']->raw); $price = ($fields['field_entry_price_value']->raw < 1) ? t('Free') : intval($fields['field_entry_price_value']->raw) . ' kr.'; diff --git a/templates/views-view-fields--library-list--page.tpl.php b/templates/views-view-fields--library-list--page.tpl.php index 6f9382d..769fa01 100644 --- a/templates/views-view-fields--library-list--page.tpl.php +++ b/templates/views-view-fields--library-list--page.tpl.php @@ -1,3 +1,11 @@ +content = str_replace('alt=""', 'alt="' . check_plain($fields['title']->raw) . '"', $fields['field_list_image_fid']->content); + +?> +