Author: sevein
Date: Thu Aug 25 12:48:43 2011
New Revision: 9600
Log:
Trillium, using less
Added:
trunk/plugins/qtTrilliumPlugin/build.sh (contents, props changed)
trunk/plugins/qtTrilliumPlugin/css/less/
trunk/plugins/qtTrilliumPlugin/css/less/bootstrap.less
trunk/plugins/qtTrilliumPlugin/css/less/forms.less
trunk/plugins/qtTrilliumPlugin/css/less/patterns.less
trunk/plugins/qtTrilliumPlugin/css/less/preboot.less
trunk/plugins/qtTrilliumPlugin/css/less/reset.less
trunk/plugins/qtTrilliumPlugin/css/less/scaffolding.less
trunk/plugins/qtTrilliumPlugin/css/less/tables.less
trunk/plugins/qtTrilliumPlugin/css/less/type.less
trunk/plugins/qtTrilliumPlugin/modules/menu/actions/
trunk/plugins/qtTrilliumPlugin/modules/menu/actions/mainMenuComponent.class.php
Deleted:
trunk/plugins/qtTrilliumPlugin/css/header.css
Modified:
trunk/plugins/qtTrilliumPlugin/config/qtTrilliumPluginConfiguration.class.php
trunk/plugins/qtTrilliumPlugin/config/view.yml
trunk/plugins/qtTrilliumPlugin/css/main.css
trunk/plugins/qtTrilliumPlugin/modules/menu/templates/_mainMenu.php
trunk/plugins/qtTrilliumPlugin/templates/_header.php
Added: trunk/plugins/qtTrilliumPlugin/build.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/build.sh Thu Aug 25 12:48:43 2011
(r9600)
@@ -0,0 +1 @@
+vendor/less/bin/lessc css/less/bootstrap.less > css/main.css
Modified:
trunk/plugins/qtTrilliumPlugin/config/qtTrilliumPluginConfiguration.class.php
==============================================================================
---
trunk/plugins/qtTrilliumPlugin/config/qtTrilliumPluginConfiguration.class.php
Thu Aug 25 11:02:33 2011 (r9599)
+++
trunk/plugins/qtTrilliumPlugin/config/qtTrilliumPluginConfiguration.class.php
Thu Aug 25 12:48:43 2011 (r9600)
@@ -27,14 +27,19 @@
{
$context = $event->getSubject();
+ // Dependencies
// $context->response->addStylesheet('/plugins/sfClassicPlugin/css/main',
'last', array('media' => 'all'));
// $context->response->addStylesheet('/plugins/sfCaribouPlugin/css/style',
'last', array('media' => 'all'));
// $context->response->addStylesheet('/plugins/sfCaribouPlugin/css/print',
'last', array('media' => 'print'));
//
$context->response->addStylesheet('/plugins/sfCaribouPlugin/css/print-ie',
'last', array('condition' => 'IE', 'media' => 'print'));
//
$context->response->addJavaScript('/plugins/sfCaribouPlugin/js/navigation',
'last');
- $context->response->addStylesheet('/plugins/qtTrilliumPlugin/css/main',
'last', array('media' => 'all'));
- $context->response->addStylesheet('/plugins/qtTrilliumPlugin/css/header',
'last', array('media' => 'all'));
+ // Development
+
$context->response->addJavaScript('/plugins/qtTrilliumPlugin/vendor/less/dist/less-1.1.4.min');
+
$context->response->addStylesheet('/plugins/qtTrilliumPlugin/css/less/bootstrap.less',
'last', array('rel' => 'stylesheet/less'));
+
+ // Trillium CSS file generated with lessc
+ //
$context->response->addStylesheet('/plugins/qtTrilliumPlugin/css/main.css',
'last', array('rel' => 'stylesheet/less'));
}
public function initialize()
Modified: trunk/plugins/qtTrilliumPlugin/config/view.yml
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/config/view.yml Thu Aug 25 11:02:33
2011 (r9599)
+++ trunk/plugins/qtTrilliumPlugin/config/view.yml Thu Aug 25 12:48:43
2011 (r9600)
@@ -1,4 +1,5 @@
all:
+
stylesheets:
# -*
-/plugins/sfDrupalPlugin/vendor/drupal/modules/system/system:
Added: trunk/plugins/qtTrilliumPlugin/css/less/bootstrap.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/bootstrap.less Thu Aug 25
12:48:43 2011 (r9600)
@@ -0,0 +1,37 @@
+/*!
+ * Bootstrap v1.1.0
+ *
+ * Copyright 2011 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ * Date: @DATE
+ */
+
+// CSS Reset
+@import "reset.less";
+
+// Core
+@import "preboot.less";
+@import "scaffolding.less";
+
+// Styled patterns and elements
+@import "type.less";
+@import "forms.less";
+@import "tables.less";
+@import "patterns.less";
+
+.nowrap {
+ white-space: nowrap;
+}
+
+.element-hidden {
+ display: none;
+}
+
+.element-invisible {
+ height: 0;
+ overflow: hidden;
+ position: absolute;
+}
Added: trunk/plugins/qtTrilliumPlugin/css/less/forms.less
==============================================================================
Added: trunk/plugins/qtTrilliumPlugin/css/less/patterns.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/patterns.less Thu Aug 25
12:48:43 2011 (r9600)
@@ -0,0 +1,381 @@
+#header {
+
+ height: 40px;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 10000;
+ overflow: visible;
+
+ > .section {
+
+ background-color: Red;
+ background: #222;
+ #gradient > .vertical(#222, #444);
+ @shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
+ .box-shadow(@shadow);
+
+ }
+
+ a {
+
+ color: @grayLight;
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
+
+ }
+
+ a:hover,
+ ul li.active a {
+
+ background-color: #333;
+ background-color: rgba(255,255,255,.05);
+ color: @white;
+ text-decoration: none;
+
+ }
+
+ #logo {
+
+ display: none;
+
+ img {
+
+ }
+
+ }
+
+ #name-and-slogan {
+
+ #site-name {
+
+ position: relative;
+ margin: 0;
+
+ a {
+
+ float: left;
+ display: block;
+ padding: 8px 20px 12px;
+ margin-left: -20px; // negative indent to left-align the text down the
page
+ color: @white;
+ font-size: 20px;
+ font-weight: 200;
+ line-height: 1;
+
+ }
+
+ }
+
+ #site-slogan {
+
+ display: none;
+
+ }
+
+ }
+
+ .search {
+
+ form {
+
+ float: left;
+ margin: 5px 0 0 0;
+ position: relative;
+ .opacity(100);
+
+ input[type=submit] {
+
+ display: none;
+
+ }
+
+ input[name=query] {
+
+ background-color: #444;
+ background-color: rgba(255,255,255,.3);
+ #font > .sans-serif(13px, normal, 1);
+ width: 220px;
+ padding: 4px 9px;
+ color: #fff;
+ color: rgba(255,255,255,.75);
+ border: 1px solid #111;
+ .border-radius(4px);
+ @shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px
rgba(255,255,255,.25);
+ .box-shadow(@shadow);
+ .transition(none);
+
+ // Placeholder text gets special styles; can't be bundled together
though for some reason
+ &:-moz-placeholder {
+
+ color: @grayLighter;
+
+ }
+
+ &::-webkit-input-placeholder {
+
+ color: @grayLighter;
+
+ }
+
+ // Hover states
+ &:hover {
+
+ background-color: @grayLight;
+ background-color: rgba(255,255,255,.5);
+ color: #fff;
+
+ }
+
+ // Focus states (we use .focused since IE8 and down doesn't support
:focus)
+ &:focus,
+ &.focused {
+
+ outline: none;
+ background-color: #fff;
+ color: @grayDark;
+ text-shadow: 0 1px 0 #fff;
+ border: 0;
+ padding: 5px 10px;
+ .box-shadow(0 0 3px rgba(0,0,0,.15));
+
+ }
+
+ }
+
+ }
+
+ }
+
+ ul {
+
+ display: block;
+ float: left;
+ margin: 0 10px 0 0;
+ position: relative;
+
+ &.secondary-nav {
+
+ float: right;
+ margin-left: 10px;
+ margin-right: 0;
+
+ }
+
+ li {
+
+ display: block;
+ float: left;
+ font-size: 13px;
+
+ a {
+
+ display: block;
+ float: none;
+ padding: 10px 10px 11px;
+ line-height: 19px;
+ text-decoration: none;
+
+ &:hover {
+
+ color: #fff;
+ text-decoration: none;
+
+ }
+
+ }
+
+ &.active a {
+
+ background-color: #222;
+ background-color: rgba(0,0,0,.5);
+
+ }
+
+ }
+
+ // Dropdowns
+ &.primary-nav li ul {
+
+ left: 0;
+
+ }
+
+ &.secondary-nav li ul {
+
+ right: 0;
+
+ }
+
+ li.menu {
+
+ position: relative;
+
+ a.menu {
+
+ &:after {
+
+ width: 0px;
+ height: 0px;
+ display: inline-block;
+ content: "↓";
+ text-indent: -99999px;
+ vertical-align: top;
+ margin-top: 8px;
+ margin-left: 4px;
+ border-left: 4px solid transparent;
+ border-right: 4px solid transparent;
+ border-top: 4px solid #fff;
+ .opacity(50);
+
+ }
+
+ }
+
+ &.open {
+
+ a.menu,
+ a:hover {
+
+ background-color: #444;
+ background-color: rgba(255,255,255,.1);
+ *background-color: #444; /* IE6-7 */
+ color: #fff;
+
+ }
+
+ ul {
+
+ display: block;
+
+ li {
+
+ a {
+
+ background-color: transparent;
+ font-weight: normal;
+
+ &:hover {
+
+ background-color: rgba(255,255,255,.1);
+ *background-color: #444; /* IE6-7 */
+ color: #fff;
+
+ }
+
+ }
+
+ &.active a {
+
+ background-color: rgba(255,255,255,.1);
+ font-weight: bold;
+
+ }
+
+ ul {
+
+ display: none;
+
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ li ul {
+
+ background-color: #333;
+ float: left;
+ display: none;
+ position: absolute;
+ top: 40px;
+ min-width: 160px;
+ max-width: 220px;
+ _width: 160px;
+ margin-left: 0;
+ margin-right: 0;
+ padding: 0;
+ text-align: left;
+ border: 0;
+ zoom: 1;
+ .border-radius(0 0 5px 5px);
+ .box-shadow(0 1px 2px rgba(0,0,0,0.6));
+
+ li {
+
+ float: none;
+ clear: both;
+ display: block;
+ background: none;
+ font-size: 12px;
+
+ a {
+
+ display: block;
+ padding: 6px 15px;
+ clear: both;
+ font-weight: normal;
+ line-height: 19px;
+ color: #bbb;
+
+ &:hover {
+
+ background-color: #333;
+ background-color: rgba(255,255,255,.25);
+ color: #fff;
+
+ }
+
+ }
+
+ // Dividers (basically an hr)
+ &.divider {
+
+ height: 1px;
+ overflow: hidden;
+ background: #222;
+ background: rgba(0,0,0,.2);
+ border-bottom: 1px solid rgba(255,255,255,.1);
+ margin: 5px 0;
+
+ }
+
+ // Section separaters
+ span {
+
+ clear: both;
+ display: block;
+ background: rgba(0,0,0,.2);
+ padding: 6px 15px;
+ cursor: default;
+ color: @gray;
+ border-top: 1px solid rgba(0,0,0,.2);
+
+ }
+
+ }
+
+ }
+
+ li.help > a {
+ padding-left: 22px;
+ background: transparent url(../../images/help.png) no-repeat 8px 50%;
+ }
+
+ li.language > a {
+ padding-left: 22px;
+ background: transparent url(../../images/world.png) no-repeat 8px 50%;
+ }
+
+ li.user > a {
+ padding-left: 28px;
+ background: transparent url(../../images/user.png) no-repeat 8px 50%;
+ }
+
+ } // #header ul
+
+} // #header
Added: trunk/plugins/qtTrilliumPlugin/css/less/preboot.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/preboot.less Thu Aug 25
12:48:43 2011 (r9600)
@@ -0,0 +1,267 @@
+/* Preboot.less
+ * Variables and mixins to pre-ignite any new web development project
+ * ------------------------------------------------------------------ */
+
+
+// VARIABLES
+// ---------
+
+// Links
+@linkColor: #0069d6;
+@linkColorHover: darken(@linkColor, 10);
+
+// Grays
+@black: #000;
+@grayDark: lighten(@black, 25%);
+@gray: lighten(@black, 50%);
+@grayLight: lighten(@black, 75%);
+@grayLighter: lighten(@black, 90%);
+@white: #fff;
+
+// Accent Colors
+@blue: #049CDB;
+@blueDark: #0064CD;
+@green: #46a546;
+@red: #9d261d;
+@yellow: #ffc40d;
+@orange: #f89406;
+@pink: #c3325f;
+@purple: #7a43b6;
+
+// Baseline grid
+@basefont: 13px;
+@baseline: 18px;
+
+// Griditude
+@gridColumns: 16;
+@gridColumnWidth: 40px;
+@gridGutterWidth: 20px;
+@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth *
(@gridColumns - 1));
+
+// Color Scheme
+@baseColor: @blue; // Set a base color
+@complement: spin(@baseColor, 180); // Determine a complementary color
+@split1: spin(@baseColor, 158); // Split complements
+@split2: spin(@baseColor, -158);
+@triad1: spin(@baseColor, 135); // Triads colors
+@triad2: spin(@baseColor, -135);
+@tetra1: spin(@baseColor, 90); // Tetra colors
+@tetra2: spin(@baseColor, -90);
+@analog1: spin(@baseColor, 22); // Analogs colors
+@analog2: spin(@baseColor, -22);
+
+
+// MIXINS
+// ------
+
+// Clearfix for clearing floats like a boss h5bp.com/q
+.clearfix {
+ zoom: 1;
+ &:before, &:after {
+ display: table;
+ content: "";
+ }
+ &:after {
+ clear: both;
+ }
+}
+
+// Center-align a block level element
+.center-block {
+ display: block;
+ margin: 0 auto;
+}
+
+// Sizing shortcuts
+.size(@height: 5px, @width: 5px) {
+ height: @height;
+ width: @width;
+}
+.square(@size: 5px) {
+ .size(@size, @size);
+}
+
+// Input placeholder text
+.placeholder(@color: @grayLight) {
+ :-moz-placeholder {
+ color: @color;
+ }
+ ::-webkit-input-placeholder {
+ color: @color;
+ }
+}
+
+// Font Stacks
+#font {
+ .shorthand(@weight: normal, @size: 14px, @lineHeight: 20px) {
+ font-size: @size;
+ font-weight: @weight;
+ line-height: @lineHeight;
+ }
+ .sans-serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: @size;
+ font-weight: @weight;
+ line-height: @lineHeight;
+ }
+ .serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
+ font-family: "Georgia", Times New Roman, Times, serif;
+ font-size: @size;
+ font-weight: @weight;
+ line-height: @lineHeight;
+ }
+ .monospace(@weight: normal, @size: 12px, @lineHeight: 20px) {
+ font-family: "Monaco", Courier New, monospace;
+ font-size: @size;
+ font-weight: @weight;
+ line-height: @lineHeight;
+ }
+}
+
+// Grid System
+.container {
+ width: @siteWidth;
+ margin: 0 auto;
+ .clearfix();
+}
+.columns(@columnSpan: 1) {
+ float: left;
+ width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan -
1));
+ margin-left: @gridGutterWidth;
+ &:first-child {
+ margin-left: 0;
+ }
+}
+.offsetMath(@extraSpace: 40px) {
+ margin-left: (@gridColumnWidth * @columnOffset) + (@gridGutterWidth *
(@columnOffset - 1)) + @extraSpace !important;
+}
+.offset(@columnOffset: 1) {
+ .offsetMath(40px);
+ &:first-child {
+ .offsetMath(20px);
+ }
+}
+
+// Border Radius
+.border-radius(@radius: 5px) {
+ -webkit-border-radius: @radius;
+ -moz-border-radius: @radius;
+ border-radius: @radius;
+}
+
+// Drop shadows
+.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
+ -webkit-box-shadow: @shadow;
+ -moz-box-shadow: @shadow;
+ box-shadow: @shadow;
+}
+
+// Transitions
+.transition(@transition) {
+ -webkit-transition: @transition;
+ -moz-transition: @transition;
+ transition: @transition;
+}
+
+// Background clipping
+.background-clip(@clip) {
+ -webkit-background-clip: @clip;
+ -moz-background-clip: @clip;
+ background-clip: @clip;
+}
+
+// CSS3 Content Columns
+.content-columns(@columnCount, @columnGap: 20px) {
+ -webkit-column-count: @columnCount;
+ -moz-column-count: @columnCount;
+ column-count: @columnCount;
+ -webkit-column-gap: @columnGap;
+ -moz-column-gap: @columnGap;
+ column-gap: @columnGap;
+}
+
+// Buttons
+// .button(@color: #fff, @padding: 4px 14px, @textColor: #333, @textShadow: 0
1px 1px rgba(255,255,255,.75), @fontSize: 13px, @borderColor: rgba(0,0,0,.1),
@borderRadius: 4px) {
+// display: inline-block;
+// #gradient > .vertical-three-colors(@color, @color, 0.25, darken(@color,
10%));
+// padding: @padding;
+// text-shadow: @textShadow;
+// color: @textColor;
+// font-size: @fontSize;
+// line-height: @baseline;
+// border: 1px solid;
+// border-color: #ccc #ccc #bbb;
+// border-color: borderColor borderColor fadein(@borderColor, 15%);
+// .border-radius(@borderRadius);
+// @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
+// .box-shadow(@shadow);
+// &:hover {
+// background-position: 0 -15px;
+// color: @textColor;
+// text-decoration: none;
+// }
+// }
+
+// Add an alphatransparency value to any background or border color (via Elyse
Holladay)
+#translucent {
+ .background(@color: @white, @alpha: 1) {
+ background-color: hsla(hue(@color), saturation(@color), lightness(@color),
@alpha);
+ }
+ .border(@color: @white, @alpha: 1) {
+ border-color: hsla(hue(@color), saturation(@color),
lightness(@color), @alpha);
+ background-clip: padding-box;
+ }
+}
+
+// Gradients
+#gradient {
+ .horizontal (@startColor: #555, @endColor: #333) {
+ background-color: @endColor;
+ background-repeat: repeat-x;
+ background-image: -khtml-gradient(linear, left top, right top,
from(@startColor), to(@endColor)); // Konqueror
+ background-image: -moz-linear-gradient(left, @startColor, @endColor); //
FF 3.6+
+ background-image: -ms-linear-gradient(left, @startColor, @endColor); //
IE10
+ background-image: -webkit-gradient(linear, left top, right top,
color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome
2+
+ background-image: -webkit-linear-gradient(left, @startColor, @endColor);
// Safari 5.1+, Chrome 10+
+ background-image: -o-linear-gradient(left, @startColor, @endColor); //
Opera 11.10
+ background-image: linear-gradient(left, @startColor, @endColor); // Le
standard
+ }
+ .vertical (@startColor: #555, @endColor: #333) {
+ background-color: @endColor;
+ background-repeat: repeat-x;
+ background-image: -khtml-gradient(linear, left top, left bottom,
from(@startColor), to(@endColor)); // Konqueror
+ background-image: -moz-linear-gradient(@startColor, @endColor); // FF 3.6+
+ background-image: -ms-linear-gradient(@startColor, @endColor); // IE10
+ background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome
2+
+ background-image: -webkit-linear-gradient(@startColor, @endColor); //
Safari 5.1+, Chrome 10+
+ background-image: -o-linear-gradient(@startColor, @endColor); // Opera
11.10
+ background-image: linear-gradient(@startColor, @endColor); // The standard
+ }
+ .directional (@startColor: #555, @endColor: #333, @deg: 45deg) {
+ background-color: @endColor;
+ background-repeat: repeat-x;
+ background-image: -moz-linear-gradient(@deg, @startColor, @endColor); //
FF 3.6+
+ background-image: -ms-linear-gradient(@deg, @startColor, @endColor); //
IE10
+ background-image: -webkit-linear-gradient(@deg, @startColor, @endColor);
// Safari 5.1+, Chrome 10+
+ background-image: -o-linear-gradient(@deg, @startColor, @endColor); //
Opera 11.10
+ background-image: linear-gradient(@deg, @startColor, @endColor); // The
standard
+ }
+ .vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop:
50%, @endColor: #c3325f) {
+ background-color: @endColor;
+ background-repeat: no-repeat;
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor),
color-stop(@colorStop, @midColor), to(@endColor));
+ background-image: -webkit-linear-gradient(@startColor, @midColor
@colorStop, @endColor);
+ background-image: -moz-linear-gradient(@startColor, @midColor @colorStop,
@endColor);
+ background-image: -ms-linear-gradient(@startColor, @midColor @colorStop,
@endColor);
+ background-image: -o-linear-gradient(@startColor, @midColor @colorStop,
@endColor);
+ background-image: linear-gradient(@startColor, @midColor @colorStop,
@endColor);
+ }
+}
+
+// Opacity
+.opacity(@opacity: 100) {
+ filter: e(%("alpha(opacity=%d)", @opacity));
+ -khtml-opacity: @opacity / 100;
+ -moz-opacity: @opacity / 100;
+ opacity: @opacity / 100;
+}
Added: trunk/plugins/qtTrilliumPlugin/css/less/reset.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/reset.less Thu Aug 25 12:48:43
2011 (r9600)
@@ -0,0 +1,21 @@
+/* Reset.less
+ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an
adapted version here that cuts out some of the reset HTML elements we will
never need here (i.e., dfn, samp, etc).
+ *
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
+
+
+// ERIC MEYER RESET
+// ----------------
+
+html, body { margin: 0; padding: 0; }
+h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite,
code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var,
dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption,
tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0;
font-weight: normal; font-style: normal; font-size: 100%; line-height: 1;
font-family: inherit; }
+table { border-collapse: collapse; border-spacing: 0; }
+ol, ul { list-style: none; }
+q:before, q:after, blockquote:before, blockquote:after { content: ""; }
+
+
+// HTML5
+// -----
+
+header, section, footer, article, aside {
+ display: block;
+}
Added: trunk/plugins/qtTrilliumPlugin/css/less/scaffolding.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/scaffolding.less Thu Aug 25
12:48:43 2011 (r9600)
@@ -0,0 +1,160 @@
+#page-wrapper {
+
+ #page {
+
+ #header {
+
+ }
+
+ #main-wrapper {
+
+ #main {
+
+ #content {
+
+ }
+
+ #sidebar {
+
+ }
+
+ }
+
+ }
+
+ #footer {
+
+ }
+
+ }
+
+}
+
+// STRUCTURAL LAYOUT
+// -----------------
+
+html, body {
+ background-color: #fff;
+}
+body {
+ margin: 0;
+ #font > .sans-serif(normal,@basefont,@baseline);
+ color: @gray;
+ text-rendering: optimizeLegibility;
+}
+
+// Container (centered, fixed-width layouts)
+div.container {
+ width: 940px;
+ margin: 0 auto;
+}
+
+// Fluid layouts (left aligned, with sidebar, min- & max-width content)
+div.container-fluid {
+ padding: 0 20px;
+ .clearfix();
+ div.sidebar {
+ float: left;
+ width: 220px;
+ }
+ div.content {
+ min-width: 700px;
+ max-width: 1180px;
+ margin-left: 240px;
+ }
+}
+
+
+// BASE STYLES
+// -----------
+
+// Links
+a {
+ color: @linkColor;
+ text-decoration: none;
+ line-height: inherit;
+ font-weight: inherit;
+ &:hover {
+ color: @linkColorHover;
+ text-decoration: underline;
+ }
+}
+
+// Buttons
+.btnColor(@primaryColor, @secondaryColor) {
+ #gradient > .vertical(@primaryColor, @secondaryColor);
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
+ border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
+}
+
+.btn {
+ // .button(#1174C6);
+ cursor: pointer;
+ display: inline-block;
+ #gradient > .vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
+ padding: 4px 14px;
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
+ color: #333;
+ font-size: 13px;
+ line-height: @baseline;
+ border: 1px solid #ccc;
+ border-bottom-color: #bbb;
+ .border-radius(4px);
+ @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
+ .box-shadow(@shadow);
+ &:hover {
+ background-position: 0 -15px;
+ color: #333;
+ text-decoration: none;
+ }
+ .transition(.1s linear all);
+ &.primary,
+ &.danger {
+ color: #fff;
+ &:hover {
+ color: #fff;
+ }
+ }
+ &.primary {
+ .btnColor(@blue, @blueDark)
+ }
+ &.danger {
+ .btnColor(lighten(@red, 15%), @red)
+ }
+ &.large {
+ font-size: 16px;
+ line-height: 28px;
+ .border-radius(6px);
+ }
+ &.small {
+ padding-right: 9px;
+ padding-left: 9px;
+ font-size: 11px;
+ }
+ &.disabled {
+ background-image: none;
+ .opacity(65);
+ cursor: default;
+ }
+
+ // this can't be included with the .disabled def because IE8 and below will
drop it ;_;
+ &:disabled {
+ background-image: none;
+ .opacity(65);
+ cursor: default;
+ }
+ &:active {
+ @shadow: inset 0 3px 7px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
+ .box-shadow(@shadow);
+ }
+}
+
+// Help Firefox not be a jerk about adding extra padding to buttons
+button.btn,
+input[type=submit].btn {
+ &::-moz-focus-inner {
+ padding: 0;
+ border: 0;
+ }
+}
Added: trunk/plugins/qtTrilliumPlugin/css/less/tables.less
==============================================================================
Added: trunk/plugins/qtTrilliumPlugin/css/less/type.less
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/plugins/qtTrilliumPlugin/css/less/type.less Thu Aug 25 12:48:43
2011 (r9600)
@@ -0,0 +1,185 @@
+/* Typography.less
+ * Headings, body text, lists, code, and more for a versatile and durable
typography system
+ *
----------------------------------------------------------------------------------------
*/
+
+
+// BODY TEXT
+// ---------
+
+p {
+ #font > .shorthand(normal,@basefont,@baseline);
+ margin-bottom: @baseline / 2;
+ small {
+ font-size: @basefont - 2;
+ color: @grayLight;
+ }
+}
+
+
+// HEADINGS
+// --------
+
+h1, h2, h3, h4, h5, h6 {
+ font-weight: bold;
+ color: @grayDark;
+ small {
+ color: @grayLight;
+ }
+}
+h1 {
+ margin-bottom: @baseline;
+ font-size: 30px;
+ line-height: @baseline * 2;
+ small {
+ font-size: 18px;
+ }
+}
+h2 {
+ font-size: 24px;
+ line-height: @baseline * 2;
+ small {
+ font-size: 14px;
+ }
+}
+h3, h4, h5, h6 {
+ line-height: @baseline * 2;
+}
+h3 {
+ font-size: 18px;
+ small {
+ font-size: 14px;
+ }
+}
+h4 {
+ font-size: 16px;
+ small {
+ font-size: 12px;
+ }
+}
+h5 {
+ font-size: 14px;
+}
+h6 {
+ font-size: 13px;
+ color: @grayLight;
+ text-transform: uppercase;
+}
+
+
+// COLORS
+// ------
+
+// Unordered and Ordered lists
+ul, ol {
+ margin: 0 0 @baseline 25px;
+}
+ul ul,
+ul ol,
+ol ol,
+ol ul {
+ margin-bottom: 0;
+}
+ul {
+ list-style: disc;
+}
+ol {
+ list-style: decimal;
+}
+li {
+ line-height: @baseline;
+ color: @gray;
+}
+ul.unstyled {
+ list-style: none;
+ margin-left: 0;
+}
+
+// Description Lists
+dl {
+ margin-bottom: @baseline;
+ dt, dd {
+ line-height: @baseline;
+ }
+ dt {
+ font-weight: bold;
+ }
+ dd {
+ margin-left: @baseline / 2;
+ }
+}
+
+// MISC
+// ----
+
+// Horizontal rules
+hr {
+ margin: 0 0 19px;
+ border: 0;
+ border-bottom: 1px solid #eee;
+}
+
+// Emphasis
+strong {
+ font-style: inherit;
+ font-weight: bold;
+ line-height: inherit;
+}
+em {
+ font-style: italic;
+ font-weight: inherit;
+ line-height: inherit;
+}
+.muted {
+ color: @grayLighter;
+}
+
+// Blockquotes
+blockquote {
+ margin-bottom: @baseline;
+ border-left: 5px solid #eee;
+ padding-left: 15px;
+ p {
+ #font > .shorthand(300,14px,@baseline);
+ margin-bottom: 0;
+ }
+ small {
+ display: block;
+ #font > .shorthand(300,12px,@baseline);
+ color: @grayLight;
+ &:before {
+ content: '\2014 \00A0';
+ }
+ }
+}
+
+// Addresses
+address {
+ display: block;
+ line-height: @baseline;
+ margin-bottom: @baseline;
+}
+
+// Inline and block code styles
+code, pre {
+ padding: 0 3px 2px;
+ font-family: Monaco, Andale Mono, Courier New, monospace;
+ font-size: 12px;
+ .border-radius(3px);
+}
+code {
+ background-color: lighten(@orange, 40%);
+ color: rgba(0,0,0,.75);
+ padding: 1px 3px;
+}
+pre {
+ background-color: #f5f5f5;
+ display: block;
+ padding: @baseline - 1;
+ margin: 0 0 @baseline;
+ line-height: @baseline;
+ font-size: 12px;
+ border: 1px solid #ccc;
+ border: 1px solid rgba(0,0,0,.15);
+ .border-radius(3px);
+ white-space: pre-wrap;
+}
Modified: trunk/plugins/qtTrilliumPlugin/css/main.css
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/css/main.css Thu Aug 25 11:02:33 2011
(r9599)
+++ trunk/plugins/qtTrilliumPlugin/css/main.css Thu Aug 25 12:48:43 2011
(r9600)
@@ -1,25 +1,579 @@
+/*!
+ * Bootstrap v1.1.0
+ *
+ * Copyright 2011 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ * Date: @DATE
+ */
+/* Reset.less
+ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an
adapted version here that cuts out some of the reset HTML elements we will
never need here (i.e., dfn, samp, etc).
+ *
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
html, body {
- background-color: #fff;
+ margin: 0;
+ padding: 0;
}
-
-body {
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+blockquote,
+pre,
+a,
+abbr,
+acronym,
+address,
+cite,
+code,
+del,
+dfn,
+em,
+img,
+q,
+s,
+samp,
+small,
+strike,
+strong,
+sub,
+sup,
+tt,
+var,
+dd,
+dl,
+dt,
+li,
+ol,
+ul,
+fieldset,
+form,
+label,
+legend,
+button,
+table,
+caption,
+tbody,
+tfoot,
+thead,
+tr,
+th,
+td {
margin: 0;
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ padding: 0;
+ border: 0;
+ font-weight: normal;
+ font-style: normal;
+ font-size: 100%;
+ line-height: 1;
+ font-family: inherit;
+}
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+ol, ul {
+ list-style: none;
+}
+q:before,
+q:after,
+blockquote:before,
+blockquote:after {
+ content: "";
+}
+header,
+section,
+footer,
+article,
+aside {
+ display: block;
+}
+/* Preboot.less
+ * Variables and mixins to pre-ignite any new web development project
+ * ------------------------------------------------------------------ */
+.clearfix {
+ zoom: 1;
+}
+.clearfix:before, .clearfix:after {
+ display: table;
+ content: "";
+}
+.clearfix:after {
+ clear: both;
+}
+.center-block {
+ display: block;
+ margin: 0 auto;
+}
+.container {
+ width: 940px;
+ margin: 0 auto;
+ zoom: 1;
+}
+.container:before, .container:after {
+ display: table;
+ content: "";
+}
+.container:after {
+ clear: both;
+}
+/* Typography.less
+ * Headings, body text, lists, code, and more for a versatile and durable
typography system
+ *
----------------------------------------------------------------------------------------
*/
+p {
font-size: 13px;
font-weight: normal;
line-height: 18px;
+ margin-bottom: 9px;
+}
+p small {
+ font-size: 11px;
+ color: #bfbfbf;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight: bold;
+ color: #404040;
+}
+h1 small,
+h2 small,
+h3 small,
+h4 small,
+h5 small,
+h6 small {
+ color: #bfbfbf;
+}
+h1 {
+ margin-bottom: 18px;
+ font-size: 30px;
+ line-height: 36px;
+}
+h1 small {
+ font-size: 18px;
+}
+h2 {
+ font-size: 24px;
+ line-height: 36px;
+}
+h2 small {
+ font-size: 14px;
+}
+h3,
+h4,
+h5,
+h6 {
+ line-height: 36px;
+}
+h3 {
+ font-size: 18px;
+}
+h3 small {
+ font-size: 14px;
+}
+h4 {
+ font-size: 16px;
+}
+h4 small {
+ font-size: 12px;
+}
+h5 {
+ font-size: 14px;
+}
+h6 {
+ font-size: 13px;
+ color: #bfbfbf;
+ text-transform: uppercase;
+}
+ul, ol {
+ margin: 0 0 18px 25px;
+}
+ul ul,
+ul ol,
+ol ol,
+ol ul {
+ margin-bottom: 0;
+}
+ul {
+ list-style: disc;
+}
+ol {
+ list-style: decimal;
+}
+li {
+ line-height: 18px;
color: #808080;
- text-rendering: optimizeLegibility;
}
-
-a {
- color: #0069d6;
- text-decoration: none;
+ul.unstyled {
+ list-style: none;
+ margin-left: 0;
+}
+dl {
+ margin-bottom: 18px;
+}
+dl dt, dl dd {
+ line-height: 18px;
+}
+dl dt {
+ font-weight: bold;
+}
+dl dd {
+ margin-left: 9px;
+}
+hr {
+ margin: 0 0 19px;
+ border: 0;
+ border-bottom: 1px solid #eee;
+}
+strong {
+ font-style: inherit;
+ font-weight: bold;
line-height: inherit;
+}
+em {
+ font-style: italic;
font-weight: inherit;
+ line-height: inherit;
+}
+.muted {
+ color: #e6e6e6;
+}
+blockquote {
+ margin-bottom: 18px;
+ border-left: 5px solid #eee;
+ padding-left: 15px;
+}
+blockquote p {
+ font-size: 14px;
+ font-weight: 300;
+ line-height: 18px;
+ margin-bottom: 0;
+}
+blockquote small {
+ display: block;
+ font-size: 12px;
+ font-weight: 300;
+ line-height: 18px;
+ color: #bfbfbf;
+}
+blockquote small:before {
+ content: '\2014 \00A0';
+}
+address {
+ display: block;
+ line-height: 18px;
+ margin-bottom: 18px;
}
+code, pre {
+ padding: 0 3px 2px;
+ font-family: Monaco, Andale Mono, Courier New, monospace;
+ font-size: 12px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+}
+code {
+ background-color: #fee9cc;
+ color: rgba(0, 0, 0, 0.75);
+ padding: 1px 3px;
+}
+pre {
+ background-color: #f5f5f5;
+ display: block;
+ padding: 17px;
+ margin: 0 0 18px;
+ line-height: 18px;
+ font-size: 12px;
+ border: 1px solid #ccc;
+ border: 1px solid rgba(0, 0, 0, 0.15);
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ white-space: pre-wrap;
+}
+#header {
+ height: 40px;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 10000;
+ overflow: visible;
+}
+#header > .section {
+ background-color: Red;
+ background: #222;
+ background-color: #444444;
+ background-repeat: repeat-x;
+ background-image: -khtml-gradient(linear, left top, left bottom,
from(#222222), to(#444444));
+ background-image: -moz-linear-gradient(#222222, #444444);
+ background-image: -ms-linear-gradient(#222222, #444444);
+ background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0%, #222222), color-stop(100%, #444444));
+ background-image: -webkit-linear-gradient(#222222, #444444);
+ background-image: -o-linear-gradient(#222222, #444444);
+ background-image: linear-gradient(#222222, #444444);
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0,
0, 0.1);
+ -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0,
0.1);
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
+}
+#header a {
+ color: #bfbfbf;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+}
+#header a:hover, #header ul li.active a {
+ background-color: #333;
+ background-color: rgba(255, 255, 255, 0.05);
+ color: #ffffff;
+ text-decoration: none;
+}
+#header #logo {
+ display: none;
+}
+#header #name-and-slogan #site-name {
+ position: relative;
+ margin: 0;
+}
+#header #name-and-slogan #site-name a {
+ float: left;
+ display: block;
+ padding: 8px 20px 12px;
+ margin-left: -20px;
+ color: #ffffff;
+ font-size: 20px;
+ font-weight: 200;
+ line-height: 1;
+}
+#header #name-and-slogan #site-slogan {
+ display: none;
+}
+#header .search form {
+ float: left;
+ margin: 5px 0 0 0;
+ position: relative;
+ filter: alpha(opacity=100);
+ -khtml-opacity: 1;
+ -moz-opacity: 1;
+ opacity: 1;
+}
+#header .search form input[type=submit] {
+ display: none;
+}
+#header .search form input[name=query] {
+ background-color: #444;
+ background-color: rgba(255, 255, 255, 0.3);
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-size: normal;
+ font-weight: 13px;
+ line-height: 1;
+ width: 220px;
+ padding: 4px 9px;
+ color: #fff;
+ color: rgba(255, 255, 255, 0.75);
+ border: 1px solid #111;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255,
255, 255, 0.25);
+ -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255,
255, 255, 0.25);
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255,
255, 0.25);
+ -webkit-transition: none;
+ -moz-transition: none;
+ transition: none;
+}
+#header .search form input[name=query]:-moz-placeholder {
+ color: #e6e6e6;
+}
+#header .search form input[name=query]::-webkit-input-placeholder {
+ color: #e6e6e6;
+}
+#header .search form input[name=query]:hover {
+ background-color: #bfbfbf;
+ background-color: rgba(255, 255, 255, 0.5);
+ color: #fff;
+}
+#header .search form input[name=query]:focus, #header .search form
input[name=query].focused {
+ outline: none;
+ background-color: #fff;
+ color: #404040;
+ text-shadow: 0 1px 0 #fff;
+ border: 0;
+ padding: 5px 10px;
+ -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
+ -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
+}
+#header ul {
+ display: block;
+ float: left;
+ margin: 0 10px 0 0;
+ position: relative;
+}
+#header ul.secondary-nav {
+ float: right;
+ margin-left: 10px;
+ margin-right: 0;
+}
+#header ul li {
+ display: block;
+ float: left;
+ font-size: 13px;
+}
+#header ul li a {
+ display: block;
+ float: none;
+ padding: 10px 10px 11px;
+ line-height: 19px;
+ text-decoration: none;
+}
+#header ul li a:hover {
+ color: #fff;
+ text-decoration: none;
+}
+#header ul li.active a {
+ background-color: #222;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+#header ul.primary-nav li ul {
+ left: 0;
+}
+#header ul.secondary-nav li ul {
+ right: 0;
+}
+#header ul li.menu {
+ position: relative;
+}
+#header ul li.menu a.menu:after {
+ width: 0px;
+ height: 0px;
+ display: inline-block;
+ content: "↓";
+ text-indent: -99999px;
+ vertical-align: top;
+ margin-top: 8px;
+ margin-left: 4px;
+ border-left: 4px solid transparent;
+ border-right: 4px solid transparent;
+ border-top: 4px solid #fff;
+ filter: alpha(opacity=50);
+ -khtml-opacity: 0.5;
+ -moz-opacity: 0.5;
+ opacity: 0.5;
+}
+#header ul li.menu.open a.menu, #header ul li.menu.open a:hover {
+ background-color: #444;
+ background-color: rgba(255, 255, 255, 0.1);
+ *background-color: #444;
+ /* IE6-7 */
-a:hover {
- color: #0050a3;
- text-decoration: underline;
+ color: #fff;
+}
+#header ul li.menu.open ul {
+ display: block;
+}
+#header ul li.menu.open ul li a {
+ background-color: transparent;
+ font-weight: normal;
+}
+#header ul li.menu.open ul li a:hover {
+ background-color: rgba(255, 255, 255, 0.1);
+ *background-color: #444;
+ /* IE6-7 */
+
+ color: #fff;
+}
+#header ul li.menu.open ul li.active a {
+ background-color: rgba(255, 255, 255, 0.1);
+ font-weight: bold;
+}
+#header ul li.menu.open ul li ul {
+ display: none;
+}
+#header ul li ul {
+ background-color: #333;
+ float: left;
+ display: none;
+ position: absolute;
+ top: 40px;
+ min-width: 160px;
+ max-width: 220px;
+ _width: 160px;
+ margin-left: 0;
+ margin-right: 0;
+ padding: 0;
+ text-align: left;
+ border: 0;
+ zoom: 1;
+ -webkit-border-radius: 0 0 5px 5px;
+ -moz-border-radius: 0 0 5px 5px;
+ border-radius: 0 0 5px 5px;
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
+}
+#header ul li ul li {
+ float: none;
+ clear: both;
+ display: block;
+ background: none;
+ font-size: 12px;
+}
+#header ul li ul li a {
+ display: block;
+ padding: 6px 15px;
+ clear: both;
+ font-weight: normal;
+ line-height: 19px;
+ color: #bbb;
+}
+#header ul li ul li a:hover {
+ background-color: #333;
+ background-color: rgba(255, 255, 255, 0.25);
+ color: #fff;
+}
+#header ul li ul li.divider {
+ height: 1px;
+ overflow: hidden;
+ background: #222;
+ background: rgba(0, 0, 0, 0.2);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+ margin: 5px 0;
+}
+#header ul li ul li span {
+ clear: both;
+ display: block;
+ background: rgba(0, 0, 0, 0.2);
+ padding: 6px 15px;
+ cursor: default;
+ color: #808080;
+ border-top: 1px solid rgba(0, 0, 0, 0.2);
+}
+#header ul li.help > a {
+ padding-left: 22px;
+ background: transparent url(../../images/help.png) no-repeat 8px 50%;
+}
+#header ul li.language > a {
+ padding-left: 22px;
+ background: transparent url(../../images/world.png) no-repeat 8px 50%;
+}
+#header ul li.user > a {
+ padding-left: 28px;
+ background: transparent url(../../images/user.png) no-repeat 8px 50%;
+}
+.nowrap {
+ white-space: nowrap;
+}
+.element-hidden {
+ display: none;
+}
+.element-invisible {
+ height: 0;
+ overflow: hidden;
+ position: absolute;
}
Added:
trunk/plugins/qtTrilliumPlugin/modules/menu/actions/mainMenuComponent.class.php
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++
trunk/plugins/qtTrilliumPlugin/modules/menu/actions/mainMenuComponent.class.php
Thu Aug 25 12:48:43 2011 (r9600)
@@ -0,0 +1,29 @@
+<?php
+
+/*
+ * This file is part of Qubit Toolkit.
+ *
+ * Qubit Toolkit is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Qubit Toolkit is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Qubit Toolkit. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+class MenuMainMenuComponent extends sfComponent
+{
+ public function execute($request)
+ {
+ $this->addMenu = QubitMenu::getById(QubitMenu::ADD_EDIT_ID);
+ $this->manageMenu = QubitMenu::getById(QubitMenu::MANAGE_ID);
+ $this->importMenu = QubitMenu::getById(QubitMenu::IMPORT_ID);
+ $this->adminMenu = QubitMenu::getById(QubitMenu::ADMIN_ID);
+ }
+}
Modified: trunk/plugins/qtTrilliumPlugin/modules/menu/templates/_mainMenu.php
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/modules/menu/templates/_mainMenu.php Thu Aug
25 11:02:33 2011 (r9599)
+++ trunk/plugins/qtTrilliumPlugin/modules/menu/templates/_mainMenu.php Thu Aug
25 12:48:43 2011 (r9600)
@@ -1,3 +1,19 @@
-<a class="menu" href="#"><?php echo __('Main menu') ?></a>
+<li class="menu">
+ <a href="#" class="menu"><?php echo
$addMenu->getLabel(array('cultureFallback' => true)) ?></a>
+ <?php echo QubitMenu::displayHierarchyAsList($addMenu, 0,
array('overrideVisibility' => array('admin' =>
$sf_user->hasCredential('administrator')))) ?>
+</li>
-<?php echo QubitMenu::displayHierarchyAsList($mainMenu, 0,
array('overrideVisibility' => array('admin' =>
$sf_user->hasCredential('administrator')))) ?>
+<li class="menu">
+ <a href="#" class="menu"><?php echo
$manageMenu->getLabel(array('cultureFallback' => true)) ?></a>
+ <?php echo QubitMenu::displayHierarchyAsList($manageMenu, 0,
array('overrideVisibility' => array('admin' =>
$sf_user->hasCredential('administrator')))) ?>
+</li>
+
+<li class="menu">
+ <a href="#" class="menu"><?php echo
$importMenu->getLabel(array('cultureFallback' => true)) ?></a>
+ <?php echo QubitMenu::displayHierarchyAsList($importMenu, 0,
array('overrideVisibility' => array('admin' =>
$sf_user->hasCredential('administrator')))) ?>
+</li>
+
+<li class="menu">
+ <a href="#" class="menu"><?php echo
$adminMenu->getLabel(array('cultureFallback' => true)) ?></a>
+ <?php echo QubitMenu::displayHierarchyAsList($adminMenu, 0,
array('overrideVisibility' => array('admin' =>
$sf_user->hasCredential('administrator')))) ?>
+</li>
Modified: trunk/plugins/qtTrilliumPlugin/templates/_header.php
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/templates/_header.php Thu Aug 25
11:02:33 2011 (r9599)
+++ trunk/plugins/qtTrilliumPlugin/templates/_header.php Thu Aug 25
12:48:43 2011 (r9600)
@@ -49,7 +49,7 @@
</div> <!-- /#name-and-slogan -->
<?php endif; ?>
- <ul>
+ <ul id="browse-menu">
<li class="menu">
<?php echo get_component('menu', 'browseMenu', array('sf_cache_key'
=> 'settings')) ?>
@@ -61,13 +61,11 @@
<?php echo get_component_slot('header') ?>
- <ul>
+ <ul id="main-menu">
- <li class="menu">
- <?php if ($sf_user->isAuthenticated()): ?>
- <?php echo get_component('menu', 'mainMenu', array('sf_cache_key'
=> 'settings')) ?>
- <?php endif; ?>
- </li>
+ <?php if ($sf_user->isAuthenticated()): ?>
+ <?php echo get_component('menu', 'mainMenu', array('sf_cache_key' =>
'settings')) ?>
+ <?php endif; ?>
<li class="menu language">
<?php echo get_component('i18n', 'changeLanguageList') ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.