moved from inigui to inifig theme, created clameurs theme
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,72 @@
|
||||
;----------// Theme informations
|
||||
|
||||
name = "Clameurs"
|
||||
description = "html5 theme by <a href="http://www.figureslibres.graphics">figureslibres.graphics</a> for clameurs.org"
|
||||
version = "7.x-0.1"
|
||||
core = "7.x"
|
||||
engine = "phptemplate"
|
||||
|
||||
|
||||
|
||||
;----------// Styles
|
||||
stylesheets[all][] = "css/normalize.css"
|
||||
stylesheets[all][] = "css/styles.css"
|
||||
; non-semantic helper classes
|
||||
; Please define your styles before this section.
|
||||
stylesheets[all][] = "css/nonsemantic.css"
|
||||
|
||||
|
||||
|
||||
|
||||
;----------// Scripts
|
||||
|
||||
scripts[] = "js/script.js"
|
||||
|
||||
;----------// Regions
|
||||
|
||||
regions[header] = Header
|
||||
regions[headerblock_left] = Headerblock left
|
||||
regions[headerblock_middle] = Headerblock middle
|
||||
regions[headerblock_right] = Headerblock right
|
||||
|
||||
regions[help] = Help
|
||||
regions[highlighted] = Highlighted
|
||||
|
||||
regions[sidebar_first] = First sidebar
|
||||
regions[content_top] = Top content
|
||||
regions[content] = Content
|
||||
regions[content_bottom] = Bottom content
|
||||
regions[sidebar_second] = Second sidebar
|
||||
|
||||
regions[footer_top] = Footer top
|
||||
regions[footer_left] = Footer left
|
||||
regions[footer_middle_left] = Footer middle left
|
||||
regions[footer_middle_right] = Footer middle right
|
||||
regions[footer_right] = Footer right
|
||||
regions[footer_bottom] = Footer bottom
|
||||
|
||||
|
||||
|
||||
;----------// Features
|
||||
|
||||
features[] = logo
|
||||
features[] = favicon
|
||||
features[] = name
|
||||
features[] = slogan
|
||||
features[] = search
|
||||
features[] = comment_user_picture
|
||||
features[] = main_menu
|
||||
features[] = secondary_menu
|
||||
|
||||
|
||||
;----------// Panels
|
||||
; Panels layouts. You can place multiple layouts under the "layouts" folder.
|
||||
|
||||
plugins[panels][layouts] = layouts
|
||||
|
||||
|
||||
;----------// Theme Setting Defaults
|
||||
|
||||
settings[layout_method] = '0'
|
||||
settings[layout_enable_settings] = 'on'
|
||||
settings[layout_enable_method] = 'on'
|
||||
@@ -0,0 +1,23 @@
|
||||
/* $Id: maintenance.css,v 1.1 2007/11/30 12:19:10 goba Exp $ */
|
||||
|
||||
/* Update styles */
|
||||
#update-results {
|
||||
margin-top: 3em;
|
||||
padding: 0.25em;
|
||||
border: 1px solid #ccc;
|
||||
background: #eee;
|
||||
font-size: smaller;
|
||||
}
|
||||
#update-results h2 {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
#update-results h4 {
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
#update-results li.none {
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
}
|
||||
#update-results li.failure strong {
|
||||
color: #b63300;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/* ==|== non-semantic helper classes ========================================
|
||||
Please define your styles before this section.
|
||||
========================================================================== */
|
||||
|
||||
/* For image replacement */
|
||||
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
||||
.ir br { display: none; }
|
||||
|
||||
/* Hide from both screenreaders and browsers: h5bp.com/u */
|
||||
.hidden { display: none !important; visibility: hidden; }
|
||||
|
||||
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
|
||||
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||
|
||||
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
|
||||
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
|
||||
|
||||
/* Hide visually and from screenreaders, but maintain layout */
|
||||
.invisible { visibility: hidden; }
|
||||
|
||||
/* Contain floats: h5bp.com/q */
|
||||
.clearfix:before, .clearfix:after { content: ""; display: table; }
|
||||
.clearfix:after { clear: both; }
|
||||
.clearfix { zoom: 1; }
|
||||
|
||||
|
||||
|
||||
/* ==|== media queries ======================================================
|
||||
PLACEHOLDER Media Queries for Responsive Design.
|
||||
These override the primary ('mobile first') styles
|
||||
Modify as content requires.
|
||||
========================================================================== */
|
||||
|
||||
@media only screen and (min-width: 480px) {
|
||||
/* Style adjustments for viewports 480px and over go here */
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
/* Style adjustments for viewports 768px and over go here */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ==|== print styles =======================================================
|
||||
Print styles.
|
||||
Inlined to avoid required HTTP connection: h5bp.com/r
|
||||
========================================================================== */
|
||||
|
||||
@media print {
|
||||
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
|
||||
a, a:visited { text-decoration: underline; }
|
||||
a[href]:after { content: " (" attr(href) ")"; }
|
||||
abbr[title]:after { content: " (" attr(title) ")"; }
|
||||
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
|
||||
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
||||
thead { display: table-header-group; } /* h5bp.com/t */
|
||||
tr, img { page-break-inside: avoid; }
|
||||
img { max-width: 100% !important; }
|
||||
@page { margin: 0.5cm; }
|
||||
p, h2, h3 { orphans: 3; widows: 3; }
|
||||
h2, h3 { page-break-after: avoid; }
|
||||
}
|
||||
@@ -0,0 +1,406 @@
|
||||
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
||||
|
||||
/* ==========================================================================
|
||||
HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined in IE 8/9.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct `inline-block` display not defined in IE 8/9.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9.
|
||||
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Base
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `outline` inconsistency between Chrome and other browsers.
|
||||
*/
|
||||
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Typography
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari 5 and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct font family set oddly in Safari 5 and Chrome.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability of pre-formatted text in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set consistent quote types.
|
||||
*/
|
||||
|
||||
q {
|
||||
quotes: "\201C" "\201D" "\2018" "\2019";
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow displayed oddly in IE 9.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Figures
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari 5.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct font family not being inherited in all browsers.
|
||||
* 2. Correct font size not being inherited in all browsers.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
button,
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
||||
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||
* on OS X.
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove default vertical scrollbar in IE 8/9.
|
||||
* 2. Improve readability and alignment in all browsers.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto; /* 1 */
|
||||
vertical-align: top; /* 2 */
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 690 B |
@@ -0,0 +1,215 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Allow themable wrapping of all comments (from garland).
|
||||
*/
|
||||
function clameurs_comment_wrapper($content, $node) {
|
||||
if (!$content || $node->type == 'forum') {
|
||||
return '<div id="comments">'. $content .'</div>';
|
||||
}
|
||||
else {
|
||||
return '<div id="comments"><h2 class="comments">'. t('Comments :') .'</h2>'. $content .'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme output of user signature.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_user_signature($signature) {
|
||||
return '<div class="user-signature">'.$signature.'</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted list of recent comments to be displayed in the comment block.
|
||||
*
|
||||
* @return
|
||||
* The comment list HTML.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_block() {
|
||||
$items = array();
|
||||
foreach (comment_get_recent() as $comment) {
|
||||
$items[] = l($comment->subject, 'node/'. $comment->nid, array('fragment' => 'comment-'. $comment->cid)) .'<br />'. t('@time ago', array('@time' => format_interval(time() - $comment->timestamp)));
|
||||
}
|
||||
if ($items) {
|
||||
return theme('item_list', $items);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Themes a single comment and related items.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment object.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @param $links
|
||||
* An associative array containing control links suitable for passing into
|
||||
* theme_links(). These are generated by modules implementing hook_link() with
|
||||
* $type='comment'. Typical examples are links for editing and deleting
|
||||
* comments.
|
||||
* @param $visible
|
||||
* Switches between folded/unfolded view. If TRUE the comments are visible, if
|
||||
* FALSE the comments are folded.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_view($comment, $node, $links = array(), $visible = TRUE) {
|
||||
static $first_new = TRUE;
|
||||
|
||||
$output = '';
|
||||
$comment->new = node_mark($comment->nid, $comment->timestamp);
|
||||
if ($first_new && $comment->new != MARK_READ) {
|
||||
// Assign the anchor only for the first new comment. This avoids duplicate
|
||||
// id attributes on a page.
|
||||
$first_new = FALSE;
|
||||
$output .= "<a id=\"new\"></a>\n";
|
||||
}
|
||||
|
||||
$output .= "<a id=\"comment-$comment->cid\"></a>\n";
|
||||
|
||||
// Switch to folded/unfolded view of the comment
|
||||
if ($visible) {
|
||||
$comment->comment = check_markup($comment->comment, $comment->format, FALSE);
|
||||
|
||||
// Comment API hook
|
||||
comment_invoke_comment($comment, 'view');
|
||||
|
||||
$output .= theme('comment', $comment, $node, $links);
|
||||
}
|
||||
else {
|
||||
$output .= theme('comment_folded', $comment);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Theme comment controls box where the user can change the default display mode and display order of comments.
|
||||
*
|
||||
* @param $form
|
||||
* The form structure.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_controls($form) {
|
||||
$output = '<div class="container-inline">';
|
||||
$output .= drupal_render($form);
|
||||
$output .= '</div>';
|
||||
$output .= '<div class="description">'. t('Select your preferred way to display the comments and click "Save settings" to activate your changes.') .'</div>';
|
||||
return theme('box', t('Comment viewing options'), $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment flat collapsed view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_flat_collapsed($comment, $node) {
|
||||
return theme('comment_view', $comment, $node, '', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment flat expanded view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_flat_expanded($comment, $node) {
|
||||
$links = module_invoke_all('link', 'comment', $comment, 0);
|
||||
drupal_alter('link', $links, $node, $comment);
|
||||
return theme('comment_view', $comment, $node, $links);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment thread collapsed view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_thread_collapsed($comment, $node) {
|
||||
return theme('comment_view', $comment, $node, '', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment thread expanded view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_thread_expanded($comment, $node) {
|
||||
$links = module_invoke_all('link', 'comment', $comment, 0);
|
||||
drupal_alter('link', $links, $node, $comment);
|
||||
return theme('comment_view', $comment, $node, $links);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme a "you can't post comments" notice.
|
||||
*
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_post_forbidden($node) {
|
||||
global $user;
|
||||
static $authenticated_post_comments;
|
||||
|
||||
if (!$user->uid) {
|
||||
if (!isset($authenticated_post_comments)) {
|
||||
// We only output any link if we are certain, that users get permission
|
||||
// to post comments by logging in. We also locally cache this information.
|
||||
$authenticated_post_comments = array_key_exists(DRUPAL_AUTHENTICATED_RID, user_roles(TRUE, 'post comments') + user_roles(TRUE, 'post comments without approval'));
|
||||
}
|
||||
|
||||
if ($authenticated_post_comments) {
|
||||
// We cannot use drupal_get_destination() because these links
|
||||
// sometimes appear on /node and taxonomy listing pages.
|
||||
if (variable_get('comment_form_location_'. $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
|
||||
$destination = 'destination='. rawurlencode("comment/reply/$node->nid#comment-form");
|
||||
}
|
||||
else {
|
||||
$destination = 'destination='. rawurlencode("node/$node->nid#comment-form");
|
||||
}
|
||||
|
||||
if (variable_get('user_register', 1)) {
|
||||
// Users can register themselves.
|
||||
return t('<a href="@login">Login</a> or <a href="@register">register</a> to post comments', array('@login' => url('user/login', array('query' => $destination)), '@register' => url('user/register', array('query' => $destination))));
|
||||
}
|
||||
else {
|
||||
// Only admins can add new users, no public registration.
|
||||
return t('<a href="@login">Login</a> to post comments', array('@login' => url('user/login', array('query' => $destination))));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Theme a "Submitted by ..." notice.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function clameurs_comment_submitted($comment) {
|
||||
return t('Submitted by !username on @datetime.',
|
||||
array(
|
||||
'!username' => theme('username', $comment),
|
||||
'@datetime' => format_date($comment->timestamp)
|
||||
));
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* CSS Styles that are needed by jScrollPane for it to operate correctly.
|
||||
*
|
||||
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
|
||||
* may not operate correctly without them.
|
||||
*/
|
||||
|
||||
.jspContainer
|
||||
{
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspPane
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.jspVerticalBar
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 16px;
|
||||
height: 100%;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspHorizontalBar
|
||||
{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspVerticalBar *,
|
||||
.jspHorizontalBar *
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.jspCap
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspCap
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.jspTrack
|
||||
{
|
||||
background: #dde;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspDrag
|
||||
{
|
||||
background: #bbd;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspTrack,
|
||||
.jspHorizontalBar .jspDrag
|
||||
{
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspArrow
|
||||
{
|
||||
background: #50506d;
|
||||
text-indent: -20000px;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspArrow.jspDisabled
|
||||
{
|
||||
cursor: default;
|
||||
background: #80808d;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow
|
||||
{
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspArrow
|
||||
{
|
||||
width: 16px;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.jspCorner
|
||||
{
|
||||
background: #eeeef4;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Yuk! CSS Hack for IE6 3 pixel bug :( */
|
||||
* html .jspCorner
|
||||
{
|
||||
margin: 0 -3px 0 0;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* jScrollPane - v2.0.0beta12 - 2012-05-14
|
||||
* http://jscrollpane.kelvinluck.com/
|
||||
*
|
||||
* Copyright (c) 2010 Kelvin Luck
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
(function(b,a,c){b.fn.jScrollPane=function(e){function d(D,O){var ay,Q=this,Y,aj,v,al,T,Z,y,q,az,aE,au,i,I,h,j,aa,U,ap,X,t,A,aq,af,am,G,l,at,ax,x,av,aH,f,L,ai=true,P=true,aG=false,k=false,ao=D.clone(false,false).empty(),ac=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aH=D.css("paddingTop")+" "+D.css("paddingRight")+" "+D.css("paddingBottom")+" "+D.css("paddingLeft");f=(parseInt(D.css("paddingLeft"),10)||0)+(parseInt(D.css("paddingRight"),10)||0);function ar(aQ){var aL,aN,aM,aJ,aI,aP,aO=false,aK=false;ay=aQ;if(Y===c){aI=D.scrollTop();aP=D.scrollLeft();D.css({overflow:"hidden",padding:0});aj=D.innerWidth()+f;v=D.innerHeight();D.width(aj);Y=b('<div class="jspPane" />').css("padding",aH).append(D.children());al=b('<div class="jspContainer" />').css({width:aj+"px",height:v+"px"}).append(Y).appendTo(D)}else{D.css("width","");aO=ay.stickToBottom&&K();aK=ay.stickToRight&&B();aJ=D.innerWidth()+f!=aj||D.outerHeight()!=v;if(aJ){aj=D.innerWidth()+f;v=D.innerHeight();al.css({width:aj+"px",height:v+"px"})}if(!aJ&&L==T&&Y.outerHeight()==Z){D.width(aj);return}L=T;Y.css("width","");D.width(aj);al.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Y.css("overflow","auto");if(aQ.contentWidth){T=aQ.contentWidth}else{T=Y[0].scrollWidth}Z=Y[0].scrollHeight;Y.css("overflow","");y=T/aj;q=Z/v;az=q>1;aE=y>1;if(!(aE||az)){D.removeClass("jspScrollable");Y.css({top:0,width:al.width()-f});n();E();R();w()}else{D.addClass("jspScrollable");aL=ay.maintainPosition&&(I||aa);if(aL){aN=aC();aM=aA()}aF();z();F();if(aL){N(aK?(T-aj):aN,false);M(aO?(Z-v):aM,false)}J();ag();an();if(ay.enableKeyboardNavigation){S()}if(ay.clickOnTrack){p()}C();if(ay.hijackInternalLinks){m()}}if(ay.autoReinitialise&&!av){av=setInterval(function(){ar(ay)},ay.autoReinitialiseDelay)}else{if(!ay.autoReinitialise&&av){clearInterval(av)}}aI&&D.scrollTop(0)&&M(aI,false);aP&&D.scrollLeft(0)&&N(aP,false);D.trigger("jsp-initialised",[aE||az])}function aF(){if(az){al.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));U=al.find(">.jspVerticalBar");ap=U.find(">.jspTrack");au=ap.find(">.jspDrag");if(ay.showArrows){aq=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",aD(0,-1)).bind("click.jsp",aB);af=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",aD(0,1)).bind("click.jsp",aB);if(ay.arrowScrollOnHover){aq.bind("mouseover.jsp",aD(0,-1,aq));af.bind("mouseover.jsp",aD(0,1,af))}ak(ap,ay.verticalArrowPositions,aq,af)}t=v;al.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){t-=b(this).outerHeight()});au.hover(function(){au.addClass("jspHover")},function(){au.removeClass("jspHover")}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);au.addClass("jspActive");var s=aI.pageY-au.position().top;b("html").bind("mousemove.jsp",function(aJ){V(aJ.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",aw);return false});o()}}function o(){ap.height(t+"px");I=0;X=ay.verticalGutter+ap.outerWidth();Y.width(aj-X-f);try{if(U.position().left===0){Y.css("margin-left",X+"px")}}catch(s){}}function z(){if(aE){al.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));am=al.find(">.jspHorizontalBar");G=am.find(">.jspTrack");h=G.find(">.jspDrag");if(ay.showArrows){ax=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",aD(-1,0)).bind("click.jsp",aB);x=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",aD(1,0)).bind("click.jsp",aB);
|
||||
if(ay.arrowScrollOnHover){ax.bind("mouseover.jsp",aD(-1,0,ax));x.bind("mouseover.jsp",aD(1,0,x))}ak(G,ay.horizontalArrowPositions,ax,x)}h.hover(function(){h.addClass("jspHover")},function(){h.removeClass("jspHover")}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);h.addClass("jspActive");var s=aI.pageX-h.position().left;b("html").bind("mousemove.jsp",function(aJ){W(aJ.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",aw);return false});l=al.innerWidth();ah()}}function ah(){al.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){l-=b(this).outerWidth()});G.width(l+"px");aa=0}function F(){if(aE&&az){var aI=G.outerHeight(),s=ap.outerWidth();t-=aI;b(am).find(">.jspCap:visible,>.jspArrow").each(function(){l+=b(this).outerWidth()});l-=s;v-=s;aj-=aI;G.parent().append(b('<div class="jspCorner" />').css("width",aI+"px"));o();ah()}if(aE){Y.width((al.outerWidth()-f)+"px")}Z=Y.outerHeight();q=Z/v;if(aE){at=Math.ceil(1/y*l);if(at>ay.horizontalDragMaxWidth){at=ay.horizontalDragMaxWidth}else{if(at<ay.horizontalDragMinWidth){at=ay.horizontalDragMinWidth}}h.width(at+"px");j=l-at;ae(aa)}if(az){A=Math.ceil(1/q*t);if(A>ay.verticalDragMaxHeight){A=ay.verticalDragMaxHeight}else{if(A<ay.verticalDragMinHeight){A=ay.verticalDragMinHeight}}au.height(A+"px");i=t-A;ad(I)}}function ak(aJ,aL,aI,s){var aN="before",aK="after",aM;if(aL=="os"){aL=/Mac/.test(navigator.platform)?"after":"split"}if(aL==aN){aK=aL}else{if(aL==aK){aN=aL;aM=aI;aI=s;s=aM}}aJ[aN](aI)[aK](s)}function aD(aI,s,aJ){return function(){H(aI,s,this,aJ);this.blur();return false}}function H(aL,aK,aO,aN){aO=b(aO).addClass("jspActive");var aM,aJ,aI=true,s=function(){if(aL!==0){Q.scrollByX(aL*ay.arrowButtonSpeed)}if(aK!==0){Q.scrollByY(aK*ay.arrowButtonSpeed)}aJ=setTimeout(s,aI?ay.initialDelay:ay.arrowRepeatFreq);aI=false};s();aM=aN?"mouseout.jsp":"mouseup.jsp";aN=aN||b("html");aN.bind(aM,function(){aO.removeClass("jspActive");aJ&&clearTimeout(aJ);aJ=null;aN.unbind(aM)})}function p(){w();if(az){ap.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageY-aO.top-I,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageY-aR.top-A/2,aP=v*ay.scrollPagePercent,aQ=i*aP/(Z-v);if(aM<0){if(I-aQ>aS){Q.scrollByY(-aP)}else{V(aS)}}else{if(aM>0){if(I+aQ<aS){Q.scrollByY(aP)}else{V(aS)}}else{aK();return}}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)};s();b(document).bind("mouseup.jsp",aK);return false}})}if(aE){G.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageX-aO.left-aa,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageX-aR.left-at/2,aP=aj*ay.scrollPagePercent,aQ=j*aP/(T-aj);if(aM<0){if(aa-aQ>aS){Q.scrollByX(-aP)}else{W(aS)}}else{if(aM>0){if(aa+aQ<aS){Q.scrollByX(aP)}else{W(aS)}}else{aK();return}}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)};s();b(document).bind("mouseup.jsp",aK);return false}})}}function w(){if(G){G.unbind("mousedown.jsp")}if(ap){ap.unbind("mousedown.jsp")}}function aw(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(au){au.removeClass("jspActive")}if(h){h.removeClass("jspActive")}}function V(s,aI){if(!az){return}if(s<0){s=0}else{if(s>i){s=i}}if(aI===c){aI=ay.animateScroll}if(aI){Q.animate(au,"top",s,ad)}else{au.css("top",s);ad(s)}}function ad(aI){if(aI===c){aI=au.position().top}al.scrollTop(0);I=aI;var aL=I===0,aJ=I==i,aK=aI/i,s=-aK*(Z-v);if(ai!=aL||aG!=aJ){ai=aL;aG=aJ;D.trigger("jsp-arrow-change",[ai,aG,P,k])}u(aL,aJ);Y.css("top",s);D.trigger("jsp-scroll-y",[-s,aL,aJ]).trigger("scroll")}function W(aI,s){if(!aE){return}if(aI<0){aI=0}else{if(aI>j){aI=j}}if(s===c){s=ay.animateScroll}if(s){Q.animate(h,"left",aI,ae)
|
||||
}else{h.css("left",aI);ae(aI)}}function ae(aI){if(aI===c){aI=h.position().left}al.scrollTop(0);aa=aI;var aL=aa===0,aK=aa==j,aJ=aI/j,s=-aJ*(T-aj);if(P!=aL||k!=aK){P=aL;k=aK;D.trigger("jsp-arrow-change",[ai,aG,P,k])}r(aL,aK);Y.css("left",s);D.trigger("jsp-scroll-x",[-s,aL,aK]).trigger("scroll")}function u(aI,s){if(ay.showArrows){aq[aI?"addClass":"removeClass"]("jspDisabled");af[s?"addClass":"removeClass"]("jspDisabled")}}function r(aI,s){if(ay.showArrows){ax[aI?"addClass":"removeClass"]("jspDisabled");x[s?"addClass":"removeClass"]("jspDisabled")}}function M(s,aI){var aJ=s/(Z-v);V(aJ*i,aI)}function N(aI,s){var aJ=aI/(T-aj);W(aJ*j,s)}function ab(aV,aQ,aJ){var aN,aK,aL,s=0,aU=0,aI,aP,aO,aS,aR,aT;try{aN=b(aV)}catch(aM){return}aK=aN.outerHeight();aL=aN.outerWidth();al.scrollTop(0);al.scrollLeft(0);while(!aN.is(".jspPane")){s+=aN.position().top;aU+=aN.position().left;aN=aN.offsetParent();if(/^body|html$/i.test(aN[0].nodeName)){return}}aI=aA();aO=aI+v;if(s<aI||aQ){aR=s-ay.verticalGutter}else{if(s+aK>aO){aR=s-v+aK+ay.verticalGutter}}if(aR){M(aR,aJ)}aP=aC();aS=aP+aj;if(aU<aP||aQ){aT=aU-ay.horizontalGutter}else{if(aU+aL>aS){aT=aU-aj+aL+ay.horizontalGutter}}if(aT){N(aT,aJ)}}function aC(){return -Y.position().left}function aA(){return -Y.position().top}function K(){var s=Z-v;return(s>20)&&(s-aA()<10)}function B(){var s=T-aj;return(s>20)&&(s-aC()<10)}function ag(){al.unbind(ac).bind(ac,function(aL,aM,aK,aI){var aJ=aa,s=I;Q.scrollBy(aK*ay.mouseWheelSpeed,-aI*ay.mouseWheelSpeed,false);return aJ==aa&&s==I})}function n(){al.unbind(ac)}function aB(){return false}function J(){Y.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(s){ab(s.target,false)})}function E(){Y.find(":input,a").unbind("focus.jsp")}function S(){var s,aI,aK=[];aE&&aK.push(am[0]);az&&aK.push(U[0]);Y.focus(function(){D.focus()});D.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(aN){if(aN.target!==this&&!(aK.length&&b(aN.target).closest(aK).length)){return}var aM=aa,aL=I;switch(aN.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:s=aN.keyCode;aJ();break;case 35:M(Z-v);s=null;break;case 36:M(0);s=null;break}aI=aN.keyCode==s&&aM!=aa||aL!=I;return !aI}).bind("keypress.jsp",function(aL){if(aL.keyCode==s){aJ()}return !aI});if(ay.hideFocus){D.css("outline","none");if("hideFocus" in al[0]){D.attr("hideFocus",true)}}else{D.css("outline","");if("hideFocus" in al[0]){D.attr("hideFocus",false)}}function aJ(){var aM=aa,aL=I;switch(s){case 40:Q.scrollByY(ay.keyboardSpeed,false);break;case 38:Q.scrollByY(-ay.keyboardSpeed,false);break;case 34:case 32:Q.scrollByY(v*ay.scrollPagePercent,false);break;case 33:Q.scrollByY(-v*ay.scrollPagePercent,false);break;case 39:Q.scrollByX(ay.keyboardSpeed,false);break;case 37:Q.scrollByX(-ay.keyboardSpeed,false);break}aI=aM!=aa||aL!=I;return aI}}function R(){D.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function C(){if(location.hash&&location.hash.length>1){var aK,aI,aJ=escape(location.hash.substr(1));try{aK=b("#"+aJ+', a[name="'+aJ+'"]')}catch(s){return}if(aK.length&&Y.find(aJ)){if(al.scrollTop()===0){aI=setInterval(function(){if(al.scrollTop()>0){ab(aK,true);b(document).scrollTop(al.position().top);clearInterval(aI)}},50)}else{ab(aK,true);b(document).scrollTop(al.position().top)}}}}function m(){if(b(document.body).data("jspHijack")){return}b(document.body).data("jspHijack",true);b(document.body).delegate("a[href*=#]","click",function(s){var aI=this.href.substr(0,this.href.indexOf("#")),aK=location.href,aO,aP,aJ,aM,aL,aN;if(location.href.indexOf("#")!==-1){aK=location.href.substr(0,location.href.indexOf("#"))}if(aI!==aK){return}aO=escape(this.href.substr(this.href.indexOf("#")+1));aP;try{aP=b("#"+aO+', a[name="'+aO+'"]')}catch(aQ){return}if(!aP.length){return}aJ=aP.closest(".jspScrollable");aM=aJ.data("jsp");aM.scrollToElement(aP,true);if(aJ[0].scrollIntoView){aL=b(a).scrollTop();aN=aP.offset().top;if(aN<aL||aN>aL+b(a).height()){aJ[0].scrollIntoView()}}s.preventDefault()
|
||||
})}function an(){var aJ,aI,aL,aK,aM,s=false;al.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(aN){var aO=aN.originalEvent.touches[0];aJ=aC();aI=aA();aL=aO.pageX;aK=aO.pageY;aM=false;s=true}).bind("touchmove.jsp",function(aQ){if(!s){return}var aP=aQ.originalEvent.touches[0],aO=aa,aN=I;Q.scrollTo(aJ+aL-aP.pageX,aI+aK-aP.pageY);aM=aM||Math.abs(aL-aP.pageX)>5||Math.abs(aK-aP.pageY)>5;return aO==aa&&aN==I}).bind("touchend.jsp",function(aN){s=false}).bind("click.jsp-touchclick",function(aN){if(aM){aM=false;return false}})}function g(){var s=aA(),aI=aC();D.removeClass("jspScrollable").unbind(".jsp");D.replaceWith(ao.append(Y.children()));ao.scrollTop(s);ao.scrollLeft(aI);if(av){clearInterval(av)}}b.extend(Q,{reinitialise:function(aI){aI=b.extend({},ay,aI);ar(aI)},scrollToElement:function(aJ,aI,s){ab(aJ,aI,s)},scrollTo:function(aJ,s,aI){N(aJ,aI);M(s,aI)},scrollToX:function(aI,s){N(aI,s)},scrollToY:function(s,aI){M(s,aI)},scrollToPercentX:function(aI,s){N(aI*(T-aj),s)},scrollToPercentY:function(aI,s){M(aI*(Z-v),s)},scrollBy:function(aI,s,aJ){Q.scrollByX(aI,aJ);Q.scrollByY(s,aJ)},scrollByX:function(s,aJ){var aI=aC()+Math[s<0?"floor":"ceil"](s),aK=aI/(T-aj);W(aK*j,aJ)},scrollByY:function(s,aJ){var aI=aA()+Math[s<0?"floor":"ceil"](s),aK=aI/(Z-v);V(aK*i,aJ)},positionDragX:function(s,aI){W(s,aI)},positionDragY:function(aI,s){V(aI,s)},animate:function(aI,aL,s,aK){var aJ={};aJ[aL]=s;aI.animate(aJ,{duration:ay.animateDuration,easing:ay.animateEase,queue:false,step:aK})},getContentPositionX:function(){return aC()},getContentPositionY:function(){return aA()},getContentWidth:function(){return T},getContentHeight:function(){return Z},getPercentScrolledX:function(){return aC()/(T-aj)},getPercentScrolledY:function(){return aA()/(Z-v)},getIsScrollableH:function(){return aE},getIsScrollableV:function(){return az},getContentPane:function(){return Y},scrollToBottom:function(s){V(i,s)},hijackInternalLinks:b.noop,destroy:function(){g()}});ar(O)}e=b.extend({},b.fn.jScrollPane.defaults,e);b.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){e[this]=e[this]||e.speed});return this.each(function(){var f=b(this),g=f.data("jsp");if(g){g.reinitialise(e)}else{g=new d(f,e);f.data("jsp",g)}})};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);
|
||||
@@ -0,0 +1,84 @@
|
||||
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.6
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var types = ['DOMMouseScroll', 'mousewheel'];
|
||||
|
||||
if ($.event.fixHooks) {
|
||||
for ( var i=types.length; i; ) {
|
||||
$.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mousewheel = {
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.addEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = handler;
|
||||
}
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
if ( this.removeEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.removeEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.extend({
|
||||
mousewheel: function(fn) {
|
||||
return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
|
||||
},
|
||||
|
||||
unmousewheel: function(fn) {
|
||||
return this.unbind("mousewheel", fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function handler(event) {
|
||||
var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
|
||||
event = $.event.fix(orgEvent);
|
||||
event.type = "mousewheel";
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
|
||||
if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
|
||||
|
||||
// New school multidimensional scroll (touchpads) deltas
|
||||
deltaY = delta;
|
||||
|
||||
// Gecko
|
||||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaY = 0;
|
||||
deltaX = -1*delta;
|
||||
}
|
||||
|
||||
// Webkit
|
||||
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
|
||||
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
|
||||
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* @author trixta
|
||||
* @version 1.2
|
||||
*/
|
||||
(function($){
|
||||
|
||||
var mwheelI = {
|
||||
pos: [-260, -260]
|
||||
},
|
||||
minDif = 3,
|
||||
doc = document,
|
||||
root = doc.documentElement,
|
||||
body = doc.body,
|
||||
longDelay, shortDelay
|
||||
;
|
||||
|
||||
function unsetPos(){
|
||||
if(this === mwheelI.elem){
|
||||
mwheelI.pos = [-260, -260];
|
||||
mwheelI.elem = false;
|
||||
minDif = 3;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mwheelIntent = {
|
||||
setup: function(){
|
||||
var jElm = $(this).bind('mousewheel', $.event.special.mwheelIntent.handler);
|
||||
if( this !== doc && this !== root && this !== body ){
|
||||
jElm.bind('mouseleave', unsetPos);
|
||||
}
|
||||
jElm = null;
|
||||
return true;
|
||||
},
|
||||
teardown: function(){
|
||||
$(this)
|
||||
.unbind('mousewheel', $.event.special.mwheelIntent.handler)
|
||||
.unbind('mouseleave', unsetPos)
|
||||
;
|
||||
return true;
|
||||
},
|
||||
handler: function(e, d){
|
||||
var pos = [e.clientX, e.clientY];
|
||||
if( this === mwheelI.elem || Math.abs(mwheelI.pos[0] - pos[0]) > minDif || Math.abs(mwheelI.pos[1] - pos[1]) > minDif ){
|
||||
mwheelI.elem = this;
|
||||
mwheelI.pos = pos;
|
||||
minDif = 250;
|
||||
|
||||
clearTimeout(shortDelay);
|
||||
shortDelay = setTimeout(function(){
|
||||
minDif = 10;
|
||||
}, 200);
|
||||
clearTimeout(longDelay);
|
||||
longDelay = setTimeout(function(){
|
||||
minDif = 3;
|
||||
}, 1500);
|
||||
e = $.extend({}, e, {type: 'mwheelIntent'});
|
||||
return $.event.handle.apply(this, arguments);
|
||||
}
|
||||
}
|
||||
};
|
||||
$.fn.extend({
|
||||
mwheelIntent: function(fn) {
|
||||
return fn ? this.bind("mwheelIntent", fn) : this.trigger("mwheelIntent");
|
||||
},
|
||||
|
||||
unmwheelIntent: function(fn) {
|
||||
return this.unbind("mwheelIntent", fn);
|
||||
}
|
||||
});
|
||||
|
||||
$(function(){
|
||||
body = doc.body;
|
||||
//assume that document is always scrollable, doesn't hurt if not
|
||||
$(doc).bind('mwheelIntent.mwheelIntentDefault', $.noop);
|
||||
});
|
||||
})(jQuery);
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
// @codekit-prepend "gui.js"
|
||||
|
||||
|
||||
Drupal.behaviors.init_theme = function (context) {
|
||||
// Growl-style system messages
|
||||
$('#messages-and-help > div.messages:not(.processed)')
|
||||
@@ -22,9 +25,3 @@ Drupal.behaviors.init_theme = function (context) {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
console.log('Hello Jee');
|
||||
|
||||
});
|
||||
@@ -0,0 +1,254 @@
|
||||
/**
|
||||
* Primary Drupal Styles
|
||||
* Author: g-u-i.net
|
||||
*/
|
||||
|
||||
@import "gui.less";
|
||||
|
||||
|
||||
body{font-size:16px; font-family: Arial, "MS Trebuchet", sans-serif;}
|
||||
|
||||
|
||||
a{color: #007BC2; text-decoration: none;}
|
||||
|
||||
|
||||
h1{font-size:1.6em;}
|
||||
h2{font-size:1.5em;}
|
||||
h3{font-size:1.4em;}
|
||||
h4{font-size:1.3em;}
|
||||
h5{font-size:1.2em;}
|
||||
h6{font-size:1.1em;}
|
||||
|
||||
input{font-family: Arial, "MS Trebuchet", sans-serif; font-size:0.8em;}
|
||||
|
||||
|
||||
|
||||
/** layout */
|
||||
#center, #sidebar-first, #sidebar-second, .footer-block .region, .header-block{ display:inline-block; vertical-align: top;}
|
||||
|
||||
body.two-sidebars #center { width: 54%; }
|
||||
body.sidebar-first #center { width: 73%; }
|
||||
body.sidebar-second #center { width: 80%; }
|
||||
body.no-sidebars #center { width: 100%; }
|
||||
|
||||
#sidebar-first { width: 24%; }
|
||||
#sidebar-second { width: 18%; }
|
||||
|
||||
#header, #main, #footer{ padding:1em; }
|
||||
|
||||
body{background-color: #DFDFDF;}
|
||||
|
||||
#container{width:1024px; margin:0 auto; background-color: #FFF;}
|
||||
|
||||
#header, #footer{background-color: #535353; color:#fff;}
|
||||
|
||||
.block, .panel-pane{
|
||||
border: 1px solid #D1D1D1; padding:0.5em; margin:0.5em;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
|
||||
.footer-block .block{
|
||||
background-color: #353535; border: 1px solid #1a1a1a;
|
||||
}
|
||||
#footer-bottom{ text-align: center;}
|
||||
#footer-bottom .block{ background-color: transparent; border: 0 solid #999; font-size:0.7em;}
|
||||
|
||||
#content{padding:1em;}
|
||||
|
||||
.logo h1, h1.page-title{font-size:2em;}
|
||||
|
||||
#header ul.menu li,
|
||||
#content-top ul.menu li,
|
||||
#content-bottom ul.menu li,
|
||||
#footer ul.menu li{display:inline-block; vertical-align:top; }
|
||||
|
||||
.views-row{margin-bottom:1em;}
|
||||
|
||||
.views-field-title{font-size:1.1em; font-weight:bold;}
|
||||
.views-field-title a{color: #444444; text-decoration:none;}
|
||||
|
||||
li, .item-list ul li{list-style: none inside url(); margin-left:0;}
|
||||
|
||||
/** Messages. */
|
||||
|
||||
div.messages {
|
||||
padding: 9px;
|
||||
margin: 0.5em 0 0;
|
||||
color: #036;
|
||||
background: #bdf;
|
||||
border: 1px solid #ace;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
|
||||
div.warning {
|
||||
color: #840;
|
||||
background: #fe6;
|
||||
border-color: #ed5;
|
||||
}
|
||||
|
||||
div.error {
|
||||
color: #fff;
|
||||
background: #e63;
|
||||
border-color: #d52;
|
||||
}
|
||||
|
||||
div.error p.error {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
div.status {
|
||||
color: #360;
|
||||
background: #cf8;
|
||||
border-color: #be7;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Tab navigation */
|
||||
|
||||
ul.primary, .views-admin-links ul {
|
||||
font:13px/1.231 sans-serif; *font-size:small;
|
||||
border-collapse: collapse;
|
||||
padding: 0 0 0 1em; /* LTR */
|
||||
white-space: nowrap;
|
||||
list-style: none;
|
||||
margin: 5px;
|
||||
height: auto;
|
||||
line-height: normal;
|
||||
border-bottom: 1px solid #bbb;
|
||||
}
|
||||
ul.primary li, .views-admin-links li{
|
||||
display: inline;
|
||||
|
||||
}
|
||||
ul.primary li a, .views-admin-links li a {
|
||||
background-color: #ddd;
|
||||
border-color: #bbb;
|
||||
border-width: 1px;
|
||||
border-style: solid solid none solid;
|
||||
height: auto;
|
||||
margin-right: 0.5em; /* LTR */
|
||||
padding: 0 1em;
|
||||
text-decoration: none;
|
||||
-moz-border-radius-topleft: 5px;
|
||||
-webkit-border-top-left-radius: 5px;
|
||||
border-top-left-radius: 5px;
|
||||
-moz-border-radius-topright: 5px;
|
||||
-webkit-border-top-right-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
ul.primary li.active a {
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
border-bottom: #fff 1px solid;
|
||||
}
|
||||
ul.primary li a:hover, .views-admin-links li a:hover{
|
||||
background-color: #eee;
|
||||
border-color: #ccc;
|
||||
border-bottom-color: #eee;
|
||||
}
|
||||
|
||||
ul.secondary {
|
||||
border-bottom: 1px solid #bbb;
|
||||
padding: 0.5em 1em;
|
||||
margin: 5px;
|
||||
}
|
||||
ul.secondary li {
|
||||
display: inline;
|
||||
padding: 0 1em;
|
||||
border-right: 1px solid #ccc; /* LTR */
|
||||
}
|
||||
ul.secondary a {
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
ul.secondary a.active {
|
||||
border-bottom: 4px solid #999;
|
||||
}
|
||||
|
||||
|
||||
/** Form */
|
||||
|
||||
#node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
|
||||
#node-form .form-region-main label{float:left; min-width:25%;}
|
||||
#node-form .form-region-main input.form-text{width:40%;}
|
||||
|
||||
#node-form .form-region-right{padding-left:5px;}
|
||||
#node-form .form-region-right label{float:left; min-width:35%;}
|
||||
#node-form .form-region-right input.form-text{width:60%;}
|
||||
|
||||
#node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
|
||||
|
||||
|
||||
form:not( #views-ui-config-item-form ) .form-item {
|
||||
position:relative;
|
||||
/* padding:9px;*/
|
||||
}
|
||||
|
||||
form:not( #views-ui-config-item-form ) .form-item .description{
|
||||
position:absolute;
|
||||
bottom:140%;
|
||||
/* right:-15px;*/
|
||||
z-index:5;
|
||||
left:50%;
|
||||
color:#1A1A1A;
|
||||
line-height:1.1;
|
||||
background:url(../images/popup.png) 50% 100% no-repeat;
|
||||
width:240px;
|
||||
margin:0px 0px -15px;
|
||||
padding:9px 10px 20px;
|
||||
display:none;
|
||||
border-top: 1px solid #9F9F9F;
|
||||
}
|
||||
form:not( #views-ui-config-item-form ) .form-item:hover {
|
||||
z-index:1;
|
||||
height:auto; /* Fix for flicker in IE7 */
|
||||
}
|
||||
form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
|
||||
|
||||
|
||||
fieldset{
|
||||
border: 1px solid #D4D4D4;
|
||||
padding:10px;
|
||||
margin-bottom:1em;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
fieldset legend{
|
||||
font-size:1.6em;
|
||||
}
|
||||
|
||||
input.form-text{max-width:95%;}
|
||||
|
||||
/** TABLE */
|
||||
|
||||
table{width:100%;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
table thead th{
|
||||
background-color: #CCC;
|
||||
padding:0.5em 1em;
|
||||
text-align: left;
|
||||
}
|
||||
table tbody tr.even, table tbody tr.odd{
|
||||
border-bottom: 0 solid #CCCCCC;
|
||||
padding: 0.1em 0.6em;
|
||||
}
|
||||
table tbody tr.even{background-color: #EEE;}
|
||||
table tbody tr.odd{background-color: #E5E5E5;}
|
||||
|
||||
table tbody td{
|
||||
padding:0.5em 1em;
|
||||
text-align: left;
|
||||
}
|
||||
td.active {background-color: transparent;}
|
||||
@@ -1,7 +1,5 @@
|
||||
/* LISIBILITY */
|
||||
@import "communs.scss";
|
||||
@import "fonts.scss";
|
||||
|
||||
@import "fonts.less";
|
||||
|
||||
*{font-size:14px;}
|
||||
div{border: 1px dashed #D4D4D4;}
|
||||
@@ -11,36 +9,27 @@ h1:before, h2:before, h3:before, h4:before, h5:before, h6:before{
|
||||
color:blue; font-weight: normal; font-size:10px; vertical-align: super;
|
||||
}
|
||||
|
||||
h2{
|
||||
// font-size:24px;
|
||||
&:before{content:"h2 ";}
|
||||
}
|
||||
h3{
|
||||
// font-size:18px;
|
||||
&:before{content:"h3 ";}
|
||||
}
|
||||
h4{
|
||||
// font-size:16px;
|
||||
&:before{content:"h4 ";}
|
||||
}
|
||||
h5{
|
||||
// font-size:14px;
|
||||
&:before{content:"h5 ";}
|
||||
}
|
||||
h6{
|
||||
// font-size:12px;
|
||||
&:before{content:"h6 ";}
|
||||
}
|
||||
h1:before{content:"h1 ";}
|
||||
h2:before{content:"h2 ";}
|
||||
h3:before{content:"h3 ";}
|
||||
h4:before{content:"h4 ";}
|
||||
h5:before{content:"h5 ";}
|
||||
h6:before{content:"h6 ";}
|
||||
|
||||
|
||||
h2{font-size:24px; .h2;}
|
||||
h3{font-size:18px; .h3;}
|
||||
h4{font-size:16px; .h4;}
|
||||
h5{font-size:14px; .h5;}
|
||||
h6{font-size:12px; .h6;}
|
||||
|
||||
|
||||
.side-note-4{.h4;}
|
||||
.side-note-5{.h5;}
|
||||
|
||||
br:after{content:"·"; color:red; border: 1px solid #999;}
|
||||
|
||||
img{height:auto; margin:0.5em 0; max-width:99%;}
|
||||
p{ border: 1px dashed #848484; }
|
||||
div{border: 1px solid #1A1A1A;}
|
||||
|
||||
|
||||
/* LAYOUT AND GRAPHICS */
|
||||
/*
|
||||
#full{ width:99%; }
|
||||
#demi{ width:47%; }
|
||||
#tiers{ width:29%; }
|
||||
@@ -51,13 +40,12 @@ div{border: 1px solid #1A1A1A;}
|
||||
|
||||
|
||||
img{height:auto; margin:0.5em 0;}
|
||||
p{ border: 1px dashed #848484; }
|
||||
p{ .p; border: 1px dashed #848484; }
|
||||
div{border: 1px solid #1A1A1A;}
|
||||
|
||||
|
||||
img,p,div{ position:relative;
|
||||
&:before{font-size:10px; color:red; background-color: #1A1A1A; position:absolute; top:0; z-index:3000;}
|
||||
|
||||
|
||||
&.full{#full; &:before{content:" full ";}}
|
||||
&.demi{ #demi; margin-right:2%; &:before{content:" demi "; right:0;}}
|
||||
&.tiers{ #tiers; margin-right:2%; &:before{content:" tiers "; right:0;}}
|
||||
@@ -74,6 +62,7 @@ img,p,div{ position:relative;
|
||||
&.quart-left{ #quart; #left; &:before{content:" quart-left "; left:0;}}
|
||||
&.quart-right{ #quart; #right; &:before{content:" quart-right "; right:0;}}
|
||||
&.quart-center{ #quart; #center; &:before{content:" quart-center "; right:0;}}
|
||||
|
||||
|
||||
|
||||
}
|
||||
*/
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if (module_exists('rdf')) {
|
||||
$vars['doctype'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">' . "\n";
|
||||
@@ -16,7 +16,7 @@ $heads = array();
|
||||
$heads['HandheldFriendly'] = array(
|
||||
'#tag' => 'meta',
|
||||
'#attributes' => array(
|
||||
'name' => 'HandheldFriendly',
|
||||
'name' => 'HandheldFriendly',
|
||||
'content' => 'true',
|
||||
),
|
||||
);
|
||||
@@ -24,7 +24,7 @@ $heads['HandheldFriendly'] = array(
|
||||
|
||||
|
||||
# Mobile Viewport Fix
|
||||
# j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
|
||||
# j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
|
||||
# device-width : Occupy full width of the screen in its current orientation
|
||||
# initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
|
||||
# maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
|
||||
@@ -32,7 +32,7 @@ $heads['HandheldFriendly'] = array(
|
||||
$heads['viewport'] = array(
|
||||
'#tag' => 'meta',
|
||||
'#attributes' => array(
|
||||
'name' => 'viewport',
|
||||
'name' => 'viewport',
|
||||
'content' => 'width=device-width,initial-scale=1',
|
||||
),
|
||||
);
|
||||
@@ -48,7 +48,7 @@ $heads['viewport'] = array(
|
||||
$heads['icon'] = array(
|
||||
'#tag' => 'link',
|
||||
'#attributes' => array(
|
||||
'href' => base_path() . path_to_theme() .'/icon.png',
|
||||
'href' => base_path() . path_to_theme() .'/icon.png',
|
||||
'rel' => 'shortcut icon',
|
||||
'type' => 'image/png',
|
||||
),
|
||||
@@ -57,7 +57,7 @@ $heads['icon'] = array(
|
||||
$heads['apple-touch-icon'] = array(
|
||||
'#tag' => 'link',
|
||||
'#attributes' => array(
|
||||
'href' => base_path() . path_to_theme() .'/apple-touch-icon.png',
|
||||
'href' => base_path() . path_to_theme() .'/apple-touch-icon.png',
|
||||
'rel' => 'apple-touch-icon',
|
||||
),
|
||||
);
|
||||
@@ -72,39 +72,37 @@ foreach ($heads as $type=>$head)
|
||||
|
||||
# add body classes
|
||||
if(isset($vars['node'])){
|
||||
|
||||
|
||||
# from taxonomy
|
||||
foreach ($vars['node']->taxonomy as $tid => $term) {
|
||||
$vars['classes_array'][] = 'term-vid-'. $term->vid .' term-tid-'. $tid;
|
||||
}
|
||||
|
||||
|
||||
# from menu
|
||||
$mlid = db_result(db_query("SELECT mlid FROM {menu_links} WHERE link_path = '%s'", 'node/'. $vars['node']->nid));
|
||||
// Now get the menu related information.
|
||||
if (!empty($mlid) || !empty($node->menu['mlid']) || !empty($node->menu['plid'])) {
|
||||
$menu_link = menu_link_load($mlid);
|
||||
// krumo($menu_link);
|
||||
$vars['classes_array'][] = ' mlid-'. $menu_link['mlid'] .' plid-'. $menu_link['plid'];
|
||||
// Now get the menu related information.
|
||||
if (!empty($mlid) || !empty($node->menu['mlid']) || !empty($node->menu['plid'])) {
|
||||
$menu_link = menu_link_load($mlid);
|
||||
// krumo($menu_link);
|
||||
$vars['classes_array'][] = ' mlid-'. $menu_link['mlid'] .' plid-'. $menu_link['plid'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# theme layout settings
|
||||
|
||||
// if(isset($vars['page']['sidebar_first']) && isset($vars['page']['sidebar_second'])){
|
||||
// $layout = 'two-sidebars';
|
||||
// }else if(isset($vars['page']['sidebar_first']) || isset($vars['page']['sidebar_second'])){
|
||||
// $layout = isset($vars['page']['sidebar_first']) ? 'sidebar-first' : 'sidebar-second';
|
||||
// }else{
|
||||
// $layout = 'no-sidebar';
|
||||
// }
|
||||
// $vars['classes_array'][] = $layout;
|
||||
if(isset($vars['page']['sidebar_first']) && isset($vars['page']['sidebar_second'])){
|
||||
$layout = 'two-sidebars';
|
||||
}else if(isset($vars['page']['sidebar_first']) || isset($vars['page']['sidebar_second'])){
|
||||
$layout = isset($vars['page']['sidebar_first']) ? 'sidebar-first' : 'sidebar-second';
|
||||
}else{
|
||||
$layout = 'no-sidebar';
|
||||
}
|
||||
$vars['classes_array'][] = $layout;
|
||||
|
||||
// if (theme_get_setting('layout_enable_settings') == 'on') {
|
||||
// $method = theme_get_setting('layout_method');
|
||||
// $vars['method'] = $method;
|
||||
// $vars['classes_array'][] .= ' layout-method-'.$method;
|
||||
|
||||
// }
|
||||
|
||||
// $vars['off_canvas_menu'] = block_get_blocks_by_region('off_canvas_menu');
|
||||
if (theme_get_setting('layout_enable_settings') == 'on') {
|
||||
$method = theme_get_setting('layout_method');
|
||||
$vars['method'] = $method;
|
||||
$vars['classes_array'][] .= ' layout-method-'.$method;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
//dsm($vars);
|
||||
|
||||
$vars['theme_hook_suggestions'][] = 'node__'.$vars['view_mode'];
|
||||
$vars['theme_hook_suggestions'][] = 'node__' . $vars['type'] . '__' . $vars['view_mode'];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file template.preprocess-page.inc
|
||||
@@ -25,7 +25,7 @@ if ($vars['site_name']) {
|
||||
// $site_fields[] = check_plain($vars['site_slogan']);
|
||||
// }
|
||||
|
||||
$vars['site_title'] = '<h1 id="site-name"><a href="'.$vars["front_page"].'">'. implode(' ', $site_fields) .'</a></h1>';
|
||||
$vars['site_title'] = '<h1>'. implode(' ', $site_fields) .'</h1>';
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,3 @@ if (theme_get_setting('layout_enable_settings') == 'on')
|
||||
|
||||
$vars['primary_local_tasks'] = menu_primary_local_tasks();
|
||||
$vars['secondary_local_tasks'] = menu_secondary_local_tasks();
|
||||
|
||||
|
||||
if($vars['is_front'])
|
||||
$vars['title'] = false;
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file template.php
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of hook_theme
|
||||
*/
|
||||
function clameurs_theme() {
|
||||
$path = drupal_get_path('theme', 'clameurs');
|
||||
# Register theme function for the system_settings_form.
|
||||
return array(
|
||||
'system_settings_form' => array(
|
||||
'arguments' => array('form' => NULL, 'key' => 'clameurs'),
|
||||
),
|
||||
);
|
||||
|
||||
# Include the theme settings.
|
||||
include($path .'/inc/template.theme-settings.inc');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_preprocess()
|
||||
*
|
||||
* This function checks to see if a hook has a preprocess file associated with
|
||||
* it, and if so, loads it.
|
||||
*
|
||||
* @param $vars
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered.
|
||||
*/
|
||||
function clameurs_preprocess(&$vars, $hook) {
|
||||
global $theme, $theme_info, $user, $language;
|
||||
|
||||
$vars['is_admin'] = in_array('admin', $user->roles);
|
||||
$vars['logged_in'] = ($user->uid > 0) ? TRUE : FALSE;
|
||||
$vars['theme_path'] = base_path() . path_to_theme() .'/';
|
||||
|
||||
// $vars['classes_array'][] = $hook.' '.$hook.'-'.$vars['zebra'];
|
||||
|
||||
# Include preprocess functions if and when required.
|
||||
$path = drupal_get_path('theme', 'clameurs');
|
||||
$file = $path .'/preprocess/'. str_replace('_', '-', $hook) .'.pre.php';
|
||||
if (is_file($file)) {
|
||||
include($file);
|
||||
}
|
||||
}
|
||||
|
||||
$path = drupal_get_path('theme', 'clameurs');
|
||||
|
||||
# Include custom functions.
|
||||
include_once($path .'/inc/template.custom-functions.inc');
|
||||
|
||||
# Include theme overrides.
|
||||
include_once($path .'/inc/template.theme-overrides.inc');
|
||||
|
||||
# Include some jQuery.
|
||||
// include_once(drupal_get_path('theme', 'clameurs') .'/inc/template.theme-js.inc');
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display the basic html structure of a single
|
||||
@@ -55,44 +55,42 @@
|
||||
<!-- remove the no-js as fast as possible -->
|
||||
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
|
||||
|
||||
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||
Remove this if you use the .htaccess -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
|
||||
<?php print $head; ?>
|
||||
|
||||
|
||||
<title><?php print $head_title; ?></title>
|
||||
<?php print $styles; ?>
|
||||
|
||||
|
||||
|
||||
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
|
||||
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
|
||||
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
|
||||
<script src="<?php print $theme_path ?>/bower_components/modernizr/modernizr.js" type="text/javascript"></script>
|
||||
<script src="<?php print $theme_path ?>/js/libs/modernizr-2.6.1.min.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
</head>
|
||||
|
||||
|
||||
<body class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
||||
<div id="skip-link">
|
||||
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
|
||||
</div>
|
||||
|
||||
<div id="container">
|
||||
|
||||
<?php print $page_top; ?>
|
||||
<?php print $page; ?>
|
||||
<?php print $page_bottom; ?>
|
||||
|
||||
</div>
|
||||
<!-- /container -->
|
||||
|
||||
<div id="root">
|
||||
<?php print $page_top; ?>
|
||||
<?php print $page; ?>
|
||||
<?php print $page_bottom; ?>
|
||||
</div>
|
||||
|
||||
<div id="main-bg-wrapper">
|
||||
<div id="main-bg"></div>
|
||||
</div>
|
||||
|
||||
<!-- Javascript at the bottom for fast page loading -->
|
||||
<?php print $scripts; ?>
|
||||
|
||||
<!-- Javascript at the bottom for fast page loading -->
|
||||
<?php print $scripts; ?>
|
||||
|
||||
|
||||
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
|
||||
chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
||||
@@ -102,5 +100,5 @@
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,175 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a single Drupal page.
|
||||
*
|
||||
* Available variables:
|
||||
*
|
||||
* General utility variables:
|
||||
* - $base_path: The base URL path of the Drupal installation. At the very
|
||||
* least, this will always default to /.
|
||||
* - $directory: The directory the template is located in, e.g. modules/system
|
||||
* or themes/bartik.
|
||||
* - $is_front: TRUE if the current page is the front page.
|
||||
* - $logged_in: TRUE if the user is registered and signed in.
|
||||
* - $is_admin: TRUE if the user has permission to access administration pages.
|
||||
*
|
||||
* Site identity:
|
||||
* - $front_page: The URL of the front page. Use this instead of $base_path,
|
||||
* when linking to the front page. This includes the language domain or
|
||||
* prefix.
|
||||
* - $logo: The path to the logo image, as defined in theme configuration.
|
||||
* - $site_name: The name of the site, empty when display has been disabled
|
||||
* in theme settings.
|
||||
* - $site_slogan: The slogan of the site, empty when display has been disabled
|
||||
* in theme settings.
|
||||
*
|
||||
* Navigation:
|
||||
* - $main_menu (array): An array containing the Main menu links for the
|
||||
* site, if they have been configured.
|
||||
* - $secondary_menu (array): An array containing the Secondary menu links for
|
||||
* the site, if they have been configured.
|
||||
* - $breadcrumb: The breadcrumb trail for the current page.
|
||||
*
|
||||
* Page content (in order of occurrence in the default page.tpl.php):
|
||||
* - $title_prefix (array): An array containing additional output populated by
|
||||
* modules, intended to be displayed in front of the main title tag that
|
||||
* appears in the template.
|
||||
* - $title: The page title, for use in the actual HTML content.
|
||||
* - $title_suffix (array): An array containing additional output populated by
|
||||
* modules, intended to be displayed after the main title tag that appears in
|
||||
* the template.
|
||||
* - $messages: HTML for status and error messages. Should be displayed
|
||||
* prominently.
|
||||
* - $tabs (array): Tabs linking to any sub-pages beneath the current page
|
||||
* (e.g., the view and edit tabs when displaying a node).
|
||||
* - $action_links (array): Actions local to the page, such as 'Add menu' on the
|
||||
* menu administration interface.
|
||||
* - $feed_icons: A string of all feed icons for the current page.
|
||||
* - $node: The node object, 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['help']: Dynamic help text, mostly for admin pages.
|
||||
* - $page['highlighted']: Items for the highlighted content region.
|
||||
* - $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['header']: Items for the header region.
|
||||
* - $page['footer']: Items for the footer region.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_page()
|
||||
* @see template_process()
|
||||
*/
|
||||
?>
|
||||
<header id="header">
|
||||
<hgroup class="logo">
|
||||
<?php
|
||||
if ($site_title) {
|
||||
print $site_title;
|
||||
}
|
||||
?>
|
||||
</hgroup>
|
||||
|
||||
<?php if ($page['headerblock_left'] || $page['headerblock_middle'] || $page['headerblock_right']): ?>
|
||||
<div id="header-blocks">
|
||||
<?php print render($page['headerblock_left']); ?>
|
||||
<?php print render($page['headerblock_middle']); ?>
|
||||
<?php print render($page['headerblock_right']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($breadcrumb): ?>
|
||||
<section id="breadcrumb"><?php print $breadcrumb; ?></section>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</header>
|
||||
<!-- /header -->
|
||||
|
||||
|
||||
|
||||
<div id="main">
|
||||
|
||||
|
||||
<?php if ($method == 0 || $method == 2): ?>
|
||||
<?php print render($page['sidebar_first']); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($method == 2): ?>
|
||||
<?php print render($page['sidebar_second']) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(isset($page['sidebar_first']) || isset($page['sidebar_second'])): ?>
|
||||
<section id="center">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($primary_local_tasks || $secondary_local_tasks || $action_links): ?>
|
||||
<div id="tasks">
|
||||
<?php if ($primary_local_tasks): ?>
|
||||
<ul class="tabs primary"><?php print render($primary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($secondary_local_tasks): ?>
|
||||
<ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($action_links = render($action_links)): ?>
|
||||
<ul class="action-links"><?php print $action_links; ?></ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
||||
|
||||
|
||||
<?php print render($page['help']); ?>
|
||||
|
||||
<?php print render($page['content_top']); ?>
|
||||
|
||||
<section id="content">
|
||||
<?php if($title): ?><h1 class="page-title"><?php print $title ?></h1><?php endif; ?>
|
||||
<?php print render($page['content']); ?>
|
||||
</section>
|
||||
|
||||
<?php print render($page['content_bottom']); ?>
|
||||
|
||||
|
||||
<?php if(isset($page['sidebar_first']) || isset($page['sidebar_second'])): ?>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<!-- /center -->
|
||||
|
||||
|
||||
<?php if ($method == 1): ?>
|
||||
<?php print render($page['sidebar_first']); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($method == 0 || $method == 1): ?>
|
||||
<?php print render($page['sidebar_second']) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /main -->
|
||||
|
||||
|
||||
<footer id="footer">
|
||||
|
||||
<?php print render($page['footer_top']); ?>
|
||||
|
||||
<?php if ($page['footer_left'] || $page['footer_middle_left'] || $page['footer_middle_right'] || $page['footer_right']): ?>
|
||||
<div class="footer-block">
|
||||
|
||||
<?php print render($page['footer_left']); ?>
|
||||
<?php print render($page['footer_middle-left']); ?>
|
||||
<?php print render($page['footer_midle-right']); ?>
|
||||
<?php print render($page['footer_right']); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php print render($page['footer_bottom']); ?>
|
||||
</footer>
|
||||
<!-- /footer -->
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
function clameurs_form_system_theme_settings_alter(&$form, $form_state) {
|
||||
|
||||
if (theme_get_setting('layout_enable_settings') == 'on') {
|
||||
$form['clameurs']['page_layout'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => t('Page Layout'),
|
||||
'#description' => t('Use these settings to set the width of the page, each sidebar, and to set the position of sidebars.'),
|
||||
);
|
||||
|
||||
if (theme_get_setting('layout_enable_method') == 'on') {
|
||||
$form['at']['page_layout']['select_method'] = array(
|
||||
'#type' => 'fieldset',
|
||||
'#title' => t('Sidebar Position'),
|
||||
'#collapsible' => FALSE,
|
||||
'#collapsed' => FALSE,
|
||||
);
|
||||
$form['at']['page_layout']['select_method']['layout_method'] = array(
|
||||
'#type' => 'radios',
|
||||
'#description' => t('The sidebar layout descriptions are for LTR (left to right languages), these will flip in RTL mode.'),
|
||||
'#default_value' => theme_get_setting('layout_method'),
|
||||
'#options' => array(
|
||||
0 => t('<strong>Layout #1</strong> <span class="layout-type-0">Standard three column layout — Sidebar first | Content | Sidebar last</span>'),
|
||||
1 => t('<strong>Layout #2</strong> <span class="layout-type-1">Two columns on the right — Content | Sidebar first | Sidebar last</span>'),
|
||||
2 => t('<strong>Layout #3</strong> <span class="layout-type-2">Two columns on the left — Sidebar first | Sidebar last | Content</span>'),
|
||||
),
|
||||
);
|
||||
$form['at']['page_layout']['layout_enable_settings'] = array(
|
||||
'#type' => 'hidden',
|
||||
'#value' => theme_get_setting('layout_enable_settings'),
|
||||
);
|
||||
} // endif layout method
|
||||
} // endif layout settings
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,23 @@
|
||||
/* $Id: maintenance.css,v 1.1 2007/11/30 12:19:10 goba Exp $ */
|
||||
|
||||
/* Update styles */
|
||||
#update-results {
|
||||
margin-top: 3em;
|
||||
padding: 0.25em;
|
||||
border: 1px solid #ccc;
|
||||
background: #eee;
|
||||
font-size: smaller;
|
||||
}
|
||||
#update-results h2 {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
#update-results h4 {
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
#update-results li.none {
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
}
|
||||
#update-results li.failure strong {
|
||||
color: #b63300;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/* ==|== non-semantic helper classes ========================================
|
||||
Please define your styles before this section.
|
||||
========================================================================== */
|
||||
|
||||
/* For image replacement */
|
||||
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
||||
.ir br { display: none; }
|
||||
|
||||
/* Hide from both screenreaders and browsers: h5bp.com/u */
|
||||
.hidden { display: none !important; visibility: hidden; }
|
||||
|
||||
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
|
||||
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||
|
||||
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
|
||||
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
|
||||
|
||||
/* Hide visually and from screenreaders, but maintain layout */
|
||||
.invisible { visibility: hidden; }
|
||||
|
||||
/* Contain floats: h5bp.com/q */
|
||||
.clearfix:before, .clearfix:after { content: ""; display: table; }
|
||||
.clearfix:after { clear: both; }
|
||||
.clearfix { zoom: 1; }
|
||||
|
||||
|
||||
|
||||
/* ==|== media queries ======================================================
|
||||
PLACEHOLDER Media Queries for Responsive Design.
|
||||
These override the primary ('mobile first') styles
|
||||
Modify as content requires.
|
||||
========================================================================== */
|
||||
|
||||
@media only screen and (min-width: 480px) {
|
||||
/* Style adjustments for viewports 480px and over go here */
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
/* Style adjustments for viewports 768px and over go here */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ==|== print styles =======================================================
|
||||
Print styles.
|
||||
Inlined to avoid required HTTP connection: h5bp.com/r
|
||||
========================================================================== */
|
||||
|
||||
@media print {
|
||||
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
|
||||
a, a:visited { text-decoration: underline; }
|
||||
a[href]:after { content: " (" attr(href) ")"; }
|
||||
abbr[title]:after { content: " (" attr(title) ")"; }
|
||||
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
|
||||
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
||||
thead { display: table-header-group; } /* h5bp.com/t */
|
||||
tr, img { page-break-inside: avoid; }
|
||||
img { max-width: 100% !important; }
|
||||
@page { margin: 0.5cm; }
|
||||
p, h2, h3 { orphans: 3; widows: 3; }
|
||||
h2, h3 { page-break-after: avoid; }
|
||||
}
|
||||
@@ -0,0 +1,406 @@
|
||||
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
||||
|
||||
/* ==========================================================================
|
||||
HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined in IE 8/9.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct `inline-block` display not defined in IE 8/9.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9.
|
||||
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Base
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `outline` inconsistency between Chrome and other browsers.
|
||||
*/
|
||||
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Typography
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari 5 and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct font family set oddly in Safari 5 and Chrome.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability of pre-formatted text in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set consistent quote types.
|
||||
*/
|
||||
|
||||
q {
|
||||
quotes: "\201C" "\201D" "\2018" "\2019";
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow displayed oddly in IE 9.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Figures
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari 5.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct font family not being inherited in all browsers.
|
||||
* 2. Correct font size not being inherited in all browsers.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
button,
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
||||
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||
* on OS X.
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove default vertical scrollbar in IE 8/9.
|
||||
* 2. Improve readability and alignment in all browsers.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto; /* 1 */
|
||||
vertical-align: top; /* 2 */
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
After Width: | Height: | Size: 690 B |
@@ -0,0 +1,215 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Allow themable wrapping of all comments (from garland).
|
||||
*/
|
||||
function inifig_comment_wrapper($content, $node) {
|
||||
if (!$content || $node->type == 'forum') {
|
||||
return '<div id="comments">'. $content .'</div>';
|
||||
}
|
||||
else {
|
||||
return '<div id="comments"><h2 class="comments">'. t('Comments :') .'</h2>'. $content .'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme output of user signature.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_user_signature($signature) {
|
||||
return '<div class="user-signature">'.$signature.'</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted list of recent comments to be displayed in the comment block.
|
||||
*
|
||||
* @return
|
||||
* The comment list HTML.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_block() {
|
||||
$items = array();
|
||||
foreach (comment_get_recent() as $comment) {
|
||||
$items[] = l($comment->subject, 'node/'. $comment->nid, array('fragment' => 'comment-'. $comment->cid)) .'<br />'. t('@time ago', array('@time' => format_interval(time() - $comment->timestamp)));
|
||||
}
|
||||
if ($items) {
|
||||
return theme('item_list', $items);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Themes a single comment and related items.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment object.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @param $links
|
||||
* An associative array containing control links suitable for passing into
|
||||
* theme_links(). These are generated by modules implementing hook_link() with
|
||||
* $type='comment'. Typical examples are links for editing and deleting
|
||||
* comments.
|
||||
* @param $visible
|
||||
* Switches between folded/unfolded view. If TRUE the comments are visible, if
|
||||
* FALSE the comments are folded.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_view($comment, $node, $links = array(), $visible = TRUE) {
|
||||
static $first_new = TRUE;
|
||||
|
||||
$output = '';
|
||||
$comment->new = node_mark($comment->nid, $comment->timestamp);
|
||||
if ($first_new && $comment->new != MARK_READ) {
|
||||
// Assign the anchor only for the first new comment. This avoids duplicate
|
||||
// id attributes on a page.
|
||||
$first_new = FALSE;
|
||||
$output .= "<a id=\"new\"></a>\n";
|
||||
}
|
||||
|
||||
$output .= "<a id=\"comment-$comment->cid\"></a>\n";
|
||||
|
||||
// Switch to folded/unfolded view of the comment
|
||||
if ($visible) {
|
||||
$comment->comment = check_markup($comment->comment, $comment->format, FALSE);
|
||||
|
||||
// Comment API hook
|
||||
comment_invoke_comment($comment, 'view');
|
||||
|
||||
$output .= theme('comment', $comment, $node, $links);
|
||||
}
|
||||
else {
|
||||
$output .= theme('comment_folded', $comment);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Theme comment controls box where the user can change the default display mode and display order of comments.
|
||||
*
|
||||
* @param $form
|
||||
* The form structure.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_controls($form) {
|
||||
$output = '<div class="container-inline">';
|
||||
$output .= drupal_render($form);
|
||||
$output .= '</div>';
|
||||
$output .= '<div class="description">'. t('Select your preferred way to display the comments and click "Save settings" to activate your changes.') .'</div>';
|
||||
return theme('box', t('Comment viewing options'), $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment flat collapsed view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_flat_collapsed($comment, $node) {
|
||||
return theme('comment_view', $comment, $node, '', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment flat expanded view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_flat_expanded($comment, $node) {
|
||||
$links = module_invoke_all('link', 'comment', $comment, 0);
|
||||
drupal_alter('link', $links, $node, $comment);
|
||||
return theme('comment_view', $comment, $node, $links);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment thread collapsed view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_thread_collapsed($comment, $node) {
|
||||
return theme('comment_view', $comment, $node, '', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme comment thread expanded view.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment to be themed.
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_thread_expanded($comment, $node) {
|
||||
$links = module_invoke_all('link', 'comment', $comment, 0);
|
||||
drupal_alter('link', $links, $node, $comment);
|
||||
return theme('comment_view', $comment, $node, $links);
|
||||
}
|
||||
|
||||
/**
|
||||
* Theme a "you can't post comments" notice.
|
||||
*
|
||||
* @param $node
|
||||
* The comment node.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_post_forbidden($node) {
|
||||
global $user;
|
||||
static $authenticated_post_comments;
|
||||
|
||||
if (!$user->uid) {
|
||||
if (!isset($authenticated_post_comments)) {
|
||||
// We only output any link if we are certain, that users get permission
|
||||
// to post comments by logging in. We also locally cache this information.
|
||||
$authenticated_post_comments = array_key_exists(DRUPAL_AUTHENTICATED_RID, user_roles(TRUE, 'post comments') + user_roles(TRUE, 'post comments without approval'));
|
||||
}
|
||||
|
||||
if ($authenticated_post_comments) {
|
||||
// We cannot use drupal_get_destination() because these links
|
||||
// sometimes appear on /node and taxonomy listing pages.
|
||||
if (variable_get('comment_form_location_'. $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
|
||||
$destination = 'destination='. rawurlencode("comment/reply/$node->nid#comment-form");
|
||||
}
|
||||
else {
|
||||
$destination = 'destination='. rawurlencode("node/$node->nid#comment-form");
|
||||
}
|
||||
|
||||
if (variable_get('user_register', 1)) {
|
||||
// Users can register themselves.
|
||||
return t('<a href="@login">Login</a> or <a href="@register">register</a> to post comments', array('@login' => url('user/login', array('query' => $destination)), '@register' => url('user/register', array('query' => $destination))));
|
||||
}
|
||||
else {
|
||||
// Only admins can add new users, no public registration.
|
||||
return t('<a href="@login">Login</a> to post comments', array('@login' => url('user/login', array('query' => $destination))));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Theme a "Submitted by ..." notice.
|
||||
*
|
||||
* @param $comment
|
||||
* The comment.
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function inifig_comment_submitted($comment) {
|
||||
return t('Submitted by !username on @datetime.',
|
||||
array(
|
||||
'!username' => theme('username', $comment),
|
||||
'@datetime' => format_date($comment->timestamp)
|
||||
));
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
;----------// Theme informations
|
||||
|
||||
name = "Inifig"
|
||||
description = "html5 strater theme by <a href="http://www.figureslibres.graphics">figureslibres.graphics</a> inspired by <a href="http://html5boilerplate.com/">html5boilerplate.com</a>"
|
||||
version = "7.x-0.1"
|
||||
core = "7.x"
|
||||
engine = "phptemplate"
|
||||
|
||||
|
||||
|
||||
;----------// Styles
|
||||
stylesheets[all][] = "css/normalize.css"
|
||||
stylesheets[all][] = "css/styles.css"
|
||||
; non-semantic helper classes
|
||||
; Please define your styles before this section.
|
||||
stylesheets[all][] = "css/nonsemantic.css"
|
||||
|
||||
|
||||
|
||||
|
||||
;----------// Scripts
|
||||
|
||||
scripts[] = "js/script.js"
|
||||
|
||||
;----------// Regions
|
||||
|
||||
regions[header] = Header
|
||||
regions[headerblock_left] = Headerblock left
|
||||
regions[headerblock_middle] = Headerblock middle
|
||||
regions[headerblock_right] = Headerblock right
|
||||
|
||||
regions[help] = Help
|
||||
regions[highlighted] = Highlighted
|
||||
|
||||
regions[sidebar_first] = First sidebar
|
||||
regions[content_top] = Top content
|
||||
regions[content] = Content
|
||||
regions[content_bottom] = Bottom content
|
||||
regions[sidebar_second] = Second sidebar
|
||||
|
||||
regions[footer_top] = Footer top
|
||||
regions[footer_left] = Footer left
|
||||
regions[footer_middle_left] = Footer middle left
|
||||
regions[footer_middle_right] = Footer middle right
|
||||
regions[footer_right] = Footer right
|
||||
regions[footer_bottom] = Footer bottom
|
||||
|
||||
|
||||
|
||||
;----------// Features
|
||||
|
||||
features[] = logo
|
||||
features[] = favicon
|
||||
features[] = name
|
||||
features[] = slogan
|
||||
features[] = search
|
||||
features[] = comment_user_picture
|
||||
features[] = main_menu
|
||||
features[] = secondary_menu
|
||||
|
||||
|
||||
;----------// Panels
|
||||
; Panels layouts. You can place multiple layouts under the "layouts" folder.
|
||||
|
||||
plugins[panels][layouts] = layouts
|
||||
|
||||
|
||||
;----------// Theme Setting Defaults
|
||||
|
||||
settings[layout_method] = '0'
|
||||
settings[layout_enable_settings] = 'on'
|
||||
settings[layout_enable_method] = 'on'
|
||||
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* CSS Styles that are needed by jScrollPane for it to operate correctly.
|
||||
*
|
||||
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
|
||||
* may not operate correctly without them.
|
||||
*/
|
||||
|
||||
.jspContainer
|
||||
{
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspPane
|
||||
{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.jspVerticalBar
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 16px;
|
||||
height: 100%;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspHorizontalBar
|
||||
{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
.jspVerticalBar *,
|
||||
.jspHorizontalBar *
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.jspCap
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspCap
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.jspTrack
|
||||
{
|
||||
background: #dde;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jspDrag
|
||||
{
|
||||
background: #bbd;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspTrack,
|
||||
.jspHorizontalBar .jspDrag
|
||||
{
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspArrow
|
||||
{
|
||||
background: #50506d;
|
||||
text-indent: -20000px;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.jspArrow.jspDisabled
|
||||
{
|
||||
cursor: default;
|
||||
background: #80808d;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow
|
||||
{
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.jspHorizontalBar .jspArrow
|
||||
{
|
||||
width: 16px;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.jspVerticalBar .jspArrow:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.jspCorner
|
||||
{
|
||||
background: #eeeef4;
|
||||
float: left;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Yuk! CSS Hack for IE6 3 pixel bug :( */
|
||||
* html .jspCorner
|
||||
{
|
||||
margin: 0 -3px 0 0;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* jScrollPane - v2.0.0beta12 - 2012-05-14
|
||||
* http://jscrollpane.kelvinluck.com/
|
||||
*
|
||||
* Copyright (c) 2010 Kelvin Luck
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
(function(b,a,c){b.fn.jScrollPane=function(e){function d(D,O){var ay,Q=this,Y,aj,v,al,T,Z,y,q,az,aE,au,i,I,h,j,aa,U,ap,X,t,A,aq,af,am,G,l,at,ax,x,av,aH,f,L,ai=true,P=true,aG=false,k=false,ao=D.clone(false,false).empty(),ac=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aH=D.css("paddingTop")+" "+D.css("paddingRight")+" "+D.css("paddingBottom")+" "+D.css("paddingLeft");f=(parseInt(D.css("paddingLeft"),10)||0)+(parseInt(D.css("paddingRight"),10)||0);function ar(aQ){var aL,aN,aM,aJ,aI,aP,aO=false,aK=false;ay=aQ;if(Y===c){aI=D.scrollTop();aP=D.scrollLeft();D.css({overflow:"hidden",padding:0});aj=D.innerWidth()+f;v=D.innerHeight();D.width(aj);Y=b('<div class="jspPane" />').css("padding",aH).append(D.children());al=b('<div class="jspContainer" />').css({width:aj+"px",height:v+"px"}).append(Y).appendTo(D)}else{D.css("width","");aO=ay.stickToBottom&&K();aK=ay.stickToRight&&B();aJ=D.innerWidth()+f!=aj||D.outerHeight()!=v;if(aJ){aj=D.innerWidth()+f;v=D.innerHeight();al.css({width:aj+"px",height:v+"px"})}if(!aJ&&L==T&&Y.outerHeight()==Z){D.width(aj);return}L=T;Y.css("width","");D.width(aj);al.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Y.css("overflow","auto");if(aQ.contentWidth){T=aQ.contentWidth}else{T=Y[0].scrollWidth}Z=Y[0].scrollHeight;Y.css("overflow","");y=T/aj;q=Z/v;az=q>1;aE=y>1;if(!(aE||az)){D.removeClass("jspScrollable");Y.css({top:0,width:al.width()-f});n();E();R();w()}else{D.addClass("jspScrollable");aL=ay.maintainPosition&&(I||aa);if(aL){aN=aC();aM=aA()}aF();z();F();if(aL){N(aK?(T-aj):aN,false);M(aO?(Z-v):aM,false)}J();ag();an();if(ay.enableKeyboardNavigation){S()}if(ay.clickOnTrack){p()}C();if(ay.hijackInternalLinks){m()}}if(ay.autoReinitialise&&!av){av=setInterval(function(){ar(ay)},ay.autoReinitialiseDelay)}else{if(!ay.autoReinitialise&&av){clearInterval(av)}}aI&&D.scrollTop(0)&&M(aI,false);aP&&D.scrollLeft(0)&&N(aP,false);D.trigger("jsp-initialised",[aE||az])}function aF(){if(az){al.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));U=al.find(">.jspVerticalBar");ap=U.find(">.jspTrack");au=ap.find(">.jspDrag");if(ay.showArrows){aq=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",aD(0,-1)).bind("click.jsp",aB);af=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",aD(0,1)).bind("click.jsp",aB);if(ay.arrowScrollOnHover){aq.bind("mouseover.jsp",aD(0,-1,aq));af.bind("mouseover.jsp",aD(0,1,af))}ak(ap,ay.verticalArrowPositions,aq,af)}t=v;al.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){t-=b(this).outerHeight()});au.hover(function(){au.addClass("jspHover")},function(){au.removeClass("jspHover")}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);au.addClass("jspActive");var s=aI.pageY-au.position().top;b("html").bind("mousemove.jsp",function(aJ){V(aJ.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",aw);return false});o()}}function o(){ap.height(t+"px");I=0;X=ay.verticalGutter+ap.outerWidth();Y.width(aj-X-f);try{if(U.position().left===0){Y.css("margin-left",X+"px")}}catch(s){}}function z(){if(aE){al.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));am=al.find(">.jspHorizontalBar");G=am.find(">.jspTrack");h=G.find(">.jspDrag");if(ay.showArrows){ax=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",aD(-1,0)).bind("click.jsp",aB);x=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",aD(1,0)).bind("click.jsp",aB);
|
||||
if(ay.arrowScrollOnHover){ax.bind("mouseover.jsp",aD(-1,0,ax));x.bind("mouseover.jsp",aD(1,0,x))}ak(G,ay.horizontalArrowPositions,ax,x)}h.hover(function(){h.addClass("jspHover")},function(){h.removeClass("jspHover")}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);h.addClass("jspActive");var s=aI.pageX-h.position().left;b("html").bind("mousemove.jsp",function(aJ){W(aJ.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",aw);return false});l=al.innerWidth();ah()}}function ah(){al.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){l-=b(this).outerWidth()});G.width(l+"px");aa=0}function F(){if(aE&&az){var aI=G.outerHeight(),s=ap.outerWidth();t-=aI;b(am).find(">.jspCap:visible,>.jspArrow").each(function(){l+=b(this).outerWidth()});l-=s;v-=s;aj-=aI;G.parent().append(b('<div class="jspCorner" />').css("width",aI+"px"));o();ah()}if(aE){Y.width((al.outerWidth()-f)+"px")}Z=Y.outerHeight();q=Z/v;if(aE){at=Math.ceil(1/y*l);if(at>ay.horizontalDragMaxWidth){at=ay.horizontalDragMaxWidth}else{if(at<ay.horizontalDragMinWidth){at=ay.horizontalDragMinWidth}}h.width(at+"px");j=l-at;ae(aa)}if(az){A=Math.ceil(1/q*t);if(A>ay.verticalDragMaxHeight){A=ay.verticalDragMaxHeight}else{if(A<ay.verticalDragMinHeight){A=ay.verticalDragMinHeight}}au.height(A+"px");i=t-A;ad(I)}}function ak(aJ,aL,aI,s){var aN="before",aK="after",aM;if(aL=="os"){aL=/Mac/.test(navigator.platform)?"after":"split"}if(aL==aN){aK=aL}else{if(aL==aK){aN=aL;aM=aI;aI=s;s=aM}}aJ[aN](aI)[aK](s)}function aD(aI,s,aJ){return function(){H(aI,s,this,aJ);this.blur();return false}}function H(aL,aK,aO,aN){aO=b(aO).addClass("jspActive");var aM,aJ,aI=true,s=function(){if(aL!==0){Q.scrollByX(aL*ay.arrowButtonSpeed)}if(aK!==0){Q.scrollByY(aK*ay.arrowButtonSpeed)}aJ=setTimeout(s,aI?ay.initialDelay:ay.arrowRepeatFreq);aI=false};s();aM=aN?"mouseout.jsp":"mouseup.jsp";aN=aN||b("html");aN.bind(aM,function(){aO.removeClass("jspActive");aJ&&clearTimeout(aJ);aJ=null;aN.unbind(aM)})}function p(){w();if(az){ap.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageY-aO.top-I,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageY-aR.top-A/2,aP=v*ay.scrollPagePercent,aQ=i*aP/(Z-v);if(aM<0){if(I-aQ>aS){Q.scrollByY(-aP)}else{V(aS)}}else{if(aM>0){if(I+aQ<aS){Q.scrollByY(aP)}else{V(aS)}}else{aK();return}}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)};s();b(document).bind("mouseup.jsp",aK);return false}})}if(aE){G.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageX-aO.left-aa,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageX-aR.left-at/2,aP=aj*ay.scrollPagePercent,aQ=j*aP/(T-aj);if(aM<0){if(aa-aQ>aS){Q.scrollByX(-aP)}else{W(aS)}}else{if(aM>0){if(aa+aQ<aS){Q.scrollByX(aP)}else{W(aS)}}else{aK();return}}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)};s();b(document).bind("mouseup.jsp",aK);return false}})}}function w(){if(G){G.unbind("mousedown.jsp")}if(ap){ap.unbind("mousedown.jsp")}}function aw(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(au){au.removeClass("jspActive")}if(h){h.removeClass("jspActive")}}function V(s,aI){if(!az){return}if(s<0){s=0}else{if(s>i){s=i}}if(aI===c){aI=ay.animateScroll}if(aI){Q.animate(au,"top",s,ad)}else{au.css("top",s);ad(s)}}function ad(aI){if(aI===c){aI=au.position().top}al.scrollTop(0);I=aI;var aL=I===0,aJ=I==i,aK=aI/i,s=-aK*(Z-v);if(ai!=aL||aG!=aJ){ai=aL;aG=aJ;D.trigger("jsp-arrow-change",[ai,aG,P,k])}u(aL,aJ);Y.css("top",s);D.trigger("jsp-scroll-y",[-s,aL,aJ]).trigger("scroll")}function W(aI,s){if(!aE){return}if(aI<0){aI=0}else{if(aI>j){aI=j}}if(s===c){s=ay.animateScroll}if(s){Q.animate(h,"left",aI,ae)
|
||||
}else{h.css("left",aI);ae(aI)}}function ae(aI){if(aI===c){aI=h.position().left}al.scrollTop(0);aa=aI;var aL=aa===0,aK=aa==j,aJ=aI/j,s=-aJ*(T-aj);if(P!=aL||k!=aK){P=aL;k=aK;D.trigger("jsp-arrow-change",[ai,aG,P,k])}r(aL,aK);Y.css("left",s);D.trigger("jsp-scroll-x",[-s,aL,aK]).trigger("scroll")}function u(aI,s){if(ay.showArrows){aq[aI?"addClass":"removeClass"]("jspDisabled");af[s?"addClass":"removeClass"]("jspDisabled")}}function r(aI,s){if(ay.showArrows){ax[aI?"addClass":"removeClass"]("jspDisabled");x[s?"addClass":"removeClass"]("jspDisabled")}}function M(s,aI){var aJ=s/(Z-v);V(aJ*i,aI)}function N(aI,s){var aJ=aI/(T-aj);W(aJ*j,s)}function ab(aV,aQ,aJ){var aN,aK,aL,s=0,aU=0,aI,aP,aO,aS,aR,aT;try{aN=b(aV)}catch(aM){return}aK=aN.outerHeight();aL=aN.outerWidth();al.scrollTop(0);al.scrollLeft(0);while(!aN.is(".jspPane")){s+=aN.position().top;aU+=aN.position().left;aN=aN.offsetParent();if(/^body|html$/i.test(aN[0].nodeName)){return}}aI=aA();aO=aI+v;if(s<aI||aQ){aR=s-ay.verticalGutter}else{if(s+aK>aO){aR=s-v+aK+ay.verticalGutter}}if(aR){M(aR,aJ)}aP=aC();aS=aP+aj;if(aU<aP||aQ){aT=aU-ay.horizontalGutter}else{if(aU+aL>aS){aT=aU-aj+aL+ay.horizontalGutter}}if(aT){N(aT,aJ)}}function aC(){return -Y.position().left}function aA(){return -Y.position().top}function K(){var s=Z-v;return(s>20)&&(s-aA()<10)}function B(){var s=T-aj;return(s>20)&&(s-aC()<10)}function ag(){al.unbind(ac).bind(ac,function(aL,aM,aK,aI){var aJ=aa,s=I;Q.scrollBy(aK*ay.mouseWheelSpeed,-aI*ay.mouseWheelSpeed,false);return aJ==aa&&s==I})}function n(){al.unbind(ac)}function aB(){return false}function J(){Y.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(s){ab(s.target,false)})}function E(){Y.find(":input,a").unbind("focus.jsp")}function S(){var s,aI,aK=[];aE&&aK.push(am[0]);az&&aK.push(U[0]);Y.focus(function(){D.focus()});D.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(aN){if(aN.target!==this&&!(aK.length&&b(aN.target).closest(aK).length)){return}var aM=aa,aL=I;switch(aN.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:s=aN.keyCode;aJ();break;case 35:M(Z-v);s=null;break;case 36:M(0);s=null;break}aI=aN.keyCode==s&&aM!=aa||aL!=I;return !aI}).bind("keypress.jsp",function(aL){if(aL.keyCode==s){aJ()}return !aI});if(ay.hideFocus){D.css("outline","none");if("hideFocus" in al[0]){D.attr("hideFocus",true)}}else{D.css("outline","");if("hideFocus" in al[0]){D.attr("hideFocus",false)}}function aJ(){var aM=aa,aL=I;switch(s){case 40:Q.scrollByY(ay.keyboardSpeed,false);break;case 38:Q.scrollByY(-ay.keyboardSpeed,false);break;case 34:case 32:Q.scrollByY(v*ay.scrollPagePercent,false);break;case 33:Q.scrollByY(-v*ay.scrollPagePercent,false);break;case 39:Q.scrollByX(ay.keyboardSpeed,false);break;case 37:Q.scrollByX(-ay.keyboardSpeed,false);break}aI=aM!=aa||aL!=I;return aI}}function R(){D.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function C(){if(location.hash&&location.hash.length>1){var aK,aI,aJ=escape(location.hash.substr(1));try{aK=b("#"+aJ+', a[name="'+aJ+'"]')}catch(s){return}if(aK.length&&Y.find(aJ)){if(al.scrollTop()===0){aI=setInterval(function(){if(al.scrollTop()>0){ab(aK,true);b(document).scrollTop(al.position().top);clearInterval(aI)}},50)}else{ab(aK,true);b(document).scrollTop(al.position().top)}}}}function m(){if(b(document.body).data("jspHijack")){return}b(document.body).data("jspHijack",true);b(document.body).delegate("a[href*=#]","click",function(s){var aI=this.href.substr(0,this.href.indexOf("#")),aK=location.href,aO,aP,aJ,aM,aL,aN;if(location.href.indexOf("#")!==-1){aK=location.href.substr(0,location.href.indexOf("#"))}if(aI!==aK){return}aO=escape(this.href.substr(this.href.indexOf("#")+1));aP;try{aP=b("#"+aO+', a[name="'+aO+'"]')}catch(aQ){return}if(!aP.length){return}aJ=aP.closest(".jspScrollable");aM=aJ.data("jsp");aM.scrollToElement(aP,true);if(aJ[0].scrollIntoView){aL=b(a).scrollTop();aN=aP.offset().top;if(aN<aL||aN>aL+b(a).height()){aJ[0].scrollIntoView()}}s.preventDefault()
|
||||
})}function an(){var aJ,aI,aL,aK,aM,s=false;al.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(aN){var aO=aN.originalEvent.touches[0];aJ=aC();aI=aA();aL=aO.pageX;aK=aO.pageY;aM=false;s=true}).bind("touchmove.jsp",function(aQ){if(!s){return}var aP=aQ.originalEvent.touches[0],aO=aa,aN=I;Q.scrollTo(aJ+aL-aP.pageX,aI+aK-aP.pageY);aM=aM||Math.abs(aL-aP.pageX)>5||Math.abs(aK-aP.pageY)>5;return aO==aa&&aN==I}).bind("touchend.jsp",function(aN){s=false}).bind("click.jsp-touchclick",function(aN){if(aM){aM=false;return false}})}function g(){var s=aA(),aI=aC();D.removeClass("jspScrollable").unbind(".jsp");D.replaceWith(ao.append(Y.children()));ao.scrollTop(s);ao.scrollLeft(aI);if(av){clearInterval(av)}}b.extend(Q,{reinitialise:function(aI){aI=b.extend({},ay,aI);ar(aI)},scrollToElement:function(aJ,aI,s){ab(aJ,aI,s)},scrollTo:function(aJ,s,aI){N(aJ,aI);M(s,aI)},scrollToX:function(aI,s){N(aI,s)},scrollToY:function(s,aI){M(s,aI)},scrollToPercentX:function(aI,s){N(aI*(T-aj),s)},scrollToPercentY:function(aI,s){M(aI*(Z-v),s)},scrollBy:function(aI,s,aJ){Q.scrollByX(aI,aJ);Q.scrollByY(s,aJ)},scrollByX:function(s,aJ){var aI=aC()+Math[s<0?"floor":"ceil"](s),aK=aI/(T-aj);W(aK*j,aJ)},scrollByY:function(s,aJ){var aI=aA()+Math[s<0?"floor":"ceil"](s),aK=aI/(Z-v);V(aK*i,aJ)},positionDragX:function(s,aI){W(s,aI)},positionDragY:function(aI,s){V(aI,s)},animate:function(aI,aL,s,aK){var aJ={};aJ[aL]=s;aI.animate(aJ,{duration:ay.animateDuration,easing:ay.animateEase,queue:false,step:aK})},getContentPositionX:function(){return aC()},getContentPositionY:function(){return aA()},getContentWidth:function(){return T},getContentHeight:function(){return Z},getPercentScrolledX:function(){return aC()/(T-aj)},getPercentScrolledY:function(){return aA()/(Z-v)},getIsScrollableH:function(){return aE},getIsScrollableV:function(){return az},getContentPane:function(){return Y},scrollToBottom:function(s){V(i,s)},hijackInternalLinks:b.noop,destroy:function(){g()}});ar(O)}e=b.extend({},b.fn.jScrollPane.defaults,e);b.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){e[this]=e[this]||e.speed});return this.each(function(){var f=b(this),g=f.data("jsp");if(g){g.reinitialise(e)}else{g=new d(f,e);f.data("jsp",g)}})};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);
|
||||
@@ -0,0 +1,84 @@
|
||||
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.6
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
var types = ['DOMMouseScroll', 'mousewheel'];
|
||||
|
||||
if ($.event.fixHooks) {
|
||||
for ( var i=types.length; i; ) {
|
||||
$.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mousewheel = {
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.addEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = handler;
|
||||
}
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
if ( this.removeEventListener ) {
|
||||
for ( var i=types.length; i; ) {
|
||||
this.removeEventListener( types[--i], handler, false );
|
||||
}
|
||||
} else {
|
||||
this.onmousewheel = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.fn.extend({
|
||||
mousewheel: function(fn) {
|
||||
return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
|
||||
},
|
||||
|
||||
unmousewheel: function(fn) {
|
||||
return this.unbind("mousewheel", fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function handler(event) {
|
||||
var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
|
||||
event = $.event.fix(orgEvent);
|
||||
event.type = "mousewheel";
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
|
||||
if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
|
||||
|
||||
// New school multidimensional scroll (touchpads) deltas
|
||||
deltaY = delta;
|
||||
|
||||
// Gecko
|
||||
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||
deltaY = 0;
|
||||
deltaX = -1*delta;
|
||||
}
|
||||
|
||||
// Webkit
|
||||
if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
|
||||
if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
|
||||
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* @author trixta
|
||||
* @version 1.2
|
||||
*/
|
||||
(function($){
|
||||
|
||||
var mwheelI = {
|
||||
pos: [-260, -260]
|
||||
},
|
||||
minDif = 3,
|
||||
doc = document,
|
||||
root = doc.documentElement,
|
||||
body = doc.body,
|
||||
longDelay, shortDelay
|
||||
;
|
||||
|
||||
function unsetPos(){
|
||||
if(this === mwheelI.elem){
|
||||
mwheelI.pos = [-260, -260];
|
||||
mwheelI.elem = false;
|
||||
minDif = 3;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mwheelIntent = {
|
||||
setup: function(){
|
||||
var jElm = $(this).bind('mousewheel', $.event.special.mwheelIntent.handler);
|
||||
if( this !== doc && this !== root && this !== body ){
|
||||
jElm.bind('mouseleave', unsetPos);
|
||||
}
|
||||
jElm = null;
|
||||
return true;
|
||||
},
|
||||
teardown: function(){
|
||||
$(this)
|
||||
.unbind('mousewheel', $.event.special.mwheelIntent.handler)
|
||||
.unbind('mouseleave', unsetPos)
|
||||
;
|
||||
return true;
|
||||
},
|
||||
handler: function(e, d){
|
||||
var pos = [e.clientX, e.clientY];
|
||||
if( this === mwheelI.elem || Math.abs(mwheelI.pos[0] - pos[0]) > minDif || Math.abs(mwheelI.pos[1] - pos[1]) > minDif ){
|
||||
mwheelI.elem = this;
|
||||
mwheelI.pos = pos;
|
||||
minDif = 250;
|
||||
|
||||
clearTimeout(shortDelay);
|
||||
shortDelay = setTimeout(function(){
|
||||
minDif = 10;
|
||||
}, 200);
|
||||
clearTimeout(longDelay);
|
||||
longDelay = setTimeout(function(){
|
||||
minDif = 3;
|
||||
}, 1500);
|
||||
e = $.extend({}, e, {type: 'mwheelIntent'});
|
||||
return $.event.handle.apply(this, arguments);
|
||||
}
|
||||
}
|
||||
};
|
||||
$.fn.extend({
|
||||
mwheelIntent: function(fn) {
|
||||
return fn ? this.bind("mwheelIntent", fn) : this.trigger("mwheelIntent");
|
||||
},
|
||||
|
||||
unmwheelIntent: function(fn) {
|
||||
return this.unbind("mwheelIntent", fn);
|
||||
}
|
||||
});
|
||||
|
||||
$(function(){
|
||||
body = doc.body;
|
||||
//assume that document is always scrollable, doesn't hurt if not
|
||||
$(doc).bind('mwheelIntent.mwheelIntentDefault', $.noop);
|
||||
});
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
// @codekit-prepend "gui.js"
|
||||
|
||||
|
||||
Drupal.behaviors.init_theme = function (context) {
|
||||
// Growl-style system messages
|
||||
$('#messages-and-help > div.messages:not(.processed)')
|
||||
.addClass('processed')
|
||||
.each(function() {
|
||||
// If a message meets these criteria, we don't autoclose
|
||||
// - contains a link
|
||||
// - is an error or warning
|
||||
// - contains a lenghthy amount of text
|
||||
if ($('a', this).size() || $(this).is('.error') || $(this).is('.warning') || $(this).text().length > 100) {
|
||||
$(this).prepend("<span class='close'>X</span>");
|
||||
$('span.close', this).click(function() {
|
||||
$(this).parent().slideUp('fast');
|
||||
});
|
||||
}
|
||||
else {
|
||||
// This essentially adds a 3 second pause before hiding the message.
|
||||
$(this).animate({opacity:1}, 5000, 'linear', function() {
|
||||
$(this).slideUp('fast');
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,254 @@
|
||||
/**
|
||||
* Primary Drupal Styles
|
||||
* Author: g-u-i.net
|
||||
*/
|
||||
|
||||
@import "gui.less";
|
||||
|
||||
|
||||
body{font-size:16px; font-family: Arial, "MS Trebuchet", sans-serif;}
|
||||
|
||||
|
||||
a{color: #007BC2; text-decoration: none;}
|
||||
|
||||
|
||||
h1{font-size:1.6em;}
|
||||
h2{font-size:1.5em;}
|
||||
h3{font-size:1.4em;}
|
||||
h4{font-size:1.3em;}
|
||||
h5{font-size:1.2em;}
|
||||
h6{font-size:1.1em;}
|
||||
|
||||
input{font-family: Arial, "MS Trebuchet", sans-serif; font-size:0.8em;}
|
||||
|
||||
|
||||
|
||||
/** layout */
|
||||
#center, #sidebar-first, #sidebar-second, .footer-block .region, .header-block{ display:inline-block; vertical-align: top;}
|
||||
|
||||
body.two-sidebars #center { width: 54%; }
|
||||
body.sidebar-first #center { width: 73%; }
|
||||
body.sidebar-second #center { width: 80%; }
|
||||
body.no-sidebars #center { width: 100%; }
|
||||
|
||||
#sidebar-first { width: 24%; }
|
||||
#sidebar-second { width: 18%; }
|
||||
|
||||
#header, #main, #footer{ padding:1em; }
|
||||
|
||||
body{background-color: #DFDFDF;}
|
||||
|
||||
#container{width:1024px; margin:0 auto; background-color: #FFF;}
|
||||
|
||||
#header, #footer{background-color: #535353; color:#fff;}
|
||||
|
||||
.block, .panel-pane{
|
||||
border: 1px solid #D1D1D1; padding:0.5em; margin:0.5em;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
|
||||
.footer-block .block{
|
||||
background-color: #353535; border: 1px solid #1a1a1a;
|
||||
}
|
||||
#footer-bottom{ text-align: center;}
|
||||
#footer-bottom .block{ background-color: transparent; border: 0 solid #999; font-size:0.7em;}
|
||||
|
||||
#content{padding:1em;}
|
||||
|
||||
.logo h1, h1.page-title{font-size:2em;}
|
||||
|
||||
#header ul.menu li,
|
||||
#content-top ul.menu li,
|
||||
#content-bottom ul.menu li,
|
||||
#footer ul.menu li{display:inline-block; vertical-align:top; }
|
||||
|
||||
.views-row{margin-bottom:1em;}
|
||||
|
||||
.views-field-title{font-size:1.1em; font-weight:bold;}
|
||||
.views-field-title a{color: #444444; text-decoration:none;}
|
||||
|
||||
li, .item-list ul li{list-style: none inside url(); margin-left:0;}
|
||||
|
||||
/** Messages. */
|
||||
|
||||
div.messages {
|
||||
padding: 9px;
|
||||
margin: 0.5em 0 0;
|
||||
color: #036;
|
||||
background: #bdf;
|
||||
border: 1px solid #ace;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
|
||||
}
|
||||
|
||||
div.warning {
|
||||
color: #840;
|
||||
background: #fe6;
|
||||
border-color: #ed5;
|
||||
}
|
||||
|
||||
div.error {
|
||||
color: #fff;
|
||||
background: #e63;
|
||||
border-color: #d52;
|
||||
}
|
||||
|
||||
div.error p.error {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
div.status {
|
||||
color: #360;
|
||||
background: #cf8;
|
||||
border-color: #be7;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Tab navigation */
|
||||
|
||||
ul.primary, .views-admin-links ul {
|
||||
font:13px/1.231 sans-serif; *font-size:small;
|
||||
border-collapse: collapse;
|
||||
padding: 0 0 0 1em; /* LTR */
|
||||
white-space: nowrap;
|
||||
list-style: none;
|
||||
margin: 5px;
|
||||
height: auto;
|
||||
line-height: normal;
|
||||
border-bottom: 1px solid #bbb;
|
||||
}
|
||||
ul.primary li, .views-admin-links li{
|
||||
display: inline;
|
||||
|
||||
}
|
||||
ul.primary li a, .views-admin-links li a {
|
||||
background-color: #ddd;
|
||||
border-color: #bbb;
|
||||
border-width: 1px;
|
||||
border-style: solid solid none solid;
|
||||
height: auto;
|
||||
margin-right: 0.5em; /* LTR */
|
||||
padding: 0 1em;
|
||||
text-decoration: none;
|
||||
-moz-border-radius-topleft: 5px;
|
||||
-webkit-border-top-left-radius: 5px;
|
||||
border-top-left-radius: 5px;
|
||||
-moz-border-radius-topright: 5px;
|
||||
-webkit-border-top-right-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
ul.primary li.active a {
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
border-bottom: #fff 1px solid;
|
||||
}
|
||||
ul.primary li a:hover, .views-admin-links li a:hover{
|
||||
background-color: #eee;
|
||||
border-color: #ccc;
|
||||
border-bottom-color: #eee;
|
||||
}
|
||||
|
||||
ul.secondary {
|
||||
border-bottom: 1px solid #bbb;
|
||||
padding: 0.5em 1em;
|
||||
margin: 5px;
|
||||
}
|
||||
ul.secondary li {
|
||||
display: inline;
|
||||
padding: 0 1em;
|
||||
border-right: 1px solid #ccc; /* LTR */
|
||||
}
|
||||
ul.secondary a {
|
||||
padding: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
ul.secondary a.active {
|
||||
border-bottom: 4px solid #999;
|
||||
}
|
||||
|
||||
|
||||
/** Form */
|
||||
|
||||
#node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
|
||||
#node-form .form-region-main label{float:left; min-width:25%;}
|
||||
#node-form .form-region-main input.form-text{width:40%;}
|
||||
|
||||
#node-form .form-region-right{padding-left:5px;}
|
||||
#node-form .form-region-right label{float:left; min-width:35%;}
|
||||
#node-form .form-region-right input.form-text{width:60%;}
|
||||
|
||||
#node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
|
||||
|
||||
|
||||
form:not( #views-ui-config-item-form ) .form-item {
|
||||
position:relative;
|
||||
/* padding:9px;*/
|
||||
}
|
||||
|
||||
form:not( #views-ui-config-item-form ) .form-item .description{
|
||||
position:absolute;
|
||||
bottom:140%;
|
||||
/* right:-15px;*/
|
||||
z-index:5;
|
||||
left:50%;
|
||||
color:#1A1A1A;
|
||||
line-height:1.1;
|
||||
background:url(../images/popup.png) 50% 100% no-repeat;
|
||||
width:240px;
|
||||
margin:0px 0px -15px;
|
||||
padding:9px 10px 20px;
|
||||
display:none;
|
||||
border-top: 1px solid #9F9F9F;
|
||||
}
|
||||
form:not( #views-ui-config-item-form ) .form-item:hover {
|
||||
z-index:1;
|
||||
height:auto; /* Fix for flicker in IE7 */
|
||||
}
|
||||
form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
|
||||
|
||||
|
||||
fieldset{
|
||||
border: 1px solid #D4D4D4;
|
||||
padding:10px;
|
||||
margin-bottom:1em;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
fieldset legend{
|
||||
font-size:1.6em;
|
||||
}
|
||||
|
||||
input.form-text{max-width:95%;}
|
||||
|
||||
/** TABLE */
|
||||
|
||||
table{width:100%;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
table thead th{
|
||||
background-color: #CCC;
|
||||
padding:0.5em 1em;
|
||||
text-align: left;
|
||||
}
|
||||
table tbody tr.even, table tbody tr.odd{
|
||||
border-bottom: 0 solid #CCCCCC;
|
||||
padding: 0.1em 0.6em;
|
||||
}
|
||||
table tbody tr.even{background-color: #EEE;}
|
||||
table tbody tr.odd{background-color: #E5E5E5;}
|
||||
|
||||
table tbody td{
|
||||
padding:0.5em 1em;
|
||||
text-align: left;
|
||||
}
|
||||
td.active {background-color: transparent;}
|
||||
@@ -0,0 +1,68 @@
|
||||
/* LISIBILITY */
|
||||
@import "fonts.less";
|
||||
|
||||
*{font-size:14px;}
|
||||
div{border: 1px dashed #D4D4D4;}
|
||||
p:after, ul:after{content:"¬"; color:red;}
|
||||
|
||||
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before{
|
||||
color:blue; font-weight: normal; font-size:10px; vertical-align: super;
|
||||
}
|
||||
|
||||
h1:before{content:"h1 ";}
|
||||
h2:before{content:"h2 ";}
|
||||
h3:before{content:"h3 ";}
|
||||
h4:before{content:"h4 ";}
|
||||
h5:before{content:"h5 ";}
|
||||
h6:before{content:"h6 ";}
|
||||
|
||||
|
||||
h2{font-size:24px; .h2;}
|
||||
h3{font-size:18px; .h3;}
|
||||
h4{font-size:16px; .h4;}
|
||||
h5{font-size:14px; .h5;}
|
||||
h6{font-size:12px; .h6;}
|
||||
|
||||
|
||||
.side-note-4{.h4;}
|
||||
.side-note-5{.h5;}
|
||||
|
||||
br:after{content:"·"; color:red; border: 1px solid #999;}
|
||||
|
||||
/* LAYOUT AND GRAPHICS */
|
||||
#full{ width:99%; }
|
||||
#demi{ width:47%; }
|
||||
#tiers{ width:29%; }
|
||||
#quart{ width:23%; }
|
||||
#right{ float:right; margin-left:2%; }
|
||||
#left{ float:left; margin-right:2%; }
|
||||
#center{ display:block; margin:0 auto; }
|
||||
|
||||
|
||||
img{height:auto; margin:0.5em 0;}
|
||||
p{ .p; border: 1px dashed #848484; }
|
||||
div{border: 1px solid #1A1A1A;}
|
||||
|
||||
img,p,div{ position:relative;
|
||||
&:before{font-size:10px; color:red; background-color: #1A1A1A; position:absolute; top:0; z-index:3000;}
|
||||
|
||||
&.full{#full; &:before{content:" full ";}}
|
||||
&.demi{ #demi; margin-right:2%; &:before{content:" demi "; right:0;}}
|
||||
&.tiers{ #tiers; margin-right:2%; &:before{content:" tiers "; right:0;}}
|
||||
&.quart{ #quart; margin-right:2%; &:before{content:" quart "; right:0;}}
|
||||
|
||||
&.demi-left{ #demi; #left; &:before{content:" demi-left "; left:0;}}
|
||||
&.demi-right{ #demi; #right; &:before{content:" demi-right "; right:0;}}
|
||||
&.demi-center{ #demi; #center; &:before{content:" demi-denter "; right:0;}}
|
||||
|
||||
&.tiers-left{ #tiers; #left; &:before{content:" tiers-left "; left:0;}}
|
||||
&.tiers-right{ #tiers; #right; &:before{content:" tiers-right "; right:0;}}
|
||||
&.tiers-center{ #tiers; #center; &:before{content:" tiers-center "; right:0;}}
|
||||
|
||||
&.quart-left{ #quart; #left; &:before{content:" quart-left "; left:0;}}
|
||||
&.quart-right{ #quart; #right; &:before{content:" quart-right "; right:0;}}
|
||||
&.quart-center{ #quart; #center; &:before{content:" quart-center "; right:0;}}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
@@ -0,0 +1,214 @@
|
||||
<!doctype html>
|
||||
|
||||
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
||||
<!--[if lt IE 7 ]> <html lang="<?php print $language->language ?>" class="no-js ie6"> <![endif]-->
|
||||
<!--[if IE 7 ]> <html lang="<?php print $language->language ?>" class="no-js ie7"> <![endif]-->
|
||||
<!--[if IE 8 ]> <html lang="<?php print $language->language ?>" class="no-js ie8"> <![endif]-->
|
||||
<!--[if IE 9 ]> <html lang="<?php print $language->language ?>" class="no-js ie9"> <![endif]-->
|
||||
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="<?php print $language->language ?>" class="no-js"> <!--<![endif]-->
|
||||
|
||||
|
||||
<head>
|
||||
|
||||
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||
Remove this if you use the .htaccess -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
||||
<title>
|
||||
<?php print $head_title; ?>
|
||||
</title>
|
||||
|
||||
<?php print $head; ?>
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
|
||||
<!-- Mobile Viewport Fix
|
||||
j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
|
||||
device-width : Occupy full width of the screen in its current orientation
|
||||
initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
|
||||
maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
|
||||
-->
|
||||
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
|
||||
|
||||
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references -->
|
||||
<link rel="shortcut icon" href="<?php print $base_path . path_to_theme() ?>/favicon.ico">
|
||||
<link rel="apple-touch-icon" href="<?php print $base_path . path_to_theme() ?>/apple-touch-icon.png">
|
||||
|
||||
|
||||
<?php print $styles; ?>
|
||||
|
||||
|
||||
<!-- For the less-enabled mobile browsers like Opera Mini -->
|
||||
<link rel="stylesheet" media="handheld" href="<?php print $base_path . path_to_theme() ?>/css/handheld.css?v=1">
|
||||
|
||||
|
||||
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
|
||||
<script src="<?php print $base_path . path_to_theme() ?>/js/modernizr-1.6.min.js"></script>
|
||||
</head>
|
||||
|
||||
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
||||
|
||||
<body class="<?php print $body_classes; ?>">
|
||||
|
||||
<?php if ($header): print '<div id="header-region-wrapper"><div id="header-region">'.$header.'</div></div>'; endif; ?>
|
||||
|
||||
<div id="container">
|
||||
|
||||
<header id="header">
|
||||
<div class="region-content">
|
||||
<?php
|
||||
if ($logo || $site_title) {
|
||||
print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
|
||||
if ($logo) {
|
||||
print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" title="Home" />';
|
||||
}
|
||||
print ($logo ? '' : $site_title_html) .'</a></h1>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if ($headerblock_left || $headerblock_middle || $headerblock_right): ?>
|
||||
<div id="header-blocks">
|
||||
<?php if ($headerblock_left): ?>
|
||||
<div id="headerblock-left" class="headerblock-block">
|
||||
<?php print $headerblock_left ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($headerblock_middle): ?>
|
||||
<div id="headerblock-middle" class="headerblock-block">
|
||||
<?php print $headerblock_middle?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($headerblock_right): ?>
|
||||
<div id="headerblock-right" class="headerblock-block">
|
||||
<?php print $headerblock_right ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
<!-- /header -->
|
||||
|
||||
|
||||
<main id="main">
|
||||
|
||||
<section id="center">
|
||||
|
||||
<?php if ($tabs) { ?><div class="tabs"><?php print $tabs ?></div><?php } ?>
|
||||
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
||||
<?php if ($help): print $help; endif; ?>
|
||||
|
||||
<?php if ($content_top): ?>
|
||||
<section id="content-top">
|
||||
<?php print $content_bottom; ?>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<section id="content">
|
||||
<?php if ($title) { ?><h1 class="pagetitle"><?php print $title ?></h1><?php } ?>
|
||||
<?php print $content; ?>
|
||||
</section>
|
||||
|
||||
<?php if ($content_bottom): ?>
|
||||
<section id="content-bottom">
|
||||
<?php print $content_bottom; ?>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
<!-- /center -->
|
||||
|
||||
|
||||
<?php if ($left): ?>
|
||||
<section id="sidebar-left" class="sidebar">
|
||||
<?php print $left ?>
|
||||
</section>
|
||||
<!-- /sidebar-left -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($right): ?>
|
||||
<section id="sidebar-right" class="sidebar">
|
||||
<?php if ($search_box): ?><div class="block block-theme" id="searchbox"><?php print $search_box ?></div><?php endif; ?>
|
||||
<?php print $right ?>
|
||||
</section>
|
||||
<!-- /sidebar-right -->
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /main -->
|
||||
|
||||
|
||||
<footer id="footer">
|
||||
|
||||
<?php if ($footer_top): ?>
|
||||
<div id="footer-top-wrapper">
|
||||
<div id="footer-top">
|
||||
<?php print $footer_top ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($footer_left || $footer_middle_left || $footer_middle_right || $footer_right): ?>
|
||||
<div class="footer-block">
|
||||
|
||||
<?php if ($footer_left): ?>
|
||||
<div id="footer-left" class="footer-block">
|
||||
<?php print $footer_left ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($footer_middle_left): ?>
|
||||
<div id="footer-middle-left" class="footer-block">
|
||||
<?php print $footer_middle_left ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($footer_middle_right): ?>
|
||||
<div id="footer-middle-right" class="footer-block">
|
||||
<?php print $footer_middle_right ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($footer_right): ?>
|
||||
<div id="footer-right" class="footer-block">
|
||||
<?php print $footer_right ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($footer_message): ?>
|
||||
<div id="footer-message">
|
||||
<p><?php print $footer_message ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</footer>
|
||||
<!-- /footer -->
|
||||
|
||||
</div>
|
||||
<!-- /container -->
|
||||
|
||||
<!-- Javascript at the bottom for fast page loading -->
|
||||
|
||||
<?php print $scripts; ?>
|
||||
|
||||
|
||||
<!-- yui profiler and profileviewer - remove for production -->
|
||||
<script src="<?php print $base_path . path_to_theme() ?>/js/profiling/yahoo-profiling.min.js?v=1"></script>
|
||||
<script src="<?php print $base_path . path_to_theme() ?>/js/profiling/config.js?v=1"></script>
|
||||
<!-- end profiling code -->
|
||||
|
||||
|
||||
<!--[if lt IE 7 ]>
|
||||
<script src="<?php print $base_path . path_to_theme() ?>/js/libs/dd_belatedpng.js"></script>
|
||||
<script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script>
|
||||
<![endif]-->
|
||||
|
||||
|
||||
<?php print $closure ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
.panel-html5-2col{width:100%;}
|
||||
.panel-html5-2col>*{float:left;width:50%;}
|
||||
.panel-html5-2col>.article{clear:both;}
|
||||
.clear-after:after{clear:both;content:'';display:block;height:0px;overflow:hidden;visibility:hidden;width:0px;}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('[Article] [Aside]'),
|
||||
'category' => t('Columns: 2'),
|
||||
'icon' => 'html5-2-col.png',
|
||||
'theme' => 'panels_html5_2_col',
|
||||
'css' => 'html5-2-col.css',
|
||||
'regions' => array(
|
||||
'article' => t('Article'),
|
||||
'aside' => t('Aside'),
|
||||
),
|
||||
);
|
||||
|
After Width: | Height: | Size: 193 B |
@@ -0,0 +1,4 @@
|
||||
<div class="panel panel-html5-2col clear-after" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
|
||||
<article class="article clear-after"><?php print $content['article']; ?></article>
|
||||
<aside class="aside clear-after"><?php print $content['aside']; ?></aside>
|
||||
</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
.panel-html5-basic{width:100%;}
|
||||
.clear-after:after{clear:both;content:'';display:block;height:0px;overflow:hidden;visibility:hidden;width:0px;}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('[Header] [Nav] [Section]'),
|
||||
'category' => t('Columns: 1'),
|
||||
'icon' => 'html5-basic.png',
|
||||
'theme' => 'panels_html5_basic',
|
||||
'css' => 'html5-basic.css',
|
||||
'regions' => array(
|
||||
'header' => t('Header'),
|
||||
'nav' => t('Nav'),
|
||||
'section' => t('Section'),
|
||||
),
|
||||
);
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,5 @@
|
||||
<div class="panel-html5-basic clear-after" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
|
||||
<header class="header clear-after"><?php print $content['header']; ?></header>
|
||||
<nav class="nav clear-after"><?php print $content['nav']; ?></nav>
|
||||
<section class="section clear-after"><?php print $content['section']; ?></section>
|
||||
</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
.panel-html5-custom-2{width:100%;}
|
||||
.clear-after:after{clear:both;content:'';display:block;height:0px;overflow:hidden;visibility:hidden;width:0px;}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('[Article] [Nav] [Aside]'),
|
||||
'category' => t('Columns: 1'),
|
||||
'icon' => 'html5-custom-2.png',
|
||||
'theme' => 'panels_html5_custom_2',
|
||||
'css' => 'html5-custom-2.css',
|
||||
'regions' => array(
|
||||
'article' => t('Article'),
|
||||
'nav' => t('Nav'),
|
||||
'aside' => t('Aside'),
|
||||
),
|
||||
);
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,5 @@
|
||||
<div class="panel panel-html5-custom2 clear-after" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
|
||||
<article class="article clear-after"><?php print $content['article']; ?></article>
|
||||
<nav class="nav clear-after"><?php print $content['nav']; ?></nav>
|
||||
<aside class="aside clear-after"><?php print $content['aside']; ?></aside>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
.panel-html5-custom{width:100%;}
|
||||
.panel-html5-custom .nav{ float:left; width:100%; }
|
||||
.panel-html5-custom .article{ clear:both; float:left; width:50%; }
|
||||
.panel-html5-custom .aside{ float:right; width:50%; }
|
||||
.clear-after:after{clear:both;content:'';display:block;height:0px;overflow:hidden;visibility:hidden;width:0px;}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('[Nav] [Article] [Aside]'),
|
||||
'category' => t('Columns: 2'),
|
||||
'icon' => 'html5-custom.png',
|
||||
'theme' => 'panels_html5_custom',
|
||||
'css' => 'html5-custom.css',
|
||||
'regions' => array(
|
||||
'nav' => t('Nav'),
|
||||
'article' => t('Article'),
|
||||
'aside-nav' => t('Aside > Nav'),
|
||||
'aside-content' => t('Aside > Content'),
|
||||
),
|
||||
);
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,9 @@
|
||||
<div class="panel panel-html5-custom clear-after" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
|
||||
<nav class="nav clear-after"><?php print $content['nav']; ?></nav>
|
||||
<article class="article clear-after"><?php print $content['article']; ?></article>
|
||||
<aside class="aside clear-after">
|
||||
|
||||
<?php if($content['aside-nav']): ?><nav class="aside-nav clear-after"><?php print $content['aside-nav']; ?></nav><?php endif; ?>
|
||||
<?php print $content['aside-content']; ?>
|
||||
</aside>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Definition of the 'default' panel style.
|
||||
*/
|
||||
|
||||
// Plugin definition
|
||||
$plugin = array(
|
||||
'title' => t('Minimum HTML'),
|
||||
'description' => t('The default panel rendering style; without separator.'),
|
||||
'render pane' => 'panels_minimum_style_render_pane',
|
||||
'render region' => 'panels_minimum_style_render_region',
|
||||
);
|
||||
|
||||
/**
|
||||
* Render callback.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function theme_panels_minimum_style_render_pane($vars) {
|
||||
return render($vars['content']->content);
|
||||
}
|
||||
|
||||
|
||||
function theme_panels_minimum_style_render_region($vars) {
|
||||
return implode($vars['panes']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
//
|
||||
|
||||
$vars['attributes']['class']='block block-'. $vars['block']->module .' '. (isset($vars['skinr']) ? $vars['skinr'] : '');
|
||||
$vars['attributes']['id'] = 'block-'. $vars['block']->module .'-'. $vars['block']->delta;
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file template.preprocess-comment-wrapper.inc
|
||||
*/
|
||||
|
||||
global $theme;
|
||||
|
||||
$classes = array();
|
||||
|
||||
# Add support for Skinr module classes http://drupal.org/project/skinr
|
||||
if (function_exists('node_skinr_data') && !empty($vars['skinr'])) {
|
||||
$classes[] = $vars['skinr'];
|
||||
}
|
||||
|
||||
# Class for content types: "forum-comments", "blog-comments", etc.
|
||||
$vars['classes'] .= ' '. $vars['node']->type .'-comments';
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
//dsm($vars);
|
||||
|
||||
$vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#view_mode'];
|
||||
$vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#field_type'] . '__' . $vars['element']['#view_mode'];
|
||||
$vars['theme_hook_suggestions'][] = 'field__' . $vars['element']['#field_name'] . '__' . $vars['element']['#view_mode'];
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
if (module_exists('rdf')) {
|
||||
$vars['doctype'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML+RDFa 1.1//EN">' . "\n";
|
||||
$vars['rdf_profile'] = ' profile="' . $vars['grddl_profile'] . '"';
|
||||
}
|
||||
else {
|
||||
$vars['doctype'] = '<!DOCTYPE html>' . "\n";
|
||||
$vars['rdf_profile'] = '';
|
||||
}
|
||||
|
||||
|
||||
# Add mobile meta tags to $head ADD this to your subtheme
|
||||
$heads = array();
|
||||
|
||||
$heads['HandheldFriendly'] = array(
|
||||
'#tag' => 'meta',
|
||||
'#attributes' => array(
|
||||
'name' => 'HandheldFriendly',
|
||||
'content' => 'true',
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
||||
# Mobile Viewport Fix
|
||||
# j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
|
||||
# device-width : Occupy full width of the screen in its current orientation
|
||||
# initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
|
||||
# maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width
|
||||
|
||||
$heads['viewport'] = array(
|
||||
'#tag' => 'meta',
|
||||
'#attributes' => array(
|
||||
'name' => 'viewport',
|
||||
'content' => 'width=device-width,initial-scale=1',
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
||||
# Add these icons links to your sub theme
|
||||
# or Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references
|
||||
|
||||
// $head[] = '<link rel="apple-touch-icon" sizes="72x72" href="'. base_path() . path_to_theme() .'/touch-icon-ipad.png'.'"/>' . "\n";
|
||||
// $head[] = '<link rel="apple-touch-icon" sizes="114x114" href="'. base_path() . path_to_theme() .'/touch-icon-iphone4.png'.'"/>' . "\n";
|
||||
|
||||
$heads['icon'] = array(
|
||||
'#tag' => 'link',
|
||||
'#attributes' => array(
|
||||
'href' => base_path() . path_to_theme() .'/icon.png',
|
||||
'rel' => 'shortcut icon',
|
||||
'type' => 'image/png',
|
||||
),
|
||||
);
|
||||
|
||||
$heads['apple-touch-icon'] = array(
|
||||
'#tag' => 'link',
|
||||
'#attributes' => array(
|
||||
'href' => base_path() . path_to_theme() .'/apple-touch-icon.png',
|
||||
'rel' => 'apple-touch-icon',
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($heads as $type=>$head)
|
||||
drupal_add_html_head($head, $type);
|
||||
|
||||
|
||||
|
||||
// $vars['head'] = implode('', $head);
|
||||
|
||||
|
||||
# add body classes
|
||||
if(isset($vars['node'])){
|
||||
|
||||
# from taxonomy
|
||||
foreach ($vars['node']->taxonomy as $tid => $term) {
|
||||
$vars['classes_array'][] = 'term-vid-'. $term->vid .' term-tid-'. $tid;
|
||||
}
|
||||
|
||||
# from menu
|
||||
$mlid = db_result(db_query("SELECT mlid FROM {menu_links} WHERE link_path = '%s'", 'node/'. $vars['node']->nid));
|
||||
// Now get the menu related information.
|
||||
if (!empty($mlid) || !empty($node->menu['mlid']) || !empty($node->menu['plid'])) {
|
||||
$menu_link = menu_link_load($mlid);
|
||||
// krumo($menu_link);
|
||||
$vars['classes_array'][] = ' mlid-'. $menu_link['mlid'] .' plid-'. $menu_link['plid'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# theme layout settings
|
||||
|
||||
if(isset($vars['page']['sidebar_first']) && isset($vars['page']['sidebar_second'])){
|
||||
$layout = 'two-sidebars';
|
||||
}else if(isset($vars['page']['sidebar_first']) || isset($vars['page']['sidebar_second'])){
|
||||
$layout = isset($vars['page']['sidebar_first']) ? 'sidebar-first' : 'sidebar-second';
|
||||
}else{
|
||||
$layout = 'no-sidebar';
|
||||
}
|
||||
$vars['classes_array'][] = $layout;
|
||||
|
||||
if (theme_get_setting('layout_enable_settings') == 'on') {
|
||||
$method = theme_get_setting('layout_method');
|
||||
$vars['method'] = $method;
|
||||
$vars['classes_array'][] .= ' layout-method-'.$method;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
//dsm($vars);
|
||||
|
||||
$vars['theme_hook_suggestions'][] = 'node__'.$vars['view_mode'];
|
||||
$vars['theme_hook_suggestions'][] = 'node__' . $vars['type'] . '__' . $vars['view_mode'];
|
||||
|
||||